:root{--bg: #141729;--panel: #1b1f3b;--ink: #e9dcc0;--muted: #a9a6c4;--accent: #ffb347;--black: #000;--pixel: "Press Start 2P", ui-monospace, monospace;--sans: "Space Grotesk", system-ui, sans-serif}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.5}a{color:var(--ink)}a:hover{color:var(--accent)}button{font:inherit;color:inherit;cursor:pointer}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}.skip{position:absolute;left:12px;top:-60px;z-index:50;background:var(--accent);color:var(--bg);padding:12px 14px;font-family:var(--pixel);font-size:10px;text-decoration:none}.skip:focus{top:8px}.topbar{position:sticky;top:0;z-index:20;height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));background:var(--bg);border-bottom:3px solid var(--black)}.logo{font-family:var(--pixel);font-size:12px;color:var(--accent);text-decoration:none}.topnav{display:flex;gap:6px;align-items:center}.linkish{background:none;border:0;font-family:var(--pixel);font-size:9px;color:var(--ink);text-decoration:none;padding:14px 8px;min-height:44px;display:inline-flex;align-items:center}.game{max-width:1120px;margin:24px auto 8px;padding:0 16px}.stage{position:relative}.scene{position:relative;width:100%;aspect-ratio:16 / 9;border:4px solid var(--ink);overflow:hidden;background:#1b1f3b;outline:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.scene:focus-visible{outline:3px solid var(--accent);outline-offset:3px}#street{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;touch-action:none;cursor:pointer}.hud,.dots,.keys,.prompt{position:absolute;font-family:var(--pixel)}.hud{left:1.6%;top:2.8%;display:flex;flex-wrap:wrap;gap:0;background:var(--bg);font-size:clamp(7px,1vw,11px);line-height:1.4;max-width:70%;pointer-events:none}.hud-name{padding:6px 10px;color:var(--ink)}.hud-label{padding:6px 10px;color:var(--muted)}.hud-label:empty{display:none}.dots{right:1.6%;top:2.8%;display:flex;gap:4px;background:var(--bg);padding:4px}.dot{width:26px;height:26px;padding:6px;background:none;border:0}.dot:before{content:"";display:block;width:100%;height:100%;border:3px solid var(--accent);box-sizing:border-box}.dot.on:before{background:var(--accent)}.prompt{transform:translate(-50%,-100%);background:var(--accent);color:var(--bg);border:0;font-size:clamp(8px,1.1vw,12px);padding:8px 10px;white-space:nowrap;box-shadow:3px 3px 0 var(--black)}.keys{right:1.6%;bottom:2.8%;margin:0;background:var(--bg);color:var(--ink);font-size:clamp(6px,.8vw,9px);padding:8px 10px;line-height:1.8;pointer-events:none}.title-card{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.5%;text-align:center;background:#0a0c1880;padding:4%;cursor:pointer}.title-logo{margin:0;font-family:var(--pixel);font-size:clamp(18px,4vw,42px);color:var(--accent);text-shadow:4px 4px 0 var(--black)}.title-tag{margin:0;font-size:clamp(14px,2.1vw,24px);font-weight:500}.title-start{margin-top:3%;background:none;border:0;font-family:var(--pixel);font-size:clamp(8px,1.1vw,12px);color:var(--ink);padding:12px;animation:blink 1.2s steps(2,start) infinite}@keyframes blink{to{visibility:hidden}}.dialogue{position:absolute;left:2.5%;right:2.5%;bottom:4%;border:4px solid var(--ink);background:var(--panel);box-shadow:6px 6px 0 var(--black);padding:16px 20px;display:flex;flex-direction:column;gap:10px;z-index:2}.dialogue .who{margin:0;font-family:var(--pixel);font-size:11px;color:var(--accent)}.dialogue .line{margin:0;font-family:var(--pixel);font-size:clamp(10px,1.25vw,13px);line-height:1.75}.choices{display:flex;flex-wrap:wrap;gap:4px 24px}.choice{background:none;border:0;font-family:var(--pixel);font-size:clamp(9px,1.05vw,11px);color:var(--muted);padding:12px 0;min-height:44px;text-align:left}.choice:first-child,.choice:hover,.choice:focus-visible{color:var(--ink)}.info,.stops,.pad,.scroll-hint{display:none}.card{width:calc(100% - 32px);max-width:640px;max-height:calc(100dvh - 48px);padding:26px;background:var(--bg);color:var(--ink);border:4px solid var(--ink);box-shadow:8px 8px 0 var(--black);overflow:auto;overscroll-behavior:contain}.card::backdrop{background:#0a0c18a8}.card-handle{display:none}.card-close-form{float:right;margin:0 0 8px 16px}.card-close{width:44px;height:44px;background:none;border:3px solid var(--ink);font-family:var(--pixel);font-size:12px}.card-title{margin:6px 0 14px;font-family:var(--pixel);font-size:15px;line-height:1.5;color:var(--accent)}.card .lead{font-size:20px;font-weight:500;line-height:1.4;margin:0 0 10px}.card-body p,.card-body ul,.card-body ol{margin:0 0 12px}.card-body ul,.card-body ol{padding-left:20px}.card-body li{margin-bottom:6px}.card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px;padding-top:16px;border-top:3px solid var(--black)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 16px;font-family:var(--pixel);font-size:11px;line-height:1.4;text-decoration:none;border:3px solid var(--accent)}.btn-primary{background:var(--accent);color:var(--bg)}.btn-primary:hover{color:var(--bg);filter:brightness(1.08)}.btn-ghost{background:none;color:var(--ink);border-color:var(--ink)}.plain{max-width:780px;margin:0 auto;padding:32px 16px 48px}.plain-intro{margin-bottom:28px}.plain h1{font-family:var(--pixel);font-size:clamp(16px,2.6vw,24px);line-height:1.6;color:var(--accent);margin:0 0 16px}.eyebrow{font-family:var(--pixel);font-size:10px;color:var(--accent);margin:0 0 10px}.stop-section{border:3px solid var(--ink);padding:22px;margin:0 0 18px}.stop-section h2{font-size:22px;line-height:1.3;margin:0 0 10px}.stop-section ul,.stop-section ol{padding-left:20px}.good{color:var(--muted)}.price{font-weight:700}.results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}.results div{border:3px solid var(--ink);padding:12px;display:flex;flex-direction:column;gap:4px}.results strong{font-family:var(--pixel);font-size:12px;color:var(--accent)}.results span{font-size:14px;color:var(--muted)}.steps{list-style:none;padding:0!important}.steps li{margin-bottom:10px}.contact-actions{display:flex;flex-wrap:wrap;gap:12px}.footer{color:var(--muted);font-size:14px;margin-top:28px}body.has-game:not(.plain-mode) .plain{padding-top:40px}body.touch .keys,body.touch .dots{display:none}body.touch .stops{display:flex;gap:8px;padding:12px 14px;overflow-x:auto;scrollbar-width:none}body.touch .chip{flex-shrink:0;min-height:44px;padding:10px;background:none;border:3px solid var(--ink);font-family:var(--pixel);font-size:8px;color:var(--ink)}body.touch .chip.on{background:var(--accent);border-color:var(--accent);color:var(--bg)}body.touch .pad{display:flex;justify-content:space-between;align-items:center;padding:14px 18px 22px;padding-bottom:max(22px,env(safe-area-inset-bottom))}body.touch .pad-dir{display:flex;gap:12px}body.touch .pad-btn{width:76px;height:76px;background:var(--panel);border:4px solid var(--ink);box-shadow:4px 4px 0 var(--black);font-family:var(--pixel);font-size:20px;touch-action:none;-webkit-user-select:none;user-select:none}body.touch .pad-a{width:92px;height:92px;border-radius:50%;background:var(--accent);color:var(--bg);border:4px solid var(--black);box-shadow:4px 4px 0 var(--black);font-family:var(--pixel);font-size:22px;touch-action:manipulation}body.touch .pad-btn.pressed,body.touch .pad-a:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--black)}@media (max-width: 700px),(hover: none) and (pointer: coarse) and (orientation: portrait){.game{margin:0;padding:0}.scene{border-left:0;border-right:0;border-width:0 0 3px;border-color:var(--black)}.keys,.dots{display:none}.hud{font-size:8px}.hud-label{display:none}.dialogue{position:static;margin:12px 14px 0;box-shadow:4px 4px 0 var(--black);padding:14px 16px}.dialogue .line{font-size:11px}.choice{font-size:9px}.title-tag{font-size:15px}.info{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-bottom:3px solid var(--black)}.info p{margin:0}.info-name{font-family:var(--pixel);font-size:11px;color:var(--accent)}.info-hint{font-size:16px;line-height:1.45}body.talking .info{display:none}.card{width:100%;max-width:none;margin:auto 0 0;max-height:82dvh;border-width:4px 0 0;box-shadow:none;padding:12px 20px 0;transition:transform .15s}.card-handle{display:block;width:56px;height:6px;background:var(--muted);margin:0 auto 12px}.card-actions{position:sticky;bottom:0;background:var(--bg);flex-direction:column;padding-bottom:max(20px,env(safe-area-inset-bottom))}.card-actions .btn{width:100%;padding:16px}.results{grid-template-columns:1fr}}@media (min-width: 701px){body:not(.touch) .info{display:none!important}}@media (orientation: landscape) and (max-height: 520px) and (hover: none) and (pointer: coarse){body.has-game:not(.plain-mode) .topbar{position:fixed;left:0;right:0;top:0;z-index:40;background:transparent;border:0;height:48px;pointer-events:none}body.has-game:not(.plain-mode) .topbar>*{pointer-events:auto}body.has-game:not(.plain-mode) .logo,body.has-game:not(.plain-mode) .linkish{background:var(--bg);padding:10px}body.has-game:not(.plain-mode) .game{position:fixed;inset:0;z-index:30;margin:0;padding:0;max-width:none;background:var(--black);display:flex;align-items:center;justify-content:center}.stage{height:100dvh;width:min(100vw,calc(100dvh * 16 / 9))}.scene:focus-visible{outline:none}.scene{height:100%;width:100%;border:0}.hud{top:56px}body.touch .info,body.touch .stops{display:none!important}body.touch .pad{position:fixed;left:0;right:0;bottom:0;z-index:35;display:flex;justify-content:space-between;padding:0 max(20px,env(safe-area-inset-right)) 18px max(20px,env(safe-area-inset-left));pointer-events:none}body.touch .pad>*{pointer-events:auto;opacity:.88}body.touch .pad-btn{width:68px;height:68px}body.touch .pad-a{width:84px;height:84px}.dialogue{position:absolute;left:12%;right:12%;bottom:18px}.card{max-height:92dvh}}@media (prefers-reduced-motion: reduce){.title-start{animation:none}.card{transition:none}}.case-tag{display:inline-block;margin:0 0 10px;padding:4px 8px;background:var(--accent);color:var(--bg);font-family:var(--pixel);font-size:8px}.card .case-tag{margin-top:-4px}.chart-figure{margin:0 0 16px}.chart{display:block;width:100%;height:auto;border:3px solid var(--ink);image-rendering:pixelated}.chart-figure figcaption{font-size:13px;color:var(--muted);margin-top:6px}.results.locked strong{color:#f7d56b}.results.locked div{border-style:dashed;border-color:#f7d56b}@media (max-width: 700px) and (orientation: portrait){body.has-game:not(.plain-mode) .game{min-height:calc(100dvh - 56px);display:flex;flex-direction:column}.topnav .linkish{font-size:8px;white-space:nowrap;padding:14px 6px}.info{padding:10px 16px}.info-hint{font-size:15px}.stops{padding:10px 14px}body.touch .pad{margin-top:auto;padding-top:10px;padding-bottom:10px}.scroll-hint{display:block;text-align:center;font-family:var(--pixel);font-size:8px;color:var(--muted);text-decoration:none;padding:10px 0 max(14px,env(safe-area-inset-bottom))}.dialogue{margin-top:10px}}.card-quote{clear:right;margin:0 0 14px;padding:12px 14px;border:3px solid var(--ink);background:var(--panel);font-family:var(--pixel);font-size:10px;line-height:1.8}.card-quote span{display:block;color:var(--accent);margin-bottom:4px;font-size:9px}html.card-open,html.card-open body{overflow:hidden;overscroll-behavior:none}
