@charset "UTF-8";
/* V7: a livelier arcade around a stable, explicit learning interface. */
:root{--arcade-road-cycle:4.8s;--arcade-ink:#eaf8ff;--arcade-muted:#a8c4da;--arcade-green:#91edbc}
.city-pass-panel{position:relative;isolation:isolate;display:grid;grid-template-columns:98px minmax(0,1fr) auto;align-items:center;gap:22px;padding:25px;border:1px solid color-mix(in srgb,var(--accent,#37e9ff) 43%,#4d5f77);border-radius:18px;background:radial-gradient(ellipse at 0 50%,color-mix(in srgb,var(--accent,#37e9ff) 16%,transparent),transparent 55%),linear-gradient(120deg,#173b50,#11243c);box-shadow:0 10px 32px #0002;overflow:hidden;margin:25px 0}
.city-pass-panel::before{content:'';position:absolute;top:0;left:4%;right:4%;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent-light,#a3f7ff) 60%,transparent),transparent);pointer-events:none}
.city-pass-art{position:relative;display:grid;place-items:center;width:98px;height:110px;max-width:98px;flex:none}
.city-pass-art>img,.city-pass-art>svg{display:block;width:98px;height:110px;max-width:98px;max-height:110px;object-fit:contain;filter:drop-shadow(0 8px 7px #0003);animation:arcade-reward-float 5.8s ease-in-out infinite}
.city-pass-copy{min-width:0}.city-pass-copy .kicker{font-size:.875rem;line-height:1.5;letter-spacing:.08em;margin-bottom:8px;display:block;color:var(--accent-light,#a3f7ff)}
.city-pass-copy h2,.city-pass-copy h3{font-family:var(--display,'Barlow Condensed',Impact,sans-serif);font-size:2.2rem;line-height:1.05;text-transform:uppercase;letter-spacing:.01em;color:#ecfbff;margin:0 0 10px}
.city-pass-copy p{font-size:1rem;line-height:1.65;color:#bdd7e8;margin:0}
.city-pass-stats{display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;margin-top:14px;font-size:.875rem;line-height:1.5;color:#bbd5e6}
.city-pass-stats strong{font-size:1rem;color:#f0fbff;margin-inline-end:4px}.city-pass-action{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:160px}.city-pass-action .btn{min-height:49px;font-size:.95rem;max-width:100%;white-space:normal}.city-pass-action small{font-size:.875rem;line-height:1.5;color:#a7c4d9}
.city-pass-progress{height:5px;width:100%;max-width:340px;background:#25465b;border-radius:15px;overflow:hidden;margin-top:15px}.city-pass-progress>span,.city-pass-progress>div{display:block;height:100%;background:linear-gradient(90deg,var(--accent2,#216aff),var(--accent,#37e9ff));border-radius:15px;transition:width .4s ease}
.mission-track{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:20px 0 27px;min-width:0}
.mission-track-step{position:relative;display:flex;align-items:flex-start;gap:11px;min-width:0;padding:17px 15px;border:1px solid #3b576f;border-radius:12px;background:linear-gradient(125deg,#142e44,#0d2138);color:#a9c3d7;line-height:1.5;isolation:isolate}
.step-icon{position:relative;display:grid;place-items:center;width:33px;height:33px;min-width:33px;border:1px solid #638095;border-radius:50%;background:#1b384f;color:#b1d2e5;font-size:1rem;line-height:1;isolation:isolate}
.step-icon svg{width:18px;height:18px}.step-copy{min-width:0;flex:1;font-size:.875rem;line-height:1.5}.step-copy strong{display:block;font-size:.95rem;font-weight:700;line-height:1.4;margin-bottom:4px;color:#dceefa}.step-copy small,.step-copy span{font-size:.875rem;line-height:1.55;display:block}
.mission-track-step.is-earned,.mission-track-step.earned{border-color:#5d977e;background:linear-gradient(125deg,#1b3e35,#133139);color:#bddfcc}.mission-track-step.is-earned .step-icon,.mission-track-step.earned .step-icon{background:#8ce5b8;border-color:#b5f4d1;color:#0c3a29}.mission-track-step.is-earned .step-copy strong,.mission-track-step.earned .step-copy strong{color:#e4fff0}
.mission-track-step.current,.mission-track-step.is-current{border-color:var(--accent,#37e9ff);background:linear-gradient(125deg,color-mix(in srgb,var(--accent,#37e9ff) 13%,#16334b),#10293e);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent,#37e9ff) 10%,transparent)}
.mission-track-step.current .step-icon,.mission-track-step.is-current .step-icon{border-color:var(--accent,#37e9ff);color:var(--accent-light,#a3f7ff);background:color-mix(in srgb,var(--accent,#37e9ff) 16%,#163348)}
.mission-track-step.current .step-icon::after,.mission-track-step.is-current .step-icon::after{content:'';position:absolute;inset:-4px;border:1px solid var(--accent,#37e9ff);border-radius:50%;z-index:-1;pointer-events:none;animation:arcade-checkpoint-light 2.8s ease-out infinite}
.combo-meter{position:relative;display:flex;align-items:center;gap:12px;padding:12px 15px;border:1px solid color-mix(in srgb,var(--accent,#37e9ff) 36%,#4b5e78);border-radius:13px;background:linear-gradient(115deg,#163548,#0f263e);min-width:0;color:#e1f6ff}
.combo-ring{position:relative;display:grid;place-items:center;width:64px;height:64px;min-width:64px;border:2px solid color-mix(in srgb,var(--accent,#37e9ff) 67%,#4b6176);border-radius:50%;background:radial-gradient(circle,#24506a,#102940);isolation:isolate}
.combo-ring::before{content:'';position:absolute;inset:-5px;border:1px solid color-mix(in srgb,var(--accent,#37e9ff) 25%,transparent);border-radius:50%;pointer-events:none}
.combo-avatar{position:relative;z-index:1;display:block;width:39px;height:49px;min-width:39px;border:1px solid #90c3d2;border-radius:45% 45% 42% 42%;background:#34586c;overflow:hidden}.combo-avatar>img,.combo-avatar>svg{display:block;width:100%;height:100%;object-fit:cover;filter:none}
.combo-copy{min-width:0;flex:1;font-size:.875rem;line-height:1.5;color:#a8c9de}.combo-copy strong,.combo-count{display:block;font-family:var(--display,'Barlow Condensed',Impact,sans-serif);font-size:1.8rem;line-height:1;letter-spacing:.015em;color:#edfbff;margin:0 0 6px}.combo-copy span,.combo-copy small{display:block;font-size:.875rem;line-height:1.5}
.combo-meter:not([data-combo="0"]):not([data-combo="1"]):not([data-combo="2"]) .combo-ring::after{content:'';position:absolute;inset:-5px;border:2px solid transparent;border-top-color:var(--accent-light,#a3f7ff);border-inline-end-color:color-mix(in srgb,var(--accent,#37e9ff) 50%,transparent);border-radius:50%;pointer-events:none;animation:arcade-combo-orbit 5.5s linear infinite}
.combo-meter[data-combo="0"] .combo-ring{border-color:#597187}.combo-meter[data-combo="0"] .combo-copy{color:#a2bdd1}
.run-objective{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0;padding:13px 15px;margin:13px 0 17px;border:1px solid #42627c;border-radius:11px;background:linear-gradient(110deg,#142f45,#11263d);font-size:.95rem;line-height:1.55;color:#c5deee}
.run-objective strong{font-size:1rem;line-height:1.45;color:#effaff}.run-objective small{font-size:.875rem;line-height:1.5;color:#a8c6db}.run-objective svg{width:20px;height:20px;color:var(--accent-light,#a3f7ff)}
.objective-pips{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.objective-pip{width:8px;height:8px;background:#36536d;border:1px solid #678197;border-radius:50%}.objective-pip.is-earned{background:#96e9bd;border-color:#b4f6d5}.objective-pip.current{border-color:var(--accent-light,#a3f7ff);background:var(--accent,#37e9ff);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#37e9ff) 12%,transparent)}
.run-loot{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;min-width:0;margin:12px 0 17px;line-height:1.45;isolation:isolate}
.loot-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:33px;max-width:100%;padding:7px 10px;border:1px solid #587185;border-radius:7px;background:#1a364c;color:#def5ff;font-size:.875rem;font-weight:700;line-height:1.4;white-space:normal}.loot-chip strong{font-size:.95rem;line-height:1.3;color:#effaff}.loot-chip>svg{width:17px;height:17px}.loot-chip.xp-chip{background:#2c3153;border-color:#746b9c;color:#e3dcff}.loot-chip.coin-chip{background:#3b352d;border-color:#a18450;color:#ffe5ad}.loot-chip.is-flying,.loot-fly{animation:arcade-loot-fly .9s ease-out both;pointer-events:none}
.badge-wall{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px;margin:20px 0;min-width:0}
.badge-card{position:relative;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:12px;min-width:0;min-height:170px;padding:22px 16px;border:1px solid #3b556f;border-radius:14px;background:linear-gradient(140deg,#132b43,#0d2137);color:#9db7cc;text-align:center;line-height:1.5;isolation:isolate;overflow:hidden}
.badge-art{display:grid;place-items:center;width:58px;height:58px;max-width:58px;min-width:58px;color:#90afc5;opacity:.7}.badge-art>img,.badge-art>svg{display:block;width:58px;height:58px;max-width:58px;max-height:58px;object-fit:contain}.badge-copy{min-width:0;max-width:100%}.badge-copy strong{display:block;font-size:.95rem;font-weight:700;line-height:1.4;margin:0 0 5px;color:#c5dceb}.badge-copy small,.badge-copy span{font-size:.875rem;line-height:1.55;display:block;color:#9fbbce}
.badge-card.is-earned{border-color:color-mix(in srgb,var(--accent,#37e9ff) 42%,#517d7f);background:radial-gradient(ellipse at 50% 15%,color-mix(in srgb,var(--accent,#37e9ff) 13%,transparent),transparent 70%),linear-gradient(140deg,#183b48,#102b3b);color:#d9f5ea}.badge-card.is-earned .badge-art{color:var(--accent-light,#a3f7ff);opacity:1;animation:arcade-badge-float 5.8s ease-in-out infinite;animation-delay:var(--badge-delay,-.8s)}.badge-card.is-earned:nth-child(2n){--badge-delay:-2s}.badge-card.is-earned:nth-child(3n){--badge-delay:-3.4s}.badge-card.is-earned .badge-copy strong{color:#e9fff6}.badge-card.is-earned .badge-copy small,.badge-card.is-earned .badge-copy span{color:#b5dccc}
.reward-reveal{position:relative;display:flex;align-items:center;justify-content:center;gap:25px;padding:27px;margin:23px 0;border:1px solid color-mix(in srgb,var(--accent,#37e9ff) 49%,#6b6a94);border-radius:18px;background:radial-gradient(ellipse at 25% 50%,color-mix(in srgb,var(--accent,#37e9ff) 16%,transparent),transparent 70%),linear-gradient(130deg,#1c3651,#252745);overflow:hidden;isolation:isolate}
.reveal-art{position:relative;display:block;max-width:190px;width:190px;height:155px;flex:none;animation:arcade-reward-float 5.6s ease-in-out infinite}.reveal-art>img,.reveal-art>svg{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 9px 9px #0003)}
.reveal-copy{min-width:0;text-align:start}.reveal-copy .kicker{display:block;font-size:.875rem;line-height:1.5;color:#d8ceff;margin-bottom:10px}.reveal-copy h2,.reveal-copy h3{font-family:var(--display,'Barlow Condensed',Impact,sans-serif);font-size:2.2rem;line-height:1;text-transform:uppercase;letter-spacing:.02em;color:#f0fbff;margin:0 0 12px}.reveal-copy p{font-size:1rem;line-height:1.65;color:#bfd6e8;margin:0 0 14px}.reveal-copy .btn{font-size:.95rem;min-height:47px;max-width:100%;white-space:normal}
.reward-reveal.is-revealed{animation:arcade-reveal .7s cubic-bezier(.2,.8,.2,1) both}
/* The city's artwork breathes. Question text, QCM rows and source pixels do not. */
.page:not([hidden]) .hero-bg>img{animation:arcade-city-parallax 14s ease-in-out infinite;transform-origin:center;will-change:transform}
.page:not([hidden]) .hero-art>.world-scene{animation:arcade-hero-hover 6.4s ease-in-out infinite;transform-origin:58% 78%;will-change:transform}
.page:not([hidden]) .hero-art .scene-car{animation:arcade-hero-car 4.8s ease-in-out infinite;transform-origin:50% 80%;will-change:transform}
.page:not([hidden]) .hero-art .actor{animation:arcade-hero-pilot 5.7s ease-in-out infinite;transform-origin:50% 80%;will-change:transform}
.hero-bg::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 60% 60%,color-mix(in srgb,var(--accent,#37e9ff) 20%,transparent),transparent 58%);opacity:.5;animation:arcade-city-glow 7.5s ease-in-out infinite}
.page:not([hidden]) .city-card.selected .city-thumb>img{animation:arcade-selected-city 10s ease-in-out infinite;will-change:transform}
.city-card.selected::after{animation:arcade-selected-glow 4.2s ease-in-out infinite}
.page:not([hidden]) .learning-focus-art>img,.page:not([hidden]) #results-celebration .result-reward-art{animation:arcade-reward-float 5.4s ease-in-out infinite;will-change:transform}
.page:not([hidden]) .garage-feature-car>img,.page:not([hidden]) .car-card.is-equipped .car-render>img{animation:arcade-garage-hover 5.7s ease-in-out infinite;transform-origin:50% 80%;will-change:transform}
.road-ready .road-driver-rig{animation:arcade-road-suspension var(--arcade-road-cycle,4.8s) ease-in-out infinite;transform-origin:34% 81%;will-change:transform}
.road-v7-motion{position:absolute;left:0;right:auto;top:auto;bottom:0;width:58%;height:38%;overflow:hidden;z-index:1;pointer-events:none;direction:ltr;contain:layout style}
.road-v7-motion[hidden]{display:none!important}.road-picture-wrap:has(>.road-v7-motion)>.road-ambient-layer{display:none}
.road-v7-motion .road-streak,.road-v7-motion .road-v7-streak{position:absolute;left:9%;bottom:13%;width:70px;height:2px;border-radius:5px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent,#37e9ff) 80%,transparent),transparent);opacity:.4;pointer-events:none;animation:arcade-road-streak 3.6s ease-in-out infinite;will-change:transform,opacity}
.road-v7-motion .road-streak:nth-child(2),.road-v7-motion .road-v7-streak:nth-child(2){left:47%;bottom:24%;width:45px;animation-duration:4.2s;animation-delay:-.8s}
.road-v7-motion .road-streak:nth-child(3),.road-v7-motion .road-v7-streak:nth-child(3){left:20%;bottom:48%;width:32px;animation-duration:3.4s;animation-delay:-1.6s}
.road-v7-motion .road-streak:nth-child(4),.road-v7-motion .road-v7-streak:nth-child(4){left:62%;bottom:58%;width:50px;animation-duration:4.6s;animation-delay:-2.4s}
.road-v7-motion .road-spark,.road-v7-motion .road-v7-spark{position:absolute;display:block;left:20%;bottom:28%;width:8px;height:8px;border-radius:50%;background:radial-gradient(circle,var(--accent-light,#a3f7ff) 0 15%,color-mix(in srgb,var(--accent,#37e9ff) 55%,transparent) 40%,transparent 72%);opacity:.55;animation:arcade-road-spark 4.4s ease-in-out infinite;pointer-events:none;will-change:transform,opacity}
.road-v7-motion .road-spark:nth-last-child(2),.road-v7-motion .road-v7-spark:nth-last-child(2){left:56%;bottom:10%;width:6px;height:6px;animation-duration:5s;animation-delay:-1.2s}
.road-v7-motion .road-spark:nth-last-child(1),.road-v7-motion .road-v7-spark:nth-last-child(1){left:77%;bottom:40%;width:7px;height:7px;animation-duration:4.8s;animation-delay:-2.8s}
@media(hover:hover){body .btn:not(.answer-button):not(:disabled):hover{transform:translateY(-2px) scale(1.012);transition:transform .2s cubic-bezier(.2,.9,.25,1.3),background .18s,box-shadow .18s}.city-card:not(:disabled):hover,.car-card:not(.is-locked):hover{translate:0 -2px;transition:translate .22s cubic-bezier(.2,.9,.25,1.3),border-color .18s,box-shadow .18s}}
body .btn:not(.answer-button):not(:disabled):active{transform:translateY(1px) scale(.985);transition:transform .1s ease}
/* Finite post-answer XP/coin burst, at a clamped origin supplied by the module. */
.arcade-burst{position:fixed;left:var(--origin-x,50%);top:var(--origin-y,50%);width:0;height:0;z-index:1200;pointer-events:none;isolation:isolate;direction:ltr}
.arcade-chip{position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;min-width:58px;max-width:min(270px,80vw);padding:8px 12px;border:1px solid color-mix(in srgb,var(--accent-light,#a3f7ff) 68%,#728d9d);border-radius:9px;background:color-mix(in srgb,var(--accent,#37e9ff) 17%,#0a2739);box-shadow:0 5px 16px #0004;color:#effcff;font-family:Arial,Helvetica,sans-serif;font-size:.95rem;font-weight:700;line-height:1.4;white-space:nowrap;text-align:center;animation:arcade-chip-flight 1.45s cubic-bezier(.15,.55,.3,1) both;animation-delay:var(--delay,0ms);pointer-events:none}
.arcade-spark{position:absolute;left:0;top:0;display:block;width:27px;height:27px;font-size:1.35rem;line-height:1;text-align:center;animation:arcade-spark-flight 1.65s ease-out both;animation-delay:var(--delay,0ms);pointer-events:none;filter:drop-shadow(0 3px 4px #0002)}
.arcade-burst.is-checkpoint .arcade-spark{font-size:1.5rem;width:30px;height:30px;animation-duration:1.7s}
.arcade-burst.is-reduced-motion .arcade-chip{animation:none!important;opacity:1;transform:translate(-50%,-50%)!important;max-width:80vw;white-space:normal}
.arcade-burst.is-reduced-motion .arcade-spark{animation:none!important;opacity:1;transform:translate(-50%,-50%)!important}
@keyframes arcade-road-suspension{0%,100%{transform:translate3d(0,2px,0) rotate(-.1deg)}33%{transform:translate3d(0,-5px,0) rotate(.14deg)}61%{transform:translate3d(0,-1px,0) rotate(.02deg)}83%{transform:translate3d(0,3px,0) rotate(-.1deg)}}
@keyframes arcade-city-parallax{0%,100%{transform:translate3d(-5px,0,0) scale(1.035)}50%{transform:translate3d(5px,-2px,0) scale(1.045)}}
@keyframes arcade-hero-hover{0%,100%{transform:translate3d(0,3px,0) rotate(-.12deg)}45%{transform:translate3d(0,-5px,0) rotate(.16deg)}73%{transform:translate3d(0,-1px,0) rotate(.02deg)}}
@keyframes arcade-hero-car{0%,100%{transform:translate3d(0,2px,0) rotate(-.14deg)}43%{transform:translate3d(0,-4px,0) rotate(.2deg)}70%{transform:translate3d(0,-1px,0) rotate(.02deg)}}
@keyframes arcade-hero-pilot{0%,100%{transform:translate3d(0,1px,0) rotate(-.4deg)}50%{transform:translate3d(0,-3px,0) rotate(.45deg)}}
@keyframes arcade-city-glow{0%,100%{opacity:.35;transform:translate3d(-4px,2px,0)}50%{opacity:.7;transform:translate3d(5px,-3px,0)}}
@keyframes arcade-selected-city{0%,100%{transform:translate3d(-2px,0,0) scale(1.035)}50%{transform:translate3d(2px,-2px,0) scale(1.065)}}
@keyframes arcade-selected-glow{0%,100%{opacity:.45}50%{opacity:.95}}
@keyframes arcade-reward-float{0%,100%{transform:translate3d(0,2px,0) rotate(-1.3deg)}45%{transform:translate3d(0,-5px,0) rotate(1.4deg)}73%{transform:translate3d(0,-1px,0) rotate(.3deg)}}
@keyframes arcade-garage-hover{0%,100%{transform:translate3d(0,2px,0) rotate(-.12deg)}40%{transform:translate3d(0,-4px,0) rotate(.16deg)}72%{transform:translate3d(0,-1px,0) rotate(.02deg)}}
@keyframes arcade-badge-float{0%,100%{transform:translate3d(0,1px,0) rotate(-1.5deg)}50%{transform:translate3d(0,-4px,0) rotate(1.5deg)}}
@keyframes arcade-combo-orbit{to{transform:rotate(360deg)}}
@keyframes arcade-checkpoint-light{0%{opacity:.7;transform:scale(.92)}80%,100%{opacity:0;transform:scale(1.38)}}
@keyframes arcade-road-streak{0%,100%{opacity:.08;transform:translate3d(-19px,2px,0)}48%{opacity:.5;transform:translate3d(21px,-2px,0)}}
@keyframes arcade-road-spark{0%,100%{opacity:.2;transform:translate3d(-4px,5px,0) scale(.85)}50%{opacity:.75;transform:translate3d(5px,-9px,0) scale(1.1)}}
@keyframes arcade-loot-fly{0%{opacity:0;transform:translateY(7px) scale(.9)}20%{opacity:1;transform:translateY(-3px) scale(1.05)}75%{opacity:1}100%{opacity:0;transform:translateY(-35px) scale(.96)}}
@keyframes arcade-chip-flight{0%{opacity:0;transform:translate(-50%,-50%) scale(.8)}14%{opacity:1;transform:translate(-50%,-60%) scale(1.07)}76%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--dx,0px)),calc(-50% + var(--dy,-72px))) scale(.94)}}
@keyframes arcade-spark-flight{0%{opacity:0;transform:translate(-50%,-50%) scale(.45) rotate(-15deg)}15%{opacity:1}80%{opacity:.9}100%{opacity:0;transform:translate(calc(-50% + var(--dx,0px)),calc(-50% + var(--dy,-80px))) scale(1.1) rotate(22deg)}}
@keyframes arcade-reveal{0%{opacity:0;transform:translateY(14px) scale(.97)}68%{opacity:1;transform:translateY(-2px) scale(1.005)}100%{opacity:1;transform:none}}
@media(max-width:1250px){.city-pass-panel{grid-template-columns:85px minmax(0,1fr);gap:20px;padding:24px}.city-pass-art{width:85px;max-width:85px;height:100px}.city-pass-art>img,.city-pass-art>svg{width:85px;height:100px;max-width:85px;max-height:100px}.city-pass-action{grid-column:2;align-items:flex-start;min-width:0}.city-pass-copy h2,.city-pass-copy h3{font-size:2rem}.mission-track{gap:10px}.mission-track-step{padding:16px 13px;gap:10px}.reward-reveal{gap:22px;padding:25px}.reveal-art{width:170px;height:145px;max-width:170px}.reveal-copy h2,.reveal-copy h3{font-size:2rem}}
@media(max-width:800px){.city-pass-panel{padding:23px;gap:18px}.city-pass-copy h2,.city-pass-copy h3{font-size:1.9rem}.mission-track{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.combo-meter{padding:11px 13px;gap:10px}.combo-ring{width:59px;height:59px;min-width:59px}.combo-avatar{width:36px;height:45px;min-width:36px}.combo-copy strong,.combo-count{font-size:1.65rem}.badge-wall{gap:12px}.badge-card{padding:21px 14px}.reward-reveal{gap:20px}.reveal-art{width:155px;height:135px;max-width:155px}.reveal-copy h2,.reveal-copy h3{font-size:1.9rem}}
@media(max-width:620px){.city-pass-panel{grid-template-columns:65px minmax(0,1fr);gap:15px;padding:21px 18px;margin:22px 0;border-radius:15px}.city-pass-art{width:65px;min-width:65px;max-width:65px;height:80px;align-self:start;margin-top:7px}.city-pass-art>img,.city-pass-art>svg{width:65px;height:80px;max-width:65px;max-height:80px}.city-pass-copy .kicker{font-size:.875rem;line-height:1.5;letter-spacing:.035em;margin-bottom:8px}.city-pass-copy h2,.city-pass-copy h3{font-size:1.85rem;line-height:1.1;margin-bottom:11px}.city-pass-copy p{font-size:1rem;line-height:1.65}.city-pass-stats{gap:8px 11px;margin-top:13px;font-size:.875rem;line-height:1.5}.city-pass-stats strong{font-size:1rem}.city-pass-action{grid-column:1/-1;align-items:stretch;gap:9px;width:100%}.city-pass-action .btn{width:100%;min-height:49px;font-size:1rem}.city-pass-action small{font-size:.875rem;line-height:1.55}.city-pass-progress{max-width:none;margin-top:14px}.mission-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:19px 0 23px}.mission-track-step{padding:15px 12px;gap:9px;border-radius:11px;min-height:95px}.step-icon{width:30px;height:30px;min-width:30px;font-size:.95rem}.step-icon svg{width:17px;height:17px}.step-copy{font-size:.875rem;line-height:1.5}.step-copy strong{font-size:.95rem;line-height:1.4;margin-bottom:4px}.step-copy span,.step-copy small{font-size:.875rem;line-height:1.5}.combo-meter{gap:11px;padding:12px 13px;border-radius:12px}.combo-ring{width:59px;height:59px;min-width:59px}.combo-avatar{width:36px;height:45px;min-width:36px}.combo-copy{font-size:.875rem;line-height:1.5}.combo-copy strong,.combo-count{font-size:1.7rem;line-height:1;margin-bottom:6px}.combo-copy span,.combo-copy small{font-size:.875rem;line-height:1.5}.run-objective{gap:9px;padding:12px 13px;margin:12px 0 16px;border-radius:10px;font-size:.95rem;line-height:1.55}.run-objective strong{font-size:1rem;line-height:1.45}.run-objective small{font-size:.875rem;line-height:1.55}.run-objective svg{width:19px;height:19px}.run-loot{gap:7px;margin:12px 0 16px}.loot-chip{font-size:.875rem;min-height:33px;padding:7px 9px;border-radius:6px;gap:6px}.loot-chip strong{font-size:.95rem}.loot-chip>svg{width:17px;height:17px}.badge-wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:19px 0}.badge-card{padding:20px 12px;min-height:165px;gap:11px;border-radius:12px}.badge-art{width:53px;height:53px;min-width:53px;max-width:53px}.badge-art>img,.badge-art>svg{width:53px;height:53px;max-width:53px;max-height:53px}.badge-copy strong{font-size:.95rem;line-height:1.4}.badge-copy small,.badge-copy span{font-size:.875rem;line-height:1.55}.reward-reveal{flex-direction:column;gap:18px;padding:24px 20px;margin:22px 0;border-radius:15px}.reveal-art{width:160px;height:135px;max-width:160px}.reveal-copy{width:100%;text-align:center}.reveal-copy .kicker{font-size:.875rem;line-height:1.5;margin-bottom:9px}.reveal-copy h2,.reveal-copy h3{font-size:2rem;line-height:1.05;margin-bottom:12px}.reveal-copy p{font-size:1rem;line-height:1.65;margin-bottom:15px}.reveal-copy .btn{font-size:1rem;min-height:49px;width:100%;max-width:100%}.road-v7-motion .road-streak,.road-v7-motion .road-v7-streak{width:48px}.road-v7-motion .road-streak:nth-child(2),.road-v7-motion .road-v7-streak:nth-child(2){width:34px}.road-v7-motion .road-streak:nth-child(3),.road-v7-motion .road-v7-streak:nth-child(3){width:26px}.road-v7-motion .road-streak:nth-child(4),.road-v7-motion .road-v7-streak:nth-child(4){width:38px}.road-v7-motion .road-spark,.road-v7-motion .road-v7-spark{width:7px;height:7px}.arcade-chip{font-size:.95rem;padding:8px 11px;min-height:33px;min-width:55px}.arcade-spark{font-size:1.25rem;width:25px;height:25px}.arcade-burst.is-checkpoint .arcade-spark{font-size:1.4rem}}
@media(max-width:380px){.city-pass-panel{grid-template-columns:56px minmax(0,1fr);gap:13px;padding:20px 16px}.city-pass-art{width:56px;min-width:56px;max-width:56px;height:72px}.city-pass-art>img,.city-pass-art>svg{width:56px;height:72px;max-width:56px;max-height:72px}.city-pass-copy h2,.city-pass-copy h3{font-size:1.75rem}.mission-track-step{padding:14px 10px;gap:8px}.step-icon{width:28px;height:28px;min-width:28px}.step-copy strong{font-size:.9rem}.badge-card{padding:19px 10px}.combo-meter{padding:11px 12px}.run-objective{padding:12px}.reward-reveal{padding:23px 18px}}
/* New ambient nodes use only transforms/opacity, and pause at existing boundaries. */
.motion-paused,.motion-paused *,.motion-paused::before,.motion-paused::after,.motion-paused *::before,.motion-paused *::after{animation-play-state:paused!important;will-change:auto!important}
.is-paused *,.is-paused *::before,.is-paused *::after,.page[hidden] *,.page[hidden] *::before,.page[hidden] *::after{animation-play-state:paused!important;will-change:auto!important}
@media(prefers-reduced-motion:reduce){.road-ready .road-driver-rig,.page:not([hidden]) .hero-bg>img,.page:not([hidden]) .hero-art>.world-scene,.page:not([hidden]) .hero-art .scene-car,.page:not([hidden]) .hero-art .actor,.hero-bg::after,.page:not([hidden]) .city-card.selected .city-thumb>img,.city-card.selected::after,.page:not([hidden]) .learning-focus-art>img,.page:not([hidden]) #results-celebration .result-reward-art,.page:not([hidden]) .garage-feature-car>img,.page:not([hidden]) .car-card.is-equipped .car-render>img,.city-pass-art>img,.city-pass-art>svg,.mission-track-step .step-icon::after,.combo-ring::after,.badge-card.is-earned .badge-art,.reveal-art,.reward-reveal.is-revealed,.loot-chip.is-flying,.loot-fly{animation:none!important;transform:none!important;translate:none!important;rotate:none!important;will-change:auto!important}.road-v7-motion{display:none!important}.arcade-chip,.arcade-spark{animation:none!important;opacity:1;transform:translate(-50%,-50%)!important}.arcade-burst:not(.is-reduced-motion) .arcade-spark{display:none}body .btn:not(.answer-button):not(:disabled):hover,body .btn:not(.answer-button):not(:disabled):active{transform:none!important;transition:none!important}}
.reduce-motion .road-ready .road-driver-rig,.reduce-motion .page:not([hidden]) .hero-bg>img,.reduce-motion .page:not([hidden]) .hero-art>.world-scene,.reduce-motion .page:not([hidden]) .hero-art .scene-car,.reduce-motion .page:not([hidden]) .hero-art .actor,.reduce-motion .hero-bg::after,.reduce-motion .page:not([hidden]) .city-card.selected .city-thumb>img,.reduce-motion .city-card.selected::after,.reduce-motion .page:not([hidden]) .learning-focus-art>img,.reduce-motion .page:not([hidden]) #results-celebration .result-reward-art,.reduce-motion .page:not([hidden]) .garage-feature-car>img,.reduce-motion .page:not([hidden]) .car-card.is-equipped .car-render>img,.reduce-motion .city-pass-art>img,.reduce-motion .city-pass-art>svg,.reduce-motion .mission-track-step .step-icon::after,.reduce-motion .combo-ring::after,.reduce-motion .badge-card.is-earned .badge-art,.reduce-motion .reveal-art,.reduce-motion .reward-reveal.is-revealed,.reduce-motion .loot-chip.is-flying,.reduce-motion .loot-fly{animation:none!important;transform:none!important;translate:none!important;rotate:none!important;will-change:auto!important}
.reduce-motion .road-v7-motion{display:none!important}.reduce-motion .arcade-chip,.reduce-motion .arcade-spark{animation:none!important;opacity:1;transform:translate(-50%,-50%)!important}.reduce-motion .arcade-burst:not(.is-reduced-motion) .arcade-spark{display:none}.reduce-motion .btn:hover,.reduce-motion .btn:active{transform:none!important;transition:none!important}
/* Final V7 markup: compact route checkpoints and a single, readable run HUD. */
.run-arcade{display:block;margin:0 0 24px;min-width:0}
.run-arcade .mission-track{position:relative;display:grid;grid-template-columns:repeat(var(--steps,5),minmax(0,1fr));align-items:center;gap:12px;min-height:45px;padding:4px 0;margin:8px 0 13px;isolation:isolate;min-width:0}
.run-arcade .mission-track::before{content:'';position:absolute;top:50%;left:6%;right:6%;height:2px;background:linear-gradient(90deg,#36556c,color-mix(in srgb,var(--accent,#37e9ff) 29%,#3b556b),#36556c);z-index:-1;pointer-events:none}
.run-arcade .mission-track-step,.run-arcade .mission-track-step.is-earned,.run-arcade .mission-track-step.is-current,.run-arcade .mission-track-step.is-missed{display:flex;align-items:center;justify-content:center;min-width:0;min-height:43px;max-height:54px;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;gap:0;isolation:isolate}
.run-arcade .mission-track-step .step-icon{width:33px;height:33px;min-width:33px;line-height:1;background:#17364c;font-size:.95rem}
.run-arcade .mission-track-step .step-copy{display:none}
.run-arcade .mission-track-step.is-earned .step-icon{background:#8ce5b8;border-color:#b5f4d1;color:#0c3a29}
.run-arcade .mission-track-step.is-current .step-icon{background:#183d50;border-color:var(--accent,#37e9ff);color:var(--accent-light,#a3f7ff)}
.run-arcade .mission-track-step.is-missed .step-icon{background:#60394a;border-color:#dca0a7;color:#ffe3e7}
.run-arcade-info{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,.46fr) minmax(150px,.36fr);gap:13px;align-items:stretch;min-width:0}
.run-arcade-info>.run-objective{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 15px;align-items:center;margin:0;padding:14px 16px;min-width:0}
.run-arcade-info>.run-objective>.kicker{grid-column:1;font-size:.875rem;line-height:1.4;letter-spacing:.065em;color:#a4c8df;margin:0}
.run-arcade-info>.run-objective>strong{grid-column:1;font-size:1rem;font-family:Arial,Helvetica,sans-serif;line-height:1.45;font-weight:700;color:#effbff;margin:0}
.run-objective .objective-progress{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;grid-column:2;grid-row:1/span 2;font-size:.875rem;line-height:1.4;color:#accadf;min-width:0;text-align:end}
.run-objective .objective-progress b{font-family:var(--display,'Barlow Condensed',Impact,sans-serif);font-size:1.8rem;font-weight:700;line-height:1;white-space:nowrap;color:var(--accent-light,#a3f7ff)}
.run-objective .objective-progress>span{font-size:.875rem;line-height:1.4;max-width:150px}
.objective-reward{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;grid-column:1/-1;width:max-content;max-width:100%;font-size:.875rem;font-weight:700;line-height:1.4;padding:5px 7px;border:1px solid #6e7457;background:#353e30;border-radius:5px;color:#e6edc5;margin-top:3px}
.run-objective>small{grid-column:1/-1;font-size:.875rem;line-height:1.5;color:#b2d9c9;margin-top:3px}
.run-objective[data-complete=true]{border-color:#6dae8d;background:linear-gradient(110deg,#1b4038,#17303c)}
.run-arcade-info>.combo-meter{margin:0;padding:12px 13px;min-width:0;justify-content:center;gap:10px}
.run-arcade-info .combo-ring{width:57px;height:57px;min-width:57px}.run-arcade-info .combo-avatar{width:35px;height:44px;min-width:35px}.run-arcade-info .combo-copy{flex:1;min-width:0}.run-arcade-info .combo-copy>span{font-size:.875rem;line-height:1.45}.run-arcade-info .combo-count{font-size:1.75rem;line-height:1;margin:6px 0 0}
.run-arcade-info>.run-loot{display:flex;align-items:center;justify-content:center;align-content:center;gap:8px;flex-wrap:wrap;margin:0;padding:12px 10px;border:1px solid #3f5e76;border-radius:12px;background:#10283e;min-width:0}
.run-arcade-info>.run-loot .loot-chip{min-width:0;font-size:.875rem;padding:7px 9px;min-height:33px;max-width:100%}
.run-arcade-info:has(>.combo-meter[hidden]):has(>.run-loot[hidden]){grid-template-columns:minmax(0,1fr)}
.run-arcade-info:has(>.combo-meter[hidden]):has(>.run-loot[hidden])>.run-objective{grid-column:1/-1}
#combo-meter[hidden],.combo-meter[hidden],#run-loot[hidden],.run-loot[hidden],#reward-reveal[hidden],.reward-reveal[hidden]{display:none!important}
/* XP pass pips are separate from the accuracy/mission route above. */
.pass-stages{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;margin:16px 0 0}
.pass-stage{position:relative;display:grid;place-items:center;width:29px;height:29px;min-width:29px;border:1px solid #658195;border-radius:50%;background:#1c394f;color:#bbd5e8;font-size:.875rem;font-weight:700;line-height:1}
.pass-stage>span{display:grid;place-items:center;width:100%;height:100%;font-size:.875rem}.pass-stage svg{width:16px;height:16px}.pass-stage.is-earned{background:#8fe5b9;border-color:#b5f4d1;color:#0c3a2a}.pass-stage.is-current{border-color:var(--accent-light,#a3f7ff);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#37e9ff) 13%,transparent)}
.pass-stage.is-current::after{content:'';position:absolute;inset:-5px;border:1px solid var(--accent,#37e9ff);border-radius:50%;animation:arcade-checkpoint-light 3.2s ease-out infinite;pointer-events:none}
.pass-meter{display:block;width:100%;max-width:360px;height:5px;border-radius:12px;background:#29475c;overflow:hidden;margin:13px 0 0}
.pass-meter>span{display:block;height:100%;border-radius:12px;background:linear-gradient(90deg,var(--accent2,#216aff),var(--accent,#37e9ff));transition:width .4s ease}
.city-pass-panel>.btn.city-pass-action{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:8px;min-width:175px;min-height:48px;max-width:100%;padding:12px 16px;font-size:.95rem;line-height:1.4;white-space:normal;text-align:center}
.badge-art{font-family:Arial,'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:2rem;line-height:1}
.badge-copy>p{font-size:.875rem;font-weight:400;line-height:1.6;color:#a9c6d9;margin:7px 0 9px}
.badge-copy .badge-state{display:inline-block;width:max-content;max-width:100%;padding:4px 7px;border:1px solid #4a657a;border-radius:5px;font-size:.875rem;line-height:1.4;color:#9eb9cf;background:#1b3247;margin-top:3px}
.badge-card.is-earned .badge-copy>p{color:#b7d9cd}.badge-card.is-earned .badge-state{border-color:#5c907a;background:#214737;color:#d2f6e0}
.reward-reveal>.reveal-copy{flex:1;min-width:0}.reward-reveal>.btn{flex:none;font-size:.95rem;min-height:47px;padding:12px 16px;max-width:100%;white-space:normal}
.earned-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px;min-width:0}.earned-badges:empty{display:none}.earned-badges .reward-chip{font-size:.875rem;line-height:1.45;padding:7px 9px;max-width:100%}.earned-badges .reward-chip>span[aria-hidden]{font-size:1.1rem;line-height:1}
.arcade-result-bonus{font-size:1rem;line-height:1.6;color:#e9efff}.arcade-result-bonus strong{font-size:1rem;line-height:1.45;color:var(--accent-light,#a3f7ff)}
.arcade-chip[data-kind=xp]{background:#303354;border-color:#afa0df;color:#efe9ff}.arcade-chip[data-kind=coins]{background:#443c2a;border-color:#d0ac65;color:#fff0c4}.arcade-chip[data-kind=combo]{background:color-mix(in srgb,var(--accent,#37e9ff) 16%,#263a40);border-color:var(--accent-light,#a3f7ff);color:#eefff8}
@media(max-width:1050px){.run-arcade-info{grid-template-columns:minmax(0,1fr) 180px;gap:12px}.run-arcade-info>.run-objective{grid-column:1/-1}.run-arcade-info>.combo-meter{grid-column:1;justify-content:flex-start}.run-arcade-info>.run-loot{grid-column:2;justify-content:center}.reward-reveal{flex-wrap:wrap}.reward-reveal>.btn{margin-inline-start:auto}.run-objective .objective-progress>span{max-width:200px}}
@media(max-width:800px){.run-arcade .mission-track{gap:10px;margin:7px 0 12px}.run-arcade-info{grid-template-columns:minmax(0,1fr) minmax(150px,.8fr)}.city-pass-panel>.btn.city-pass-action{grid-column:2;justify-self:start;min-width:170px}.reward-reveal>.btn{margin-inline-start:0}}
@media(max-width:620px){.run-arcade{margin-bottom:21px}.run-arcade .mission-track{grid-template-columns:repeat(var(--steps,5),minmax(0,1fr));gap:6px;padding:3px 0;min-height:43px;margin:5px 0 12px}.run-arcade .mission-track-step,.run-arcade .mission-track-step.is-earned,.run-arcade .mission-track-step.is-current,.run-arcade .mission-track-step.is-missed{min-height:41px;max-height:49px;padding:0;border:0;background:none;gap:0}.run-arcade .mission-track-step .step-icon{width:31px;height:31px;min-width:31px;font-size:.875rem}.run-arcade .mission-track-step .step-copy{display:none}.run-arcade-info{grid-template-columns:minmax(0,1fr) minmax(135px,.85fr);gap:10px}.run-arcade-info>.run-objective{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:13px 14px;margin:0}.run-arcade-info>.run-objective>.kicker{font-size:.875rem;line-height:1.4;letter-spacing:.035em;margin:0}.run-arcade-info>.run-objective>strong{font-size:1rem;line-height:1.45}.run-objective .objective-progress{gap:3px;text-align:end}.run-objective .objective-progress b{font-size:1.7rem;line-height:1}.run-objective .objective-progress>span{display:none}.objective-reward{font-size:.875rem;line-height:1.4;margin-top:4px;padding:4px 7px}.run-objective>small{font-size:.875rem;line-height:1.55}.run-arcade-info>.combo-meter{grid-column:1;gap:10px;padding:12px;justify-content:flex-start;min-width:0}.run-arcade-info .combo-ring{width:51px;height:51px;min-width:51px}.run-arcade-info .combo-avatar{width:31px;height:39px;min-width:31px}.run-arcade-info .combo-copy>span{font-size:.875rem;line-height:1.4}.run-arcade-info .combo-count{font-size:1.65rem;line-height:1;margin-top:6px}.run-arcade-info>.run-loot{grid-column:2;min-width:0;gap:7px;padding:11px 8px;margin:0;justify-content:center;border-radius:11px}.run-arcade-info>.run-loot .loot-chip{font-size:.875rem;line-height:1.4;padding:7px 8px;min-height:32px}.run-arcade-info:has(>.combo-meter[hidden]):has(>.run-loot[hidden]){grid-template-columns:minmax(0,1fr)}.run-arcade-info:has(>.combo-meter[hidden]):has(>.run-loot[hidden])>.run-objective{grid-column:1/-1}.city-pass-panel>.btn.city-pass-action{grid-column:1/-1;justify-self:stretch;width:100%;min-width:0;min-height:49px;font-size:1rem;padding:12px 16px}.pass-stages{gap:8px;margin-top:15px}.pass-stage{width:27px;height:27px;min-width:27px;font-size:.875rem}.pass-stage>span{font-size:.875rem}.pass-stage svg{width:15px;height:15px}.pass-meter{width:100%;max-width:none;height:5px;margin-top:12px}.badge-art{font-size:2rem;line-height:1}.badge-copy>p{font-size:.875rem;line-height:1.6;margin:7px 0 9px}.badge-copy .badge-state{font-size:.875rem;line-height:1.4;padding:4px 6px}.reward-reveal>.btn{width:100%;min-height:49px;font-size:1rem;margin:0;padding:12px 16px}.earned-badges{gap:8px;margin-top:13px;justify-content:center}.earned-badges .reward-chip{font-size:.875rem;line-height:1.45;padding:7px 8px}.arcade-result-bonus,.arcade-result-bonus strong{font-size:1rem;line-height:1.55}}
@media(max-width:380px){.run-arcade .mission-track{gap:5px}.run-arcade .mission-track-step .step-icon{width:29px;height:29px;min-width:29px;font-size:.875rem}.run-arcade-info{grid-template-columns:minmax(0,1fr) minmax(130px,.83fr);gap:9px}.run-arcade-info>.combo-meter{gap:9px;padding:11px 10px}.run-arcade-info .combo-ring{width:48px;height:48px;min-width:48px}.run-arcade-info .combo-avatar{width:29px;height:36px;min-width:29px}.run-arcade-info .combo-copy>span{font-size:.875rem;line-height:1.4}.run-arcade-info .combo-count{font-size:1.55rem}.run-arcade-info>.run-loot{padding:10px 7px}.run-arcade-info>.run-loot .loot-chip{padding:7px}.pass-stages{gap:7px}.pass-stage{width:25px;height:25px;min-width:25px}.city-pass-copy h2{font-size:1.72rem}}
@media(prefers-reduced-motion:reduce){.pass-stage.is-current::after{animation:none!important;transform:none!important;opacity:.65}}
.reduce-motion .pass-stage.is-current::after{animation:none!important;transform:none!important;opacity:.65}
