@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root{--ink:#f7f0de;--muted:#b8afa1;--gold:#d7b37a;--gold2:#f1d7a4;--glass:#101820e8;--line:#8f806a55}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#090d14;color:var(--ink);font-family:'Noto Sans SC',sans-serif}button{font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}#gameCanvas,canvas{position:fixed;inset:0;width:100%;height:100%;display:block}#gameCanvas{background:#0a1320}.cover{position:fixed;inset:0;z-index:30;background:#07101c url('./assets/night-train-cover.png') center/cover no-repeat;display:flex;flex-direction:column;justify-content:space-between;padding:33px clamp(25px,5.5vw,100px) 30px}.cover-shade{position:absolute;inset:0;background:linear-gradient(90deg,#07101def 0%,#07101dcc 24%,#07101d70 57%,#07101d20 100%),linear-gradient(0deg,#07101dcc,transparent 24%,transparent 70%,#07101d80);pointer-events:none}.cover>*:not(.cover-shade){position:relative;z-index:1}.cover-top{display:flex;align-items:center;gap:14px;font-weight:700;letter-spacing:.16em}.cover-top small{display:block;color:#c4b49f;font:10px 'DM Mono',monospace;letter-spacing:.22em;margin-top:4px}.seal{width:42px;height:42px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold);font:27px 'Cormorant Garamond',serif;letter-spacing:-.05em}.seal span{position:absolute;margin-left:15px;margin-top:14px}.seal.small{width:34px;height:34px;font-size:21px}.seal.small span{margin-left:12px;margin-top:10px}.edition{margin-left:auto;color:#e3d5be;font:10px 'DM Mono',monospace;letter-spacing:.18em}.cover-content{max-width:650px;margin-top:auto;margin-bottom:auto;padding-top:80px}.overline{font:11px 'DM Mono','Noto Sans SC',sans-serif;letter-spacing:.23em;color:var(--gold);font-weight:500}.overline i{display:inline-block;height:1px;width:28px;background:var(--gold);vertical-align:middle;margin:0 12px}.cover h1{font-size:clamp(68px,8vw,128px);line-height:1.05;font-weight:600;letter-spacing:.08em;margin:25px 0 30px;text-shadow:0 12px 35px #000}.cover h1 span{display:block;color:#d4b88e;font:500 clamp(17px,2vw,28px) 'Cormorant Garamond',serif;letter-spacing:.43em;margin-top:15px}.cover-lede{color:#e4ded0;line-height:2.05;font-size:16px;text-shadow:0 2px 18px #000}.cover-actions{display:flex;gap:22px;align-items:center;margin-top:38px}.cover-actions>span{color:#c0b5a5;font-size:12px}.gold-button{background:var(--gold);border:1px solid #f8dfaf;color:#192026;border-radius:3px;padding:15px 22px;font-weight:700;letter-spacing:.06em;transition:.2s;min-height:50px}.gold-button:hover:not(:disabled){background:var(--gold2);transform:translateY(-2px)}.gold-button span{margin-left:26px;font-size:19px}.cover-bottom{border-top:1px solid #e3d4bd55;padding-top:19px;display:flex;justify-content:space-between;color:#d2c6b8;font:11px 'DM Mono','Noto Sans SC',sans-serif;letter-spacing:.08em}.hud{position:fixed;inset:0;z-index:10;pointer-events:none}.hud button{pointer-events:auto}.hud-top{position:absolute;top:0;left:0;right:0;padding:22px 30px;display:flex;justify-content:space-between;align-items:start;background:linear-gradient(#050a12c8,transparent)}.hud-brand{display:flex;gap:11px;align-items:center;font-weight:700;letter-spacing:.1em}.hud-brand small{display:block;color:#cbb99d;font-size:11px;margin-top:3px;font-weight:400;letter-spacing:.12em}.hud-tools{display:flex;align-items:center;gap:16px}.objective{font-size:12px;color:#e5d2b6;border:1px solid #ad95665a;background:#101820c7;padding:11px 15px;backdrop-filter:blur(10px)}.icon-button{background:#101820d9;border:1px solid #ad956683;color:#f2deb9;padding:11px 14px;border-radius:3px;font-size:15px;backdrop-filter:blur(10px)}.icon-button b{font:11px 'DM Mono',monospace;margin-left:5px}.crosshair{position:absolute;left:50%;top:50%;width:18px;height:18px;transform:translate(-50%,-50%);opacity:.72}.crosshair span:first-child{width:12px;height:1px;background:#ead4a9;position:absolute;top:8px;left:3px}.crosshair span:last-child{height:12px;width:1px;background:#ead4a9;position:absolute;left:8px;top:3px}.world-label{position:absolute;left:50%;top:calc(50% + 32px);transform:translateX(-50%);white-space:nowrap;background:#0b121bd9;border:1px solid #c4a67888;padding:9px 13px;color:#f4e6c7;font-size:12px;letter-spacing:.08em;backdrop-filter:blur(8px)}.interact{position:absolute;bottom:94px;left:50%;transform:translateX(-50%);background:#d7b37a;color:#17212a;border:0;padding:12px 25px;font-weight:700;min-width:140px}.hud-bottom{position:absolute;bottom:0;left:0;right:0;padding:18px 28px;display:flex;justify-content:space-between;align-items:end;color:#d8c9b5;font:11px 'DM Mono','Noto Sans SC',sans-serif;letter-spacing:.07em;background:linear-gradient(transparent,#050a12dd)}.controls-tip i{font-style:normal;color:#9f8a68;margin:0 7px}.train-progress{display:flex;gap:0}.train-progress span{padding:5px 10px;border-bottom:2px solid #9b886879;color:#b6ad9d}.train-progress span.active{border-color:var(--gold);color:#f2d9ad}.mobile-controls{display:none}.dialogue,.notebook,.deduction,.ending{position:fixed;inset:0;z-index:20;background:#02060bb9;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:18px}.dialogue-card,.notebook-card,.deduction-card,.ending-card{width:min(620px,100%);background:#15202bf7;border:1px solid #ad946580;box-shadow:0 25px 90px #000a,0 0 45px #a9863820;position:relative}.dialogue-card:before,.notebook-card:before,.deduction-card:before,.ending-card:before{content:'';position:absolute;inset:7px;border:1px solid #a889513d;pointer-events:none}.dialogue-head,.notebook-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:20px 27px;color:var(--gold);font:11px 'DM Mono','Noto Sans SC',sans-serif;letter-spacing:.14em}.dialogue-head button,.notebook-head button,.deduction-card>button{font:26px 'Cormorant Garamond',serif;border:0;color:#e9d6b6;background:none}.dialogue-body{padding:37px 35px 22px;display:flex;gap:24px}.dialogue-portrait{width:68px;height:68px;flex:none;border:1px solid #bd9d62;background:radial-gradient(#86664569,#15202b 70%);border-radius:50%;display:grid;place-items:center;color:#e6c993;font:36px 'Cormorant Garamond',serif}.dialogue-location{color:var(--gold);font:11px 'DM Mono',monospace;letter-spacing:.13em;margin:0 0 8px}.dialogue h2,.notebook h2,.deduction h2,.ending h2{font:600 39px 'Cormorant Garamond','Noto Sans SC',serif;margin:0 0 17px;letter-spacing:.02em}.dialogue-body p:last-child{line-height:1.95;color:#e5ddcf;margin:0;font-size:15px}.dialogue-actions{padding:12px 35px 31px;display:flex;align-items:center;gap:22px}.text-button{background:none;border:0;color:#c6b698;padding:13px 8px}.text-button:hover{color:#fff}.notebook-card{max-height:min(760px,90vh);overflow:auto;width:min(720px,100%)}.notebook-head h2{margin:7px 0 0}.notebook-head .overline{margin:0}.notebook-intro{padding:5px 30px 0;color:#cbbfae;font-size:13px;line-height:1.8}.notebook-clues{padding:12px 30px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.clue-card{border:1px solid #ab936070;background:#1a2b36;padding:17px;min-height:107px}.clue-card.empty{opacity:.48;border-style:dashed}.clue-card span{display:block;color:var(--gold);font:10px 'DM Mono',monospace;margin-bottom:8px}.clue-card b{font-size:14px}.clue-card p{font-size:11px;line-height:1.6;color:#c9c0b1;margin:7px 0 0}.notebook-footer{padding:16px 30px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.notebook-footer p{font-size:12px;color:#bdaf98;line-height:1.6}.deduction-card,.ending-card{padding:35px 42px 42px}.deduction-card>button{position:absolute;right:24px;top:16px}.deduction h2,.ending h2{font-size:45px;margin-top:20px}.deduction-card>p:not(.overline),.ending-card>p:not(.overline){line-height:1.9;color:#d4c7b7}.deduction-choices{display:grid;gap:11px;margin-top:26px}.deduction-choice{background:#20313d;border:1px solid #a8906559;color:#f4e8d7;text-align:left;padding:17px 20px;transition:.2s}.deduction-choice:hover{border-color:var(--gold);background:#2c3e49}.deduction-choice span{display:block;color:var(--gold);font:10px 'DM Mono',monospace;margin-bottom:6px}.ending-stats{display:flex;gap:8px;flex-wrap:wrap;margin:21px 0}.ending-stats span{border:1px solid #9f875b6c;background:#253543;padding:8px 11px;font-size:11px;color:#e1cfaf}.ending-review{border-top:1px solid var(--line);padding-top:19px}.ending-actions{display:flex;gap:15px;align-items:center;margin-top:27px}@media(max-width:700px){.cover{background-position:68% center;padding:20px 24px 22px}.cover-shade{background:linear-gradient(0deg,#06101aef 0%,#07101ad9 28%,#07101a69 80%),linear-gradient(90deg,#07101a88,#07101a11)}.cover-top{font-size:14px}.edition{display:none}.cover-content{padding-top:0;margin-bottom:75px}.cover h1{font-size:64px}.cover h1 span{font-size:15px;letter-spacing:.29em}.cover-lede{font-size:13px;line-height:1.95}.cover-actions{align-items:start;flex-direction:column;gap:11px;margin-top:23px}.cover-bottom{font-size:9px;gap:10px;flex-direction:column}.hud-top{padding:14px}.objective{display:none}.hud-bottom{display:none}.mobile-controls{display:block;position:absolute;bottom:22px;left:18px;right:18px;color:#d9ceb9;font-size:10px;text-align:right}.move-pad{position:absolute;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:auto}.move-pad>div{display:flex;gap:3px}.move-pad button{width:49px;height:49px;border:1px solid #d6b57b8c;background:#111d27b7;color:#f5e1bb;font-size:23px;border-radius:8px;touch-action:none;backdrop-filter:blur(5px)}.interact{bottom:82px;left:auto;right:17px;transform:none;min-width:100px;padding:14px 17px}.dialogue-body{padding:24px 20px 13px;gap:15px}.dialogue-portrait{height:51px;width:51px;font-size:28px}.dialogue h2,.notebook h2{font-size:30px}.dialogue-body p:last-child{font-size:13px}.dialogue-actions{padding:8px 20px 24px}.notebook-clues{padding:10px 18px;grid-template-columns:1fr}.notebook-intro{padding:5px 18px 0}.notebook-head{padding:18px}.notebook-footer{padding:12px 18px 22px;align-items:start;flex-direction:column;gap:6px}.deduction-card,.ending-card{padding:30px 23px}.deduction h2,.ending h2{font-size:35px}}
