@font-face{font-family:Geist;src:url('../assets/geist.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:"Source Serif 4";src:url('../assets/source-serif.woff2') format('woff2');font-weight:400 700;font-display:swap}
@font-face{font-family:"Source Serif 4";src:url('../assets/source-serif-italic.woff2') format('woff2');font-weight:400 700;font-style:italic;font-display:swap}
:root {
  --paper:#f7f5f2; --card:#fffcf7; --deep:#162e36; --ink:#1e2a38; --petrol:#30575b;
  --muted:#526260; --line:#b8c5c1; --mist:#e6eeea; --amber:#f6dfa1; --serif:"Source Serif 4",Georgia,serif;
  color:var(--ink); background:var(--paper); font: 16px/1.53 Geist,system-ui,sans-serif;
}
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none !important; }
body,h1,h2,h3,p,blockquote,figure { margin:0; }
img { display:block; max-width:100%; }
a { color:inherit; }
button,input,select { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.5; }
:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.shell { width:min(1090px,calc(100% - 32px)); margin-inline:auto; }
.sr-only,.skip:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { position:absolute; z-index:5; background:var(--card); padding:10px; }
.top { background:var(--deep); color:var(--paper); }
.top-inner { display:flex; align-items:center; gap:13px; min-height:61px; }
.brand { text-decoration:none; font-size:1.04rem; letter-spacing:.12em; font-weight:850; }
.game-credit { color:#d5e4df; font-size:.75rem; }
.top-action { margin-left:auto; min-height:44px; padding:6px 10px; border:0; background:none; color:inherit; text-decoration:underline; text-underline-offset:4px; font-size:.82rem; }
#game { padding-block:22px 65px; }
.game-footer { border-top:1px solid var(--line); padding-block:12px 20px; }
.game-footer nav { display:flex; flex-wrap:wrap; gap:0 24px; }
.game-footer a { display:inline-flex; align-items:center; min-height:44px; text-underline-offset:3px; }
.legal { padding-block:clamp(28px,6vw,65px); max-width:74ch; overflow-wrap:anywhere; }
.legal section { margin-top:26px; }
.legal h2 { margin-bottom:10px; }
.legal p + p { margin-top:12px; }
.legal address { font-style:normal; }
h1,h2,h3 { font-family:var(--serif); line-height:1.02; letter-spacing:-.045em; }
h1 { font-size:clamp(2.4rem,7vw,5.25rem); }
h2 { font-size:clamp(1.55rem,4vw,2.1rem); }
h3 { font-size:1.25rem; }
h1:focus,h2[tabindex]:focus { outline:none; }
.eyebrow { font-size:.69rem; font-weight:780; letter-spacing:.16em; text-transform:uppercase; }
.lead { color:var(--muted); max-width:62ch; }
.start-hero { position:relative; isolation:isolate; display:grid; align-items:end; min-height:385px; overflow:hidden; color:var(--card); background:var(--deep); border-radius:14px; }
.start-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 43%; z-index:-2; }
.start-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,transparent 15%,#101e27a8 50%,#101e27 100%); }
.start-copy { padding:24px; }
.start-copy .eyebrow { color:var(--amber); margin-bottom:9px; }
.start-copy h1 { max-width:15ch; font-weight:570; }
.start-copy h1 em { font-weight:480; }
.episode-title { margin-top:10px; font-weight:740; letter-spacing:.09em; font-size:.83rem; }
.test-note { display:inline-block; width:fit-content; color:var(--deep); background:var(--amber); border-radius:4px; padding:4px 7px; margin-top:11px; font-size:.71rem; font-weight:760; }
.mode-grid { display:grid; gap:10px; margin-top:14px; }
.mode { display:grid; gap:5px; text-align:left; color:var(--ink); background:var(--card); padding:17px 19px; border:1px solid var(--line); border-radius:9px; }
.mode:hover:not(:disabled), .item:hover:not(:disabled) { background:var(--mist); border-color:var(--petrol); }
.mode strong { font-family:var(--serif); font-size:1.6rem; line-height:1; }
.mode small { color:var(--muted); font-size:.86rem; }
.resume,.incoming { margin-top:14px; }
.resume { display:flex; align-items:center; flex-wrap:wrap; gap:10px 20px; }
.resume .button { margin-left:auto; }
.progress { padding:0; margin:0 0 23px; display:grid; gap:5px; grid-template-columns:repeat(6,1fr); list-style:none; }
.progress li { border-top:3px solid #c3cfca; padding-top:5px; color:var(--muted); text-align:center; font-size:.74rem; font-weight:650; }
.progress li[aria-current] { border-color:var(--petrol); color:var(--deep); font-weight:840; }
.progress li.done { border-color:#769c91; }
.progress .step-label { display:none; }
.phase-head { margin-bottom:19px; }
.phase-head .eyebrow { color:var(--petrol); margin-bottom:6px; }
.phase-head h1 { font-size:clamp(2.05rem,7.5vw,4.55rem); margin-bottom:8px; }
.phase-head .test-note { margin:0 0 9px; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:9px; padding:16px; }
.panel > p + p { margin-top:9px; }
.panel h2 + p { margin-top:10px; }
.stack { display:grid; gap:11px; }
.phase-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; align-items:start; }
.scene { isolation:isolate; position:relative; border-radius:9px; overflow:hidden; background:var(--deep); }
.scene > img { width:100%; aspect-ratio:5 / 2; object-fit:cover; }
.hotspot { position:absolute; transform:translate(-50%,-50%); width:44px; height:44px; padding:0; border:0; border-radius:50%; background:transparent; }
.hotspot[aria-disabled=true] { cursor:default; }
.items { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.item { display:flex; align-items:center; width:100%; min-height:45px; text-align:left; gap:10px; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:8px 11px; }
.item[aria-pressed=true] { border-color:var(--petrol); background:var(--mist); box-shadow:inset 3px 0 var(--petrol); }
.item-thumb { width:42px; height:42px; border-radius:4px; object-fit:cover; }
.item small { display:block; color:var(--muted); font-size:.72rem; }
.clue-detail img { border-radius:6px; margin-top:10px; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.actions:not(:first-child) { margin-top:14px; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:44px; padding:8px 13px; border:1px solid transparent; border-radius:6px; font-weight:690; font-size:.86rem; text-decoration:none; }
.primary { color:var(--card); background:var(--deep); }
.primary:hover:not(:disabled) { background:var(--petrol); }
.secondary { color:var(--deep); background:var(--card); border-color:var(--line); }
.secondary:hover:not(:disabled) { background:var(--mist); }
.button.primary:focus-visible { outline-color:var(--petrol); }
.advance { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:18px; border-top:1px solid var(--line); padding-top:13px; }
.advance small { color:var(--muted); font-size:.78rem; }
.advance .button { margin-left:auto; }
.characters { display:grid; gap:7px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.character { min-width:0; padding:3px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--card); }
.character img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:5px; }
.character span { display:block; padding:6px 0 4px; font-size:clamp(.65rem,2.6vw,.88rem); font-weight:760; }
.character[aria-pressed=true] { border-color:var(--petrol); background:var(--mist); box-shadow:0 0 0 1px var(--petrol); }
.answer { padding:11px 0 11px 11px; border-left:2px solid var(--petrol); margin-top:8px; }
.answer strong { font-size:.81rem; }
.answer p, .reveal-copy p { font:italic 1.15rem/1.35 var(--serif); }
.note { background:var(--mist); border-color:#abc1b9; }
.feedback { margin-top:9px; color:var(--petrol); font-weight:650; }
.duo { margin-top:16px; background:#efece4; border-radius:8px; padding:10px 13px; }
.duo summary { cursor:pointer; color:var(--deep); min-height:32px; padding-top:3px; font-size:.85rem; font-weight:720; }
.duo p { margin:5px 0 6px; }
.reveal { display:grid; overflow:hidden; border-radius:9px; background:var(--deep); color:var(--card); animation:fade-in .7s ease-out both; }
.reveal img { width:100%; aspect-ratio:5 / 2; object-fit:cover; }
.reveal-copy { padding:19px; }
.reveal-copy h2 { margin-bottom:10px; }
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
.share-form { display:grid; gap:6px; margin-top:12px; }
.share-form label { font-weight:650; }
.share-form select,.manual { min-height:44px; width:100%; border:1px solid var(--line); border-radius:6px; padding:6px 9px; color:var(--ink); background:var(--card); }
.manual { margin-top:10px; }
dialog { width:min(460px,calc(100% - 32px)); color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:10px; padding:22px; }
dialog p { margin-top:9px; }
dialog::backdrop { background:#12222ba8; }
@media(min-width:650px) {
  .shell { width:min(1090px,calc(100% - 64px)); }
  #game { padding-top:32px; }
  .start-hero { min-height:450px; }
  .start-copy { padding:36px; }
  .start-hero::before { background:linear-gradient(95deg,#101e27ed,#101e2760 59%,transparent), linear-gradient(0deg,#101e27c9,transparent 60%); }
  .mode-grid { grid-template-columns:1fr 1fr; }
  .progress li { text-align:left; }
  .progress .step-label { display:inline; }
  .panel { padding:19px; }
  .phase-grid { grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; scroll-behavior:auto !important; } }

.story-progress { grid-template-columns:repeat(5,1fr); }
.script-garden { border-radius:9px; overflow:hidden; margin-bottom:12px; }
.script-garden img { width:100%; aspect-ratio:5 / 2; object-fit:cover; }
.garden-cut { position:relative; border-radius:9px; overflow:hidden; background:#10191e; }
.garden-cut-frame { overflow:hidden; }
.garden-cut-frame img { display:block; width:100%; transform:scale(var(--shot-zoom)); transform-origin:var(--shot-focus); }
.garden-cut--tomato { --shot-zoom:3.4; --shot-focus:12% 66%; }
.garden-cut--maria { --shot-zoom:2; --shot-focus:49% 24%; }
.garden-cut--sabine { --shot-zoom:1.75; --shot-focus:79% 13%; }
.garden-cut--bag { --shot-zoom:3; --shot-focus:34% 91%; }
.garden-cut--doc { --shot-zoom:2.15; --shot-focus:33% 7%; }
.garden-cut-caption { position:absolute; inset:auto 0 0; padding:24px 12px 10px; text-align:center; background:linear-gradient(transparent,#10191ef5); color:#fff; font-size:clamp(.875rem,2vw,1.08rem); }
.script-beat { min-height:126px; }
.script-beat blockquote { font:500 clamp(1.32rem,3.8vw,2rem)/1.24 var(--serif); }
.script-beat blockquote { margin-top:9px; }
.script-beat .direction { margin-block:8px; color:var(--muted); font:italic 1rem/1.35 var(--serif); }
.script-beat .speaker { color:var(--petrol); }
.speaker-line { display:flex; align-items:center; gap:9px; }
.speaker-line img { width:44px; height:44px; border-radius:50%; object-fit:cover; }
.script-beat.pause { display:grid; place-items:center; font:500 2rem var(--serif); }
.image-cut { display:grid; justify-items:center; }
.image-cut img { width:auto; height:auto; max-height:min(65vh,680px); border-radius:9px; }
[data-beat]:focus { outline:none; }
.film-card { display:grid; justify-items:start; gap:9px; padding:clamp(22px,6vw,58px); background:var(--deep); color:var(--card); border-radius:9px; animation:fade-in .45s ease-out both; }
.film-card .eyebrow { color:var(--amber); }
.film-card h2 { font-size:clamp(2rem,7vw,4rem); }
.film-card .film-credit { font-size:.75rem; color:#d5e4df; margin-top:9px; }
.film-credit a { text-underline-offset:3px; }
.film-card.blackout { min-height:180px; background:#10191e; }
.film-card .actions { margin-top:3px; }
.joker-card .primary { background:var(--amber); color:var(--deep); }
.joker-card .primary:hover { background:#fff0bd; }
.joker-card .primary:focus-visible { outline-color:var(--card); }
.scene-lead { margin-bottom:12px; }
.garden-stage { position:relative; min-width:0; }
.garden-stage .scene { width:100%; }
.scene { overflow-x:auto; }
.scene-art { position:relative; width:100%; }
.scene.zoomed .scene-art { width:180%; }
.scene-art img { width:100%; aspect-ratio:5 / 2; object-fit:cover; }
.hotspot:focus-visible { outline:2px solid #fff; outline-offset:1px; box-shadow:0 0 0 5px var(--deep); }
.found-list { margin:0; padding-left:20px; }
.tap-mark { position:absolute; width:18px; height:18px; transform:translate(-50%,-50%); border:2px solid #fff; box-shadow:0 0 0 1px var(--deep); border-radius:50%; pointer-events:none; animation:tap-fade .38s ease-out both; }
@keyframes tap-fade { to { opacity:0; } }
.bait-stamp { position:absolute; z-index:2; inset:0; display:grid; place-items:center; width:100%; border:0; border-radius:9px; color:var(--card); background:#162e36ae; }
.bait-stamp span { display:grid; justify-items:center; gap:3px; padding:12px 19px; border:2px solid currentColor; border-radius:6px; animation:stamp .24s ease-out both; }
.bait-stamp strong { font-family:var(--serif); font-size:clamp(1.5rem,5vw,2.7rem); }
.bait-stamp small { padding-top:5px; }
@keyframes stamp { from { opacity:0; transform:scale(.94); } to { opacity:1; transform:scale(1); } }
.asked-list { margin-bottom:0; padding-left:20px; }
.asked-list li + li { margin-top:6px; }
.phone { width:min(440px,100%); margin-inline:auto; padding:clamp(13px,4vw,25px); border:6px solid var(--deep); border-radius:26px; background:var(--card); }
.phone-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.timeline { list-style:none; display:grid; gap:10px; padding:0; margin:17px 0; }
.timeline li { border-left:3px solid var(--petrol); background:var(--mist); border-radius:4px; padding:10px 12px; }
.timeline .eyebrow { color:var(--petrol); text-transform:none; }
.timeline li p { margin-block:3px; }
.timeline small,.phone-credit { font-size:.77rem; color:var(--muted); }
.utend-check { margin-left:3px; font-weight:800; }
.duo-moment h2 { margin-top:6px; }
.outro h2,.result-card h2 { margin-top:5px; }
.nomination,.unasked { border-top:1px solid var(--line); padding-top:13px; margin-top:16px; }
.nomination .lead { margin-top:10px; }
.invitation-types { min-width:0; margin:14px 0 0; padding:0; border:0; }
.invitation-types label { display:flex; align-items:center; min-height:44px; gap:7px; cursor:pointer; }
.invitation-types input { flex:none; margin:0; accent-color:var(--petrol); }
.invitation-types p { margin-left:20px; color:var(--muted); font-size:.83rem; }
.share-form select + label { margin-top:7px; }
.result-card { background:var(--mist); }
#result-line { font-weight:740; }
.last-card { max-width:680px; padding:clamp(19px,5vw,44px); }
.last-card h1 { font-size:clamp(2.1rem,6vw,4rem); margin-bottom:13px; }
.last-card .signature { margin-top:18px; font-family:var(--serif); font-style:italic; }
.case-back { margin-bottom:13px; }
.case-layout { display:grid; gap:14px; align-items:start; }
.case-search,.case-paper { display:grid; gap:12px; }
.case-search label,.case-paper label { font-weight:690; }
.search-row { display:flex; gap:8px; }
.search-row input,.case-paper select { min-width:0; width:100%; min-height:44px; padding:7px 10px; border:1px solid var(--line); color:var(--ink); background:var(--card); border-radius:6px; }
.case-paper select { display:block; margin-top:5px; font-weight:500; }
.case-route,.case-layout > .advance { grid-column:1 / -1; }
.case-route .eyebrow { color:var(--petrol); margin-bottom:6px; }
.case-route .lead { margin-top:5px; }
.case-route .actions { margin:0; }
.clip-panel,.case-paper,.instagram { max-width:750px; }
.reel-frame,.finale-still,.empty-scene { position:relative; isolation:isolate; overflow:hidden; min-height:275px; border-radius:10px; background:#10191e; color:var(--card); }
.reel-frame { width:100%; min-width:0; aspect-ratio:16 / 9; }
.reel-image img,.finale-still img { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; object-position:50% 33%; filter:saturate(.6); }
.rail { position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(90deg,transparent 0 15%,#10191ee8 15% 17%,transparent 17% 21%); }
.clip-caption,.clip-tag,.finale-still figcaption { position:absolute; z-index:1; padding:6px 9px; background:#10191eed; color:var(--card); border-radius:4px; }
.clip-caption { left:12px; bottom:12px; right:12px; text-align:center; }
.clip-tag,.finale-still figcaption { top:11px; left:12px; font-size:.72rem; }
.empty-scene { display:grid; place-items:center; background:radial-gradient(ellipse at 68% 28%,#e0ad72 0,transparent 20%),linear-gradient(180deg,#1d3046,#4c6676 58%,#d1dce4 59%,#eef1ee); }
.chair { width:106px; height:120px; position:relative; border:8px solid #6f4831; border-radius:34px 34px 6px 6px; background:repeating-linear-gradient(0deg,#876648 0 4px,#ac835b 4px 8px); transform:translateY(-13px); }
.chair::before,.chair::after { content:""; position:absolute; top:100%; width:8px; height:36px; border-radius:0 0 3px 3px; background:#6f4831; }
.chair::before { left:0; } .chair::after { right:0; }
.chair i { position:absolute; bottom:-7px; inset-inline:-13px; height:16px; border-radius:7px; background:#8d6546; }
.instagram header { display:flex; align-items:center; gap:10px; }
.instagram header img { border-radius:50%; }
.instagram header small { display:block; color:var(--muted); }
.summer-photo { position:relative; min-height:200px; border-radius:7px; overflow:hidden; background:linear-gradient(#abc4bc 0 53%,#676c42 54%); }
.summer-photo figcaption { position:absolute; left:8px; bottom:8px; background:var(--card); padding:3px 6px; font-size:.75rem; border-radius:3px; }
.greenhouse { position:absolute; width:39%; height:45%; border:4px solid #565142; border-top:0; top:35%; right:16%; background:repeating-linear-gradient(90deg,transparent 0 23%,#71634f 23% 26%); }
.greenhouse::before { content:""; position:absolute; width:70%; aspect-ratio:1; transform:rotate(45deg); border:4px solid #565142; border-right:0; border-bottom:0; left:16%; top:-30%; }
.tomato-still { position:absolute; left:10%; bottom:27%; width:25%; height:30%; background:radial-gradient(circle at 30% 67%,#aa3430 0 16%,transparent 17%),radial-gradient(circle at 72% 48%,#be4937 0 18%,transparent 19%),radial-gradient(circle at 48% 32%,#4c7240 0 42%,transparent 44%); }
.call-still { background:var(--mist); border-radius:7px; overflow:hidden; }
.call-still img { width:100%; height:245px; object-fit:cover; object-position:50% 30%; }
.call-still figcaption { padding:7px 10px; font-size:.78rem; }
.call-still figcaption { min-height:2.55rem; background:var(--deep); color:var(--card); }
.empty-garden,.case-still { width:100%; border-radius:9px; }
.chair-shot { overflow:hidden; border-radius:9px; }
.chair-detail img { transform:scale(2.15); transform-origin:49% 70%; }
.manuscript { width:min(620px,100%); background:#f2e7d2; color:#382b23; border:1px solid #c8b69d; padding:clamp(22px,6vw,57px); border-radius:5px; box-shadow:0 12px 30px #382b231a; font:1.12rem/1.55 var(--serif); }
.manuscript h2 { margin-top:10px; }
.manuscript-chapter { margin-block:8px 26px; }
.manuscript-note { margin-top:19px; }
.manuscript .signature { margin-top:24px; font-style:italic; }
.empty-next { animation:empty-hold 1.35s ease-out both; }
.empty-next:focus-within { animation:none; }
.finale-hold { animation:empty-hold 1.35s ease-out both; }
.finale-hold:focus-within { animation:none; }
@keyframes empty-hold { 0%,55% { opacity:0; } 100% { opacity:1; } }
.summer-photo { width:100%; max-height:430px; object-fit:cover; }
.coast-line { font:italic 1.28rem/1.35 var(--serif); }
.erna-caption { position:absolute; inset:auto 12px 12px; z-index:2; padding:7px 10px; text-align:center; background:#10191eed; color:var(--card); border-radius:4px; pointer-events:none; }
.evidence-picks { min-width:0; display:grid; gap:9px; }
.evidence-picks legend { font-weight:740; padding-inline:5px; }
.evidence-pick { display:flex; align-items:flex-start; min-height:44px; gap:8px; padding:8px; border:1px solid var(--line); border-radius:6px; cursor:pointer; }
.evidence-pick input { flex:none; margin-top:5px; accent-color:var(--petrol); }
.evidence-pick small { display:block; font-size:.88rem; }
.evidence-pick:has(input:checked) { background:var(--mist); border-color:var(--petrol); }
.veggie-fly { position:fixed; z-index:12; left:53%; top:34%; display:grid; place-items:center; width:95px; height:95px; transform:translate(-50%,-50%); pointer-events:none; animation:fly-pop .75s both; }
.veggie-fly span { font-size:4rem; }
.veggie-fly i { position:absolute; font-style:normal; bottom:4px; right:8px; font-size:1.55rem; }
@keyframes fly-pop { 0% { opacity:0; scale:.3; } 23%,67% { opacity:1; scale:1; } 100% { opacity:0; scale:.75; } }
@media(prefers-reduced-motion:reduce) { .veggie-fly,.empty-next,.finale-hold { animation:none !important; } }
.finale-still { width:100%; min-width:0; aspect-ratio:16 / 7; }
.finale-still.coast-wide { background:linear-gradient(#b1c8cc 0 53%,#799fac 54%,#527b89 100%); }
.finale-still.coast-wide img { object-position:50% 50%; filter:none; }
.reel-frame .tight-crop,.finale-still .tight-crop { object-fit:contain; object-position:center; filter:saturate(.6) brightness(.77); }
.coast-wide .rail { inset:56% 0 0; border-top:8px solid #1e2a38; opacity:.83; }
@media(min-width:650px) {
  .case-layout { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
  .case-route { display:flex; align-items:center; justify-content:space-between; }
}
