/* Hotspots share the exact garage image coordinate system at every screen size. */
.benny-cockpit .cockpit-garage-departure {background-position:25% 50%}
.garage-discoveries {position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden}
.garage-discoveries[hidden],.benny-cockpit:not([data-scene="garage"]) .garage-discoveries {display:none}
.garage-fun-scene {position:absolute;left:0;top:0;width:762px;height:335px;transform-origin:0 0}
.garage-hotspot {position:absolute;pointer-events:auto;background:transparent;border:0;padding:0;cursor:pointer;border-radius:8px}
.garage-hotspot:focus-visible,[role="button"]:focus-visible,.first-stop-rock:focus-visible {outline:3px solid #ffe582;outline-offset:3px}
.garage-hotspot:hover {box-shadow:0 0 10px #fff8ac66}
.garage-tree {left:0;top:0;width:113px;height:183px}
.garage-doors {left:166px;top:133px;width:107px;height:111px;perspective:250px;display:flex}
.garage-door {width:50%;height:100%;background:repeating-linear-gradient(90deg,#29517d 0 14px,#24446d 15px 17px);border:2px solid #213b5d;box-sizing:border-box;position:relative;transition:transform .8s ease}
.garage-door::before {content:"";position:absolute;left:8px;right:8px;top:7px;height:29px;background:linear-gradient(90deg,transparent 46%,#25446b 46% 54%,transparent 54%),linear-gradient(0deg,transparent 44%,#25446b 44% 56%,transparent 56%),linear-gradient(140deg,#9bb3aa,#d5ad70);border:3px solid #203e65}
.garage-door::after {content:"";position:absolute;top:56%;width:3px;height:12px;background:#b69d61;border:1px solid #203e65}
.left-door {transform-origin:left center}.right-door {transform-origin:right center}.left-door::after{right:5px}.right-door::after{left:5px}
.doors-open .left-door{transform:rotateY(-100deg)}.doors-open .right-door{transform:rotateY(100deg)}
.garage-door-interior {position:absolute;left:167px;top:134px;width:105px;height:110px;background:linear-gradient(#1b3039,#5a5947);border-radius:4px}
.garage-cat {position:absolute;left:195px;top:191px;width:45px;height:51px;opacity:0;transform:translateY(15px);transition:all .5s ease;pointer-events:none}
.doors-open .garage-cat{opacity:1;transform:translateY(0)}.cat-closing .garage-cat{transform:translate(18px,-2px) rotate(-12deg)}
.garage-lamp{left:222px;top:96px;width:43px;height:36px}.lamp-glow{position:absolute;left:12px;top:17px;width:20px;height:13px;border-radius:50%;background:#625e40aa}.garage-lamp[aria-pressed="true"] .lamp-glow{background:#fff8a5;box-shadow:0 0 13px 9px #ffe177aa,0 30px 35px 18px #ffe39188}
.garage-barrel{left:144px;top:207px;width:46px;height:49px}.garage-raccoon{position:absolute;left:0;bottom:20px;width:48px;height:48px;opacity:0;pointer-events:none}
.flower-window{left:78px;top:175px;width:57px;height:38px}.flower-garden{left:304px;top:193px;width:91px;height:51px}.flower-meadow{left:657px;top:220px;width:99px;height:80px}
.flower-surprise{position:absolute;inset:-10%;pointer-events:none}.falling-apple{position:absolute;width:19px;height:23px;pointer-events:none}.garage-discoveries svg{width:100%;height:100%;overflow:visible}
.benny-cockpit .first-stop-dog svg {transform:none;filter:drop-shadow(0 3px 2px #4b3d3030)}
.dog-head{transform-origin:120px 75px}.dog-barking .dog-head{animation:dog-woof .16s ease-in-out}.dog-scratching .dog-head{transform:rotate(12deg)}
.benny-cockpit.dog-waiting .dog-scratching .leg-back{transform-origin:50px 76px;animation:dog-scratch .16s ease-in-out infinite alternate!important}
@keyframes dog-woof{50%{transform:translate(3px,-3px) rotate(-5deg)}}@keyframes dog-scratch{from{transform:rotate(-45deg) translate(15px,-8px)}to{transform:rotate(-80deg) translate(25px,-15px)}}
.benny-cockpit .cockpit-first-stop-sign{pointer-events:none;transform-origin:50% 100%}.benny-cockpit.at-first-stop .cockpit-first-stop-sign{pointer-events:auto;cursor:pointer}
.benny-cockpit.at-first-stop .junction-mushrooms .mushroom{pointer-events:auto;cursor:pointer;min-width:35px;min-height:35px}
.mushroom-spark{position:absolute;top:-100px;left:0;color:#ffd34d;font-size:65px;text-shadow:25px -20px #f28c83,-25px -10px #a9dcea;pointer-events:none;animation:spark-pop .5s ease-out forwards}
@keyframes spark-pop{from{transform:scale(.2);opacity:1}to{transform:scale(1.6);opacity:0}}
.first-stop-rock{display:none;position:absolute;z-index:7;border:0;background:none;padding:0;cursor:pointer;min-width:44px;min-height:44px}.first-stop-rock svg{width:100%;height:100%;overflow:visible}.at-first-stop .first-stop-rock{display:block}.armadillo-body{opacity:0}.awake .armadillo-body{opacity:1}.awake .rock-shell{opacity:0}.awake .armadillo-body{animation:armadillo-steps .25s ease-in-out infinite alternate}
@keyframes armadillo-steps{to{transform:translateY(-3px) rotate(2deg)}}
/* Before reversing, the mirror looks down the road behind the parked car. */
.benny-cockpit[data-scene="garage"] .rear-mirror-shop,.benny-cockpit[data-scene="garage-reverse"] .rear-mirror-shop{opacity:0!important}
@media(prefers-reduced-motion:reduce){.garage-door,.garage-cat{transition:none}.dog-scratching .leg-back,.dog-barking .dog-head,.awake .armadillo-body,.mushroom-spark{animation:none!important}}
.benny-cockpit .first-stop-dog .dog-tail {transform-origin:95% 95%}
.benny-cockpit.dog-waiting .dog-scratching .leg-back {transform-origin:55% 10%}
.first-stop-rock:disabled {cursor:default}
.first-stop-rock .rock-shell {transform:translateY(18px)}

/* Every stopped junction uses the same roadside sign, including return trips. */
.benny-cockpit.at-road-stop .cockpit-first-stop-sign{opacity:1;transform:translate(0,0) scale(1);pointer-events:auto;cursor:pointer}
.benny-cockpit.dog-waiting .first-stop-dog{pointer-events:auto;cursor:pointer}
.first-stop-dog:focus-visible{outline:3px solid #fff3a0;outline-offset:5px;border-radius:35%}
.first-stop-dog.dog-giggling .dog-head{animation:dog-giggle .16s ease-in-out infinite alternate;transform-origin:65% 70%}
@keyframes dog-giggle{from{transform:rotate(-5deg) translateY(0)}to{transform:rotate(5deg) translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.first-stop-dog.dog-giggling .dog-head{animation:none}}
