*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}html,body,#app{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:#6bc2ff;font-family:-apple-system,BlinkMacSystemFont,SF Pro Rounded,Nunito,Segoe UI,sans-serif;touch-action:none}#canvas-host{position:fixed;inset:0;width:100%;height:100%;touch-action:none}#hud-root{position:fixed;inset:0;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}.is-hidden{display:none!important}.rail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;pointer-events:none}.rail-top-left,.rail-top-right{display:flex;align-items:center;gap:10px;pointer-events:auto}.rail-circle-btn{pointer-events:auto;appearance:none;border:3px solid #ffffff;background:linear-gradient(180deg,#fffef9,#f3ece0);width:60px;height:60px;border-radius:999px;padding:10px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 5px #c9b99f,0 10px 20px #18263c38;transition:transform .08s ease,box-shadow .08s ease}.rail-circle-btn svg{width:100%;height:100%;display:block}.rail-circle-btn:active{transform:translateY(3px);box-shadow:0 2px #c9b99f}.rail-circle-btn:disabled{opacity:.42;cursor:default}.rail-circle-btn.siren-active{background:linear-gradient(180deg,#fffef9,#fff4cc);border-color:#ff3b30;box-shadow:0 5px #b91c1c,0 0 0 5px #3b82f68c,0 0 22px #ff3b30b3;animation:rail-glow .65s ease-in-out infinite alternate}.rail-circle-btn.switch-active{background:linear-gradient(180deg,#fff4cc,#ffd43b);border-color:#fff;box-shadow:0 5px #b45309}.rail-circle-btn.switch-hint{border-color:#ff9f1c;box-shadow:0 5px #c9b99f,0 0 0 6px #ff9f1c8c;animation:rail-pulse .9s ease-in-out infinite alternate}.rail-circle-btn.erase-active{background:linear-gradient(180deg,#ef4444,#dc2626);border-color:#fff;box-shadow:0 5px #991b1b}.rail-mode-toggle{pointer-events:auto;appearance:none;border:3px solid #ffffff;background:linear-gradient(180deg,#fffef9,#f5e6cc);width:62px;height:62px;border-radius:999px;padding:9px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 5px #b8986b,0 10px 22px #18263c3d;transition:transform .08s ease}.rail-mode-toggle.in-build{background:linear-gradient(180deg,#4ade80,#22c55e);box-shadow:0 5px #15803d,0 10px 22px #15803d59}.rail-mode-toggle:active{transform:translateY(3px)}.rail-mode-toggle .mode-ico{width:38px;height:38px;display:block}.parent-lock-btn{position:relative;width:52px;height:52px;padding:0;opacity:.86}.parent-lock-btn .lock-ico{width:26px;height:26px;display:block;position:relative;z-index:1}.lock-progress{position:absolute;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px);transform:rotate(-90deg);pointer-events:none}.lock-ring-bg{fill:none;stroke:transparent;stroke-width:4}.lock-ring-fg{fill:none;stroke:#1f6feb;stroke-width:4.5;stroke-linecap:round;stroke-dasharray:158;stroke-dashoffset:158;transition:stroke-dashoffset .12s ease}.parent-lock-btn.holding .lock-ring-fg{stroke-dashoffset:0;transition:stroke-dashoffset 2s linear}.rail-mission-bubble{pointer-events:auto;position:relative;appearance:none;border:3.5px solid #ffffff;background:linear-gradient(180deg,#fffef9,#f7f1e5);width:66px;height:66px;border-radius:999px;padding:9px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px #c9b99f,0 12px 26px #0f234238;animation:rail-bob 2.2s ease-in-out infinite}.rail-mission-bubble:after{content:"";position:absolute;bottom:-10px;left:50%;transform:translate(-50%);width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:10px solid #ffffff}.rail-mission-bubble.police{border-color:#2b83ff}.rail-mission-bubble.fire{border-color:#ef4444}.rail-mission-bubble.hero-net{border-color:#dc2626;box-shadow:0 6px #1d4ed8,0 0 18px #dc26266b}.rail-mission-bubble.hero-shield{border-color:#1d4ed8;box-shadow:0 6px #dc2626,0 0 18px #1d4ed86b}.rail-mission-bubble.hero-solar{border-color:#facc15;box-shadow:0 6px #0284c7,0 0 18px #facc157a}.rail-mission-bubble.hero-rock{border-color:#4ade80;box-shadow:0 6px #7e22ce,0 0 18px #4ade8085}.rail-mission-bubble.celebrate{border-color:#22c55e}.rail-mission-bubble .bubble-ico{width:42px;height:42px;display:block}.rail-mission-bubble .bubble-count{position:absolute;top:-5px;right:-6px;min-width:22px;height:18px;padding:0 5px;border-radius:999px;background:#e03131;display:inline-flex;align-items:center;justify-content:center;gap:3px;border:2px solid #fff}.rail-mission-bubble .bubble-count[hidden]{display:none}.rail-mission-bubble .mission-pip{width:6px;height:6px;border-radius:999px;background:#fff7c2;display:block}.rail-star-badge{display:inline-flex;align-items:center;gap:5px;background:linear-gradient(180deg,#fff7c2,#ffe066);border:3px solid #ffffff;border-radius:999px;padding:6px 12px 6px 10px;box-shadow:0 4px #d4a017,0 8px 18px #18263c2e}.rail-star-badge.is-rich{box-shadow:0 4px #d99b18,0 0 14px #facc158c}.rail-star-badge .star-ico{width:24px;height:24px;display:block}.rail-star-badge .star-pips{display:inline-flex;align-items:center;gap:3px}.rail-star-badge .star-pips:empty{display:none}.rail-star-badge .star-pip{width:8px;height:8px;border-radius:999px;background:#d97706;border:1.5px solid #fffef5;display:block}.rail-hero-action{position:fixed;left:50%;bottom:calc(max(14px,env(safe-area-inset-bottom)) + 86px);transform:translate(-50%);z-index:20;pointer-events:auto;appearance:none;border:4px solid #ffffff;width:86px;height:86px;border-radius:999px;padding:7px;background:#fff;cursor:pointer;box-shadow:0 7px #0f234247,0 14px 32px #0f234257;transition:transform .1s ease,box-shadow .1s ease}.rail-hero-action .hero-ico,.rail-hero-action svg{width:100%;height:100%;display:block}.rail-hero-action.pulse{animation:rail-hero-pulse .85s ease-in-out infinite alternate}.rail-hero-action.is-spraying,.rail-hero-action:active{transform:translate(-50%) scale(.94);box-shadow:0 3px #0f234247,0 0 0 8px #0ea5e985}.rail-hero-powers{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(max(14px,env(safe-area-inset-bottom)) + 88px);z-index:19;display:flex;align-items:center;gap:10px;pointer-events:auto}.rail-fullscreen-btn.is-fullscreen{background:linear-gradient(180deg,#dbeafe,#93c5fd);border-color:#2563eb}body.immersive-fullscreen #hud-root{padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.rail-discovery-toast{position:fixed;top:calc(max(12px,env(safe-area-inset-top)) + 82px);left:50%;transform:translate(-50%);z-index:21;pointer-events:none;display:inline-flex;align-items:center;gap:8px;max-width:min(92vw,420px);padding:7px 14px 7px 10px;border-radius:999px;border:3px solid #ffffff;background:linear-gradient(180deg,#fffdf4,#fef3c7);color:#1c2b3a;font-size:13px;font-weight:900;box-shadow:0 5px #d97706,0 10px 24px #0f234240;animation:rail-toast-bob 1.8s ease-in-out infinite}.rail-discovery-toast .disc-ico{width:22px;height:22px;flex:0 0 auto;display:block}.rail-discovery-toast .disc-ico svg{width:100%;height:100%;display:block}.rail-discovery-toast .disc-meter{width:78px;height:11px;border-radius:999px;background:#fde68a;border:2px solid #f59e0b;overflow:hidden;display:block}.rail-discovery-toast .disc-meter-fill{display:block;height:100%;width:15%;border-radius:999px;background:linear-gradient(90deg,#f59e0b,#eab308);transition:width .35s ease}.rail-police-action-btn.fire-heli-btn{background:radial-gradient(circle at 30% 25%,#fb923c,#ef4444 68%,#b91c1c);box-shadow:0 6px #991b1b,0 12px 24px #ef44445c}.rail-recenter-btn{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:calc(max(14px,env(safe-area-inset-bottom)) + 104px);z-index:20;pointer-events:auto;appearance:none;width:56px;height:56px;border-radius:999px;border:3.5px solid #ffffff;background:linear-gradient(180deg,#eff6ff,#bfdbfe);padding:6px;cursor:pointer;box-shadow:0 5px #1d4ed8,0 10px 22px #1f6feb59;animation:rail-pulse 1s ease-in-out infinite alternate}.rail-recenter-btn svg{width:100%;height:100%;display:block}.rail-recenter-btn:active{transform:translateY(3px)}.rail-hero-power-btn{appearance:none;border:3.5px solid #ffffff;width:64px;height:64px;border-radius:999px;padding:4px;background:linear-gradient(180deg,#fffdf8,#f1ece1);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px #0f234247,0 12px 24px #0f234247;transition:transform .1s ease,box-shadow .1s ease}.rail-hero-power-btn .hp-ico,.rail-hero-power-btn svg{width:100%;height:100%;display:block}.rail-hero-power-btn:active{transform:translateY(3px) scale(.94)}.rail-hero-power-btn.is-active{border-color:#facc15;box-shadow:0 4px #b45309,0 0 0 6px #facc1585;transform:scale(1.06)}.rail-play-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;pointer-events:none}.rail-throttle-dock{pointer-events:auto;background:linear-gradient(180deg,#f3d5a5,#dbb071);border:3px solid #fffef9;border-radius:999px;padding:8px 10px;box-shadow:0 6px #9f7136,0 14px 28px #0f234242;width:262px;max-width:48vw}.throttle-rail{position:relative;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;height:48px;border-radius:999px;background:#9f6f37;box-shadow:inset 0 4px 8px #44290c73;overflow:visible;touch-action:none}.throttle-fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,#ffc92859,#27b54d73);pointer-events:none;transition:width .12s ease}.throttle-stop{position:relative;z-index:1;appearance:none;border:none;background:transparent;height:48px;padding:12px 0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;pointer-events:none}.throttle-stop svg{width:18px;height:18px;opacity:.82}.throttle-knob{position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2;width:60px;height:54px;border-radius:18px;background:linear-gradient(180deg,#fff,#f5efe4);border:3px solid #d9261c;padding:6px 5px;display:flex;align-items:center;justify-content:center;pointer-events:none;box-shadow:0 5px #9e1a13,0 8px 16px #00000047;transition:left .12s cubic-bezier(.22,1,.36,1)}.throttle-knob svg{width:100%;height:100%}.rail-play-cluster{display:flex;align-items:center;gap:10px;pointer-events:auto}.rail-build-drawer{pointer-events:auto;display:flex;align-items:center;gap:10px;background:linear-gradient(180deg,#f3d5a5,#dfba80);border:3px solid #fffef9;border-radius:26px;padding:8px 10px;box-shadow:0 7px #a37438,0 16px 32px #0f234247;max-width:100%}.drawer-tabs{display:flex;gap:6px;padding-right:8px;border-right:2px solid rgba(155,104,50,.25)}.drawer-tab{appearance:none;border:2.5px solid transparent;background:#fffef9b8;width:52px;height:56px;border-radius:16px;padding:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.drawer-tab.active{background:#fff;border-color:#d9261c;box-shadow:0 3px #b88a50}.drawer-strip{flex:1;display:flex;align-items:center;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x;padding:2px 2px 5px}.train-roster{display:flex;align-items:center;gap:6px}.roster-wagon{position:relative;flex:0 0 auto;appearance:none;border:2.5px solid #2b83ff;background:#eff6ff;width:54px;height:54px;border-radius:14px;padding:6px;cursor:pointer;box-shadow:0 3px #93c5fd}.roster-wagon svg{width:100%;height:100%}.roster-x{position:absolute;top:-5px;right:-5px;width:20px;height:20px;border-radius:999px;background:#d9261c;color:#fff;font-size:13px;font-weight:900;display:flex;align-items:center;justify-content:center;border:2px solid #fff}.roster-wagon.locked{border-color:#163f80;background:#dbeafe;cursor:default}.roster-lock{position:absolute;top:-5px;right:-5px;width:20px;height:20px;border-radius:999px;background:#163f80;color:#fff;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;border:2px solid #fff}.rail-tile.is-full{opacity:.42}.strip-divider{width:2px;height:40px;background:#9b683247;flex:0 0 auto}.rail-tile{position:relative;flex:0 0 auto;appearance:none;border:2.5px solid #ffffff;background:linear-gradient(180deg,#fffef9,#f5efe4);width:58px;height:58px;border-radius:16px;padding:7px;cursor:pointer;box-shadow:0 4px #b8986b;display:inline-flex;align-items:center;justify-content:center}.rail-tile svg{width:100%;height:100%}.rail-tile.selected{border-color:#22c55e;background:#f0fdf4;transform:translateY(-2px);box-shadow:0 6px #15803d}.tile-plus{position:absolute;bottom:-4px;right:-4px;background:#22c55e;color:#fff;font-size:12px;font-weight:900;padding:1px 6px;border-radius:999px;border:2px solid #fff}.drawer-tools{display:flex;align-items:center;gap:8px;padding-left:8px;border-left:2px solid rgba(155,104,50,.25)}.build-tool-btn{width:54px;height:54px;padding:10px}.rail-modal-backdrop{position:fixed;inset:0;pointer-events:auto;background:#0f1d348a;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:16px;z-index:40}.rail-world-picker,.rail-parent-card{position:relative;max-height:calc(100dvh - 28px);overflow-y:auto;-webkit-overflow-scrolling:touch}.rail-world-picker{width:min(760px,94vw);background:linear-gradient(180deg,#fffef9,#f5e6cc);border:4px solid #ffffff;border-radius:30px;padding:20px;box-shadow:0 24px 60px #00000059}.modal-close-x{position:absolute;top:10px;right:10px;width:44px;height:44px;border-radius:999px;border:3px solid #ffffff;background:#d9261c;padding:9px;cursor:pointer;z-index:2;box-shadow:0 4px #991b1b}.modal-close-x svg{width:100%;height:100%}.world-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;padding-top:42px}.world-card{position:relative;appearance:none;border:4px solid #ffffff;background:#fff;border-radius:22px;padding:6px;cursor:pointer;box-shadow:0 6px #c9b99f;transition:transform .1s ease}.world-card:active{transform:translateY(3px)}.world-card.current.police{border-color:#1f6feb;box-shadow:0 6px #154ba6}.world-card.current.fire{border-color:#e03131;box-shadow:0 6px #a31b1b}.card-art svg{width:100%;height:auto;display:block;border-radius:14px}.world-card .card-play{position:absolute;right:12px;bottom:12px;width:40px;height:40px;border-radius:999px;border:2.5px solid #ffffff;box-shadow:0 4px 10px #0f1d3459;display:block}.world-card .card-play svg{width:100%;height:100%;display:block}.rail-station-dock{position:fixed;left:50%;bottom:calc(max(16px,env(safe-area-inset-bottom)) + 92px);transform:translate(-50%);display:flex;align-items:center;gap:14px;pointer-events:auto;z-index:22}.rail-alarm-btn{appearance:none;width:82px;height:82px;border-radius:999px;border:4px solid #ffffff;background:radial-gradient(circle at 32% 28%,#ff6b6b,#e03131 65%,#b91c1c);padding:13px;cursor:pointer;box-shadow:0 7px #991b1b,0 14px 28px #e031316b;animation:rail-pulse .72s ease-in-out infinite alternate}.rail-alarm-btn.ringing{animation:rail-bell-shake .14s ease-in-out infinite alternate;box-shadow:0 7px #991b1b,0 0 28px #ffc107e6}.rail-alarm-btn:active{transform:translateY(3px)}.rail-alarm-btn .alarm-ico,.rail-alarm-btn svg{width:100%;height:100%;display:block}.rail-police-action-btn{appearance:none;width:72px;height:72px;border-radius:999px;border:4px solid #ffffff;background:radial-gradient(circle at 30% 25%,#60a5fa,#1f6feb 68%,#154ba6);padding:11px;cursor:pointer;box-shadow:0 6px #163f80,0 12px 24px #1f6feb5c;transition:transform .1s ease}.rail-police-action-btn.jail-btn{background:radial-gradient(circle at 30% 25%,#fbbf24,#f59e0b 68%,#b45309);box-shadow:0 6px #92400e,0 12px 24px #f59e0b5c}.rail-police-action-btn.is-active{animation:rail-pulse .45s ease-in-out infinite alternate;box-shadow:0 6px #163f80,0 0 24px #38bdf8eb}.rail-police-action-btn.jail-btn.is-active{box-shadow:0 6px #92400e,0 0 24px #fbbf24f2}.rail-police-action-btn:active{transform:translateY(3px)}.rail-police-action-btn .police-ico,.rail-police-action-btn svg{width:100%;height:100%;display:block}.rail-station-close{appearance:none;width:56px;height:56px;border-radius:999px;border:3.5px solid #ffffff;background:linear-gradient(180deg,#334155,#1e293b);padding:13px;cursor:pointer;box-shadow:0 5px #0f172a}.rail-station-close:active{transform:translateY(2px)}.rail-station-close svg{width:100%;height:100%;display:block}.rail-grow-btn{position:relative;background:linear-gradient(180deg,#f0fdf4,#dcfce7);border-color:#22c55e;box-shadow:0 5px #15803d,0 10px 22px #15803d3d}.rail-grow-btn.is-max{opacity:.72;border-color:#f59e0b;background:linear-gradient(180deg,#fffbeb,#fef3c7);box-shadow:0 5px #b45309}.rail-shrink-btn{background:linear-gradient(180deg,#fffbeb,#fef3c7);border-color:#f59e0b;box-shadow:0 5px #b45309}.grow-badge{position:absolute;top:-5px;right:-6px;background:#15803d;display:inline-flex;align-items:center;gap:2px;padding:3px 4px;border-radius:999px;border:2px solid #ffffff;pointer-events:none}.grow-pip{width:4px;height:4px;border-radius:999px;background:#fff;display:block}.rail-grow-btn.is-max .grow-badge{background:#b45309}.rail-station-btn:disabled{opacity:.45;filter:grayscale(.45);cursor:not-allowed;transform:none}@keyframes rail-bell-shake{0%{transform:rotate(-10deg) scale(1.05)}to{transform:rotate(10deg) scale(1.08)}}.rail-parent-card{width:min(440px,94vw);background:#fffef9;border:4px solid #ffffff;border-radius:28px;padding:20px;box-shadow:0 24px 60px #00000059;color:#1c2b3a}.rail-parent-card h2{margin:0 46px 8px 0;font-size:20px}.parent-status{margin:0 0 10px;font-size:14px}.parent-tip{background:#eff6ff;border:2px solid #bfdbfe;border-radius:16px;padding:10px 12px;font-size:13px;line-height:1.45;margin:0 0 12px}.parent-notice{background:#fef9c3;border:2px solid #fde047;border-radius:12px;padding:8px 12px;font-size:13px;font-weight:700;margin:0 0 12px}.parent-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.parent-btn-action{appearance:none;border:2px solid #e2d5bf;background:#fff;color:#1c2b3a;font-weight:800;font-size:13px;min-height:46px;border-radius:14px;padding:8px 10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-align:center;box-shadow:0 3px #d5c5ab}.parent-btn-action.full-width{width:100%}.parent-btn-action.danger{background:#fee2e2;border-color:#fca5a5;color:#991b1b;box-shadow:0 3px #f87171}.parent-btn-action.danger.armed{background:#dc2626;border-color:#991b1b;color:#fff;box-shadow:0 3px #7f1d1d}@keyframes rail-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes rail-toast-bob{0%,to{transform:translate(-50%) translateY(0)}50%{transform:translate(-50%) translateY(-4px)}}@keyframes rail-pulse{0%{transform:scale(1)}to{transform:scale(1.07)}}@keyframes rail-hero-pulse{0%{transform:translate(-50%) scale(1)}to{transform:translate(-50%) scale(1.08)}}@keyframes rail-glow{0%{filter:brightness(1)}to{filter:brightness(1.12)}}@media(max-width:720px){#hud-root{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.rail-top,.rail-top-left,.rail-top-right{gap:4px}.rail-top .rail-circle-btn{width:40px;height:40px;padding:6px}.rail-play-cluster .rail-circle-btn{width:50px;height:50px;padding:8px}.rail-top .rail-shrink-btn{width:34px;height:34px;padding:5px}.rail-top .rail-fullscreen-btn{width:36px;height:36px;padding:6px}.rail-top .parent-lock-btn{width:38px;height:38px;padding:0}.rail-mode-toggle{width:42px;height:42px;padding:6px}.rail-mission-bubble{width:44px;height:44px;padding:6px}.rail-discovery-toast{top:calc(max(8px,env(safe-area-inset-top)) + 54px);font-size:12px;padding:5px 10px 5px 8px}.rail-star-badge{padding:2px 6px 2px 5px;gap:3px}.rail-star-badge .star-ico{width:18px;height:18px}.rail-play-bottom{flex-direction:column;align-items:center;gap:8px}.rail-throttle-dock{width:min(290px,92vw);max-width:92vw;padding:6px 8px}.rail-hero-action{bottom:calc(max(10px,env(safe-area-inset-bottom)) + 144px);width:72px;height:72px}.rail-recenter-btn{left:max(10px,env(safe-area-inset-left));bottom:calc(max(10px,env(safe-area-inset-bottom)) + 160px);width:50px;height:50px}.rail-hero-powers{right:max(8px,env(safe-area-inset-right));bottom:calc(max(10px,env(safe-area-inset-bottom)) + 148px);flex-direction:column;gap:8px}.rail-hero-power-btn{width:52px;height:52px;padding:3px}.rail-station-dock{bottom:calc(max(10px,env(safe-area-inset-bottom)) + 146px);gap:10px}.rail-alarm-btn{width:72px;height:72px}.rail-police-action-btn{width:58px;height:58px;padding:8px}.rail-play-cluster{gap:10px}.world-cards{grid-template-columns:1fr}}@media(max-width:520px){.rail-top,.rail-top-left,.rail-top-right{gap:3px}.rail-top .rail-circle-btn{width:36px;height:36px;padding:5px}.rail-top .rail-shrink-btn{width:32px;height:32px;padding:5px}.rail-top .rail-fullscreen-btn{width:34px;height:34px;padding:5px}.rail-top .parent-lock-btn{width:34px;height:34px;padding:0}.rail-top .parent-lock-btn .lock-ico{width:18px;height:18px}.rail-top .rail-mode-toggle{width:38px;height:38px;padding:5px}.rail-mission-bubble{width:40px;height:40px;padding:5px}}@media(max-height:500px){#hud-root{padding:max(6px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.rail-circle-btn{width:48px;height:48px;padding:8px}.rail-top .parent-lock-btn{padding:0}.rail-mode-toggle{width:50px;height:50px;padding:7px}.rail-mission-bubble{width:52px;height:52px;padding:7px}.rail-discovery-toast{top:calc(max(6px,env(safe-area-inset-top)) + 68px)}.rail-play-bottom{flex-direction:row;align-items:flex-end;justify-content:space-between}.rail-throttle-dock{width:224px;padding:5px 8px}.throttle-rail,.throttle-stop{height:40px}.throttle-knob{width:50px;height:44px}.rail-hero-action{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 66px);width:68px;height:68px}.rail-recenter-btn{left:max(12px,env(safe-area-inset-left));bottom:calc(max(8px,env(safe-area-inset-bottom)) + 84px);width:48px;height:48px}.rail-hero-powers{right:max(12px,env(safe-area-inset-right));bottom:calc(max(8px,env(safe-area-inset-bottom)) + 68px);flex-direction:row;gap:8px}.rail-hero-power-btn{width:52px;height:52px;padding:3px}.rail-station-dock{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 66px)}.rail-alarm-btn{width:66px;height:66px}.rail-police-action-btn{width:58px;height:58px;padding:8px}.world-cards{grid-template-columns:1fr 1fr;padding-top:40px}}.rail-hub-home-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;pointer-events:auto;background:linear-gradient(180deg,#fff,#eff6ff)!important;border-color:#fff!important;box-shadow:0 5px #1e3a8a3d,0 10px 22px #0f1d3433!important}.shed-hub-btn,.carousel-hub-btn{position:fixed;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));z-index:36}.rail-home-yellow{background:radial-gradient(circle at 32% 28%,#fde047,#f59e0b 80%,#d97706)!important;border-color:#fff!important;box-shadow:0 5px #b45309,0 10px 22px #b453094d!important}.rail-shed-btn{background:radial-gradient(circle at 30% 28%,#86efac,#22c55e 75%,#15803d)!important;border-color:#fff!important;box-shadow:0 5px #166534,0 10px 22px #15803d4d!important}.rail-top-center{display:flex;align-items:center;gap:10px;pointer-events:none}.rail-gift-bar{appearance:none;pointer-events:auto;display:flex;align-items:center;gap:8px;background:#fffffff0;border:3.5px solid #ffffff;border-radius:999px;padding:5px 10px;box-shadow:0 5px #0f1d3429,0 10px 22px #0f1d342e;cursor:pointer}.rail-gift-bar.gift-ready{background:linear-gradient(180deg,#fef9c3,#fde047);border-color:#f59e0b;animation:rail-pulse .65s ease-in-out infinite alternate;box-shadow:0 5px #b45309,0 0 26px #facc15e6}.gift-bar-star,.gift-bar-box{width:30px;height:30px;display:block;flex-shrink:0}.gift-bar-star svg,.gift-bar-box svg{width:100%;height:100%;display:block}.rail-gift-bar.gift-ready .gift-bar-box{animation:rail-bell-shake .25s ease-in-out infinite alternate}.gift-bar-track{width:clamp(72px,14vw,136px);height:14px;background:#e2e8f0;border-radius:999px;overflow:hidden;border:2px solid #cbd5e1}.gift-bar-fill{display:block;height:100%;width:10%;background:linear-gradient(90deg,#fbbf24,#f59e0b 60%,#22c55e);border-radius:999px;transition:width .35s cubic-bezier(.22,1,.36,1)}.rail-top.is-build-mode{align-items:center;flex-wrap:nowrap}.rail-top.is-build-mode .rail-grow-btn,.rail-top.is-build-mode .rail-shrink-btn,.rail-top.is-build-mode .rail-shed-btn,.rail-top.is-build-mode .rail-fullscreen-btn,.rail-top.is-build-mode .rail-top-center{display:none!important}.rail-top.is-build-mode .rail-mode-toggle.in-build{width:58px;height:58px;padding:6px;border-width:4px;background:radial-gradient(circle at 30% 28%,#86efac,#22c55e 70%,#15803d);box-shadow:0 6px #166534,0 0 0 4px #86efac8c,0 12px 24px #15803d6b}.rail-top.is-build-mode .rail-mode-toggle.in-build:active{transform:translateY(3px) scale(.94)}.rail-recenter-btn.in-build-mode{top:max(12px,env(safe-area-inset-top));right:calc(max(14px,env(safe-area-inset-right)) + 66px);left:auto;bottom:auto;z-index:30;animation:none}.rail-build-dock{pointer-events:none;display:flex;flex-direction:column;gap:6px;width:min(820px,100%);align-self:center;z-index:26}.rail-build-actionbar{pointer-events:none;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:0 4px}.build-tools-pill{pointer-events:auto;display:flex;align-items:center;gap:7px;padding:5px 8px;border-radius:999px;border:3px solid #ffffff;background:#fffcf4f0;box-shadow:0 5px #0f1d342e,0 10px 22px #0f1d3438}.build-tools-pill .build-tool-btn{width:48px;height:48px;padding:9px;border-width:3px}.build-tools-pill .build-tool-btn:disabled,.build-tools-pill .build-tool-btn.is-disabled{opacity:.34;cursor:default;box-shadow:0 2px #0f1d3424}.build-tools-pill .build-tool-btn.erase-active{background:radial-gradient(circle at 30% 28%,#fca5a5,#ef4444 75%,#b91c1c);border-color:#fff;box-shadow:0 4px #7f1d1d,0 0 0 4px #ef44447a}.build-tools-pill .build-tool-btn.erase-active:active{transform:translateY(2px) scale(.94)}.build-sketch-pill{pointer-events:auto;flex-shrink:0;width:48px;height:48px;min-width:44px;min-height:44px;padding:5px;background:linear-gradient(180deg,#fff,#f1f5f9);border:3px solid #ffffff;box-shadow:0 5px #0369a1,0 10px 20px #0f1d3438}.build-sketch-pill.sketch-active{background:linear-gradient(180deg,#bae6fd,#38bdf8);border-color:#0f172a;box-shadow:0 4px #0369a1,0 0 0 3.5px #fde047,0 10px 22px #0369a15c}.build-sketch-pill:active{transform:translateY(2px) scale(.94)}.build-edit-pill{pointer-events:auto;flex-shrink:0;width:48px;height:48px;min-width:44px;min-height:44px;padding:5px;background:linear-gradient(180deg,#fff,#ecfdf5);border:3px solid #ffffff;box-shadow:0 5px #047857,0 10px 20px #0f1d3438}.build-edit-pill.edit-active{background:linear-gradient(180deg,#a7f3d0,#10b981);border-color:#0f172a;box-shadow:0 4px #047857,0 0 0 3.5px #fde047,0 10px 22px #0478575c}.build-edit-pill:active{transform:translateY(2px) scale(.94)}.build-reset-pill{pointer-events:auto;flex-shrink:0;position:relative;width:48px;height:48px;min-width:44px;min-height:44px;padding:7px;background:linear-gradient(180deg,#eff6ff,#bfdbfe);box-shadow:0 5px #1d4ed847,0 10px 20px #0f1d3433}.build-reset-pill .reset-ico{width:100%;height:100%;display:block;position:relative;z-index:1}.build-reset-pill.holding .lock-ring-fg{stroke-dashoffset:0;transition:stroke-dashoffset .65s linear}.rail-builder-depot{appearance:none;position:relative;display:flex;align-items:flex-end;gap:0;background:none;border:none;padding:0;cursor:pointer;pointer-events:auto;flex-shrink:0;transition:transform .14s ease}.rail-builder-depot:active{transform:scale(.94)}.depot-conductor{width:50px;height:58px;margin-right:-10px;z-index:2;filter:drop-shadow(0 4px 8px rgba(0,0,0,.28))}.depot-box{width:58px;height:54px;border-radius:16px;background:linear-gradient(180deg,#f59e0b,#d97706);border:3.5px solid #22c55e;box-shadow:0 5px #15803d,0 10px 20px #00000047;padding:8px;display:block}.depot-conductor svg,.depot-box svg{width:100%;height:100%;display:block}.rail-build-drawer.rail-builder-7{--drawer-accent: #ef4444;pointer-events:auto;display:flex;flex-direction:column;align-items:stretch;gap:0;background:transparent;border:none;border-radius:0;padding:0;box-shadow:none;width:100%}.drawer-tabs-7{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:5px;padding:0 10px;margin-bottom:-4px;width:100%}.cat7-tab{appearance:none;position:relative;z-index:0;flex:1 1 0;max-width:66px;min-width:42px;height:46px;border-radius:16px 16px 0 0;border:3.5px solid #ffffff;border-bottom:none;background:var(--cat-color, #dc2626);padding:7px 6px 8px;cursor:pointer;display:grid;place-items:center;box-shadow:0 -4px 10px #00000029;opacity:.9;transition:transform .14s ease,opacity .14s ease,box-shadow .14s ease}.cat7-tab.active{transform:translateY(-2px);opacity:1;z-index:3;box-shadow:0 -6px 14px #0000003d}.cat7-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:8px;background:var(--cat-color, #dc2626);pointer-events:none}.cat7-tab svg{width:28px;height:28px;display:block;filter:drop-shadow(0 1.5px 2px rgba(15,23,42,.42))}.build-drawer-body{position:relative;z-index:1;border-radius:22px;border:4px solid #ffffff;background:var(--drawer-accent, #dc2626);padding:10px;box-shadow:0 8px #0f1d343d,0 18px 34px #0f1d3457;transition:background .2s ease,box-shadow .2s ease}.rail-builder-7.is-erasing .build-drawer-body{border-color:#fef08a;box-shadow:0 0 0 4px #7f1d1d,0 0 0 7px #fef08a,0 8px #7f1d1d,0 18px 34px #7f1d1d73}.rail-builder-7.is-sketching .build-drawer-body{border-color:#38bdf8;box-shadow:0 8px #0369a1,0 18px 34px #0284c757}.drawer-tracks-panel,.drawer-props-grid{display:block;width:100%;padding:0;overflow:visible}.track-free-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;width:100%}.track-preset-extras{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}.drawer-props-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;max-height:124px;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none;padding:2px 1px}.drawer-props-grid::-webkit-scrollbar,.drawer-tracks-panel::-webkit-scrollbar{display:none}.rail-builder-7 .rail-tile{width:100%;height:54px;border-radius:15px;border:3px solid rgba(255,255,255,.78);background:#fffffff0;padding:5px;box-shadow:0 4px #0f1d3438;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.rail-builder-7 .rail-track-tile{background:#0f172a38;border-color:#ffffffad}.rail-builder-7 .rail-tile:active{transform:scale(.94)}.rail-builder-7 .rail-tile.selected{background:#fffbeb;border-color:#1e293b;transform:translateY(-2px);box-shadow:0 0 0 3.5px #fde047,0 5px #0f172a6b}.track-convert-btn{background:linear-gradient(180deg,#fefce8,#fef08a)!important;border-color:#fff!important;box-shadow:0 4px #b45309,0 0 0 2px #ffffffd9!important}.rail-track-tile,.rail-prop-tile{position:relative}.tile-inf{position:absolute;right:4px;bottom:3px;width:18px;height:11px;color:#ffffffeb;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45));pointer-events:none}.rail-builder-7 .rail-track-tile.selected .tile-inf{color:#b45309;filter:none}.tile-inf svg{width:100%;height:100%;display:block}.tile-lock{position:absolute;inset:0;display:grid;place-items:center;background:#0f172a61;border-radius:inherit;pointer-events:none}.tile-lock svg{width:28px;height:28px}.is-locked>svg{opacity:.52;filter:grayscale(.65)}.rail-shed-overlay{position:fixed;inset:0;pointer-events:none;z-index:32}.shed-conductor-stand{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom));width:clamp(82px,12vw,124px);height:auto;filter:drop-shadow(0 10px 18px rgba(0,0,0,.32));animation:rail-bob 2.4s ease-in-out infinite}.shed-bottom-roster{position:fixed;left:clamp(104px,15vw,150px);right:calc(min(276px,38vw) + 114px);bottom:max(16px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;overflow-x:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x;scrollbar-width:none;padding:12px 10px 6px;pointer-events:auto}.shed-bottom-roster::-webkit-scrollbar,.shed-grid::-webkit-scrollbar{display:none}.shed-roster-chip{position:relative;display:flex;align-items:center;gap:6px;background:#ffffffeb;border:3px solid #ffffff;border-radius:18px;padding:6px 12px;min-height:50px;cursor:pointer;flex-shrink:0;box-shadow:0 4px #0f172a33}.shed-roster-chip.selected{border-color:#22c55e;box-shadow:0 4px #15803d,0 0 0 3px #22c55e59}.chip-wagon{width:52px;height:36px;display:block}.chip-cargo-preview{width:34px;height:28px;display:block;pointer-events:none}.chip-cargo-clear{appearance:none;position:relative;width:44px;height:44px;border:2.5px solid #22c55e;border-radius:12px;background:#f0fdf4;padding:4px;cursor:pointer;display:grid;place-items:center}.chip-cargo-x{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:999px;background:#ef4444;border:1.5px solid #fff;padding:2px;display:grid;place-items:center}.chip-remove-x,.roster-pin-lock{appearance:none;width:44px;height:44px;border-radius:999px;border:2.5px solid #fff;background:#ef4444;padding:10px;display:grid;place-items:center;cursor:pointer;flex-shrink:0;box-shadow:0 3px #991b1b}.roster-pin-lock{background:#f59e0b;box-shadow:0 3px #b45309;cursor:default}.chip-remove-x svg,.roster-pin-lock svg,.chip-cargo-clear svg,.chip-cargo-preview svg,.chip-wagon svg{width:100%;height:100%;display:block}.shed-drive-btn{appearance:none;pointer-events:auto;position:fixed;right:calc(min(276px,38vw) + 18px);bottom:max(18px,env(safe-area-inset-bottom));width:78px;height:78px;border-radius:999px;border:5px solid #e2e8f0;background:radial-gradient(circle at 30% 28%,#86efac,#22c55e 70%,#15803d);padding:12px;cursor:pointer;box-shadow:0 7px #166534,0 16px 30px #00000059;transition:transform .12s ease}.shed-drive-btn:active{transform:translateY(3px) scale(.96)}.shed-drive-btn svg{width:100%;height:100%;display:block}.shed-right-panel{pointer-events:auto;position:fixed;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));width:min(268px,37vw);display:flex;align-items:stretch;z-index:34}.shed-tab-rail{display:flex;flex-direction:column;gap:8px;padding-top:14px;margin-right:-8px;z-index:2}.shed-tab-btn{appearance:none;width:54px;height:54px;border-radius:999px 0 0 999px;border:3.5px solid #ffffff;border-right:none;padding:10px 8px 10px 12px;cursor:pointer;box-shadow:-4px 4px 10px #00000038;transition:transform .14s ease}.shed-tab-btn.tab-red{background:#ef4444}.shed-tab-btn.tab-yellow{background:#facc15}.shed-tab-btn.tab-green{background:#4ade80}.shed-tab-btn.active{transform:translate(-6px) scale(1.06)}.shed-tab-btn svg{width:100%;height:100%;display:block}.shed-panel-body{flex:1;border-radius:22px;border:4px solid #ffffff;padding:10px;display:flex;flex-direction:column;gap:8px;overflow:hidden;box-shadow:0 16px 38px #00000061;background:#ef4444;transition:background .2s ease}.shed-right-panel[data-shed-tab=wagon] .shed-panel-body{background:#f59e0b}.shed-right-panel[data-shed-tab=cargo] .shed-panel-body{background:#22c55e}.shed-panel-head{display:flex;justify-content:flex-end}.shed-back-wrench{appearance:none;width:64px;height:44px;border-radius:999px;border:3px solid #ffffff;background:linear-gradient(180deg,#38bdf8,#0284c7);padding:7px;cursor:pointer;box-shadow:0 4px #0369a1}.shed-back-wrench svg{width:100%;height:100%;display:block}.shed-grid{flex:1;display:grid;grid-template-columns:repeat(2,1fr);gap:8px;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none;padding-right:2px;align-content:start}@keyframes rail-bonk-shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}65%{transform:translate(5px)}}.shake-bonk{animation:rail-bonk-shake .24s ease-in-out}.shed-item-card{appearance:none;position:relative;aspect-ratio:1.25 / 1;border-radius:14px;border:3px solid rgba(255,255,255,.55);background:#00000029;padding:6px;cursor:pointer;display:grid;place-items:center;transition:transform .12s ease,border-color .12s ease}.shed-item-card:active{transform:scale(.94)}.shed-item-card.selected{background:#fffffff0;border-color:#fde047;box-shadow:0 0 0 3px #f59e0b}.shed-item-card svg{width:92%;height:92%;display:block}.rail-carousel-overlay{position:fixed;inset:0;pointer-events:none;z-index:34}.carousel-close-btn{pointer-events:auto;position:fixed;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right))}.carousel-arrow{appearance:none;pointer-events:auto;position:fixed;top:50%;transform:translateY(-50%);width:66px;height:66px;border-radius:999px;border:4px solid #ffffff;background:radial-gradient(circle at 30% 28%,#60a5fa,#2563eb 78%,#1d4ed8);padding:12px;cursor:pointer;box-shadow:0 6px #1e3a8a,0 12px 26px #00000047}.carousel-arrow.left{left:max(14px,env(safe-area-inset-left))}.carousel-arrow.right{right:max(14px,env(safe-area-inset-right))}.carousel-arrow:active{transform:translateY(-50%) scale(.94)}.carousel-arrow svg{width:100%;height:100%;display:block}.carousel-center-cta{pointer-events:auto;position:fixed;left:50%;bottom:calc(max(14px,env(safe-area-inset-bottom)) + 48px);transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:14px}.carousel-play-btn{appearance:none;width:96px;height:96px;border-radius:999px;border:5px solid #ffffff;background:radial-gradient(circle at 32% 28%,#fb923c,#f97316 70%,#c2410c);padding:16px;cursor:pointer;box-shadow:0 8px #9a3412,0 18px 36px #9a341273;animation:rail-pulse 1.1s ease-in-out infinite alternate}.carousel-play-btn.is-create-new{background:radial-gradient(circle at 32% 28%,#4ade80,#16a34a 75%,#15803d);box-shadow:0 8px #14532d,0 18px 36px #14532d73}.carousel-play-btn svg{width:100%;height:100%;display:block}.carousel-biome-picker{display:flex;gap:12px;background:#ffffffeb;padding:8px 14px;border-radius:999px;border:3px solid #ffffff;box-shadow:0 8px 20px #0003}.biome-dot{appearance:none;width:44px;height:44px;border-radius:999px;border:3px solid #ffffff;padding:6px;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px #0000003d}.biome-dot.biome-winter{border-color:#0284c7}.biome-dot svg{width:100%;height:100%;display:block}.biome-dot.active{transform:scale(1.14);box-shadow:0 0 0 3.5px #f97316}.carousel-dots{position:fixed;left:50%;bottom:max(22px,env(safe-area-inset-bottom));transform:translate(-50%);display:flex;gap:7px;background:#ffffffc7;padding:7px 14px;border-radius:999px}.c-dot{width:9px;height:9px;border-radius:999px;background:#1e293b47;display:block}.c-dot.is-custom{background:#ef444473}.c-dot.is-new{background:#22c55e8c}.c-dot.active{width:24px;background:#f97316}.carousel-avatar-btn{appearance:none;pointer-events:auto;position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));width:68px;height:68px;border-radius:20px;border:4px solid #ffffff;background:linear-gradient(180deg,#fffbeb,#fde68a);padding:6px;cursor:pointer;box-shadow:0 6px #b45309,0 12px 24px #00000040}.carousel-avatar-btn svg{width:100%;height:100%;display:block}.carousel-delete-btn{appearance:none;pointer-events:auto;position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:62px;height:62px;border-radius:999px;border:4px solid #ffffff;background:radial-gradient(circle at 30% 25%,#f87171,#dc2626 75%,#991b1b);padding:12px;cursor:pointer;box-shadow:0 6px #7f1d1d,0 12px 24px #0000004d}.carousel-delete-btn .del-ico,.carousel-delete-btn .del-ico svg{width:100%;height:100%;display:block}.carousel-delete-btn.holding .lock-ring-fg{stroke-dashoffset:0;transition:stroke-dashoffset 2s linear}.rail-gift-reveal-card{appearance:none;display:flex;flex-direction:column;align-items:center;gap:14px;background:radial-gradient(circle at 50% 35%,#fffef5,#fef08a);border:6px solid #ffffff;border-radius:36px;padding:26px 38px;cursor:pointer;box-shadow:0 24px 60px #0000006b,0 0 0 6px #f59e0b;animation:rail-pulse .9s ease-in-out infinite alternate}.gift-burst-stars{width:58px;height:58px;display:block}.gift-reward-icon{width:136px;height:104px;display:grid;place-items:center}.gift-reward-icon svg,.gift-burst-stars svg,.gift-ok-pill svg{width:100%;height:100%;display:block}.gift-ok-pill{width:64px;height:64px;border-radius:999px;border:4px solid #ffffff;background:#22c55e;padding:12px;box-shadow:0 5px #15803d}@media(max-width:900px){.rail-gift-bar{padding:4px 8px;gap:6px}.gift-bar-star,.gift-bar-box{width:24px;height:24px}.gift-bar-track{width:clamp(54px,10vw,88px);height:12px}.rail-top-center{gap:6px}}@media(max-width:720px){.rail-top .rail-circle-btn,.rail-top .rail-mode-toggle,.rail-top .parent-lock-btn{min-width:44px;min-height:44px}.rail-recenter-btn.in-build-mode{top:max(8px,env(safe-area-inset-top));right:calc(max(8px,env(safe-area-inset-right)) + 52px);width:44px;height:44px}.drawer-tabs-7{gap:4px;padding:0 6px}.cat7-tab{min-width:44px;height:44px;padding:6px 4px 8px;border-radius:14px 14px 0 0}.cat7-tab svg{width:24px;height:24px}.build-drawer-body{padding:8px;border-radius:18px}.drawer-props-grid{grid-template-columns:repeat(4,1fr);max-height:176px}.rail-builder-7 .rail-tile{height:52px;border-radius:13px;padding:5px}.rail-build-actionbar{padding:0 2px;gap:4px}.build-tools-pill{gap:3px;padding:3px 4px;flex-shrink:0}.build-tools-pill .build-tool-btn,.build-sketch-pill,.build-edit-pill,.build-reset-pill{width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0;padding:7px}.build-sketch-pill,.build-edit-pill{padding:4px}.depot-conductor{display:none}.depot-box{width:44px;height:44px;padding:5px;border-radius:13px}}@media(max-width:720px)and (orientation:portrait){.shed-right-panel{top:auto;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));width:auto;height:min(41vh,330px);flex-direction:column}.shed-tab-rail{flex-direction:row;align-items:flex-end;padding:0 0 0 14px;margin-right:0;margin-bottom:-8px;gap:8px}.shed-tab-btn{width:58px;height:48px;border-radius:18px 18px 0 0;border:3.5px solid #ffffff;border-bottom:none;padding:8px 12px 10px;box-shadow:0 -4px 10px #0000002e}.shed-tab-btn.active{transform:translateY(-5px) scale(1.06)}.shed-panel-body{border-radius:20px;padding:8px 10px;gap:6px}.shed-back-wrench{width:56px;height:36px;padding:5px}.shed-grid{grid-template-columns:repeat(4,1fr);gap:7px}.shed-item-card{aspect-ratio:1.15 / 1;border-radius:12px;padding:5px}.shed-conductor-stand{left:max(10px,env(safe-area-inset-left));bottom:calc(max(8px,env(safe-area-inset-bottom)) + min(41vh,330px) + 8px);width:54px}.shed-drive-btn{right:max(10px,env(safe-area-inset-right));bottom:calc(max(8px,env(safe-area-inset-bottom)) + min(41vh,330px) + 8px);width:62px;height:62px;padding:10px;border-width:4px}.shed-bottom-roster{left:calc(max(10px,env(safe-area-inset-left)) + 58px);right:calc(max(10px,env(safe-area-inset-right)) + 70px);bottom:calc(max(8px,env(safe-area-inset-bottom)) + min(41vh,330px) + 10px);padding:4px;gap:6px}.shed-roster-chip{min-height:44px;padding:3px 6px;gap:4px;border-radius:13px}.chip-wagon{width:32px;height:24px}.chip-remove-x,.roster-pin-lock,.chip-cargo-clear{width:34px;height:34px;padding:7px}}@media(max-height:500px){.shed-right-panel{top:max(6px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));bottom:max(6px,env(safe-area-inset-bottom));width:clamp(202px,31vw,248px)}.shed-tab-rail{padding-top:8px;gap:6px}.shed-tab-btn{width:46px;height:44px;padding:7px 6px 7px 10px}.shed-panel-body{border-radius:18px;padding:7px;gap:5px}.shed-back-wrench{width:52px;height:34px;padding:5px}.shed-grid{grid-template-columns:repeat(2,1fr);gap:6px}.shed-item-card{aspect-ratio:1.32 / 1;border-radius:12px;padding:4px}.shed-conductor-stand{left:max(10px,env(safe-area-inset-left));bottom:max(6px,env(safe-area-inset-bottom));width:54px}.shed-drive-btn{right:calc(max(8px,env(safe-area-inset-right)) + clamp(202px,31vw,248px) + 10px);bottom:max(8px,env(safe-area-inset-bottom));width:56px;height:56px;padding:9px;border-width:4px}.shed-bottom-roster{left:calc(max(10px,env(safe-area-inset-left)) + 60px);right:calc(max(8px,env(safe-area-inset-right)) + clamp(202px,31vw,248px) + 74px);bottom:max(6px,env(safe-area-inset-bottom));padding:4px;gap:6px}.shed-roster-chip{min-height:44px;padding:3px 8px;gap:5px;border-radius:14px}.chip-wagon{width:38px;height:26px}.chip-remove-x,.roster-pin-lock,.chip-cargo-clear{width:36px;height:36px;padding:7px}.rail-recenter-btn.in-build-mode{top:max(6px,env(safe-area-inset-top));right:calc(max(12px,env(safe-area-inset-right)) + 56px);width:46px;height:46px}.rail-build-dock{gap:3px}.build-tools-pill{padding:2px 6px;gap:5px}.build-tools-pill .build-tool-btn,.build-sketch-pill,.build-edit-pill,.build-reset-pill{width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0;padding:7px}.build-sketch-pill,.build-edit-pill{padding:4px}.depot-conductor{width:40px;height:46px}.depot-box{width:48px;height:44px;padding:6px;border-radius:13px}.drawer-tabs-7{gap:4px;padding:0 8px}.cat7-tab{height:44px;padding:6px 6px 8px;border-radius:14px 14px 0 0}.cat7-tab svg{width:24px;height:24px}.build-drawer-body{padding:2px 8px;border-radius:16px}.track-free-tiles,.track-preset-extras,.drawer-props-grid{display:flex;flex-wrap:nowrap;gap:6px;padding:4px 3px;overflow-x:auto;overflow-y:hidden;max-height:none;touch-action:pan-x;scrollbar-width:none}.rail-builder-7 .rail-tile{width:52px;height:44px;flex:0 0 auto;border-radius:12px;padding:4px}.rail-builder-7 .rail-tile.selected{transform:none}.carousel-arrow{width:52px;height:52px;padding:10px}.carousel-play-btn{width:74px;height:74px;padding:12px}.carousel-avatar-btn{width:54px;height:54px;left:max(12px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom))}.carousel-delete-btn{width:50px;height:50px;right:max(12px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}.carousel-dots{bottom:max(10px,env(safe-area-inset-bottom));padding:5px 10px}}@media(max-width:560px){.rail-top{flex-wrap:wrap;row-gap:6px;align-items:center}.rail-top-left{order:1;gap:5px}.rail-top-right{order:2;gap:5px}.rail-top-center{order:3;flex-basis:100%;justify-content:center;gap:8px}.rail-top .rail-circle-btn,.rail-top .rail-mode-toggle{min-width:44px;min-height:44px}.gift-bar-track{width:92px}.carousel-dots{bottom:calc(max(18px,env(safe-area-inset-bottom)) + 84px);max-width:calc(100vw - 28px);flex-wrap:wrap;justify-content:center}.rail-discovery-toast{top:calc(max(8px,env(safe-area-inset-top)) + 98px)}}@media(max-aspect-ratio:3/4){.carousel-center-cta{bottom:calc(max(14px,env(safe-area-inset-bottom)) + 160px)}}:where(.rail-circle-btn,.rail-mode-toggle,.carousel-play-btn,.carousel-arrow,.shed-drive-btn,.rail-hero-power-btn,.shed-tab-btn){position:relative}.rail-circle-btn:after,.rail-mode-toggle:after,.carousel-play-btn:after,.carousel-arrow:after,.shed-drive-btn:after,.rail-hero-action-btn:after{content:"";position:absolute;left:13%;right:13%;top:4%;height:40%;border-radius:50% 50% 46% 46%/62% 62% 38% 38%;background:linear-gradient(180deg,#ffffffd1,#ffffff0a);pointer-events:none}.rail-circle-btn:not([class*=-active]):not(.build-tool-btn){background:radial-gradient(circle at 50% 18%,#fff,#fff6e4 46%,#f0dab5);box-shadow:inset 0 -4px 6px #92602838,0 5px #b98b52,0 7px #5a381459,0 14px 24px #101a3657}.rail-circle-btn svg,.rail-mode-toggle svg,.throttle-knob svg{filter:drop-shadow(0 1.5px .5px rgba(50,28,8,.28))}.rail-circle-btn,.throttle-knob,.cat7-tab,.rail-gift-bar{transition:transform .14s cubic-bezier(.34,1.56,.64,1),box-shadow .12s ease}.rail-circle-btn:active{transform:translateY(4px) scale(.95)}.rail-gift-bar{background:linear-gradient(180deg,#fffdf6,#fdebc8);border-color:#fffef9;box-shadow:inset 0 -4px 6px #92602829,inset 0 2px 2px #fff,0 5px #c39a5f,0 12px 22px #101a364d}.rail-throttle-dock{background:repeating-linear-gradient(91deg,rgba(120,70,20,.1) 0 2px,transparent 2px 9px,rgba(255,240,205,.16) 9px 11px,transparent 11px 23px),linear-gradient(180deg,#f8dcab,#e6b878 55%,#cf9650);border-color:#fff8e8;box-shadow:inset 0 3px 3px #ffffffbf,inset 0 -5px 8px #6e3e0e59,0 6px #93602a,0 16px 28px #101a365c}.throttle-rail{background:linear-gradient(180deg,#6d421b,#8f5f2c 60%,#a8743c);box-shadow:inset 0 5px 9px #28140299,inset 0 -2px 2px #ffe2aa59}.throttle-fill{background:linear-gradient(90deg,#ffd43b,#7bd64e 60%,#22b455);opacity:.72;box-shadow:inset 0 4px 5px #ffffff80}.throttle-stop svg{width:26px;height:26px;opacity:1;filter:drop-shadow(0 2px 1px rgba(40,20,2,.55))}.throttle-knob{background:radial-gradient(circle at 50% 12%,#fff,#fff8ea 55%,#efdcbc);border-color:#e2302a;box-shadow:inset 0 -4px 5px #96602840,inset 0 2px 2px #fff,0 5px #9e1a13,0 10px 16px #0000005c}.build-tools-pill,.rail-mission-bubble{box-shadow:inset 0 -3px 5px #9260281f,0 5px #784e1e66,0 12px 24px #0f1d3447}
