/* The route is the main surface; the small paper tools sit at its edges. */
#game-stage #app .roadside-layer {--r29-touch:max(48px,calc(44.25px / var(--stage-scale,1)));background:#b5c89b}
#game-stage #app .roadside-card::after {display:none}
#game-stage #app .roadside-card .roadside-header {inset:20px 18px auto;align-items:flex-start;gap:12px;pointer-events:none}
#game-stage #app .roadside-header>div {flex:1;min-width:0;max-width:none;padding:10px 12px 11px;border:0;border-radius:3px 3px 13px 3px;background:#fff9e9;box-shadow:none}
#game-stage #app .roadside-header>div::before {content:'';display:block;position:absolute;top:-3px;width:26px;height:6px;background:#a3b384;opacity:.85}
#game-stage #app .roadside-header h2 {font:400 25px/1.2 var(--kv-writing);margin:0;color:#304e37}
#game-stage #app .roadside-mode {margin:5px 0 0;font:500 13px/1.35 var(--kv-label);color:#47644c}
#game-stage #app .journey-conditions {display:flex;flex-wrap:wrap;gap:3px 10px;margin:7px 0 0;font:400 13px/1.35 var(--kv-label);color:#59705b}
#game-stage #app .journey-weather {margin:0;font:inherit;color:inherit}
#game-stage #app .journey-local-clock {font-variant-numeric:tabular-nums;white-space:nowrap}
#game-stage #app .roadside-close {pointer-events:auto;width:var(--r29-touch);min-width:var(--r29-touch);height:var(--r29-touch);min-height:var(--r29-touch);border:0;border-radius:50%;background:#fff9e9;box-shadow:none;font:400 25px/1 var(--kv-label)}
#game-stage #app .roadside-region {top:148px;left:auto;right:18px;max-width:210px;min-height:var(--r29-touch);padding:8px 11px;border:0;border-left:3px solid #82965e;border-radius:2px 7px 7px 2px;background:#f5eed7;color:#4e654a;box-shadow:none;text-align:left}
#game-stage #app .roadside-region[hidden] {display:none}
#game-stage #app .roadside-region span {display:block;font:400 12px/1.4 var(--kv-label)}
#game-stage #app .roadside-region b {display:block;font:500 13px/1.45 var(--kv-label)}
#game-stage #app .roadside-region:disabled {opacity:.72}
#game-stage #app .roadside-footer {inset:auto 18px 15px;display:grid;grid-template-columns:1fr 2.12fr;gap:10px;min-height:76px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;align-items:stretch}
#game-stage #app .roadside-status {display:contents}
#game-stage #app .roadside-footer .roadside-progress {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:max(76px,var(--r29-touch));margin:0;padding:8px 4px;border:0;border-radius:7px 7px 13px 7px;background:#faf4e3;box-shadow:0 2px 0 #8a9975;color:#3c5c40;font:500 16px/1.25 var(--kv-label);pointer-events:auto}
#game-stage #app .roadside-progress svg {width:32px;height:29px;flex:none}
#game-stage #app .journey-footer-actions {display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
#game-stage #app .journey-save,#game-stage #app .journey-footer-actions .roadside-serve {min-width:0;min-height:max(76px,var(--r29-touch));padding:8px 5px;border:0;border-radius:7px 7px 13px 7px;background:#faf4e3;color:#3c5c40;box-shadow:0 2px 0 #8a9975;pointer-events:auto;touch-action:manipulation;font:500 16px/1.25 var(--kv-label);text-wrap:balance}
#game-stage #app .journey-save {display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px}
#game-stage #app .journey-save::before {display:none}
#game-stage #app .journey-save>svg {width:36px;height:29px;flex:none}
#game-stage #app .journey-save>span {font:500 14px/1.3 var(--kv-label);white-space:nowrap}
#game-stage #app .journey-save[data-saved=true]>svg {color:#78916a}
#game-stage #app .journey-save:disabled {background:#eef1df;opacity:.8}
#game-stage #app .roadside-serve {position:static;width:auto;height:auto;grid-column:auto;filter:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
#game-stage #app .roadside-serve>svg {width:43px;height:29px;flex:none}
#game-stage #app .roadside-serve:disabled {opacity:.6}
#game-stage #app .roadside-note:not(:empty) {position:absolute;bottom:88px;left:0;right:0;max-width:none;margin:0;padding:10px 12px;border:0;border-radius:5px;background:#fff9e9;font:400 13px/1.5 var(--kv-label);color:#3d5b42;pointer-events:none}
#game-stage #app .roadside-bowl {bottom:33px;left:31px;filter:none}
#game-stage #app .roadside-discovery {gap:12px;padding:13px;border:0;border-radius:5px;background:#fff8e7;box-shadow:0 3px 0 #8c987066}
#game-stage #app .roadside-discovery h3 {font:400 23px/1.25 var(--kv-writing)}
#game-stage #app .roadside-discovery-body>p {font:400 14px/1.6 var(--kv-label)}
#game-stage #app .roadside-collect {min-height:var(--r29-touch);font:500 15px/1.3 var(--kv-label);border-radius:6px}
#game-stage #app .roadside-discovery-close {min-width:var(--r29-touch);min-height:var(--r29-touch);border:0}
#game-stage #app .roadside-layer[data-local-phase=night] {background:#3f5562}
#game-stage #app .roadside-layer[data-local-phase=dusk] {background:#9d9b7b}
#game-stage #app .roadside-layer[data-mode=rocket] {background:#334764}
#game-stage #app .journey-heading h1 {font:400 28px/1.25 var(--kv-writing);letter-spacing:.02em}
#game-stage #app .journey-screen[data-mode=rocket] .journey-heading {color:#fff9e8}
#game-stage #app .journey-screen[data-mode=rocket] .journey-heading h1,
#game-stage #app .journey-screen[data-mode=rocket] .journey-stage-copy {color:inherit}
#game-stage #app .journey-panel {border:0;border-radius:5px 5px 15px 5px;background:#fff9e8;box-shadow:0 3px 0 #92a37b44}
#game-stage #app .journey-summary small {font:400 13px/1.4 var(--kv-label);color:#6b7859}
#game-stage #app .journey-summary strong {font:500 22px/1.3 var(--kv-label);color:#38553a}
#game-stage #app .journey-summary span {font:400 13px/1.5 var(--kv-label);color:#526b4f}
#game-stage #app .journey-share {font:500 15px/1.4 var(--kv-label);border:0;border-radius:6px;background:#e5ecd2;color:#355639}
#game-stage #app .journey-view-bar button {font:500 14px/1.3 var(--kv-label);border:0;border-radius:6px;box-shadow:0 2px 0 #8a997544;min-height:max(46px,calc(44.25px / var(--stage-scale,1)))}
#game-stage #app .journey-view-bar .journey-roadside {border:0;border-radius:6px;background:#416a48;box-shadow:0 2px 0 #304f3766}
#game-stage #app .journey-warming h3 {font:500 16px/1.4 var(--kv-label)}
#game-stage #app header .header-action {min-height:max(46px,calc(44.25px / var(--stage-scale,1)));font:500 15px/1.3 var(--kv-label)}
#game-stage #app header .brand {min-height:max(48px,calc(44.25px / var(--stage-scale,1)))}
#game-stage #app .journey-controls button {width:max(44px,calc(44.25px / var(--stage-scale,1)));height:max(44px,calc(44.25px / var(--stage-scale,1)));min-height:max(44px,calc(44.25px / var(--stage-scale,1)))}
#game-stage #app .journey-screen .gm-screen-back {width:max(46px,calc(44.25px / var(--stage-scale,1)));height:max(46px,calc(44.25px / var(--stage-scale,1)));min-height:max(46px,calc(44.25px / var(--stage-scale,1)))}
#game-stage #app .journey-screen .journey-panel {top:601px;max-height:226px;padding:15px 17px 0;border:0;border-radius:6px 6px 15px 6px;background:#fff9e8;box-shadow:0 3px 0 #92a37b44}
#game-stage #app .journey-share {min-height:max(44px,calc(44.25px / var(--stage-scale,1)))}
#game-stage #app .journey-screen header .back {width:max(46px,calc(44.25px / var(--stage-scale,1)));min-width:max(46px,calc(44.25px / var(--stage-scale,1)));height:max(46px,calc(44.25px / var(--stage-scale,1)));min-height:max(46px,calc(44.25px / var(--stage-scale,1)))}
#game-stage #app .roadside-layer button:focus-visible {outline:2px solid #355c3e;outline-offset:3px}

