
:root{color-scheme:dark;--bg:#0b0f14;--card:#101d30;--border:#315071;--text:#f2f7ff;--muted:#b9c9db;--hot:#e445ff;--lime:#3df2e0;--ice:#3df2e0}
body{background:radial-gradient(ellipse at 75% 0,#102943 0,transparent 48%),#0b0f14;color:var(--text);font-family:system-ui,sans-serif}
[hidden]{display:none!important}button,input,select,a{touch-action:manipulation}button,a.sg-action{min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #3df2e0;outline-offset:3px}button:disabled{cursor:default}button:active:not(:disabled),.sg-action:active{transform:translateY(2px)}h1,h2,h3{overflow-wrap:anywhere}
.sg-action{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;background:#3df2e0;color:#08141d;border:1px solid #3df2e0;padding:10px 16px;font-weight:800;border-radius:5px}.sg-action.secondary{color:#e5f5ff;background:#0e2a47;border-color:#466483}.sg-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.sg-links>*{flex:1 1 135px}.sg-eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:800;color:#3df2e0}.sg-local{font-size:.85rem;color:#b9c9db}.sg-note{border-left:3px solid #3df2e0;padding:10px 14px;background:#0e2a47;line-height:1.5}.sg-settings{position:fixed;bottom:18px;right:18px;z-index:20;min-width:44px;background:#0e2a47;color:#3df2e0;border:1px solid #3df2e0;box-shadow:3px 3px 0 #07101c;border-radius:5px}.sg-settings-dialog{width:min(420px,calc(100vw - 24px));background:#101d30;color:#f2f7ff;border:1px solid #3df2e0;padding:24px;border-radius:8px}.sg-settings-dialog::backdrop{background:#000b}.sg-settings-dialog label{display:flex;justify-content:space-between;align-items:center;margin:15px 0;gap:12px}.sg-settings-dialog input[type=checkbox]{width:22px;height:22px;accent-color:#3df2e0}.sg-settings-dialog input[type=range]{max-width:55%;accent-color:#3df2e0}
.title-stage .marquee{display:grid;justify-items:center;gap:18px}.title-stage .sg-tagline{margin:0;font-weight:700;letter-spacing:.14em;color:#b9d8e8;text-align:center}.title-stage .enter{transition:filter .2s,transform .2s}.title-stage .enter:hover{filter:drop-shadow(0 0 12px #3df2e0)}.title-stage .marquee h1{animation:sg-rise .55s ease both}@keyframes sg-rise{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.lobby-page .nav{gap:12px}.lobby-page .nav nav{gap:12px}.lobby-page .hero{padding-block:28px 20px}.lobby-page .hero .lede{max-width:58ch}.sg-playerbar{display:flex;align-items:center;gap:12px;border:1px solid #315071;border-left:4px solid #3df2e0;background:#101d30;margin:18px 0 0;padding:14px;min-width:0}.sg-playerbar img{width:52px;height:52px;object-fit:contain;image-rendering:pixelated;border:1px solid #3df2e0;background:#0e2a47}.sg-playerbar .sg-info{flex:1;min-width:0;overflow-wrap:anywhere}.sg-playerbar small{display:block;color:#b9c9db}.sg-wallet{color:#ffd45a;font-weight:800;text-align:right;white-space:nowrap}.sg-playerbar progress{display:block;width:min(240px,100%);height:8px;accent-color:#3df2e0;margin:5px 0}.sg-playerbar .sg-action{min-height:44px}.lobby-page.sg-signed .hero{grid-template-columns:1fr minmax(110px,230px);align-items:center;gap:12px}.lobby-page.sg-signed .hero h1{font-size:clamp(1.6rem,4vw,2.8rem)}.lobby-page.sg-signed .hero .actions{display:none}.lobby-page.sg-signed .hero .lede{margin:6px 0}.lobby-page .games{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:16px}.lobby-page .game{cursor:pointer;position:relative;border:1px solid #315071;background:#101d30;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0;transition:border-color .2s,transform .2s}.lobby-page .game:hover,.lobby-page .game:focus-within{border-color:#3df2e0;transform:translateY(-2px)}.lobby-page .game .game-icon{width:100%;height:100px;object-fit:cover;image-rendering:pixelated;border:1px solid #315071;background:#0e2a47}.lobby-page .game h3{font-size:1.35rem;line-height:1.2}.lobby-page .game p{font:400 .95rem/1.5 system-ui,sans-serif;margin:0;color:#d0e0ef}.lobby-page .game small{margin-top:auto;color:#3df2e0}.lobby-page .game .play-practice{min-height:44px;display:flex;align-items:center;justify-content:center;background:#3df2e0;color:#071319;font-weight:800;padding:8px;text-decoration:none}.sg-nav{display:flex;gap:6px;justify-content:center;background:#101d30;border-top:1px solid #315071;padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom));position:sticky;bottom:0;z-index:10}.sg-nav a{flex:1;max-width:150px;min-height:44px;display:grid;place-items:center;font-weight:700;color:#c3d5e8;font-size:.85rem;text-align:center}.sg-nav a[aria-current=page]{color:#3df2e0;background:#0e2a47;border-bottom:2px solid #3df2e0}.lobby-page .sg-settings{bottom:90px}
.practice-room,.rare-shell{max-width:800px;padding:clamp(12px,3vw,30px);margin:auto}.practice-room h1,.rare-title h1{font-size:clamp(1.7rem,5vw,2.8rem);margin:14px 0}.practice-room header,.rare-header{min-height:48px;border-bottom:1px solid #315071}.question-card,.rare-card,.progress-card{background:#101d30;border-color:#315071;border-radius:6px;box-shadow:4px 4px 0 #07121e}.question-card{border-top:4px solid #3df2e0}.question-card h2:not(.sg-result-title),#daily-prompt,#prompt,#question,.rare-card h2{font-family:system-ui,sans-serif;font-size:clamp(1.15rem,3.4vw,1.65rem);line-height:1.4;letter-spacing:0}.question-card #choices,.daily-page #daily-choices{display:grid;grid-template-columns:1fr;gap:10px;counter-reset:answer}.question-card #choices button,.daily-page #daily-choices button{counter-increment:answer;display:flex;align-items:center;gap:12px;text-align:left;font-family:system-ui,sans-serif;font-size:1rem;line-height:1.4;min-height:56px;background:#0e2a47;color:#f2f7ff;border:1px solid #456583;border-radius:5px;box-shadow:none;padding:12px}.question-card #choices button:before,.daily-page #daily-choices button:before{content:counter(answer,upper-alpha);display:grid;place-items:center;flex:0 0 30px;height:30px;background:#203a57;color:#3df2e0;border:1px solid #456583;font-weight:800;border-radius:3px}.question-card #choices button.correct{border-color:#3df2e0;background:#17433c}.question-card #choices button.incorrect{border-color:#ff88b7;background:#48223a}.question-card #choices button:enabled:hover,.daily-page #daily-choices button:enabled:hover{border-color:#3df2e0;background:#1d405c}.question-card #choices button:disabled{opacity:.8}.sg-players{flex-wrap:nowrap}.sg-player{min-width:0}.sg-player-info{font-family:system-ui,sans-serif}.sg-name{font-size:1rem}.sg-result-title{font-family:Pixelify,monospace!important}.sg-result-copy{font-family:system-ui,sans-serif}.sg-result[data-outcome=win]{animation:sg-rise .35s ease both}.sg-rounds{display:flex;gap:5px;margin:12px 0}.sg-rounds span{flex:1;height:7px;background:#2c415a;border-radius:2px}.sg-rounds .done{background:#3df2e0}.sg-rounds .current{background:#e445ff}.sg-countdown{font:800 1.25rem/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#ffd45a;display:block;margin:8px 0}.sg-countdown.urgent{color:#ff88b7}.sg-mini-crow{width:90px;max-height:62px;object-fit:contain;float:right;margin:0 0 6px 10px;image-rendering:pixelated}.sg-mini-crow.sg-react{animation:sg-hop .35s ease}@keyframes sg-hop{50%{transform:translateY(-5px);filter:drop-shadow(0 0 8px #3df2e0)}}.sg-review{margin:15px 0;padding:12px;background:#0b1523;border:1px solid #315071}.sg-review li{margin:10px 0;line-height:1.5}.rare-card input,.sg-settings-dialog input{font-family:system-ui,sans-serif}.rare-card input{font-size:16px;min-height:48px}.rare-card .rare-topline{font-variant-numeric:tabular-nums}.rare-modes a{min-height:44px;display:grid;place-items:center}.rare-player strong{overflow-wrap:anywhere}.daily-page .progress-layout{display:block}.daily-page .progress-layout>section:not(#daily-panel):not(.sg-daily-rank),.daily-page #dashboard>section:not(.player-card){display:none}.daily-page #dashboard .player-card{margin-bottom:14px}.daily-page .sg-daily-rank{margin-top:16px}.daily-page #daily-panel{max-width:800px;margin:auto}.daily-page #daily-choices{margin:18px 0}.sg-profile-page .progress-layout #daily-panel{display:none}.sg-profile-page .progress-layout{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}.sg-profile-page .progress-main>h1{font-size:clamp(2rem,5vw,3.8rem)}.sg-auth-tools{display:flex;align-items:center;gap:10px}.sg-auth-tools button{min-height:44px}.sg-auth-tools input{flex:1;min-width:0}.sg-practice-setup{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.sg-practice-setup select{max-width:100%;min-height:44px;background:#0e2a47;color:#fff;border:1px solid #456583;padding:8px}.sg-practice-setup button{flex:1}.sg-loading{animation:sg-pulse 1.3s infinite alternate}@keyframes sg-pulse{to{opacity:.55}}
@media(max-width:600px){.lobby-page .nav nav a{display:none}.lobby-page .hero{gap:12px;padding-top:18px}.lobby-page .hero h1{font-size:clamp(2rem,8vw,3rem)}.lobby-page .hero .mascot{max-height:220px}.lobby-page.sg-signed .hero{grid-template-columns:minmax(0,1fr) minmax(95px,34%)}.lobby-page.sg-signed .hero .mascot{max-height:130px}.lobby-page .games{grid-template-columns:1fr}.lobby-page .game{display:grid;grid-template-columns:80px minmax(0,1fr);gap:7px 12px}.lobby-page .game .game-icon{grid-row:1/5;width:80px;height:80px}.lobby-page .game h3,.lobby-page .game p,.lobby-page .game small,.lobby-page .game a{grid-column:2}.lobby-page .game h3{font-size:1.2rem}.lobby-page .game .play-practice{font-size:.9rem}.sg-playerbar{gap:8px;padding:10px}.sg-playerbar img{width:42px;height:42px}.sg-playerbar .sg-wallet{font-size:.9rem}.sg-playerbar .sg-action{display:none}.sg-nav{position:fixed;left:0;right:0}.lobby-page{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.sg-settings{right:10px;bottom:12px}.lobby-page .sg-settings{bottom:84px}.question-card{padding:15px}.sg-mini-crow{width:65px}.sg-player{padding:7px;gap:6px}.sg-player .sg-portrait{width:40px;height:40px}.sg-player .sg-name{font-size:.85rem}.sg-links{gap:7px}}
@media(max-height:450px) and (orientation:landscape){.sg-nav{position:static}.lobby-page{padding-bottom:0}.lobby-page .sg-settings{bottom:12px}.title-stage .marquee{gap:5px}.title-stage .marquee img{max-height:43vh;object-fit:contain}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}html.sg-reduced *,html.sg-reduced *::before,html.sg-reduced *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

.sg-resume{display:flex;flex-wrap:wrap;gap:8px;padding:14px;background:#10233a;border:1px solid #3df2e0;margin:12px 0}.sg-resume h3{width:100%;font-size:1.1rem}.sg-avatar-choice{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px;min-width:0}.sg-avatar-choice img{object-fit:contain;image-rendering:pixelated}.sg-avatar-choice[aria-pressed=true]{border:2px solid #3df2e0}.sg-avatar-choice span{font-size:.8rem;overflow-wrap:anywhere}.sg-profile-page #sg-account-panel ul{list-style:none;padding:0}.sg-profile-page #sg-account-panel li{padding:8px 0;border-bottom:1px solid #315071}.sg-profile-page #sg-account-panel .sg-wallet{text-align:left;font-size:1.4rem}.sg-answer-feedback{min-height:1.5em;color:#d2f5ef;font-weight:700}.sg-match-ready{color:#e445ff;font-weight:800}

.lobby-page:not(.sg-signed) .hero{grid-template-columns:minmax(0,1fr) minmax(120px,35%);align-items:center;gap:12px;padding-block:20px 16px}.lobby-page:not(.sg-signed) .hero h1{font-size:clamp(1.8rem,5vw,3.7rem)}.lobby-page:not(.sg-signed) .hero .lede{font-size:clamp(.9rem,2.8vw,1.1rem);line-height:1.45;margin:8px 0 12px}.lobby-page:not(.sg-signed) .hero .actions{gap:8px;flex-wrap:wrap}.lobby-page:not(.sg-signed) .hero .actions a{min-height:44px;display:inline-flex;align-items:center}.lobby-page:not(.sg-signed) .hero .mascot{max-height:180px}.sg-settings.sg-inline-settings{position:static;min-width:40px;min-height:40px;margin-left:4px;padding:6px;flex:none;box-shadow:none}.sg-practice-options{margin:8px 0 12px;padding:9px 12px;border:1px solid #315071;background:#101d30;border-radius:5px}.sg-practice-options summary,.sg-room-panel summary{cursor:pointer;color:#3df2e0;font-weight:700;padding:6px 0}.sg-room-panel{margin:12px 0;border:1px solid #315071;background:#0b1523;padding:12px;border-radius:6px}.sg-room-panel input,.sg-reset input{display:block;width:100%;min-height:44px;margin:10px 0;padding:10px;font:inherit;font-size:16px;color:#f2f7ff;border:1px solid #456583;background:#0e2a47;border-radius:4px}.sg-room-panel button{width:100%;margin:5px 0}.sg-room-panel p{line-height:1.5;color:#c3d5e8;overflow-wrap:anywhere}.sg-room-panel strong{font-size:1.35rem;color:#3df2e0;letter-spacing:.08em}.sg-reset{max-width:600px;margin:auto;padding:20px}.sg-reset form{display:grid;gap:12px}.sg-reset form[hidden]{display:none}.sg-reset form label{display:grid;gap:5px}.sg-reset .question-card{padding:20px}.sg-reset #reset-message{line-height:1.5}.sg-game-cta{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.sg-game-cta a{flex:1}.sg-practice-setup{margin-bottom:2px}.question-card #meter{appearance:none;height:8px;border:0;background:#2c415a;border-radius:3px}.question-card #meter::-webkit-progress-bar{background:#2c415a;border-radius:3px}.question-card #meter::-webkit-progress-value{background:#3df2e0;border-radius:3px}.question-card #meter::-moz-progress-bar{background:#3df2e0}
@media(max-width:600px){.lobby-page:not(.sg-signed) .hero{grid-template-columns:minmax(0,1fr) minmax(80px,29%);gap:8px;padding-block:16px}.lobby-page:not(.sg-signed) .hero .mascot{max-height:115px;align-self:start;margin-top:36px}.lobby-page:not(.sg-signed) .hero .actions{display:grid;grid-template-columns:1fr;gap:6px}.lobby-page:not(.sg-signed) .hero .actions a,.lobby-page:not(.sg-signed) .hero .actions button{font-size:.9rem;padding:8px;justify-content:center}.lobby-page:not(.sg-signed) .hero h1{font-size:1.9rem}.practice-room h1{font-size:1.65rem;margin:10px 0}.practice-room .question-card{padding:12px}.question-card .sg-players{margin:7px 0 12px}.question-card #choices button{min-height:48px;padding:8px}.question-card #choices{gap:8px;margin-top:12px}.question-card #category{margin:14px 0 5px}.sg-mini-crow{width:55px}.practice-room .sg-practice-options{margin:5px 0 10px}.sg-settings.sg-inline-settings{margin-left:0;min-height:36px;min-width:36px}.practice-room header,.rare-header{gap:6px}.practice-room header span{font-size:.85rem}}

@media(max-width:600px){.lobby-page .top .nav{min-height:64px;padding-block:8px;gap:8px}.lobby-page .top .nav .logo img{max-width:152px}.lobby-page .top .nav nav{margin-left:auto}.lobby-page .game{grid-template-columns:74px minmax(0,1fr);padding:12px;gap:5px 10px}.lobby-page .game .game-icon{width:74px;height:74px;grid-row:1/4}.lobby-page .game .play-practice{grid-column:2;min-height:44px;width:100%;justify-self:stretch;align-self:stretch}.lobby-page .game p{font-size:.875rem;line-height:1.4}.lobby-page .game small{font-size:.78rem;line-height:1.3}.lobby-page:not(.sg-signed) .hero .actions #start{background:#0e2a47;color:#3df2e0;border:1px solid #3df2e0;box-shadow:none}.lobby-page .sg-settings.sg-inline-settings{bottom:auto}.lobby-page .hero .actions .sg-action{font-size:.9rem}.lobby-page .sg-playerbar{margin-top:12px}}
.sg-settings-dialog label{line-height:1.35}.sg-settings-dialog .sg-volume-head{color:#3df2e0;font-size:.8rem;margin:18px 0 0;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.sg-settings-dialog .sg-volume-label{font-size:.9rem}.sg-settings-dialog button{margin-top:10px}.lobby-page .game .game-icon{object-fit:contain}.sg-mini-crow.sg-react{filter:drop-shadow(0 0 6px #3df2e0)}

.rare-title{padding:14px 0 10px}.rare-title h1{font-size:clamp(2.4rem,8vw,4.4rem);line-height:1.05;letter-spacing:.035em;text-shadow:2px 2px 0 #102a45!important}.rare-title p{margin:7px 0}.rare-rules summary{font-weight:800;color:#3df2e0;cursor:pointer;padding:12px 0}.rare-rules{border-top:1px solid #315071;margin-top:16px}.sg-action{ text-align:center}.sg-starters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border:0;padding:0;margin:6px 0 12px}.sg-starters legend{font-weight:700;margin-bottom:8px}.sg-starters label{position:relative;margin:0!important;display:block;cursor:pointer}.sg-starters label input{position:absolute;opacity:0;width:1px;height:1px}.sg-starters label span{display:flex;flex-direction:column;align-items:center;gap:3px;background:#0e2a47;border:1px solid #315071;border-radius:4px;padding:6px;font-size:.75rem;text-align:center;line-height:1.2}.sg-starters label img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated}.sg-starters label input:checked+span{border:2px solid #3df2e0;background:#173b4f}.sg-starters label input:focus-visible+span{outline:3px solid #3df2e0;outline-offset:2px}.sg-starters[hidden]{display:none!important}.sg-own-rank{padding:12px;background:#0e2a47;border-left:3px solid #3df2e0;font-weight:700;color:#3df2e0}.sg-welcome-toast{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:99;background:#101d30;color:#e7fcff;border:1px solid #3df2e0;padding:12px 20px;max-width:calc(100% - 20px);box-shadow:4px 4px 0 #07121e;font-weight:700;text-align:center}.sg-welcome-toast button{margin-left:8px;min-height:32px;padding:4px 8px}

#sg-audio-status{min-height:1.4em;margin:8px 0;line-height:1.35}#answer-form #answer{scroll-margin-block:16px;touch-action:auto}

/* One lobby slot per game family; explicit mode links never start the wrong game. */
.lobby-page #games.games{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.lobby-page #games .sg-game-group{display:flex;flex-direction:column;gap:14px;padding:16px;cursor:default;min-width:0}
.lobby-page #games .sg-game-group:hover{transform:none}
.lobby-page #games .sg-game-head{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:start;gap:14px}
.lobby-page #games .sg-game-head .game-icon{width:88px;height:88px;grid-row:auto;object-fit:contain;margin:0}
.lobby-page #games .sg-game-copy{display:grid;gap:5px;min-width:0}
.lobby-page #games .sg-game-copy h3{margin:0;font-size:1.35rem;line-height:1.15}
.lobby-page #games .sg-game-copy small{margin:0;font:700 .77rem/1.35 system-ui,sans-serif;color:#3df2e0;letter-spacing:.035em;text-transform:uppercase}
.lobby-page #games .sg-game-copy p{margin:0;font:400 .9rem/1.45 system-ui,sans-serif;color:#c8d8e8}
.lobby-page #games .sg-game-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto}
.lobby-page #games .sg-game-modes.sg-single-mode{grid-template-columns:1fr}
.lobby-page #games .sg-mode-link{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:11px 12px;min-height:60px;min-width:0;background:#0e2a47;border:1px solid #3df2e0;color:#3df2e0;text-decoration:none!important;border-radius:4px;box-shadow:2px 2px 0 #07121e;transition:background .15s,transform .15s}
.lobby-page #games .sg-mode-link strong{font:800 .9rem/1.3 system-ui,sans-serif;overflow-wrap:anywhere}
.lobby-page #games .sg-mode-link span{font:400 .75rem/1.35 system-ui,sans-serif;color:#c8d8e8;overflow-wrap:anywhere}
.lobby-page #games .sg-versus-mode{border-color:#e445ff;color:#f18dff;background:#261b3b}
.lobby-page #games .sg-single-mode .sg-mode-link{background:#3df2e0;color:#0b0f14;flex-direction:row;align-items:center;justify-content:space-between;min-height:48px}
.lobby-page #games .sg-single-mode .sg-mode-link span{color:#163e48}
.lobby-page #games .sg-mode-link:hover,.lobby-page #games .sg-mode-link:focus-visible{filter:brightness(1.2);transform:translateY(-1px)}
@media(max-width:700px){.lobby-page #games.games{grid-template-columns:1fr}.lobby-page #games .sg-game-group{padding:12px;gap:11px}.lobby-page #games .sg-game-head{grid-template-columns:64px minmax(0,1fr);gap:10px}.lobby-page #games .sg-game-head .game-icon{width:64px;height:64px}.lobby-page #games .sg-game-copy h3{font-size:1.2rem}.lobby-page #games .sg-game-copy p{font-size:.85rem}.lobby-page #games .sg-mode-link{padding:9px;min-height:58px}.lobby-page #games .sg-mode-link strong{font-size:.85rem}.lobby-page #games .sg-mode-link span{font-size:.7rem}}


/* Grouped lobby cards: isolate nested grids from old flat-card grid placement. */
.lobby-page #games .sg-game-group{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;gap:12px}
.lobby-page #games .sg-game-head{width:100%;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:12px}
.lobby-page #games .sg-game-head .game-icon{grid-column:1;grid-row:1;width:72px;height:72px;max-width:100%}
.lobby-page #games .sg-game-copy{grid-column:2;display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0}
.lobby-page #games .sg-game-copy h3,.lobby-page #games .sg-game-copy p,.lobby-page #games .sg-game-copy small{grid-column:auto;grid-row:auto;align-self:stretch;justify-self:auto;text-align:left;width:auto}
.lobby-page #games .sg-game-modes{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;align-items:stretch;justify-items:stretch;gap:8px;margin-top:auto}
.lobby-page #games .sg-game-modes.sg-single-mode{grid-template-columns:minmax(0,1fr)}
.lobby-page #games .sg-game-modes>.sg-mode-link{grid-column:auto;grid-row:auto;justify-self:stretch;align-self:stretch;width:100%;min-width:0;margin:0;min-height:58px;box-sizing:border-box}
.lobby-page #games .sg-single-mode>.sg-mode-link{min-height:46px;flex-wrap:wrap}
@media(max-width:700px){.lobby-page #games.games{grid-template-columns:minmax(0,1fr);gap:12px}.lobby-page #games .sg-game-group{padding:12px;gap:10px}.lobby-page #games .sg-game-head{grid-template-columns:50px minmax(0,1fr);gap:10px}.lobby-page #games .sg-game-head .game-icon{width:50px;height:50px}.lobby-page #games .sg-game-copy h3{font-size:1.18rem}.lobby-page #games .sg-game-copy p{font-size:.85rem;line-height:1.4}.lobby-page #games .sg-game-modes>.sg-mode-link{padding:9px;min-height:54px}.lobby-page #games .sg-single-mode>.sg-mode-link{min-height:46px}}
@media(max-width:350px){.lobby-page #games .sg-game-head{grid-template-columns:42px minmax(0,1fr);gap:8px}.lobby-page #games .sg-game-head .game-icon{width:42px;height:42px}.lobby-page #games .sg-game-modes>.sg-mode-link{padding:7px}.lobby-page #games .sg-mode-link strong{font-size:.8rem}.lobby-page #games .sg-mode-link span{font-size:.68rem}}

/* Interactive mascot: original artwork, registered SVG eye, no layout-affecting animation. */
.lobby-page .hero #mascot{width:100%;max-width:520px;max-height:none;min-width:0;margin:0;align-self:center}
#sg-crow-touch{display:block;position:relative;width:100%;min-width:0;min-height:44px;padding:0;background:transparent;color:#3df2e0;border:1px solid transparent;border-radius:6px;box-shadow:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#sg-crow-touch:hover{filter:none;border-color:#3df2e055}#sg-crow-touch:focus-visible{outline:2px solid #3df2e0;outline-offset:3px}
.sg-crow-scene{position:relative;display:block;isolation:isolate;line-height:0}
#mascot .hero-wojak{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.sg-crow-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden;color:#3df2e0}
.sg-crow-eye,.sg-crow-eye-shine{filter:drop-shadow(0 0 4px #52dfff)}
.sg-crow-trail{filter:drop-shadow(0 0 4px #52dfff);animation:sg-crow-eye-pulse 2.8s steps(3,end) infinite alternate}
.sg-crow-blink{opacity:0;animation:sg-crow-blink 7s steps(1,end) infinite}
.sg-crow-sparks,.sg-crow-processing,.sg-crow-zzz,.sg-crow-reward{opacity:0}
.sg-crow-hint{display:block;font:700 10px/1.3 system-ui,sans-serif;letter-spacing:.13em;text-align:center;color:#a0eceb;padding:5px 1px 2px}
.sg-crow-dialogue{grid-column:1/-1;justify-self:end;display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 10px;min-width:0;width:min(100%,520px);min-height:42px;padding:8px 11px;background:#0e2a47;border:1px solid #345e70;border-left:3px solid #3df2e0;border-radius:4px;font:500 .84rem/1.4 system-ui,sans-serif;color:#e7f7ff;overflow-wrap:anywhere}
.sg-crow-mood{color:#3df2e0;font-size:.66rem;font-weight:800;letter-spacing:.08em;white-space:nowrap}
#mascot[data-state="sleep"] .sg-crow-blink{opacity:1;animation:none}
#mascot[data-state="sleep"] .sg-crow-eye,#mascot[data-state="sleep"] .sg-crow-eye-shine,#mascot[data-state="sleep"] .sg-crow-trail{opacity:0;animation:none}
#mascot[data-state="sleep"] .sg-crow-zzz{opacity:.8;animation:sg-crow-pixels 2s steps(4,end) infinite alternate}
#mascot:is([data-state="think"],[data-state="loading"],[data-state="laptop"],[data-state="select"]) .sg-crow-processing{opacity:.9;animation:sg-crow-pixels .8s steps(4,end) infinite alternate}
#mascot:is([data-state="happy"],[data-state="wake"],[data-state="welcome"],[data-state="curious"],[data-state="secret"],[data-state="correct"],[data-state="streak"],[data-state="books"],[data-state="cup"]) .sg-crow-sparks{opacity:.95;animation:sg-crow-pixels .65s steps(4,end) 3 alternate}
#mascot:is([data-state="happy"],[data-state="wake"],[data-state="secret"],[data-state="reward"],[data-state="win"]) .sg-crow-scene{animation:sg-crow-nudge .4s steps(4,end)}
#mascot:is([data-state="reward"],[data-state="win"]) .sg-crow-reward{opacity:1;animation:sg-crow-pixels .8s steps(4,end) 4 alternate}
#mascot:is([data-state="loss"],[data-state="incorrect"]) .sg-crow-sparks{color:#e445ff;opacity:.6;animation:sg-crow-pixels .8s steps(3,end) 2}
#mascot[data-state="secret"] .sg-crow-sparks{color:#e445ff}
#mascot:is([data-state="reward"],[data-state="win"])+.sg-crow-dialogue{border-left-color:#ffd83d}
#mascot[data-state="sleep"]+.sg-crow-dialogue{border-left-color:#6788a6}
@keyframes sg-crow-eye-pulse{from{opacity:.35}to{opacity:1}}
@keyframes sg-crow-blink{0%,94%,98%,100%{opacity:0}95%,97%{opacity:1}}
@keyframes sg-crow-pixels{from{transform:translateY(4px);opacity:.45}to{transform:translateY(-4px);opacity:1}}
@keyframes sg-crow-nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.sg-mini-crow[data-mood="happy"]{filter:drop-shadow(0 0 7px #ffd83d)}
.sg-mini-crow[data-mood="sad"]{filter:drop-shadow(0 0 6px #e445ff)}
.sg-mini-crow[data-mood="think"]{filter:drop-shadow(0 0 6px #3df2e0)}
.sg-result-crow{display:flex;align-items:center;gap:10px;border-top:1px solid #345e70;padding:8px 0;margin-top:8px;color:#bfe9ef;font:500 .85rem/1.4 system-ui,sans-serif;text-align:left}
.sg-result-crow img{width:70px;height:auto;flex:none}
@media(max-width:600px){.lobby-page .hero #mascot{max-height:none;align-self:start;margin-top:18px}.sg-crow-dialogue{justify-self:stretch;width:100%;min-height:40px;padding:6px 8px;font-size:.78rem;gap:4px 7px}.sg-crow-hint{font-size:9px;letter-spacing:.05em}}
@media(prefers-reduced-motion:reduce){#mascot *, .sg-mini-crow{animation:none!important;transition:none!important}}

/* The standard crow wears cyan pixel sunglasses in every state. */
.sg-crow-eye{opacity:.28;animation:sg-visor-breathe 3.2s steps(4,end) infinite alternate}
.sg-crow-eye-shine{opacity:.85;animation:sg-visor-breathe 3.2s steps(4,end) infinite alternate}
.sg-crow-blink{animation:sg-visor-blink 7s steps(1,end) infinite}
.sg-crow-sleep-shine{opacity:0}
#mascot[data-state="sleep"] .sg-crow-sleep-shine{opacity:.85}
#mascot:is([data-state="happy"],[data-state="wake"],[data-state="win"],[data-state="reward"],[data-state="secret"]) .sg-crow-eye{opacity:.65;animation:none;filter:drop-shadow(0 0 9px #52dfff)}
@keyframes sg-visor-breathe{from{opacity:.18}to{opacity:.6}}
@keyframes sg-visor-blink{0%,94%,98%,100%{opacity:0}95%,97%{opacity:.8}}

/* Pose rig: individual head, shoulders, hands, props and visor. No layout movement. */
.sg-crow-rig{display:block;width:100%;height:auto;aspect-ratio:872/572;overflow:hidden;shape-rendering:crispEdges}
#mascot .sg-crow-rig{width:100%;height:auto}
#mascot[data-state] .sg-crow-scene{animation:none}
.sg-crow-rig .cr-character{transform-origin:401px 478px}
.sg-crow-rig .cr-head{transform-origin:398px 308px}
.sg-crow-rig .cr-arm{display:none}
.sg-crow-rig .cr-arm-idle{display:block}
.sg-crow-rig:not([data-pose="idle"]) .cr-arm-idle{display:none}
.sg-crow-rig[data-pose="think"] .cr-arm-think{display:block}
.sg-crow-rig[data-pose="wave"] .cr-arm-wave{display:block}
.sg-crow-rig[data-pose="salute"] .cr-arm-salute{display:block}
.sg-crow-rig[data-pose="curious"] .cr-arm-curious{display:block}
.sg-crow-rig[data-pose="typing"] .cr-arm-typing{display:block}
.sg-crow-rig[data-pose="point"] .cr-arm-point{display:block}
.sg-crow-rig[data-pose="read"] .cr-arm-read{display:block}
.sg-crow-rig[data-pose="drink"] .cr-arm-drink{display:block}
.sg-crow-rig[data-pose="sleep"] .cr-arm-sleep{display:block}
.sg-crow-rig[data-pose="stretch"] .cr-arm-stretch{display:block}
.sg-crow-rig[data-pose="win"] .cr-arm-win{display:block}
.sg-crow-rig[data-pose="reward"] .cr-arm-reward{display:block}
.sg-crow-rig[data-pose="slump"] .cr-arm-slump{display:block}
.sg-crow-rig[data-pose="facepalm"] .cr-arm-facepalm{display:block}
.sg-crow-rig[data-pose="shrug"] .cr-arm-shrug{display:block}
.sg-crow-rig[data-pose="nod"] .cr-arm-nod{display:block}
.sg-crow-rig[data-pose="secret"] .cr-arm-secret{display:block}
.sg-crow-rig .cr-visor{filter:drop-shadow(0 0 3px #3df2e0);animation:cr-glow 3s steps(4,end) infinite alternate}
.sg-crow-rig .cr-trail{animation:cr-trail 2.6s steps(4,end) infinite alternate}
.sg-crow-rig .cr-visor-dim,.sg-crow-rig .cr-visor-sleep,.sg-crow-rig .cr-particles,.sg-crow-rig .cr-zzz,.sg-crow-rig .cr-question,.sg-crow-rig .cr-secret,.sg-crow-rig .cr-typing-lights{opacity:0}
.sg-crow-rig .cr-character{animation:cr-breathe 3.8s steps(6,end) infinite alternate}
.sg-crow-rig[data-pose="think"] .cr-head{transform:rotate(-8deg) translate(-5px,-9px);animation:cr-think 1.6s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="wave"] .cr-head{transform:rotate(-7deg)}
.sg-crow-rig[data-pose="wave"] .cr-wave{transform-origin:270px 400px;animation:cr-wave 1.1s steps(5,end) infinite}
.sg-crow-rig[data-pose="salute"] .cr-head{animation:cr-nod .75s steps(5,end) 2}
.sg-crow-rig[data-pose="curious"] .cr-character{transform:translate(28px,15px) rotate(5deg);animation:cr-curious 1.3s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="curious"] .cr-question{opacity:1;animation:cr-float 1.1s steps(4,end) infinite alternate}
.sg-crow-rig[data-pose="typing"] .cr-head{transform:translate(15px,24px) rotate(7deg)}
.sg-crow-rig[data-pose="typing"] .cr-type-left{transform-origin:278px 370px;animation:cr-type .24s steps(2,end) infinite alternate}
.sg-crow-rig[data-pose="typing"] .cr-type-right{transform-origin:539px 365px;animation:cr-type .24s steps(2,end) infinite alternate-reverse}
.sg-crow-rig[data-pose="typing"] .cr-typing-lights{opacity:1;animation:cr-trail .6s steps(4,end) infinite alternate}
.sg-crow-rig[data-pose="point"] .cr-head{transform:rotate(5deg) translate(12px,6px)}
.sg-crow-rig[data-pose="point"] .cr-point-wing{transform-origin:538px 366px;animation:cr-point 1.2s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="read"] .cr-head{transform:translate(0,28px) rotate(10deg);animation:cr-read 1.8s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="read"] .cr-book{transform-origin:448px 451px;animation:cr-book 2s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="drink"] .cr-character{animation:none}
.sg-crow-rig[data-pose="drink"] .cr-head{transform:rotate(-9deg) translate(6px,-8px);animation:cr-sip 1.6s steps(6,end) infinite alternate}
.sg-crow-rig[data-pose="drink"] .cr-mug{transform:translate(99px,-190px) rotate(-9deg);transform-origin:440px 477px;animation:cr-drink 1.6s steps(6,end) infinite alternate}
.sg-crow-rig[data-pose="sleep"] .cr-character{transform:translate(16px,12px);animation:cr-sleep 3s steps(6,end) infinite alternate}
.sg-crow-rig[data-pose="sleep"] .cr-head{transform:translate(37px,130px) rotate(16deg)}
.sg-crow-rig[data-pose="sleep"] .cr-visor-dim,.sg-crow-rig[data-pose="sleep"] .cr-visor-sleep{opacity:1}
.sg-crow-rig[data-pose="sleep"] .cr-trail{opacity:0;animation:none}
.sg-crow-rig[data-pose="sleep"] .cr-visor{filter:none;animation:none}
.sg-crow-rig[data-pose="sleep"] .cr-zzz{opacity:1;animation:cr-float 2s steps(6,end) infinite alternate}
.sg-crow-rig[data-pose="stretch"] .cr-character{transform:translateY(-22px);animation:cr-stretch 1.35s steps(6,end) 2 alternate}
.sg-crow-rig[data-pose="stretch"] .cr-head{transform:rotate(-5deg) translateY(-7px)}
.sg-crow-rig[data-pose="win"] .cr-character{animation:cr-cheer .7s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="win"] .cr-head{transform:rotate(-5deg)}
.sg-crow-rig[data-pose="win"] .cr-pump-l{transform-origin:273px 408px;animation:cr-pump .7s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="win"] .cr-pump-r{transform-origin:534px 408px;animation:cr-pump .7s steps(5,end) infinite alternate-reverse}
.sg-crow-rig:is([data-pose="win"],[data-pose="reward"]) .cr-particles{opacity:1;animation:cr-confetti .9s steps(6,end) infinite alternate}
.sg-crow-rig[data-pose="reward"] .cr-nut{animation:cr-float .7s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="reward"] .cr-head{transform:rotate(5deg) translate(14px,10px)}
.sg-crow-rig[data-pose="slump"] .cr-character{transform:translate(-14px,34px) rotate(-6deg);animation:cr-slump 2s steps(6,end) infinite alternate}
.sg-crow-rig[data-pose="slump"] .cr-head{transform:rotate(12deg) translate(7px,13px)}
.sg-crow-rig[data-pose="slump"] .cr-visor-dim{opacity:.45}
.sg-crow-rig[data-pose="facepalm"] .cr-head{transform:translate(-8px,18px) rotate(12deg);animation:cr-shake .55s steps(5,end) 3}
.sg-crow-rig[data-pose="shrug"] .cr-character{animation:cr-shrug 1.15s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="shrug"] .cr-head{transform:rotate(-7deg)}
.sg-crow-rig[data-pose="nod"] .cr-head{animation:cr-nod .65s steps(5,end) 3}
.sg-crow-rig[data-pose="secret"] .cr-head{transform:rotate(-9deg) translate(-8px,-10px);animation:cr-secret-tilt .7s steps(5,end) infinite alternate}
.sg-crow-rig[data-pose="secret"] .cr-secret{opacity:1;animation:cr-glitch .6s steps(3,end) infinite alternate}
.sg-crow-rig[data-pose="secret"] .cr-visor{filter:drop-shadow(0 0 9px #e445ff)}
@keyframes cr-breathe{from{transform:translateY(0)}to{transform:translateY(-4px)}}
@keyframes cr-glow{from{filter:drop-shadow(0 0 2px #3df2e0)}to{filter:drop-shadow(0 0 7px #3df2e0)}}
@keyframes cr-trail{from{opacity:.3}to{opacity:1}}
@keyframes cr-wave{0%,100%{transform:rotate(0)}25%,75%{transform:rotate(10deg)}50%{transform:rotate(-7deg)}}
@keyframes cr-think{from{transform:rotate(-5deg) translate(-2px,-4px)}to{transform:rotate(-11deg) translate(-7px,-11px)}}
@keyframes cr-curious{from{transform:translate(18px,11px) rotate(3deg)}to{transform:translate(31px,18px) rotate(5deg)}}
@keyframes cr-type{from{transform:rotate(-2deg) translateY(-4px)}to{transform:rotate(4deg) translateY(4px)}}
@keyframes cr-point{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@keyframes cr-read{from{transform:translate(-6px,24px) rotate(7deg)}to{transform:translate(5px,34px) rotate(12deg)}}
@keyframes cr-book{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}
@keyframes cr-drink{from{transform:translate(96px,-182px) rotate(-5deg)}to{transform:translate(110px,-201px) rotate(-15deg)}}
@keyframes cr-sip{from{transform:rotate(-5deg) translate(4px,-4px)}to{transform:rotate(-12deg) translate(9px,-13px)}}
@keyframes cr-sleep{from{transform:translate(16px,10px)}to{transform:translate(16px,16px)}}
@keyframes cr-stretch{from{transform:translateY(-12px) scaleY(1.02)}to{transform:translateY(-34px) scaleY(1.04)}}
@keyframes cr-cheer{from{transform:translateY(-5px)}to{transform:translateY(-27px)}}
@keyframes cr-pump{from{transform:rotate(-7deg)}to{transform:rotate(8deg)}}
@keyframes cr-float{from{transform:translateY(6px);opacity:.65}to{transform:translateY(-12px);opacity:1}}
@keyframes cr-confetti{from{transform:translateY(12px);opacity:.35}to{transform:translateY(-14px);opacity:1}}
@keyframes cr-slump{from{transform:translate(-10px,30px) rotate(-5deg)}to{transform:translate(-14px,39px) rotate(-6deg)}}
@keyframes cr-shake{0%,100%{transform:translate(-8px,18px) rotate(10deg)}33%{transform:translate(-14px,18px) rotate(6deg)}66%{transform:translate(0,18px) rotate(14deg)}}
@keyframes cr-shrug{from{transform:translateY(0)}to{transform:translateY(-12px)}}
@keyframes cr-nod{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(10deg) translateY(12px)}}
@keyframes cr-secret-tilt{from{transform:rotate(-5deg)}to{transform:rotate(-12deg) translate(-6px,-8px)}}
@keyframes cr-glitch{from{transform:translateX(-5px);opacity:.3}to{transform:translateX(5px);opacity:1}}
.sg-mini-crow.sg-crow-rig{width:90px;height:auto;max-height:62px;float:right;flex:none;margin:0 0 6px 10px;animation:none}
.sg-skill-crow{margin-left:auto!important;float:none!important}
.sg-result-crow .sg-crow-rig{width:92px;height:auto;flex:none}
@media(max-width:600px){.sg-mini-crow.sg-crow-rig{width:65px;max-height:44px}.sg-skill-crow{width:52px!important}.sg-result-crow .sg-crow-rig{width:70px}}
@media(prefers-reduced-motion:reduce){.sg-crow-rig *{animation:none!important;transition:none!important}}
html.sg-reduced .sg-crow-rig *{animation:none!important;transition:none!important}

.sg-crow-rig[data-pose="idle"] .cr-visor-dim{animation:cr-visor-blink 6.8s steps(1,end) infinite}
@keyframes cr-visor-blink{0%,94%,98%,100%{opacity:0}95%,97%{opacity:.62}}
@media(prefers-reduced-motion:reduce){.sg-crow-rig[data-pose="idle"] .cr-visor-dim{animation:none!important}}
