:root{font-family:Arial,"Helvetica Neue",sans-serif;color:#17364a;background:#c5e8ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,input:focus-visible{outline:4px solid #1868b0;outline-offset:5px}button{border:0}button[hidden]{display:none}.game{height:100svh;min-height:570px;max-height:1200px;display:grid;grid-template-rows:auto 1fr auto auto;overflow:clip;background:linear-gradient(180deg,#d8f1ff 0%,#bbe4fb 69%,#f3eee4 69%);padding:24px max(24px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}header{display:flex;align-items:center;justify-content:space-between;z-index:2}.eyebrow{font-size:14px;display:block;margin-bottom:7px;color:#456778}h1{font-size:clamp(27px,4.4vw,44px);margin:0;letter-spacing:-1px}.parent-button{background:#ffffff80;min-height:48px;border:1px solid #ffffffb0;border-radius:30px;padding:0 20px;color:#284d61;font-size:16px;display:flex;gap:12px;align-items:center}.play-area{position:relative;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.little-tag{position:absolute;top:12%;left:5%;display:flex;align-items:center;gap:12px;font-size:14px;writing-mode:vertical-rl;opacity:.65;letter-spacing:2px}.little-tag span{letter-spacing:0}.car-zone{height:100%;width:100%;position:relative;display:flex;justify-content:center;align-items:center;z-index:1}.car{display:block;background:transparent;position:relative;height:96%;width:min(80%,600px);padding:0;transition:transform .8s ease}.car img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 13px #24475225);pointer-events:none}.road{height:80px;position:absolute;bottom:4%;left:-30px;right:-30px;background:#98afbd;border-block:7px solid #ecf4f5;transform:rotate(-3deg);overflow:hidden}.road-lines{position:absolute;top:33px;width:200%;height:4px;background:repeating-linear-gradient(90deg,#ffffffb5 0 42px,transparent 42px 94px)}.reaction{position:absolute;bottom:0;margin:0;font-size:16px;background:#ffffffdd;padding:9px 22px;border-radius:30px;z-index:2;color:#426073;pointer-events:none}.controls{direction:rtl;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;width:min(600px,100%);margin:24px auto 10px;z-index:3}.control{border-radius:30px;min-height:112px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:18px;font-weight:700;border:2px solid #ffffffb0;box-shadow:0 7px 0 #183a5114;transition:transform .16s,box-shadow .16s;color:#17364a}.control:active{transform:translateY(5px);box-shadow:0 2px 0 #183a5114}.drive{background:#82cbc5}.horn{background:#ffd474}.lights{background:#aac8f7}.lights[aria-pressed=true]{background:#ffe99a}.control-icon{font-size:40px;line-height:1.1}.drive .control-icon{transform:rotate(180deg)}footer{display:flex;align-items:center;justify-content:space-between;color:#72848a;font-size:13px;padding:12px 5px 0}.version{font-size:12px;letter-spacing:3px}.light-glow{display:none;position:absolute;left:14%;bottom:19%;height:12%;width:19%;background:#ffe48470;border-radius:100%;filter:blur(12px);pointer-events:none}.lit .light-glow{display:block}.driving .car{animation:ride 1.7s ease-in-out infinite}.driving .road-lines{animation:road 1.4s linear infinite}.honking .car{animation:beep .45s ease-in-out}.game[data-fx=quiet] .car{animation:none!important}.game[data-fx=quiet] .road-lines{animation-duration:4s}.game[data-fx=normal] .car{--travel:14px}.game[data-fx=party] .car{--travel:22px}.game[data-fx=calm] .car{--travel:7px}dialog{border:0;border-radius:28px;padding:30px;max-width:430px;width:calc(100% - 32px);max-height:90svh;overflow:auto;color:#17364a;box-shadow:0 22px 80px #12394c30}dialog::backdrop{background:#193b5475;backdrop-filter:blur(7px)}dialog h2{font-size:28px;margin:10px 0}dialog p{font-size:16px;line-height:1.65}.close{float:inline-end;background:#edf4f6;border-radius:50%;width:38px;height:38px;font-size:26px;color:#294f63}.setting-label{display:block;margin:20px 0 8px;font-weight:700}select{width:100%;min-height:46px;padding:10px;background:#f0f7f9;color:#17364a;border:1px solid #cedee5;border-radius:12px}input[type=range]{width:100%;accent-color:#387d85;height:36px}.primary,.secondary{padding:14px 22px;border-radius:14px;min-height:48px}.primary{background:#225b70;color:white;width:100%;font-weight:700}.secondary{background:#e9f2f5;color:#28576b}.offline-card{background:#eff7f5;padding:16px;border-radius:16px;margin:22px 0}.offline-card p{font-size:14px}.gate-answers{display:flex;gap:10px}.gate-answers button{flex:1;background:#e5f2f7;border-radius:14px;padding:20px;font-size:24px}.muted{color:#688293}.effect-preview{background:#e1f0f8;border-radius:12px;height:38px;margin-top:8px;overflow:hidden;display:flex;align-items:center;justify-content:center}.effect-preview span{background:#80c7c0;border-radius:12px;padding:4px 16px;animation:preview 2s ease-in-out infinite}body:has([data-fx=quiet]) .effect-preview span{animation:none}body:has([data-fx=normal]) .effect-preview span{animation-duration:1.5s}body:has([data-fx=party]) .effect-preview span{animation-duration:1s}@keyframes ride{0%,100%{transform:translateX(0) rotate(0)}50%{transform:translateX(calc(-1 * var(--travel,7px))) rotate(-.7deg)}}@keyframes road{to{transform:translateX(-94px)}}@keyframes beep{50%{transform:scale(1.025)}}@keyframes preview{50%{transform:translateX(30px)}}@media(min-width:900px){.game{padding:30px 60px 20px}.controls{gap:22px;margin-top:12px}.control{min-height:105px}.car{width:65%}.little-tag{left:10%;top:35%}}@media(max-width:480px){.game{padding:18px 18px 10px;min-height:540px}.car{width:100%;height:91%}.controls{gap:10px}.control{min-height:100px;border-radius:25px;font-size:16px}.little-tag{display:none}.reaction{font-size:14px;padding:7px 16px}.parent-button{padding:0 14px}.eyebrow{font-size:13px}}@media(orientation:landscape) and (max-height:650px){.game{min-height:320px;grid-template-columns:1fr 150px;grid-template-rows:auto 1fr auto;padding:14px 24px;gap:4px 15px}header{grid-column:1/-1}h1{font-size:25px}.eyebrow{display:none}.play-area{grid-column:1;grid-row:2}.controls{grid-column:2;grid-row:2;grid-template-columns:1fr;gap:7px;margin:0}.control{min-height:56px;border-radius:18px;flex-direction:row;font-size:15px}.control-icon{font-size:29px}.car{width:70%;height:105%}.road{height:42px;bottom:5%}.road-lines{top:15px}.reaction{bottom:-7px;font-size:13px;padding:3px 15px}footer{grid-column:1/-1;padding:4px}.little-tag{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Anchor the photographed wheels to the play surface. */
.car-zone{padding-bottom:45px}.car img{object-position:center bottom}
@media(orientation:landscape) and (max-height:650px){.car-zone{padding-bottom:20px}}
/* Second edition: a single, continuous 3D world with a tactile steering console. */
.game{position:relative;background:#b4ddf1;display:block;min-height:600px;max-height:none;padding:22px 26px 12px}.game header{position:relative;z-index:4;pointer-events:none}.game header button{pointer-events:auto}h1{font-size:clamp(26px,3vw,38px)}.eyebrow{color:#466879}.play-area{position:absolute;inset:50px 0 140px;display:block;min-height:0}.play-area canvas{width:100%;height:100%;display:block;touch-action:none}.play-area[data-lost=true]::after{content:'התצוגה נטענת מחדש…';position:absolute;inset:40%;background:white;padding:20px}.journey-tools{position:absolute;top:95px;left:26px;right:26px;z-index:3;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.landscape{pointer-events:auto;background:#fff9;backdrop-filter:blur(8px);color:#294d5b;border-radius:30px;padding:10px 18px;font-size:14px;min-height:44px;display:flex;gap:8px;align-items:center}.landscape>span:first-child{font-size:23px}.reaction{position:static;background:transparent;font-size:14px;color:#45616b;padding:0;margin:0}.dashboard{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);width:min(620px,calc(100% - 32px));z-index:3}.controls{direction:ltr;margin:0 auto;width:min(430px,100%);grid-template-columns:1fr 1.22fr 1fr;align-items:center;gap:18px}.control{height:90px;min-height:90px;border-radius:28px;background:#fffc;box-shadow:0 5px 0 #26404a20,0 12px 24px #20413218;border:2px solid #fff;backdrop-filter:blur(10px);font-size:15px;gap:1px}.control.drive{height:135px;background:#213e4c;color:white;border:5px solid #e1ece8;border-radius:50%;padding:7px 12px 13px;box-shadow:0 6px 0 #10252f45,0 12px 24px #20413230}.drive #steering-control{height:82px;width:82px;fill:none;stroke:#d9e9e9;stroke-width:9;stroke-linecap:round;transition:transform .15s}.drive #steering-control .wheel-center{fill:#629888;stroke-width:0}.control-icon{font-size:37px}.horn{background:#ffda85}.lights{background:#e8f4fc}.lights[aria-pressed=true]{background:#ffdf75}.animal-controls{display:flex;justify-content:center;gap:11px;margin-bottom:15px}.animal-controls button{width:76px;height:70px;border-radius:23px;background:#ffffffe6;border:1px solid white;box-shadow:0 4px 0 #20453514;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#325665;font-size:13px}.animal-controls button>span:first-child{font-size:31px;line-height:34px}.animal-controls button:active{transform:translateY(3px)}footer{position:absolute;bottom:10px;left:25px;right:25px;padding:0;color:#567466;font-size:12px}.credits{font-size:13px;margin:20px 0}.credits p{font-size:13px}.credits a{color:#28576b}#world-loading{position:absolute;top:40%;text-align:center;width:100%;font-size:18px}.game.driving .car{animation:none}.effect-preview{touch-action:auto}@media(max-width:480px){.game{padding:18px 18px 10px;min-height:600px}.journey-tools{top:94px;left:18px;right:18px;align-items:flex-start}.reaction{max-width:180px;font-size:12px;text-align:end;line-height:1.6}.play-area{inset:65px -22px 185px}.dashboard{bottom:33px}.controls{width:320px;gap:14px}.control{height:78px;min-height:78px;border-radius:25px}.control.drive{height:116px;padding:5px 10px 8px}.drive #steering-control{width:70px;height:70px}.animal-controls{margin-bottom:14px}.animal-controls button{height:61px;width:69px;border-radius:19px}.animal-controls button>span:first-child{font-size:28px}.parent-button{min-height:44px}.eyebrow{font-size:12px}.landscape{font-size:13px;padding:8px 14px}}@media(orientation:landscape) and (max-height:650px){.game{min-height:320px;padding:12px 20px}.play-area{inset:0 185px 0 0}.journey-tools{top:66px;left:auto;right:20px;flex-direction:column;gap:8px}.reaction{max-width:130px;font-size:12px}.dashboard{left:auto;right:16px;transform:none;bottom:35px;width:170px}.controls{width:165px;gap:7px;grid-template-columns:1fr 1fr}.control.drive{grid-column:1/-1;grid-row:1;height:94px;width:96px;justify-self:center;flex-direction:column}.drive #steering-control{height:55px;width:55px}.control{height:54px;min-height:54px;flex-direction:row;gap:4px;font-size:12px;border-radius:19px}.control-icon{font-size:25px}.animal-controls{gap:4px;margin-bottom:10px}.animal-controls button{width:51px;height:52px;font-size:11px;border-radius:15px}.animal-controls button>span:first-child{font-size:25px}.brand{pointer-events:none}h1{font-size:24px}.parent-button{min-height:38px}.eyebrow{display:none}footer{bottom:8px}.game header{align-items:start}}@media(prefers-reduced-motion:reduce){.drive #steering-control{transition:none}}
.play-area{inset:0}.game{background:#b4ddf1}.dashboard{padding-top:10px}header .brand{filter:drop-shadow(0 1px 5px #e6f5ffaa)}.reaction{background:#ffffff91;border-radius:18px;padding:8px 12px;max-width:220px}.game footer{z-index:3}.journey-tools{top:100px}.dashboard::before{content:'';position:absolute;z-index:-1;inset:-20px -40px -40px;background:linear-gradient(0deg,#d4e7ddcc,transparent);border-radius:50% 50% 0 0;pointer-events:none}@media(max-width:480px){.play-area{inset:0}.reaction{max-width:175px;font-size:12px}}@media(orientation:landscape) and (max-height:650px){.play-area{inset:0 150px 0 0}.journey-tools{top:68px}.dashboard::before{inset:-25px -35px -20px;background:#d4e7dd77;filter:blur(15px)}}
.game.lit .brand{filter:none}.game.lit h1,.game.lit .eyebrow{color:#e9f4fb}.game.lit footer{color:#dceae4}

/* V3: generous steering targets, separate sound controls, usable in split-screen. */
.game{min-height:0;height:100svh}.dashboard{bottom:max(25px,env(safe-area-inset-bottom));width:min(460px,calc(100% - 24px))}.steering-row{display:flex;align-items:center;justify-content:center;gap:24px;margin:4px 0 14px}.steering-row .drive{width:148px;height:148px;min-height:148px;flex-shrink:0}.drive #steering-control{width:95px;height:95px;transition:transform .08s linear}.turn{width:66px;height:74px;border-radius:28px;background:#eaf5efea;color:#294d57;font-size:56px;line-height:1;border:2px solid #fff;box-shadow:0 5px 0 #24473825;touch-action:none}.turn:active{background:#a4dccc;transform:translateY(3px)}.controls{display:grid;grid-template-columns:repeat(4,1fr);width:100%;gap:9px}.controls .control{height:64px;min-height:64px;font-size:13px;border-radius:22px;padding:4px}.controls .control-icon{font-size:27px}.music{background:#dacafa}.brake{background:#ffd3b6}.animal-controls{margin-bottom:8px;gap:16px}.animal-controls button{height:58px;width:68px;border-radius:20px}.animal-controls button>span:first-child{font-size:27px}.dashboard::before{inset:-12px -30px -25px;background:linear-gradient(0deg,#d4e7ddf0,#d4e7ddaa 65%,transparent)}.journey-tools{top:97px}.game footer{bottom:5px;font-size:10px}.reaction{max-width:175px}
@media(max-width:480px){.steering-row{gap:24px;margin:2px 0 10px}.steering-row .drive{width:130px;height:130px;min-height:130px}.drive #steering-control{width:84px;height:84px}.turn{width:62px;height:70px}.dashboard{bottom:23px;width:calc(100% - 28px)}.animal-controls{margin-bottom:4px}.animal-controls button{height:52px;width:66px}.controls .control{height:57px;min-height:57px;font-size:12px}.controls .control-icon{font-size:25px}.journey-tools{top:90px}.reaction{max-width:150px;font-size:11px}}
@media(orientation:landscape) and (max-height:650px){.dashboard{width:240px;right:12px;left:auto;bottom:22px;transform:none}.play-area{inset:0 210px 0 0}.steering-row{gap:10px;margin:6px 0 10px}.steering-row .drive{width:96px;height:96px;min-height:96px}.drive #steering-control{width:56px;height:56px}.turn{width:52px;height:60px;font-size:44px}.controls{width:240px;gap:5px;grid-template-columns:repeat(4,1fr)}.controls .control{height:48px;min-height:48px;font-size:10px;flex-direction:column;gap:0;border-radius:15px}.controls .control-icon{font-size:23px}.animal-controls{gap:10px}.animal-controls button{height:48px;width:57px}.journey-tools{top:64px;right:auto;left:20px;max-width:180px}.journey-tools .reaction{display:none}.game .brand h1{font-size:22px}}

.drive #steering-control{stroke:none;stroke-width:0;fill:initial}.steering-row .drive{background:#dcebe6;color:#224554;border:3px solid #fff;padding:5px 8px 9px}.steering-row #steering-control{width:110px;height:110px}.steering-row .drive>span{font-size:12px;margin-top:-3px}@media(max-width:480px){.steering-row #steering-control{width:96px;height:96px}}@media(orientation:landscape) and (max-height:650px){.steering-row #steering-control{width:65px;height:65px}}
