.hunt-splash{position:fixed;inset:0;z-index:20;overflow:auto;background:var(--bg);display:grid;place-items:center;padding:25px 16px calc(25px + env(safe-area-inset-bottom));--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.splash-inner{width:min(100%,520px);text-align:center}.splash-orbit{position:relative;width:170px;height:170px;margin:18px auto 22px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center}.splash-orbit i{font-size:70px;color:var(--mint);font-style:normal;font-weight:950}.splash-orbit b{position:absolute;display:grid;place-items:center;width:62px;height:47px;border:1px solid var(--line-strong);border-radius:11px;background:var(--high);font-size:.48rem;color:var(--text);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.splash-orbit b:nth-of-type(1){left:-18px;top:4px}.splash-orbit b:nth-of-type(2){right:-22px;top:48px}.splash-orbit b:nth-of-type(3){left:7px;bottom:-12px}.splash-inner h1{margin:0;font-size:clamp(3.8rem,18vw,6rem);line-height:.96;letter-spacing:-.07em}.splash-inner h1 em{color:var(--mint);font-style:normal}.splash-inner p{margin:19px 0 25px;color:var(--text-soft);line-height:1.6}.splash-play{display:block;width:100%;min-height:64px;border:0;border-radius:16px;background:var(--primary);color:var(--text);font-weight:950;font-size:1.15rem;letter-spacing:.1em;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}.splash-help{display:block;width:100%;margin-top:10px;min-height:47px;border:1px solid var(--line);border-radius:13px;background:var(--high);font-weight:900;font-size:.76rem;letter-spacing:.1em;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.splash-back{display:inline-block;margin-top:19px;color:var(--text-soft);text-decoration:none;font-size:.78rem}
.clue-deck{display:grid;gap:20px}.deck-section h2{margin:0 0 8px;font-size:.66rem;letter-spacing:.13em;color:var(--text);font-weight:950}.deck-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.trait{height:90px}.trait-face{border-radius:12px;background:var(--high);border-color:var(--line-strong);gap:4px;padding:5px;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.trait-face svg{width:23px;height:23px;color:var(--text);flex:none}.trait-face small{color:var(--text-soft);font-size:.49rem}.trait-face b{font-size:.61rem;line-height:1.13;max-height:2.4em;overflow:hidden}.trait.correct .trait-back{background:#1b8a6b;border-color:var(--mint);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}.trait.wrong .trait-back{background:#9b2226;border-color:var(--red);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}.trait-back small{color:var(--text)}.trait-mark{font-size:1.15rem}.map-node.known{background:#1b8a6b;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}.map-node.partial{background:var(--high);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.map-node b{font-size:.6rem}.map-node.unknown b{font-size:1.25rem}.map-node small{font-size:.43rem}.grid-card{padding-bottom:20px}.grid-note{margin-bottom:18px}.browse{margin-top:0}
@media(min-width:560px){.deck-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.trait{height:94px}.trait-face b{font-size:.76rem}.map-node b{font-size:.74rem}.map-node small{font-size:.53rem}}
@media(max-width:340px){.deck-grid{gap:5px}.trait{height:82px}.trait-face{padding:5px}.trait-face b{font-size:.59rem}.trait-face svg{width:21px;height:21px}}
.trait-face,.trait-face small,.trait-face b,.signal-map-card .group-trait,.signal-map-card .group-trait span,.signal-map-card .orbit-tap,.signal-map-card .orbit-caption,.signal-map-card .orbit-text,.signal-map-card .orbit-score{color:var(--text)!important}
.signal-map-card{margin-bottom:16px}.signal-map-head{padding-bottom:8px}.signal-map-head span{color:var(--accent)}.signal-map-card .signal-group{color:var(--text)}.signal-map-card .group-heading b{color:var(--text)}.signal-map-card .group-portrait{background:var(--primary);border-color:var(--mint);color:var(--text);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}.signal-map-card .group-portrait.revealed{background:var(--surface);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.hunt-guess-core{width:100%;height:100%;display:grid;place-items:center;border:0;border-radius:50%;background:var(--primary);color:var(--text);font-size:clamp(1rem,4vw,1.3rem);font-weight:950;letter-spacing:.09em;cursor:pointer;box-shadow:0 0 24px #94d2bd55;-webkit-tap-highlight-color:transparent;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}.hunt-guess-core:hover,.hunt-guess-core:focus-visible{background:var(--primary);outline:3px solid var(--text);outline-offset:-7px;color:var(--text);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}.signal-map-card .group-trait svg{color:var(--text)}.signal-map-card .signal-group{animation-duration:4s}
#library{width:min(calc(100vw - 24px),760px);height:min(78dvh,760px);max-height:calc(100dvh - 48px);margin:auto;border-radius:18px;overflow:hidden;overscroll-behavior:contain}#library[open]{display:flex;flex-direction:column}#library .modal-head{flex:none;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;text-align:center}#libraryBack{width:36px;height:36px;display:grid;place-items:center;color:var(--text)}#library .library-grid{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(20px + env(safe-area-inset-bottom))}#library .library-grid p{grid-column:1/-1;text-align:center;color:var(--text-soft)}.modal-loading{text-align:center;padding:24px;color:var(--text)}
@media(min-width:760px){#library{height:min(84dvh,850px);max-height:calc(100dvh - 64px)}}
.deck-grid .trait:disabled{opacity:1}.deck-grid .trait-face,.deck-grid .trait-face *,.signal-map-card .signal-group,.signal-map-card .signal-group *,.orbit-expanded-card,.orbit-expanded-card *{color:var(--text)!important}
.hunt-guess-core{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:8px;text-align:center}.hunt-guess-core strong{font-size:clamp(.86rem,3.5vw,1.1rem);line-height:1}.hunt-guess-core small{font-size:clamp(.48rem,1.9vw,.62rem);font-weight:800;letter-spacing:0;line-height:1.2;white-space:nowrap;color:var(--text)}.hunt-guess-core var(--text)oyCount{display:inline-block;min-width:2ch;font-variant-numeric:tabular-nums}.hunt-guess-core var(--text)oyCount.shuffling{animation:decoyShuffle .11s steps(2,end) infinite}@keyframes decoyShuffle{0%{transform:translateY(-2px);filter:blur(.7px)}50%{transform:translateY(2px);filter:blur(0)}}
.hunt-tutorial{width:min(92vw,480px);max-height:min(88dvh,760px)}.tutorial-shell{padding:18px 20px 20px;color:var(--text)}.tutorial-head{display:flex;align-items:center;justify-content:space-between}.tutorial-head button{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:var(--high);color:var(--text);font-size:1.3rem;line-height:1;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.tutorial-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;color:var(--blue);font-size:.65rem;letter-spacing:.1em}.tutorial-progress>div{display:flex;gap:4px}.tutorial-progress i{display:block;width:18px;height:5px;border-radius:5px;background:var(--line);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.tutorial-progress i.active{background:var(--blue);box-shadow:0 0 8px #ee9b0088;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}.tutorial-visual{height:170px;border:1px solid var(--line);border-radius:16px;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:14px;overflow:hidden;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.tutorial-shell h2{margin:16px 0 6px;font-size:1.22rem}.tutorial-shell p{margin:0;color:var(--text);font-size:.78rem;line-height:1.45}.tutorial-actions{display:flex;gap:8px;margin-top:18px}.tutorial-actions button{min-height:44px;flex:1;border:1px solid var(--line);border-radius:10px;background:var(--high);color:var(--text);font-weight:850;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.tutorial-actions button.primary{flex:2;background:var(--primary);border-color:var(--green);color:var(--text);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}.tutorial-actions button:disabled{opacity:.45}.tutorial-tier{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}.tutorial-tier span{padding:13px 3px;border:1px solid var(--line-strong);border-radius:11px;text-align:center;font-size:.63rem;font-weight:900}.tutorial-tier span.active{border-color:var(--blue)}.tutorial-tier small{display:block;margin-top:5px;font-size:.52rem;color:var(--text)}.tutorial-flips{display:flex;gap:10px}.tutorial-flips span{width:110px;height:88px;display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid;border-radius:13px;font-size:.75rem;font-weight:900}.tutorial-flips .good{background:#1b8a6b;border-color:var(--green);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}.tutorial-flips .bad{background:#9b2226;border-color:var(--red);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}.tutorial-flips small{font-size:.57rem;margin-top:7px}.tutorial-strikes{font-size:.65rem;color:var(--text);font-weight:900}.tutorial-mini-map{position:relative;width:250px;height:140px;display:grid;place-items:center}.tutorial-mini-map:before{content:'';position:absolute;width:180px;height:95px;border:1px solid var(--line-strong);border-radius:50%}.tutorial-mini-map .core{z-index:1;width:85px;height:85px;display:grid;place-items:center;border:2px solid var(--green);border-radius:50%;color:var(--green);font-size:3rem;font-weight:900;background:var(--surface);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.tutorial-mini-map .node{position:absolute;z-index:2;width:77px;padding:8px 4px;border:1px solid var(--green);border-radius:9px;background:#1b8a6b;text-align:center;font-size:.49rem;font-weight:850;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}.tutorial-mini-map .node b{display:block;margin-top:3px;font-size:.66rem}.tutorial-mini-map .one{left:0;top:12px}.tutorial-mini-map .two{right:0;bottom:10px;border-color:var(--line-strong);background:var(--high);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.tutorial-guess{width:104px;height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:50%;background:var(--primary);color:var(--text);font-weight:950;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}.tutorial-guess small{font-size:.56rem}.tutorial-counts{font-size:.86rem;font-weight:900;letter-spacing:.04em}.tutorial-counts span{color:var(--blue);padding:0 5px}.tutorial-list{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:min(100%,260px)}.tutorial-list div{grid-column:1/-1;text-align:center;font-size:.72rem}.tutorial-list div:first-letter{color:var(--blue)}.tutorial-list span{height:83px;display:grid;place-items:end center;padding:7px 2px;border:1px solid var(--line-strong);border-radius:9px;background:var(--raise);color:var(--text);text-align:center;font-size:.55rem;font-weight:900;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}.tutorial-finish{display:flex;flex-direction:column;align-items:center;gap:9px}.tutorial-finish span{font-size:.62rem;color:var(--red);font-weight:900}.tutorial-finish strong{padding:10px 18px;background:var(--primary);border-radius:11px;font-size:.85rem;color:var(--text);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}.tutorial-finish small{font-size:.65rem;color:var(--text)}@media(max-height:650px){.tutorial-visual{height:125px}.tutorial-shell{padding:14px}.tutorial-shell p{font-size:.72rem}.tutorial-shell h2{margin-top:10px}}@media(prefers-reduced-motion:reduce){.hunt-guess-core var(--text)oyCount.shuffling{animation:none}}
.clues-locked .trait:not(.flipped) .trait-face{border-style:dashed}.clues-locked .trait:not(.flipped){cursor:default}
#library .library-game{display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:hidden;text-align:center}
#library .library-game img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:0;margin:0}
#library .library-game b{display:grid;place-items:center;min-height:3.2em;margin:0;padding:6px 5px;border-top:1px solid var(--line);line-height:1.15}
.deck-section h2{display:flex;align-items:center;justify-content:space-between;gap:12px}
.deck-section .deck-progress{flex:none;color:var(--accent);font-size:.72rem;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.deck-section.complete .deck-progress{color:var(--mint)}
.deck-grid .trait.resolved:not(.flipped){cursor:default}
.deck-grid .trait.resolved:not(.flipped) .trait-face{border-style:dashed}

/* Keep every cover card at its natural size, even when the dialog has many results. */
#library .library-grid{grid-auto-rows:max-content;align-content:start;align-items:start}
#library .library-game{height:auto;min-height:0;align-self:start}
#library .library-game img{height:auto;aspect-ratio:2/3;object-fit:cover;flex:none}
#library .library-game b{width:100%;min-height:3.2em;overflow-wrap:anywhere}

/* Touch should flip the clue directly, without a transient blue hover/focus state. */
.deck-grid .trait,.deck-grid .trait-face{-webkit-tap-highlight-color:transparent}

/* Cluorbit finishing touches. */
.trait-face svg.rating-stars{width:calc(var(--stars)*17px);height:18px;max-width:100%;flex:none;stroke:none}
.signal-map-card .group-trait svg.rating-stars{width:calc(var(--stars)*17px);height:18px;max-width:100%;stroke:none}
.clues-locked .trait:not(.flipped){cursor:default}
.clues-locked .trait:not(.flipped) .trait-face{border-style:dashed}
.splash-orbit{isolation:isolate}
.splash-orbit::before{content:"";position:absolute;inset:0;border:1px solid var(--line-strong);border-radius:50%;pointer-events:none}
/* Feedback: a quiet button under the splash tools and a short form sheet. */
.splash-feedback{display:block;margin:18px auto 0;padding:8px 12px;border:0;background:none;color:var(--muted);font-size:.7rem;font-weight:900;letter-spacing:.1em;text-decoration:underline;text-underline-offset:3px;--muted:var(--page-muted)}
#feedback.hunt-sheet[open]{height:auto;max-height:88vh}
.feedback-form{display:flex;flex-direction:column;gap:10px;padding-top:14px}
.feedback-form textarea{width:100%;min-height:140px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--high);color:var(--text);font:inherit;font-size:1rem;resize:vertical}
.feedback-form p{margin:0;min-height:1.2em;color:var(--muted);font-size:.78rem;font-weight:700}
.feedback-form .splash-play{min-height:52px}
.feedback-form .splash-play:disabled{opacity:.55}
/* Splash clue cards drift like the in-game orbit tiles. */
@media(prefers-reduced-motion:no-preference){.splash-orbit b{animation:groupFloat 4s ease-in-out infinite}.splash-orbit b:nth-of-type(2){animation-delay:-2s}.splash-orbit b:nth-of-type(3){animation-delay:-1s}}
.splash-inner h1{font-size:clamp(2.8rem,13vw,5.4rem);letter-spacing:-.055em;white-space:nowrap;margin-bottom:22px}
.outcome-choice{border:0;background:transparent;padding:0;margin-top:20px}
.outcome-choice::before,#trailer:not(:empty)::before{content:"";display:block;width:56px;height:2px;border-radius:2px;background:var(--primary);margin:0 auto 17px;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
#trailer:not(:empty)::before{margin-top:22px}
.library-search-wrap{display:block;flex:none;padding:10px 18px 0}
#library .library-search-wrap #librarySearch{width:100%;margin:0;background:var(--bg);color:var(--text);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.deck-grid .trait-front:hover,.deck-grid .trait-front:active,.deck-grid .trait-front:focus{border-color:var(--line-strong);background:var(--high);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.deck-grid .trait:focus{outline:none}
@media(hover:hover) and (pointer:fine){.deck-grid .trait:not(:disabled):focus-visible{outline:2px solid var(--blue);outline-offset:3px}}

/* Final answer: unmistakable state, then an honest clue-by-clue explanation. */
.result.won{border-color:var(--green);box-shadow:0 0 0 1px #94d2bd55,0 0 26px #94d2bd55,0 16px 38px #0006}
.result.lost{border-color:var(--red);box-shadow:0 0 0 1px #bb3e0355,0 0 26px #bb3e0355,0 16px 38px #0006}
.result-status{display:block;margin-bottom:4px;color:var(--green);font-size:clamp(1.45rem,5vw,2rem);font-weight:950;line-height:1;letter-spacing:.03em}
.result.lost .result-status{color:var(--red)}
.result strong{display:block;margin-bottom:5px;color:var(--text)!important}
.result h2{font-size:1.06rem;line-height:1.15;overflow-wrap:anywhere}
/* Filled outcome card: green for a win, red for a loss, wheat text on top. */
:root:root .result.won{background:#1b8a6b}
:root:root .result.lost{background:#9b2226}
:root:root .result:is(.won,.lost){--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
:root:root .result.result:is(.won,.lost) .result-status{display:flex;align-items:center;gap:8px;color:var(--on-fill)}
.result-status i{flex:none;display:grid;place-items:center;width:1.25em;height:1.25em;border-radius:50%;background:var(--on-fill);font-size:.7em;font-style:normal}
.result.won .result-status i{color:#1b8a6b}
.result.lost .result-status i{color:#9b2226}
.result:is(.won,.lost) strong{font-size:.62rem;letter-spacing:.1em;opacity:.85}
:root:root .result.result .hunt-next-tier{background:var(--on-fill);border-color:var(--on-fill);box-shadow:none;color:#001219;--text:#001219}
.hunt-outcome{border:1px solid var(--green);box-shadow:0 0 0 1px #94d2bd44,0 0 38px #94d2bd55,0 24px 70px #000c}
.hunt-outcome.lost{border-color:var(--red);box-shadow:0 0 0 1px #bb3e0344,0 0 38px #bb3e0355,0 24px 70px #000c}
.outcome-body{padding:21px;text-align:left}
.outcome-body>.outcome-badge{background:var(--primary);color:var(--text);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}
.hunt-outcome.lost .outcome-badge{background:var(--red-fill);color:var(--text);--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}
.outcome-heading{margin:9px 0 3px!important;color:var(--green);font-size:clamp(2.1rem,9vw,3.3rem)!important;line-height:1!important;letter-spacing:-.05em}
.hunt-outcome.lost .outcome-heading{color:var(--red)}
.outcome-body>p{margin:0 0 17px;color:var(--text)}
.outcome-choice{display:grid;grid-template-columns:104px minmax(0,1fr);gap:0 14px;align-items:start;margin-top:17px}
.outcome-choice::before,.outcome-choice .outcome-label{grid-column:1/-1}
.outcome-choice::before{justify-self:center}
.outcome-answer{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0;border:0;background:transparent;padding:0;text-align:center}
.outcome-label,.outcome-reveal{display:block;margin:0 0 8px;color:var(--text);font-size:.63rem;font-weight:950;letter-spacing:.12em;text-align:left}
.outcome-reveal{color:var(--green);margin:16px 0 12px;text-align:center}
.outcome-game{display:flex;flex-direction:column;gap:7px;min-width:0;text-align:center}
.outcome-game img{display:block;flex:none;width:100%;aspect-ratio:2/3;object-fit:cover;border:1px solid var(--text);border-radius:6px;background:var(--raise);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.outcome-answer img{display:block;width:min(66.67%,280px,32dvh);aspect-ratio:2/3;object-fit:cover;border:2px solid var(--green);border-radius:11px;background:var(--raise);box-shadow:0 0 0 4px #94d2bd20,0 0 24px #94d2bd88;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.outcome-game strong{color:var(--text);font-size:.82rem;line-height:1.18;overflow-wrap:anywhere}
.outcome-answer h3{max-width:100%;margin:0;color:var(--text);font-size:1.35rem;line-height:1.15;overflow-wrap:anywhere}
.outcome-mismatch{min-width:0;text-align:left}
.outcome-mismatch>b{display:block;margin-bottom:7px;color:var(--text);font-size:.59rem;letter-spacing:.1em}
.mismatch-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:7px;min-height:38px;margin-top:6px;padding:6px 9px;border:1px solid;border-radius:9px;color:var(--text)}
.mismatch-row.match{border-color:var(--green);background:#1b8a6b;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
.mismatch-row.strike{border-color:var(--red);background:#9b2226;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
.mismatch-trait{min-width:0;display:flex;align-items:center;gap:8px;font-size:.73rem;font-weight:900;line-height:1.15;overflow-wrap:anywhere}
.mismatch-trait svg{width:20px;height:20px;flex:none;color:var(--text)}
.mismatch-status{font-size:1.15rem;font-weight:950;text-align:center}
.outcome-mismatch p{margin:6px 0 0;font-size:.72rem;color:var(--text)}
.outcome-body #trailer{margin-top:14px}
.outcome-body #trailer iframe{display:block}
.grid-card .section-head{justify-content:flex-end}
.trait-face.trait-back small{font-size:1.2rem;line-height:1}
.splash-inner .splash-objective{max-width:360px;margin:16px auto 20px;font-size:.88rem;line-height:1.45;color:var(--text-soft)}
#confirm .confirm-body small{display:block;color:var(--text-soft);font-size:.73rem;line-height:1.35}
#reviewGuess{width:min(92vw,420px);max-height:calc(100dvh - 32px)}
#reviewGuess .confirm-body{padding:18px}
#reviewGuess .confirm-body>img{width:88px;margin:10px auto}
#reviewTitle{display:block;overflow-wrap:anywhere}
#reviewGuess .modal-actions{margin-top:15px}
#librarySearch{min-height:48px}
#library .library-game{min-height:44px}

.hunt-next-tier{display:block;width:100%;margin-top:12px;padding:11px 12px;border:0;border-radius:10px;background:var(--primary);color:var(--text);font-weight:900;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill)}.result>div{flex:1;min-width:0}.result .hunt-next-tier{font-size:.72rem}
@media(max-width:440px){.modal-actions button{min-height:48px}}
/* Header, difficulty switch and status strip. This is the only place these are styled. */
.top{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;align-items:center;gap:8px;padding:10px 0 8px}
.top .back,.top .help{width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--high);color:var(--text);font-size:1.15rem;font-weight:900;line-height:1;text-decoration:none;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.top .back{font-size:1.65rem;font-weight:400}
.top .help svg{display:block;width:20px;height:20px}
.top-title{display:grid;gap:3px;min-width:0;padding-left:2px;line-height:1.1}
.top-title b{font-size:.95rem;font-weight:950;letter-spacing:.12em}
.top-title small{overflow:hidden;color:var(--muted);font-size:.72rem;font-weight:700;white-space:nowrap;text-overflow:ellipsis}
.hunt-difficulty-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.hunt-difficulty-tab{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;border:1px solid var(--line);border-radius:12px;background:var(--high);color:var(--text);font-size:.78rem;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.hunt-difficulty-tab b{font-weight:850;letter-spacing:.02em}
.hunt-difficulty-tab span{font-size:.72rem;font-weight:900}
.hunt-difficulty-tab.active{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.hunt-difficulty-tab.won{border-color:var(--green);background:#1b8a6b;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
.hunt-difficulty-tab.lost{border-color:var(--red);background:#9b2226;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
.hunt-difficulty-tab:disabled{opacity:.5}
.hunt-status{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:10px;padding:0 2px;border-bottom:1px solid var(--line-soft,var(--raise));background:var(--bg);color:var(--text);font-size:.74rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.strike-row{display:flex;align-items:center;gap:8px;min-width:0}
.strike-slots{display:flex;gap:4px}
.strike-slot{width:10px;height:10px;border-radius:50%;background:var(--line);--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.strike-slot.used{background:var(--red);animation:strikeUsed .2s ease-out;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
@keyframes strikeUsed{from{transform:scale(.5)}to{transform:scale(1)}}
#strikeCount,.top-metrics{color:var(--muted)}
.top-metrics{display:flex;min-width:0}
.top-metrics span+span::before{content:"·";margin:0 6px}
#clueFeedback{position:absolute;top:calc(100% + 6px);right:2px;padding:4px 9px;border:1px solid var(--green);border-radius:999px;background:var(--surface);color:var(--text);font-size:.68rem;font-weight:900;pointer-events:none;animation:clueFeedback 2.4s ease-out both;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
@keyframes clueFeedback{0%{opacity:0;transform:translateY(-4px)}12%,75%{opacity:1;transform:none}100%{opacity:0}}
@media(max-width:380px){.top{gap:6px}.hunt-status{gap:8px;font-size:.7rem}.strike-slots{gap:3px}.strike-slot{width:9px;height:9px}}
@media(prefers-reduced-motion:reduce){#clueFeedback,.strike-slot.used{animation:none}}

/* Odds on each clue, and the paid keyword row. */
.trait-front .trait-odds{text-transform:none;font-size:.55rem;font-weight:800;letter-spacing:.02em;opacity:.7;font-variant-numeric:tabular-nums}
.keyword-cost{flex:none;padding:3px 9px;border-radius:999px;background:var(--red-fill);color:var(--on-fill);font-size:.58rem;letter-spacing:.05em;text-transform:uppercase}
:root:root .deck-grid .trait.keyword-card .trait-front{background:#8a4702;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
.keyword-card .trait-front small{font-size:.5rem;font-weight:900;letter-spacing:.04em;opacity:.85}
.keyword-card .trait-face.trait-back small{font-size:.46rem;font-weight:900;letter-spacing:.12em;opacity:.7}
.keyword-card .trait-back b{font-size:.68rem;max-height:3.4em}

.deck-section h2 span{text-transform:uppercase}
.signal-map-card .orbit-subicons svg.rating-stars{width:calc(var(--stars)*20px);height:20px;stroke:none}

/* Free keyword banner, pinned under the status bar. */
.free-keyword{position:sticky;top:44px;z-index:4;display:flex;flex-direction:column;align-items:center;gap:0;margin:0 0 10px;padding:4px 12px;line-height:1.15;overflow:hidden;border:1px solid var(--gold);border-radius:12px;background:#8a4702;text-align:center;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--text)}
.free-keyword span{font-size:.68rem;font-weight:900;letter-spacing:.06em;opacity:.8}
.free-keyword b{font-size:1rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;overflow-wrap:anywhere}
.free-keyword::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 35%,#fff6 50%,transparent 65%);transform:translateX(-100%);pointer-events:none}
.free-keyword.intro{animation:keywordPop .7s cubic-bezier(.2,1.5,.4,1) both,keywordGlow 2s ease-out both}
.free-keyword.intro::after{animation:keywordSheen 1.1s .3s ease-out both}
@keyframes keywordPop{from{opacity:0;transform:scale(.8) translateY(-10px)}to{opacity:1;transform:none}}
@keyframes keywordGlow{0%,45%{box-shadow:0 0 26px #ee9b00cc}100%{box-shadow:0 0 0 #ee9b0000}}
@keyframes keywordSheen{to{transform:translateX(100%)}}

/* Outcome popup: filled result header, answer row, details, pinned actions. */
html:has(dialog[open]){overflow:hidden}
dialog{overscroll-behavior:contain}
.oc-body{display:flex;flex-direction:column;text-align:left}
.oc-hero{position:relative;padding:18px 60px 16px 20px;background:#1b8a6b;--text:var(--on-fill);--text-soft:var(--on-fill);--muted:var(--on-fill);color:var(--on-fill)}
.hunt-outcome.lost .oc-hero{background:#9b2226}
.oc-tier{display:block;font-size:.66rem;font-weight:900;letter-spacing:.14em;opacity:.85}
.oc-hero h2{display:flex;align-items:center;gap:10px;margin:6px 0 0;color:var(--on-fill);font-size:clamp(1.9rem,8vw,2.6rem);font-weight:950;line-height:1;letter-spacing:.02em}
.oc-hero h2 i{flex:none;display:grid;place-items:center;width:1.2em;height:1.2em;border-radius:50%;background:var(--on-fill);color:#1b8a6b;font-size:.62em;font-style:normal}
.hunt-outcome.lost .oc-hero h2 i{color:#9b2226}
.oc-hero p{margin:9px 0 0;color:var(--on-fill);font-size:.8rem;font-weight:800;font-variant-numeric:tabular-nums}
.oc-close{position:absolute;top:12px;right:12px;width:38px;height:38px;border:0;border-radius:10px;background:#0003;color:var(--on-fill);font-size:1.35rem;font-weight:900;line-height:1}
.oc-answer{display:flex;align-items:center;gap:14px;padding:16px 20px}
.oc-answer img{flex:none;width:118px;aspect-ratio:2/3;object-fit:cover;border:1px solid var(--line);border-radius:10px;background:var(--raise)}
.oc-answer>div{min-width:0}
.oc-label,.oc-details #trailer:not(:empty)::before{display:block;color:var(--muted);font-size:.63rem;font-weight:950;letter-spacing:.12em}
.oc-answer h3{margin:5px 0 0;color:var(--text);font-size:1.35rem;line-height:1.15;overflow-wrap:anywhere}
.oc-details{display:grid;gap:18px;padding:0 20px 18px}
.oc-details:not(:has(#trailer:not(:empty))):has(#lossComparison[hidden]){display:none}
.oc-details .outcome-choice{grid-template-columns:80px minmax(0,1fr);margin-top:0;padding-top:16px;border-top:1px solid var(--line)}
.oc-details .outcome-choice::before{display:none}
.oc-details #trailer:not(:empty){padding-top:16px;border-top:1px solid var(--line)}
.oc-details #trailer:not(:empty)::before{content:"TRAILER";width:auto;height:auto;margin:0 0 9px;border-radius:0;background:none!important}
.oc-details #trailer iframe{display:block}
.oc-actions{position:sticky;bottom:0;display:grid;gap:8px;padding:12px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.oc-share{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;border:0;border-radius:14px;background:var(--on-fill);box-shadow:0 0 22px #e9d8a655;color:#001219;font-size:1.02rem;font-weight:950;letter-spacing:.08em}
.oc-share svg{width:21px;height:21px}
.oc-actions .hunt-next-tier{margin:0;min-height:44px;font-size:.8rem}
.mismatch-trait svg.rating-stars{width:calc(var(--stars)*14px);height:14px}
/* Cards ruled out by found clues, and genres removed by the 50/50 lifeline. */
.deck-grid .trait.ruled-out:not(.flipped),.deck-grid .trait.cut:not(.flipped){cursor:default}
.deck-grid .trait.ruled-out:not(.flipped){opacity:.3}
.deck-grid .trait:is(.ruled-out,.cut):not(.flipped) .trait-face{border-style:dashed}
.deck-grid .trait.cut:not(.flipped) .trait-front>:not(.trait-x){opacity:.3}
.trait-x{position:absolute;inset:0;display:grid;place-items:center;font-size:2.7rem;font-weight:900;line-height:1}
.deck-grid .trait-face .trait-x{color:#ff5a4f!important}
/* Medals, score breakdown, bonus strike, streak and the second-chance prompt. */
.strike-slot.bonus{box-shadow:0 0 0 2px var(--gold)}
.result .result-medal{margin:6px 0 0;font-size:.78rem;font-weight:900;font-variant-numeric:tabular-nums}
.splash-streak>span{display:flex;flex-direction:column;align-items:center;gap:2px}
.splash-streak{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:0 auto 20px;padding:9px 18px;border:1px solid var(--line);border-radius:12px;background:var(--high);color:var(--text);--text:var(--page-text);--muted:var(--page-muted)}
.splash-streak.active{border-color:var(--gold);box-shadow:0 0 18px #ee9b0033}
.splash-streak b{font-size:.95rem;font-weight:950;letter-spacing:.02em}
.splash-streak small{color:var(--muted);font-size:.68rem;font-weight:700}
.oc-hero p{margin-top:14px}
.oc-medal{position:absolute;top:12px;right:62px;display:flex;flex-direction:column;align-items:center;gap:4px}
.oc-medal-disc{position:relative;display:grid;place-items:center;width:52px;height:52px;border:2px solid #fff9;border-radius:50%;background:radial-gradient(circle at 30% 25%,#f0b98a,#a8632d 72%);box-shadow:0 3px 12px #0007}
.oc-medal.silver .oc-medal-disc{background:radial-gradient(circle at 30% 25%,#f7f9fb,#97a3af 72%)}
.oc-medal.gold .oc-medal-disc{background:radial-gradient(circle at 30% 25%,#ffe98f,#d19c12 72%)}
.oc-medal-disc svg{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);color:#fff;opacity:.3}
.oc-medal-disc b{position:relative;color:#1a1204;font-size:1.1rem;font-weight:950;font-variant-numeric:tabular-nums}
.oc-medal small{color:var(--on-fill);font-size:.56rem;font-weight:950;letter-spacing:.14em}
@media(prefers-reduced-motion:no-preference){.hunt-outcome[open] .oc-medal{animation:medalDrop .6s .25s cubic-bezier(.2,1.5,.4,1) both}}
@keyframes medalDrop{from{opacity:0;transform:translateY(-14px) scale(.6) rotate(-25deg)}to{opacity:1;transform:none}}
.oc-perk{margin:0 20px 14px;padding:9px 12px;border:1px solid var(--gold);border-radius:10px;background:#ee9b001f;color:var(--text);font-size:.76rem;font-weight:700;text-align:center}
.oc-perk b{color:var(--gold);font-weight:950;letter-spacing:.08em}
.oc-score{margin:0 20px 18px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--high)}
.oc-score h4{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 6px;color:var(--muted);font-size:.63rem;font-weight:950;letter-spacing:.12em}
.oc-score h4 b{color:var(--text);font-size:.86rem;letter-spacing:0}
.oc-score-row{display:flex;justify-content:space-between;gap:12px;padding:4px 0;color:var(--text);font-size:.76rem;font-variant-numeric:tabular-nums}
.oc-score-row+.oc-score-row{border-top:1px solid var(--line)}
.oc-score-row b{color:var(--mint)}
.oc-score-row.minus b{color:#ff8a80}
.hunt-chance{border-color:var(--gold)}
.hunt-chance .oc-hero{padding-right:20px;background:#8a4702}
.hunt-chance .oc-hero h2 i{color:#8a4702}
.hunt-chance .oc-answer{align-items:flex-start}
.hunt-chance .oc-answer img{width:84px}
.chance-text{margin:8px 0 0;color:var(--text);font-size:.8rem;line-height:1.4}
.oc-share small{padding:3px 8px;border-radius:999px;background:#00121922;font-size:.6rem;letter-spacing:.08em}
.chance-decline{min-height:44px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--text);font-size:.8rem;font-weight:900}
.hunt-outcome.won .oc-hero h2{font-size:clamp(1.6rem,6.6vw,2.3rem)}
.hunt-chance .oc-actions .chance-decline{border:1px solid var(--line-strong,var(--line))}
#clueFeedback.penalty{border-color:var(--red)}
/* Brand: decoyed. */
.brand-logo,.brand-mark{font-family:"Titan One","Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;font-weight:400;text-transform:none}
:root:root .splash-inner h1.brand-logo{margin:0;color:var(--mint);font-size:clamp(3.4rem,18vw,5.8rem);line-height:1;letter-spacing:.01em;white-space:nowrap;text-shadow:0 4px 0 #005f73,0 12px 28px #0a939655}
:root:root .splash-inner .brand-tagline{margin:10px 0 0;color:var(--gold);font-size:.8rem;font-weight:950;letter-spacing:.34em;text-transform:uppercase}
:root:root .splash-inner .splash-mode{max-width:360px;margin:16px auto 0;padding:8px 12px;border:1px solid var(--gold);border-radius:10px;color:var(--text);font-size:.82rem;font-weight:800;line-height:1.35}
.top-title b.brand-mark{color:var(--mint);font-size:1.3rem;letter-spacing:.01em;line-height:1}
/* Replay, challenge and stats buttons. */
.hunt-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
.splash-inner .hunt-tools{margin:10px 0 0}
.tool-button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:0 6px;border:1px solid var(--line);border-radius:12px;background:var(--high);color:var(--text);font-size:.66rem;font-weight:950;letter-spacing:.07em;--text:var(--page-text);--text-soft:var(--page-soft);--muted:var(--page-muted)}
.tool-button svg{flex:none;width:17px;height:17px;color:var(--gold)}
@media(max-width:360px){.tool-button{gap:5px;font-size:.58rem;letter-spacing:.04em}.tool-button svg{width:15px;height:15px}}
/* Sheets shared by replay, challenge and stats. */
.hunt-sheet[open]{display:flex;flex-direction:column;height:min(88vh,780px);overflow:hidden}
#stats.hunt-sheet[open]{height:auto;max-height:88vh}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 12px 20px;border-bottom:1px solid var(--line)}
.sheet-head b{display:block;font-size:.95rem;font-weight:950;letter-spacing:.12em}
.sheet-head small{display:block;margin-top:3px;color:var(--muted);font-size:.72rem;font-weight:700;line-height:1.3}
.sheet-close{flex:none;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--high);color:var(--text);font-size:1.35rem;font-weight:900;line-height:1}
.sheet-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px 18px}
.archive-list h3{position:sticky;top:0;z-index:1;margin:0;padding:14px 4px 8px;background:var(--surface);color:var(--muted);font-size:.66rem;font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.archive-day{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 8px;padding:8px 10px 8px 14px;border:1px solid var(--line);border-radius:14px;background:var(--high);color:var(--text);text-align:left}
.archive-day.today{border-color:var(--gold)}
.archive-date b{display:block;font-size:.95rem;font-weight:950;font-variant-numeric:tabular-nums}
.archive-date small{display:block;margin-top:2px;color:var(--muted);font-size:.72rem;font-weight:700}
.archive-tiles{display:flex;gap:7px}
.archive-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:46px;aspect-ratio:3/4;border:1px dashed var(--line-strong,var(--line));border-radius:9px;background:var(--surface);color:var(--muted)}
.archive-tile i{font-size:1.15rem;font-style:normal;font-weight:950;line-height:1}
.archive-tile small{font-size:.44rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase}
.archive-tile:is(.won,.lost,.progress){border-style:solid;color:var(--on-fill)}
.archive-tile.won{border-color:var(--mint);background:#1b8a6b}
.archive-tile.lost{border-color:var(--red);background:#9b2226}
.archive-tile.progress{border-color:var(--gold);background:#8a4702}
.challenge-pick{display:flex;align-items:center;gap:12px;margin:14px 0 0;padding:12px;border:1px solid var(--gold);border-radius:14px;background:#ee9b001f}
.challenge-pick img{flex:none;width:72px;aspect-ratio:2/3;object-fit:cover;border-radius:8px;background:var(--raise)}
.challenge-pick>div{flex:1;min-width:0}
.challenge-pick strong{display:block;margin:4px 0 10px;color:var(--text);font-size:1rem;line-height:1.15;overflow-wrap:anywhere}
.challenge-pick .oc-share{width:100%;min-height:46px;font-size:.82rem}
.challenge-change{display:block;width:100%;margin-top:6px;padding:8px;border:0;background:none;color:var(--muted);font-size:.72rem;font-weight:800;text-decoration:underline}
.sheet-search{position:sticky;top:0;z-index:1;display:block;padding:14px 0 12px;background:var(--surface)}
.sheet-search input{width:100%;min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--high);color:var(--text);font:inherit;font-size:1rem}
.pick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}
.pick-grid p{grid-column:1/-1;margin:18px 0;color:var(--muted);font-size:.84rem;text-align:center}
.pick-game{display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;color:var(--text);text-align:center}
.pick-game img{width:100%;aspect-ratio:2/3;object-fit:cover;border:1px solid var(--line);border-radius:9px;background:var(--raise)}
.pick-game b{font-size:.68rem;line-height:1.15;overflow-wrap:anywhere}
.stats-body{padding-top:16px}
.stats-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:520px){.stats-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
.stats-tile{padding:14px 10px;border:1px solid var(--line);border-radius:14px;background:var(--high);text-align:center}
.stats-tile b{display:block;color:var(--text);font-size:1.7rem;font-weight:950;line-height:1;font-variant-numeric:tabular-nums}
.stats-tile small,.stats-medals small{display:block;margin-top:6px;color:var(--muted);font-size:.6rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.stats-medals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.5fr);gap:6px;margin-top:10px;padding:12px 8px;border:1px solid var(--gold);border-radius:14px;background:#ee9b0014;text-align:center}
.stats-medals span{font-size:1.45rem;line-height:1}
.stats-medals b{display:block;margin-top:3px;color:var(--text);font-size:1.15rem;font-weight:950;font-variant-numeric:tabular-nums}
.stats-points{display:flex;flex-direction:column;justify-content:center;border-left:1px solid var(--line)}
.stats-medals .stats-points b{color:var(--gold);font-size:1.5rem}
.stats-section{margin-top:18px}
.stats-section h3{margin:0 0 8px;color:var(--muted);font-size:.63rem;font-weight:950;letter-spacing:.12em}
.stats-tier{display:grid;grid-template-columns:62px minmax(0,1fr) 50px;align-items:center;gap:10px;padding:6px 0;color:var(--text);font-size:.74rem;font-weight:900}
.stats-bar{height:10px;border-radius:999px;background:var(--line);overflow:hidden}
.stats-bar i{display:block;height:100%;border-radius:999px;background:var(--mint)}
.stats-tier b{text-align:right;font-variant-numeric:tabular-nums}
.stats-details div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line);color:var(--text);font-size:.8rem}
.stats-details b{font-variant-numeric:tabular-nums}
.stats-note,.stats-empty{margin:18px 0 0;color:var(--muted);font-size:.72rem;text-align:center}
.stats-empty{margin:26px 0 10px;font-size:.86rem}
/* Polish pass. */
.signal-map-card .orbit-signal[style*="height"]{min-height:0}
.top-title b.brand-mark{line-height:1.15}
.hunt-status #clueFeedback{top:calc(100% + 58px)}
.hunt-status:has(+#freeKeyword[hidden]) #clueFeedback{top:calc(100% + 6px)}
dialog #toast{z-index:1}
/* Tutorial: short steps with picture-first visuals. */
.tutorial-shell h2{font-size:1.3rem}
.tutorial-shell p{font-size:.88rem;line-height:1.4}
.tutorial-progress i{width:14px}
.tut-row{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:8px}
.tut-chip{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--high);color:var(--text);font-size:.66rem;font-weight:900;letter-spacing:.04em;text-align:center}
.tut-chip.tall{min-width:68px;padding:12px 10px;font-size:.74rem}
.tut-chip small{font-size:.54rem;font-weight:900;letter-spacing:.06em;opacity:.85}
.tut-chip.gold{border-color:var(--gold);background:#8a4702;--text:var(--on-fill);color:var(--on-fill)}
.tut-chip.good{border-color:var(--mint);background:#1b8a6b;--text:var(--on-fill);color:var(--on-fill)}
.tut-chip.dim{border-style:dashed;opacity:.35}
.tutorial-counts .tut-penalty{margin-left:8px;padding:3px 8px;border:1px solid var(--red);border-radius:999px;color:var(--text);font-size:.62rem;letter-spacing:.02em}
@media(max-height:650px){.tutorial-shell p{font-size:.8rem}.tut-chip.tall{padding:8px}}
.archive-tile[style*="--cover"]{background-position:center;background-size:cover;text-shadow:0 1px 3px #000c}
.archive-tile.won[style*="--cover"]{background-image:linear-gradient(#1b8a6ba6,#1b8a6ba6),var(--cover)}
.archive-tile.lost[style*="--cover"]{background-image:linear-gradient(#9b2226a6,#9b2226a6),var(--cover)}
.tutorial-visual .tut-chip{border-color:color-mix(in srgb,var(--text) 35%,transparent);background:var(--bg)}
.tutorial-visual .tut-chip.gold{border-color:var(--gold);background:#8a4702}
.tutorial-visual .tut-chip.good{border-color:var(--mint);background:#1b8a6b}
.tut-row{gap:6px}
.tut-chip.tall{min-width:60px;padding:10px 6px;font-size:.6rem}
.tut-chip i{font-size:1.35rem;font-style:normal;line-height:1}
.tut-row.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
.tut-row.four .tut-chip{min-width:0;padding:10px 2px}
.tut-row.four small{font-size:.48rem;letter-spacing:.02em}
/* Header: back, wordmark and five icon buttons; the date line sits on its own row beneath. */
.top{grid-template-columns:auto minmax(0,1fr) repeat(5,auto);gap:6px}
.top .help{width:40px;height:40px}
.top .help svg{width:19px;height:19px}
.top-title{display:contents}
.top-title b.brand-mark{grid-column:2;min-width:0;overflow:hidden;font-size:1.2rem}
.top-title small{grid-column:1/-1;grid-row:2;padding-left:2px}
@media(max-width:400px){.top{gap:5px}.top .help{width:36px;height:36px;border-radius:10px;font-size:1rem}.top .help svg{width:17px;height:17px}.top .back{font-size:1.4rem}}
.top .back{width:40px;height:40px}
@media(max-width:400px){.top .back{width:36px;height:36px;border-radius:10px}}
/* The decoy count is the headline of the GUESS button, and a compact copy rides the status bar. */
.hunt-guess-core{gap:1px}
.hunt-guess-core strong{font-size:clamp(.68rem,2.8vw,.86rem);letter-spacing:.16em}
.hunt-guess-core .guess-count{display:block;min-width:2ch;font-size:clamp(1.6rem,7.4vw,2.2rem);font-weight:950;line-height:1;letter-spacing:0;font-variant-numeric:tabular-nums}
.hunt-guess-core small{font-size:clamp(.54rem,2.2vw,.66rem);font-weight:950;letter-spacing:.16em}
.hunt-guess-core .guess-count.shuffling{animation:decoyPulse .11s steps(2,end) infinite}
@keyframes decoyPulse{50%{opacity:.55}}
.guess-mini{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:76px;height:36px;padding:0 10px;border:0;border-radius:10px;background:var(--primary);box-shadow:0 0 14px #0a939666;color:var(--on-fill);--text:var(--on-fill);line-height:1}
.guess-mini strong{font-size:.68rem;font-weight:950;letter-spacing:.14em}
.guess-mini small{font-size:.56rem;font-weight:900;letter-spacing:.03em;font-variant-numeric:tabular-nums}
.guess-mini b{font-size:.7rem;font-weight:950}
.hunt-status.has-mini{gap:8px}
.hunt-status.has-mini :is(#clueCount,.strike-word){display:none}
.hunt-status.has-mini .top-metrics span+span::before{content:none}
@media(prefers-reduced-motion:no-preference){.guess-mini:not([hidden]){animation:miniIn .2s ease-out}}
@media(prefers-reduced-motion:reduce){.hunt-guess-core .guess-count.shuffling{animation:none}}
@keyframes miniIn{from{transform:scale(.8)}to{transform:none}}
/* Notes: every hint bought so far, in readable form. */
.hint-notes{display:grid;gap:6px;margin:0 0 10px;padding:10px 12px;border:1px solid var(--gold);border-radius:12px;background:#ee9b0014}
.hint-note{display:grid;gap:2px}
.hint-note small{color:var(--gold);font-size:.58rem;font-weight:950;letter-spacing:.12em}
.hint-note b{color:var(--text);font-size:.84rem;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.hint-note+.hint-note{padding-top:6px;border-top:1px solid var(--line)}
.library-notes{margin:0 16px 10px}
@media(prefers-reduced-motion:no-preference){.hint-notes.fresh{animation:keywordPop .5s cubic-bezier(.2,1.5,.4,1) both,keywordGlow 1.6s ease-out both}}
/* Map layout: the card deck lives in a bottom sheet opened one group at a time from the map. */
.layout-map .grid-card{display:none}
.layout-map .signal-group[data-type]{cursor:pointer;-webkit-tap-highlight-color:transparent}
.layout-map .signal-group[data-type]:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:12px}
@media(prefers-reduced-motion:no-preference){
  .layout-map .signal-map:not(.touched) .signal-group[data-type] :is(.orbit-tap,.group-traits){animation:tileInvite 2.2s ease-in-out infinite}
  .group-sheet[open]{animation:sheetUp .22s ease-out}
}
@keyframes tileInvite{0%,100%{box-shadow:0 0 0 0 #ee9b0000}50%{box-shadow:0 0 0 4px #ee9b0055}}
@keyframes sheetUp{from{transform:translateY(48px);opacity:.5}to{transform:none;opacity:1}}
.lifelines-bar{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:10px 14px;border:1px solid var(--gold);border-radius:14px;background:#8a4702;color:var(--on-fill);text-align:left;--text:var(--on-fill)}
.lifelines-bar svg{flex:none;width:22px;height:22px}
.lifelines-bar span{flex:1;min-width:0;display:grid;gap:2px}
.lifelines-bar b{font-size:.8rem;font-weight:950;letter-spacing:.12em}
.lifelines-bar small{font-size:.66rem;font-weight:700;opacity:.85}
.lifelines-bar i{font-size:1.4rem;font-style:normal;line-height:1}
.lifelines-bar.empty{border-color:var(--line);background:var(--high);color:var(--text);--text:var(--page-text)}
/* The sheet leaves the strikes and keyword visible above it, so there is always something to reason from. */
.group-sheet{position:fixed;top:auto;bottom:0;left:0;right:0;width:min(100vw,620px);max-width:none;max-height:calc(100dvh - 236px);min-height:220px;margin:0 auto;padding:0;border-bottom:0;border-radius:20px 20px 0 0;overflow:hidden}
.group-sheet[open]{display:flex;flex-direction:column}
.group-sheet::backdrop{background:linear-gradient(#0000 0,#0000 236px,#000a 320px);backdrop-filter:none}
.sheet-top{display:flex;align-items:center;gap:8px;padding:10px 10px 10px 14px;border-bottom:1px solid var(--line)}
.sheet-tabs{flex:1;min-width:0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.sheet-tabs::-webkit-scrollbar{display:none}
.sheet-tab{flex:none;display:flex;align-items:center;gap:6px;min-height:36px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:var(--high);color:var(--text);font-size:.64rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.sheet-tab small{font-size:.62rem;font-weight:900;opacity:.75;font-variant-numeric:tabular-nums}
.sheet-tab.done{border-color:var(--mint)}
.sheet-tab.done small{color:var(--mint);opacity:1}
.sheet-tab.aid{border-color:var(--gold)}
.sheet-tab.active{border-color:var(--gold);background:var(--gold);color:#001219}
.sheet-tab.active small{color:#001219;opacity:.8}
.sheet-note{margin:0;padding:8px 16px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.72rem;font-weight:700;text-align:center}
.group-sheet-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 14px calc(18px + env(safe-area-inset-bottom))}
.group-sheet-body .deck-section{margin:0}
body.sheet-open .hunt-status #clueFeedback{top:7px;left:0;right:0;width:max-content;margin:0 auto;z-index:6}
@media(max-height:700px){.group-sheet{max-height:calc(100dvh - 150px)}.group-sheet::backdrop{background:linear-gradient(#0000 0,#0000 150px,#000a 220px)}}
/* The group tabs sit at the bottom of the sheet, so they stay put while the sheet's height changes between groups. */
.group-sheet .sheet-top{order:3;border-bottom:0;border-top:1px solid var(--line);padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.group-sheet .group-sheet-body{padding-bottom:14px}
/* Final-guess header: a labelled way back to the clues, with the title beside it. */
#library .modal-head.library-head{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:12px 16px;text-align:right}
.library-back{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 14px 0 10px;border:1px solid var(--gold);border-radius:12px;background:var(--high);color:var(--text);font-size:.74rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;--text:var(--page-text)}
.library-back span{font-size:1.25rem;line-height:1}
.library-head b{font-size:.92rem;letter-spacing:.1em}
/* The group tabs are pinned to the bottom of the page; the sheet rises from the same bar. */
.page-tabs{position:fixed;left:0;right:0;bottom:0;z-index:7;display:flex;align-items:center;gap:8px;width:min(100vw,620px);margin:0 auto;padding:10px 10px calc(10px + env(safe-area-inset-bottom)) 14px;border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0;background:var(--surface);box-shadow:0 -8px 24px #0006;--text:var(--page-text);--muted:var(--page-muted)}
.page-tabs .sheet-close{display:grid;place-items:center}
.page-tabs .sheet-close svg{width:20px;height:20px}
.layout-map main{padding-bottom:88px}
.layout-map #toast{bottom:96px}
.layout-map .lifelines-bar{display:none}
/* An older rule sized the back control as a 36px square by its id; the labelled button needs its natural width. */
#library #libraryBack.library-back{display:flex;width:auto;height:auto;min-height:40px}
/* Hint cards show their own answer. The two that list game titles are double width so the titles fit. */
.keyword-section .deck-grid{grid-auto-flow:dense}
.deck-grid .trait.wide{grid-column:span 2}
.keyword-card.wide .trait-back{gap:3px;padding:6px 9px}
.keyword-card.wide .trait-back b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.35em;overflow:hidden;font-size:.64rem;line-height:1.15}
/* Drawer: the bottom bar is the handle. Opening pulls it up to the top of the sheet with the cards
   beneath it; closing drops it back to the bottom. A fixed height keeps the bar still between groups. */
.group-sheet{--bar:62px;height:calc(100dvh - 236px)}
.group-sheet .sheet-top{order:0;border-top:0;border-bottom:1px solid var(--line);padding-bottom:10px}
.group-sheet .group-sheet-body{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
@media(max-height:700px){.group-sheet{height:calc(100dvh - 150px)}}
@media(prefers-reduced-motion:no-preference){
  .group-sheet[open]{animation:drawerUp .28s cubic-bezier(.2,.9,.25,1)}
  .group-sheet[open].closing{animation:drawerDown .2s ease-in forwards}
  .group-sheet[open]::backdrop{animation:drawerFade .28s ease-out}
}
@keyframes drawerUp{from{transform:translateY(calc(100% - var(--bar) - env(safe-area-inset-bottom)))}to{transform:none}}
@keyframes drawerDown{to{transform:translateY(calc(100% - var(--bar) - env(safe-area-inset-bottom)))}}
@keyframes drawerFade{from{opacity:0}to{opacity:1}}
/* The drawer rises only as far as the open group's cards need. */
.group-sheet{height:auto;min-height:0}
@media(max-height:700px){.group-sheet{height:auto}}
/* Screen-size pass. */
/* The map never shows trait lists in this layout, so it stays compact on tablets and desktop too. */
.layout-map .signal-map{max-width:420px;margin-left:auto;margin-right:auto}
/* Smallest phones (320px): keep the wordmark and the longest card label whole. */
@media(max-width:340px){
  .top{gap:4px}
  .top .help,.top .back{width:33px;height:33px}
  .top-title b.brand-mark{font-size:1rem}
  .deck-grid .trait-front b{max-height:3.5em;font-size:.54rem}
  .sheet-tab{padding:0 9px;font-size:.6rem}
}
/* Short screens and landscape phones: drop the decorative orbit so PLAY is on screen, and tighten the drawer. */
@media(max-height:560px){
  .splash-orbit{display:none}
  .splash-inner h1.brand-logo{font-size:clamp(2.6rem,12vh,4rem)}
  .group-sheet{max-height:calc(100dvh - 96px)}
  .group-sheet::backdrop{background:linear-gradient(#0000 0,#0000 96px,#000a 150px)}
}
/* Wider screens: more covers per row in the final-guess list. */
@media(min-width:640px){#library .library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:900px){#library .library-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* Start screen: the game in three pictures. */
.splash-flow{display:flex;align-items:stretch;justify-content:center;gap:22px;max-width:340px;margin:18px auto 20px;padding:0;list-style:none;counter-reset:flow}
.splash-flow li{position:relative;display:flex;flex:1 1 0;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:12px 4px 10px;border:1px solid var(--line-strong);border-radius:12px;background:var(--high);counter-increment:flow}
.splash-flow li::before{content:counter(flow);position:absolute;top:-8px;left:-8px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--gold);color:#001219;font-size:.66rem;font-weight:950}
.splash-flow li+li::after{content:"\203A";position:absolute;top:50%;left:-16px;transform:translateY(-55%);color:var(--gold);font-size:1.3rem;font-weight:900;line-height:1}
.splash-flow svg{width:30px;height:30px;color:var(--mint)}
.splash-flow b{color:var(--text-soft);font-size:.6rem;font-weight:950;letter-spacing:.06em;white-space:nowrap}
@media(max-width:340px){.splash-flow{gap:16px}.splash-flow li+li::after{left:-13px}.splash-flow b{font-size:.54rem;letter-spacing:.02em}}
@media(max-height:560px){.splash-flow{margin:12px auto 14px}.splash-flow li{padding:9px 4px 7px}.splash-flow svg{width:24px;height:24px}}
