/* Shunt Life 3.0 — mobile-first premium game presentation, scoped to this game. */
:root{--orange:#ffa847;--cream:#fff4d6;--cyan:#84ebda;--glass:#162941ee}
body{
 background:radial-gradient(ellipse 80% 31% at 50% -3%,#ffb14d52,transparent 70%),
            radial-gradient(ellipse 40% 60% at 0 52%,#106883a1,transparent 75%),
            radial-gradient(ellipse 35% 50% at 100% 72%,#94417961,transparent 70%),
            linear-gradient(150deg,#0b203a,#11182d 60%,#091f29);
}
body::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.27;z-index:-1;
 background-image:radial-gradient(#ffffff64 .7px,transparent .8px);background-size:30px 30px;
 mask-image:linear-gradient(to bottom,#0000,#000 25%,#000 95%)}
.shell{max-width:1060px}
.topbar{border-bottom:1px solid #ffca8850;margin-bottom:9px;padding:8px 2px;min-height:65px}
.topbar .back,.sound-btn{background:linear-gradient(150deg,#233954,#0a1b31);border:1px solid #ffbf7390;
 box-shadow:inset 0 1px #ffffff2b,0 5px 14px #0007}
.wordmark b{color:#ffb864;text-shadow:0 0 16px #ff952a8a}
.hero .hero-kicker{color:#90edd8;letter-spacing:2.3px}
.hero h1{font-size:clamp(53px,9vw,91px);letter-spacing:-1.5px;color:#fffdf6;
 text-shadow:0 4px #293c53,0 8px #071a2d,0 14px 36px #050b17cc}
.hero h1 em{color:#ffac4d;text-shadow:0 5px #a9482d,0 11px 28px #ff912344}
.hero h1 sup{font-size:.25em;color:#83f2d7}
.hero p{font-size:clamp(11px,1.8vw,14px);color:#cee8f1}
.district-banner{display:flex;justify-content:space-between;align-items:center;max-width:790px;margin:10px auto 12px;
 gap:8px;padding:10px 15px;border-radius:15px;background:linear-gradient(100deg,#263e58,#142c44);
 border:1px solid #6fd9d354;box-shadow:inset 0 1px #ffffff2c,0 8px 22px #0003;
 color:#fff6dc;font-weight:950;font-size:12px;letter-spacing:1.2px}
.district-banner .district-spark{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;
 background:linear-gradient(#ffc267,#ec8346);border-radius:9px;color:#3e2d30;box-shadow:0 3px 0 #8d4e25;font-size:17px}
#districtLabel{margin-right:auto;color:#fff1cf}#shiftRank{font-size:10px;color:#8df2d5;text-align:right}
.hud{margin-bottom:10px;gap:9px}
.hud article{background:linear-gradient(155deg,#243f5d 0,#10283d 60%,#0b2633 100%);
 border:1px solid #8bacc24f;border-bottom:3px solid #f29d49;box-shadow:inset 0 1px #ffffff35,0 8px 18px #030e1a77;
 border-radius:15px;padding:10px 5px}
.hud span{color:#b2d4e2}.hud strong{color:#ffc174;text-shadow:0 2px 13px #f2944056}
.dispatch-track{max-width:790px;margin:12px auto 8px;padding:8px 13px 11px;border-radius:14px;
 background:#0d243abf;border:1px solid #5cbfb167;box-shadow:inset 0 1px #ffffff10}
.dispatch-track-top{display:flex;justify-content:space-between;align-items:center;gap:7px;color:#b9d1da;font-size:10px;letter-spacing:1.5px;font-weight:900;padding:0 3px 7px}
.dispatch-track-top strong{color:#ffca74;font-size:13px}.dispatch-track-bg{overflow:hidden;border-radius:99px;height:11px;
 background:#040e1b;border:1px solid #426c7b;box-shadow:inset 0 3px 4px #0007}
.dispatch-track-bg i{display:block;height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,#3ce7aa,#a3ffbf 45%,#ffc671);
 box-shadow:0 0 14px #37f9c2;transition:width .35s cubic-bezier(.2,.8,.2,1)}
.yard-zoom{display:flex;align-items:center;justify-content:center;gap:8px;max-width:790px;margin:6px auto 10px;
 padding:5px 8px;background:#0a24359a;border:1px solid #59879970;border-radius:12px}
.yard-zoom span{font-weight:900;font-size:10px;letter-spacing:1.1px;color:#c2e5e5;margin-right:auto}
.yard-zoom strong{min-width:41px;text-align:center;color:#fff1c3;font-size:12px}
.yard-zoom button{min-width:41px;min-height:39px;border-radius:10px;border:1px solid #7ca9b9;
 color:white;background:linear-gradient(155deg,#304c6a,#162a42);font-size:17px;font-weight:950;box-shadow:0 2px 0 #091521}
.yard-zoom button#zoomFit{font-size:11px;padding:0 13px;color:#e1fcf4;border-color:#5fd9ae}
.stage-frame{border:5px solid #ffb75c;border-radius:22px;
 box-shadow:0 0 0 3px #ffe2a03d,0 9px 0 #94452f,0 25px 65px #000a,0 0 55px #fdaa4873;
 background:#1a4152;isolation:isolate}
.stage-frame::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
 box-shadow:inset 0 0 0 2px #ffffff62,inset 0 0 30px #09203061;border-radius:14px}
.ready-row{background:linear-gradient(135deg,#254663,#10263f);border:1px solid #73d4c180;
 box-shadow:inset 0 1px #ffffff36,0 8px 23px #0005;border-radius:17px}
.ready-row .primary,.control-row button,.job-row button,.modal button{transition:transform .13s ease,filter .15s ease,box-shadow .2s ease}
button:not(:disabled):active{transform:translateY(2px) scale(.98);filter:brightness(1.09)}
button:not(:disabled):hover{filter:brightness(1.10)}
.info-row{background:linear-gradient(90deg,#174d5aab,#152b42cc);border:1px solid #5caaa077;color:#e8f8f5}
.control-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.control-row button{font-size:12px;background:linear-gradient(#304c69,#142c43);border:1px solid #719cab;
 min-height:47px;box-shadow:inset 0 1px #ffffff2b,0 3px 0 #061827}
.control-row .undo{border-color:#ffca7e;color:#ffe1a5}
.job-row select{min-height:49px;background:#122a42;border:1px solid #8cc4c766;box-shadow:inset 0 2px #ffffff1e}
.shift-details>div,.howto>div,.score-footer{background:linear-gradient(150deg,#1a3852ef,#101f37e8);
 border:1px solid #7395ad64;box-shadow:inset 0 1px #ffffff17}
.shift-details strong{color:#f9efe3}.score-footer strong{color:#ffbf68}
.overlay{backdrop-filter:blur(16px);background:#050e20e9}
.modal{background:linear-gradient(145deg,#315774,#152e4a 48%,#101a36);border:2px solid #ffc16d;
 box-shadow:0 38px 100px #000b,0 0 45px #ffac3b5c;animation:panelUp .27s cubic-bezier(.2,.82,.2,1)}
.modal.victory{background:radial-gradient(ellipse at 50% 0,#f8b34363,transparent 70%),linear-gradient(145deg,#254d66,#11243d 65%,#121932)}
.modal .stars{letter-spacing:4px;animation:starPop .5s cubic-bezier(.2,.8,.2,1)}
.modal .safe{background:linear-gradient(#4ee1b0,#219980);border:1px solid #a6ffe0;color:#072a30;
 text-shadow:none;box-shadow:0 3px #126456}
@keyframes panelUp{from{opacity:.3;transform:translateY(15px) scale(.97)}to{opacity:1;transform:none}}
@keyframes starPop{from{transform:scale(.73);opacity:0}to{transform:scale(1);opacity:1}}
@media(max-width:699px){
 .topbar{min-height:52px;padding:4px 0 8px}.hero{padding:0 0 6px}.hero h1{font-size:clamp(43px,13vw,65px)}
 .hero p{display:none} .hero-kicker{font-size:8px;letter-spacing:1px}
 .district-banner{margin:5px auto 7px;padding:6px 8px;border-radius:11px;font-size:10px}
 .district-banner .district-spark{width:23px;height:23px;font-size:13px}
 #shiftRank{font-size:9px}.hud{gap:5px;margin-bottom:5px}
 .hud article{padding:6px 2px;border-radius:10px}.hud span{font-size:8px}.hud strong{font-size:clamp(18px,6vw,26px)}
 .dispatch-track{margin:7px auto 6px;padding:5px 9px 7px;border-radius:10px}.dispatch-track-top{padding-bottom:5px;font-size:9px}
 .yard-zoom{margin:0 auto 8px;min-height:44px}.yard-zoom button{min-width:43px;min-height:40px}
 .stage-frame{border-width:3px;border-radius:15px;box-shadow:0 0 0 2px #ffcf7334,0 5px 0 #754326,0 13px 32px #0009}
 .control-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .control-row button{font-size:10px;min-height:45px;padding:8px 2px;border-radius:10px}
 .ready-row{margin-top:10px}.ready-row button{min-height:48px}
 .shift-details{grid-template-columns:1.4fr 1fr .45fr .7fr}
}
@media(max-width:350px){.control-row button{font-size:9px}.yard-zoom span{font-size:8px}}
@media(prefers-reduced-motion:reduce){.dispatch-track-bg i,button,.modal,.modal .stars{transition:none!important;animation:none!important}}
