/* Keep the established game artwork, geometry, and pacing. */
body{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
.form-card{box-shadow:0 12px 36px rgba(9,28,48,.11)}.form-card h2{line-height:1.16;letter-spacing:-.55px}.form-card>p{line-height:1.5}.field input{transition:border-color .15s,box-shadow .15s}.field input:focus{border-color:var(--nitrile);box-shadow:0 0 0 3px rgba(60,110,240,.1)}.field label{line-height:1.4}.team-btn[aria-pressed="true"] .ui-icon{filter:brightness(0) invert(1)}
.card{box-shadow:0 3px 0 rgba(15,37,64,.06),0 12px 30px rgba(6,20,40,.13)}.card-cat{background:#e7eef3;color:#42586d}.timer{letter-spacing:-.4px}.hud-stat{font-variant-numeric:tabular-nums}.res-title{line-height:1.15;letter-spacing:-.6px}.res-quip{line-height:1.45}.res-stat{box-shadow:0 3px 10px rgba(9,28,48,.035)}.res-stat b{font-variant-numeric:tabular-nums}.res-stat span{line-height:1.4}.shared-result-link{line-height:1.4}
@media(hover:hover){.btn.ghost:not(:disabled):hover{background:var(--panel)}.team-btn:not([aria-pressed="true"]):not(:disabled):hover{border-color:var(--nitrile)}.challenge-back:hover{background:var(--bg2);border-color:var(--muted);text-decoration:none}}
@media(prefers-reduced-motion:reduce){.field input{transition:none}}

@media(max-width:350px){.team-btn{font-size:12px;padding-left:20px;padding-right:20px}.team-btn .ui-icon{width:14px;height:14px}}

/* Compact sliding appearance control with full-size touch targets. */
.entry-preferences{display:flex;justify-content:flex-end;margin:-12px -5px 4px}
.entry-theme{position:relative;isolation:isolate;display:flex;width:144px;height:44px;flex:none}
.entry-theme:before{content:'';position:absolute;inset:7px 0;border:1px solid var(--line);border-radius:999px;background:var(--bg2);z-index:-2}
.theme-thumb{position:absolute;left:3px;top:10px;bottom:10px;width:69px;border-radius:999px;background:var(--panel);box-shadow:0 1px 5px rgba(9,28,48,.15);transition:transform .22s cubic-bezier(.2,.7,.3,1);z-index:-1}
.entry-theme[data-selected="dark"] .theme-thumb{transform:translateX(69px)}
.entry-theme button{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;min-width:0;min-height:44px;border:0;border-radius:999px;padding:0 6px;background:transparent;color:var(--muted);font-family:inherit;font-size:11px;font-weight:600;line-height:1.2;touch-action:manipulation}
.entry-theme button[aria-pressed="true"]{color:var(--ink)}
.entry-theme svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}}
@media(min-width:351px) and (max-width:480px){.team-btn{font-size:13px;padding-left:24px;padding-right:24px}.team-btn>span{left:6px}.team-btn .ui-icon{width:16px;height:16px}}

/* An outlined secondary action, distinct from the filled prize badge. */
.shared-board-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:44px;padding:10px 15px;border:1px solid var(--muted);border-radius:10px;background:transparent;color:var(--ink);font-size:14px;font-weight:600;line-height:1.25;text-decoration:none;box-shadow:none;touch-action:manipulation;transition:background-color .16s,border-color .16s}
.shared-board-link svg{display:block;flex:none;width:17px;height:17px;color:var(--muted)}
.shared-board-link:focus-visible{outline:3px solid var(--nitrile);outline-offset:3px}
.shared-board-link:active{background:var(--bg2)}
@media(hover:hover){.shared-board-link:hover{border-color:var(--ink);text-decoration:none}}
@media(prefers-reduced-motion:reduce){.shared-board-link{transition:none}}

/* A compact navigation control; portal entry continues to hide Home. */
.challenge-back{justify-content:center;gap:7px;min-width:82px;padding:9px 12px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--panel-ink);font-size:13px;line-height:1.25;box-shadow:0 2px 6px rgba(9,28,48,.04);touch-action:manipulation}
.challenge-back svg{display:block;flex:none;width:17px;height:17px;opacity:.8}
.challenge-back:focus-visible{outline:3px solid var(--nitrile);outline-offset:3px}

/* Keep each new question steady and readable rather than flinging it sideways. */
.card.enter{animation:question-arrive .18s cubic-bezier(.2,.7,.3,1) backwards}
.card.fly-L,.card.fly-R,.card.fly-D{transition:opacity .16s ease,transform .2s ease;transform:translateY(-8px) scale(.99)!important;opacity:0}
@keyframes question-arrive{from{opacity:0;transform:translateY(9px) scale(.99)}to{opacity:1;transform:none}}
.count-num{text-shadow:4px 4px 0 var(--caution);animation-name:count-cue;animation-timing-function:cubic-bezier(.2,.75,.25,1)}
@keyframes count-cue{0%{opacity:0;transform:scale(1.16)}24%{opacity:1;transform:scale(.98)}48%,100%{opacity:1;transform:scale(1)}}
.card-visual img{display:block;max-width:100%;object-fit:contain;image-rendering:auto}
.card-cat .ui-icon{width:19px;height:19px;object-fit:contain}
.result-tier{gap:8px;line-height:1.2}.result-tier img{display:block;object-fit:contain;flex:none;width:30px;height:34px}
#results .res-score{font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.timebar{box-shadow:inset 0 1px 3px rgba(6,20,40,.09)}.timebar i{border-radius:inherit;transition:none}
/* Streak messages belong above the question, in the reserved court area. */
.banner{top:4px;max-width:calc(100% - 24px);font-size:clamp(15px,3.5vw,21px);white-space:normal;text-align:center;padding:7px 15px;border-radius:10px;box-shadow:2px 3px 0 var(--caution);line-height:1.2}
.banner.show{animation:streak-cue 1.3s ease-out forwards}
@keyframes streak-cue{0%{opacity:0;transform:translate(-50%,5px) scale(.95)}15%,76%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-6px) scale(.99)}}
@media(prefers-reduced-motion:reduce){.card.enter,.count-num,.banner.show,.flame.hot,.timer.low,.result-tier,.leader-pop{animation:none!important}.card.fly-L,.card.fly-R,.card.fly-D{transition:none;transform:none!important}.choice,.life{transition:none!important}}
