:root[data-theme=dark]{--text-1:#eee9dc;--text-2:#a9b0a5;--text-3:#d3b67c;--text-4:#15241e;--text-5:#8fae9b;--text-6:#e2a48f;--bg-1:#101a16;--bg-2:#192720;--bg-3:#d3b67c;--bg-4:#263b30;--bg-5:#0b120fe8;--bg-6:#ffffff08}:root[data-theme=light]{--text-1:#27372c;--text-2:#647060;--text-3:#8f6d37;--text-4:#f3f0e5;--text-5:#4a785a;--text-6:#a34732;--bg-1:#eae9dd;--bg-2:#f5f2e7;--bg-3:#987442;--bg-4:#d8dfce;--bg-5:#eeeee5ed;--bg-6:#182b1608}*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Trebuchet MS,PingFang SC,Microsoft YaHei,sans-serif;background:var(--bg-1);color:var(--text-1);font-size:13px}button,input,select{font:inherit}button{color:inherit;cursor:pointer;border:0;background:var(--bg-6);transition:background .2s,color .2s,opacity .2s}button:hover{background:var(--bg-4)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--text-3);outline-offset:4px}button:disabled{opacity:.42;cursor:default}svg{width:18px;height:18px;stroke-width:1.4;flex-shrink:0}#scene{position:absolute;top:77px;right:0;bottom:0;left:0}canvas{display:block;touch-action:none;-webkit-user-select:none;user-select:none}.shade{pointer-events:none;position:absolute;top:77px;right:0;bottom:0;left:0;background:linear-gradient(90deg,var(--bg-5),transparent 68%),linear-gradient(0deg,var(--bg-5),transparent 30%,transparent 85%,var(--bg-5));opacity:.87}.shade:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 130px var(--bg-5)}header{height:77px;position:relative;z-index:4;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid var(--bg-4);background:var(--bg-1)}.brand{display:flex;align-items:center;gap:13px}.brand-icon{width:34px;height:40px;border:1px solid var(--text-3);border-radius:14px 14px 4px 4px;display:grid;place-items:center;color:var(--text-3)}.brand-icon svg{width:24px;height:24px}.brand-name{font-family:Georgia,Songti SC,serif;font-size:20px;letter-spacing:4px}.brand-sub{font-size:8px;letter-spacing:3.1px;color:var(--text-2);margin-top:5px}nav{height:100%;display:flex;gap:30px;margin-right:60px}nav button{height:100%;position:relative;background:transparent;color:var(--text-2);letter-spacing:1px;font-size:12px;display:flex;align-items:center;gap:8px}nav button.active{color:var(--text-3)}nav button.active:after{content:"";height:2px;background:var(--bg-3);bottom:0;left:0;right:0;position:absolute}.tools{display:flex;align-items:center;gap:8px}.icon-button{width:36px;height:40px;display:grid;place-items:center;background:transparent;color:var(--text-2)}.language{font-size:10px;letter-spacing:1px;border-left:1px solid var(--bg-4);padding-left:15px;width:45px}.scene-top{position:absolute;top:103px;left:40px;right:40px;display:flex;justify-content:space-between;pointer-events:none}.rail-label{display:flex;gap:9px;align-items:center;font-size:10px;letter-spacing:2px;color:var(--text-2)}.rail-label i,.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--bg-3);box-shadow:0 0 10px var(--text-3)}.time-block{text-align:right}.time-block small{font-size:8px;letter-spacing:2px;color:var(--text-2)}.time-block strong{font-family:Georgia,serif;font-size:30px;letter-spacing:3px;font-weight:400;display:block;margin-top:4px}.hero{position:absolute;top:26%;left:7%;max-width:560px;z-index:2;pointer-events:none}.eyebrow{display:flex;align-items:center;gap:13px;color:var(--text-3);font-size:10px;letter-spacing:3px}.eyebrow:before{content:"";width:28px;height:1px;background:var(--bg-3)}h1{font-family:Georgia,Songti SC,SimSun,serif;white-space:pre-line;font-size:clamp(34px,3.2vw,48px);line-height:1.6;letter-spacing:3px;font-weight:400;margin:22px 0 18px}.hero p{white-space:pre-line;color:var(--text-2);line-height:2.1;font-size:13px;letter-spacing:1.2px}.start{display:flex;align-items:center;gap:40px;margin-top:34px;padding:17px 24px;background:var(--bg-3);color:var(--text-4);letter-spacing:3px;pointer-events:auto;min-width:205px;justify-content:space-between}.start:hover{background:var(--bg-3);filter:brightness(1.12)}.hero-meta{font-size:9px;color:var(--text-2);margin-top:18px;letter-spacing:2px}.hero-number{font-family:Georgia,serif;position:absolute;right:40px;bottom:174px;writing-mode:vertical-rl;font-size:10px;letter-spacing:4px;color:var(--text-2)}.car-label{position:absolute;left:40px;bottom:145px;color:var(--text-3);font-size:10px;letter-spacing:2px;display:flex;align-items:center;gap:10px}.car-label:before{content:"";width:24px;height:1px;background:var(--bg-3)}footer{position:absolute;bottom:0;left:0;right:0;height:112px;border-top:1px solid var(--bg-4);display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:var(--bg-5);z-index:3}.journey-track{display:flex;gap:0;align-items:center}.station{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:1px;color:var(--text-2);background:transparent;padding:8px 0;white-space:nowrap}.station .dot{width:7px;height:7px;transform:rotate(45deg);border:1px solid var(--text-2)}.station.active{color:var(--text-3)}.station.active .dot{background:var(--bg-3);border-color:var(--text-3);box-shadow:0 0 14px var(--text-3)}.station-line{width:34px;height:1px;background:var(--bg-4);margin:0 15px}.footer-status{display:flex;gap:24px;color:var(--text-2);font-size:9px;letter-spacing:1px}.footer-status span{display:flex;gap:7px;align-items:center}.footer-status svg{width:13px;height:13px}.copyright{position:absolute;bottom:12px;left:40px;font-size:8px;letter-spacing:2px;color:var(--text-2)}.objective{position:absolute;left:40px;top:163px;width:285px;z-index:2}.objective .chapter{font-size:9px;letter-spacing:2px;color:var(--text-3)}.objective h2{font-family:Georgia,Songti SC,serif;font-weight:400;font-size:21px;letter-spacing:2px;margin:13px 0}.objective p{line-height:1.9;color:var(--text-2);font-size:12px}.evidence-progress{display:flex;align-items:center;gap:12px;margin-top:22px;color:var(--text-3);font-size:10px}.evidence-bar{height:2px;background:var(--bg-4);width:90px}.evidence-bar i{display:block;height:100%;background:var(--bg-3)}.crosshair{position:absolute;top:50%;left:50%;width:4px;height:4px;border-radius:50%;background:var(--bg-3);box-shadow:0 0 4px var(--bg-5);pointer-events:none}.interact{position:absolute;bottom:173px;left:50%;transform:translate(-50%);z-index:3;display:flex;gap:12px;align-items:center;border:1px solid var(--bg-4);padding:11px 18px;background:var(--bg-5);font-size:12px;max-width:90vw}.interact kbd,kbd{border:1px solid var(--bg-4);border-radius:3px;min-width:25px;height:25px;display:inline-grid;place-items:center;font:10px monospace;color:var(--text-3);background:var(--bg-2)}.controls{position:absolute;bottom:130px;left:50%;transform:translate(-50%);display:flex;gap:22px;white-space:nowrap;align-items:center;color:var(--text-2);font-size:9px;z-index:3}.controls span{display:flex;align-items:center;gap:7px}.resume-hint{position:absolute;top:46%;left:50%;transform:translate(-50%);background:var(--bg-5);border:1px solid var(--bg-4);padding:15px 25px;z-index:3;white-space:nowrap;color:var(--text-3)}.playing .shade{opacity:.23}.playing .hero,.playing .hero-number,.not-playing .objective,.not-playing .crosshair,.not-playing .interact,.not-playing .controls,.not-playing .mobile-controls{display:none}.modal{position:fixed;z-index:10;top:0;right:0;bottom:0;left:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:20px;background:var(--bg-5);border:0;color:var(--text-1);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}.modal[open]{display:grid;place-items:center}.dialog-card{width:min(640px,100%);max-height:85vh;display:flex;flex-direction:column;background:var(--bg-2);border:1px solid var(--bg-4);box-shadow:0 30px 100px var(--bg-5)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;border-bottom:1px solid var(--bg-4);flex-shrink:0;background:var(--bg-2)}.dialog-head h2{font-family:Georgia,Songti SC,serif;font-size:24px;letter-spacing:3px;font-weight:400;margin:0}.dialog-body{padding:27px 28px;overflow:auto;line-height:1.9;color:var(--text-2);white-space:pre-line;overscroll-behavior:contain}.dialog-body p{margin:0 0 20px}.dialog-foot{border-top:1px solid var(--bg-4);padding:17px 28px;display:flex;gap:12px;justify-content:flex-end;flex-shrink:0;background:var(--bg-2)}.primary,.secondary{min-height:44px;padding:11px 22px;letter-spacing:1px}.primary{background:var(--bg-3);color:var(--text-4)}.primary:hover{background:var(--bg-3);filter:brightness(1.1)}.secondary{border:1px solid var(--bg-4);background:transparent}.document{position:relative;border:1px solid var(--bg-4);padding:24px;margin-bottom:15px}.document:before{content:"◈";position:absolute;right:17px;top:13px;color:var(--text-3)}.document h3{font-weight:400;color:var(--text-3);font-size:15px;margin:0 0 15px;letter-spacing:2px}.document p{font-family:Georgia,Songti SC,serif;font-size:14px;line-height:2.1}.document small{color:var(--text-3);font-size:10px}.map-row{border:1px solid var(--bg-4);padding:17px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;white-space:normal}.map-row strong{color:var(--text-1);font-weight:400}.map-row small{display:block;color:var(--text-3);font-size:10px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid var(--bg-4)}select,input{color:var(--text-1);background:var(--bg-1);border:1px solid var(--bg-4);padding:11px;min-height:44px}.code-input{display:block;width:100%;text-align:center;font-family:monospace;font-size:29px;letter-spacing:18px;padding:15px;margin:14px 0}.feedback{color:var(--text-6);min-height:24px;font-size:12px}.ending-symbol{text-align:center;color:var(--text-3);font-size:50px;margin:0 0 20px}.mobile-controls{display:none}.error{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-content:center;text-align:center;padding:30px;gap:20px}.toast{position:fixed;left:50%;top:100px;transform:translate(-50%);z-index:20;padding:12px 22px;background:var(--bg-2);border:1px solid var(--text-3);color:var(--text-3)}[hidden]{display:none!important}@media(min-width:1500px){.hero{top:29%}h1{font-size:48px}}@media(max-width:1000px){nav{margin-right:0;gap:18px}header{padding:0 24px}.scene-top{left:24px;right:24px}.hero{left:7%;top:25%}.station-line{width:20px;margin:0 9px}.footer-status{gap:12px}.footer-status span:first-child{display:none}.objective{left:24px}footer{padding:0 24px}.brand-name{font-size:17px}}@media(max-width:700px){header{height:66px;padding:0 16px}.brand-name{font-size:16px;letter-spacing:2px}.brand-sub{font-size:6px;letter-spacing:1.9px}.brand-icon{width:27px;height:34px}.brand{gap:9px}nav{gap:8px}nav button{font-size:0;min-width:37px;justify-content:center}nav button svg{width:18px}nav button:first-child{display:none}.tools{gap:0}.icon-button{width:33px;height:44px}.tools .settings-top{display:none}#scene,.shade{top:66px}.scene-top{top:89px;left:20px;right:20px}.rail-label{font-size:8px;letter-spacing:1px}.time-block strong{font-size:24px}.time-block small{font-size:7px}.hero{left:7%;top:25%;right:5%}h1{font-size:31px;letter-spacing:2px;line-height:1.7;margin-top:20px}.hero p{font-size:11px}.eyebrow{font-size:8px;letter-spacing:2px}.start{padding:15px 20px;margin-top:25px;min-height:49px;width:200px}.hero-meta{font-size:8px;letter-spacing:1px}.hero-number{display:none}footer{height:94px;padding:0 18px}.journey-track{width:100%;justify-content:space-between}.station{flex-direction:column;font-size:8px;letter-spacing:0;min-height:44px;justify-content:center}.station-line{width:15px;margin:0 4px;align-self:36%}.footer-status{display:none}.copyright{font-size:6px;left:18px;bottom:10px}.car-label{left:20px;bottom:116px;font-size:8px}.objective{top:145px;left:20px;width:230px}.objective h2{font-size:18px;margin:10px 0}.objective p{font-size:10px}.objective .chapter{font-size:8px}.evidence-progress{margin-top:13px}.controls{display:none}.interact{bottom:125px;max-width:85vw;font-size:11px}.dialog-head{padding:17px 19px}.dialog-head h2{font-size:20px}.dialog-body{padding:20px;font-size:12px}.dialog-foot{padding:15px;flex-wrap:wrap}.dialog-foot button{flex:1}.modal{padding:14px}.document{padding:17px}.document p{font-size:13px}.resume-hint{font-size:11px;max-width:85vw}.playing .car-label{display:none}}@media(pointer:coarse){.playing .mobile-controls{display:block}.mobile-controls{position:absolute;bottom:calc(116px + env(safe-area-inset-bottom));left:24px;z-index:4}.joystick{width:112px;height:112px;border:1px solid var(--text-2);border-radius:50%;background:var(--bg-6);touch-action:none;position:relative}.joystick i{position:absolute;width:44px;height:44px;top:33px;left:33px;border:1px solid var(--text-3);background:var(--bg-4);border-radius:50%;pointer-events:none}.playing .interact{left:auto;right:24px;bottom:140px;transform:none;width:130px;min-height:60px;justify-content:center}.interact kbd{display:none}.playing .objective{pointer-events:none}.playing .resume-hint{display:none}nav button,.icon-button{min-width:44px}.mobile-controls button{position:absolute;bottom:120px;left:0;width:48px;height:48px;border:1px solid var(--bg-4);background:var(--bg-5)}.playing .controls{display:none}.playing .shade{opacity:.35}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media(max-height:600px){.hero{top:22%}h1{font-size:30px;line-height:1.35;margin:12px 0}.hero p{font-size:11px;margin:8px 0}.start{margin-top:15px}.hero-meta{margin-top:10px}.scene-top{top:86px}.objective{top:125px}.playing .objective p{display:none}footer{height:75px}.car-label{bottom:95px}.interact{bottom:100px}.controls{bottom:85px}.hero-number{display:none}}@media(max-width:700px){.brand{flex-shrink:0}.brand-name{white-space:nowrap;font-size:15px}.brand-sub{font-size:5px;letter-spacing:1px;white-space:nowrap}.tools #audio{display:none}nav{gap:0}.hero h1{overflow-wrap:normal}.mobile-controls{padding-bottom:env(safe-area-inset-bottom)}}.playing .objective{width:min(220px,calc(100vw - 40px));pointer-events:none;transition:opacity .35s ease}.playing .objective h2{font-size:14px;letter-spacing:1px;margin:8px 0}.playing .objective p{font-size:11px;line-height:1.65;margin:8px 0}.playing .objective .chapter{font-size:8px;letter-spacing:1px}.playing .objective .evidence-progress{font-size:9px;margin-top:12px;gap:9px}.playing .scene-top .rail-label{font-size:9px;transition:opacity .35s ease}.playing.hud-quiet .objective,.playing.hud-quiet .scene-top .rail-label{opacity:0}.journal-objective{font-size:12px;padding-bottom:16px;border-bottom:1px solid var(--bg-4)}.journal-objective strong{font-size:10px;font-weight:400;letter-spacing:1px;color:var(--text-3)}
