/* Vault Zero: dark museum atmosphere, restrained archive detail, readable choices. */
:root{--bg:#081218;--ink:#f4f0e7;--muted:#b3c2c8;--panel:#111f26;--line:#2b3d45;--red:#c63c49;--amber:#e1bf83;--cyan:#9ad4dc;--space:4px;--content:1080px}
body{padding:0;background:#050d12}
button,select{font-family:inherit;cursor:pointer}button:disabled{cursor:default}
button:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--amber);outline-offset:4px}
::selection{background:#e1bf83;color:#081218}
*{scrollbar-color:#526a75 #081218;scrollbar-width:thin}
.app{max-width:var(--content);min-height:100svh;border-radius:0;background:var(--bg);box-shadow:none;overflow:clip}
.app>#screen{min-height:calc(100svh - 65px - env(safe-area-inset-top));height:auto}
.topbar{position:sticky;top:0;left:auto;transform:none;max-width:none;width:100%;min-height:64px;padding:calc(10px + env(safe-area-inset-top)) 24px 10px;background:#081218f5;border-bottom:1px solid var(--line);gap:16px;backdrop-filter:none}
.lang{border-radius:8px;min-height:44px;max-width:190px;padding:8px 12px;background:#101f27;line-height:1.4;font-size:13px}
.music-toggle{width:44px;height:44px;border-radius:8px;backdrop-filter:none;background:#101f27;box-shadow:none;color:#d5e1e5}
.music-toggle.playing{background:#19333d;border-color:#6d9aa6;box-shadow:none}.music-toggle.muted{opacity:1;color:#a7bac2}
.music-toggle svg,.hero-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hero{height:auto;min-height:calc(100svh - 65px);grid-template-columns:1fr 1fr;grid-template-rows:1fr;overflow:visible;background:var(--bg)}
.hero-visual{min-height:640px;background-position:center 52%;border-radius:0}
.hero-visual::after{background:linear-gradient(180deg,#08121800 65%,#08121844),linear-gradient(90deg,#08121800 80%,#08121855)}
.hero-copy{padding:48px 40px;justify-content:center;align-items:stretch;gap:0;animation:none;background:var(--bg)}
.hero h1{font-size:clamp(38px,4.4vw,62px);font-weight:700;line-height:1.08;letter-spacing:-.025em;margin:0 0 12px;text-shadow:none;overflow-wrap:anywhere}
.hero-setting{font-size:13px;line-height:1.5;color:var(--amber);margin:0 0 24px}
.hero-hook{font-size:17px;line-height:1.75;color:#d0dde1;margin:0;max-width:45ch}
.case-facts{display:flex;flex-wrap:wrap;list-style:none;gap:8px 20px;padding:20px 0;margin:20px 0;border-block:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted)}
.case-facts li{display:flex;align-items:baseline;gap:5px}.case-facts strong{font-size:14px;font-weight:650;color:var(--ink)}
summary{cursor:pointer;line-height:1.5;touch-action:manipulation}summary::marker{color:var(--amber)}
.case-brief{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 28px}.case-brief summary{padding:10px 0;min-height:44px;color:#d5c5a6}.case-brief p{padding:12px 0 0;margin:0;font-size:14px}
.primary{min-height:54px;border-radius:10px;background:var(--red);box-shadow:none;font-weight:650;font-size:15px;line-height:1.45;padding:14px 18px;color:#fff;transition:background .15s ease,transform .15s ease}
.primary:hover:not(:disabled){background:#dd4c59}.primary:disabled{opacity:1;background:#293a42;color:#aabcc4;box-shadow:none}.primary:active{transform:translateY(1px)}
.hero-action .primary{display:flex;align-items:center;justify-content:space-between;gap:16px}.hero-action span{flex:1;text-align:start}
html[dir=rtl] .hero-action svg{transform:rotate(180deg)}
.page{min-height:calc(100svh - 65px);width:100%;padding:32px 32px calc(112px + env(safe-area-inset-bottom));animation:none}
.progress-wrap{margin:0 0 24px}.progress-copy{font-size:12px;color:var(--muted);margin-bottom:8px;font-variant-numeric:tabular-nums}.progress{height:3px;background:#23343c}.progress span{background:var(--amber)}
.progress-copy>span:last-child{direction:ltr;unicode-bidi:isolate}
.page-head{margin:0 0 28px;max-width:68ch}.page-head h2{font-size:clamp(25px,3vw,34px);font-weight:650;letter-spacing:-.015em;line-height:1.25;margin:0 0 12px;overflow-wrap:anywhere}.page-head p{font-size:15px;line-height:1.7;margin:0;color:#c1d0d6}
.investigation-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:40px;align-items:start}.case-sidebar,.investigation-main{min-width:0}
.case-role{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 16px}.case-role strong{font-weight:550;color:#dfc392}
.utility-row{gap:8px;margin:0 0 20px}.icon-action{font-size:12px;line-height:1.4;min-height:44px;padding:9px 12px;border-radius:8px;background:#102129;font-weight:550}
.icon-action:hover{background:#1a303b;border-color:#7796a3}
.case-update{border-top:1px solid var(--line);padding:16px 0;color:var(--muted)}
.case-update summary{position:relative;list-style:none;padding-inline-end:28px;min-height:44px}.case-update summary::-webkit-details-marker{display:none}.case-update summary::after{content:'+';position:absolute;inset-inline-end:2px;top:8px;font-size:20px;color:var(--amber)}.case-update[open] summary::after{content:'−'}
.case-update summary span{display:block;font-size:11px;line-height:1.5;color:var(--amber);margin-bottom:6px}.case-update summary strong{display:block;font-weight:600;font-size:15px;color:var(--ink)}
.case-update p{font-size:14px;line-height:1.65;margin:12px 0 0;color:#bdcdd4}
.section-label{margin:0 0 12px;font-size:13px;font-weight:550;letter-spacing:0;text-transform:none;color:#d0dce1;line-height:1.6}
.suspects{gap:0;border-top:1px solid var(--line)}
.suspect-card{padding:12px 0;grid-template-columns:minmax(0,1fr) auto;gap:12px;min-height:92px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-weight:400;transition:none;text-align:start}
.suspect-card:active{transform:none}.suspect-card.disabled{background:transparent}
.suspect-select{border:0;background:transparent;color:var(--ink);display:flex;align-items:center;gap:14px;min-height:64px;min-width:0;width:100%;padding:0;text-align:start;line-height:1.5}
.suspect-select:hover:not(:disabled) .suspect-copy strong{color:var(--amber)}
.suspect-card .portrait{width:64px;height:64px;flex:0 0 64px;border-radius:12px;border:0;background:#132630}
.suspect-copy{display:block;min-width:0}.suspect-copy strong{display:block;font-size:16px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.suspect-copy small{font-size:12px;line-height:1.5;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.bio-button{min-height:44px;padding:8px 10px;border-radius:8px;background:transparent;color:#bdcdd4;font-size:11px;font-weight:500;line-height:1.4;max-width:110px;white-space:normal;overflow-wrap:anywhere}
.bio-button:hover{background:#142b35;color:#fff}.used-tag{font-size:10px;color:#c5d4db;background:#1d3039;padding:2px 6px}
.questions{gap:12px;margin-top:0}.choice{border-radius:12px;padding:16px;min-height:64px;font-family:inherit;font-size:15px;font-weight:450;color:#e8edf0;line-height:1.65;background:#102129}.choice>span:last-child{min-width:0;overflow-wrap:anywhere}.choice-num{background:none;color:var(--amber);border-radius:0;font-size:12px;font-weight:600}
.question-context{padding:16px;background:#101f27;border-color:var(--line);border-radius:12px;margin-bottom:24px}.question-context span{font-size:12px;letter-spacing:0;font-weight:550;color:var(--amber)}.question-context p{font-size:14px;line-height:1.65}
.response{box-shadow:none;border-radius:12px}.response-head{padding:14px;background:#132630;flex-wrap:wrap;gap:10px}.response-head>div{flex:1 1 130px}.response-head .bio-button{margin-inline-start:auto}.response-head .portrait{border-radius:8px}
.response-body{padding:18px}.response-body .quote{font-size:16px;line-height:1.8;margin:0}.observation{border-left:1px solid var(--amber);padding-inline-start:12px;font-size:14px;line-height:1.7}.clue-reveal{border-radius:8px;font-size:14px;line-height:1.6}
.fixed-actions{width:min(100%,1080px);bottom:0;padding:14px 24px calc(14px + env(safe-area-inset-bottom));background:#081218f5;border-radius:0;border-top:1px solid var(--line)}
.fixed-actions .secondary{flex:0 1 150px}.secondary{font-weight:550;border-radius:10px;min-height:54px;line-height:1.45;overflow-wrap:anywhere}.fixed-actions .primary{min-width:0}
.fixed-actions.post-investigation-actions{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:10px}.post-investigation-actions>*{min-width:0}
.drawer{background:#03080cc9}.drawer-panel{max-width:680px;background:#0d1c24;box-shadow:0 20px 70px #0007;border-radius:16px;max-height:calc(100dvh - 32px);padding:24px;overflow:auto;animation:none}
.drawer-head{position:sticky;top:-24px;background:#0d1c24;z-index:2;padding:0 0 12px;margin-bottom:12px}.drawer-head h2{font-size:22px;font-weight:600;overflow-wrap:anywhere}.close{min-width:44px;min-height:44px;border-radius:8px}
.safari-guide{overflow:auto;width:min(100%,620px);max-height:calc(100dvh - 24px)}.safari-guide .drawer-head h2{font-size:22px}.safari-guide>p{font-size:14px;line-height:1.6}.guide-image{border-radius:8px;background:#102129;min-height:0;max-height:32svh}.guide-step{background:#122831;border-color:var(--line);border-radius:8px;font-size:14px;line-height:1.55;padding:10px}.guide-step b{background:#d9bc88;color:#14232b}.guide-steps{gap:8px}
.final-block{border-radius:12px;box-shadow:none}.final-block h3{line-height:1.6;overflow-wrap:anywhere}.radio-option{min-height:54px;line-height:1.5;align-items:center}.radio-option input{accent-color:var(--amber)}.radio-option span{min-width:0;overflow-wrap:anywhere}
.evidence::after{display:none}.clue-card.dossier,.clue-card.key,.clue-card.minor{border-left-width:1px}.clue-card{border-radius:10px;line-height:1.65}
html[dir=rtl] .observation,html[dir=rtl] .clue-card.key,html[dir=rtl] .clue-card.minor,html[dir=rtl] .clue-card.dossier{border-right-width:1px}
.safari-entry{min-height:calc(100svh - 65px);padding-top:32px}.safari-entry-choice{min-height:100px;box-shadow:none;border-radius:12px}.story-result{max-width:800px;margin:auto}.story-body{font-size:15px;line-height:1.75}
@media(max-width:760px){
 .topbar{min-height:60px;padding-inline:20px}.lang{max-width:180px}
 .hero{display:flex;flex-direction:column;min-height:calc(100svh - 65px)}.hero-visual{height:36svh;min-height:220px;flex-shrink:0;background-position:center 52%}.hero-visual::after{background:linear-gradient(180deg,#08121800 55%,#081218)}
 .hero-copy{padding:0 24px calc(116px + env(safe-area-inset-bottom));margin-top:-12px;justify-content:flex-start}.hero h1{font-size:40px;line-height:1.15;margin-bottom:8px}.hero-setting{font-size:12px;margin-bottom:16px}.hero-hook{font-size:15px;line-height:1.75}.case-facts{margin:18px 0 12px;padding:12px 0;font-size:12px;gap:5px 20px}.case-brief{margin:0}.case-brief p{padding:8px 0 20px}
 .hero-action{position:fixed;z-index:30;bottom:0;left:0;width:100%;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#081218fa;border-top:1px solid var(--line)}
 .page{padding:20px 20px calc(116px + env(safe-area-inset-bottom))}.progress-wrap{margin-bottom:20px}.page-head{margin-bottom:20px}.page-head h2{font-size:27px;margin-bottom:10px}.page-head p{font-size:14px;line-height:1.65}
 .investigation-layout{display:block}.case-role{margin-bottom:10px}.utility-row{margin-bottom:12px}.case-update{padding:12px 0 16px}.case-update p{margin-top:8px}.investigation-main{margin-top:16px}.suspect-card{min-height:90px}.suspect-card .portrait{width:60px;height:60px;flex-basis:60px}.suspect-select{gap:12px}.suspect-copy strong{font-size:15px}
 .drawer{padding:12px;align-items:center}.drawer-panel{padding:20px;border-radius:14px;max-height:calc(100dvh - 24px)}.drawer-head{top:-20px}.safari-guide .drawer-head h2{font-size:20px}.fixed-actions{padding-inline:16px}.fixed-actions .secondary{flex-basis:110px}.secondary,.primary{font-size:14px}
}
@media(max-width:360px){.hero-copy,.page{padding-inline:16px}.hero h1{font-size:34px}.hero-visual{height:31svh;min-height:180px}.suspect-card .portrait{width:48px;height:56px;flex-basis:48px}.suspect-select{gap:10px}.bio-button{max-width:86px;font-size:10px}.case-facts{gap:4px 12px}.post-investigation-actions .primary,.post-investigation-actions .secondary{font-size:12px}}
@media(max-height:540px) and (min-width:600px){.hero{display:grid;grid-template-columns:.8fr 1.2fr;grid-template-rows:1fr}.hero-visual{min-height:calc(100svh - 65px);height:auto}.hero-copy{padding:24px 28px 100px;margin:0}.hero h1{font-size:34px}.hero-hook{font-size:14px}.hero-setting{margin-bottom:12px}.case-facts{margin:12px 0;padding:10px 0}.hero-action{position:fixed;inset:auto 0 0;left:50%;transform:translateX(-50%);width:min(100%,1080px);padding:8px 20px;background:#081218fa;border-top:1px solid var(--line)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
/* Let the cover absorb spare height instead of leaving a hole above the action. */
@media(max-width:760px){
 .hero{height:auto;min-height:calc(100svh - 65px)}
 .hero-visual{height:auto;min-height:160px;flex:1 0 160px}
 .hero-copy{flex:0 0 auto;padding-bottom:calc(88px + env(safe-area-inset-bottom))}
 .case-facts{padding-block:10px;margin-block:14px 8px}
}
@media(max-height:540px) and (min-width:600px){.hero-visual{min-height:calc(100svh - 65px)}}
