
:root{font-family:Arial,Helvetica,sans-serif;color:#eee8d9;color-scheme:dark;--orange:#f3a45b}*{box-sizing:border-box}body{margin:0;background:#101c28;overflow:hidden}canvas#game{width:100vw;height:100vh;display:block}button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:#243039;border:1px solid #65717a66;padding:10px 15px;border-radius:3px}button:hover,button.selected{background:#80542e;border-color:var(--orange)}button:disabled{opacity:.4;cursor:wait}button.primary{background:var(--orange);color:#171b1c;font-weight:bold;padding:15px 30px}label{font-size:12px;display:inline-flex;align-items:center;gap:7px;margin:5px 8px 5px 0}input[type=range]{width:85px;accent-color:var(--orange)}input[type=color]{width:32px;height:28px;border:0;background:none}small{color:#aeb8bb;font-size:11px;line-height:1.7}#grade,#grain{position:fixed;inset:0;pointer-events:none}#grade{background:radial-gradient(ellipse,transparent 35%,#02070b66 100%)}#grain{opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h200v200H0z'/%3E%3C/svg%3E")}header{position:fixed;top:28px;left:35px;right:35px;display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:2px}header b{font-size:20px}header span{font-size:10px;color:#a6b4bb}#objective{color:#d5dcd9}#menu{position:fixed;left:8vw;top:10vh;max-width:550px;text-shadow:0 2px 30px #000}#menu:before{content:'';position:absolute;inset:-15vh -12vw -30vh -8vw;background:linear-gradient(90deg,#091018ed,transparent);z-index:-1;pointer-events:none}.eyebrow{font-size:11px;letter-spacing:4px;color:var(--orange)}h1{font-size:clamp(60px,8vw,112px);line-height:.87;letter-spacing:-7px;margin:32px 0;font-weight:900}h1 em{font-style:normal;color:var(--orange)}p{line-height:1.6;color:#c0cbce;font-size:14px}.controls{font-size:12px;margin:25px 0}.row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}details{font-size:12px;margin-bottom:10px;max-width:510px}summary{cursor:pointer;margin:14px 0}#prompt{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#111c24dd;border:1px solid #bdc6bb44;white-space:pre-line;text-align:center;font-size:13px;line-height:1.7}#prompt:empty{display:none}#cross{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);color:#fff8;font-size:20px;pointer-events:none}#hint{position:fixed;bottom:25px;left:35px;color:#aebdc3;font-size:11px;letter-spacing:1px}#status{position:fixed;top:90px;left:50%;transform:translateX(-50%);font-size:13px;letter-spacing:2px;color:#ffd9b0;background:#15222ad9;padding:12px 20px;max-width:70%;text-align:center}#status:empty{display:none}#radar{position:fixed;right:28px;bottom:25px;width:145px;height:145px;background:#091820b0;border:1px solid #8c9b9d44;border-radius:50%}#toolbar{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#101b24f5;border:1px solid #adb6a24d;padding:15px 18px;width:660px;max-width:95vw;z-index:5;box-shadow:0 15px 50px #0008}.tooltitle{font-size:19px;font-weight:bold;margin-bottom:12px}.tooltitle span{font-size:10px;letter-spacing:3px;color:var(--orange);margin-left:12px}.tooltitle button{float:right;font-size:10px}.canrow{display:flex;align-items:center;gap:4px;font-size:11px;border-bottom:1px solid #ffffff10;padding:3px 0}.canrow b{width:50px}#aim{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}#ending{position:fixed;bottom:6vh;left:7vw;background:#101b24e8;padding:25px 35px;min-width:420px}h2{font-size:40px;letter-spacing:-2px;margin:12px 0}.clean header,.clean #toolbar,.clean #radar,.clean #hint,.clean #status,.clean #prompt,.clean #cross,.clean #aim{display:none!important}[hidden]{display:none!important}#board,#endboard{font-size:12px;line-height:1.8;margin-top:10px}

#toolbar{left:auto;right:24px;top:105px;bottom:auto;max-height:calc(100vh - 125px);overflow-y:auto;transform:none;width:365px;padding:16px}#toolbar button{font-size:11px;padding:8px 10px}.canrow{flex-wrap:wrap;margin:9px 0}.canrow b{width:55px}.canrow label{margin-right:0}.canrow input[type=range]{width:62px}#toolbar .row{margin:8px 0}#toolbar small{display:block}
.palette{display:flex;gap:7px;width:100%;padding:3px 0}.palette button{width:24px;height:17px;padding:0!important;border:1px solid #fff5}
/* Can rack: armed can, its colour chip, three caps, then one shared colour rack. */
.canrow{gap:8px;cursor:pointer;border-left:2px solid transparent;padding-left:6px}
.canrow.armed{border-left-color:var(--orange);background:#ffffff08}
.canrow .chip{width:26px;height:18px;border:1px solid #fff6;border-radius:2px;display:inline-block;flex:none}
.canrow .caps{display:inline-flex;gap:4px}
.canrow .caps button{padding:5px 9px!important;font-size:10px;letter-spacing:.5px}
.canrow .custom{margin-left:auto}
.rack{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;width:100%;padding:8px 0 2px}
.rack button{height:18px;padding:0!important;border:1px solid #ffffff33;border-radius:2px}
.rack button:hover{border-color:var(--orange);transform:scale(1.18)}.clean #ending,.clean #menu{display:none!important}

#filewarn{max-width:620px;margin:14vh auto;padding:0 30px}
#filewarn h2{margin:18px 0}
#filewarn code{background:#1b2831;padding:2px 6px;border-radius:3px;color:var(--orange)}
header{z-index:6}#finishDay::before{content:'F / '}
#filmControls{position:fixed;bottom:12%;left:4%;z-index:50;background:#101a20e8;padding:20px 26px;border-left:2px solid #ddae78;max-width:650px}
#filmControls.recording{bottom:1.5%;padding:0;background:none;border:0;opacity:.65}
#filmControls.recording .eyebrow,#filmControls.recording #filmPhoto{display:none}
#filmControls.recording p{font-size:11px;margin:0 0 4px}
#filmControls.recording button{padding:5px 12px;font-size:10px}
.cinematic #hud,.cinematic #toolbar,.cinematic #menu,.cinematic #ending,.cinematic #radar,.cinematic #aim,.cinematic #hint,.cinematic #cross,.cinematic #prompt,.cinematic #status{display:none!important}

.train-picker{color:#e9eee9;background:#111a1b;border:1px solid #56706b;border-radius:8px;max-width:850px;width:calc(100% - 32px);max-height:85vh;padding:26px;box-shadow:0 30px 100px #000a}.train-picker::backdrop{background:#03080ce0}.train-picker h2{margin:0 0 12px;font-size:28px}.train-picker p{line-height:1.5;color:#b8c9c4}.train-pieces{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;max-height:49vh;overflow:auto}.train-pieces label{display:block;border:1px solid #435451;padding:10px;cursor:pointer;font-size:13px}.train-pieces label:has(:checked){border-color:#bae860;background:#202f25}.train-pieces canvas{width:100%;height:80px;object-fit:contain;background:#273236;display:block;margin-bottom:8px}.train-pieces input{margin-right:8px}.train-picker>button{margin:6px 10px 0 0}
/* Keep painting controls clear of the game header. */
#lookMode{top:64px!important}
body>button[style*="fixed"]{top:64px!important}
.cinematic header,.cinematic #lookMode,.cinematic>button[style*="fixed"]{display:none!important}
/* Night depot title screen. Keep the live yard visible beyond the panel. */
#menu{left:6vw;top:8vh;width:560px;max-width:86vw;max-height:86vh;overflow:auto;padding:30px 34px 22px;border-left:2px solid #d4b27c;background:linear-gradient(110deg,#0b1519f5,#142326c9);box-shadow:0 24px 100px #0006;backdrop-filter:blur(12px)}
#menu:before{display:none}.menu-route{display:flex;justify-content:space-between;gap:20px;font-size:9px;letter-spacing:1.5px;color:#859c9b;border-bottom:1px solid #91a49d30;padding-bottom:18px;margin-bottom:26px}
#menu h1{font-size:clamp(58px,7vw,96px);letter-spacing:-5px;margin:24px 0}#menu h1 em{color:#c5d68c}
#menu>.row{margin:22px 0 18px}#menu .primary{background:#c5d68c;color:#172222;border-color:#c5d68c;padding:16px 28px}#menu .menu-meta{display:flex;gap:22px;font-size:9px;letter-spacing:1.5px;color:#a6b6ad}#menu .controls{border-top:1px solid #91a49d30;padding-top:18px;margin:20px 0 12px;font-size:10px;line-height:1.9}#menu small{color:#93a59e;font-size:10px}
body:has(#menu:not([hidden])) #hud,body:has(#menu:not([hidden])) #hint,body:has(#menu:not([hidden])) #cross,body:has(#menu:not([hidden])) #radar{opacity:0;pointer-events:none}
.train-picker{max-width:1080px}.train-strip{display:flex;gap:12px;overflow-x:auto;padding:14px 2px 18px;scroll-snap-type:x proximity}.carriage-card{flex:0 0 240px;background:#202c2c;border:1px solid #61706a;border-radius:5px;padding:10px;cursor:grab;scroll-snap-align:start;touch-action:pan-y}.carriage-card:active{cursor:grabbing}.carriage-card canvas{width:100%;height:auto;display:block}.carriage-card strong{display:block;font-size:12px;margin:6px 0 10px}.carriage-card select{width:100%;margin:0 0 12px}.carriage-card button{padding:6px 12px;font-size:11px}.train-direction{font-size:10px;letter-spacing:3px;color:#c5d68c;margin-top:20px}.train-library{display:flex;gap:8px;overflow-x:auto;margin-bottom:15px}.carriage-add{flex:0 0 150px;font-size:10px}.carriage-add canvas{display:block;width:130px}
.coop-dialog{color:#e5eadd;background:#142023;border:1px solid #60756e;border-radius:8px;padding:30px;width:650px;max-width:90vw;max-height:85vh;overflow:auto;box-shadow:0 30px 100px #000a}.coop-dialog::backdrop{background:#050e14cc;backdrop-filter:blur(5px)}.coop-dialog h2{font-size:36px}.coop-dialog label{display:inline-flex;flex-direction:column;gap:6px;margin:8px 12px 14px 0;font-size:12px}.coop-dialog input{padding:10px;background:#253332;border:1px solid #587168;border-radius:3px;color:#eee}.coop-dialog [data-status]{color:#c5d68c}.coop-dialog [data-server-tools]{border-top:1px solid #61716855}.coop-dialog [data-server]{min-width:300px}
@media(max-height:760px){#menu{top:4vh;max-height:92vh;padding-top:18px}#menu h1{font-size:70px;margin:18px 0}.menu-route{margin-bottom:18px}#menu .controls{margin-top:12px}}
/* Film editing stays below the picture; all times refer to the original run. */
#menu .game-logo{display:block;width:100%;max-width:460px;height:auto;max-height:min(190px,24vh);object-fit:contain;object-position:left center}
#menu{overflow-x:hidden}#menu h1{max-width:100%}
#menu h1{margin:12px 0}
#filmControls{bottom:2%;left:3%;right:3%;max-width:none;max-height:45vh;overflow:auto;padding:12px 18px}
#filmControls p{margin:5px 0}
#filmControls .timeline{width:min(700px,70vw)}
.film-clips{display:flex;gap:8px;overflow:auto;margin:8px 0}
.film-clip{min-width:165px;text-align:left;font-size:12px}
.film-clip.active{border-color:#f3a45b;background:#594029}
#filmControls input[type=number]{width:72px}
#filmControls.recording .editor{display:none}
#filmControls.recording{max-height:90px;opacity:.8}
#filmControls{z-index:100;max-height:48vh;border:1px solid #d4b27c;box-shadow:0 -6px 40px #0009}
#filmControls .editor{border-top:1px solid #ffffff30;margin-top:8px;padding-top:8px}
#filmControls .film-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#filmControls .film-heading b{font-size:18px}
#filmControls.recording #filmEditorToggle{display:none}
@media(max-width:600px){#menu{left:4vw;top:3vh;width:92vw;max-width:92vw;max-height:94vh;padding:18px}#menu .game-logo{max-height:150px}.menu-route{gap:8px;letter-spacing:.5px}#filmControls{left:1%;right:1%;padding:8px;max-height:55vh}#filmControls button{font-size:12px;padding:8px}#filmControls .timeline{width:48vw}.film-clip{min-width:140px}}
.writer-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.writer-cards button{padding:7px;min-width:0;text-align:left;background:#172329;border:1px solid #536164;color:#e4e9df}.writer-cards button[aria-pressed="true"]{border-color:#c7ed7a;box-shadow:inset 0 0 0 1px #c7ed7a}.writer-cards img,.writer-original{display:block;width:100%;height:125px;object-fit:cover;object-position:50% 42%;background:#111c21}.writer-original{display:grid;place-items:center;font-size:32px;color:#c7ed7a}.writer-cards strong{display:block;font-size:12px;margin-top:8px}.writer-cards small{display:block;font-size:10px;line-height:1.35;margin-top:4px;color:#aebdbb}@media(max-width:600px){.writer-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.writer-cards img,.writer-original{height:95px}}


.room-chat-toggle{position:fixed;top:112px;left:16px;z-index:31}.room-chat{position:fixed;left:16px;top:158px;width:min(360px,calc(100vw - 32px));max-height:65vh;z-index:40;background:#142027f5;border:1px solid #61727a;border-radius:8px;padding:12px;color:#f4f1e7;box-shadow:0 8px 30px #0008}.room-chat[hidden],.room-chat-toggle[hidden]{display:none}.room-chat header{position:static;font-size:14px;letter-spacing:0}.room-chat{overflow:auto;max-height:calc(100dvh - 174px)}.cinematic .room-chat,.cinematic .room-chat-toggle{display:none!important}.room-chat header,.room-chat form>div{display:flex;gap:8px;align-items:center;justify-content:space-between}.room-chat-log{height:220px;max-height:32vh;overflow:auto;overflow-wrap:anywhere;user-select:text}.room-chat-log p{margin:10px 0;line-height:1.4}.room-chat-log strong{color:#ffbd77}.room-chat form label{display:block;margin:8px 0;font-size:13px}.room-chat input{min-width:0;flex:1;width:100%;padding:10px}.room-chat small{display:block;margin-top:8px;color:#b7c6cb}.room-chat header button{padding:4px 12px}
/* Last Service: full-screen title, live scenery and a compact options dock. */
#menu{inset:0;width:100%;max-width:none;max-height:none;padding:54px 6vw 25px;border:0;box-shadow:none;backdrop-filter:none;background:linear-gradient(90deg,rgba(5,12,16,.97) 0%,rgba(5,12,16,.87) 30%,rgba(5,12,16,.25) 68%,rgba(5,12,16,.08)),linear-gradient(0deg,#050c10 0%,transparent 30%);display:flex;flex-direction:column;overflow:auto;text-shadow:none}
#menu .menu-route{margin:0;padding:0 0 20px;color:#a5b5b6;border-color:#ffffff20;font-size:10px;letter-spacing:2px;flex-shrink:0}
.menu-route b{color:#d9ecad;font-size:16px;letter-spacing:-1px}
.menu-hero{margin:auto 0;width:520px;max-width:100%;padding:30px 0}
#menu .eyebrow{font-size:10px;letter-spacing:3px;color:#c6d7c0;display:flex;align-items:center;gap:10px}
#menu .eyebrow i{width:5px;height:5px;background:#c7e994;box-shadow:0 0 14px #b9e596;transform:rotate(45deg)}
#menu h1{margin:22px 0 2px;line-height:1}
#menu .game-logo{width:420px;max-height:170px!important;object-position:left center;filter:drop-shadow(0 6px 20px #0005)}
.edition{font-size:12px;color:#dfebde;letter-spacing:5px;margin:0 0 28px 3px}
#menu .menu-hero p{font-size:14px;line-height:1.8;color:#aab9bd;margin:0 0 28px}
#menu .play-actions{display:flex;flex-direction:column;align-items:stretch;gap:0;width:365px;max-width:100%;margin:0 0 24px}
#menu .play-actions button{text-align:left;border-radius:0;padding:19px 22px;font-size:13px;letter-spacing:2px;text-transform:uppercase;transition:background .18s, padding .18s;border:0;border-bottom:1px solid #ffffff26;background:#ffffff04}
#menu .play-actions .primary{background:#d0e4a7;color:#14211f;font-weight:800;border:0}
#menu .play-actions button:after{content:'↗';float:right;font-size:18px;line-height:14px}
#menu .play-actions button:hover:not(:disabled){background:#e2f5bd;color:#101b18;padding-left:28px}
#menu button:focus-visible,#menu summary:focus-visible,#menu a:focus-visible,#menu select:focus-visible{outline:2px solid #d9edae;outline-offset:4px}
#menu .menu-meta{gap:17px;font-size:8px;letter-spacing:1.3px;color:#81948d}
.yard-caption{position:absolute;right:6vw;top:48%;border-left:1px solid #cddbb855;padding-left:20px;color:#e4eadd;text-shadow:0 2px 16px #000}
.yard-caption span{font-size:9px;letter-spacing:2px;color:#c2cfc6}.yard-caption strong{display:block;font-size:clamp(25px,3.4vw,52px);font-weight:900;line-height:1.05;letter-spacing:-2px;margin:14px 0}
.menu-dock{display:flex;gap:34px;border-top:1px solid #ffffff25;flex-shrink:0;padding:0}
#menu .menu-panel{margin:0;max-width:none;font-size:12px}
#menu .menu-panel summary{list-style:none;margin:0;padding:23px 0;font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#aebcbb;border-top:2px solid transparent;transition:color .15s}
#menu .menu-panel summary::-webkit-details-marker{display:none}
#menu .menu-panel summary:after{content:' +';color:#a8c68c;margin-left:8px}
#menu .menu-panel[open] summary{color:#e3f0c7;border-color:#d0e4a7}
#menu .menu-panel[open] summary:after{content:' −'}
.panel-body{position:absolute;left:6vw;bottom:131px;width:620px;max-width:88vw;max-height:calc(100dvh - 210px);overflow:auto;padding:28px;background:#102024f5;border:1px solid #81958066;box-shadow:0 20px 80px #000b;backdrop-filter:blur(22px);z-index:3}
#menu .panel-body label{font-size:12px;margin:10px 15px 10px 0}#menu .panel-body select{padding:8px;background:#192e32;border:1px solid #617771;color:#e5ecdf;max-width:100%}
#menu .panel-body .controls{border:0;margin:0;padding:0;font-size:12px;line-height:2.2}
#menu .panel-body p{margin:0 0 20px}.menu-footer{display:flex;justify-content:space-between;gap:24px;border-top:1px solid #ffffff15;padding-top:16px;flex-shrink:0}
#menu .menu-footer small,.menu-footer>span{font-size:9px;letter-spacing:1px;color:#738984}.menu-footer>span{letter-spacing:3px;white-space:nowrap}
#menu .writer-cards img,#menu .writer-original{height:145px}#menu .writer-cards small{font-size:9px}
@media(min-width:850px) and (max-height:760px){#menu{padding-top:48px}.menu-hero{padding:18px 0}#menu .game-logo{width:315px;max-height:125px!important}#menu h1{margin:14px 0 0}.edition{margin-bottom:15px;font-size:10px}#menu .menu-hero p{margin-bottom:18px;font-size:12px}#menu .play-actions{margin-bottom:16px}#menu .play-actions button{padding:15px 20px}.yard-caption{top:43%}}
@media(max-width:849px){#menu{padding:64px 6vw 20px;background:linear-gradient(90deg,#050c10ed,#050c1070),linear-gradient(0deg,#050c10,transparent)}.yard-caption{display:none}.menu-hero{padding:32px 0}#menu .game-logo{width:340px}#menu .menu-route{font-size:8px;letter-spacing:1px}.menu-route span:last-child{display:none}.menu-dock{gap:0;justify-content:space-between}#menu .menu-panel summary{font-size:8px;letter-spacing:.6px;padding:20px 0}#menu .menu-panel summary:after{margin-left:2px}.menu-footer>span{display:none}.panel-body{bottom:120px;padding:20px;max-height:calc(100dvh - 195px)}#menu .menu-meta{font-size:7px;gap:10px}#menu .writer-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#menu .writer-cards img{height:160px}}
@media(prefers-reduced-motion:reduce){#menu *{transition:none!important}}
body:has(#menu:not([hidden]))>#lookMode,body:has(#menu:not([hidden]))>button[style*="fixed"]{top:12px!important;font-size:10px;padding:6px 10px;background:#071116cc;border:1px solid #ffffff25;border-radius:3px}

.community-menu-link{color:#cce095;font:10px monospace;letter-spacing:1px;white-space:nowrap}#gallery-submit{width:min(600px,94vw);max-height:90dvh;overflow:auto;border:1px solid #789280;background:#081517;color:#deeadf;padding:24px;z-index:9999}#gallery-submit::backdrop{background:#000b}#gallery-submit .gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}#gallery-submit h2{margin:0}#gallery-submit p{font:13px/1.5 sans-serif}#gallery-submit img{width:100%;max-height:30vh;object-fit:contain;background:#000}#gallery-submit label{display:block;font:13px/1.5 sans-serif;margin:16px 0}#gallery-submit input:not([type=checkbox]){display:block;width:100%;padding:10px;background:#132b2c;color:#fff;border:1px solid #789280;margin-top:6px}#gallery-submit .gallery-consent input{width:18px;height:18px;vertical-align:middle}#gallery-submit a{color:#cce095}#gallery-submit [data-close]{font-size:24px;padding:4px 12px}
#touchControls[hidden]{display:none!important}#touchControls{position:fixed;inset:0;z-index:45;pointer-events:none;color:#edf3dd;font:11px sans-serif}#touchControls button,.touch-stick{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}#touchControls button{min-height:44px;padding:8px 12px;background:#102729df;border:1px solid #cce09588;border-radius:12px;color:#edf3dd;font:12px sans-serif}.touch-top{position:absolute;top:70px;left:12px;display:flex;gap:8px;align-items:center}.touch-top span{max-width:155px;text-shadow:0 1px 3px #000}.touch-stick{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:max(20px,env(safe-area-inset-left));width:120px;height:120px;border-radius:50%;background:#10272999;border:1px solid #cce09588;display:grid;place-items:center}.touch-stick i{width:48px;height:48px;border-radius:50%;background:#cce09577;border:1px solid #cce095}.touch-stick span{position:absolute;bottom:10px;pointer-events:none}.touch-actions{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(2,minmax(65px,1fr));gap:7px;max-width:200px}#touchControls[data-mode=walk] [data-spray],#touchControls[data-mode=walk] [data-action=undo],#touchControls[data-mode=walk] [data-action=tools],#touchControls[data-mode=paint] [data-key],#touchControls[data-mode=paint] [data-action=view]{display:none}.touch-device #game{touch-action:none}.touch-device #hint{display:none}.touch-device #toolbar{display:none!important}.touch-device.touch-tools #toolbar:not([hidden]){display:block!important;z-index:55;top:120px;max-height:calc(100dvh - 290px);width:min(340px,90vw);overflow:auto}.touch-device #radar{width:80px;height:80px;bottom:160px}.touch-device #prompt{bottom:165px;font-size:11px}.touch-device #status{max-width:90vw;font-size:12px}.touch-device #menu{overflow-y:auto}
#touchControls[data-mode=walk] [data-action=closer],#touchControls[data-mode=walk] [data-action=further]{display:none}
.touch-device header{top:10px;left:12px;right:12px;gap:10px}.touch-device #objective,.touch-device #pauseBtn,.touch-device #lookMode,.touch-device #coopQuick{display:none}.touch-device header b{font-size:15px}.touch-device #finishDay{min-height:44px;font-size:10px;padding:8px}.touch-device #finishDay::before{content:''}.touch-device #uploadPiece{top:60px!important;right:12px!important;min-height:44px;font-size:12px}.touch-device .touch-top{top:60px}.touch-device .touch-top span{display:none}.touch-device #status{top:108px;max-width:90vw;padding:5px 10px;pointer-events:none}.touch-device.touch-tools #toolbar:not([hidden]){right:12px}.touch-device #menu{max-height:85dvh}.touch-device #ending{min-width:0;max-width:90vw}.touch-device .touch-actions button[data-action=interact]{font-size:11px}

/* Two playable chapters, large enough for touch and clear ordering. */
.level-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 16px}.level-choices a{display:flex;flex-direction:column;gap:8px;padding:22px 24px;min-height:130px;border:2px solid #718889;background:#101f27;color:#edf5ef;text-decoration:none;transition:background .15s,border-color .15s}.level-choices a:hover,.level-choices a[aria-current]{background:#233c43;border-color:#d3ef72}.level-choices span{font-size:12px;letter-spacing:.16em;color:#d3ef72}.level-choices strong{font-size:clamp(24px,3vw,40px);line-height:1}.level-choices small{font-size:13px;color:#c1cdd0}@media(max-width:600px){.level-choices{gap:8px}.level-choices a{padding:16px 12px;min-height:112px}.level-choices strong{font-size:25px}}

/* Entrance practice route */
#practice-route{position:fixed;bottom:84px;left:50%;transform:translateX(-50%);width:350px;max-width:calc(100vw - 36px);z-index:13;padding:14px 18px 12px;border-radius:10px;background:rgba(13,21,22,.92);border:1px solid #82928c55;color:#eeeae1;font:12px/1.4 system-ui;pointer-events:none;box-shadow:0 6px 30px #0005}
#practice-route[hidden]{display:none}.route-heading{display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#b2c2ba}.route-time{color:#ffd17b;font-size:12px;letter-spacing:0;font-variant-numeric:tabular-nums}.route-stages{display:flex;gap:14px;margin:9px 0;font:9px/1.4 system-ui;letter-spacing:.7px;color:#80918a}.route-stages .active{color:#ffd17b}.route-stages .done{color:#78d3b0}.route-title{font:600 18px/1.2 system-ui!important;letter-spacing:-.2px!important;margin:6px 0!important;color:#fff}.route-detail{font-size:11px;color:#acbbb3;margin:4px 0 11px}.route-action{font-size:11px;min-height:23px}.route-action span{color:#85988e;margin:0 3px}.route-action kbd{display:inline-block;padding:3px 5px;border:1px solid #71867b77;border-bottom-width:2px;border-radius:4px;font:9px system-ui;color:#f7e0b2;background:#25322c}
.practice-route-active #hint{visibility:hidden}
.route-restart{margin:8px 0 0;color:#b2c2ba;font-size:10px}.route-restart kbd{font:10px system-ui;color:#ffd17b}
@media(max-width:750px){#practice-route{bottom:90px;width:310px;padding:10px}.route-stages{margin:5px 0}.route-title{font-size:16px!important}}
