@charset "UTF-8";
/* Game gestures must not turn into text selection or iOS long-press callouts. */
#game,#game *{-webkit-user-select:none;user-select:none}
#moonlight-canvas,.touch-controls,.touch-controls *{-webkit-touch-callout:none}
:root{color-scheme:light;--paper:#f2eee4;--paper-light:#fbf8f0;--ink:#17333b;--muted:#74807b;--line:#d9ddcf;--orange:#db653f;--mint:#b6d8bb;--teal:#245a59;--dark:#142c36;font-family:"Pretendard","Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,a,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button{border:0}button[hidden],[hidden]{display:none!important}.page-shell{max-width:1440px;margin:auto;padding:0 48px}.skip-link{position:fixed;top:-70px;left:16px;padding:14px;background:#fff;z-index:30}.skip-link:focus{top:12px}.site-header{height:86px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:15px;letter-spacing:-.5px}.brand-star{font-size:32px;line-height:1;color:var(--orange);font-weight:400}.brand-divider{color:#a6afa4;margin:0 7px;font-weight:400}.brand-lab{font-size:10px;letter-spacing:2px;font-weight:600}.build-tag{font-size:10px;letter-spacing:1.3px;display:flex;align-items:center;gap:7px;color:#6f7d71}.build-tag i{width:5px;height:5px;background:var(--orange);border-radius:50%}.game-heading{display:flex;align-items:center;justify-content:space-between;padding:33px 0 28px;gap:24px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:700;margin:0 0 11px;color:#788579}h1,h2,h3,p{margin-top:0}h1{font-family:"Noto Serif KR","Batang",Georgia,serif;font-size:51px;line-height:1.15;letter-spacing:-3px;margin:0 0 12px;font-weight:800}.title-star{color:var(--orange);font-family:Georgia,serif;font-size:33px;vertical-align:top;margin-left:14px;display:inline-block;transform:rotate(13deg)}.lead{font-size:13px;letter-spacing:-.3px;color:#6d7c72;margin-bottom:0}.heading-note{display:flex;align-items:center;gap:18px;margin-right:4px}.heading-note>span{font-family:Georgia,serif;font-size:57px;color:#8c9a82;line-height:1;transform:rotate(-23deg)}.heading-note p{font-size:11px;line-height:1.9;color:#8a9688;margin:0}.heading-note strong{color:#586e61;font-weight:600}.play-toolbar{display:flex;justify-content:space-between;align-items:center;padding-bottom:16px;gap:10px}.mode-switch{background:#e5e8db;display:inline-flex;border-radius:10px;padding:4px}.mode-switch button{font-weight:700;font-size:11px;padding:10px 16px;border-radius:7px;background:transparent;color:#7a897a;display:flex;gap:12px;align-items:center}.mode-switch button span{font-size:8px;letter-spacing:1px;font-weight:500;opacity:.7}.mode-switch button[aria-selected=true]{background:var(--ink);color:var(--paper-light);box-shadow:0 3px 7px #18333a16}.toolbar-actions{display:flex;gap:18px}.icon-button{font-size:15px;background:none;display:flex;gap:6px;align-items:center;color:#7b887a}.icon-button span{font-size:10px}.icon-button[aria-pressed=true]{color:var(--orange)}.arcade-layout{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:20px;align-items:start}.game-column{min-width:0}.station-board{height:74px;background:var(--ink);color:#e4eacb;display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:18px;border-radius:14px 14px 0 0;border-bottom:1px solid #ffffff12}.station-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.station-name #station-label{font-family:"Noto Serif KR","Batang",Georgia,serif;font-weight:700;font-size:17px;letter-spacing:-.5px}.station-name #station-count{color:#8da999;font:9px monospace;letter-spacing:1px;white-space:nowrap}.station-dot{width:7px;height:7px;background:var(--mint);border-radius:50%;box-shadow:0 0 15px #bbdfb76b}.hud-numbers{display:flex;gap:24px;margin-left:auto}.hud-numbers>span{display:flex;flex-direction:column;gap:5px;font-size:8px;letter-spacing:1px;color:#819d8e}.hud-numbers strong{font-family:Georgia,serif;font-size:20px;letter-spacing:1px;color:#f6f1d9;font-weight:400;line-height:1}.hud-numbers small{font-size:11px;color:#819d8e}.turn-clock{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:12px;min-width:116px;padding-left:20px;border-left:1px solid #ffffff1a}.turn-clock>span{font-size:8px;color:#8ea799;letter-spacing:.2px}.turn-clock>strong{font-family:Georgia,serif;font-size:25px;font-weight:400;color:#f8d59a;line-height:1}.turn-clock small{font-size:9px;font-family:inherit;margin-left:3px}.clock-track{grid-column:1/-1;height:2px;background:#ffffff15;margin-top:7px;overflow:hidden}.clock-track i{display:block;height:100%;width:100%;background:#edb77c;transition:width .15s linear}.stage-wrap{position:relative;isolation:isolate;overflow:hidden;background:#132d36;border:1px solid #25404a;border-top:0}canvas{display:block;width:100%;height:auto;aspect-ratio:8/5;touch-action:none;outline:none}.stage-corner{position:absolute;inset:16px 22px auto;display:flex;justify-content:space-between;pointer-events:none;color:#a4beaf;font:8px "Courier New",monospace;letter-spacing:1.8px}.stage-corner>span:last-child{color:#c9c7a9;font-size:9px;letter-spacing:.3px;font-family:inherit}.stage-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#0d243641;backdrop-filter:blur(1.5px);z-index:2}.dispatch-card{position:relative;background:#f8f3e5;color:#24483f;text-align:center;padding:29px 31px 35px;width:min(328px,86%);box-shadow:0 18px 60px #030f2380,0 0 0 1px #f4edcf85;border-radius:4px;transform:rotate(-1deg)}.dispatch-card:before,.dispatch-card:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#19313b;top:calc(100% - 36px)}.dispatch-card:before{left:-7px}.dispatch-card:after{right:-7px}.dispatch-kicker{font-size:8px;letter-spacing:1.8px;font-weight:700;color:#ae8b6d}.dispatch-card h2{font-family:"Noto Serif KR","Batang",Georgia,serif;font-size:22px;letter-spacing:-1px;margin:12px 0 13px}.dispatch-card p{font-size:11px;color:#7f8877;line-height:1.9;margin-bottom:18px;word-break:keep-all}.primary-button{background:var(--orange);color:#fff8e8;padding:14px 19px;font-size:12px;letter-spacing:-.2px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:23px;width:100%;border-radius:5px;box-shadow:0 3px 0 #a74428;transition:background .15s,transform .15s}.primary-button:hover{background:#c95632}.primary-button:active{transform:translateY(2px);box-shadow:0 1px 0 #a74428}.primary-button>span{font-size:16px;line-height:1}.text-button{font-size:10px;background:transparent;color:#738576;padding:13px 8px 2px}.ticket-number{display:block;font-family:"Courier New",monospace;letter-spacing:2px;font-size:7px;color:#b3aa93;border-top:1px dashed #cfc7af;margin-top:17px;padding-top:10px;position:absolute;bottom:9px;left:18px;right:18px}.game-bottom-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:13px 18px;background:#e8ebde;border:1px solid #dce2d1;border-top:0;border-radius:0 0 12px 12px}.fuel{display:flex;align-items:center;gap:8px;font-size:8px;color:#6b806d;white-space:nowrap}.fuel-track{width:67px;height:5px;background:#d1dccb;overflow:hidden;border-radius:3px}.fuel-track i{display:block;background:#739f7b;height:100%;width:100%;transition:width .2s}.fuel strong{font:9px monospace;font-weight:400}.cargo-label{font-size:9px;color:#82917d;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.restart-link{font-size:9px;background:transparent;white-space:nowrap;color:#637864}.restart-link:disabled{opacity:.4}.keyboard-legend{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;padding:16px 2px;font-size:9px;color:#83907f;align-items:center}.keyboard-legend>span{white-space:nowrap}kbd{display:inline-flex;min-width:17px;justify-content:center;align-items:center;font-size:8px;padding:3px 4px;line-height:1;margin-right:2px;background:#f9f8ee;border:1px solid #dce1d2;border-bottom-width:2px;border-radius:3px;font-family:inherit;color:#6e806b}.legend-goal{font-size:8px}.legend-goal b{font-weight:600;color:#5b7864}.relay-panel{background:#faf8ef;border:1px solid #dce0d1;border-radius:14px;overflow:hidden}.relay-header{padding:23px 21px 19px;border-bottom:1px solid #e3e6d9}.relay-header>.eyebrow{font-size:8px;color:#8f9b87;letter-spacing:1.8px;margin-bottom:10px}.relay-header>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.relay-header h2{font-family:"Noto Serif KR","Batang",Georgia,serif;font-size:20px;letter-spacing:-1px;margin:0}.connection-pill{border:1px solid #dce5d1;background:#f0f4e9;padding:5px 6px;border-radius:3px;font-size:7px;color:#829271;white-space:nowrap}.connection-pill.connected{background:#e4efdd;color:#527d54}.connection-pill.error{background:#fff0e9;border-color:#f1cdbd;color:#b2654b}.relay-header>p:last-child{font-size:10px;line-height:1.9;color:#8a9681;margin:12px 0 0;word-break:keep-all}.current-player{display:flex;align-items:center;gap:11px;padding:18px 21px;border-bottom:1px solid #e3e6d9}.avatar{width:36px;height:36px;border-radius:50%;background:#e5e9d9;color:#8ca080;display:grid;place-items:center;font-size:21px}.current-player>div{display:flex;flex-direction:column;gap:5px;min-width:0}.small-label{font-size:8px;letter-spacing:.3px;color:#9aa58d}.current-player strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-dot{background:#d27b4e;width:6px;height:6px;border-radius:50%;margin-left:auto;box-shadow:0 0 0 4px #dc714a10}.queue-section{padding:19px 21px 17px;border-bottom:1px solid #e3e6d9}.section-label{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-label h3{font-size:10px;font-weight:700;margin:0;color:#637d62}.section-label>span{font:8px monospace;color:#99a58b}.queue-list{list-style:none;padding:0;margin:13px 0;font-size:10px;color:#789073;min-height:33px}.queue-list li{display:flex;align-items:center;gap:8px;padding:5px 0}.queue-list .queue-number{font:9px monospace;color:#a1ab92}.queue-list .queue-time{margin-left:auto;font-size:8px;color:#a1ab92}.queue-list .empty-queue{font-size:9px;line-height:1.7;color:#a4ad96;min-height:33px}.queue-button{padding:11px 12px;background:#244d48;color:#f3f1db;display:flex;align-items:center;justify-content:space-between;width:100%;font-size:10px;line-height:1.4;border-radius:4px;font-weight:600}.queue-button:disabled{opacity:.6}.queue-button.cancel{background:#ececdf;color:#75816c}.queue-button.ready{background:var(--orange);color:#fff8ea}.queue-help{font-size:8px;color:#9ba58f;margin:9px 0 0;line-height:1.6;word-break:keep-all}.spectator-row{padding:12px 21px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e6d9}.spectator-row>span{display:flex;align-items:center;gap:6px;color:#929e87;font-size:8px}.spectator-row i{height:4px;width:4px;border-radius:50%;background:#a6b694}.spectator-row button{background:transparent;border:1px solid #e0e4d5;border-radius:12px;font-size:11px;min-width:43px;padding:4px 8px;color:#bd7b65}.spectator-row button:disabled{opacity:.5}.spectator-row button.liked{background:#f8e4d9;border-color:#ebc5af}.cheer-section{padding:17px 21px 14px}.section-label>button{font-size:8px;background:none;color:#a0a98f;padding:0}.chat-log{height:104px;overflow:auto;margin:11px 0 12px;scrollbar-width:thin;scrollbar-color:#dbe1cf transparent}.chat-log p{font-size:9px;line-height:1.7;margin:0 0 6px;color:#778b70;overflow-wrap:anywhere}.chat-log .chat-name{font-size:8px;color:#a0ab8e;margin-right:6px}.chat-log .chat-empty{color:#b0b79f;font-size:10px;text-align:center;padding:25px 0 15px;line-height:1.9}.cheer-buttons{display:flex;gap:5px;flex-wrap:wrap}.cheer-buttons button{font-size:8px;background:#f1f3e7;border:1px solid #e0e5d3;padding:6px 7px;border-radius:4px;color:#7a8e70}.cheer-buttons button:disabled{opacity:.48}.cheer-buttons button:not(:disabled):hover{background:#e3ecd8}.chat-disclaimer{font-size:7px;color:#a9b29c;margin:9px 0 0;line-height:1.5}.room-footnote{font-size:8px;color:#9da991;background:#f0f3e6;padding:11px 17px;margin:0;text-align:center;line-height:1.7}.tutorial-note{position:absolute;left:20px;right:20px;bottom:16px;display:flex;gap:12px;align-items:center;background:#f7f2dfec;border:1px solid #eadfbd;padding:13px 15px;border-radius:6px;z-index:2;box-shadow:0 6px 25px #0b26332b}.tutorial-step{font-family:Georgia,serif;color:#c67b51;font-size:25px}.tutorial-note strong{font-size:11px;color:#385c4e}.tutorial-note p{font-size:9px;color:#87907a;margin:5px 0 0}.tutorial-note>button{margin-left:auto;background:none;font-size:23px;color:#8f9b83;padding:0 0 0 8px}.game-toast{position:absolute;left:50%;top:20%;transform:translate(-50%,-10px);opacity:0;pointer-events:none;background:#f5eed5ed;color:#496747;padding:9px 15px;border-radius:30px;font-size:11px;box-shadow:0 4px 20px #0a273455;transition:opacity .2s,transform .2s;white-space:nowrap;z-index:3}.game-toast.visible{opacity:1;transform:translate(-50%,0)}.touch-controls{display:none;align-items:center;justify-content:space-between;gap:16px;padding:16px 5px 0;user-select:none}.direction-pad{display:grid;grid-template-columns:43px 43px 43px;grid-template-rows:38px 38px 38px;gap:4px}.direction-pad button{background:#e2e8d8;border:1px solid #d3ddca;border-bottom-width:3px;border-radius:8px;font-size:20px;color:#698261;touch-action:none;user-select:none}.direction-pad button:active,.direction-pad button.held{background:#c4d9b8;border-bottom-width:1px;transform:translateY(1px)}.direction-pad [data-direction=up]{grid-area:1/2}.direction-pad [data-direction=left]{grid-area:2/1}.direction-pad>span{grid-area:2/2;display:grid;place-items:center;color:#9aaa8b}.direction-pad [data-direction=right]{grid-area:2/3}.direction-pad [data-direction=down]{grid-area:3/2}.touch-actions{display:flex;gap:10px}.touch-actions button{height:59px;width:63px;background:#dce7d1;border:1px solid #c9d8bd;border-bottom-width:3px;border-radius:50%;font-size:10px;font-weight:700;color:#6f8964;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;touch-action:manipulation;user-select:none}.touch-actions button span{font-size:7px;letter-spacing:.5px;opacity:.7}.touch-actions #touch-interact{background:#dc704a;border-color:#b95638;color:#fff4dd;height:73px;width:73px}.how-it-works{display:flex;align-items:center;gap:30px;border-top:1px solid var(--line);margin-top:22px;padding:30px 10px 37px}.how-it-works>div:not(.station-stamp){flex:1;position:relative;padding-left:31px}.instruction-number{position:absolute;top:2px;left:0;font-family:Georgia,serif;font-size:12px;color:#a1b18d}.how-it-works h3{font-family:"Noto Serif KR","Batang",Georgia,serif;font-size:15px;margin:0 0 9px;color:#536b53}.how-it-works p{font-size:9px;color:#94a084;line-height:1.9;margin:0}.how-it-works kbd{font-size:7px;padding:2px 3px;min-width:13px}.instruction-arrow{color:#b2bda5;font-size:17px}.station-stamp{transform:rotate(-10deg);height:97px;width:139px;flex-shrink:0;border:1px solid #b8c1a5;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#a2ad90;text-align:center;opacity:.8;margin-left:18px}.station-stamp span{font-size:7px;letter-spacing:1px}.station-stamp strong{font-family:"Noto Serif KR","Batang",Georgia,serif;font-size:13px;font-weight:600}footer{display:flex;align-items:center;gap:20px;justify-content:space-between;font-size:9px;color:#9aa68d;border-top:1px solid var(--line);padding:20px 0 25px}footer>span{font-family:Georgia,"Batang",serif;font-style:italic;letter-spacing:.3px;color:#abb59c}footer>a:hover{color:#577b5b}dialog{border:1px solid #d8dec8;border-radius:12px;max-width:510px;width:calc(100% - 32px);background:var(--paper-light);color:var(--ink);padding:34px;box-shadow:0 30px 100px #061c3459}dialog::backdrop{background:#132a3975;backdrop-filter:blur(4px)}dialog h2{font-family:"Noto Serif KR","Batang",Georgia,serif;font-size:25px;letter-spacing:-1px}dialog ol{padding-left:18px;font-size:12px;line-height:1.9;color:#6b806b}dialog li{margin-bottom:12px}dialog strong{color:#365d49;margin-right:7px}dialog>p:not(.eyebrow){font-size:11px;line-height:1.9;color:#8a977e}dialog .primary-button{margin-top:20px}.dialog-close{position:absolute;top:13px;right:17px;background:none;color:#97a287;font-size:25px}.noscript{padding:20px;text-align:center}.danger-clock{color:#e89473!important}.invisible-game{opacity:.6}.game-column:focus{outline:none}
@media(min-width:1500px){.page-shell{padding:0 58px}.arcade-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1080px){.page-shell{padding:0 26px}.arcade-layout{grid-template-columns:minmax(0,1fr) 252px;gap:16px}.station-board{padding:0 17px;gap:12px}.hud-numbers{gap:15px}.turn-clock{padding-left:13px;min-width:103px;column-gap:7px}.legend-goal{display:none}.relay-header,.current-player,.queue-section,.cheer-section{padding-left:16px;padding-right:16px}.spectator-row{padding-left:16px;padding-right:16px}.how-it-works{gap:18px}.station-stamp{margin-left:0;width:110px;height:84px}}
@media(max-width:860px){.page-shell{max-width:740px;padding:0 22px}.site-header{height:70px}.game-heading{padding:26px 0 23px}h1{font-size:45px}.heading-note{display:none}.arcade-layout{grid-template-columns:1fr;gap:22px}.station-board{height:70px}.relay-panel{display:grid;grid-template-columns:1fr 1fr}.relay-header{grid-column:1/-1;padding:20px 22px 17px}.relay-header>p:last-child br{display:none}.relay-header h2{font-size:22px}.current-player{grid-column:1;grid-row:2}.queue-section{grid-column:1;grid-row:3/5;border-right:1px solid #e3e6d9;border-bottom:0}.spectator-row{grid-column:2;grid-row:2;border-left:1px solid #e3e6d9}.cheer-section{grid-column:2;grid-row:3/5}.room-footnote{grid-column:1/-1}.chat-log{height:72px}.how-it-works{padding:28px 0;gap:14px}.station-stamp{display:none}.keyboard-legend{justify-content:center;gap:18px;padding:14px 0 0}.touch-controls{display:flex}.keyboard-legend .legend-goal{display:none}footer>span{display:none}.cargo-label{font-size:9px}}
@media(max-width:480px){.page-shell{padding:0 13px}.site-header{height:64px}.brand{font-size:12px;gap:7px}.brand-star{font-size:27px}.brand-divider{margin:0 2px}.brand-lab{font-size:7px;letter-spacing:1.2px}.build-tag{font-size:7px;letter-spacing:.6px;gap:5px}.game-heading{padding:22px 2px 21px}.eyebrow{font-size:7px;letter-spacing:1.8px}h1{font-size:40px;letter-spacing:-2.5px;margin-bottom:10px}.title-star{font-size:27px;margin-left:11px}.lead{font-size:10px}.play-toolbar{padding-bottom:12px}.mode-switch button{padding:9px 11px;font-size:10px;gap:7px}.mode-switch button span{font-size:6px}.toolbar-actions{gap:10px}.icon-button{font-size:14px;gap:4px}.icon-button span{font-size:8px}.station-board{height:61px;padding:0 12px;gap:11px;border-radius:11px 11px 0 0}.station-name{gap:5px;max-width:78px}.station-name #station-label{font-size:14px}.station-name #station-count{font-size:7px}.station-dot{width:5px;height:5px}.hud-numbers{gap:13px}.hud-numbers>span{font-size:7px;gap:5px}.hud-numbers strong{font-size:17px}.hud-numbers small{font-size:9px}.turn-clock{min-width:79px;column-gap:5px;padding-left:10px}.turn-clock>span{font-size:6px}.turn-clock>strong{font-size:21px}.turn-clock small{font-size:7px}.stage-corner{inset:12px 13px auto;font-size:6px;letter-spacing:1.1px}.stage-corner>span:last-child{font-size:7px}.dispatch-card{padding:19px 21px 29px;width:235px}.dispatch-kicker{font-size:6px}.dispatch-card h2{font-size:18px;margin:9px 0 9px}.dispatch-card p{font-size:9px;line-height:1.7;margin-bottom:11px}.primary-button{padding:11px 13px;font-size:10px}.text-button{font-size:8px;padding-top:11px}.ticket-number{font-size:5px;letter-spacing:1.4px;bottom:7px;padding-top:7px}.game-bottom-bar{padding:11px 10px;gap:8px}.fuel{font-size:7px;gap:5px}.fuel-track{width:42px;height:4px}.fuel strong{font-size:7px}.cargo-label{font-size:7px;max-width:160px}.restart-link{font-size:8px;padding:0}.touch-controls{padding:14px 13px 0}.direction-pad{grid-template-columns:39px 39px 39px;grid-template-rows:34px 34px 34px;gap:3px}.direction-pad button{font-size:18px}.touch-actions{gap:12px}.touch-actions button{width:56px;height:56px;font-size:9px}.touch-actions #touch-interact{height:67px;width:67px}.touch-actions button span{font-size:6px}.keyboard-legend{font-size:7px;gap:9px;padding-top:13px}.keyboard-legend kbd{font-size:6px;padding:3px;min-width:14px}.tutorial-note{left:10px;right:10px;bottom:10px;padding:9px 11px;gap:9px}.tutorial-step{font-size:20px}.tutorial-note strong{font-size:9px}.tutorial-note p{font-size:7px;margin-top:4px}.tutorial-note>button{font-size:20px}.game-toast{font-size:9px;padding:7px 11px}.relay-header{padding:18px 16px 14px}.relay-header h2{font-size:20px}.relay-header>p:last-child{font-size:9px}.current-player{padding:14px 13px;gap:8px}.avatar{width:29px;height:29px;font-size:18px}.small-label{font-size:6px}.current-player strong{font-size:9px}.spectator-row{padding:12px 13px}.spectator-row>span{font-size:7px}.queue-section,.cheer-section{padding:15px 13px}.section-label h3{font-size:9px}.queue-button{font-size:9px;padding:10px}.queue-help{font-size:7px}.cheer-buttons{gap:4px}.cheer-buttons button{font-size:7px;padding:6px}.chat-log p{font-size:8px}.chat-log .chat-empty{font-size:9px}.room-footnote{font-size:7px}.how-it-works{margin-top:22px;padding:25px 0 27px;gap:10px}.how-it-works>div:not(.station-stamp){padding-left:0}.instruction-number{position:static;display:block;font-size:10px;margin-bottom:7px}.how-it-works h3{font-size:13px;margin-bottom:7px}.how-it-works p{font-size:7px;line-height:1.9;word-break:keep-all}.how-it-works kbd{font-size:6px}.instruction-arrow{font-size:13px}footer{font-size:8px;padding:18px 0 21px}.station-board,.stage-wrap,.game-bottom-bar{min-width:0}dialog{padding:29px 24px}dialog h2{font-size:23px}dialog ol{font-size:11px}dialog>p:not(.eyebrow){font-size:10px}}
@media(max-width:360px){.dispatch-card{width:224px;padding:14px 17px 24px}.dispatch-card h2{font-size:16px;margin:7px 0 8px}.dispatch-card p{font-size:8px;line-height:1.6;margin-bottom:8px}.dispatch-card .primary-button{padding:9px 12px}.dispatch-card .text-button{padding-top:9px;font-size:7px}.dispatch-card .ticket-number{font-size:4px;bottom:6px;padding-top:5px}.touch-controls{padding-left:7px;padding-right:7px;gap:10px}.touch-actions{gap:9px}.touch-actions button{width:52px;height:52px}.touch-actions #touch-interact{width:62px;height:62px}.mode-switch button{padding:9px}.mode-switch button span{display:none}.cargo-label{max-width:118px}}
@media(max-width:860px){.relay-header>p:last-child{font-size:11px;line-height:1.8}.connection-pill{font-size:10px}.current-player .small-label{font-size:10px}.current-player strong{font-size:11px}.section-label h3{font-size:11px}.section-label>span,.section-label>button{font-size:10px}.queue-list,.queue-list .empty-queue{font-size:10px}.queue-list .queue-number,.queue-list .queue-time{font-size:10px}.queue-button{font-size:11px;min-height:42px}.queue-help{font-size:10px;line-height:1.7}.spectator-row>span{font-size:10px;line-height:1.6}.spectator-row>button{min-width:44px;min-height:32px}.chat-log{height:95px}.chat-log p,.chat-log .chat-empty{font-size:11px;line-height:1.8}.chat-log .chat-name{font-size:10px}.cheer-buttons button{font-size:10px;min-height:32px}.chat-disclaimer,.room-footnote{font-size:10px;line-height:1.7}.keyboard-legend{font-size:10px;line-height:1.8}.keyboard-legend kbd{font-size:9px}.how-it-works p{font-size:10px;line-height:1.8}.how-it-works kbd{font-size:9px}.how-it-works h3{font-size:14px}.icon-button{min-height:40px}.icon-button span{font-size:10px}.cargo-label{font-size:10px}.restart-link{font-size:10px;min-height:27px}.tutorial-note strong{font-size:11px}.tutorial-note p{font-size:10px;line-height:1.6}.tutorial-note>button{min-width:27px;min-height:32px}.direction-pad{grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px}.touch-actions button{font-size:11px}.fuel{font-size:10px}.fuel strong{font-size:9px}.station-name #station-count{font-size:9px}.hud-numbers>span{font-size:10px;letter-spacing:0}.turn-clock>span{font-size:10px;line-height:1.3}.how-it-works{align-items:flex-start}.how-it-works>div:not(.station-stamp){min-width:0}.instruction-arrow{align-self:center}}
@media(max-width:480px){.relay-header h2{font-size:22px}.play-toolbar{gap:5px}.toolbar-actions{gap:8px}.mode-switch button{gap:6px}.keyboard-legend{gap:8px}.game-bottom-bar{flex-wrap:wrap;column-gap:9px;row-gap:6px}.fuel{font-size:10px}.cargo-label{flex:1;max-width:none;min-width:0}.fuel-track{width:36px}.touch-controls{gap:10px}.station-board{gap:9px}.hud-numbers{gap:10px}.station-name{max-width:72px}.turn-clock{min-width:82px;padding-left:8px;column-gap:4px}.turn-clock>strong{font-size:20px}.turn-clock small{font-size:8px}.dispatch-card .primary-button{font-size:11px}.dispatch-card .text-button{font-size:10px}.dispatch-card p{font-size:10px;line-height:1.7}.dispatch-card{padding-bottom:29px}.chat-log{height:115px}.current-player{gap:7px}.avatar{width:25px;height:25px;flex-shrink:0}.how-it-works{gap:8px}.how-it-works p{font-size:10px}.instruction-arrow{font-size:10px}.how-it-works p br{display:none}footer{font-size:10px}.tutorial-note{align-items:flex-start}.tutorial-note>button{margin-top:-4px}}
@media(max-width:360px){.dispatch-card{padding:12px 16px 23px;width:224px}.dispatch-card h2{font-size:16px;margin:7px 0 6px}.dispatch-card p{font-size:10px;line-height:1.5;margin-bottom:7px}.dispatch-card .primary-button{padding:8px 11px;font-size:11px}.dispatch-card .text-button{padding-top:7px;font-size:10px}.dispatch-card .ticket-number{bottom:5px}.touch-controls{gap:8px;padding-left:5px;padding-right:5px}.touch-actions{gap:8px}.station-board{gap:7px;padding:0 10px}.station-name{max-width:63px}.station-name #station-label{font-size:13px}.hud-numbers{gap:9px}.hud-numbers strong{font-size:16px}.turn-clock{min-width:79px;padding-left:7px}.turn-clock>strong{font-size:19px}.relay-header,.current-player,.queue-section,.cheer-section{padding-left:11px;padding-right:11px}.queue-list li{flex-wrap:wrap;gap:5px}.queue-list .queue-time{flex-basis:100%;margin-left:18px}.spectator-row{padding-left:11px;padding-right:11px}.spectator-row>span{max-width:85px}.cheer-buttons button{padding-left:5px;padding-right:5px}.current-player .small-label{font-size:10px}.current-player strong{font-size:10px}.icon-button{gap:3px}.icon-button span{font-size:10px}.toolbar-actions{gap:6px}.how-it-works .instruction-arrow{display:none}}
@media(max-width:360px){.dispatch-card{padding:9px 16px}.dispatch-card .dispatch-kicker,.dispatch-card .ticket-number{display:none}.dispatch-card h2{margin:0 0 6px;line-height:1.2}.dispatch-card p{margin:0 0 6px;line-height:1.5}.dispatch-card .primary-button,.dispatch-card .text-button{min-height:44px}.dispatch-card .primary-button{padding:8px 11px}.dispatch-card .text-button{padding:4px 8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(pointer:coarse){.touch-controls{display:flex}.keyboard-legend{display:none}}

/* Keep the first screen a playable cabinet; waiting and long explanations are dialogs. */
.page-shell{max-width:1120px;padding:0 16px;min-height:100svh;display:flex;flex-direction:column}
.page-shell>main{flex:1;min-height:0;width:100%}
.site-header{height:38px;min-height:38px;flex-shrink:0}
.brand{font-size:12px;gap:7px}.brand-star{font-size:25px}.brand-lab{font-size:8px}.build-tag{font-size:8px}
.game-heading{height:58px;padding:8px 0;gap:12px}.game-heading .eyebrow,.heading-note{display:none}
.game-heading h1{font-size:30px;line-height:1.1;letter-spacing:-1.6px;margin:0 0 5px}.title-star{font-size:21px;margin-left:9px}.lead{font-size:10px}
.play-toolbar{min-height:52px;padding:0 0 6px;gap:8px;flex-wrap:nowrap}.mode-switch{padding:3px;flex-shrink:0}
.mode-switch button{min-height:44px;padding:8px 12px;font-size:11px;gap:8px}.toolbar-actions{gap:6px;margin-left:auto;align-items:center}
.toolbar-actions .icon-button{min-width:44px;min-height:44px;justify-content:center;font-size:16px;padding:4px;line-height:1.2}
#pause-btn{width:56px;min-width:56px;max-width:56px;font-size:11px;white-space:nowrap}#relay-open-btn{min-width:64px;font-size:11px;white-space:nowrap}
.arcade-layout{display:block;width:min(100%,calc((100svh - 300px)*1.6 + 2px));margin:0 auto}
.station-board{height:48px;padding:0 16px;gap:12px}.station-name #station-label{font-size:15px}.station-name #station-count{font-size:9px}
.hud-numbers{gap:18px}.hud-numbers>span{font-size:9px;gap:3px}.hud-numbers strong{font-size:18px}.turn-clock{min-width:100px;padding-left:14px;column-gap:8px}.turn-clock>span{font-size:9px}.turn-clock>strong{font-size:23px}
.game-bottom-bar{min-height:32px;padding:5px 12px;gap:10px;flex-wrap:nowrap}.fuel{font-size:10px}.cargo-label{font-size:10px;min-width:0;max-width:none;flex:1}.restart-link{min-height:22px;font-size:10px;padding:0}
.keyboard-legend{padding:6px 0;line-height:1.5;font-size:10px;gap:12px}.touch-controls{padding:6px 7px 0;gap:10px}
.direction-pad{grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px;gap:3px}
.touch-actions{gap:10px}.touch-actions button{width:56px;height:56px;font-size:11px}.touch-actions #touch-interact{width:68px;height:68px}
footer{min-height:30px;padding:6px 0;font-size:10px;gap:12px}.page-shell footer>span{font-size:10px}
dialog{max-height:calc(100svh - 20px);overflow-y:auto;overscroll-behavior:contain}
#relay-dialog{width:min(480px,calc(100% - 20px));max-width:480px;padding:0;background:var(--paper-light)}
.relay-dialog-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;padding:5px 14px;background:var(--paper-light);border-bottom:1px solid var(--line)}
.relay-dialog-bar>span{font-size:10px;letter-spacing:.7px;color:#7a8e71}#relay-close-btn{min-width:68px;min-height:44px;padding:8px 10px;border-radius:6px;background:#e7eddd;font-size:12px;color:#54714f}
#relay-dialog .relay-panel{display:block;border:0;border-radius:0}#relay-dialog .relay-header{padding:18px 20px}#relay-dialog .relay-header h2{font-size:23px}
#relay-dialog .relay-header>p:last-child{font-size:12px;line-height:1.7}#relay-dialog .current-player,#relay-dialog .queue-section,#relay-dialog .spectator-row,#relay-dialog .cheer-section{padding:14px 20px;border-left:0;border-right:0}
#relay-dialog .small-label,#relay-dialog .section-label>span,#relay-dialog .section-label>button,#relay-dialog .queue-time,#relay-dialog .queue-number{font-size:11px}
#relay-dialog .current-player strong,#relay-dialog .section-label h3,#relay-dialog .queue-list,#relay-dialog .queue-list .empty-queue{font-size:12px}
#relay-dialog .queue-button{min-height:44px;font-size:12px}#relay-dialog .queue-help,#relay-dialog .spectator-row>span,#relay-dialog .chat-disclaimer,#relay-dialog .room-footnote{font-size:11px;line-height:1.7}
#relay-dialog .spectator-row>span{max-width:none}#relay-dialog .spectator-row>button{min-height:44px;min-width:52px}#relay-dialog .cheer-buttons button{min-height:44px;padding:8px 11px;font-size:11px}
#relay-dialog .chat-log{height:110px}#relay-dialog .chat-log p,#relay-dialog .chat-log .chat-empty{font-size:12px}#relay-dialog .chat-log .chat-name{font-size:11px}
#help-dialog .dialog-close{position:sticky;top:0;float:right;min-width:44px;min-height:44px;background:var(--paper-light);z-index:3}#help-dialog .help-sound-button{min-height:44px;padding:7px 12px;margin:0 0 12px;background:#e7eddd;border-radius:6px;font-size:14px}#help-dialog .help-sound-button span{font-size:12px}
.relay-explanation{font-size:12px;line-height:1.8;color:#7b8c70}.relay-explanation summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#466d4b;font-weight:600}.relay-explanation summary:after{content:'＋';margin-left:auto;padding-left:10px}.relay-explanation[open] summary:after{content:'−'}.relay-explanation p{font-size:12px;line-height:1.8}
@media(pointer:coarse){.arcade-layout{width:min(100%,calc((100svh - 430px)*1.6 + 2px))}}
@media(max-width:860px){
  .page-shell{max-width:none;padding:env(safe-area-inset-top,0px) 8px env(safe-area-inset-bottom,0px)}
  .site-header{height:32px;min-height:32px}.brand{font-size:11px;gap:5px}.brand-star{font-size:22px}.brand-divider,.brand-lab{display:none}.build-tag{font-size:7px;letter-spacing:.6px}
  .game-heading{height:38px;padding:4px 2px}.game-heading h1{font-size:25px;line-height:1.1;margin:0;letter-spacing:-1.3px}.title-star{font-size:19px;margin-left:8px}.lead{display:none}
  .play-toolbar{height:50px;min-height:50px;padding:0 0 4px;gap:5px}.mode-switch button{padding:7px 6px;font-size:10px;gap:0}.mode-switch button span{display:none}.toolbar-actions{gap:4px}
  .toolbar-actions .icon-button{min-width:44px;min-height:44px}#relay-open-btn{min-width:56px;font-size:10px}#pause-btn{font-size:11px}
  .arcade-layout{width:100%;margin:0}.station-board{height:44px;padding:0 11px;gap:8px;border-radius:10px 10px 0 0}.station-name{max-width:74px;gap:5px}.station-name #station-label{font-size:14px}.station-name #station-count{font-size:9px}
  .hud-numbers{gap:12px}.hud-numbers>span{font-size:9px;gap:3px}.hud-numbers strong{font-size:18px}.turn-clock{min-width:84px;padding-left:9px;column-gap:5px}.turn-clock>span{font-size:9px}.turn-clock>strong{font-size:22px}
  .game-bottom-bar{height:30px;min-height:30px;padding:3px 9px;gap:8px}.fuel{font-size:9px;gap:5px}.fuel-track{width:32px}.fuel strong{font-size:9px}.cargo-label{font-size:9px}.restart-link{font-size:10px;min-height:24px}
  .touch-controls{display:flex;padding:6px 7px 0;gap:8px}.keyboard-legend{display:none}
  .dispatch-card{width:min(280px,calc(100% - 20px));padding:10px 16px;transform:none}.dispatch-card .dispatch-kicker,.dispatch-card .ticket-number{display:none}.dispatch-card h2{font-size:17px;line-height:1.2;margin:0 0 5px}.dispatch-card p{font-size:11px;line-height:1.4;margin:0 0 6px}.dispatch-card .primary-button,.dispatch-card .text-button{min-height:44px;font-size:11px}.dispatch-card .primary-button{padding:8px 11px}.dispatch-card .text-button{display:block;width:100%;padding:4px 8px}
  .tutorial-note{left:8px;right:8px;bottom:8px;padding:8px 10px;gap:8px}.tutorial-note strong{font-size:11px}.tutorial-note p{font-size:10px;margin-top:3px}.tutorial-note>button{min-width:30px;min-height:36px}
  footer{min-height:24px;padding:3px 0;font-size:9px}.page-shell footer>span{display:none}
}
.audience-controls{padding:10px 2px 0}.audience-actions{display:flex;gap:6px;flex-wrap:wrap}.audience-actions button{min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper-light);font-size:12px;font-weight:700}.audience-actions button[aria-pressed=true]{background:var(--ink);color:var(--paper-light);border-color:var(--ink)}.audience-actions button:disabled{opacity:.55}.audience-controls p{font-size:11px;line-height:1.5;color:#6d7c72;margin:7px 0 0}.audience-target{cursor:crosshair;touch-action:none}.audience-target:focus-visible{outline-offset:-4px}
@media(max-width:540px){.audience-actions{flex-wrap:nowrap}.audience-actions button{flex:1;min-width:0;padding:8px 6px;font-size:11px}.audience-controls{padding-top:6px}.audience-controls p{font-size:10px}}
@media(max-width:360px){
  .mode-switch button{font-size:10px;padding:7px 5px}.toolbar-actions{gap:3px}.toolbar-actions .icon-button{min-width:44px}#relay-open-btn{min-width:53px;font-size:10px}
  .station-board{padding:0 9px;gap:7px}.station-name{max-width:64px}.station-name #station-label{font-size:13px}.hud-numbers{gap:9px}.hud-numbers strong{font-size:16px}.turn-clock{min-width:80px;padding-left:7px}.turn-clock>strong{font-size:20px}
  .touch-controls{padding-left:5px;padding-right:5px;gap:8px}.touch-actions{gap:8px}.touch-actions button{width:52px;height:52px}.touch-actions #touch-interact{width:62px;height:62px}
  .dispatch-card{width:calc(100% - 18px);max-width:270px;padding:8px 14px}.dispatch-card h2{font-size:16px;margin-bottom:4px}.dispatch-card p{font-size:10px;line-height:1.4;margin-bottom:5px}.dispatch-card .primary-button,.dispatch-card .text-button{min-height:44px}
}
@media(orientation:landscape) and (max-height:650px){
  .page-shell{max-width:none;padding:env(safe-area-inset-top,0px) max(8px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(8px,env(safe-area-inset-left,0px))}
  .site-header{height:28px;min-height:28px}.brand{font-size:10px;gap:5px}.brand-star{font-size:20px}.brand-divider,.brand-lab{display:none}.build-tag{font-size:7px}
  .game-heading{position:absolute;top:4px;left:50%;transform:translateX(-50%);height:auto;padding:0;pointer-events:none}.game-heading h1{font-size:19px;line-height:1.1;margin:0;letter-spacing:-1px}.game-heading .title-star{font-size:15px;margin-left:6px}.game-heading .lead{display:none}
  .play-toolbar{height:46px;min-height:46px;padding:0 0 2px;gap:7px}.mode-switch{padding:1px}.mode-switch button{min-height:44px;padding:6px 10px;font-size:10px}.mode-switch button span{display:none}.toolbar-actions .icon-button{min-height:44px}.toolbar-actions{gap:5px}
  .arcade-layout{width:100%;max-width:none;margin:0;--stage-width:min(calc((100svh - 144px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*1.6),calc(100vw - 260px))}
  .game-column{position:relative;width:calc(var(--stage-width) + 238px);max-width:100%;margin:0 auto;padding:0 88px 0 150px}
  .station-board{height:36px;padding:0 10px;gap:7px;border-radius:8px 8px 0 0}.station-name{max-width:74px;gap:5px}.station-name #station-label{font-size:13px}.station-name #station-count{font-size:9px}.hud-numbers{gap:12px}.hud-numbers>span{font-size:9px;gap:2px}.hud-numbers strong{font-size:17px}.turn-clock{min-width:80px;padding-left:8px;column-gap:5px}.turn-clock>strong{font-size:21px}.turn-clock>span{font-size:9px}.clock-track{margin-top:3px}
  .game-bottom-bar{height:28px;min-height:28px;padding:3px 8px;gap:8px}.fuel{font-size:9px;gap:4px}.fuel-track{width:30px}.fuel strong{font-size:9px}.cargo-label{font-size:9px}.restart-link{font-size:10px;min-height:22px}
  .touch-controls{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;gap:0;padding:0;pointer-events:none}.direction-pad{pointer-events:auto;grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px;gap:3px}.touch-actions{pointer-events:auto;width:76px;flex-direction:column;gap:12px}.touch-actions button{width:56px;height:56px}.touch-actions #touch-interact{width:68px;height:68px}.keyboard-legend{display:none}
  .stage-corner{inset:9px 10px auto;font-size:6px}.stage-corner>span:last-child{font-size:7px}.dispatch-card{width:min(280px,calc(100% - 20px));padding:9px 15px;transform:none}.dispatch-card .dispatch-kicker,.dispatch-card .ticket-number{display:none}.dispatch-card h2{font-size:17px;margin:0 0 5px;line-height:1.2}.dispatch-card p{font-size:11px;margin:0 0 6px;line-height:1.4}.dispatch-card .primary-button,.dispatch-card .text-button{min-height:44px;font-size:11px}.dispatch-card .primary-button{padding:8px 11px}.dispatch-card .text-button{display:block;width:100%;padding:4px 8px}
  .tutorial-note{left:8px;right:8px;bottom:8px;padding:8px 10px;gap:8px}.tutorial-note strong{font-size:11px}.tutorial-note p{font-size:10px;line-height:1.4;margin-top:3px}.tutorial-note>button{min-width:30px;min-height:36px}.page-shell footer{display:none}
}
