@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;700;900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --nc: #00f5ff;
    --nm: #ff00ff;
    --ng: #00ff41;
    --ny: #ffff00;
    --no: #ff6600;
    --np: #ff007f;
    --db: #030612;
    --pb: rgba(0, 20, 40, 0.88);
}

html,
body {
    width: 100%;
    height: 100%;
    background: var(--db);
    overflow: hidden;
    font-family: 'Press Start 2P', monospace
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 245, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 80, 120, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0
}

#gw {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px
}

#hud {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: var(--pb);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-bottom: none;
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    gap: 2px;
}

.hb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px
}

.hl {
    font-size: 6px;
    color: rgba(0, 245, 255, 0.45);
    letter-spacing: 1px;
    text-transform: uppercase
}

.hv {
    font-size: 11px;
    color: var(--nc);
    text-shadow: 0 0 8px var(--nc)
}

#ld {
    color: var(--nm);
    text-shadow: 0 0 8px var(--nm)
}

#livd {
    color: var(--ng);
    text-shadow: 0 0 8px var(--ng)
}

#pwd {
    font-size: 13px;
    color: rgba(0, 245, 255, 0.4);
    text-shadow: none;
    transition: all .3s
}

#pwd.active {
    color: var(--ny);
    text-shadow: 0 0 10px var(--ny), 0 0 20px var(--ny)
}

#bfd {
    font-size: 10px;
    color: rgba(255, 0, 255, 0.5);
    text-shadow: none;
    transition: color .3s
}

#bfd.hasfly {
    color: var(--nm);
    text-shadow: 0 0 8px var(--nm);
    animation: bfpulse 1s ease-in-out infinite
}

@keyframes bfpulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

#cc {
    position: relative;
    width: 100%;
    border: 2px solid rgba(0, 245, 255, 0.28);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.12), 0 0 60px rgba(0, 245, 255, 0.04), inset 0 0 40px rgba(0, 0, 0, 0.8);
    background: #000008;
    overflow: hidden;
}

#cc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.065) 3px, rgba(0, 0, 0, 0.065) 4px);
    pointer-events: none;
    z-index: 10;
}

#gc {
    display: block;
    width: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges
}

#ov {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 3, 15, 0.93);
    z-index: 20;
    gap: 12px;
    padding: 18px;
}

#ov.h {
    display: none
}

.ot {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(18px, 5.5vw, 40px);
    color: var(--nc);
    text-shadow: 0 0 10px var(--nc), 0 0 30px var(--nc), 0 0 60px rgba(0, 245, 255, 0.45);
    text-align: center;
    letter-spacing: 4px;
    animation: tp 2s ease-in-out infinite;
}

.os {
    font-size: clamp(6px, 1.8vw, 9px);
    color: var(--nm);
    text-shadow: 0 0 8px var(--nm);
    text-align: center;
    letter-spacing: 2px;
    line-height: 2.1
}

.nb {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(8px, 2vw, 12px);
    padding: 10px 22px;
    background: transparent;
    border: 2px solid var(--nc);
    color: var(--nc);
    text-shadow: 0 0 8px var(--nc);
    box-shadow: 0 0 14px rgba(0, 245, 255, 0.28), inset 0 0 14px rgba(0, 245, 255, 0.04);
    cursor: pointer;
    letter-spacing: 2px;
    transition: all .15s;
    text-transform: uppercase;
}

.nb:hover,
.nb:focus {
    background: rgba(0, 245, 255, 0.11);
    box-shadow: 0 0 28px rgba(0, 245, 255, 0.55);
    transform: scale(1.04);
    outline: none
}

.nb.g {
    border-color: var(--ng);
    color: var(--ng);
    text-shadow: 0 0 8px var(--ng);
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.28)
}

.nb.g:hover {
    background: rgba(0, 255, 65, 0.09);
    box-shadow: 0 0 28px rgba(0, 255, 65, 0.5)
}

.cg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 6px;
    color: rgba(0, 245, 255, 0.55);
    text-align: center;
    line-height: 2.1;
    max-width: 320px
}

.cg span {
    color: var(--ny)
}

#ptoa {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.82);
    border: 2px solid var(--ny);
    color: var(--ny);
    font-size: 7px;
    padding: 5px 12px;
    letter-spacing: 2px;
    z-index: 15;
    text-shadow: 0 0 8px var(--ny);
    box-shadow: 0 0 18px rgba(255, 255, 0, 0.28);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s;
}

#ptoa.show {
    opacity: 1
}

#mc {
    display: none;
    position: relative;
    width: 100%;
    padding: 8px;
    background: var(--pb);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-top: none;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dp {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(3, 44px);
    gap: 3px
}

.db2 {
    background: rgba(0, 245, 255, 0.07);
    border: 1px solid rgba(0, 245, 255, 0.28);
    color: var(--nc);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    transition: background .1s;
}

.db2:active,
.db2.act {
    background: rgba(0, 245, 255, 0.24);
    box-shadow: 0 0 11px rgba(0, 245, 255, 0.38)
}

.dbc {
    background: rgba(0, 0, 0, 0.3);
    border-color: transparent
}

#fb {
    width: 76px;
    height: 76px;
    background: rgba(255, 0, 0, 0.11);
    border: 2px solid rgba(255, 100, 0, 0.55);
    color: var(--no);
    font-size: 9px;
    font-family: 'Press Start 2P', monospace;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 14px rgba(255, 100, 0, 0.28);
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    line-height: 1;
}

#fb:active {
    background: rgba(255, 80, 0, 0.28);
    box-shadow: 0 0 24px rgba(255, 100, 0, 0.55)
}

@media (pointer:coarse) {
    #mc {
        display: flex
    }
}

@keyframes tp {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--nc), 0 0 30px var(--nc), 0 0 60px rgba(0, 245, 255, 0.45)
    }

    50% {
        opacity: .82;
        text-shadow: 0 0 5px var(--nc), 0 0 14px var(--nc)
    }
}

#sl {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.038) 2px, rgba(0, 0, 0, 0.038) 4px);
    pointer-events: none;
    z-index: 100
}