/* The delivery view follows the real route; the globe remains one tap away. */
#game-stage #app .journey-screen.is-local-map[data-warm-stage=travelling] .journey-stage-copy {visibility:hidden}
#game-stage #app .journey-screen.is-local-map .journey-world {border:1px solid #aec2a4;border-radius:22px;background:#c4dfd9;box-shadow:none}
#game-stage #app .journey-screen.is-local-map .journey-markers {clip-path:inset(0 round 22px)}
#game-stage #app .journey-screen.is-local-map .journey-ocean {fill:#bddbd6;filter:none}
#game-stage #app .journey-screen.is-local-map .journey-land {fill:#e2e9ca;stroke:#a4bf9e;stroke-width:1.2;filter:none}
#game-stage #app .journey-screen.is-local-map .journey-globe-depth {display:none}
#game-stage #app .journey-screen.is-local-map .journey-grid {stroke:#97b5ad;opacity:.24}
#game-stage #app .journey-screen.is-local-map .journey-texture {opacity:.35}
#game-stage #app .journey-screen.is-local-map [data-vegetation] {opacity:.58}
#game-stage #app .journey-screen.is-local-map .journey-route-under {stroke:#c4d1af;stroke-width:12}
#game-stage #app .journey-screen.is-local-map .journey-route {stroke:#6e9570;stroke-width:3;stroke-dasharray:5 11}
#game-stage #app .journey-screen.is-local-map .journey-travelled {stroke:#497b54;stroke-width:4}
#game-stage #app .journey-screen.is-local-map [data-route-dots] {fill:#fff9e8;stroke:#7e9c76}
#game-stage #app .journey-screen.is-local-map[data-warm-stage=travelling] .journey-turtle {width:152px;height:164px;transform:translate(-50%,-60%)}
#game-stage #app .journey-screen.is-local-map[data-warm-stage=travelling] .journey-turtle button {width:100%;height:100%}
#game-stage #app .journey-screen.is-local-map[data-warm-stage=travelling] .journey-bubble {
  display:block;visibility:visible;opacity:1;bottom:calc(100% + 8px);max-width:230px;min-width:0;
  padding:10px 13px;border:1px solid #a3b68b;border-radius:13px;background:#fffbed;color:#35563d;
  font:500 15px/1.45 var(--kv-label);box-shadow:none;text-wrap:balance;
}
#game-stage #app .journey-screen.is-local-map .journey-controls {right:10px;bottom:10px}
#game-stage #app .journey-screen.is-local-map .journey-pin .journey-postbox {display:none}
#game-stage #app .journey-screen.is-local-map .journey-pin b {max-width:140px;font-size:13px;border-radius:8px}
#game-stage #app .journey-screen.is-local-map .journey-view-bar {grid-template-columns:1fr 1fr}
#game-stage #app .journey-screen.is-local-map .journey-view-bar [data-local-distance] {display:none}
#game-stage #app .journey-screen.is-local-map .journey-view-bar button {width:100%;padding-inline:10px}
