@font-face{font-family:Fredoka;src:url('./fonts/Fredoka.ttf') format('truetype');font-weight:300 700;font-stretch:75% 125%;font-display:swap}
:root{--banner-h:0px;color-scheme:light;--purple:#7950d7;--dark:#39356d;--ink:#373471;--muted:#746da3;--accent:#ffe16b;--surface:#fff;--display:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif}
*{box-sizing:border-box}
html,body{background:linear-gradient(#0a8afb 0%,#21b4fd 30%,#5cc6ef 46%,#8a4bd0 72%,#46309f 100%);background-attachment:fixed;font-family:var(--display);color:var(--ink)}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible,[role=button]:focus-visible{outline:3px solid #ffa823;outline-offset:5px}
[hidden]{display:none!important}
.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.icon-defs{position:absolute;width:0;height:0;overflow:hidden}
.overlay{background:linear-gradient(155deg,rgba(108,210,255,.98),rgba(177,164,250,.98));backdrop-filter:none;gap:16px;overflow:auto;touch-action:pan-y;padding:30px 22px;padding-top:calc(30px + env(safe-area-inset-top,0px) + var(--banner-h,0px));padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));color:var(--ink)}
.overlay h1{font-family:var(--display);font-size:clamp(32px,7vw,52px);font-weight:700;line-height:1.08;letter-spacing:0;text-shadow:0 3px 0 #ffffffb3;margin:0}
.overlay p{font-family:var(--display);font-size:16px;font-weight:500;color:#47417f;line-height:1.45;max-width:520px}
.overlay .big{font-size:54px;font-weight:700;color:#fff5ae;text-shadow:0 3px 0 #ce811e,0 5px 0 #925b9e;-webkit-text-stroke:1px #b67730}
.overlay button{position:relative;display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:50px;font-family:var(--display);font-size:17px;font-weight:600;line-height:1.15;padding:14px 25px;margin-top:0;border:2px solid #ffffff70;border-radius:18px;background:linear-gradient(#88ed67,#39cb5a);color:#fff;box-shadow:0 6px 0 #259841,0 9px 14px #49429128,inset 0 2px 0 #d8ffac;text-shadow:0 2px 0 #249b46;letter-spacing:.02em;transition:filter .16s,transform .16s,box-shadow .16s}
.overlay button:hover{filter:brightness(1.07);transform:translateY(-2px)}
.overlay button:active{transform:translateY(4px);box-shadow:0 2px 0 #259841,inset 0 2px 0 #d8ffac}
.overlay button.secondary{background:linear-gradient(#a28aff,#7c59e2);border-color:#c9b6ff;color:#fff;box-shadow:0 6px 0 #5e3ab5,0 8px 12px #49429122,inset 0 2px 0 #e1d8ff;text-shadow:0 2px 0 #7150ae}
.overlay button.secondary:active{box-shadow:0 2px 0 #5e3ab5,inset 0 2px 0 #e1d8ff}
.overlay button.small{font-size:15px;padding:12px 20px}
.overlay button:disabled{filter:grayscale(.5);opacity:.6;cursor:wait}
.row{gap:14px;margin-top:6px;padding-bottom:6px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.1em;color:#276998;text-transform:uppercase}
.logo{width:174px;max-height:none;border-radius:26%;border:5px solid #fff;filter:drop-shadow(0 8px 0 #2683c677) drop-shadow(0 16px 16px #1366aa33)}
/* Splash scene: full-bleed art, the registered car/arrow layers, and coins that hover.
   Layers come from tools/make_splash.mjs; the native launch image is the same composition.
   Only transform and opacity are animated, so the scene stays on the compositor while the
   game decodes its models on the main thread. Entrance rides the outer node and the idle
   hover the inner one, so the two never fight over a single transform. */
#loading{z-index:10;background:linear-gradient(#0a8afb 0%,#21b4fd 30%,#5cc6ef 46%,#8a4bd0 72%,#46309f 100%);gap:0;overflow:hidden;padding:calc(30px + env(safe-area-inset-top,0px) + var(--banner-h,0px)) 20px calc(30px + env(safe-area-inset-bottom,0px));transition:opacity .45s ease,transform .45s ease}
#loading.is-done{opacity:0;transform:scale(1.05);pointer-events:none}
.sp-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;animation:sp-drift 26s ease-in-out infinite}
.sp-word{position:relative;z-index:3;transform:rotate(-4deg);animation:sp-in-word .8s cubic-bezier(.21,1.13,.38,1) both}
.sp-mark{display:flex;flex-direction:column;align-items:center;font-family:var(--display);font-weight:700;font-size:clamp(38px,13vw,66px);line-height:.96;letter-spacing:-.025em;filter:drop-shadow(0 8px 6px #2b4d7a40);animation:sp-hover-word 6.2s ease-in-out infinite}
.sp-cast{position:relative;z-index:2;flex:0 0 auto;width:min(76vw,340px);aspect-ratio:1195/1316;margin:clamp(6px,3.4vh,26px) 0 clamp(12px,4.6vh,34px)}
.sp-glow{position:absolute;left:50%;top:56%;width:120%;height:64%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#ffffff5c,#ffffff00 68%);animation:sp-pulse 5.2s ease-in-out infinite}
.sp-layer{position:absolute;will-change:transform}
.sp-layer img{display:block;width:100%;height:auto;will-change:transform}
.sp-arrow,.sp-car{inset:0}
.sp-arrow{animation:sp-in-arrow .85s cubic-bezier(.21,1.13,.38,1) .1s both}
.sp-arrow img{animation:sp-hover-arrow 6.8s ease-in-out -2.4s infinite}
.sp-car{animation:sp-in-car .9s cubic-bezier(.21,1.13,.38,1) .16s both}
.sp-car img{animation:sp-hover-car 5.2s ease-in-out infinite}
.sp-coin{transform:translate(-50%,-50%)}
.sp-c1{left:5%;top:9%;width:27%;animation:sp-in-c1 .8s cubic-bezier(.21,1.2,.4,1) .42s both}
.sp-c2{left:95%;top:88%;width:21%;animation:sp-in-c2 .8s cubic-bezier(.21,1.2,.4,1) .54s both}
.sp-c3{left:-2%;top:66%;width:17%;animation:sp-in-c3 .8s cubic-bezier(.21,1.2,.4,1) .48s both}
.sp-c1 img{animation:sp-hover-a 3.9s ease-in-out -1.1s infinite}
.sp-c2 img{animation:sp-hover-b 4.7s ease-in-out -2.6s infinite}
.sp-c3 img{animation:sp-hover-c 5.5s ease-in-out -.5s infinite}
.sp-foot{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;gap:11px;animation:sp-in-foot .7s ease .3s both}
@keyframes sp-drift{0%,100%{transform:scale(1.06) translate3d(0,0,0)}50%{transform:scale(1.12) translate3d(0,-1.4%,0)}}
@keyframes sp-pulse{0%,100%{opacity:.5}50%{opacity:.85}}
@keyframes sp-in-word{from{opacity:0;transform:rotate(-4deg) translate3d(0,-64px,0) scale(.88)}to{opacity:1;transform:rotate(-4deg)}}
@keyframes sp-in-arrow{from{opacity:0;transform:translate3d(112px,-72px,0) rotate(11deg) scale(.84)}to{opacity:1;transform:none}}
@keyframes sp-in-car{from{opacity:0;transform:translate3d(-128px,74px,0) rotate(-9deg) scale(.86)}to{opacity:1;transform:none}}
@keyframes sp-in-c1{from{opacity:0;transform:translate(-50%,-50%) translate3d(-86px,-74px,0) scale(.5) rotate(-40deg)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes sp-in-c2{from{opacity:0;transform:translate(-50%,-50%) translate3d(92px,66px,0) scale(.5) rotate(38deg)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes sp-in-c3{from{opacity:0;transform:translate(-50%,-50%) translate3d(-78px,64px,0) scale(.5) rotate(30deg)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes sp-in-foot{from{opacity:0;transform:translate3d(0,42px,0)}to{opacity:1;transform:none}}
@keyframes sp-hover-word{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-3.2%,0)}}
@keyframes sp-hover-car{0%,100%{transform:translate3d(0,0,0) rotate(0)}50%{transform:translate3d(0,-3.2%,0) rotate(1.1deg)}}
@keyframes sp-hover-arrow{0%,100%{transform:translate3d(0,0,0) rotate(0)}50%{transform:translate3d(1.4%,2.4%,0) rotate(-1.5deg)}}
@keyframes sp-hover-a{0%,100%{transform:translate3d(0,0,0) rotate(-5deg)}50%{transform:translate3d(3%,-15%,0) rotate(6deg)}}
@keyframes sp-hover-b{0%,100%{transform:translate3d(0,0,0) rotate(5deg)}50%{transform:translate3d(-4%,-13%,0) rotate(-6deg)}}
@keyframes sp-hover-c{0%,100%{transform:translate3d(0,0,0) rotate(3deg)}50%{transform:translate3d(3.5%,-17%,0) rotate(-7deg)}}
#loadingText{font-size:15px;font-weight:600;color:#fff;text-shadow:0 2px 4px #1c4a7a99,0 1px 0 #2a5c8f}
#bar{width:min(56vw,210px);height:14px;background:#ffffff85;border:3px solid white;border-radius:20px;box-shadow:0 3px 0 #478ec355,0 4px 12px #1c4a7a3d}
#bar i{background:linear-gradient(#c1f568,#78d342);border-radius:20px}
@media(orientation:landscape){.sp-cast{width:auto;height:min(46vh,300px)}}
@media(max-height:620px){.sp-cast{width:min(54vw,240px)}.sp-mark{font-size:clamp(30px,9vw,46px)}}
@media(prefers-reduced-motion:reduce){.sp-bg,.sp-mark,.sp-word,.sp-glow,.sp-layer,.sp-layer img,.sp-foot{animation:none}}
#start{padding:0;justify-content:flex-start;gap:0;text-align:center;background:radial-gradient(ellipse at 50% 32%,#b0f0ff 0,transparent 52%),linear-gradient(180deg,#6cd7ff 0%,#9de9ff 42%,#c6d8ff 77%,#cab6f6 100%);isolation:isolate}
#start::after{content:'';position:fixed;z-index:-1;bottom:-80px;left:-10%;width:120%;height:23%;border-radius:50% 50% 0 0;background:linear-gradient(#a7cafa99,#a3a7e0);border-top:5px solid #ffffff2e;pointer-events:none}
.menu-shell{width:100%;max-width:1100px;min-height:100%;margin:auto;padding:24px 38px 22px;display:flex;flex-direction:column;position:relative;isolation:isolate}
.menu-header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative;z-index:2}
.level-badge{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:600;color:#fff;background:linear-gradient(#aa87f6,#8160d6);border:2px solid #d6c4ff;border-radius:18px;padding:11px 16px;box-shadow:0 4px 0 #6d51b6,inset 0 2px 0 #d7bfff;text-shadow:0 2px 0 #7756aa;white-space:nowrap}
.level-badge .icon{width:20px;height:20px}
.header-tools{display:flex;align-items:center;gap:14px}
.menu-wallet{display:flex;align-items:center;gap:8px;background:#ffffffda;border:2px solid #fff;border-radius:18px;padding:6px 14px 6px 6px;min-height:44px;box-shadow:0 4px 0 #6dacc666;color:#5a4781;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.coin{display:flex;align-items:center;justify-content:center;width:29px;height:29px;flex-shrink:0;border-radius:50%;background:linear-gradient(#ffe887,#ffbd25);color:#ed9c16;border:2px solid #fff4a0;box-shadow:0 2px 0 #dca228,inset 0 0 0 2px #f4b638;font-size:18px;text-shadow:0 1px 0 #ffef99}
.overlay .icon-button{width:46px;height:46px;min-height:46px;padding:10px;border:2px solid #fff;background:linear-gradient(#fff,#e5edff);border-radius:16px;color:#7662c1;box-shadow:0 4px 0 #8899ca,inset 0 2px 0 white;text-shadow:none}
.overlay .icon-button:active{box-shadow:0 1px 0 #8899ca}
.menu-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;column-gap:50px;align-content:center;align-items:center;flex:1;padding:45px 0 35px;position:relative}
.menu-intro{grid-column:1;grid-row:1;align-self:end}
#start .game-wordmark{display:flex;flex-direction:column;align-items:center;font-family:var(--display);font-weight:700;font-stretch:100%;font-size:76px;line-height:.96;letter-spacing:-.025em;transform:rotate(-4deg);margin:20px 0 23px;filter:drop-shadow(0 8px 5px #5861a32e)}
.title-upgrade{color:#fff4aa;-webkit-text-stroke:2px #bb792c;paint-order:stroke fill;text-shadow:0 2px 0 #ffc747,0 4px 0 #efac2c,0 7px 0 #c78329,0 9px 0 #a96631;display:block}
.title-line{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:13px}
.title-car{color:#fff;-webkit-text-stroke:3px #506abe;paint-order:stroke fill;text-shadow:0 3px 0 #aee1ff,0 5px 0 #75b5f3,0 8px 0 #5d79c5,0 10px 0 #4a56a1;font-size:1.24em}
.title-pro{display:block;transform:rotate(7deg);font-size:.47em;letter-spacing:.025em;color:#fff;background:linear-gradient(#ffb955,#ff874c);border:3px solid #ffdaa0;border-radius:15px;padding:11px 12px;text-shadow:0 2px 0 #d76639;box-shadow:0 5px 0 #d36548,0 8px 0 #5867a744;line-height:1}
#start .menu-description{font-size:18px;color:#426aa0;margin:0 auto;line-height:1.3}
#start .menu-description strong{font-weight:600;color:#6152b1}
.ride-stage{grid-column:2;grid-row:1 / 3;position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;min-width:0;min-height:410px}
.hero-halo{position:absolute;width:108%;aspect-ratio:1;border-radius:50%;background:radial-gradient(ellipse,#fffad3a6,transparent 67%);z-index:-1}
.hero-art{display:block;width:min(100%,390px);height:auto;aspect-ratio:1;border-radius:27%;border:7px solid #ffffffec;box-shadow:0 9px 0 #628ecc66,0 25px 35px #4864a64d;transform:rotate(5deg);animation:float-toy 5s ease-in-out infinite;position:relative}
@keyframes float-toy{0%,100%{transform:translateY(0) rotate(5deg)}50%{transform:translateY(-8px) rotate(3deg)}}
.floating-star{position:absolute;z-index:1;font-size:50px;line-height:1;color:#fff19d;-webkit-text-stroke:1px #efb633;paint-order:stroke fill;text-shadow:0 3px 0 #eaa03c,0 6px 8px #80638933}
.star-one{left:-4px;top:13%;transform:rotate(-16deg)}.star-two{right:-12px;bottom:14%;font-size:66px;transform:rotate(13deg)}
.hero-sticker{position:absolute;display:flex;align-items:center;gap:6px;bottom:6%;left:50%;transform:translateX(-50%) rotate(-4deg);white-space:nowrap;background:linear-gradient(#fff7b8,#ffe378);border:3px solid #fff8d4;padding:10px 16px;border-radius:14px;color:#8b581f;font-weight:600;font-size:15px;box-shadow:0 5px 0 #e2b346,0 8px 15px #4c5b9d33;z-index:2}
.hero-sticker .icon{width:19px;height:19px;transform:rotate(-35deg);stroke-width:3}
.menu-actions{grid-column:1;grid-row:2;margin-top:28px;align-self:start;padding:0 20px}
.overlay #playBtn{display:flex;justify-content:center;gap:14px;width:100%;font-family:var(--display);font-size:30px;font-weight:700;min-height:74px;padding:18px 24px;margin:0;border-radius:25px;letter-spacing:.025em;background:linear-gradient(#a1ed66 0%,#61d448 48%,#46c54e 100%);border:3px solid #d7ff9c;box-shadow:0 8px 0 #2d9d45,0 12px 0 #31884022,0 15px 20px #4e75b02b,inset 0 3px 0 #e5ffb0;text-shadow:0 3px 0 #279c41}
.overlay #playBtn:active{transform:translateY(6px);box-shadow:0 2px 0 #2d9d45,inset 0 3px 0 #e5ffb0}
#playBtn .play-icon{width:31px;height:31px;filter:drop-shadow(0 3px 0 #2b9b40);stroke-width:3}
.play-context{font-size:13px;color:#4c6398;font-weight:500;margin-top:21px}
#levelsFromMenu{margin-top:15px;width:100%}
.run-preview{display:flex;align-items:center;background:#ffffffa1;border:2px solid #fff;border-radius:18px;padding:8px 10px;margin-bottom:12px;text-align:left;gap:8px;color:var(--ink)}
#menuRide{width:84px;height:60px;object-fit:contain;flex-shrink:0}
.run-preview strong{display:block;font-size:16px;line-height:1.1}.run-preview span{font-size:9px;font-weight:600;color:#7c6ba3}.run-preview small{display:block;font-size:10px;margin-top:4px;color:#776b92}
.menu-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;position:relative;width:100%;max-width:860px;align-self:center;padding-bottom:7px}
.overlay .nav-card{justify-content:center;gap:15px;padding:18px 16px;min-height:97px;border-radius:22px;text-align:left;min-width:0;box-shadow:0 6px 0 var(--btn-bottom),0 10px 12px #5351a323,inset 0 2px 0 #ffffff8a;border:2px solid #ffffffa6;background:linear-gradient(var(--btn-top),var(--btn-base));text-shadow:0 2px 0 var(--btn-shadow);color:#fff}
.overlay .nav-card:active{box-shadow:0 2px 0 var(--btn-bottom);transform:translateY(4px)}
.traffic-card{--btn-top:#ffbf5d;--btn-base:#ff9655;--btn-bottom:#d87d4f;--btn-shadow:#db8952}
.garage-card{--btn-top:#b393ff;--btn-base:#946be9;--btn-bottom:#7652bb;--btn-shadow:#835bbb}
.rides-card{--btn-top:#68cdfd;--btn-base:#49a8eb;--btn-bottom:#3583bc;--btn-shadow:#398dbe}
.nav-toy{display:flex!important;align-items:center;justify-content:center;width:44px;height:46px;flex-shrink:0;filter:drop-shadow(0 3px 0 var(--btn-bottom))}
.nav-toy .icon{width:36px;height:36px;stroke-width:2.4}
.nav-card>span{font-size:19px;font-weight:600;letter-spacing:0;display:block;white-space:nowrap}
.nav-card small{display:block;font-size:12px;font-weight:400;margin-top:5px;letter-spacing:0;color:#fff;text-shadow:0 1px 0 var(--btn-shadow)}
.nav-card small span{font-size:inherit;margin-left:3px}
.nav-card small b{font-weight:500}
.menu-footer{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:#58548d;padding-top:23px;font-weight:500}
.menu-footer .icon{width:21px;height:21px}.keyboard-hint{margin-left:8px;opacity:.75}
.sky-cloud{position:absolute;z-index:-1;width:170px;height:48px;border-radius:100px;background:#ffffff73;pointer-events:none;filter:blur(1px)}
.sky-cloud::before,.sky-cloud::after{content:'';position:absolute;bottom:12px;border-radius:50%;background:inherit;width:75px;height:75px;left:25px}.sky-cloud::after{width:95px;height:90px;left:60px;bottom:0}
.cloud-one{left:-75px;top:170px;transform:rotate(-5deg)}.cloud-two{right:-110px;top:58%;transform:scale(1.3)}.cloud-three{left:3%;bottom:13%;transform:scale(.7);opacity:.6}
.panel-kicker{font-size:12px;letter-spacing:.09em;font-weight:600;color:#5f58a1;background:#ffffff79;border:1px solid #ffffffb0;border-radius:20px;padding:7px 13px}
.slots,.slots.wide{width:min(92vw,850px);gap:12px;padding:5px;max-height:56vh;max-height:56dvh;flex-shrink:1;min-height:80px;overscroll-behavior:contain;touch-action:pan-y;scrollbar-color:#9a7ed7 #ffffff60;scrollbar-width:thin}
.slots,.slots.wide{grid-template-columns:repeat(5,minmax(0,1fr))}
.slot{background:linear-gradient(#fff,#edf0ff);border:2px solid #fff;border-radius:17px;padding:23px 8px 13px;box-shadow:0 4px 0 #8d9bd459;transition:transform .15s,box-shadow .15s;min-width:0}
.slot[data-model]:hover{transform:translateY(-3px);box-shadow:0 7px 0 #8d9bd459}
.slot .n{color:#514184;font-size:13px;font-weight:600;margin-top:5px}
.slot .l{font-size:11px;color:#7b6f9e;opacity:1;margin-top:5px}
.slot .num{font-size:10px;font-weight:600;top:8px;left:9px;color:#837aa6;opacity:1}
.slot .tag{background:linear-gradient(#fff5a3,#ffdb67);color:#97651f;font-size:8px;padding:3px 5px;top:7px;right:6px;box-shadow:0 2px 0 #e3b753;font-weight:600}
.slot .tag.veg{background:#ffb5be;color:#a04366;box-shadow:0 2px 0 #e48f9c}
.slot.empty{border:2px dashed #fff;background:#ffffff3d;color:#7569a3;font-size:13px;font-weight:500;min-height:126px;box-shadow:none}
.slot.unlock{border:2px solid #fff0a4;background:linear-gradient(#fff4b8,#ffdf89);color:#8a5b35;font-size:11px;font-weight:600;min-height:126px;padding:20px 7px;box-shadow:0 4px 0 #d8b974}
.slot.have{background:linear-gradient(#efffdb,#d5f4b0);border-color:#f5ffde}
.slot.new{outline:3px solid #fff383;outline-offset:1px}
.slot.locked{background:#e6e5f3cc;border-color:#f1f2ff99}
.slot.locked img{filter:brightness(0) invert(.55) sepia(.25) hue-rotate(180deg);opacity:.7}
.slot.locked .n{opacity:.85}
.slot.dim{opacity:.65}
.section{font-weight:600;font-size:12px;color:#5b4c8e;opacity:1;padding:16px 0 0;letter-spacing:.03em}
.hint{font-size:13px!important;color:#60528b!important;opacity:1}
.note{color:#74539b!important}
#viewerCanvas{background:radial-gradient(ellipse at 50% 65%,#fff7d4,#eeecff 70%);border:4px solid #fff;border-radius:24px;max-height:52vh;width:min(90vw,620px);object-fit:contain;box-shadow:0 7px 0 #8b87c44d}
#viewerTitle{max-width:90vw;font-size:clamp(28px,5vw,44px)}
.pill{border:2px solid #ffffffa8;background:linear-gradient(#9679e9,#7454d0)!important;box-shadow:0 4px 0 #6041a777;text-shadow:0 2px 0 #604b9d;border-radius:15px;font-family:var(--display);font-size:14px;font-weight:600;letter-spacing:0;padding:9px 14px;color:#fff}
#level{top:calc(18px + env(safe-area-inset-top,0px) + var(--banner-h,0px));font-size:13px}
#bank{font-size:13px;top:calc(18px + env(safe-area-inset-top,0px) + var(--banner-h,0px));right:14px;color:#fff4a5;max-width:30vw;overflow:hidden;text-overflow:ellipsis}
.btn{width:44px;height:44px;border-radius:15px;background:linear-gradient(#fff,#e3edff);color:#7360bd;border:2px solid #fff;box-shadow:0 4px 0 #838ac370;font-weight:400}
.btn:active{box-shadow:0 1px 0 #838ac370}
#sound{left:14px;top:calc(14px + env(safe-area-inset-top,0px) + var(--banner-h,0px))}
#garageBtn{left:14px;top:calc(70px + env(safe-area-inset-top,0px) + var(--banner-h,0px))}
#homeBtn{left:14px;top:calc(124px + env(safe-area-inset-top,0px) + var(--banner-h,0px))}
#restart{right:14px;top:calc(70px + env(safe-area-inset-top,0px) + var(--banner-h,0px))}
#dist{top:calc(66px + env(safe-area-inset-top,0px) + var(--banner-h,0px));height:7px;width:100px;border:2px solid #ffffffc0;background:#7368a980;border-radius:12px}
#dist i{background:#fff089}
#money{min-width:158px;padding:9px 18px;font-size:30px;line-height:1.05;bottom:calc(88px + env(safe-area-inset-bottom,0px));background:linear-gradient(#514583,#3a3368)!important}
#money::before{content:'YOUR CASH';display:block;color:#d6cff5;font-size:10px;font-weight:500;letter-spacing:.06em;margin-bottom:5px;text-shadow:none}
#hud.traffic-mode #money::before{content:'SPEED'}
#progress{width:150px;height:8px;bottom:calc(73px + env(safe-area-inset-bottom,0px));background:#63558299;border:2px solid #fff;border-radius:10px}
#progress i{background:linear-gradient(90deg,#a6f174,#5be790)}
#next{bottom:calc(21px + env(safe-area-inset-bottom,0px));padding:6px 10px;border:2px solid #ffffffbd;border-radius:13px;background:#4d4186e8;color:#fff;font-size:11px;max-width:calc(100vw - 20px);text-shadow:none;box-shadow:0 3px 0 #51427955}
#nextText{overflow:hidden;text-overflow:ellipsis}#nextAt{color:#fff193}#nextImg{background:none;width:39px;height:29px;flex-shrink:0}
#toast{font-family:var(--display);font-size:clamp(25px,6vw,38px);font-weight:700;max-width:92vw;white-space:normal;width:max-content;color:#fff196;-webkit-text-stroke:1px #966936;paint-order:stroke fill;text-shadow:0 3px 0 #bf8040,0 5px 12px #61518e66}
#toast small{font-family:var(--display);font-size:15px;font-weight:600;margin-top:7px;-webkit-text-stroke:0;text-shadow:0 2px 3px #68529d}
#toast.bad{color:#ffbbd0;text-shadow:0 3px 0 #9f5180,0 5px 12px #61518e66;-webkit-text-stroke-color:#a95477}
#toast.premium{color:#e4ff97;text-shadow:0 3px 0 #6caa48,0 5px 12px #61518e66;-webkit-text-stroke-color:#57834b}
#crash h1,#tdone h1{color:#9d477c}
@media(min-width:1000px) and (min-height:820px){.menu-content{padding:65px 0}.hero-art{width:410px}.ride-stage{min-height:450px}}
@media(max-width:760px){
 .menu-shell{max-width:450px;padding:calc(17px + env(safe-area-inset-top,0px) + var(--banner-h,0px)) 24px calc(18px + env(safe-area-inset-bottom,0px))}
 .menu-header{gap:10px}.level-badge{padding:9px 12px;font-size:13px;border-radius:15px;gap:7px}.level-badge .icon{width:17px;height:17px}.header-tools{gap:10px}.menu-wallet{min-height:41px;font-size:15px;padding:5px 11px 5px 5px;gap:7px;border-radius:15px}.coin{width:26px;height:26px;font-size:16px}.overlay .icon-button{width:42px;height:42px;min-height:42px;padding:8px;border-radius:14px}
 .menu-content{display:flex;flex-direction:column;padding:26px 0 20px;gap:0}
 .menu-intro{align-self:stretch}.eyebrow{font-size:11px;letter-spacing:.08em}
 #start .game-wordmark{font-size:57px;line-height:.95;margin:14px 0 18px}.title-line{gap:12px;margin-top:10px}.title-pro{border-radius:12px;padding:8px 10px;border-width:2px}.title-upgrade{-webkit-text-stroke-width:1.5px}.title-car{-webkit-text-stroke-width:2px}
 #start .menu-description{font-size:15px}
 .ride-stage{min-height:0;width:100%;height:206px;margin-top:14px;flex-shrink:0}.hero-art{width:194px;border-width:5px;border-radius:26%;box-shadow:0 7px 0 #628ecc55,0 16px 22px #4864a633}.hero-halo{width:105%}.hero-sticker{font-size:11px;border-width:2px;padding:7px 10px;bottom:0;border-radius:10px}.hero-sticker .icon{width:16px;height:16px}.star-one{left:8px;top:16%;font-size:34px}.star-two{right:0;bottom:16%;font-size:45px}
 .menu-actions{align-self:stretch;margin-top:18px;padding:0 5px}.overlay #playBtn{font-size:28px;min-height:68px;padding:15px 20px;border-radius:23px}#playBtn .play-icon{width:29px;height:29px}.play-context{font-size:12px;margin-top:19px}
 .menu-nav{gap:12px}.overlay .nav-card{flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:99px;padding:10px 5px 12px;border-radius:19px;text-align:center}.nav-toy{width:35px;height:34px}.nav-toy .icon{width:29px;height:29px}.nav-card>span{font-size:15px}.nav-card small{font-size:10px;margin-top:4px}
 .menu-footer{font-size:12px;padding-top:17px}.keyboard-hint{display:none}
 .slots,.slots.wide{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.slot .n{font-size:11px}.slot .l{font-size:10px}
 .cloud-one{top:170px;left:-80px;transform:scale(.7)}.cloud-two{right:-105px;top:54%;transform:scale(.8)}
}
@media(max-width:760px) and (min-height:890px){.menu-content{padding-top:24px;padding-bottom:16px}.ride-stage{height:212px;margin-top:14px}.hero-art{width:196px}.menu-actions{margin-top:17px}}
@media(max-width:760px) and (max-height:780px){.menu-shell{padding-top:calc(12px + env(safe-area-inset-top,0px) + var(--banner-h,0px))}.menu-content{padding-top:18px;padding-bottom:16px}#start .game-wordmark{font-size:51px;margin:11px 0 15px}.ride-stage{height:168px;margin-top:9px}.hero-art{width:158px}.menu-actions{margin-top:14px}.overlay #playBtn{min-height:62px;font-size:26px}.menu-footer{padding-top:14px}.overlay .nav-card{min-height:88px}.nav-toy{height:29px}.nav-toy .icon{width:25px;height:25px}}
@media(max-width:350px){.menu-shell{padding-left:18px;padding-right:18px}.level-badge{font-size:12px;padding:8px 10px}.header-tools{gap:8px}.menu-wallet{font-size:13px}.eyebrow{font-size:10px}#start .game-wordmark{font-size:47px}.nav-card>span{font-size:13px}.nav-card small{font-size:9px}.overlay .nav-card{border-radius:16px}.menu-nav{gap:9px}.star-one{left:-2px}.star-two{right:-6px}}
@media(orientation:landscape) and (max-height:600px){
 .menu-shell{max-width:920px;padding:16px 26px}.menu-content{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;padding:18px 0}.menu-intro{grid-column:1;grid-row:1}.menu-actions{grid-column:1;grid-row:2;margin-top:18px;padding:0}.ride-stage{grid-column:2;grid-row:1 / 3;margin-top:0;height:270px}.hero-art{width:248px}#start .game-wordmark{font-size:52px;margin:10px 0 16px}#start .menu-description{font-size:13px}.hero-sticker{font-size:12px;bottom:0}.eyebrow{font-size:10px}.overlay #playBtn{font-size:24px;min-height:57px}.play-context{font-size:11px;margin-top:17px}.overlay .nav-card{flex-direction:row;align-items:center;min-height:66px;padding:10px 12px;gap:8px;border-radius:17px}.nav-card>span{font-size:17px}.nav-card small{font-size:10px}.nav-toy .icon{width:29px;height:29px}.menu-footer{padding-top:14px}
 .overlay:not(#start):not(#loading){justify-content:flex-start;gap:10px;padding:18px}.overlay h1{font-size:32px}.overlay p{font-size:13px}.overlay .big{font-size:38px}.slots,.slots.wide{grid-template-columns:repeat(5,minmax(0,1fr));max-height:44vh;flex-shrink:0}.slot.empty,.slot.unlock{min-height:100px}#viewerCanvas{max-height:43vh;width:auto;max-width:85vw}.overlay button{min-height:44px;font-size:14px;padding:11px 18px}#money{bottom:calc(62px + env(safe-area-inset-bottom,0px));font-size:24px;padding:7px 15px}#progress{bottom:calc(49px + env(safe-area-inset-bottom,0px))}#next{bottom:calc(5px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Gold coins are the shop currency; run cash retains its dollar display. */
#coinHud{display:flex;align-items:center;gap:6px;top:calc(125px + env(safe-area-inset-top,0px) + var(--banner-h,0px));right:14px;padding:6px 9px;background:linear-gradient(#fff8cd,#ffdf7b)!important;color:#875628;text-shadow:0 1px 0 #fff8d0;border-color:#fff6bb;box-shadow:0 4px 0 #d1a94e80;font-size:13px;max-width:37vw}
#coinHud .coin{width:21px;height:21px;font-size:12px;min-width:21px}
.coin-bump{animation:coin-pop .22s ease-out}
@keyframes coin-pop{50%{transform:scale(1.15)}}
.menu-nav{grid-template-columns:repeat(4,minmax(0,1fr));max-width:100%;gap:16px}
.shop-card{--btn-top:#ffe486;--btn-base:#ffc94f;--btn-bottom:#d9a33b;--btn-shadow:#cf9437}
.overlay .shop-card{color:#8d5d28;text-shadow:0 1px 0 #ffefb6}.shop-card small{color:#90612d;text-shadow:none}.shop-card .nav-toy .coin{width:39px;height:39px;font-size:25px;box-shadow:0 3px 0 #d8982b,inset 0 0 0 3px #f4b638}
.shop-wallet{display:flex;gap:9px;align-items:center;justify-content:center;color:#946128;background:linear-gradient(#fff9dd,#ffeb9b);border:3px solid #fff;border-radius:20px;padding:8px 22px;box-shadow:0 4px 0 #c4ae7244;font-size:15px;min-height:50px}
.shop-wallet strong{font-size:27px;font-weight:600}.shop-wallet .coin{width:31px;height:31px}
#shop .shop-help{font-size:14px;max-width:420px}
.shop-tabs{display:flex;gap:10px;padding-bottom:5px}.shop-tabs button{min-height:40px;font-size:13px;padding:9px 19px;background:#ede8ff;color:#78629f;border-color:#fff;box-shadow:0 3px 0 #a18ec966;text-shadow:none;border-radius:14px}.shop-tabs button[aria-selected=true]{background:linear-gradient(#ad8df7,#9373da);color:white;text-shadow:0 1px 0 #7760a1;box-shadow:0 3px 0 #765da8}
.shop-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;width:min(92vw,850px);max-height:50vh;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;min-height:100px;padding:5px 5px 12px;scrollbar-color:#9a7ed7 #ffffff60;scrollbar-width:thin}
.shop-item{position:relative;background:linear-gradient(#fff,#eff0ff);border:2px solid #fff;border-radius:20px;padding:17px 10px 14px;box-shadow:0 4px 0 #8d9bd459;min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:center}
.shop-item>img{width:100%;height:100px;object-fit:contain;margin:5px auto}.shop-item h2{font-size:14px;line-height:1.15;margin:3px 0 7px;font-weight:600;min-height:32px;display:flex;align-items:center;justify-content:center}.shop-item p{font-size:12px;margin-bottom:12px;color:#8a709f}.shop-item button{min-height:39px;font-size:11px;padding:9px 6px;border-radius:12px;margin-top:auto;letter-spacing:0;border-width:1px;box-shadow:0 4px 0 #259841}.shop-item button:disabled{background:#e9e3f1;color:#95849f;text-shadow:none;border-color:#ece7f4;box-shadow:0 3px 0 #cbc1d7;opacity:1;filter:none;cursor:default}.shop-item.owned{background:linear-gradient(#f5ffed,#def0c9)}
.shop-premium{position:absolute;top:7px;right:7px;font-size:8px;color:#ae7130;background:#fff0b0;padding:3px 5px;border-radius:7px}
#shop .shop-message{font-size:13px;min-height:38px;max-width:520px;color:#635391}.bay-shop-item{grid-column:1/-1;max-width:360px;width:100%;justify-self:center;padding:22px}.bay-art{display:flex;align-items:center;justify-content:center;color:#9781d7;margin:8px 0 18px;gap:12px}.bay-art .icon{width:70px;height:70px;filter:drop-shadow(0 4px 0 #d5c7f4)}.bay-art b{font-size:28px;color:#67bd57}.bay-shop-item h2{font-size:20px;min-height:0}.bay-shop-item button{min-height:45px;font-size:14px;margin-top:12px}
.overlay .coin-result{color:#946128;background:#fff0b2;border:2px solid #fff8de;border-radius:15px;padding:10px 16px;font-size:15px;font-weight:500}
@media(max-width:760px){.menu-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.overlay .nav-card{flex-direction:row;min-height:70px;gap:9px;padding:10px 9px;text-align:left;border-radius:17px}.nav-card>span{font-size:14px}.nav-card small{font-size:10px}.nav-toy{width:30px;height:33px}.nav-toy .icon{width:29px;height:29px}.shop-card .nav-toy .coin{width:29px;height:29px;font-size:17px}.shop-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:45vh}.shop-item>img{height:90px}.shop-item h2{font-size:13px}.shop-item button{font-size:11px}.menu-content{padding-top:20px}.ride-stage{height:236px;margin-top:12px}.hero-art{width:218px}#start .game-wordmark{font-size:53px}.menu-actions{margin-top:21px}}
@media(max-width:760px) and (max-height:780px){.ride-stage{height:148px;margin-top:8px}.hero-art{width:136px}#start .game-wordmark{font-size:42px;margin:8px 0 10px}.menu-content{padding-top:12px;padding-bottom:10px}.menu-nav{gap:11px}.overlay .nav-card{min-height:60px}.menu-footer{font-size:11px;padding-top:9px}.menu-actions{margin-top:12px}}
@media(max-width:350px){.nav-card>span{font-size:12px}.nav-card small{font-size:9px}.overlay .nav-card{gap:7px;padding:9px 6px}.menu-wallet{max-width:126px;overflow:hidden}#start .game-wordmark{font-size:44px}}
@media(orientation:landscape) and (max-height:600px){.menu-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.overlay .nav-card{min-height:65px;padding:10px 7px;gap:6px}.nav-card>span{font-size:13px}.nav-card small{font-size:9px}.ride-stage{height:245px}.hero-art{width:225px}.shop-list{grid-template-columns:repeat(4,minmax(0,1fr));max-height:40vh;flex-shrink:0}#shop{gap:10px}.shop-wallet{min-height:42px;padding:5px 16px}.shop-wallet strong{font-size:23px}.shop-tabs button{min-height:36px;padding:7px 15px}#shop .shop-help{font-size:12px}.panel-kicker{font-size:10px}}
/* Keep decorative clouds inside the menu without clipping the scrollable menu itself. */
.menu-shell{overflow:hidden}
@media(max-width:760px) and (min-height:781px) and (max-height:889px){.menu-content{padding-bottom:12px;padding-top:12px}.ride-stage{height:172px;margin-top:10px}.hero-art{width:158px}#start .game-wordmark{font-size:47px;margin:10px 0 12px}.menu-actions{margin-top:14px}.menu-footer{padding-top:10px}}

/* Short screens: the menu scrolls rather than hiding the bottom nav cards. */
@media(max-width:760px) and (max-height:700px){#start{overflow-y:auto;justify-content:flex-start}.menu-shell{min-height:100%;height:auto;flex-shrink:0}.menu-content{flex:0 0 auto;padding-top:10px;padding-bottom:8px}#start .game-wordmark{font-size:40px;margin:6px 0 9px}.ride-stage{height:96px;margin-top:4px}.hero-art{width:90px}.overlay #playBtn{min-height:50px;font-size:21px}.overlay .nav-card{min-height:48px}.menu-nav{gap:8px;padding-bottom:0}.menu-footer{display:none}}

/* Settings, the in-app privacy policy, and the leave-the-game prompt. */
.set-list{display:flex;flex-direction:column;gap:10px;width:100%;max-width:430px}
.set-row{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;width:100%;
  min-height:64px!important;padding:12px 15px!important;border-radius:18px!important;text-align:left;
  background:linear-gradient(#fff,#eef3ff)!important;border:2px solid #ffffffcc!important;color:var(--ink)!important;
  box-shadow:0 4px 0 #b9c7e6,inset 0 2px 0 #fff!important;text-shadow:none!important}
.set-row:active{transform:translateY(3px);box-shadow:0 1px 0 #b9c7e6!important}
.set-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#e7edff;color:#6a58c4}
.set-ico .icon{width:22px;height:22px}
.set-row b{display:block;font-size:15px;font-weight:600;line-height:1.2}
.set-row small{display:block;font-size:11.5px;font-weight:500;color:var(--muted);margin-top:2px}
.set-val{font-size:11px;font-weight:700;letter-spacing:.06em;color:#6a58c4;background:#e7edff;padding:6px 10px;border-radius:9px}
.set-toggle{width:46px;height:27px;border-radius:99px;background:#c3cde3;position:relative;transition:background .18s}
.set-toggle::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px #0003;transition:transform .18s}
.set-toggle.on{background:#54c56a}
.set-toggle.on::after{transform:translateX(19px)}
.set-version{font-size:12px;font-weight:600;color:#6f6aa5;margin:4px 0 0}
.legal{width:100%;max-width:520px;max-height:56vh;overflow-y:auto;text-align:left;background:#ffffffb8;
  border:2px solid #fff;border-radius:18px;padding:16px 18px;box-shadow:inset 0 2px 6px #4a5b8c14}
.legal p{font-size:13.5px;line-height:1.6;color:#3f3c72;margin:0 0 11px;max-width:none}
.legal h2{font-family:var(--display);font-size:15px;font-weight:700;color:var(--ink);margin:16px 0 6px}
.legal .legal-date{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#7d76b5}
@media(max-width:760px){.set-row{min-height:60px!important}.legal{max-height:50vh}}

/* The level map: a winding road of nodes, current level centred when it opens. */
.overlay .level-badge{min-height:0;font-family:var(--display);letter-spacing:0;text-shadow:0 2px 0 #6d51b6;
  background:linear-gradient(#aa87f6,#8160d6)!important;border:2px solid #d6c4ff!important;
  box-shadow:0 4px 0 #6d51b6,inset 0 2px 0 #d7bfff!important;padding:11px 16px!important;border-radius:18px!important}
.overlay .level-badge:active{transform:translateY(3px);box-shadow:0 1px 0 #6d51b6,inset 0 2px 0 #d7bfff!important}
.ladder{position:relative;width:100%;max-width:390px;max-height:52vh;overflow-y:auto;padding:14px 0 18px;
  -webkit-overflow-scrolling:touch}
.ladder::before{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:7px;transform:translateX(-50%);
  border-radius:99px;background:repeating-linear-gradient(#ffffffb0 0 13px,#ffffff2e 13px 26px)}
.rung{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;padding:8px 0}
.rung[data-side="l"]{transform:translateX(-24%);flex-direction:row-reverse}   /* label outward, so the road stays visible */
.rung[data-side="r"]{transform:translateX(24%)}
.node{position:relative;display:grid!important;place-items:center;width:60px;height:60px;min-height:0!important;
  padding:0!important;border-radius:50%!important;font-family:var(--display);font-size:21px;font-weight:700;
  border:3px solid #fff!important;text-shadow:0 2px 0 #00000026!important;flex:0 0 auto}
.node.done{background:linear-gradient(#8ee86a,#4fc356)!important;box-shadow:0 5px 0 #2f9440,inset 0 2px 0 #d6ffb8!important;color:#fff!important}
.node.now{background:linear-gradient(#ffd76a,#ffab3d)!important;box-shadow:0 5px 0 #cf7f1d,inset 0 2px 0 #fff0bd!important;
  color:#7a4a05!important;text-shadow:0 2px 0 #ffe3a1!important;transform:scale(1.12)}
.node.locked{background:linear-gradient(#dfe6f3,#c2cee2)!important;box-shadow:0 4px 0 #a3b1c9,inset 0 2px 0 #fff!important;
  color:#8593ac!important;text-shadow:none!important;opacity:.85}
.node.milestone{border-color:#ffe08a!important;box-shadow:0 5px 0 #cf9a1d,0 0 0 4px #ffdd8a5c,inset 0 2px 0 #fff0bd!important}
.node.here::after{content:"";position:absolute;inset:-9px;border-radius:50%;border:3px dashed #ffffffc4;animation:node-spin 9s linear infinite}
@keyframes node-spin{to{transform:rotate(360deg)}}
.node-gift{position:absolute;top:-7px;right:-7px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(#ffe27a,#ffb32e);color:#8a5a06;font-size:13px;border:2px solid #fff;box-shadow:0 2px 0 #c9891b}
.node:active{transform:translateY(3px)}
.node.now:active{transform:scale(1.12) translateY(3px)}
.node-note{font-family:var(--display);font-size:11.5px;font-weight:600;color:#4a4487;background:#ffffff9e;
  border-radius:9px;padding:3px 8px;min-width:0;white-space:nowrap}
.node-note:empty{display:none}

/* Reward chips on the level-complete panel. */
.rewards{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin:2px 0 0}
.reward{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:88px;padding:10px 11px;
  background:#ffffffbf;border:2px solid #fff;border-radius:15px;box-shadow:0 3px 0 #ffffff6b,0 5px 10px #4a5b8c1f}
.reward-ico{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#fff3cf;color:#c98b12;margin-bottom:2px}
.reward-ico .icon{width:19px;height:19px}
.reward b{font-family:var(--display);font-size:13px;font-weight:700;color:var(--ink);line-height:1.1;text-align:center}
.reward small{font-size:10px;font-weight:600;color:var(--muted)}
@media(max-width:760px){.ladder{max-height:46vh}.node{width:54px;height:54px;font-size:19px}.reward{min-width:80px}}

/* The ride strip doubles as the booster picker. */
.set-row.on{background:linear-gradient(#fff6d9,#ffe6ab)!important;border-color:#ffd98a!important;box-shadow:0 4px 0 #d9a63c,inset 0 2px 0 #fff!important}
.set-row.empty{opacity:.55}
.set-val.armed{background:linear-gradient(#ffe27a,#ffb32e);color:#7a4a05}
.set-val.dim{background:#e6e9f2;color:#97a2b8}

/* Daily streak dots. */
.streak{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}
.dot{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);
  font-size:13px;font-weight:700;color:#8593ac;background:#ffffff8f;border:2px solid #ffffffc4}
.dot.lit{background:linear-gradient(#ffe27a,#ffb32e);color:#7a4a05;border-color:#fff;box-shadow:0 3px 0 #cf9a1d}

/* Quick-action rail down the edge of the menu. */
.side-rail{position:absolute;right:10px;top:50%;transform:translateY(-50%);z-index:4;display:flex;flex-direction:column;gap:11px}
.overlay .rail-btn{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  width:58px;height:58px;min-height:0!important;padding:0!important;border-radius:19px!important;position:relative;
  background:linear-gradient(#fff,#e7edff)!important;border:2px solid #fff!important;color:#6a58c4!important;
  box-shadow:0 5px 0 #a9b7dd,inset 0 2px 0 #fff!important;text-shadow:none!important}
.overlay .rail-btn:active{transform:translateY(3px);box-shadow:0 2px 0 #a9b7dd,inset 0 2px 0 #fff!important}
.overlay .rail-btn.armed{background:linear-gradient(#ffe9a8,#ffc65c)!important;border-color:#fff3d0!important;
  color:#7a4a05!important;box-shadow:0 5px 0 #d99b23,inset 0 2px 0 #fff6d8!important}
.rail-ico{display:grid;place-items:center}
.rail-ico .icon{width:25px;height:25px}
.rail-label{font-family:var(--display);font-size:9px;font-weight:700;letter-spacing:.06em;line-height:1}
.rail-count{position:absolute;top:-6px;right:-6px;min-width:22px;height:22px;padding:0 5px;border-radius:11px;
  display:grid;place-items:center;background:linear-gradient(#ff8a6b,#f2593a);color:#fff;font-family:var(--display);
  font-size:11px;font-weight:700;border:2px solid #fff;box-shadow:0 2px 0 #c33d24}
@media(max-width:760px){.side-rail{right:7px;gap:9px}.overlay .rail-btn{width:52px;height:52px;border-radius:17px!important}
  .rail-ico .icon{width:22px;height:22px}}
@media(max-width:350px){.side-rail{right:4px}.overlay .rail-btn{width:47px;height:47px}}

/* A banner across the top takes real height, so the menu gives some back - but only on screens
   that actually need it. A tall phone keeps the full-size hero; if it still will not fit, the
   menu scrolls rather than clipping the nav cards. */
html.has-banner #start{overflow-y:auto;justify-content:flex-start}
html.has-banner .menu-shell{min-height:100%;height:auto;flex-shrink:0}
html.has-banner .menu-content{flex:0 0 auto}
@media(max-width:760px){
  html.has-banner .ride-stage{height:168px;margin-top:8px}html.has-banner .hero-art{width:155px}
  html.has-banner #start .game-wordmark{font-size:45px;margin:8px 0 11px}
  html.has-banner .menu-content{padding-top:10px;padding-bottom:10px}html.has-banner .menu-actions{margin-top:13px}
}
@media(max-width:760px) and (max-height:865px){
  html.has-banner .ride-stage{height:136px;margin-top:6px}html.has-banner .hero-art{width:126px}
  html.has-banner #start .game-wordmark{font-size:42px;margin:6px 0 9px}
}
@media(max-width:760px) and (max-height:720px){
  html.has-banner .ride-stage{height:96px;margin-top:4px}html.has-banner .hero-art{width:90px}
  html.has-banner #start .game-wordmark{font-size:37px;margin:5px 0 7px}
  html.has-banner .overlay #playBtn{min-height:52px;font-size:21px}html.has-banner .overlay .nav-card{min-height:52px}
  html.has-banner .menu-footer{display:none}
}
/* A soft shelf under the banner so it reads as part of the frame rather than floating on the art. */
html.has-banner body::before{content:"";position:fixed;left:0;right:0;top:var(--banner-h,0px);height:12px;
  z-index:60;pointer-events:none;background:linear-gradient(#12395e2e,#12395e00)}

/* Coin exchange packs and the "ready" dot on the daily rail button. */
.coin-pack .pack-art{display:flex;align-items:center;justify-content:center;gap:7px;height:74px}
.coin-pack .pack-art .coin{width:38px;height:38px;font-size:23px}
.coin-pack .pack-art b{font-family:var(--display);font-size:22px;font-weight:700;color:#b07a12}
.coin-pack.locked{opacity:.62}
.rail-dot{position:absolute;top:-4px;right:-4px;width:14px;height:14px;border-radius:50%;
  background:linear-gradient(#ff8a6b,#f2593a);border:2px solid #fff;box-shadow:0 2px 0 #c33d24}


/* Practice run: a hand demonstrating the swipe, and a small pill saying what to do. It never
   pauses the game and it has no button - each step clears once you have actually done it. */
#practice{position:absolute;left:0;right:0;bottom:calc(215px + env(safe-area-inset-bottom,0px));z-index:9;
  display:flex;flex-direction:column;align-items:center;gap:12px;pointer-events:none}
#practice[hidden]{display:none!important}
.hand-track{position:relative;width:min(58vw,230px);height:52px}
.hand-track[hidden]{display:none!important}
.hand-track::before{content:"";position:absolute;left:0;right:0;top:26px;height:4px;border-radius:99px;
  background:repeating-linear-gradient(90deg,#ffffffbf 0 10px,#ffffff33 10px 20px)}
.hand{position:absolute;top:6px;left:0;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:#fffffff2;color:#5b4fcf;box-shadow:0 4px 0 #4a5b8c4d,0 8px 16px #2a3f6b3d;
  animation:hand-swipe 2.1s ease-in-out infinite}
.hand .icon{width:24px;height:24px}
@keyframes hand-swipe{
  0%,100%{transform:translateX(0) scale(1)}
  8%{transform:translateX(0) scale(.88)}
  50%{transform:translateX(calc(min(58vw,230px) - 44px)) scale(.88)}
  58%{transform:translateX(calc(min(58vw,230px) - 44px)) scale(1)}
}
.practice-pill{display:flex;align-items:center;gap:9px;padding:9px 15px;border-radius:99px;
  background:#ffffffee;border:2px solid #fff;box-shadow:0 4px 0 #9fb0d64d,0 8px 18px #2a3f6b2e;
  font-family:var(--display);font-size:14px;font-weight:700;color:var(--ink);letter-spacing:.03em}
.practice-pill .icon{width:19px;height:19px;color:#6a58c4}
.practice-pips{display:flex;gap:4px;margin-left:2px}
.practice-pips .pip{width:7px;height:7px;border-radius:50%;background:#c3cde3}
.practice-pips .pip.on{background:#54c56a}
@media(prefers-reduced-motion:reduce){.hand{animation:none}}
@media(max-height:700px){#practice{bottom:calc(178px + env(safe-area-inset-bottom,0px))}.hand-track{height:44px}}
#perfHud{position:absolute;left:12px;top:calc(176px + env(safe-area-inset-top,0px) + var(--banner-h,0px));z-index:5;max-width:56vw;font:600 11px/1.35 ui-monospace,Menlo,Consolas,monospace;color:#fff;background:#1b1b2fb8;padding:5px 8px;border-radius:8px;pointer-events:none;font-variant-numeric:tabular-nums}
