.car-service-tools{max-width:960px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:5px auto 8px;padding:5px 9px;border:2px solid #b8c4a5;border-radius:12px;background:#f5f5dc;color:#365668}.car-service-tools button{border:1px solid #a3ad99;border-radius:9px;background:#fff9df;padding:5px 9px;min-height:32px;color:#365668;font:700 12px Trebuchet MS,sans-serif;cursor:pointer}.car-service-tools button:disabled{opacity:.6;cursor:default}.car-service-tools [hidden]{display:none!important}.car-service-notice{font-size:12px;flex:1 1 220px;line-height:1.3}.benny-cockpit.has-car-services .cockpit-dashboard{background:var(--car-paint-pattern,linear-gradient(#3f9bd3,#245b88))!important}.benny-cockpit.has-car-services .cockpit-dashboard::before{border-color:var(--car-paint-light,#a6e0f3)}.benny-cockpit .benny-fuel-gauge{position:absolute;right:128px;top:75px;width:112px;min-height:48px;padding:5px 8px;z-index:15;border:2px solid #fff4cf;border-radius:11px;background:#fff2ce;color:#355363;box-shadow:0 3px #23475b55;font:700 12px Trebuchet MS,sans-serif;cursor:pointer}.benny-fuel-gauge span{display:flex;gap:5px;align-items:center;justify-content:space-between}.benny-fuel-gauge meter{width:100%;height:12px;margin-top:3px;display:block}.benny-fuel-gauge.fuel-low{border-color:#f78d6b;animation:fuel-friendly-pulse 1.5s ease-in-out infinite}.headlights-needed{animation:headlight-reminder 1.2s ease-in-out infinite!important;outline:3px solid #ffe88b;outline-offset:3px}.benny-cockpit.has-car-services .cockpit-windshield{height:clamp(200px,calc(100svh - 405px),420px)}
@keyframes fuel-friendly-pulse{50%{box-shadow:0 0 12px #ffd378}}@keyframes headlight-reminder{50%{box-shadow:0 0 18px #ffe796;background:#fff3b4}}
.car-service-dialog{width:min(720px,calc(100vw - 24px));max-height:94svh;overflow:auto;padding:18px;background:linear-gradient(#fffbed,#fae7cb);border:5px solid #e4b67c;border-radius:26px;box-shadow:0 0 0 3px #92755f,0 15px 50px #173f6655;color:#355368}.car-service-dialog::backdrop{background:#153a5566;backdrop-filter:blur(3px)}.service-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.service-modal-head h2{font:900 25px Trebuchet MS,sans-serif;margin:0}.service-eyebrow{font-size:10px;letter-spacing:.1em;margin:0 0 4px;font-weight:800;color:#94778c}.car-service-dialog button{border:2px solid #b3926f;border-radius:13px;background:#fff3ce;color:#365568;min-height:40px;padding:8px 12px;font:800 13px Trebuchet MS,sans-serif;cursor:pointer}.car-service-dialog button:focus-visible,.benny-fuel-gauge:focus-visible{outline:3px solid #318aba;outline-offset:3px}.car-service-dialog button:disabled{opacity:.6;cursor:default}.service-close{font-size:20px!important;flex-shrink:0}.service-message{font-size:14px;font-weight:700;line-height:1.4;min-height:2em;margin:10px 0}.service-stage{position:relative;height:300px;overflow:hidden;border-radius:20px;border:3px solid #c8b6a2;background:radial-gradient(ellipse at 50% 30%,#fcffff,#d8e8f4 55%,#d4c2e0);isolation:isolate}.service-stage.is-studio::before{content:'';position:absolute;left:10%;right:10%;top:3%;height:10px;border-radius:50%;background:#fff9c5;box-shadow:0 2px 25px 10px #fff7cf99}.service-courtyard{position:absolute;inset:0;opacity:.62}.service-courtyard svg{height:100%;width:100%;object-fit:cover}.is-studio .service-courtyard{display:none}.service-car-wrap{position:absolute;left:50%;top:47%;width:min(500px,95%);height:280px;transform:translate(-50%,-50%);z-index:4}.service-car-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.service-car-canvas:active{cursor:grabbing}.service-palette{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin:12px 0}.service-palette button{display:flex;align-items:center;flex-direction:column;gap:5px;font-size:11px;padding:5px!important;min-width:0}.service-palette span{width:31px;height:27px;border-radius:10px;display:block;border:2px solid #ffffffb0;box-shadow:0 2px #51708733}.service-palette button[aria-pressed=true]{background:#ffe19b;border-color:#947354;box-shadow:0 0 0 2px #fff7dc}.service-actions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.service-paint-now,.service-fill{background:#cfeab8!important}.service-wash{background:#c6e9ed!important}.service-leave-road{display:block;margin:12px auto 0}.service-job-progress{width:100%;height:16px;margin-top:10px}.car-service-dialog [hidden]{display:none!important}.service-music-note{position:absolute;left:12px;top:12px;background:#fff6d1;padding:7px 10px;border-radius:12px;z-index:7;font-size:13px;font-weight:800}.service-wash-arch,.service-brush,.service-rinse,.service-rainbow{display:none}.service-bubbles{position:absolute;inset:0;pointer-events:none;z-index:6;display:none}.service-bubbles i{position:absolute;left:var(--bubble-x);bottom:-60px;width:var(--bubble-size);height:var(--bubble-size);border:2px solid #f9ffffb0;border-radius:50%;background:radial-gradient(circle at 25% 22%,#fff 0 5%,#c2f5f96b 15%,#e9c2ed69 70%,#dafafb99);animation:bubble-party 2.8s var(--bubble-delay) linear infinite}.service-sparkles{position:absolute;left:0;right:0;top:12%;font-size:30px;color:#fff9ad;text-align:center;opacity:0;z-index:6;pointer-events:none}.is-revealing .service-sparkles,.wash-finished .service-sparkles{animation:paint-stars 1.4s ease-in-out 3}.is-washing .service-car-wrap{left:var(--wash-position,-18%);top:68%;width:250px;height:170px;transform:translate(-50%,-50%)}.is-washing .service-wash-arch{display:block;position:absolute;left:39%;top:12%;width:40%;height:78%;border:18px solid #8bd4d7;border-bottom:0;border-radius:65px 65px 0 0;background:#5c8a9b44;color:#fff5d8;text-align:center;padding-top:12px;font-weight:900;font-size:15px;z-index:2;box-sizing:border-box}.is-washing .service-brush{display:block;position:absolute;top:36%;height:48%;width:42px;z-index:5;border-radius:20px;background:repeating-linear-gradient(0deg,#e8acd5 0 7px,#a17cc4 7px 12px,#f7cee5 12px 17px);animation:brush-dance .2s linear infinite}.is-washing .brush-one{left:42%;transform-origin:50% 100%}.is-washing .brush-two{left:70%;transform-origin:50% 0}.is-washing .service-bubbles{display:block}.is-washing .service-rinse{display:block;position:absolute;left:45%;right:23%;top:27%;bottom:8%;z-index:6;opacity:0;background:repeating-linear-gradient(90deg,#e4ffffa0 0 3px,transparent 3px 10px);animation:rinse-rain .35s linear infinite}.is-washing[data-wash-phase="2"] .service-rinse{opacity:.8}.is-washing[data-wash-phase="3"] .service-brush{animation:dryer-fluff .3s ease-in-out infinite alternate;opacity:.6}.is-washing .service-rainbow{display:block;position:absolute;left:38%;top:6%;width:40%;height:65%;border:8px solid #e7b4d8;border-top-color:#f5c382;border-left-color:#b6d991;border-right-color:#a7ddeb;border-radius:60% 60% 0 0;opacity:.8}.is-filling .service-car-wrap{animation:fuel-happy-bounce .8s ease-in-out infinite}
@keyframes bubble-party{to{transform:translate(20px,-390px) rotate(25deg);opacity:.1}}@keyframes brush-dance{50%{filter:brightness(1.16);background-position:0 17px}}@keyframes rinse-rain{to{background-position:3px 12px}}@keyframes dryer-fluff{to{transform:rotate(12deg) scaleX(1.2)}}@keyframes paint-stars{50%{opacity:1;transform:translateY(-8px) scale(1.06)}}@keyframes fuel-happy-bounce{50%{margin-top:-4px}}
@media(max-width:700px){.car-service-tools{gap:4px;padding:4px 7px}.car-service-tools button{font-size:11px;padding:4px 6px}.car-service-notice{font-size:11px;flex-basis:100%}.car-service-notice:empty{display:none}.benny-cockpit .benny-fuel-gauge{right:80px;top:72px;width:95px;font-size:11px;min-height:43px}.benny-cockpit.has-car-services .cockpit-windshield{height:clamp(180px,calc(100svh - 415px),360px)}.service-palette{grid-template-columns:repeat(4,minmax(0,1fr))}.service-stage{height:250px}.service-car-wrap{height:240px}.service-modal-head h2{font-size:21px}.car-service-dialog{padding:12px}.is-washing .service-car-wrap{width:200px;height:150px}.is-washing .service-wash-arch{font-size:11px;border-width:12px}.is-washing .service-brush{width:28px}}
@media(prefers-reduced-motion:reduce){.fuel-low,.headlights-needed,.service-bubbles i,.service-brush,.service-rinse,.service-sparkles,.is-filling .service-car-wrap{animation:none!important}.is-washing .service-bubbles{opacity:.6}}


.benny-fuel-gauge.fuel-low{animation:fuel-warning-flash 1.2s steps(1,end) infinite}
@keyframes fuel-warning-flash{0%,100%{background:#ffe4ba;border-color:#bd3e22;box-shadow:0 0 0 3px #ef9e58}50%{background:#fff9e4;border-color:#fff4cf;box-shadow:none}}
@media(prefers-reduced-motion:reduce){.benny-fuel-gauge.fuel-low{animation:none;border-color:#bd3e22;outline:3px solid #ef9e58}}


.benny-cockpit .cockpit-stereo{left:12px;top:57px;width:202px;max-width:25%;box-sizing:border-box}.benny-cockpit .cockpit-stereo .stereo-controls{display:flex;flex-wrap:nowrap;gap:3px;justify-content:center}.benny-cockpit .cockpit-stereo .stereo-controls button{width:25px!important;min-width:0!important;min-height:31px!important;height:31px!important;padding:0!important;font-size:14px!important}.benny-cockpit .dashboard-mail-bag{top:8px;left:12px;max-width:202px;font-size:13px;min-height:35px}.station-parked .cockpit-turn-signals{visibility:hidden}
@media(max-width:650px){.benny-cockpit .cockpit-stereo{left:5px;top:52px;max-width:29%;width:160px;padding:4px}.benny-cockpit .cockpit-stereo .stereo-controls{gap:2px}.benny-cockpit .cockpit-stereo .stereo-controls button{width:19px!important;height:27px!important;min-height:27px!important;font-size:11px!important}.benny-cockpit .cockpit-stereo .stereo-display{font-size:10px}.benny-cockpit .dashboard-mail-bag{left:5px;top:6px;max-width:125px;font-size:11px}}


@media(max-width:700px){.benny-cockpit .benny-fuel-gauge{left:50%;right:auto;top:102px;transform:translateX(-50%);width:96px;min-height:20px;height:20px;padding:1px 4px;font-size:10px}.benny-cockpit .benny-fuel-gauge meter{display:none}}

/* Fresh-paint exit: a fixed studio, driveway and a gentle forward roll. */
.paint-exit-scene{display:none;position:absolute;inset:0;pointer-events:none}
.paint-exit-scene svg{width:100%;height:100%;display:block}
.paint-exit-reveal{height:360px;background:#91d8ed}
.paint-exit-reveal .paint-exit-scene{display:block}
.service-stage.paint-exit-reveal:before{display:none}
.paint-exit-reveal .service-car-wrap{left:calc(50% + var(--exit-drive,0)*7%);top:calc(56% + var(--exit-drive,0)*15%);width:min(400px,76%);height:250px;transform:translate(-50%,-50%) scale(calc(.33 + var(--exit-drive,0)*.67));transform-origin:50% 75%}
.paint-exit-reveal .service-sparkles{top:51%;font-size:23px;letter-spacing:.5em}
@media(max-width:700px){.paint-exit-reveal{height:280px}.paint-exit-reveal .service-car-wrap{height:210px}}

.upgrade-shop{max-width:760px;width:85vw;border:4px solid #397875;border-radius:24px;background:#fff8df;color:#18334c;padding:24px}.upgrade-shop::backdrop{background:#132d4266}.upgrade-items{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.upgrade-items article{padding:14px;border-radius:16px;background:#e4efdc;border:2px solid #a6c6a4}.upgrade-shop button{border:2px solid #57796d;border-radius:12px;background:#ffdf8c;color:#18334c;padding:12px;font-weight:bold}.upgrade-shop button:disabled{opacity:.6}@media(max-width:560px){.upgrade-items{grid-template-columns:1fr}.upgrade-shop{max-height:80vh;overflow:auto}.upgrade-items h3,.upgrade-items p{margin:6px}}

/* Mirror ornaments hang BELOW the clipped mirror, never across the windshield.
   Their parent is .cockpit-windshield, not .cockpit-rear-mirror. */
.benny-cockpit .mirror-freshener {
  position:absolute;
  left:50%;
  top:calc(3px + clamp(40px,5.5vw,58px));
  width:26px;
  height:60px;
  transform:translateX(-50%) rotate(var(--freshener-swing,0deg));
  transform-origin:50% 0;
  transition:transform .1s linear;
  pointer-events:none;
  z-index:10;
}
.benny-cockpit .mirror-freshener[hidden]{display:none!important}
.benny-cockpit .mirror-freshener svg{display:block;width:100%;height:100%}
.benny-cockpit .mirror-freshener.star-charm>span{display:block;font-size:18px;line-height:1;text-align:center}
@media(max-width:700px){
  .benny-cockpit .mirror-freshener{width:20px;height:48px}
  .benny-cockpit .mirror-freshener.star-charm>span{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
  .benny-cockpit .mirror-freshener{transform:translateX(-50%);transition:none}
}
/* Keep every optional cosmetic below the mirror and away from the road. */
.benny-cockpit .benny-style-charm svg{width:100%;height:100%;display:block}
.benny-cockpit .benny-style-charm[hidden],
.benny-cockpit .benny-style-decal[hidden]{display:none!important}
/* The upgraded motor indicator belongs along the lower dashboard edge. */
.benny-cockpit .cockpit-windshield .benny-motor-upgrade-icon{
  bottom:3px;
  width:22px;
  height:22px;
  font-size:13px;
  border-width:1px;
}
@media(max-width:700px){
  .benny-cockpit .cockpit-windshield .benny-motor-upgrade-icon{
    bottom:2px;
    width:19px;
    height:19px;
    font-size:12px;
  }
}
