:root {
    color-scheme: dark;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    --c: #19f2ff;
    --p: #ff3df0
}
* {
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}
html,
body {
    height: 100%;
    margin: 0;
    background:
        linear-gradient(rgba(28, 19, 82, 0.10), rgba(28, 19, 82, 0.10)),
        url('bg.png') center center / cover no-repeat;
    font-family: 'Outfit', system-ui, sans-serif;
    color: #fff;
    overflow: hidden
}
#wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}
#stage {
    position: relative;
    height: 100%;
    max-height: 900px;
    aspect-ratio: 480/800;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 70px #19f2ff33
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none
}

.hud {
    position: absolute;
    left: 15px;
    right: 20px;
    top: 25px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none
}

#lv {
    font: 800 14px Orbitron;
    letter-spacing: 2px;
    color: var(--c);
    text-shadow: 0 0 12px var(--c)
}

.bt {
    display: flex;
    gap: 6px
}

.btn {
    pointer-events: auto;
    border: 1px solid #19f2ff88;
    border-radius: 10px;
    background: #0b0630cc;
    color: var(--c);
    font: 700 16px Orbitron;
    width: 34px;
    height: 34px;
    cursor: pointer;
    box-shadow: 0 0 10px #19f2ff44
}

.btn:active {
    transform: scale(.92)
}

.ov {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #07021ae6;
    backdrop-filter: blur(5px);
    text-align: center;
    padding: 24px;
    transition: opacity .4s
}

.ov.hide {
    opacity: 0;
    pointer-events: none
}

h1 {
    font: 800 44px/1.05 Orbitron;
    margin: 0;
    color: var(--c);
    text-shadow: 0 0 24px var(--c);
    animation: bob 2.2s ease-in-out infinite
}

h1 span {
    color: var(--p);
    text-shadow: 0 0 24px var(--p);
    font-size: 34px
}

h2 {
    font: 800 28px Orbitron;
    margin: 0;
    text-shadow: 0 0 16px currentColor
}

@keyframes bob {
    50% {
        transform: translateY(-7px)
    }
}

#mlv,
#rs {
    font-size: 18px;
    color: #b9a8ff
}

.big {
    position: relative;
    border: 2px solid #8dfaff;
    border-radius: 16px;

    background: linear-gradient(
        180deg,
        #b5ffff 0%,
        var(--c) 25%,
        #5b6bff 100%
    );

    color: #04021a;
    font: 800 22px Orbitron;
    padding: 13px 44px;
    cursor: pointer;

    box-shadow:
        inset 0 2px 0 #ffffff,
        inset 0 -3px 0 #3439a0,
        0 4px 0 #30368c,
        0 7px 0 #171d61,
        0 10px 18px rgba(0,0,0,0.5),
        0 0 15px #19f2ff99,
        0 0 30px #19f2ff55;

    text-shadow: 0 1px 0 #ffffff88;

    transition: all 0.15s ease;
    animation: pulse 1.5s infinite;
}

.big:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.big:active {
    transform: translateY(7px);

    box-shadow:
        inset 0 3px 6px #0005,
        0 1px 0 #30368c,
        0 3px 8px #0005,
        0 0 18px #19f2ff88;

    animation: none;
}

.big.sec {
    background: #1a0f4a;
    color: var(--c);
    border: 1px solid #19f2ff66;
    box-shadow: none;
    font-size: 15px;
    padding: 10px 26px;
    animation: none
}

.big:active {
    transform: scale(.95)
}

@keyframes pulse {
    50% {
        transform: scale(1.05)
    }
}

.card {
    background: #120a3a;
    border: 1px solid #19f2ff66;
    border-radius: 20px;
    padding: 20px;
    max-width: 340px;
    text-align: left;
    line-height: 1.45;
    animation: pop .35s;
    box-shadow: 0 0 30px #19f2ff22
}

.card h2 {
    color: var(--c);
    margin-bottom: 8px
}

.card ul {
    padding-left: 20px;
    margin: 0
}

.card li {
    margin: 7px 0
}

@keyframes pop {
    from {
        transform: scale(.7);
        opacity: 0
    }
}

.ldbar {
    width: 230px;
    height: 14px;
    border-radius: 9px;
    background: #1a0f4a;
    overflow: hidden;
    box-shadow: 0 0 12px #19f2ff33
}

.ldbar div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--p), var(--c));
    transition: width .2s
}