:root { color-scheme: dark; --bg:#0d101a; --text:#f4f0fb; --muted:#b5aec4; --line:#494155; --panel:#171b28; --orange:#ffad70; --lavender:#c5b5ff; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.5 system-ui,sans-serif; }
[hidden] { display:none !important; }
a { color:var(--lavender); text-underline-offset:4px; overflow-wrap:anywhere; }
.haunting { position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:-1; background:radial-gradient(ellipse at 50% 100%,#39203866,transparent 65%); }
.moon { position:absolute; right:10%; top:10%; width:clamp(100px,17vw,235px); aspect-ratio:1; border-radius:50%; background:#cfc3ee14; box-shadow:0 0 100px #c5b5ff0e; }
.moon::after { content:''; position:absolute; inset:15% 0 0 18%; border-radius:50%; background:var(--bg); }
.ghost { position:absolute; width:clamp(80px,15vw,200px); fill:#c8bbec1a; }
.ghost ellipse { fill:var(--bg); }
.ghost-left { left:1%; bottom:10%; transform:rotate(-15deg); }
.ghost-right { right:2%; bottom:6%; transform:rotate(12deg) scale(.7); }
.bat { position:absolute; width:clamp(45px,8vw,105px); fill:#b4a1d91b; }
.bat-one { top:24%; left:9%; transform:rotate(-14deg); }
.bat-two { top:12%; right:32%; transform:rotate(16deg) scale(.7); }
.fog { position:absolute; inset:65% -20% -20%; background:radial-gradient(ellipse at 30% 100%,#54466333,transparent 65%); }
.app { min-height:100svh; display:flex; flex-direction:column; width:min(100% - 48px,1200px); margin:auto; }
header { min-height:75px; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.brand { font-size:21px; font-weight:600; letter-spacing:-.04em; text-decoration:none; color:var(--text); }
.brand span { color:var(--orange); margin-left:8px; }
.header-note { font-size:10px; letter-spacing:.14em; color:var(--muted); text-align:right; }
main { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; padding:10px 0 20px; }
.stage { width:100%; max-width:1000px; text-align:center; }
.intro,.loading,.results,.error { max-width:750px; }
.eyebrow { font-size:11px; letter-spacing:.2em; color:var(--orange); margin:0 0 18px; }
h1 { font-size:clamp(48px,min(8vw,10vh),85px); line-height:.98; letter-spacing:-.065em; font-weight:550; margin:10px 0 20px; }
h2 { font-size:clamp(30px,min(5.6vw,7vh),66px); line-height:1.1; letter-spacing:-.05em; font-weight:500; margin:12px 0 22px; }
em { font-style:normal; color:var(--lavender); }
h3 { font-size:24px; line-height:1.2; margin:0 0 10px; font-weight:500; }
p { margin:0 0 18px; }
.lead { font-size:clamp(19px,min(2.6vw,3.2vh),27px); line-height:1.4; }
.subtle { color:var(--muted); max-width:620px; margin:0 auto 22px; }
.micro { font-size:12px; color:var(--muted); margin:18px auto 0; max-width:620px; }
button { font:500 15px/1.3 system-ui,sans-serif; min-height:46px; border:1px solid var(--line); border-radius:100px; padding:12px 22px; background:var(--panel); color:var(--text); cursor:pointer; }
button.primary { color:#221627; background:var(--lavender); border-color:var(--lavender); }
button.primary span { margin-left:18px; }
button:disabled { opacity:.5; cursor:not-allowed; }
:focus-visible { outline:3px solid var(--orange); outline-offset:4px; }
.summon-mark { color:var(--lavender); font-size:78px; line-height:1; margin:10px 0 25px; }
.round-meta { display:flex; justify-content:space-between; font-size:12px; color:var(--orange); letter-spacing:.12em; margin-bottom:18px; }
.game h2 { font-size:clamp(28px,min(4vw,5.5vh),48px); }
.game .subtle { margin-bottom:18px; }
.world { width:100%; max-width:1000px; text-align:center; --ghost-scale:.98; --spectral-strength:.5; margin:0 0 14px; }
.scene-art { height:170px; position:relative; overflow:hidden; border-radius:22px; pointer-events:none; background:radial-gradient(ellipse,#6d528b1a,transparent 70%); }
.scene { position:absolute; inset:0; height:100%; width:100%; fill:#473953; display:none; }
.scene-detail { fill:#bfb0db44; stroke:#bfb0db66; stroke-width:2; }
.world[data-scene=church] .church,.world[data-scene=ufo] .ufo,.world[data-scene=storm] .storm { display:block; }
.topic-scope { max-width:60ch; margin:8px auto 18px; font-size:14px; line-height:1.5; color:var(--muted); }
.deceiver { position:absolute; height:120px; width:96px; left:calc(50% - 48px); top:23px; fill:#d5c9ed; transform:scale(var(--ghost-scale)); transition:transform 220ms ease,opacity 220ms ease; filter:drop-shadow(0 0 16px #ccb5ee55); }
.deceiver ellipse { fill:#30243f; }
.spectral-overlay { position:absolute; inset:0; background:radial-gradient(ellipse,#a78cbd33,transparent 72%); opacity:var(--spectral-strength); transition:opacity 220ms ease; }
.wisps { position:absolute; width:280px; height:135px; left:calc(50% - 140px); top:17px; border:3px solid #bba6d455; border-radius:42% 58% 35% 65%; transform:scale(calc(.6 + var(--spectral-strength))); opacity:var(--spectral-strength); transition:opacity 220ms ease,transform 220ms ease; }
.world[data-outcome=weakened] .spectral-overlay,.world[data-outcome=weakened] .wisps { opacity:0; }
.world[data-level="0"] .deceiver { opacity:0; }
.world[data-outcome=grows] .wisps { border-width:6px; box-shadow:0 0 0 15px #bba6d417; }
.fiction-label { font-size:9px; letter-spacing:.12em; color:var(--muted); margin:6px 0; }
.ghost-dialogue { max-width:600px; font-size:15px; color:var(--lavender); margin:0 auto 5px; }
.haunting-state { font-size:12px; color:var(--orange); margin:0; }
fieldset { min-width:0; padding:0; border:0; margin:0; }
.posts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; text-align:left; }
.post { background:#171b28ee; border:1px solid var(--line); border-radius:16px; padding:22px; display:flex; flex-direction:column; min-width:0; cursor:pointer; }
.post:has(input:checked) { border-color:var(--lavender); background:#272237; }
.post-top { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:10px; letter-spacing:.1em; margin-bottom:18px; }
input[type=radio] { margin:0; width:18px; height:18px; accent-color:var(--lavender); flex-shrink:0; }
.claim { font-size:clamp(18px,min(2.3vw,3vh),25px); line-height:1.4; letter-spacing:-.02em; }
.truth { font-size:11px; color:var(--orange); font-weight:600; margin-top:20px; }
.explanation { font-size:14px; color:var(--muted); margin-top:8px; }
.source { font-size:12px; margin-top:12px; }
blockquote { font-size:13px; color:var(--muted); margin:12px 0 0; padding-left:12px; border-left:1px solid var(--line); }
.article-evidence { font-size:12px; color:var(--muted); margin-top:12px; overflow-wrap:anywhere; }
.article-evidence p { margin:0 0 8px; }
.article-evidence blockquote { margin:0 0 12px; }
details { text-align:left; border-bottom:1px solid var(--line); margin:16px 0; font-size:13px; }
summary { padding:12px 0; cursor:pointer; min-height:44px; }
summary span { color:var(--orange); font-size:10px; margin-left:10px; }
details p { margin:8px 0; }
.feedback { text-align:left; border-left:2px solid var(--orange); padding:4px 16px; margin:20px 0; }
.feedback p { font-size:14px; margin-bottom:0; color:var(--muted); }
.controls { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; }
.big-score { font-size:clamp(68px,min(11vw,14vh),130px); line-height:1; color:var(--orange); letter-spacing:-.07em; margin:26px 0; }
footer { text-align:center; padding:18px 0 20px; color:var(--muted); font-size:12px; }
footer p { margin:0 0 6px; }
.disclaimer { font-size:10px; }
.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; }
body.revealed .game { padding:6px 5px 16px; }
@media(max-width:650px) { .app { width:calc(100% - 32px); } header { min-height:64px; gap:12px; } .header-note { max-width:115px; font-size:9px; } main { padding:12px 0; } .posts { grid-template-columns:minmax(0,1fr); gap:8px; } .post { padding:12px; } .post-top { margin-bottom:6px; } .claim { font-size:16px; line-height:1.4; } .game h2 { font-size:28px; margin-bottom:14px; } .game { text-align:left; } .game .subtle { margin-left:0; font-size:14px; } .game .controls { justify-content:flex-start; } .ghost-left { left:-25px; bottom:18%; } .ghost-right { right:-15px; } .moon { right:5%; top:15%; } .micro { font-size:11px; } footer { font-size:11px; } body.revealed .game { max-height:none; overflow:visible; } }
@media(max-height:550px) { main { align-items:flex-start; } h1 { margin:10px 0 18px; } .eyebrow { margin-bottom:10px; } body.revealed .game { max-height:none; overflow:visible; } }
@media(max-width:650px) and (min-height:550px) { .intro h1 { font-size:clamp(42px,13vw,65px); margin:10px 0 20px; } .intro .eyebrow { font-size:10px; margin-bottom:14px; } .intro .lead { font-size:18px; margin-bottom:18px; } .intro .subtle { font-size:14px; margin-bottom:18px; } .intro .micro { margin-top:16px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
