:root{color-scheme:light;--ink:#233e30;--paper:#f6f3e8;--surface:#fffdf3;--muted:#5c6b5b;--line:#a7af96;--dark:#294734;--yellow:#f8c453;--gold:#e2a74a;--mint:#85a98a;--shadow:#c9cdb7;font-family:"DM Sans","PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:#f5f3e9}
#game-surface[hidden]{display:none!important}#game-surface{filter:brightness(var(--scene-brightness,1))}.loading-cover{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#294734;background:#ecf1df}.loading-cover h1{font-size:clamp(42px,9vw,80px);letter-spacing:.16em}.loading-cover p{font-size:16px;color:#5c6b5b}.topbar .brand-home{height:auto;min-height:46px;border:0;background:none;box-shadow:none;padding:0;text-align:left;border-radius:4px}.topbar .brand-home:hover{background:#e8edda}.settings-entry svg{width:20px;height:20px}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background-image:radial-gradient(#929b7c32 .75px,transparent .9px);background-size:6px 6px}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid #cc782c;outline-offset:3px}button:disabled{cursor:default}h1,h2,p{margin:0}svg{width:1.17em;height:1.17em;display:block;flex-shrink:0}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}.topbar{height:72px;background:#faf8ee;border-bottom:2px solid var(--dark)}.nav-wrap,.shell{max-width:1080px;margin:auto;padding:0 32px}.nav-wrap{height:100%;display:flex;align-items:center;justify-content:space-between}.brand,.brand>div,.topbar nav,.nav-btn,.wallet{display:flex;align-items:center}.brand{gap:10px}.brand canvas{image-rendering:pixelated;width:53px;height:44px}.brand>div{flex-direction:column;align-items:flex-start;gap:1px}.brand strong{font-size:22px;font-weight:900;line-height:1.2;letter-spacing:.08em}.brand small,.tagline,.axis-x,.axis-y,.grid-size,.level-tag,.instrument-label strong,.wallet b,.phase,.dialog-index{font-family:"Courier Prime","SFMono-Regular",Consolas,monospace;font-weight:700}.brand small{font-size:10px;line-height:1.3;letter-spacing:.09em;color:#586951}.topbar nav{gap:8px}.icon-btn,.nav-btn,.wallet,.reset-button{display:inline-flex;align-items:center;justify-content:center;background:var(--surface);border:1.5px solid #667760;border-radius:6px}.topbar button{height:36px;box-shadow:0 2px 0 #dadccb}.icon-btn{width:37px;padding:0}.nav-btn{gap:7px;padding:0 11px;font-size:14px;font-weight:700}.wallet{border-color:#baaa74;background:#fcf1c9;gap:8px;padding:0 11px;height:32px;margin-right:8px}.wallet b{font-size:17px}.wallet svg{width:19px;height:19px}.nav-btn:hover,.icon-btn:hover,.reset-button:hover,.hint-button:hover{background:#ecefdc}
.shell{padding-bottom:32px}.hero{height:145px;position:relative;isolation:isolate;display:flex;align-items:center;overflow:hidden;margin:0 0 18px;border-bottom:1px solid #83947b77}.highlands{position:absolute;z-index:-1;bottom:0;right:0;width:66%;height:100%;object-fit:fill;image-rendering:pixelated;pointer-events:none}.hero-text{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start}.eyebrow,.route{display:flex;align-items:center}.eyebrow{gap:10px}.level-tag{background:#e0ead1;border:1px solid #91a27d;border-radius:3px;font-size:12px;line-height:1.1;letter-spacing:.04em;padding:4px 8px}.tagline{color:#65745f;font-size:13px;letter-spacing:.1em}h1{font-size:clamp(34px,3.4vw,47px);letter-spacing:.045em;font-weight:900;line-height:1.28;margin:4px 0 7px}.route{gap:6px;font-size:14px;font-weight:650;color:#596b56}.route-origin{width:10px;height:10px;border:2px solid #447151;border-radius:50%;outline:1px solid #8fa284;outline-offset:2px;margin-left:3px;margin-right:3px}.route-dash{width:30px;border-top:2px dotted #9aa285;margin:0 4px}.route svg{width:15px;height:15px;color:#bd673d}
/* Pinewood dispatch desk */
.shell,.nav-wrap{max-width:1140px}
.topbar{height:68px;box-shadow:0 3px 0 #d7ddc7}
.hero{height:146px;margin-bottom:22px;border-color:#a3b093}
.highlands{width:65%;max-width:710px;height:100%;object-fit:contain;object-position:right bottom}
.hero h1{font-size:clamp(36px,4vw,49px);line-height:1.18;letter-spacing:.035em}
.level-tag{background:#dde9cf;border-color:#7f9779;color:#35533d}
.game-layout{display:grid;grid-template-columns:minmax(0,1.68fr) minmax(274px,1fr);gap:22px;align-items:start}
.sidebar{display:grid;min-width:0;gap:17px}
.panel{border:2px solid var(--dark);border-radius:9px;background:var(--surface);box-shadow:3px 4px 0 #b8c2aa;overflow:hidden}
.panel-heading,.note-heading,.panel-heading h2,.commands,.instrument-label,.hint-button,.legend,.legend>span,.phase{display:flex;align-items:center}
.panel-heading{min-height:46px;padding:7px 17px;justify-content:space-between;border-bottom:1px solid #8e9e7f;background:#e8edda}
h2{font-size:18px;font-weight:850;letter-spacing:.045em}
.panel-heading h2,.note-heading{gap:8px}
.board-heading h2 svg{width:17px;height:17px}
.phase{gap:6px;border:1px solid #a2ad8e;background:#f1f4e5;padding:3px 8px;border-radius:4px;color:#4a6543;font-size:12px;line-height:1.25}
.phase i{height:7px;width:7px;background:#75934f}.phase.running{background:#f8e6b8;color:#895a1e;border-color:#ba9860}.phase.running i{background:#c88226}
.board-inset{
  container-type:inline-size;
  background:#f7f6e8;
  background-image:radial-gradient(#91967230 .75px,transparent .85px);
  background-size:5px 5px;padding:18px 12px 22px;display:flex;justify-content:center
}
.board-axes{
  --side:clamp(53px,10.9cqi,74px);--dock:clamp(42px,9.4cqi,66px);
  --tile:clamp(45px,calc((100cqi - var(--side) - var(--dock) - 34px)/4),108px);
  display:grid;align-items:stretch;justify-content:center;
  grid-template-columns:var(--side) 18px repeat(4,var(--tile)) var(--dock);
  grid-template-rows:20px repeat(4,var(--tile))
}
.axis-x,.axis-y{display:grid;color:#5a6e51;font-size:12px;text-align:center;line-height:1;user-select:none}
.axis-x{grid-column:3/7;grid-row:1;grid-template-columns:repeat(4,1fr);align-items:start}
.axis-y{grid-column:2;grid-row:2/6;grid-template-rows:repeat(4,1fr);align-items:center}
.left-instruments{grid-column:1;grid-row:2/6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(10px,2vw,22px)}
.toll,.side-gauge{width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;line-height:1.15;color:var(--ink)}
.toll{background:#faf0d2;border:1px solid #9e916b;border-radius:5px;box-shadow:0 2px 0 #c8bd97;padding:7px 1px 8px}
.toll:hover{background:#fcf0cc}.toll:active{transform:translateY(1px);box-shadow:none}
.booth-art{display:block;width:clamp(32px,5vw,48px);height:auto}
.booth-arm{transform:translateY(0);transition:transform .3s ease-in}
.toll.is-down{background:#f8e4ca;border-color:#bc795c}
.toll.is-down .booth-arm{transform:translateY(16px)}
#toll-state{font-size:10px;line-height:1.2;color:#56714e;font-weight:700}
.toll.is-down #toll-state{color:#9d432d}
.station-count{font-size:11px;color:#5e4a2a;white-space:nowrap}
.trip-toll{white-space:nowrap;color:#64542f}
.trip-toll b{font-variant-numeric:tabular-nums}
.toll-locations{padding:0;list-style:none;border-top:1px solid #cecab1}
.toll-locations li{display:flex;align-items:center;gap:9px;min-height:38px;border-bottom:1px solid #cecab1}
.toll-locations svg{width:18px}
.route-arrow[data-fare]::after{content:attr(data-fare);position:absolute;bottom:-7px;right:-7px;display:grid;place-items:center;min-width:17px;height:17px;border:1.5px solid #744d23;background:#fff0a9;color:#593917;border-radius:50%;font:800 11px/1 system-ui;pointer-events:none}
.side-label{font-size:12px;font-weight:700;white-space:nowrap;letter-spacing:.05em}
.readout{font:800 clamp(19px,2.9vw,26px)/1.05 "Courier Prime",Consolas,monospace;font-variant-numeric:tabular-nums}
.side-gauge{position:relative;padding:10px 0 8px;gap:5px;border:1px solid #a8b598;border-radius:5px;background:#e6ead6;box-shadow:0 2px 0 #c5ccb6}
.side-gauge .readout{background:#3a5444;border:1px solid #263b2c;color:#eff1d2;padding:2px 7px;border-radius:2px;font:700 21px/1 "Courier Prime",Consolas,monospace}
.side-gauge .side-label{color:#4e634a}
.battery-shape{position:relative;width:clamp(31px,4.6vw,42px);height:20px;border:2px solid #783f32;background:#f6dfbf;padding:2px;margin:2px 3px 1px 0;border-radius:2px}
.battery-shape:after{content:"";position:absolute;top:4px;bottom:4px;width:3px;background:#783f32;right:-5px}
#fuel-meter{display:flex;height:100%;background:#e6b9a1;overflow:hidden}
#fuel-meter i{flex:1;background:transparent}
#fuel-meter i.filled{background:#d36851}
.board-square{grid-column:3/7;grid-row:2/6;position:relative;width:100%;height:100%;isolation:isolate;z-index:1;box-shadow:0 0 0 2px #42563b,0 0 0 4px #a8ae8f,2px 3px 0 4px #859176;background:#aec37c;touch-action:manipulation}
#board,#cell-grid,#mechanisms,#route-options{position:absolute;inset:0;width:100%;height:100%}
#board{display:block;image-rendering:pixelated}
#cell-grid{z-index:1;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr)}
.cell{border:0;background:transparent;padding:0;min-height:0;min-width:0;cursor:default;border-radius:0;touch-action:manipulation}
.cell.actionable{cursor:pointer}.cell:focus-visible{outline:3px dashed #bc6833;outline-offset:-5px}
#mechanisms{z-index:2;pointer-events:none}
#route-options{z-index:3;pointer-events:none}
.route-arrow{
  position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);
  pointer-events:auto;display:grid;place-items:center;width:clamp(32px,9vw,40px);height:clamp(32px,9vw,40px);
  padding:0;border:2px solid #334b3a;border-radius:6px;
  background:#f8c65c;color:#263f31;box-shadow:0 2px 0 #42563b;
  font:900 clamp(18px,2.3vw,22px)/1 system-ui,sans-serif;touch-action:manipulation
}
.route-arrow:hover{background:#ffe296}
.route-arrow.blocked-route{background:#f1c6ad;color:#732e27;border-color:#8d4a3b}
.route-arrow.blocked-route::after{background:#973c31;color:#fff8ea;border-color:#71382e}
#equipment-status.leaking{color:#963f34;font-weight:750}
.route-arrow.is-hinted{outline:3px dashed #426a47;outline-offset:2px}
.route-arrow:active{transform:translate(-50%,calc(-50% + 1px));box-shadow:0 1px 0 #42563b}
.route-arrow:focus-visible{outline:3px solid #fff9da;outline-offset:1px;box-shadow:0 0 0 5px #345644}

.lever-control,.edge-barrier{pointer-events:auto;position:absolute;padding:0;border:0;border-radius:2px;background:transparent;cursor:pointer;color:inherit;touch-action:none}
.lever-control{z-index:2}.edge-barrier{z-index:3}
.lever-control:focus-visible,.edge-barrier:focus-visible{outline:2px dashed #9b451f;outline-offset:1px;background:#ffe28635}
.dock{
  grid-column:7;grid-row:2;position:relative;align-self:center;margin-left:0;height:72%;
  border:2px solid #93804e;border-left:0;border-radius:0 5px 5px 0;background:#f8e6a5;
  box-shadow:inset 0 -4px 0 #e4cf8d;display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:4px;color:#6c572c;isolation:isolate
}
.dock:before{content:"";position:absolute;top:calc(50% - 5px);left:0;width:15%;height:7px;border-block:2px solid #867c5e}
.dock-mark{width:22px;height:20px;position:relative}
.flag-pole{position:absolute;top:0;left:3px;width:3px;height:17px;background:#745a38}
.flag-pole:before{content:"";position:absolute;left:2px;top:0;width:14px;height:9px;background:conic-gradient(#b67444 25%,#fcf4ce 0 50%,#b67444 0 75%,#fcf4ce 0) 0 0/8px 8px;box-shadow:0 1px #987a4e}
.flag-pole:after{content:"";position:absolute;bottom:-1px;left:-3px;width:9px;height:2px;background:#8f7b50}
.dock-text{font-size:12px;font-weight:750;line-height:1}
#dock-train{width:min(80%,48px);height:auto;image-rendering:pixelated}
.dock:has(#dock-train:not([hidden])) .dock-mark{display:none}
.board-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 15px;background:#f1f0df;border-top:1px solid #c3c8b0;color:#54664f;font-size:13px;font-weight:650}
.board-caption>span:first-child{display:flex;align-items:center;gap:7px}
.grid-size{color:#67775e;white-space:nowrap}
.console-heading{background:#2e503c;color:#f7f5db;border-color:#203d2c;box-shadow:inset 0 2px 0 #53725a}
.console-heading h2 svg{color:#f0c56e}



.drive-console{padding:17px;background:#f4f2df}
.patience{width:100%;padding:12px 12px 10px;border:1px solid #849579;border-radius:5px;background:#e0e7d1;box-shadow:inset 0 2px 0 #c6d1b7,0 1px 0 #fffbed}
.instrument-label{gap:7px;color:#3c5844;white-space:nowrap;font-size:14px;font-weight:750;line-height:1}
.instrument-label strong{font:750 25px/1 "Courier Prime",Consolas,monospace;margin-left:auto;color:#304e3a}
.instrument-label small{font:600 12px/1 system-ui;color:#5e6f59}
#time-meter{display:grid;grid-template-columns:repeat(16,1fr);gap:2px;border:1px solid #7d8b71;background:#c5d1b6;padding:3px;margin-top:8px;border-radius:2px}
#time-meter i{height:8px;background:#d6ddc5}#time-meter i.filled{background:#618566;box-shadow:inset 0 2px 0 #86a584}#time-meter.low i.filled{background:#c67550;box-shadow:inset 0 2px 0 #de956b}
.commands{gap:9px;margin-top:15px}
.primary,.reset-button,.hint-button,.choice,.dialog-secondary,.line-entry{transition:background .12s,transform .12s,box-shadow .12s}
.primary,.reset-button,.hint-button{min-height:44px;border:2px solid var(--dark);border-radius:5px;box-shadow:0 2px 0 var(--dark);font-weight:800}
.primary,.reset-button,.hint-button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.primary{background:var(--yellow);color:#2e3b26;padding:8px 14px;font-size:17px;letter-spacing:.045em}
.commands .primary{flex:1;min-width:0;background:#f7c45b;box-shadow:inset 0 2px 0 #ffe29a,0 3px 0 #364b33;min-height:48px}
.commands .primary:hover{background:#ffd577}
.commands .primary:active{box-shadow:inset 0 1px 0 #ebae4e}
.commands .reset-button{min-height:48px;width:46px;background:#e8ebd8;border-color:#65775c;box-shadow:inset 0 2px 0 #fbfaed,0 3px 0 #839476}
.primary:hover{background:#ffd570}.primary:active,.reset-button:active,.hint-button:active{transform:translateY(2px);box-shadow:none}
.primary:disabled,.reset-button:disabled,.hint-button:disabled{opacity:.6}
.reset-button,.hint-button{background:#fffdf1;border-color:#748368;box-shadow:0 2px 0 #a5b198}
.reset-button{width:44px;padding:0}
.hint-button{padding:0 12px;font-size:14px}
.reset-button svg,.hint-button svg{width:17px;height:17px}
.feedback{min-height:18px;margin:16px 0 0;padding:12px 1px 0;border-top:1px dashed #aab49a;color:#4e644e;font-size:14px;line-height:1.6}
.feedback.collision{color:#9d3d29;font-weight:750}
.under-train{display:flex;align-items:center;justify-content:center;gap:5px;margin:10px auto 0;background:transparent;border:0;border-bottom:1px dotted #87917a;padding:3px 2px;color:#52664b;font-size:13px}
[hidden]{display:none!important}
.note{position:relative;padding:17px 18px 16px;background:#f7edcb;color:#615637;border-color:#8f805d;box-shadow:3px 4px 0 #c9bfa2}
.note:after{content:"";width:7px;height:7px;position:absolute;right:12px;top:12px;background:#ba9257;border:1px solid #907749;border-radius:50%;box-shadow:inset 1px 1px 0 #dfc386;pointer-events:none}
.note-heading{gap:8px}.note-heading h2{font-size:16px}.note p{font-size:14px;line-height:1.65;margin:8px 0 12px}
.note .hint-button{background:#fff8df;border:1px solid #aa966b;color:#655839;box-shadow:0 2px 0 #c8b78f;border-radius:4px;min-height:34px;padding:4px 10px;font-size:13px}
.note .hint-button:hover{background:#fffbed}
.legend{justify-content:center;gap:15px;color:#576c53;font-size:12px;flex-wrap:wrap;row-gap:5px}
.legend>span{gap:5px}.legend svg{width:15px;height:15px}
.legend-fixed{width:15px;height:9px;display:inline-block;position:relative;border-block:2px solid #6c6957;background:linear-gradient(90deg,transparent 25%,#ac926c 25% 40%,transparent 40% 68%,#ac926c 68% 83%,transparent 83%)}
.legend-fixed:before,.legend-fixed:after{content:"";position:absolute;border:1px solid #5b5b4a;top:-3px;width:3px;height:3px;border-radius:50%;background:#b8b49c}.legend-fixed:before{left:0}.legend-fixed:after{right:0}
.legend-barrier{width:15px;height:8px;border:1px solid #8e3c31;background:repeating-linear-gradient(125deg,#ce4e3f 0 4px,#f8e8bb 4px 7px)}
dialog{max-width:min(440px,calc(100vw - 28px));width:440px;border:2px solid var(--dark);padding:0;border-radius:10px;color:var(--ink);background:#fffbee;box-shadow:5px 6px 0 #273c2bb3;max-height:87dvh}dialog::backdrop{background:#1b3025a8}.dialog-inner{position:relative;padding:25px}.dialog-close{position:absolute;right:12px;top:12px;height:31px;width:31px}.dialog-index{display:inline-flex;background:#e0ebce;padding:3px 7px;border-radius:3px;color:#526847;font-size:12px;margin-bottom:7px}.dialog-inner h2{font-size:25px;padding-right:22px;margin:0 0 8px}.dialog-inner p{line-height:1.7;font-size:15px;color:#53604e}.dialog-inner .primary{width:100%;margin-top:17px}.dialog-inner h3{font-size:16px;margin:18px 0 8px}.help-list{display:grid;gap:11px;margin:15px 0 0;padding:0;list-style:none}.help-list li{display:grid;grid-template-columns:22px 1fr;gap:9px;color:#57614d;font-size:14px;line-height:1.55}.help-list svg{margin-top:2px}.help-list strong{color:var(--ink);display:block}.line-list,.choices{display:grid;gap:7px;margin-top:15px}.line-entry,.choice,.dialog-secondary{border:1px solid #a7b096;border-radius:5px;background:#f3f3e4;padding:9px 11px;text-align:left;display:flex;align-items:center;gap:10px;font-size:15px}.line-entry:disabled{opacity:.55}.line-entry.active,.choice.active{border:2px solid #527144;background:#e5edcf;padding:8px 10px}.line-entry em{margin-left:auto;font-style:normal;color:#6a755d;font-size:13px}.choice span{display:flex;flex-direction:column;gap:1px}.choice small{font-size:13px;color:#606a52}.choice .choice-mark{width:12px;height:12px;border-radius:50%;border:1px solid #829375}.choice.active .choice-mark{border:3px solid #ecf1d7;background:#4f7241;outline:1px solid #58764c}.choice svg{margin:0 2px}.hard-option{display:flex;align-items:center;gap:7px;font-size:13px;margin-top:15px;color:#646343}.hard-option input{accent-color:#486b40;width:16px;height:16px}.result-strip{display:flex;gap:16px;font-size:14px;font-weight:700;padding:10px 0;border-block:1px dashed #b7bc9f;margin-top:12px}.result-strip span{display:flex;align-items:center;gap:5px}

@media (min-width:841px) and (max-width:1000px){
  .shell,.nav-wrap{padding-inline:20px}
  .game-layout{grid-template-columns:minmax(0,1.65fr) minmax(256px,1fr);gap:16px}
  .board-inset{padding-inline:8px}.hero{height:130px}
  .drive-console,.note{padding:14px}.legend{gap:8px}
}
@media(max-width:840px){
  .shell,.nav-wrap{padding-inline:16px}
  .game-layout{display:block}.sidebar{margin-top:13px;grid-template-columns:1fr 1fr;gap:13px;align-items:start}
  .sidebar .legend{grid-column:span 2}
  .hero{height:111px;margin-bottom:15px}.highlands{width:63%}
  .board-axes{--tile:clamp(54px,calc((100cqi - var(--side) - var(--dock) - 32px)/4),91px)}
}
@media(max-width:650px){
  .shell,.nav-wrap{padding-inline:12px}.shell{padding-bottom:22px}
  .topbar{height:52px}.brand{gap:5px}.brand canvas{width:40px;height:34px}.brand strong{font-size:17px}.brand small{font-size:8px}
  .topbar nav{gap:5px}.topbar button{height:32px}.nav-btn{padding:0 7px;gap:4px;font-size:12px}.icon-btn{width:32px}
  .wallet{padding:0 6px;margin-right:0;height:29px;gap:4px}.wallet b{font-size:14px}.wallet svg{width:15px}
  .hero{height:94px;margin-bottom:11px}.highlands{width:59%;height:89%;object-fit:cover;object-position:74% bottom}.hero h1{font-size:30px;line-height:1.17;margin:4px 0 5px}.level-tag{font-size:11px;padding:3px 6px}.tagline{font-size:11px}.route{font-size:12px;gap:4px}.route-dash{width:16px}
  .board-axes{--tile:clamp(42px,calc((100vw - 135px)/4),76px);--side:48px;--dock:39px;grid-template-columns:var(--side) 12px repeat(4,var(--tile)) var(--dock);grid-template-rows:15px repeat(4,var(--tile))}
  .board-inset{padding:8px 4px 10px}.panel{border-radius:7px;box-shadow:2px 3px 0 var(--shadow)}.panel-heading{min-height:34px;padding:4px 10px}.panel-heading h2{font-size:15px}.phase{font-size:11px;padding:2px 6px}.axis-y,.axis-x{font-size:10px}
  .left-instruments{gap:8px}.toll{padding:2px 1px 4px}.side-label{font-size:11px}.booth-art{width:31px}.readout{font-size:19px}.side-gauge{padding:6px 0;gap:3px}.side-gauge .readout{font-size:16px;padding:1px 5px}.battery-shape{height:16px;width:28px}.battery-shape:after{top:3px;bottom:3px}
  .dock{gap:2px;height:74%;border-radius:0 3px 3px 0;box-shadow:inset 0 -2px 0 #e4cf8d}.dock-text{font-size:10px}.dock-mark{width:16px;height:15px}.flag-pole{height:12px;width:2px}.flag-pole:before{width:11px;height:6px;background-size:6px 6px}
  .board-square{box-shadow:0 0 0 2px #42563b,0 0 0 3px #a8ae8f}.board-caption{font-size:12px;padding:6px 10px}
  .sidebar{display:grid;grid-template-columns:1fr;gap:11px;margin-top:11px}.sidebar .legend{grid-column:auto}
  .drive-console{display:grid;grid-template-columns:minmax(88px,.76fr) minmax(0,1.3fr);align-items:center;gap:7px;padding:9px 10px}
  .patience{width:100%;padding:5px 7px}.instrument-label{font-size:12px;gap:4px}.instrument-label strong{font-size:17px}.instrument-label small{font-size:10px}#time-meter{gap:1px;margin-top:4px;padding:2px}#time-meter i{height:4px}
  .commands{gap:6px;margin:0}.commands .primary{padding:6px 4px;font-size:15px;min-height:43px;white-space:nowrap}.commands .reset-button{width:39px;min-height:43px}
  .feedback,.under-train{grid-column:1/-1}.feedback{font-size:12px;min-height:17px;margin:0;padding:6px 0 0}.under-train{margin-top:2px}
  .note{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:10px 12px}
  .note:after{display:none}.note-heading h2{font-size:14px}.note p{grid-column:1/-1;grid-row:2;margin:0;font-size:13px}.note .hint-button{grid-row:1;grid-column:2;min-height:30px;font-size:12px}
  .legend{gap:13px}.dialog-inner{padding:20px}
}
@media(max-width:375px){
  .shell,.nav-wrap{padding-inline:8px}.topbar nav{gap:4px}.brand small{display:none}.nav-btn{padding:0 5px}
  .board-axes{--tile:clamp(38px,calc((100vw - 124px)/4),63px)}
  .drive-console{grid-template-columns:minmax(84px,.68fr) minmax(0,1.3fr);padding-inline:8px}.commands{gap:4px}
}
@media(max-width:325px){.nav-btn span:last-child{display:none}.nav-btn{width:30px}.commands .reset-button{width:34px}.instrument-label>svg{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.lever-control.is-hinted,.edge-barrier.is-hinted,.dock.is-hinted{outline:2px dashed #9b6b22;outline-offset:-1px;background-color:#ffde7650}

.shop-nav-label{font-size:14px;font-weight:800;border-right:1px solid #c2ad78;padding-right:7px;line-height:1.1}
.topbar .wallet:hover{background:#f7e3a7}
#equipment-status{grid-column:1/-1;margin-top:10px;font-size:12px;line-height:1.6;color:#425d46}
#equipment-status:empty{display:none}
.legend-zone{display:inline-block;width:15px;height:11px;background:repeating-linear-gradient(135deg,#f5ded0 0 3px,#dca595 3px 4px);border:1px dashed #b86a5b}
.legend-energy,.legend-spikes{display:inline-block;width:15px;height:13px}
.legend-energy{background:#caa13e;clip-path:polygon(48% 0,95% 0,60% 40%,86% 40%,21% 100%,37% 57%,10% 57%)}
.legend-spikes{background:#866163;clip-path:polygon(0 100%,23% 23%,40% 76%,62% 2%,80% 69%,93% 35%,100% 100%)}
dialog[data-view="shop"]{width:510px;max-width:min(510px,calc(100vw - 22px))}
.rail-shop .shop-account{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap;margin:12px 0 10px;padding:9px 12px;border:1px solid #91a081;border-radius:4px;background:#e6ecd5;color:#3e5b42;font-size:14px}
.shop-account strong{font:700 20px/1 Consolas,monospace;vertical-align:baseline;margin-left:4px}.shop-debt{font-size:12px;color:#95513a}
.shop-stock{display:grid;gap:6px}
.shop-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:11px;align-items:start;border:1px solid #c2c6ab;border-radius:5px;padding:11px 10px;background:#f8f7e9}
.shop-sprite{width:34px;height:34px;background:#ecebd5;border:1px solid #bac0a2;border-radius:4px;display:grid;place-items:center}
.shop-sprite svg{width:25px;height:25px}
.shop-item h3{margin:0 0 4px;font-size:15px;line-height:1.3;color:#324d36}
.shop-item p{font-size:13px;line-height:1.5;color:#5a654e}
.shop-action{display:flex;flex-direction:column;align-items:center;gap:4px;align-self:center;min-width:66px}
.shop-price{font-size:12px;font-weight:650;color:#786032}
.shop-action button{padding:6px 9px;min-height:31px;font-size:13px;font-weight:750;border:1px solid #6c795c;border-radius:4px;box-shadow:0 2px 0 #b6b99b;background:#f6cc72;color:#3c4e32}
.shop-action button:hover:not(:disabled){background:#ffe2a0}
.shop-action button:disabled{border-color:#c6c8b1;background:#ececdd;color:#66725e;box-shadow:none}
.shop-feedback{position:sticky;bottom:0;margin:9px 0 0;padding:8px 10px;background:#e0ebd1;border:1px solid #a1b08b;border-radius:4px;color:#3c593c!important;font-size:13px!important}
.shop-feedback:empty{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;border:0;clip-path:inset(50%)}
@media(max-width:650px){
  .shop-nav-label{font-size:11px;padding-right:4px}
  #equipment-status{margin:0}.legend{column-gap:9px}
  dialog[data-view="shop"] .dialog-inner{padding:17px 12px}
  .rail-shop .shop-account{margin:8px 0}.shop-card{grid-template-columns:24px minmax(0,1fr) auto;gap:7px;padding:8px}
  .shop-sprite{width:24px;height:24px}.shop-sprite svg{height:19px;width:19px}
  .shop-action{min-width:57px}.shop-action button{padding-inline:5px}
}
@media(max-width:350px){
  .shop-nav-label{border:0;padding:0}
  .topbar .wallet{margin:0;padding:0 4px;gap:2px}
  .shop-card{grid-template-columns:minmax(0,1fr) auto}.shop-sprite{display:none}
}

.console-shop{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:5px 13px;background:#f9d277;color:#283e2d;border:1px solid #8a682c;border-radius:5px;box-shadow:inset 0 1px 0 #fff0bc,0 2px 0 #1c382a;font:inherit;font-size:15px;font-weight:800;white-space:nowrap}
.console-shop:hover{background:#ffe19a}.console-shop:active{transform:translateY(1px)}.console-heading .console-shop svg{color:inherit;width:18px;height:18px}
@media(max-width:650px){.console-shop{min-height:36px;padding:4px 10px;font-size:14px}.shop-action button{min-height:36px}}

.tools-row{display:flex;align-items:center;gap:8px;grid-column:1/-1;margin-top:12px}
.hammer-tool{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:4px 9px;border:1px solid #77846b;border-radius:4px;background:#f8f6e5;box-shadow:0 2px 0 #c0c7a8;color:#405440;font-size:13px;font-weight:750}
.hammer-tool svg{width:18px;height:18px}.hammer-tool b,.shop-tabs b{padding:1px 5px;background:#e0e6cc;border-radius:3px;font:700 13px/1.25 Consolas,monospace}
.hammer-tool:hover{background:#f4e7bb}.hammer-tool[aria-pressed="true"]{background:#f6c764;border-color:#835725;color:#503a21;box-shadow:inset 0 0 0 1px #b47935}
.hammer-tool[aria-pressed="true"] b{background:#fbe1a4}.hammer-tool:focus-visible{outline:3px solid #b66c26;outline-offset:2px}
.lever-control{border-radius:22%}
#board-square.hammer-targeting .cell,#board-square.hammer-targeting .edge-barrier{cursor:crosshair}
#board-square.hammer-targeting #route-options,#board-square.hammer-targeting .lever-control,#board-square.hammer-targeting #passenger-marks{visibility:hidden;pointer-events:none}
#board-square.hammer-targeting .edge-barrier:not(:disabled):hover{outline:2px dashed #9c5926;background:#dfac5540}
#passenger-panel:empty{display:none}
.shop-tools{font-size:13px;color:#53664e}
.shop-tabs{display:flex;gap:4px;margin:0 0 10px;padding:3px;background:#e8ead7;border:1px solid #c4c9ad;border-radius:5px}
.shop-tabs button{flex:1;min-height:34px;padding:4px 8px;border:1px solid transparent;border-radius:3px;background:transparent;color:#617057;font-size:14px;font-weight:750}
.shop-tabs button[aria-pressed=true]{background:#fffbed;border-color:#9eaa8e;box-shadow:0 1px 0 #b8c2a8;color:#37503a}
.scrap-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #c2c6ab;border-radius:5px;padding:10px;background:#f8f7e9}
.scrap-row>span{display:grid;gap:4px;font-size:15px}.scrap-row small{font-size:12px;color:#68715b}
.scrap-row button{border:1px solid #7f8a66;border-radius:4px;background:#e5edce;color:#3d543b;padding:6px 9px;font-weight:750;font-size:13px;min-height:36px}
.scrap-row button:disabled{background:#ebece0;color:#68765e;border-color:#c3c9b2}
@media(max-width:650px){.tools-row{margin-top:0}.hammer-tool{min-height:32px;padding:3px 7px}.shop-tabs{margin-bottom:7px}}

dialog[data-view="levels"]{width:510px;max-width:min(510px,calc(100vw - 24px))}
.map-progress{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:6px;margin:12px 0;padding:10px 12px;background:#e8edda;border:1px solid #b3bea0;border-radius:5px;color:#485e43;font-size:14px}
.map-progress b{font-size:13px;font-variant-numeric:tabular-nums}
.map-progress progress{grid-column:1/-1;width:100%;height:6px;appearance:none;border:0;border-radius:2px;overflow:hidden;color:#63825e;background:#cdd6bc}
.map-progress progress::-webkit-progress-bar{background:#cdd6bc}.map-progress progress::-webkit-progress-value{background:#63825e}.map-progress progress::-moz-progress-bar{background:#63825e}
.dialog-inner .map-carrying{margin:-2px 0 8px;color:#795b32;font-size:13px}
.station-map{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:min(52dvh,414px);overflow:auto;overscroll-behavior:contain;padding:3px 5px 4px 3px;scrollbar-color:#aaaF91 #f0f0df}
.station-map:focus-visible{outline:2px dashed #93885e;outline-offset:1px}
.level-stop{display:flex;align-items:center;gap:9px;min-width:0;min-height:55px;padding:7px 8px;text-align:left;line-height:1.23;color:#3e5940;border:1px solid #97a889;background:#f0f3e3;border-radius:5px}
.level-stop:not(:disabled):hover{background:#e4ebce;border-color:#64835e}
.level-stop.is-current{border:2px solid #527247;background:#e1ebce;padding:6px 7px}
.level-stop.is-current:hover{background:#dce8c3}
.level-stop.is-locked{color:#737d69;background:#f0f0e5;border-color:#d1d4bd}
.stop-marker{flex:0 0 28px;text-align:center;line-height:26px;border:1px solid #8f9f7e;border-radius:3px;background:#fbfbec;font-family:Consolas,monospace;font-variant-numeric:tabular-nums}
.is-complete .stop-marker{background:#dce8c8}.is-current .stop-marker{background:#537049;border-color:#425d3a;color:#fbf9df}
.is-locked .stop-marker{background:#e8ebde;border-color:#ccd2bf;color:#75806c}
.stop-detail{min-width:0;display:grid;gap:3px}.stop-detail strong{font-size:14px;overflow-wrap:anywhere}.stop-detail small{font-size:12px}
.is-current .stop-detail small{font-weight:750}.level-stop:focus-visible{outline:2px solid #b06f2f;outline-offset:0}
@media(max-width:410px){dialog[data-view="levels"] .dialog-inner{padding:18px 13px}.station-map{gap:6px;padding:2px}.level-stop{gap:6px;padding:6px;min-height:51px}.level-stop.is-current{padding:5px}.stop-marker{flex-basis:23px;line-height:23px;font-size:13px}.stop-detail strong{font-size:13px}}

.board-heading-tools,.note-actions{display:flex;align-items:center;gap:7px}
.practice-exit,.practice-link{padding:4px 9px;border:1px solid #929c7d;border-radius:4px;background:#f6f7e7;color:#40553c;font-size:13px;font-weight:700}
.practice-exit{min-height:31px}.practice-link{min-height:34px;box-shadow:0 2px 0 #c8b78f;background:#fff8df;border-color:#aa966b;color:#655839}
.practice-exit:hover,.practice-link:hover{background:#edf1d7}
#terrain-status{padding:7px 14px;border-top:1px solid #c4cdb4;background:#eaf0dd;color:#4b6046;font-size:13px;line-height:1.5}
#terrain-status:empty{display:none}
#terrain-status[data-theme="ice"]{background:#e2eff0;color:#305f69;border-color:#aac4c6}
#terrain-status[data-theme="lava"]{background:#f3e2d5;color:#834c35;border-color:#cfaf94}
#terrain-status.is-warning{border-left:4px solid #b46e29;background:#f7e6bc;color:#744b24;font-weight:700}
#terrain-status.is-warning[data-theme="lava"]{border-left-color:#a7472a;background:#f7d8c3;color:#843b25}
.map-practice{display:flex;align-items:center;gap:10px;width:100%;margin:12px 0 0;border:1px solid #8ca48d;border-radius:5px;padding:8px 11px;text-align:left;background:#e2ebe0;color:#38573e;box-shadow:0 1px 0 #b9c6b1}
.map-practice:hover{background:#d6e5d5}.map-practice>svg{width:19px;height:19px}.map-practice>span{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex:1}
.map-practice strong{font-size:15px}.map-practice small{font-size:12px;color:#566a56}.map-practice+.map-progress{margin-top:8px}
.map-utilities{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.map-utilities .map-practice{min-width:0}.map-utilities .map-practice>span{flex-wrap:wrap;gap:2px 8px}
.redeem-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:18px 0 8px}.redeem-form label{grid-column:1/-1;font-size:15px;font-weight:750}.redeem-form input{width:100%;min-width:0;min-height:46px;padding:9px 12px;border:2px solid #879d80;border-radius:5px;background:#fffef4;color:#294734;font:600 20px/1.2 "Courier Prime",monospace;letter-spacing:.12em}.redeem-form input::placeholder{font:400 15px/1.2 system-ui;letter-spacing:0}.redeem-form input:focus-visible{outline:3px solid #e2b85d;outline-offset:2px}.redeem-form input[aria-invalid="true"]{border-color:#b86a50}.redeem-status{min-height:24px;margin-block:10px!important;font-size:15px!important;line-height:1.65!important}
.map-terrain{display:inline-flex;border-radius:3px;padding:1px 4px;background:#e0e8d2;color:#4c6043;font-size:11px;line-height:1.2;white-space:nowrap}
.map-terrain[data-terrain="ice"]{background:#dbe9eb;color:#385c65}.map-terrain[data-terrain="lava"]{background:#efddcf;color:#815135}
.stop-detail small{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
@media(max-width:650px){
  .note-actions{grid-column:2;grid-row:1;justify-self:end;gap:5px}.note-actions .hint-button,.practice-link{min-height:30px;font-size:12px;padding:4px 7px}
  #terrain-status{padding:6px 9px;font-size:12px}.practice-exit{font-size:12px;min-height:27px;padding:3px 7px}
}

.challenge-entry{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:.45rem;padding:.52rem .9rem;border:2px solid #344c3b;border-radius:5px;background:#f1ca77;box-shadow:0 3px 0 #536348;color:#304435;text-decoration:none;font-weight:800;font-size:15px}
.challenge-entry:hover,.challenge-entry:focus-visible{background:#ffdc92;color:#223f33}
@media(max-width:640px){.challenge-entry{right:3px;bottom:8px;padding:.32rem .52rem;font-size:13px}}

/* Lunar operations share control positions with the Earth railway. */
.moon-panorama{display:none}
body[data-world="moon"]{
  --dark:#35485e;--shadow:#bcc5ca;
  background-color:#e8e9e4;background-image:radial-gradient(#8e9aab38 .7px,transparent .9px)
}
body[data-world="moon"] .hero{
  background:linear-gradient(112deg,#263246 0%,#29364c 44%,#243147 85%);
  color:#f2f2dd;border:2px solid #42546c;border-radius:7px;box-shadow:2px 3px #b5bfc4;
  margin-top:12px;padding-inline:clamp(12px,2vw,23px)
}
body[data-world="moon"] .hero h1{color:#f5f2dd}
body[data-world="moon"] .hero .tagline,body[data-world="moon"] .hero .route{color:#c1cfd0}
body[data-world="moon"] .hero .level-tag{background:#42566a;border-color:#7993a4;color:#f2eed5}
body[data-world="moon"] .route-origin{border-color:#c9cf9d;outline-color:#819b9b}
body[data-world="moon"] .route-dash{border-color:#8f9da9}
body[data-world="moon"] .route svg{color:#edb87f}
body[data-world="moon"] .hero .highlands{display:none}
body[data-world="moon"] .moon-panorama{
  display:block;position:absolute;z-index:-1;bottom:0;right:0;width:min(69%,590px);height:100%;pointer-events:none
}
body[data-world="moon"] .board-heading{background:#e2e7e7;border-bottom-color:#9baab1}
body[data-world="moon"] .board-inset{background-color:#e5e7e4}
body[data-world="moon"] .board-square{box-shadow:0 0 0 2px #425166,0 0 0 4px #9aa9af,2px 3px 0 4px #7c8c94}
body[data-world="moon"] .axis-x,body[data-world="moon"] .axis-y{color:#4e6173}
body[data-world="moon"] .console-heading{background:#354a61;border-color:#293c52;box-shadow:inset 0 2px #5a6f83}
body[data-world="moon"] .drive-console{background:#ebede7}
body[data-world="moon"] .patience{background:#dbe3e2;border-color:#93a3a6;box-shadow:inset 0 2px #c3cecf,0 1px #faf9ea}
body[data-world="moon"] #time-meter{background:#bac9ca;border-color:#82969c}
body[data-world="moon"] #time-meter i{background:#d6dfdc}
body[data-world="moon"] #time-meter i.filled{background:#648b92;box-shadow:inset 0 2px #8cafb2}
body[data-world="moon"] #time-meter.low i.filled{background:#b77e56;box-shadow:inset 0 2px #d3a476}
body[data-world="moon"] .board-caption{background:#e6e8df}
body[data-world="moon"] #terrain-status{background:#e1e7e7;border-color:#bbc8ca;color:#3e5865}
.flight-button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:4px 9px;
  border:1.5px solid #526778;border-radius:5px;background:#d8e7e7;color:#2b4356;
  box-shadow:inset 0 1px #f5f9ef,0 2px #a5b5ba;font-size:14px;font-weight:800
}
.flight-button>svg{width:21px;height:21px}
.flight-cost{border-left:1px solid #a7b8bd;padding-left:6px;font-size:12px;font-weight:650}
.flight-button:hover:not(:disabled){background:#c8e2e3}
.flight-button[aria-pressed="true"],.flight-button.is-active{border-color:#4e7180;background:#a9cdd0;box-shadow:inset 0 1px #dce8dc,0 2px #8aa6ad}
.flight-button:disabled{background:#e5e9e4;color:#61727b;border-color:#9eacaf;box-shadow:none;opacity:1}
.flight-button:focus-visible{outline:3px solid #b57b3b;outline-offset:2px}
#flight-status{grid-column:1/-1;margin-top:9px;padding-left:8px;border-left:2px solid #809ca5;color:#4b626d;font-size:13px;line-height:1.5}
#flight-status:empty{display:none}
.world-tabs{display:flex;gap:3px;padding:3px;margin:10px 0;background:#e5e8dc;border:1px solid #adb7a4;border-radius:5px}
.world-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:4px 9px;border:1px solid transparent;border-radius:3px;background:transparent;color:#5a6757;font-size:14px;font-weight:750}
.world-tabs button:hover:not(:disabled){background:#f1f2e6}
.world-tabs button[aria-pressed="true"],.world-tabs button[aria-selected="true"]{background:#fffcef;border-color:#8d9e80;box-shadow:0 1px #b0b89e;color:#345137}
.world-tabs button[data-world="moon"][aria-pressed="true"],.world-tabs button[data-world="moon"][aria-selected="true"]{background:#e1e9eb;border-color:#8398a4;box-shadow:0 1px #a6b4b7;color:#354f64}
.world-tabs button:disabled{color:#778173}
.map-terrain[data-terrain="moon"]{background:#dce4e9;color:#4c6074}
@media(min-width:651px) and (max-width:840px){body[data-world="moon"] .moon-panorama{max-width:440px}}
@media(max-width:650px){
  body[data-world="moon"] .hero{margin-top:7px;padding-inline:10px}
  body[data-world="moon"] .moon-panorama{width:56%;height:100%}
  .flight-button{gap:4px;padding:3px 7px;min-height:34px;font-size:13px}
  .flight-button>svg{width:18px;height:18px}.flight-cost{font-size:11px;padding-left:5px}
  #flight-status{margin-top:0;font-size:12px}
}

/* The yard remains square when the campaign changes the number of cells. */
.board-axes{
  --cell:calc(var(--tile)*4/var(--board-size,4));--axis-w:18px;--axis-h:20px;
  grid-template-columns:var(--side) var(--axis-w) repeat(var(--board-size,4),var(--cell)) var(--dock);
  grid-template-rows:var(--axis-h) repeat(var(--board-size,4),var(--cell))
}
.axis-x{grid-column:3/-2;grid-template-columns:repeat(var(--board-size,4),1fr)}
.axis-y{grid-row:2/-1;grid-template-rows:repeat(var(--board-size,4),1fr)}
.left-instruments{grid-row:2/-1}
.board-square{grid-column:3/-2;grid-row:2/-1}
#cell-grid{grid-template-columns:repeat(var(--board-size,4),1fr);grid-template-rows:repeat(var(--board-size,4),1fr)}
.dock{grid-column:-2/-1;grid-row:calc(var(--dock-row,1) + 1);max-height:100%}
.dense-board .dock-mark{width:14px;height:12px}.dense-board .flag-pole{height:10px}.dense-board .dock-text{font-size:10px}
.dense-board .dock{gap:1px;height:91%}
.dense-board .route-arrow{width:clamp(20px,var(--cell),35px);height:clamp(20px,var(--cell),35px);font-size:clamp(13px,2.9vw,20px);border-width:1px}
.dense-board .route-arrow[data-fare]::after{font-size:9px;min-width:12px;height:12px;right:-3px;bottom:-3px}
.trophy-entry svg{width:17px;height:17px}.award-intro{color:#5e6955}
dialog[data-view="trophies"]{width:520px;max-width:calc(100vw - 22px)}
.award-cabinet{display:grid;gap:11px;margin-top:13px}
.award-card{display:grid;grid-template-columns:85px 1fr;border:1px solid #a1af91;border-radius:7px;overflow:hidden;background:#f4f3e4}
.award-shelf{display:grid;place-items:center;background:linear-gradient(#e0e5cd 0 73%,#a5b291 73% 78%,#b9c3a4 78%);border-right:1px solid #adba9c}
.award-card.moon .award-shelf{background:linear-gradient(#dfe5e6 0 73%,#9fadb5 73% 78%,#b6c1c3 78%);border-color:#abb7b7}
.award-art{width:63px;height:83px}.award-card.locked .award-art{filter:saturate(.42);opacity:.76}
.award-info{padding:11px 13px}.award-title{display:flex;align-items:center;justify-content:space-between;gap:5px}
.award-title h3{margin:0!important;font-size:17px!important}.award-title>span{flex-shrink:0;padding:2px 5px;border:1px solid #bbc1ad;border-radius:3px;font-size:11px;font-weight:700;background:#e9ecdf;color:#596653}
.earned .award-title>span{background:#f6e3a6;color:#745a26;border-color:#c6aa65}.award-info p{margin:5px 0 8px;font-size:13px;line-height:1.55}
.award-metric+.award-metric{margin-top:5px}.award-metric>div{display:flex;align-items:baseline;justify-content:space-between;gap:6px;color:#53624c;font-size:12px}
.award-metric b{font:700 13px/1.4 Consolas,monospace;white-space:nowrap}
.award-metric progress{display:block;appearance:none;width:100%;height:5px;margin-top:2px;border:0;border-radius:2px;overflow:hidden;background:#d7decc;color:#75936d}
.award-metric progress::-webkit-progress-bar{background:#d7decc}.award-metric progress::-webkit-progress-value{background:#75936d}.award-metric progress::-moz-progress-bar{background:#75936d}
.shard-hud,.zone-hud{border-bottom:1px solid #b1bcaf;padding:7px 13px;color:#425469;font-size:13px}
.shard-hud,.shard-hud>div,.zone-head,.zone-layout{display:flex;align-items:center;gap:8px}.shard-hud{justify-content:space-between;background:#e6ebec}
#shard-hud-stars{color:#4d7992;font-size:16px;line-height:1;letter-spacing:.06em}.zone-hud{background:#edf0e3;color:#475b45}
.zone-head{justify-content:space-between;flex-wrap:wrap;row-gap:2px}.zone-layout{gap:4px;margin-top:5px;flex-wrap:wrap}
.zone-layout>span{padding:2px 5px;border:1px solid #bbc6ac;border-radius:3px;background:#dfe9d3;font-size:12px;white-space:nowrap}
.zone-layout [data-terrain="ice"]{background:#dcebee;color:#3d6068}.zone-layout [data-terrain="lava"]{background:#efdfcf;color:#785037}.zone-layout [data-terrain="moon"]{background:#e0e3ec;color:#53617a}
.zone-layout .zone-here{border-color:#6f805d;font-weight:750}.zone-hud.is-shifting #zone-countdown{color:#985220;font-weight:750}
.four-realms{display:none}
body[data-world="mixed"] .hero{color:#f4f3dd;background:#304c50;border:2px solid #536b66;border-radius:7px;padding-inline:16px;margin-top:10px}
body[data-world="mixed"] .hero h1{color:#faf3d5}body[data-world="mixed"] .hero .highlands{display:none}
body[data-world="mixed"] .hero .tagline,body[data-world="mixed"] .hero .route{color:#d4dfcc}
body[data-world="mixed"] .hero .route-origin{border-color:#d0d6ab;outline-color:#92aca2}
body[data-world="mixed"] .four-realms{display:block;position:absolute;z-index:-1;pointer-events:none;right:3%;bottom:2%;width:65%;height:95%}
.world-tabs button[data-world="mixed"][aria-pressed="true"],.world-tabs button[data-world="mixed"][aria-selected="true"]{border-color:#819b89;background:#d9e5df;color:#31584e}
@media(max-width:650px){
  .board-axes{--axis-w:12px;--axis-h:15px}
  .award-card{grid-template-columns:57px 1fr}.award-art{width:46px;height:63px}.award-info{padding:9px}
  .world-tabs{gap:2px}.world-tabs button{font-size:12px;padding:4px 2px}
  .zone-hud,.shard-hud{padding:5px 8px;font-size:12px}.zone-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));font-size:11px}
  .topbar .trophy-entry{width:32px;padding-inline:4px}.topbar .trophy-entry span{display:none}
  body[data-world="mixed"] .hero{padding-inline:9px;margin-top:6px}body[data-world="mixed"] .four-realms{right:0;width:53%}
  .dense-board.board-axes{
    --side:0px;--axis-w:14px;--dock:25px;--cell:calc((100cqi - 49px)/var(--board-size,4));
    grid-template-rows:30px var(--axis-h) repeat(var(--board-size,4),var(--cell))
  }
  .dense-board .left-instruments{grid-row:1;grid-column:2/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:3px}
  .dense-board .left-instruments .toll,.dense-board .side-gauge{width:auto;min-height:23px;flex-direction:row;gap:4px;padding:2px 4px}
  .dense-board .booth-art{width:22px}.dense-board .station-count{font-size:10px}.dense-board .toll #toll-state:empty{display:none}
  .dense-board .side-gauge .readout{font-size:12px}.dense-board .battery-shape{width:20px;height:12px;padding:1px}
  .dense-board .axis-x{grid-row:2}.dense-board .axis-y,.dense-board .board-square{grid-row:3/-1}
  .dense-board .dock{grid-row:calc(var(--dock-row,1) + 2)}
}
@media(max-width:395px){.topbar .nav-btn{gap:3px;padding:0 5px}.topbar .nav-wrap{padding-inline:7px}.topbar .brand{gap:2px}.topbar .brand canvas{width:32px}}
@media(max-width:560px){
  .topbar{height:auto}
  .topbar .nav-wrap{flex-direction:column;gap:6px;padding-block:7px}
  .topbar .brand-home{min-height:38px;gap:7px;flex-shrink:0}
  .topbar .brand canvas{width:40px;height:34px}
  .topbar .brand strong{font-size:18px;white-space:nowrap}
  .topbar .brand small{display:block;white-space:nowrap}
  .topbar nav{display:grid;grid-template-columns:minmax(62px,1.3fr) 36px 36px minmax(46px,1fr) 36px minmax(46px,1fr);gap:4px;width:100%}
  .topbar nav button{height:40px;width:100%;min-width:0;padding-inline:3px;margin:0;gap:3px;white-space:nowrap}
  .topbar .nav-btn span:last-child{display:inline}
  .topbar .trophy-entry span{display:none!important}
  .topbar .shop-nav-label{white-space:nowrap}
}
