:root {
    --gs-purple: #9d4edd;
    --gs-violet: #7c3aed;
    --gs-pink: #ec4899;
    --gs-cyan: #22d3ee;
    --gs-card: rgba(14, 15, 25, .88);
    --gs-line: rgba(255, 255, 255, .09);
    --gs-muted: rgba(235, 235, 255, .58);
}

body {
    background:
        radial-gradient(circle at 50% -15%, rgba(124, 58, 237, .12), transparent 36%),
        #070910;
}

.gs-page .topbar {
    background: rgba(7, 9, 16, .72);
    border-bottom: 1px solid rgba(255,255,255,.045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.gs-page .logo-header img { height: 34px; opacity: .82; }

body.gs-playing,
body.gs-playing.has-mnav { padding-bottom: 0; overflow: hidden; }
body.gs-playing .topbar,
body.gs-playing .gs-brand,
body.gs-playing .mnav { display: none; }
body.gs-playing .gs-main { min-height: 100dvh; margin-top: 0; margin-bottom: 0; display: grid; align-items: center; }
body.gs-playing .gs-game { width: 100%; box-sizing: border-box; max-height: calc(100dvh - 20px); overflow-y: auto; }

.gs-ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.gs-ambient span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .16; }
.gs-ambient span:nth-child(1) { width: 360px; height: 360px; left: -160px; top: 22%; background: var(--gs-violet); }
.gs-ambient span:nth-child(2) { width: 300px; height: 300px; right: -130px; top: 44%; background: var(--gs-pink); }
.gs-ambient span:nth-child(3) { width: 240px; height: 240px; left: 45%; bottom: -160px; background: var(--gs-cyan); }

.gs-main { width: min(100% - 48px, 1080px); min-height: calc(100dvh - 94px); margin: 0 auto 26px; display: flex; flex-direction: column; justify-content: center; }
.gs-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 0 4px; }
.gs-brand-lockup { display: flex; align-items: center; gap: 12px; }
.gs-brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(168, 85, 247, .32); border-radius: 13px; background: linear-gradient(145deg, rgba(168, 85, 247, .2), rgba(236, 72, 153, .08)); color: #c084fc; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 28px rgba(124,58,237,.15); }
.gs-kicker { display: block; color: rgba(255,255,255,.45); font: 800 .65rem/1 monospace; letter-spacing: .28em; }
.gs-brand h1 { margin: 4px 0 0; color: #fff; font: 800 1.65rem/.9 'Outfit', sans-serif; letter-spacing: -.04em; }
.gs-brand h1 span { color: var(--gs-pink); }
.gs-brand-actions { display: flex; gap: 8px; }
.gs-icon-btn, .gs-modal-close { width: 42px; height: 42px; border: 1px solid var(--gs-line); border-radius: 12px; background: rgba(255,255,255,.045); color: rgba(255,255,255,.7); cursor: pointer; transition: .2s ease; }
.gs-icon-btn:hover, .gs-modal-close:hover { color: #fff; border-color: rgba(192,132,252,.5); background: rgba(168,85,247,.13); transform: translateY(-2px); }
.gs-icon-btn:focus-visible, .gs-modal-close:focus-visible, .gs-primary:focus-visible, .gs-listen:focus-visible, .gs-secondary:focus-visible, .gs-suggest button:focus-visible, .gs-input-wrap input:focus-visible { outline: 2px solid #d8b4fe; outline-offset: 3px; }

.gs-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 13px 8px; margin-bottom: 12px; border: 1px solid var(--gs-line); border-radius: 16px; background: rgba(255,255,255,.025); backdrop-filter: blur(16px); }
.gs-stats > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gs-stats > div:not(:last-child)::after { content: ''; position: absolute; top: 4px; bottom: 4px; right: 0; width: 1px; background: var(--gs-line); }
.gs-stats b { color: #fff; font-size: 1.08rem; }
.gs-stats span { color: rgba(255,255,255,.52); font-size: .59rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.gs-hero, .gs-game, .gs-result { position: relative; overflow: hidden; padding: 32px 38px; border: 1px solid rgba(168,85,247,.24); border-radius: 28px; background: radial-gradient(circle at 50% 0%, rgba(124,58,237,.19), transparent 38%), linear-gradient(155deg, rgba(19,20,32,.96), rgba(9,10,17,.98)); box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); text-align: center; }
.gs-game, .gs-result { width: min(100%, 680px); box-sizing: border-box; margin-inline: auto; }
.gs-hero::before, .gs-game::before, .gs-result::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.gs-hero-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(192,132,252,.24); border-radius: 99px; background: rgba(168,85,247,.08); color: #d8b4fe; font-size: .59rem; font-weight: 850; letter-spacing: .14em; }
.gs-hero-badge i { color: #f9a8d4; }

.gs-stage { position: relative; width: 340px; height: 190px; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.gs-stage::after { content: ''; position: absolute; left: 50%; bottom: 12px; width: 235px; height: 22px; transform: translateX(-50%); border-radius: 50%; background: rgba(0,0,0,.6); filter: blur(13px); }
.gs-stage-glow { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(192,132,252,.22), transparent 67%); animation: gs-pulse 3s ease-in-out infinite; }
.gs-vinyl { position: relative; z-index: 2; width: 148px; height: 148px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid #2f3038; border-radius: 50%; background: repeating-radial-gradient(circle, #101116 0 5px, #272831 6px 7px, #111218 8px 13px); box-shadow: 0 20px 42px rgba(0,0,0,.55), inset 0 0 0 2px #0b0c10, 0 0 0 8px rgba(255,255,255,.018); }
.gs-vinyl::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #090a0e; box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
.gs-vinyl-shine { position: absolute; inset: 8px; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 19%, rgba(255,255,255,.09) 23%, transparent 28% 69%, rgba(255,255,255,.06) 73%, transparent 78%); }
.gs-vinyl.spinning { animation: gs-spin 1.6s linear infinite; }
.gs-vinyl-label { width: 51px; height: 51px; display: grid; place-items: center; border: 3px solid #1b1021; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; box-shadow: 0 0 26px rgba(236,72,153,.3); }
.gs-equalizer { width: 70px; height: 54px; display: flex; align-items: center; justify-content: center; gap: 5px; opacity: .72; }
.gs-equalizer i, .gs-waveform i { width: 4px; border-radius: 99px; background: linear-gradient(to top, var(--gs-violet), var(--gs-pink)); animation: gs-wave 1s ease-in-out infinite alternate; }
.gs-equalizer i:nth-child(1), .gs-equalizer i:nth-child(5) { height: 16px; animation-delay: -.2s; }
.gs-equalizer i:nth-child(2), .gs-equalizer i:nth-child(4) { height: 32px; animation-delay: -.5s; }
.gs-equalizer i:nth-child(3) { height: 48px; animation-delay: -.8s; }
.gs-equalizer-right { transform: scaleX(-1); }

.gs-hero h2 { position: relative; margin: 0 0 9px; color: #fff; font-size: clamp(1.55rem, 5vw, 2.05rem); line-height: 1.12; letter-spacing: -.045em; }
.gs-hero h2 em { color: #d8b4fe; font-style: normal; }
.gs-hero > p { position: relative; margin: 0 auto; max-width: 440px; color: var(--gs-muted); line-height: 1.6; font-size: .9rem; }
.gs-score-scale { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 20px; }
.gs-score-scale > span { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 8px; border: 1px solid rgba(255,255,255,.065); border-radius: 11px; background: rgba(255,255,255,.035); color: #c084fc; }
.gs-score-scale > span:nth-child(2) { color: #f472b6; }
.gs-score-scale > span:nth-child(3) { color: #fb7185; }
.gs-score-scale span span { display: flex; flex-direction: column; align-items: flex-start; }
.gs-score-scale b { color: #fff; font-size: .76rem; }
.gs-score-scale small { color: rgba(255,255,255,.4); font-size: .59rem; }

.gs-primary, .gs-listen, .gs-secondary { position: relative; border: 0; border-radius: 13px; padding: 14px 21px; font-weight: 850; letter-spacing: .025em; cursor: pointer; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.gs-primary, .gs-listen { overflow: hidden; background: linear-gradient(105deg, #7c3aed, #c026d3 55%, #db2777); color: #fff; box-shadow: 0 12px 32px rgba(147,51,234,.25), inset 0 1px 0 rgba(255,255,255,.2); }
.gs-primary::before, .gs-listen::before { content: ''; position: absolute; top: -100%; left: -35%; width: 25%; height: 300%; transform: rotate(25deg); background: rgba(255,255,255,.2); transition: left .5s ease; }
.gs-primary:hover::before, .gs-listen:hover::before { left: 115%; }
.gs-primary:hover, .gs-listen:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 16px 38px rgba(147,51,234,.34); }
.gs-primary:active, .gs-listen:active { transform: translateY(0); }
.gs-primary:disabled, .gs-listen:disabled { opacity: .45; cursor: wait; transform: none; }
.gs-primary-hero { display: inline-flex; align-items: center; gap: 11px; padding: 11px 16px 11px 11px; }
.gs-primary-hero > i:last-child { margin-left: 4px; opacity: .7; font-size: .75rem; }
.gs-play { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); }
.gs-play i { margin-left: 2px; }
.gs-secondary { background: transparent; color: rgba(255,255,255,.5); }
.gs-secondary:hover { color: #fff; }
.gs-error, .gs-feedback { position: relative; min-height: 20px; margin-top: 10px; color: #fb7185; font-size: .8rem; }
.gs-how { position: relative; display: flex; justify-content: center; align-items: center; gap: 13px; margin: 5px auto -8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); max-width: 400px; }
.gs-how > div { display: flex; flex-direction: column; gap: 4px; }
.gs-how > div b { color: rgba(192,132,252,.55); font: 700 .58rem monospace; }
.gs-how > div span { color: rgba(255,255,255,.52); font-size: .68rem; }
.gs-how > div span i { margin-right: 4px; color: rgba(255,255,255,.3); }
.gs-how > i { color: rgba(255,255,255,.13); font-size: .55rem; }

.gs-game { padding-top: 24px; }
.gs-game-topline { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: rgba(255,255,255,.34); font-size: .62rem; letter-spacing: .06em; }
.gs-game-topline span:first-child { color: #f9a8d4; font-weight: 800; letter-spacing: .12em; }
.gs-game-topline span:first-child i { color: #ef4444; margin-right: 5px; font-size: .42rem; animation: gs-blink 1s infinite; }
.gs-timer { position: relative; padding: 17px 20px 15px; margin-bottom: 24px; border: 1px solid var(--gs-line); border-radius: 16px; background: rgba(255,255,255,.025); }
.gs-timer-copy { color: rgba(255,255,255,.38); font-size: .57rem; font-weight: 800; letter-spacing: .16em; }
.gs-timer-number { margin-top: 3px; color: #fff; font-size: 2.8rem; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.gs-timer-number small { margin-left: 7px; color: rgba(255,255,255,.34); font-size: .57rem; letter-spacing: .13em; }
.gs-timer-track { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.gs-timer-track div { width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gs-cyan), var(--gs-violet), var(--gs-pink)); box-shadow: 0 0 14px rgba(168,85,247,.65); transition: width .08s linear; }
.gs-live-score { margin-top: 8px; color: rgba(255,255,255,.43); font-size: .67rem; }
.gs-live-score i { color: #fbbf24; margin-right: 4px; }
.gs-live-score span { color: #e9d5ff; font-weight: 800; }
.gs-timer.danger { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.035); }
.gs-timer.danger .gs-timer-number { color: #fb7185; animation: gs-danger .6s ease-in-out infinite alternate; }
.gs-timer.danger .gs-timer-track div { background: linear-gradient(90deg, #f97316, #ef4444); box-shadow: 0 0 14px rgba(239,68,68,.65); }

.gs-player { position: relative; }
.gs-player-visual { position: relative; width: 170px; height: 170px; margin: 0 auto; display: grid; place-items: center; }
.gs-player-visual .gs-vinyl { width: 126px; height: 126px; }
.gs-sound-rings { position: absolute; inset: 0; }
.gs-sound-rings i { position: absolute; inset: 50%; border: 1px solid rgba(192,132,252,.16); border-radius: 50%; transform: translate(-50%,-50%); opacity: 0; }
.gs-sound-rings i:nth-child(1) { animation-delay: 0s; }.gs-sound-rings i:nth-child(2) { animation-delay: .65s; }.gs-sound-rings i:nth-child(3) { animation-delay: 1.3s; }
.gs-player:has(.spinning) .gs-sound-rings i { animation: gs-ring 2s ease-out infinite; }
.gs-waveform { height: 35px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: -5px auto 6px; opacity: .25; }
.gs-waveform i { width: 3px; height: 7px; animation-play-state: paused; }
.gs-waveform i:nth-child(3n) { height: 24px; animation-delay: -.5s; }.gs-waveform i:nth-child(3n+1) { height: 13px; animation-delay: -.2s; }.gs-waveform i:nth-child(4n) { height: 30px; animation-delay: -.8s; }
.gs-waveform.active { opacity: .8; }
.gs-waveform.active i { animation-play-state: running; }
.gs-player p { min-height: 20px; margin: 3px 0 14px; color: var(--gs-muted); font-size: .8rem; }
.gs-listen { padding-inline: 24px; }
.gs-answer { position: relative; max-width: 480px; margin: 22px auto 0; padding-top: 20px; border-top: 1px solid var(--gs-line); }
.gs-answer label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.7); font-size: .76rem; font-weight: 750; text-align: left; }
.gs-input-wrap { position: relative; margin-bottom: 10px; }
.gs-input-icon { position: absolute; z-index: 2; left: 15px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.25); }
.gs-input-wrap input { width: 100%; box-sizing: border-box; padding: 14px 14px 14px 42px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; outline: none; background: rgba(3,4,9,.58); color: #fff; font-size: .93rem; transition: .2s ease; }
.gs-input-wrap input::placeholder { color: rgba(255,255,255,.28); }
.gs-input-wrap input:focus { border-color: rgba(192,132,252,.7); box-shadow: 0 0 0 4px rgba(168,85,247,.1), 0 10px 35px rgba(0,0,0,.2); }
.gs-suggest { position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; right: 0; display: none; max-height: 220px; overflow-y: auto; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(20,21,32,.98); box-shadow: 0 20px 50px rgba(0,0,0,.5); text-align: left; backdrop-filter: blur(18px); }
.gs-suggest button { width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; text-align: left; }
.gs-suggest button:hover { background: rgba(168,85,247,.14); }
.gs-suggest span { display: block; margin-top: 2px; color: rgba(255,255,255,.4); font-size: .67rem; }
.gs-answer-btn { width: 100%; }
.gs-answer-btn span { position: absolute; right: 13px; color: rgba(255,255,255,.42); font-size: .55rem; font-weight: 600; }

.gs-result { isolation: isolate; }
.gs-result-rays { position: absolute; z-index: -1; width: 400px; height: 400px; left: 50%; top: -250px; transform: translateX(-50%); border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(168,85,247,.08) 0 8deg, transparent 8deg 17deg); animation: gs-rays 30s linear infinite; }
.gs-result-icon { position: relative; width: 80px; height: 80px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid rgba(251,191,36,.22); border-radius: 24px; background: rgba(251,191,36,.08); font-size: 2.2rem; transform: rotate(-3deg); }
.gs-result-kicker { color: rgba(255,255,255,.34); font-size: .58rem; font-weight: 800; letter-spacing: .18em; }
.gs-result h2 { margin: 6px 0 5px; color: #fff; font-size: 1.8rem; letter-spacing: -.04em; }
.gs-result > p { margin-top: 0; color: var(--gs-muted); font-size: .85rem; }
.gs-song-card { display: flex; align-items: center; gap: 15px; max-width: 420px; margin: 22px auto; padding: 12px; border: 1px solid var(--gs-line); border-radius: 16px; background: rgba(255,255,255,.04); text-align: left; }
.gs-song-card img, .gs-cover-placeholder { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.gs-cover-placeholder { display: grid; place-items: center; background: #272733; color: #c084fc; }
.gs-song-card strong, .gs-song-card span { display: block; }
.gs-song-card strong { color: #fff; font-size: 1rem; }
.gs-song-card span { margin-top: 5px; color: rgba(255,255,255,.47); font-size: .75rem; }
.gs-points { display: inline-flex; align-items: baseline; gap: 6px; margin: 0 0 21px; padding: 8px 17px; border: 1px solid rgba(192,132,252,.2); border-radius: 99px; background: rgba(168,85,247,.08); color: #d8b4fe; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.gs-points span { color: #fff; font-size: 1.75rem; font-weight: 800; }
.gs-result .gs-primary { display: block; margin: 0 auto 3px; }

.gs-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(2,3,8,.78); backdrop-filter: blur(10px); }
.gs-modal-card { position: relative; width: min(100%, 440px); max-height: 80vh; overflow-y: auto; padding: 26px; border: 1px solid rgba(192,132,252,.2); border-radius: 20px; background: linear-gradient(155deg, #191a26, #101118); color: var(--gs-muted); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gs-modal-card h3 { margin: 0 40px 17px 0; color: #fff; font-size: 1.2rem; }.gs-modal-card h3 i { color: #fbbf24; margin-right: 5px; }
.gs-modal-card p { line-height: 1.6; font-size: .86rem; }
.gs-modal-close { position: absolute; top: 14px; right: 14px; }
.gs-rank-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 11px 7px; border-bottom: 1px solid rgba(255,255,255,.065); border-radius: 8px; }
.gs-rank-item:nth-child(-n+3) > b { color: #fbbf24; }.gs-rank-item.me { background: rgba(168,85,247,.1); color: #e9d5ff; }
.gs-rank-item small { display: block; margin-top: 2px; color: rgba(255,255,255,.38); }

[hidden] { display: none !important; }
@keyframes gs-spin { to { transform: rotate(360deg); } }
@keyframes gs-pulse { 50% { transform: scale(1.15); opacity: .7; } }
@keyframes gs-wave { to { transform: scaleY(.35); filter: brightness(1.4); } }
@keyframes gs-ring { 0% { width: 95px; height: 95px; opacity: .6; } 100% { width: 170px; height: 170px; opacity: 0; } }
@keyframes gs-blink { 50% { opacity: .25; } }
@keyframes gs-danger { to { transform: scale(1.035); } }
@keyframes gs-rays { to { transform: translateX(-50%) rotate(360deg); } }

@media (min-width: 820px) {
    .gs-brand { margin-bottom: 20px; }
    .gs-brand-mark { width: 48px; height: 48px; font-size: 1.05rem; }
    .gs-brand h1 { font-size: 1.85rem; }
    .gs-brand-actions { gap: 10px; }
    .gs-icon-btn { width: 44px; height: 44px; }

    .gs-stats {
        width: 520px;
        margin: 0 0 16px auto;
        padding-block: 14px;
        background: linear-gradient(90deg, rgba(255,255,255,.018), rgba(168,85,247,.045));
    }

    .gs-hero {
        min-height: 500px;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: minmax(330px, .9fr) minmax(430px, 1.1fr);
        grid-template-rows: auto auto auto auto auto auto;
        column-gap: 54px;
        align-content: center;
        padding: 48px 58px 42px;
        text-align: left;
        background:
            radial-gradient(circle at 22% 48%, rgba(124,58,237,.24), transparent 31%),
            radial-gradient(circle at 88% 0%, rgba(236,72,153,.08), transparent 29%),
            linear-gradient(145deg, rgba(19,20,33,.98), rgba(8,9,16,.99));
    }

    .gs-hero::after {
        content: '';
        position: absolute;
        top: 48px;
        bottom: 48px;
        left: 43.5%;
        width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(192,132,252,.2), transparent);
    }

    .gs-stage {
        grid-column: 1;
        grid-row: 1 / 7;
        width: 100%;
        height: 100%;
        min-height: 390px;
        align-self: stretch;
    }
    .gs-stage-glow { width: 320px; height: 320px; }
    .gs-stage .gs-vinyl { width: 232px; height: 232px; }
    .gs-stage .gs-vinyl-label { width: 72px; height: 72px; font-size: 1.25rem; }
    .gs-stage::after { bottom: 55px; width: 320px; height: 30px; }
    .gs-equalizer { position: absolute; z-index: 3; bottom: 72px; width: 92px; }
    .gs-equalizer-left { left: 5px; }
    .gs-equalizer-right { right: 5px; }

    .gs-hero-badge { grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 18px; }
    .gs-hero h2 { grid-column: 2; grid-row: 2; margin-bottom: 14px; font-size: clamp(2.25rem, 3vw, 2.8rem); line-height: 1.04; }
    .gs-hero > p { grid-column: 2; grid-row: 3; max-width: 500px; margin: 0; font-size: .98rem; }
    .gs-score-scale { grid-column: 2; grid-row: 4; width: 100%; margin: 25px 0 22px; }
    .gs-score-scale > span { justify-content: flex-start; padding: 12px 10px; }
    .gs-score-scale > span > i { width: 18px; text-align: center; }
    .gs-hero > .gs-primary { grid-column: 2; grid-row: 5; justify-self: start; }
    .gs-hero > .gs-error { grid-column: 2; grid-row: 6; justify-self: start; }
    .gs-how { grid-column: 2; grid-row: 7; width: 100%; max-width: none; justify-content: flex-start; margin: 5px 0 -5px; }
}

@media (max-width: 580px) {
    .gs-main { width: min(100% - 20px, 680px); min-height: auto; margin-top: 10px; }
    .gs-hero, .gs-game, .gs-result { padding: 26px 17px; border-radius: 23px; }
    .gs-stage { height: 175px; }.gs-vinyl { width: 135px; height: 135px; }
    .gs-equalizer { width: 52px; gap: 4px; }.gs-equalizer i { width: 3px; }
    .gs-score-scale { gap: 5px; }.gs-score-scale > span { gap: 5px; padding-inline: 4px; }.gs-score-scale > span > i { display: none; }
    .gs-how { gap: 9px; }.gs-game-topline span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gs-vinyl, .gs-stage-glow, .gs-equalizer i, .gs-waveform i, .gs-sound-rings i, .gs-result-rays { animation: none !important; }
    * { scroll-behavior: auto !important; }
}

/* Light theme: surfaces, content and interaction states. */
:is(html.light-theme-early, body.light-theme) .gs-brand h1,
:is(html.light-theme-early, body.light-theme) .gs-stats b,
:is(html.light-theme-early, body.light-theme) .gs-hero h2,
:is(html.light-theme-early, body.light-theme) .gs-score-scale b,
:is(html.light-theme-early, body.light-theme) .gs-timer-number,
:is(html.light-theme-early, body.light-theme) .gs-result h2,
:is(html.light-theme-early, body.light-theme) .gs-song-card strong,
:is(html.light-theme-early, body.light-theme) .gs-points span,
:is(html.light-theme-early, body.light-theme) .gs-modal-card h3,
:is(html.light-theme-early, body.light-theme) .gs-suggest button {
    color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .gs-kicker,
:is(html.light-theme-early, body.light-theme) .gs-icon-btn,
:is(html.light-theme-early, body.light-theme) .gs-modal-close,
:is(html.light-theme-early, body.light-theme) .gs-stats span,
:is(html.light-theme-early, body.light-theme) .gs-score-scale small,
:is(html.light-theme-early, body.light-theme) .gs-secondary,
:is(html.light-theme-early, body.light-theme) .gs-how > div span,
:is(html.light-theme-early, body.light-theme) .gs-how > div span i,
:is(html.light-theme-early, body.light-theme) .gs-how > i,
:is(html.light-theme-early, body.light-theme) .gs-game-topline,
:is(html.light-theme-early, body.light-theme) .gs-timer-copy,
:is(html.light-theme-early, body.light-theme) .gs-timer-number small,
:is(html.light-theme-early, body.light-theme) .gs-live-score,
:is(html.light-theme-early, body.light-theme) .gs-answer label,
:is(html.light-theme-early, body.light-theme) .gs-input-icon,
:is(html.light-theme-early, body.light-theme) .gs-result-kicker,
:is(html.light-theme-early, body.light-theme) .gs-song-card span,
:is(html.light-theme-early, body.light-theme) .gs-rank-item small {
    color: var(--text-muted, #526070);
}

:is(html.light-theme-early, body.light-theme) .gs-hero,
:is(html.light-theme-early, body.light-theme) .gs-game,
:is(html.light-theme-early, body.light-theme) .gs-result {
    background: radial-gradient(circle at 30% 0%, rgba(124, 58, 237, .09), transparent 55%), #fff; border-color: #d5c5ed; box-shadow: 0 20px 60px rgba(56, 37, 89, .12);
}

:is(html.light-theme-early, body.light-theme) .gs-stats,
:is(html.light-theme-early, body.light-theme) .gs-timer,
:is(html.light-theme-early, body.light-theme) .gs-song-card {
    background: var(--surface, #fff); border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .gs-icon-btn,
:is(html.light-theme-early, body.light-theme) .gs-modal-close,
:is(html.light-theme-early, body.light-theme) .gs-score-scale > span {
    background: var(--surface2, #f8f7f3); border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .gs-icon-btn:hover,
:is(html.light-theme-early, body.light-theme) .gs-modal-close:hover {
    background: #edeaf5; border-color: rgba(109, 40, 217, .22); color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .gs-secondary:hover {
    color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .gs-hero h2 em,
:is(html.light-theme-early, body.light-theme) .gs-hero-badge,
:is(html.light-theme-early, body.light-theme) .gs-score-scale > span,
:is(html.light-theme-early, body.light-theme) .gs-how > div b,
:is(html.light-theme-early, body.light-theme) .gs-live-score span,
:is(html.light-theme-early, body.light-theme) .gs-points,
:is(html.light-theme-early, body.light-theme) .gs-rank-item.me {
    color: #6d28d9;
}

:is(html.light-theme-early, body.light-theme) .gs-hero-badge i,
:is(html.light-theme-early, body.light-theme) .gs-score-scale > span:nth-child(2),
:is(html.light-theme-early, body.light-theme) .gs-game-topline span:first-child {
    color: #be185d;
}

:is(html.light-theme-early, body.light-theme) .gs-score-scale > span:nth-child(3),
:is(html.light-theme-early, body.light-theme) .gs-error,
:is(html.light-theme-early, body.light-theme) .gs-feedback,
:is(html.light-theme-early, body.light-theme) .gs-timer.danger .gs-timer-number {
    color: #b91c1c;
}

:is(html.light-theme-early, body.light-theme) .gs-timer-track {
    background: #dce1e7; box-shadow: inset 0 1px 3px rgba(30, 41, 59, .1);
}

:is(html.light-theme-early, body.light-theme) .gs-live-score i,
:is(html.light-theme-early, body.light-theme) .gs-modal-card h3 i,
:is(html.light-theme-early, body.light-theme) .gs-rank-item:nth-child(-n+3) > b {
    color: var(--accent-ink, #806117);
}

:is(html.light-theme-early, body.light-theme) .gs-how,
:is(html.light-theme-early, body.light-theme) .gs-answer,
:is(html.light-theme-early, body.light-theme) .gs-rank-item {
    border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .gs-input-wrap input {
    background: var(--surface2, #f8f7f3); border-color: var(--border, rgba(30, 41, 59, .12)); color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .gs-input-wrap input::placeholder,
:is(html.light-theme-early, body.light-theme) .gs-suggest span {
    color: var(--text-muted, #526070);
}

:is(html.light-theme-early, body.light-theme) .gs-suggest,
:is(html.light-theme-early, body.light-theme) .gs-modal-card {
    background: var(--surface, #fff); border-color: var(--border, rgba(30, 41, 59, .12)); box-shadow: 0 20px 60px rgba(56, 37, 89, .16);
}

:is(html.light-theme-early, body.light-theme) .gs-cover-placeholder {
    background: #ede9fe; color: #6d28d9;
}

:is(html.light-theme-early, body.light-theme) .gs-primary,
:is(html.light-theme-early, body.light-theme) .gs-listen {
    background: linear-gradient(105deg, #6d28d9, #a21caf 55%, #be185d); color: #fff;
}

:is(html.light-theme-early, body.light-theme) .gs-answer-btn span {
    color: rgba(255, 255, 255, .85);
}

html.light-theme-early body.gs-page,
body.gs-page.light-theme {
    --gs-card: #fff;
    --gs-line: rgba(30, 41, 59, .14);
    --gs-muted: #526070;
    background: radial-gradient(circle at 50% -15%, rgba(124, 58, 237, .08), transparent 40%), var(--bg, #f4f1ea);
}

:is(html.light-theme-early, body.light-theme) .gs-brand-mark { color: #6d28d9; }
