:root{--violet:#5c4ac7;--ink:#2f2854;--muted:#756e91;--paper:#fffaf2;--green:#38b878;--yellow:#f0b92e;--red:#e66b78;--shadow:0 18px 48px #35227426;font-family:Nunito,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#f6f1ff;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 12% 4%,#c8f1ff 0,transparent 32%),radial-gradient(ellipse at 86% 12%,#ffe8ae 0,transparent 28%),linear-gradient(145deg,#f5f2ff,#fff9e9 65%,#e9f9ee)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}.topbar{position:sticky;top:0;z-index:15;display:flex;align-items:center;gap:18px;padding:10px clamp(14px,4vw,56px);background:#fffc;backdrop-filter:blur(14px);border-bottom:1px solid #fff;box-shadow:0 4px 22px #40347712}.brand{font-weight:1000;color:var(--violet);font-size:18px;white-space:nowrap}.brand span{margin-left:7px;color:var(--ink)}.site-back{color:#5b4b9b;text-decoration:none;font-weight:900;white-space:nowrap}.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.language-control,.small-button{border:1px solid #ddd5f4;background:#fff;border-radius:999px;padding:9px 13px;color:#4d437b;font-weight:850}.language-control select{border:0;background:transparent;color:inherit;font-weight:850;max-width:116px;outline:0}.small-button{cursor:pointer;box-shadow:0 4px 12px #41347712;transition:.2s transform,.2s box-shadow}.small-button:hover{transform:translateY(-2px);box-shadow:0 8px 18px #41347722}.map-view,.game-view{max-width:1500px;margin:auto;padding:clamp(16px,3vw,38px)}.map-intro{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:0 8px 20px}.kicker{margin:0 0 6px;color:#7462b8;font-size:11px;font-weight:1000;letter-spacing:.16em}.map-intro h1{margin:0;font-size:clamp(30px,4vw,52px);line-height:1.05;letter-spacing:-.035em}.map-intro p:not(.kicker){margin:8px 0 0;color:var(--muted);font-weight:750}.lesson-question{display:grid;gap:6px;width:min(390px,35vw);padding:12px 15px;border:1px solid #e5ddf5;border-radius:17px;background:#fffc;font-weight:850}.lesson-question span{color:#7462b8;font-size:12px}.lesson-question input,.settings-grid input,.roster-fields input,.roster-fields textarea,.roster-fields select{width:100%;padding:10px 12px;border:1px solid #e3def0;border-radius:11px;outline:0;color:var(--ink);background:white}.lesson-question input:focus,.settings-grid input:focus,.roster-fields input:focus,.roster-fields textarea:focus{border-color:#907ce0;box-shadow:0 0 0 3px #907ce022}.map-frame{position:relative;overflow:hidden;min-height:min(70vh,850px);padding:clamp(28px,4vw,58px);border:7px solid #fff;border-radius:36px;background:linear-gradient(165deg,#83dbf1 0 23%,#adf0ca 23% 31%,#e8f3bc 31% 60%,#d6f1a7 60% 100%);box-shadow:var(--shadow);isolation:isolate}.map-frame:before{content:"";position:absolute;inset:36% -4% -12%;z-index:-1;background:radial-gradient(ellipse at 50% 7%,#fff8 0 3%,transparent 3.3%),linear-gradient(180deg,#a6db79,#7acb6e 60%,#54b96d);border-radius:50% 50% 0 0}.map-frame:after{content:"";position:absolute;left:-10%;right:-10%;top:35%;height:14%;z-index:-1;transform:rotate(-4deg);background:repeating-linear-gradient(90deg,#fff 0 58px,transparent 58px 88px),linear-gradient(#756db1,#756db1);border:7px solid #eee8ff;border-left:0;border-right:0;opacity:.9}.map-path{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible}.map-path path:first-child{fill:none;stroke:#fff5bd;stroke-width:28;stroke-linecap:round;stroke-linejoin:round}.map-path .path-dashes{fill:none;stroke:#d1a751;stroke-width:4;stroke-dasharray:2 22;stroke-linecap:round;opacity:.66}.world-map{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(150px,1fr));gap:clamp(12px,2vw,26px);min-height:calc(min(70vh,850px) - 116px);align-items:center}.world-node{position:relative;min-height:clamp(150px,18vh,220px);padding:0;overflow:hidden;border:5px solid #fff;border-radius:26px;background:#fff;box-shadow:0 12px 26px #33235b36;text-align:left;cursor:pointer;transform:rotate(var(--tilt,0deg)) translateZ(0);transition:transform .28s,box-shadow .28s,border-color .28s;animation:node-float 5s ease-in-out infinite alternate;animation-delay:var(--delay,0s)}.world-node:nth-child(3n+2){--tilt:1deg}.world-node:nth-child(3n){--tilt:-1deg}.world-node:nth-child(4n){animation-delay:-2s}.world-node:hover,.world-node:focus-visible{z-index:3;transform:scale(1.055) rotate(0);border-color:#ffdf66;box-shadow:0 18px 34px #33235b48;outline:0}.world-node img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s;animation:art-breathe 9s ease-in-out infinite alternate}.world-node:hover img{transform:scale(1.08)}.world-node:after{content:"";position:absolute;inset:34% 0 0;background:linear-gradient(transparent,#1c164bcf)}.node-title{position:absolute;z-index:2;left:12px;right:12px;bottom:11px;color:#fff;text-shadow:0 2px 6px #211643;font-size:clamp(15px,1.65vw,22px);font-weight:1000;line-height:1.08}.node-number{position:absolute;top:9px;left:10px;z-index:2;display:grid;place-items:center;width:32px;height:32px;border:2px solid #fff;border-radius:50%;background:#5c4ac7;color:white;font-size:14px;font-weight:1000;box-shadow:0 4px 10px #281d4b40}.node-status{position:absolute;z-index:3;right:8px;top:8px;padding:5px 8px;border:1px solid #fff;border-radius:999px;background:#fffdf0ef;color:#6752ad;font-size:10px;font-weight:1000}.map-sign{position:absolute;left:50%;bottom:11px;display:flex;align-items:center;gap:10px;transform:translateX(-50%);padding:8px 17px;border:3px solid #fff;border-radius:999px;background:#fff9dc;color:#58509a;font-weight:1000;white-space:nowrap;box-shadow:0 6px 16px #382d5440}.map-help{text-align:center;color:#6d6686;font-weight:750;font-size:13px}.game-view{max-width:1400px}.game-topline{display:flex;align-items:center;gap:16px;margin-bottom:14px}.game-title{display:flex;align-items:center;gap:12px}.game-title>span{display:grid;place-items:center;width:54px;height:54px;border:3px solid #fff;border-radius:18px;background:#ffd85a;font-size:30px;box-shadow:0 8px 17px #32226322}.game-title h1{margin:0;font-size:clamp(24px,3vw,38px)}.game-title .kicker{margin:0}.game-actions{margin-left:auto}.prompt-strip{display:flex;align-items:center;gap:10px;margin:12px 0;padding:14px 18px;border-radius:16px;background:#fff2b9;color:#514168;font-size:clamp(15px,1.5vw,20px);box-shadow:0 5px 14px #45337a12}.traffic-scene{position:relative;overflow:hidden;height:min(62vh,650px);min-height:370px;border:7px solid #fff;border-radius:30px;background:linear-gradient(#83dafa 0 53%,#a9e88c 53% 64%,#454e79 64%);box-shadow:var(--shadow);isolation:isolate}.traffic-art{width:100%;height:100%;display:block}.signal-labels{font:900 12px Nunito,system-ui,sans-serif;fill:#5c4b88}.traffic-scene .student-character,.traffic-scene .teacher-character{transform-box:fill-box;transform-origin:center bottom}.traffic-scene .teacher-character{opacity:0}.traffic-scene .vehicle-yellow,.traffic-scene .vehicle-green{opacity:.22}.traffic-scene .ped-green{opacity:.22}.traffic-scene.action-yellow .teacher-character{animation:teacher-join-and-cross 3.9s cubic-bezier(.2,.75,.25,1) both}.traffic-scene.action-green .student-character{animation:walk-across 2.6s cubic-bezier(.35,.05,.25,1) both,walk-bob .42s ease-in-out infinite}.traffic-scene.action-yellow .student-character{animation:walk-across 2.8s 1.05s cubic-bezier(.35,.05,.25,1) both,walk-bob .42s 1.05s ease-in-out infinite}.traffic-scene.action-yellow .teacher-character{animation:teacher-join-and-cross 3.9s cubic-bezier(.2,.75,.25,1) both,walk-bob .45s ease-in-out infinite}.traffic-scene.action-green .ped-green,.traffic-scene.action-yellow .ped-green{opacity:1;filter:drop-shadow(0 0 9px #4be18f);animation:signal-glow 1s ease-in-out infinite alternate}.traffic-scene.action-green .ped-red,.traffic-scene.action-yellow .ped-red{opacity:.25}.traffic-scene.action-red .student-character{animation:gentle-wave 1.3s ease-in-out 1}.traffic-scene.action-red .help-bubble{animation:bubble-pop .45s cubic-bezier(.2,1.4,.4,1) both}.traffic-scene.action-green .vehicle-red,.traffic-scene.action-yellow .vehicle-red{filter:drop-shadow(0 0 8px #ff5555)}.traffic-scene.action-green .confetti-burst{animation:confetti-pop .8s ease-out both}.traffic-scene.action-yellow .confetti-burst{display:none}.help-bubble{opacity:0;transform-origin:bottom left}.traffic-scene.action-red .help-bubble{opacity:1}.scene-toast{position:absolute;left:50%;top:5%;transform:translateX(-50%);max-width:90%;padding:11px 18px;border:2px solid #fff;border-radius:999px;background:#fffc;color:#42376d;text-align:center;font-size:clamp(13px,1.4vw,18px);font-weight:1000;box-shadow:0 6px 17px #22143c28}.scene-counts{position:absolute;right:15px;top:15px;display:flex;gap:7px}.scene-count{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #fff;border-radius:999px;background:#fffde8ed;font-weight:950;font-size:13px;box-shadow:0 4px 12px #32244a22}.scene-count i{width:10px;height:10px;border-radius:50%;background:var(--c)}.vote-area,.teacher-settings,.results-card{margin-top:14px;padding:16px;border:1px solid #fff;border-radius:22px;background:#fffc;box-shadow:0 8px 24px #35227414}.turn-row{display:flex;align-items:center;gap:15px;min-height:39px;margin-bottom:10px}.turn-row>strong{font-size:19px}.turn-row label{display:flex;align-items:center;gap:8px;font-weight:900}.turn-row select{padding:8px 12px;border:1px solid #ded6f1;border-radius:11px;background:white;color:var(--ink);font-weight:850}.turn-row #voteStatus{margin-left:auto;color:#548358;font-weight:850}.vote-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.vote-button{min-height:74px;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;border:2px solid #ffffff;border-radius:19px;color:#25364a;font-weight:1000;font-size:clamp(15px,1.55vw,21px);cursor:pointer;box-shadow:0 7px 14px #3d2d551a;transition:transform .18s,box-shadow .18s}.vote-button:nth-child(1){background:linear-gradient(140deg,#a8f1c2,#5bd08b);border-color:#8be3ac}.vote-button:nth-child(2){background:linear-gradient(140deg,#fff0a0,#ffd04f);border-color:#ffe17d}.vote-button:nth-child(3){background:linear-gradient(140deg,#ffc1be,#f18487);border-color:#f6a09d}.vote-button:hover,.vote-button:focus-visible{transform:translateY(-3px) scale(1.015);box-shadow:0 12px 22px #3d2d5530;outline:3px solid #fff;outline-offset:1px}.vote-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.vote-button .vote-icon{font-size:25px}.primary-button{border:0;border-radius:15px;padding:13px 20px;background:linear-gradient(130deg,#6550d1,#9475e7);color:white;font-weight:1000;font-size:16px;box-shadow:0 7px 15px #5743b839;cursor:pointer;transition:.2s transform,.2s box-shadow}.primary-button:hover{transform:translateY(-2px);box-shadow:0 10px 19px #5743b844}.teacher-settings summary{cursor:pointer;font-weight:1000;color:#51438b}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:15px}.settings-grid label,.roster-fields label{display:grid;gap:5px;color:#5d527e;font-size:13px;font-weight:900}.settings-grid .primary-button{align-self:end}.teacher-tools{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}.results-card{padding:20px 22px}.results-heading{display:flex;align-items:center;justify-content:space-between}.results-heading h2{margin:0;font-size:24px}.total-count{padding:10px 14px;border-radius:99px;background:#ebe5ff;color:#58499b;font-weight:1000}.result-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.result-bar{position:relative;overflow:hidden;min-height:115px;display:grid;align-content:space-between;padding:14px;border-radius:18px;background:linear-gradient(180deg,#fff,#f7f5fc);border:1px solid #eee7fa}.result-bar:after{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--percent);background:var(--tint);opacity:.36;transition:height .65s cubic-bezier(.2,.7,.2,1)}.result-bar>*{position:relative;z-index:1}.result-bar .result-label{font-weight:900}.result-bar .result-value{font-size:26px;font-weight:1000}.result-bar .result-percent{font-weight:1000;color:#4a426c}.result-bar.winner{outline:3px solid var(--tint);box-shadow:0 5px 15px #4432561e}.student-results{margin-top:12px;padding:12px;border-radius:14px;background:#f8f5ff}.student-results table{width:100%;border-collapse:collapse}.student-results td,.student-results th{padding:8px;border-bottom:1px solid #e7e0f3;text-align:left}.dialog-card{width:min(560px,calc(100% - 24px));max-height:min(88vh,920px);overflow:auto;padding:28px;border:3px solid #fff;border-radius:28px;background:linear-gradient(145deg,#fffdf7,#f5f0ff);color:var(--ink);box-shadow:0 28px 90px #20153e77}.dialog-card::backdrop{background:#1f194b99;backdrop-filter:blur(5px)}.dialog-card h2{margin:4px 0 12px;font-size:30px}.dialog-close{float:right;width:38px;height:38px;border:0;border-radius:50%;background:#ece7fa;color:#4f4388;font-size:26px;cursor:pointer}.mode-choices{display:grid;gap:10px;margin:18px 0}.mode-choice{display:flex;gap:11px;align-items:flex-start;padding:15px;border:2px solid #e7def7;border-radius:16px;background:#fff;cursor:pointer}.mode-choice:has(input:checked){border-color:#8069d4;background:#f5f0ff}.mode-choice input{margin-top:7px;accent-color:#6752c5}.mode-choice span{display:grid;gap:3px}.mode-choice b{font-size:16px}.mode-choice small{color:#726986;font-weight:700}.roster-fields{display:grid;gap:11px;margin:12px 0}.roster-fields textarea{resize:vertical}.roster-fields label small{color:#847d98}.roster-fields .save-roster{display:flex;align-items:center;grid-template-columns:auto 1fr}.save-roster input{width:auto}.dialog-note{margin:12px 0;padding:11px;border-radius:12px;background:#eaf8ee;color:#40694d;font-size:13px;font-weight:800}.preview-dialog-art{overflow:hidden;margin:-4px -4px 14px;border:4px solid white;border-radius:19px;aspect-ratio:16/8}.preview-dialog-art img{width:100%;height:100%;object-fit:cover}.final-dialog{text-align:center}.final-stars{font-size:44px;animation:star-float 1.7s ease-in-out infinite alternate}.final-dialog #finalStats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.final-summary{padding:12px;border-radius:15px;background:#fff;font-weight:900}.final-summary b{display:block;font-size:25px}.world-zoom{animation:world-zoom .48s cubic-bezier(.2,.7,.2,1)}[hidden]{display:none!important}
@keyframes node-float{from{translate:0 0}to{translate:0 -5px}}@keyframes art-breathe{from{object-position:49% 50%}to{object-position:51% 48%}}@keyframes walk-across{0%{translate:0 0}100%{translate:0 140px}}@keyframes teacher-join-and-cross{0%{opacity:0;translate:-90px 18px}21%{opacity:1;translate:0 0}35%{opacity:1;translate:0 0}100%{opacity:1;translate:0 140px}}@keyframes walk-bob{0%,100%{rotate:0}50%{rotate:2deg}}@keyframes gentle-wave{0%,100%{rotate:0}25%{rotate:-5deg}70%{rotate:4deg}}@keyframes bubble-pop{0%{opacity:0;scale:.7}100%{opacity:1;scale:1}}@keyframes signal-glow{to{opacity:.55}}@keyframes confetti-pop{0%{opacity:0;scale:.4}25%{opacity:1;scale:1.25}100%{opacity:0;scale:1.6}}@keyframes star-float{to{translate:0 -6px;rotate:4deg}}@keyframes world-zoom{from{scale:.95;opacity:.4}to{scale:1;opacity:1}}
@media(max-width:760px){.topbar{gap:8px;padding:8px 10px}.brand{font-size:14px}.brand span{display:none}.top-actions{gap:5px}.small-button,.language-control{padding:8px 10px;font-size:12px}.map-intro{align-items:stretch;flex-direction:column}.lesson-question{width:100%}.map-frame{min-height:70vh;padding:28px 18px;border-width:5px;border-radius:24px;overflow-x:auto}.world-map{min-width:900px;grid-template-rows:repeat(3,185px);gap:16px;min-height:585px;padding-bottom:34px}.world-node{min-height:160px}.map-sign{position:sticky;left:50%;width:max-content;bottom:5px;font-size:12px}.map-path{min-width:900px}.game-topline{flex-wrap:wrap;gap:9px}.game-title{order:2;width:calc(100% - 130px)}.game-topline>#backToMap{order:1}.game-actions{order:3;margin-left:auto}.game-title>span{width:44px;height:44px;font-size:24px}.game-title h1{font-size:23px}.traffic-scene{height:54vh;min-height:340px;border-radius:20px;border-width:4px}.traffic-art{object-fit:cover}.signal-labels{font-size:13px}.scene-counts{left:9px;right:9px;top:auto;bottom:8px;justify-content:center}.scene-count{font-size:11px;padding:6px 8px}.vote-area,.teacher-settings,.results-card{padding:12px}.vote-buttons{gap:7px}.vote-button{min-height:88px;flex-direction:column;gap:3px;padding:8px 6px;font-size:13px;line-height:1.1}.vote-button .vote-icon{font-size:23px}.turn-row{flex-wrap:wrap}.turn-row #voteStatus{width:100%;margin-left:0}.result-bars{gap:7px}.result-bar{padding:9px;min-height:110px}.result-bar .result-label{font-size:12px}.result-bar .result-value{font-size:21px}.settings-grid{grid-template-columns:1fr}.game-view{padding:14px}.map-view{padding:14px}}
body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.map-path{z-index:0}.world-map{z-index:1}.map-sign{z-index:2}.form-error{margin:8px 0;color:#b74653;font-weight:900}.traffic-scene.action-green .student-character .arm-left,.traffic-scene.action-yellow .student-character .arm-left,.traffic-scene.action-yellow .teacher-character{transform-box:fill-box;transform-origin:center}.traffic-scene.action-green .student-character .arm-left,.traffic-scene.action-yellow .student-character .arm-left{animation:arm-swing .3s ease-in-out infinite alternate}.traffic-scene.action-yellow .teacher-character{animation:teacher-join-and-cross 3.9s cubic-bezier(.2,.75,.25,1) both,walk-bob .45s ease-in-out infinite}.traffic-scene.action-green .vehicle-red,.traffic-scene.action-yellow .vehicle-red{animation:vehicle-stop .35s ease-out both}@keyframes arm-swing{from{rotate:-14deg}to{rotate:16deg}}@keyframes vehicle-stop{from{scale:1.25}to{scale:1}}

#trafficView.world-open{animation:world-open .48s cubic-bezier(.18,.8,.27,1) both}@keyframes world-open{from{opacity:0;scale:.96;translate:0 12px}to{opacity:1;scale:1;translate:0 0}}

/* Stage 1 animated interiors: the three featured worlds use independent SVG actors. */
.game-topline .game-actions{margin-left:auto}.game-topline>.site-back{display:none}
.traffic-scene.world-space,.traffic-scene.world-tree{height:min(74vh,760px);min-height:440px;border:0;border-radius:30px;background:#18295e;box-shadow:0 24px 56px #20174545;isolation:isolate}
.world-backdrop{position:absolute;inset:0;background-image:var(--scene-image);background-position:center;background-size:cover;opacity:.30;filter:saturate(1.08);z-index:-1}
.world-space{background:radial-gradient(ellipse at 48% 5%,#4263bb,#111c4f 69%,#17103c)!important}
.world-tree{background:linear-gradient(#91dcf2 0 54%,#a8e78e 54% 100%)!important}
.world-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.space-svg .stars{fill:#fff6ad;animation:stars-shimmer 1.8s ease-in-out infinite alternate}
.planet{transform-box:view-box;transform-origin:center;animation:planet-hover 3.4s ease-in-out infinite alternate;transition:filter .35s,scale .45s}
.planet-1{animation-delay:-1.2s}.planet-2{animation-delay:-2.3s}
.planet-shadow{fill:#07103366}.planet-ring{fill:none;stroke:#fff9;stroke-width:8}.planet-count{font:1000 54px system-ui,sans-serif;text-anchor:middle;fill:#fff;text-shadow:0 3px 8px #42234c77}.planet-name{font:900 15px system-ui,sans-serif;text-anchor:middle;fill:#fff;text-shadow:0 2px 5px #15224e}.tiny-astronaut{animation:astronaut-bob 1.7s ease-in-out infinite alternate}.tiny-astronaut:nth-of-type(even){animation-delay:-.8s}
.space-rocket{transform-box:view-box;transform-origin:center;filter:drop-shadow(0 8px 8px #060b27aa)}.world-action .space-rocket{animation:rocket-to-planet .9s cubic-bezier(.15,.8,.25,1) both}.planet.chosen-now,.world-action .planet.chosen-now{filter:drop-shadow(0 0 23px #fff);scale:1.08}.rocket-flame{transform-box:fill-box;transform-origin:center;animation:flame-flicker .16s ease-in-out infinite alternate}
.world-ledger{position:absolute;top:16px;left:50%;display:flex;gap:10px;transform:translateX(-50%)}.world-ledger span{display:grid;place-items:center;min-width:62px;padding:7px 12px;border:2px solid #fff9;border-radius:16px;background:#111846c9;color:#fff;font-size:22px;font-weight:1000;box-shadow:0 6px 15px #10133266}.world-ledger i{width:12px;height:12px;border-radius:50%;background:var(--dot);box-shadow:0 0 12px var(--dot)}
.tree-svg .tree-trunk{transform-box:view-box;transform-origin:53% 85%;animation:tree-sway 4.4s ease-in-out infinite alternate}.tree-crown{transform-box:view-box;transform-origin:center bottom;animation:crown-sway 3.4s ease-in-out infinite alternate}.apple-branch-layer{overflow:visible}.apple-fruit{fill:#48cb68;stroke:#fff8;stroke-width:3}.apple-1 .apple-fruit{fill:#ffc62f}.apple-2 .apple-fruit{fill:#eb5660}.hanging-apple{transform-box:fill-box;transform-origin:top center;animation:apple-hang .8s cubic-bezier(.2,.85,.2,1) var(--apple-delay) both}.hanging-apple:nth-child(3n){animation-name:apple-hang-sway}.apple-counter circle{fill:#fff9de;stroke:#fff;stroke-width:5;filter:drop-shadow(0 5px 8px #31613b55)}.apple-counter text{font:1000 22px system-ui,sans-serif;text-anchor:middle;fill:#493858}.counter-1 circle{fill:#ffedaa}.counter-2 circle{fill:#ffd5d1}.garden-bird{animation:bird-flit 4s ease-in-out infinite alternate}
.world-space .scene-counts,.world-tree .scene-counts{display:none}.world-space .scene-toast,.world-tree .scene-toast{top:auto;bottom:15px;z-index:5;max-width:calc(100% - 30px);background:#fffef4f2}
@keyframes planet-hover{from{translate:0 0}to{translate:0 -8px}}@keyframes astronaut-bob{to{translate:0 -5px;rotate:3deg}}@keyframes stars-shimmer{to{opacity:.45}}@keyframes rocket-to-planet{0%{translate:0 0;rotate:0}25%{translate:220px -185px;rotate:34deg}70%{translate:410px -120px;rotate:70deg}100%{translate:calc((var(--target-x,0))*1px) calc((var(--target-y,0))*1px);opacity:.1}}@keyframes flame-flicker{to{scale:.7 1.35;opacity:.65}}@keyframes tree-sway{to{rotate:1deg}}@keyframes crown-sway{to{rotate:-1.2deg}}@keyframes apple-hang{0%{opacity:0;translate:0 -180px;scale:.55}75%{opacity:1;translate:0 8px;scale:1.12}100%{opacity:1;translate:0 0;scale:1}}@keyframes apple-hang-sway{0%{opacity:0;translate:0 -180px;rotate:-12deg;scale:.55}75%{opacity:1;translate:0 8px;rotate:9deg;scale:1.12}100%{opacity:1;translate:0 0;rotate:0;scale:1}}@keyframes bird-flit{to{translate:20px -8px}}@media(max-width:760px){.traffic-scene.world-space,.traffic-scene.world-tree{height:60vh;min-height:410px;border-radius:21px}.world-ledger{top:10px;gap:6px}.world-ledger span{min-width:48px;padding:5px 9px;font-size:18px}.planet-name{font-size:18px}.planet-count{font-size:64px}}
/* Nine illustrated, independently animated reflection worlds */
.traffic-scene[class*="world-"]{height:min(68vh,700px);min-height:390px;border:5px solid #fff;border-radius:28px;background:#212b61;box-shadow:0 22px 54px #21164c55;isolation:isolate}
.traffic-scene[class*="world-"] .world-backdrop{position:absolute;inset:0;background-image:linear-gradient(180deg,#10174120,#11153a55),var(--scene-image);background-size:cover;background-position:center;opacity:1;filter:saturate(1.05);z-index:-1}
.world-actors{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;color:white;text-shadow:0 4px 7px #23194a77;font-weight:1000}
.world-actors>div{position:relative;width:100%;height:100%}
.world-tally{position:absolute;top:12px;right:12px;display:flex;gap:7px;z-index:5;max-width:80%;justify-content:flex-end;flex-wrap:wrap}
.world-tally span{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#fffef1ef;color:#443869;font-size:clamp(10px,1vw,14px);font-weight:900;box-shadow:0 4px 14px #21194a44}
.world-tally i{width:12px;height:12px;border-radius:50%;background:var(--orb);box-shadow:0 0 0 3px #fff}
.world-tally b{font-size:17px}
.traffic-scene .scene-toast{z-index:8;top:auto;bottom:12px;background:#fffffff2}
.traffic-signal{position:absolute;left:8%;top:22%;display:grid;gap:12px;padding:14px;border:4px solid #fff8;border-radius:32px;background:linear-gradient(135deg,#414768,#161d42);box-shadow:0 18px 28px #1c154e88}
.traffic-signal i{width:30px;height:30px;border-radius:50%;background:#555d79;box-shadow:inset 0 -4px 7px #141a3d}
.traffic-signal i:first-child{background:#f35160;box-shadow:0 0 17px #ff5d69}
.walkway{position:absolute;left:28%;bottom:2%;display:flex;gap:8px;transform:skewX(-12deg)}.walkway b{width:5vw;max-width:72px;height:19%;background:#fff9df;border-radius:7px;box-shadow:0 4px 6px #29245145}
.actor{position:absolute;bottom:18%;font-size:clamp(62px,12vw,140px);filter:drop-shadow(0 18px 9px #15153e66);transition:left 1.2s cubic-bezier(.2,.7,.2,1);animation:actor-idle 2s ease-in-out infinite alternate}
.actor.child{left:35%}.actor.teacher{left:20%;opacity:0}.parked-car{position:absolute;right:9%;bottom:18%;font-size:clamp(55px,8vw,90px);filter:drop-shadow(0 10px 7px #21194c88)}
.safety-sign{position:absolute;left:4%;bottom:8%;padding:8px 12px;border-radius:14px;background:#fffc;color:#443869;font-size:clamp(10px,1vw,14px);text-shadow:none}
.world-traffic.choice-0 .child{left:67%;animation:cross-walk 2.4s ease-in-out both}.world-traffic.choice-1 .child{left:63%;animation:cross-walk 2.4s .4s ease-in-out both}.world-traffic.choice-1 .teacher{opacity:1;left:49%;animation:actor-idle .5s ease-in-out infinite alternate}.world-traffic.choice-2 .child{left:35%;animation:help-wave 1s ease-in-out 2}.world-traffic.choice-2 .teacher{opacity:1;left:47%;animation:actor-idle .6s ease-in-out infinite alternate}
.space-world,.tree-world,.emotion-world,.balloon-world,.race-world,.football-world,.class-world,.gift-world{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-evenly;padding:7% 4% 8%}
.planet{position:relative;width:27%;height:50%;max-height:255px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:5px solid #fff9;border-radius:49% 51% 47% 53%;background:radial-gradient(circle at 35% 25%,#fff9,var(--orb) 42%,#34256d 130%);box-shadow:inset -14px -18px 28px #20174c55,0 20px 25px #13133b77;animation:planet-float 3s ease-in-out infinite alternate;animation-delay:calc(var(--i,0)*-.4s)}.planet.p0{--i:0}.planet.p1{--i:1}.planet.p2{--i:2}.planet:after{content:"";position:absolute;inset:28% -13%;height:40%;border:9px solid #fff9;border-radius:50%;transform:rotate(-12deg);box-shadow:0 5px 12px #19134455}.planet> b{font-size:clamp(34px,6vw,76px);z-index:2}.planet small{font-size:clamp(10px,1.4vw,17px);z-index:2}.planet-faces{position:absolute;top:18%;display:flex;gap:1px;z-index:2}.mini-kid{font-style:normal;font-size:clamp(16px,2vw,27px);filter:drop-shadow(0 3px 3px #2224);animation:actor-idle 1.5s ease-in-out infinite alternate}
.rocket{position:absolute;left:3%;bottom:14%;font-size:clamp(54px,8vw,96px);filter:drop-shadow(0 12px 10px #1a133d99);z-index:3}.world-space.choice-0 .rocket,.world-space.choice-1 .rocket,.world-space.choice-2 .rocket{animation:rocket-flight 2s cubic-bezier(.25,.7,.4,1) both}
.tree-world{align-items:end}.magic-tree{position:absolute;left:50%;top:8%;width:min(48vw,540px);height:78%;transform:translateX(-50%)}.tree-face{position:absolute;inset:10% 4% auto;height:65%;display:grid;place-items:center;font-size:clamp(180px,36vw,420px);filter:drop-shadow(0 20px 14px #17362999);animation:tree-sway 4s ease-in-out infinite alternate}.apple-groups{position:absolute;top:9%;left:7%;right:4%;display:flex;justify-content:space-around;font-size:clamp(22px,4vw,48px);filter:drop-shadow(0 6px 5px #20462777)}.apple-groups b{font-size:.6em;color:white}.tree-branches{position:absolute;top:38%;left:14%;right:14%;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-height:42%;overflow:hidden}.fruit{font-style:normal;font-size:clamp(18px,3vw,34px);animation:fruit-drop .75s cubic-bezier(.2,1.4,.4,1) both;animation-delay:calc(var(--n)*20ms)}.garden-butterflies{position:absolute;bottom:4%;width:100%;text-align:center;font-size:36px;animation:butterfly-drift 5s ease-in-out infinite alternate}
.emotion-character{position:relative;display:grid;justify-items:center;gap:3px;width:29%;font-size:clamp(13px,2vw,22px);animation:actor-idle 1.8s ease-in-out infinite alternate}.emotion-face{display:grid;place-items:center;width:min(24vw,240px);height:min(24vw,240px);border:8px solid #fff9;border-radius:48%;background:radial-gradient(circle at 35% 25%,#fff,var(--orb) 54%,#443276);font-size:clamp(95px,15vw,180px);box-shadow:inset -18px -18px 25px #34205155,0 18px 23px #26185088}.e0{--orb:#51d987}.e1{--orb:#ffcf4e;animation-delay:-.5s}.e2{--orb:#f16d77;animation-delay:-1s}.emotion-arms{position:absolute;top:40%;font-size:clamp(44px,7vw,88px);opacity:.85;animation:arms-wave 1s ease-in-out infinite alternate}.emotion-character>b{font-size:28px}
.balloon{position:relative;align-self:center;display:grid;justify-items:center;transform:translateY(calc(var(--rise)*-1));animation:balloon-float 2s ease-in-out infinite alternate;animation-delay:calc(var(--i,0)*-.7s)}.balloon:nth-child(2){--i:1}.balloon:nth-child(3){--i:2}.balloon-envelope{width:clamp(115px,19vw,220px);height:clamp(145px,25vw,280px);display:grid;place-items:center;border-radius:52% 48% 48% 52%;border:5px solid #fff9;background:radial-gradient(circle at 32% 22%,#fff,var(--orb) 38%,#30245e 130%);box-shadow:inset -20px -22px 25px #31235566,0 17px 25px #1c184c88;font-size:clamp(45px,8vw,95px)}.balloon-string{height:65px;border-left:3px solid #fff}.basket{display:grid;justify-items:center;padding:4px 12px;border:4px solid #ffe1a3;border-radius:5px 5px 20px 20px;background:linear-gradient(#b97d48,#77432c);font-size:17px}.basket b{font-size:20px}.basket .mini-kid{font-size:16px}
.race-world{display:grid;align-content:center;gap:3%;padding:9% 5% 10%;background:linear-gradient(180deg,#2c276155,#10142a88)}.race-lane{height:22%;position:relative;border-bottom:8px dashed #fffc;background:linear-gradient(90deg,#6a6b85aa,#2c3158bb);border-radius:14px}.lane-label{position:absolute;right:5%;top:10%;padding:6px 9px;border-radius:12px;background:#fff;color:#45396b;text-shadow:none;font-size:clamp(10px,1.3vw,16px)}.race-car{position:absolute;left:2%;bottom:0;font-size:clamp(47px,7vw,90px);transform:translateX(var(--advance));transition:transform 1s cubic-bezier(.2,.7,.2,1);filter:drop-shadow(0 9px 6px #171337aa)}.finish-line{position:absolute;right:7%;top:24%;font-size:50px}.world-race.choice-0 .car0,.world-race.choice-1 .car1,.world-race.choice-2 .car2{animation:car-bounce .45s ease-in-out 4}
.football-world{display:block}.crowd{position:absolute;left:5%;right:5%;top:8%;text-align:center;font-size:clamp(24px,4vw,48px);animation:crowd-wave 1s ease-in-out infinite alternate}.goal{position:absolute;right:11%;top:25%;font-size:clamp(120px,25vw,260px);filter:drop-shadow(0 15px 10px #14133a88)}.goal-tally{position:absolute;top:2%;left:50%;white-space:nowrap;padding:8px 12px;border-radius:15px;background:#18224c;color:white;text-shadow:none;font-size:clamp(12px,1.5vw,19px)}.footballer{position:absolute;bottom:18%;left:16%;font-size:clamp(68px,12vw,135px);filter:drop-shadow(0 15px 8px #15153d88)}.flying-ball{position:absolute;left:34%;bottom:19%;font-size:clamp(35px,6vw,60px);opacity:0}.world-football.choice-0 .flying-ball,.world-football.choice-1 .flying-ball,.world-football.choice-2 .flying-ball{animation:kick-ball 1.4s cubic-bezier(.25,.6,.5,1) both}.goal-word{position:absolute;top:44%;left:40%;font-size:clamp(48px,8vw,90px);color:#fff15d}.world-football.choice-0 .goal-word{animation:goal-pop 1.3s ease-out both}
.class-world{align-items:end}.pupil{position:relative;display:grid;justify-items:center;width:30%;font-size:clamp(12px,1.7vw,19px);text-align:center}.pupil-face{font-size:clamp(80px,14vw,155px);filter:drop-shadow(0 10px 8px #1c174688);animation:actor-idle 2s ease-in-out infinite alternate}.pupil-desk{width:100%;padding:10px;border:5px solid #8d5434;border-radius:14px;background:linear-gradient(#d99b61,#9b5a39);font-size:clamp(30px,5vw,55px)}.pupil span,.pupil>b{display:block;margin-top:7px;padding:4px 8px;border-radius:12px;background:#fff;color:#483a6c;text-shadow:none}.pupil b{font-size:24px}.world-pupils.choice-0 .p0,.world-pupils.choice-1 .p1,.world-pupils.choice-2 .p2{animation:student-reply 1.5s ease-in-out both}
.gift-box{position:relative;display:grid;justify-items:center;width:29%;font-size:clamp(13px,1.8vw,21px)}.gift-face{position:relative;width:min(23vw,230px);height:min(22vw,210px);display:grid;place-items:center;border:7px solid #ffe9a4;border-radius:25px;background:linear-gradient(135deg,var(--orb),#8540ad);font-size:clamp(75px,12vw,140px);box-shadow:inset -18px -18px 26px #25134e66,0 20px 25px #1b174b99}.g0{--orb:#45cf7c}.g1{--orb:#ffbf39}.g2{--orb:#ee5361}.gift-face b{position:absolute;right:3px;bottom:3px;padding:4px 10px;border-radius:50%;background:#fff;color:#48366d;font-size:22px}.gift-lid{position:absolute;z-index:2;top:-10px;font-size:clamp(55px,8vw,90px);transition:transform .5s}.gift-inside{position:absolute;top:5%;font-size:clamp(40px,7vw,75px);opacity:0;transform:translateY(30px) scale(.4)}.gift-box strong{margin-top:10px;padding:6px 9px;border-radius:15px;background:#fff;color:#463b6c;text-shadow:none}.world-gifts.choice-0 .g0 .gift-lid,.world-gifts.choice-1 .g1 .gift-lid,.world-gifts.choice-2 .g2 .gift-lid{transform:translateY(-50px) rotate(-18deg)}.world-gifts.choice-0 .g0 .gift-inside,.world-gifts.choice-1 .g1 .gift-inside,.world-gifts.choice-2 .g2 .gift-inside{opacity:1;animation:gift-pop .9s .25s ease-out both}
@keyframes actor-idle{to{transform:translateY(-10px) rotate(2deg)}}@keyframes cross-walk{0%{transform:translateX(0)}45%{transform:translateX(12vw) translateY(-7px)}100%{transform:translateX(30vw)}}@keyframes help-wave{50%{transform:translateY(-15px) rotate(-8deg)}}@keyframes planet-float{to{transform:translateY(-12px) rotate(2deg)}}@keyframes rocket-flight{0%{transform:translate(0,0) rotate(0)}60%{transform:translate(38vw,-24vh) rotate(28deg)}100%{transform:translate(55vw,-8vh) rotate(65deg)}}@keyframes tree-sway{to{transform:rotate(2deg) translateY(-5px)}}@keyframes fruit-drop{0%{opacity:0;transform:translateY(-100px) scale(.4)}75%{opacity:1;transform:translateY(8px) scale(1.2)}100%{transform:translateY(0) scale(1)}}@keyframes butterfly-drift{to{transform:translateX(30px) translateY(-8px)}}@keyframes arms-wave{to{transform:translateY(-13px) rotate(9deg)}}@keyframes balloon-float{to{translate:0 -14px;rotate:1deg}}@keyframes car-bounce{50%{filter:drop-shadow(0 0 20px #fff);scale:1.08}}@keyframes kick-ball{0%{opacity:1;transform:translate(0,0) scale(1)}70%{opacity:1;transform:translate(34vw,-13vh) scale(.55)}100%{opacity:0;transform:translate(45vw,-7vh) scale(.4)}}@keyframes goal-pop{0%{opacity:0;transform:scale(.4) rotate(-12deg)}30%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:scale(1.4) translateY(-20px)}}@keyframes crowd-wave{to{transform:translateY(-6px)}}@keyframes student-reply{50%{transform:translateY(-45px) scale(1.08)}}@keyframes gift-pop{to{opacity:1;transform:translateY(-40px) scale(1.1)}}
@media(max-width:760px){.traffic-scene[class*="world-"]{height:55vh;min-height:340px}.world-tally{top:6px;right:6px;max-width:92%;gap:4px}.world-tally span{padding:5px 7px;font-size:9px}.world-tally b{font-size:14px}.planet{height:38%;width:29%}.planet:after{border-width:5px}.planet small{max-width:90px;text-align:center}.traffic-signal{left:4%;top:30%;gap:7px;padding:9px}.traffic-signal i{width:21px;height:21px}.safety-sign{max-width:48%;font-size:9px}.walkway{bottom:0}.actor{bottom:24%}.magic-tree{width:72vw}.tree-face{font-size:clamp(170px,44vw,300px)}.balloon-envelope{width:28vw;height:36vw}.gift-face{width:28vw;height:26vw}}
@media(prefers-reduced-motion:reduce){.traffic-scene[class*="world-"] *,body.reduce-motion .traffic-scene[class*="world-"] *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.world-emotion.choice-0 .e0{animation:cheer 1.1s ease-in-out 2}.world-emotion.choice-1 .e1{animation:think 1.2s ease-in-out 2}.world-emotion.choice-2 .e2{animation:comfort 1.2s ease-in-out 2}
.world-race.choice-0 .car0,.world-race.choice-1 .car1,.world-race.choice-2 .car2{animation:car-drive .9s cubic-bezier(.2,.7,.3,1) both}
@keyframes cheer{50%{transform:translateY(-35px) scale(1.09) rotate(-4deg)}}@keyframes think{50%{transform:translateY(-12px) rotate(5deg)}}@keyframes comfort{50%{transform:translateY(-10px) scale(1.04)}}@keyframes car-drive{0%{translate:0 0;scale:.9}55%{scale:1.1}100%{translate:8vw 0;scale:1}}
.traffic-world{position:absolute;inset:0}.traffic-world:after{content:"";position:absolute;left:0;right:0;bottom:0;height:27%;background:linear-gradient(180deg,#23275000,#23275070);z-index:-1}
.ped-signal{position:absolute;left:30%;bottom:30%;display:grid;gap:4px;padding:6px;border:3px solid #fff9;border-radius:13px;background:#202747;color:#ff5f69;font-size:22px;box-shadow:0 6px 14px #16153d88}.ped-signal i{font-style:normal;opacity:.35}.ped-signal i:last-child{opacity:1}.world-traffic.choice-0 .ped-signal i:first-child,.world-traffic.choice-1 .ped-signal i:first-child{opacity:1;color:#49e58e;filter:drop-shadow(0 0 8px #5fffab)}.world-traffic.choice-0 .ped-signal i:last-child,.world-traffic.choice-1 .ped-signal i:last-child{opacity:.3}
@media(max-width:760px){.ped-signal{left:29%;bottom:32%;font-size:17px;padding:4px}}
.traffic-scene[class*="world-"] .world-backdrop{z-index:0}.traffic-scene[class*="world-"] .world-actors{z-index:1}
.world-football.choice-0 .flying-ball{animation:kick-goal 1.35s cubic-bezier(.25,.6,.5,1) both}.world-football.choice-1 .flying-ball{animation:kick-post 1.35s cubic-bezier(.25,.6,.5,1) both}.world-football.choice-2 .flying-ball{animation:kick-wide 1.35s cubic-bezier(.25,.6,.5,1) both}.footballer{transform-origin:bottom center}.world-football.choice-0 .footballer,.world-football.choice-1 .footballer,.world-football.choice-2 .footballer{animation:kick-pose .55s ease-in-out 2}.world-football.choice-0 .crowd{animation:crowd-celebrate .4s ease-in-out 3}
@keyframes kick-goal{0%{opacity:1;transform:translate(0,0) scale(1)}70%{opacity:1;transform:translate(34vw,-15vh) scale(.55)}100%{opacity:0;transform:translate(44vw,-10vh) scale(.4)}}@keyframes kick-post{0%{opacity:1;transform:translate(0,0) scale(1)}68%{opacity:1;transform:translate(34vw,-10vh) scale(.55)}100%{opacity:0;transform:translate(38vw,-3vh) rotate(150deg) scale(.5)}}@keyframes kick-wide{0%{opacity:1;transform:translate(0,0) scale(1)}70%{opacity:1;transform:translate(34vw,-7vh) scale(.55)}100%{opacity:0;transform:translate(48vw,1vh) scale(.45)}}@keyframes kick-pose{50%{transform:rotate(-12deg) translateY(-9px)}}@keyframes crowd-celebrate{50%{transform:translateY(-10px) scale(1.04)}}

/* Character-led reflection scenes: local sprite layers and separate answer motions. */
.traffic-scene.reflection-v2{height:min(72vh,760px);min-height:440px;border:5px solid #fff;border-radius:30px;overflow:hidden;background:#19325b;isolation:isolate}
.traffic-scene.reflection-v2 .world-backdrop{inset:0;z-index:0;opacity:.44;background-image:linear-gradient(180deg,#06133314,#07132c68),var(--scene-image);background-size:cover;background-position:center}
.traffic-scene.reflection-v2 .world-actors{inset:0;z-index:1;display:block;overflow:hidden}
.traffic-scene.reflection-v2 .scene-setting{position:absolute;inset:0;overflow:hidden}
.traffic-scene.reflection-v2 .world-sprite{display:block;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none;filter:drop-shadow(0 14px 16px #07142d80)}
.traffic-scene.reflection-v2 .scene-toast{top:auto;bottom:14px;z-index:8;left:50%;max-width:76%;font-size:clamp(15px,1.5vw,21px)}
.traffic-scene.reflection-v2 .world-tally{position:absolute;top:14px;right:14px;z-index:8;display:flex;gap:8px;max-width:87%;justify-content:flex-end;flex-wrap:wrap}
.traffic-scene.reflection-v2 .world-count{display:flex;align-items:center;gap:7px;padding:8px 12px;border:2px solid #fff;border-radius:17px;background:#fffefaed;color:#30284b;text-shadow:none;box-shadow:0 5px 12px #15203b3d}
.world-count i,.color-dot{width:15px;height:15px;border-radius:50%;background:var(--tone);box-shadow:inset -2px -3px 4px #0002,0 0 0 2px #fff}
.world-count b{font-size:19px}.world-count small{font-size:12px;font-weight:900}
.vote-button .color-dot{width:23px;height:23px;box-shadow:inset -3px -3px 5px #0002,0 0 0 3px #ffffff9c;flex:none}
.vote-button:nth-child(1) .color-dot{background:#27bd70}.vote-button:nth-child(2) .color-dot{background:#f2bd2d}.vote-button:nth-child(3) .color-dot{background:#e65765}
.scene-setting .world-sprite{position:absolute;inset:2% 10% 1%;width:80%;height:96%;object-fit:contain;transition:transform .65s cubic-bezier(.18,.75,.25,1),filter .5s}
/* Traffic: child and teacher share the same polished storybook illustration style. */
.traffic-set{background:linear-gradient(#67c9eb 0 50%,#8ece70 50% 65%,#293657 65%)}.school-building{position:absolute;left:5%;top:9%;width:21%;height:39%;border-radius:12px 12px 2px 2px;background:linear-gradient(90deg,#f9d581,#fff0b3);border-top:25px solid #e98254;box-shadow:inset 0 0 0 5px #fff7}.school-building:before{content:"";position:absolute;left:43%;top:-24px;border-left:35px solid transparent;border-right:35px solid transparent;border-bottom:26px solid #da7150}.school-building span,.school-building i{position:absolute;top:22%;width:24%;height:32%;background:#8ee0f2;border:4px solid #fff}.school-building span{left:15%}.school-building i{right:15%}.road{position:absolute;left:0;right:0;bottom:0;height:34%;background:linear-gradient(#454e73,#252c4a)}.crossing{position:absolute;right:25%;bottom:0;width:28%;height:38%;display:flex;gap:8px;align-items:end}.crossing i{height:95%;flex:1;background:#fff8dc;transform:skew(-8deg)}.signal-stack{position:absolute;left:30%;top:22%;width:46px;padding:9px;border:4px solid #242742;border-radius:22px;background:#343951;display:grid;gap:8px;box-shadow:0 8px 14px #10162e55}.signal-stack .lamp{width:24px;height:24px;border-radius:50%;background:#646778;box-shadow:inset -3px -4px 6px #2227}.signal-stack .red{background:#a4424e}.traffic-actor .world-sprite{inset:auto auto 0 2%;width:55%;height:88%;transform:translateX(0)}.teacher-help,.safe-sign{position:absolute;right:4%;top:22%;padding:10px 14px;border-radius:16px;background:#fff;color:#34335a;font-weight:1000;box-shadow:0 5px 14px #1b204344;opacity:0;transform:scale(.8)}.safe-sign{top:auto;right:4%;bottom:37%;opacity:1;transform:none;font-size:clamp(12px,1.2vw,17px)}.choice-0 .signal-stack .safe{background:#27d879;box-shadow:0 0 22px #76ffb2}.choice-1 .teacher-help,.choice-2 .teacher-help{opacity:1;transform:scale(1);transition:.4s}.choice-0 .traffic-actor .world-sprite{animation:traffic-cross 1.45s cubic-bezier(.2,.75,.25,1) both}.choice-1 .traffic-actor .world-sprite{animation:traffic-cross 1.5s .35s cubic-bezier(.2,.75,.25,1) both}.choice-2 .traffic-actor .world-sprite{animation:traffic-wait .65s ease-in-out 2}.choice-1 .signal-stack .safe{background:#27d879;box-shadow:0 0 22px #76ffb2}
/* Space: astronaut sprite flies between distinct planet targets. */
.space-set{background:radial-gradient(ellipse at 50% 100%,#563ca0,#13204d 68%,#060d29)}.stars{position:absolute;inset:0;background-image:radial-gradient(#fff 1px,transparent 2px),radial-gradient(#ffe896 1.5px,transparent 2.5px);background-size:58px 58px,93px 93px;background-position:0 0,27px 22px;animation:stars-drift 18s linear infinite}.planets{position:absolute;inset:25% 3% 3%;display:flex;justify-content:space-around;align-items:end}.planet{position:relative;width:24%;height:42%;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;background:radial-gradient(circle at 35% 25%,#fff9,transparent 22%),radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--tone),white 20%),var(--tone) 58%,#24204b 125%);border:7px solid #ffffffc4;box-shadow:inset -20px -23px 34px #08113080,0 0 28px color-mix(in srgb,var(--tone),transparent 34%);color:#fff;text-align:center}.planet i{position:absolute;left:-8%;right:-8%;top:29%;height:38%;border:8px solid #fff8;border-radius:50%;transform:rotate(-17deg)}.planet b{font-size:clamp(35px,7vw,82px);text-shadow:0 5px 6px #19113f}.planet small,.planet-visitors{font-size:clamp(10px,1.2vw,16px);font-weight:950}.space-traveller{position:absolute;left:1%;bottom:9%;width:31%;height:53%;z-index:4}.space-traveller .world-sprite{inset:0;width:100%;height:100%}.rocket-trail{position:absolute;left:15%;bottom:23%;width:20%;height:8px;border-radius:99px;background:linear-gradient(90deg,#ffd35b,transparent);opacity:0}.choice-0 .space-traveller,.choice-1 .space-traveller,.choice-2 .space-traveller{animation:space-arrive 1.6s cubic-bezier(.2,.7,.2,1) both}.choice-0 .planet-0,.choice-1 .planet-1,.choice-2 .planet-2{animation:planet-land .8s 1s ease both}.choice-0 .rocket-trail,.choice-1 .rocket-trail,.choice-2 .rocket-trail{opacity:1;animation:trail-fade 1s ease both}
/* Orchard: fruits are individual DOM objects, counts remain grouped and legible. */
.tree-set{background:linear-gradient(#79d7ed 0 48%,#7dc66b 48% 100%)}.tree-topper .world-sprite{inset:3% 10% 18%;width:80%;height:78%}.fruit-orbit{position:absolute;left:23%;top:18%;width:57%;height:42%;pointer-events:none}.fruit{position:absolute;width:clamp(19px,3vw,35px);height:clamp(19px,3vw,35px);border-radius:46% 50% 48% 52%;box-shadow:inset -5px -5px 8px #0003,0 5px 8px #17233a55;animation:fruit-sway 2s ease-in-out infinite alternate}.fruit:before{content:"";position:absolute;width:7px;height:10px;background:#526d39;left:50%;top:-7px;border-radius:5px;transform:rotate(18deg)}.fruit-0{background:radial-gradient(circle at 30% 25%,#fff,#68cd67 45%,#1b8744)}.fruit-1{background:radial-gradient(circle at 30% 25%,#fff,#ffe064 45%,#e6a126)}.fruit-2{background:radial-gradient(circle at 30% 25%,#fff,#ff7770 45%,#ca314b)}.fruit-baskets{position:absolute;left:13%;right:13%;bottom:3%;display:flex;justify-content:space-around}.fruit-baskets>div{min-width:19%;padding:8px;border:4px solid #fff;border-radius:12px 12px 28px 28px;background:color-mix(in srgb,var(--tone),white 28%);text-align:center;color:#29304d;text-shadow:none;box-shadow:0 8px 14px #2225}.fruit-baskets i{display:inline-block;width:22px;height:22px;border-radius:50%;background:var(--tone);vertical-align:middle}.fruit-baskets b{margin-left:6px;font-size:23px}.fruit-baskets small{display:block;font-weight:900}.choice-0 .fruit-0,.choice-1 .fruit-1,.choice-2 .fruit-2{animation:fruit-drop .8s cubic-bezier(.15,.8,.3,1) both}
/* Expressions: three separate crops from the authored character sheet. */
.emotion-set,.pupils-set{display:flex;align-items:end;justify-content:space-evenly;padding:15% 4% 5%;background:linear-gradient(#7e4dd5,#b54d9b 60%,#53358f)}.emotion-role,.pupil-role{position:relative;width:30%;height:77%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:7px;padding:10px 7px;border-radius:28px;background:#ffffff25;border:2px solid #fff7;color:#fff;text-align:center;text-shadow:0 2px 5px #27204d}.emotion-crop,.pupil-crop,.gift-star-crop{position:relative;width:100%;height:72%;overflow:hidden}.emotion-crop .world-sprite,.gift-star-crop .world-sprite{position:absolute;inset:0 auto 0 0;width:300%;height:100%;max-width:none;object-fit:fill}.pupil-crop .world-sprite{position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center bottom}.emotion-0 .world-sprite,.pupil-0 .world-sprite,.star-0 .world-sprite{left:0}.emotion-1 .world-sprite,.pupil-1 .world-sprite,.star-1 .world-sprite{left:-100%}.emotion-2 .world-sprite,.pupil-2 .world-sprite,.star-2 .world-sprite{left:-200%}.emotion-role strong,.pupil-role strong{font-size:clamp(15px,1.5vw,21px)}.emotion-role>b,.pupil-role>b{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:#382e62;text-shadow:none;font-size:22px}.choice-0 .emotion-0{animation:happy-bounce .8s ease 2}.choice-1 .emotion-1{animation:thinking-sway .9s ease 2}.choice-2 .emotion-2{animation:gentle-support .8s ease 2}
/* Balloons: independent envelope, string and basket move as one balloon. */
.balloons-set{background:linear-gradient(#65c9ed,#b2edff 61%,#83c870)}.cloud{position:absolute;width:16%;height:10%;border-radius:50%;background:#fffc;filter:drop-shadow(0 8px 4px #497aa244);animation:cloud-slide 16s linear infinite}.cloud-a{left:8%;top:24%}.cloud-b{right:5%;top:12%;animation-delay:-8s}.balloon-role{position:absolute;bottom:9%;width:23%;height:71%;display:flex;flex-direction:column;align-items:center;justify-content:end;transform:translateY(calc(-1 * var(--lift)));transition:transform .8s ease}.balloon-0{left:8%}.balloon-1{left:39%}.balloon-2{right:8%}.balloon-envelope{width:100%;height:64%;border-radius:52% 52% 48% 48%/55% 55% 37% 37%;background:radial-gradient(circle at 30% 22%,#fff9,transparent 20%),linear-gradient(130deg,color-mix(in srgb,var(--tone),white 30%),var(--tone) 57%,color-mix(in srgb,var(--tone),black 20%));border:4px solid #fff9;box-shadow:inset -18px -20px 25px #0003,0 12px 18px #334a6355;animation:balloon-float 3s ease-in-out infinite alternate}.balloon-string{width:2px;height:17%;background:#594a43}.balloon-basket{min-width:52%;padding:5px 8px;border-radius:3px 3px 14px 14px;background:linear-gradient(90deg,#875439,#d3955d,#80503a);text-align:center;color:#fff}.balloon-basket b{font-size:clamp(20px,3vw,36px)}.balloon-basket small{display:block;font-size:11px;font-weight:900}.balloon-rider{position:absolute;left:38%;bottom:18%;width:24%;height:35%;pointer-events:none}.balloon-rider .world-sprite{inset:0;width:100%;height:100%;opacity:.88}.choice-0 .balloon-0,.choice-1 .balloon-1,.choice-2 .balloon-2{animation:balloon-rise 1.35s ease both}
/* Cars: three independent image crops, all stay visible on the track. */
.race-set{background:linear-gradient(#83d7ec 0 34%,#4f963d 34% 43%,#444969 43% 100%)}.race-track{position:absolute;inset:28% 0 0;display:grid;grid-template-rows:repeat(3,1fr);padding:2% 4% 4%;background:repeating-linear-gradient(90deg,#292e50 0 72px,#fff 72px 77px,#292e50 77px 145px)}.race-lane{position:relative;border-bottom:3px dashed #fff9}.lane-number{position:absolute;left:0;top:14%;width:35px;height:35px;border-radius:50%;background:#fff;color:#3c316c;text-align:center;line-height:35px;font-weight:1000}.race-racer{position:absolute;top:2%;left:calc(8% + var(--distance));width:28%;height:90%;transition:left .9s cubic-bezier(.2,.75,.3,1);filter:drop-shadow(0 8px 5px #10162c90)}.race-racer .world-sprite{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:fill}.race-racer b{position:absolute;right:0;top:6%;padding:5px 10px;border-radius:12px;background:#fff;color:#312a53;text-shadow:none;font-size:22px}.race-finish{position:absolute;right:4%;top:0;bottom:0;width:23px;background:repeating-conic-gradient(#fff 0 25%,#292747 0 50%) 0 0/18px 18px}.choice-0 .racer-0,.choice-1 .racer-1,.choice-2 .racer-2{animation:car-boost .8s ease 2}
/* Football: the player sprite stays separate from the ball flight. */
.football-set{background:linear-gradient(#4d3a9c 0 25%,#5db954 25% 100%)}.stadium-crowd{position:absolute;inset:0 0 auto;height:27%;background:repeating-linear-gradient(90deg,#7549a8 0 8%,#fff9 8% 8.5%);border-bottom:14px solid #edca84}.football-field{position:absolute;inset:27% 0 0;background:radial-gradient(ellipse at 44% 68%,#fff6 0 1%,transparent 1.4%),repeating-linear-gradient(90deg,#5cac4c 0 13%,#68bc58 13% 26%)}.football-field:after{content:"";position:absolute;left:5%;right:5%;top:20%;bottom:4%;border:4px solid #ffffffb8;border-radius:50%}.goal-frame{position:absolute;right:11%;top:35%;width:24%;height:41%;border:8px solid #fff;border-bottom-width:5px;background:repeating-linear-gradient(0deg,transparent 0 17px,#fff9 18px 20px),repeating-linear-gradient(90deg,transparent 0 17px,#fff9 18px 20px);box-shadow:0 10px 16px #1e3b2670}.goal-frame i:first-child{position:absolute;left:-8px;bottom:-2px;width:8px;height:100%;background:#fff}.goal-frame i:last-child{position:absolute;right:-8px;top:-8px;width:8px;height:100%;background:#fff}.player-kick{position:absolute;left:8%;bottom:3%;width:36%;height:65%}.player-kick .world-sprite{inset:0;width:100%;height:100%}.match-ball{position:absolute;left:36%;bottom:13%;width:clamp(34px,5vw,60px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0 24%,#273760 26% 35%,#fff 37% 52%,#314775 55% 65%,#fff 67%);box-shadow:0 7px 10px #18244a88;z-index:4}.choice-0 .match-ball{animation:ball-goal 1.25s cubic-bezier(.25,.7,.3,1) both}.choice-1 .match-ball{animation:ball-post 1.25s ease both}.choice-2 .match-ball{animation:ball-wide 1.25s ease both}.match-call{position:absolute;left:51%;top:19%;z-index:6;color:#ffe85b;font-size:clamp(45px,9vw,100px);font-weight:1000;text-shadow:0 5px 3px #633e22}.football-score{position:absolute;left:3%;top:3%;display:flex;gap:6px}.football-score span{display:grid;min-width:68px;padding:5px 9px;border-radius:12px;background:#fff;color:#2c2b4f;text-shadow:none;text-align:center;border-top:6px solid var(--tone)}.football-score b{font-size:23px}.football-score small{font-weight:950}.choice-0 .match-call{animation:goal-pop .6s ease both}
/* Classroom and gifts: three independently animated character crops. */
.pupils-set{background:linear-gradient(#87d7ef 0 50%,#d39c64 50%)}.pupil-role{height:79%;background:#472c2522}.pupil-desk{width:100%;height:22%;border:5px solid #8a5137;border-radius:12px 12px 4px 4px;background:linear-gradient(#c98650,#94532f)}.pupil-crop{height:68%}.choice-0 .pupil-0{animation:happy-bounce .8s ease 2}.choice-1 .pupil-1{animation:hand-raise .8s ease 2}.choice-2 .pupil-2{animation:gentle-support .8s ease 2}
.gifts-set{background:radial-gradient(ellipse at 50% 45%,#7043c8,#201653 80%)}.chest{position:absolute;left:26%;right:26%;bottom:4%;height:33%;border:7px solid #ffdc78;border-radius:25px 25px 35px 35px;background:linear-gradient(135deg,#e0a73a,#8f3ba9);box-shadow:inset -15px -12px 20px #23114d88,0 12px 20px #0f0b2880}.chest i{position:absolute;left:0;right:0;top:-15%;height:24%;border-radius:15px;background:linear-gradient(#ffe27e,#b97427)}.chest b{position:absolute;left:48%;top:24%;width:12%;height:26%;background:#ffe68c;border-radius:7px}.gift-star{position:absolute;top:8%;width:27%;height:72%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;text-shadow:0 3px 5px #1f1944}.star-0{left:4%}.star-1{left:36.5%}.star-2{right:4%}.gift-star-crop{height:80%}.gift-star strong{font-size:clamp(14px,1.4vw,19px)}.gift-star>b{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:#382e62;text-shadow:none;font-size:22px}.choice-0 .star-0,.choice-1 .star-1,.choice-2 .star-2{animation:happy-bounce .8s ease 2}.choice-0 .chest,.choice-1 .chest,.choice-2 .chest{animation:chest-open .6s ease both}
@keyframes traffic-cross{0%{transform:translateX(0)}60%{transform:translateX(70%)}100%{transform:translateX(78%)}}
@keyframes traffic-wait{50%{transform:translateX(2%) translateY(-6px)}}@keyframes space-arrive{0%{transform:translate(0,0) scale(.9)}55%{transform:translate(105%,-36%) scale(.65)}100%{transform:translate(170%,-7%) scale(.78)}}@keyframes planet-land{50%{filter:brightness(1.4) drop-shadow(0 0 30px #fff);transform:scale(1.1)}}@keyframes trail-fade{0%{opacity:0;transform:scaleX(.1)}35%{opacity:1;transform:scaleX(1)}100%{opacity:0;transform:translateX(90px)}}@keyframes stars-drift{to{background-position:58px 58px,120px 80px}}@keyframes fruit-drop{0%{opacity:0;transform:translateY(-90px) scale(.4)}75%{opacity:1;transform:translateY(8px) scale(1.2)}100%{transform:translateY(0) scale(1)}}@keyframes fruit-sway{to{transform:rotate(8deg)}}@keyframes happy-bounce{50%{transform:translateY(-17px) scale(1.04)}}@keyframes thinking-sway{50%{transform:rotate(4deg) translateY(-6px)}}@keyframes gentle-support{50%{transform:scale(1.04) translateY(-6px)}}@keyframes cloud-slide{to{transform:translateX(20vw)}}@keyframes balloon-float{to{transform:translateY(-9px) rotate(2deg)}}@keyframes balloon-rise{0%{transform:translateY(calc(-1 * var(--lift)))}45%{transform:translateY(calc(-1 * var(--lift) - 72px))}100%{transform:translateY(calc(-1 * var(--lift) - 40px))}}
@keyframes car-boost{50%{filter:drop-shadow(0 0 14px #fff)}}@keyframes ball-goal{55%{transform:translate(35vw,-22vh) scale(.68)}100%{transform:translate(37vw,-19vh) scale(.55)}}@keyframes ball-post{52%{transform:translate(32vw,-16vh) rotate(140deg) scale(.65)}66%{transform:translate(29vw,-10vh) rotate(250deg) scale(.65)}100%{transform:translate(0,0)}}@keyframes ball-wide{60%{transform:translate(38vw,-19vh) rotate(210deg)}100%{transform:translate(45vw,-12vh) rotate(280deg)}}@keyframes goal-pop{0%{opacity:0;transform:scale(.4)}55%{opacity:1;transform:scale(1.2)}100%{opacity:1;transform:scale(1)}}@keyframes hand-raise{50%{transform:translateY(-15px) rotate(-3deg)}}@keyframes chest-open{0%{filter:brightness(1)}45%{filter:brightness(1.8) drop-shadow(0 0 28px #ffe98b)}100%{filter:brightness(1.15)}}
@media(max-width:760px){.traffic-scene.reflection-v2{height:58vh;min-height:360px;border-radius:20px}.traffic-scene.reflection-v2 .world-tally{top:6px;right:6px;max-width:95%;gap:4px}.traffic-scene.reflection-v2 .world-count{padding:5px 7px;border-radius:12px}.world-count small{font-size:9px}.world-count b{font-size:15px}.scene-setting .world-sprite{inset:7% 0 0;width:100%;height:88%}.traffic-actor .world-sprite{inset:auto auto 0 0;width:70%;height:79%}.school-building{width:25%;height:31%;left:3%}.signal-stack{left:29%;top:18%;scale:.8;transform-origin:top left}.safe-sign{bottom:34%;font-size:10px}.teacher-help{right:2%;top:24%;font-size:12px}.planets{inset:31% 1% 4%}.planet{width:30%;height:38%;border-width:4px}.planet i{border-width:5px}.planet small,.planet-visitors{font-size:9px}.space-traveller{left:0;bottom:8%;width:36%;height:43%}.fruit-orbit{left:16%;width:68%;top:18%}.fruit-baskets{left:2%;right:2%}.fruit-baskets>div{min-width:27%;padding:5px}.emotion-set,.pupils-set{padding:18% 2% 4%}.emotion-role,.pupil-role{width:32%;height:73%;padding:6px 3px}.emotion-role strong,.pupil-role strong{font-size:12px}.emotion-role small{display:none}.balloon-role{width:30%;height:68%}.balloon-0{left:2%}.balloon-1{left:35%}.balloon-2{right:2%}.balloon-basket small{font-size:9px}.balloon-rider{display:none}.race-track{inset:33% 0 0;padding:2%}.race-racer{width:35%;height:80%}.race-racer b{font-size:16px}.race-finish{right:2%;width:16px}.goal-frame{right:5%;width:29%;height:36%}.player-kick{left:0;width:42%;height:58%}.match-ball{left:32%;bottom:12%}.football-score{left:2%;top:2%;gap:3px}.football-score span{min-width:51px;padding:4px}.football-score b{font-size:16px}.football-score small{font-size:9px}.pupil-role{height:75%}.chest{left:18%;right:18%}.gift-star{width:31%}.gift-star strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.reflection-v2 *,body.reduce-motion .reflection-v2 *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Focused refinement: larger lane-fitted cars and branch-mounted orchard fruit. */
.traffic-scene.world-race .race-track{inset:24% 0 0;padding:1.5% 3.5% 1%;grid-template-rows:repeat(3,minmax(0,1fr));overflow:hidden}
.traffic-scene.world-race .race-lane{height:100%;min-height:0;overflow:hidden;border-bottom:3px solid #ffffff8a}
.traffic-scene.world-race .race-lane:last-of-type{border-bottom:0}
.traffic-scene.world-race .lane-number{left:1%;top:50%;z-index:4;width:clamp(25px,3.1vw,38px);height:clamp(25px,3.1vw,38px);line-height:clamp(25px,3.1vw,38px);transform:translateY(-50%);box-shadow:0 3px 9px #17182c80}
.traffic-scene.world-race .race-racer{top:0;left:calc(8% + var(--distance));width:35%;height:100%;overflow:visible;z-index:2;transition:left 1s cubic-bezier(.18,.78,.2,1);filter:drop-shadow(0 9px 6px #10162c9c)}
.traffic-scene.world-race .race-racer .world-sprite{inset:0;width:100%;height:100%;max-width:none;object-fit:contain;object-position:left center;filter:drop-shadow(0 7px 6px #10162c90)}
.traffic-scene.world-race .race-racer>b{right:1%;top:4%;z-index:3;min-width:clamp(27px,3vw,40px);padding:3px 8px;border:2px solid #fff;border-radius:999px;background:#fffef2;color:#30284b;text-align:center;font-size:clamp(15px,1.6vw,22px);box-shadow:0 3px 8px #10162c55}
.traffic-scene.world-race .race-finish{right:4%;z-index:1;width:clamp(15px,2vw,25px);background-size:18px 18px;box-shadow:0 0 0 2px #fff7}
.traffic-scene.world-race .race-sparkles{position:absolute;inset:8% 8% auto auto;width:clamp(35px,5vw,58px);height:clamp(35px,5vw,58px);opacity:0;pointer-events:none;background:radial-gradient(circle at 50% 10%,#fff 0 3px,transparent 4px),radial-gradient(circle at 16% 55%,#fff7a5 0 3px,transparent 4px),radial-gradient(circle at 82% 64%,#fff 0 3px,transparent 4px),radial-gradient(circle at 47% 88%,#ffe15e 0 3px,transparent 4px);filter:drop-shadow(0 0 7px #ffe36e)}
.traffic-scene.world-race .race-racer.winner-anim{animation:race-advance .95s cubic-bezier(.18,.78,.2,1) both,race-victory .85s .85s ease-out both}
.traffic-scene.world-race .race-racer.winner-anim .race-sparkles{animation:race-sparkle 1.35s .8s ease-out both}
.traffic-scene.world-race.choice-0 .racer-0:not(.winner-anim),.traffic-scene.world-race.choice-1 .racer-1:not(.winner-anim),.traffic-scene.world-race.choice-2 .racer-2:not(.winner-anim){animation:race-advance .9s cubic-bezier(.18,.78,.2,1) both}

.traffic-scene.world-tree .tree-topper{position:absolute;inset:0;z-index:1;pointer-events:none}
.traffic-scene.world-tree .tree-topper .world-sprite{inset:4% auto auto 15%;width:70%;height:73%;object-fit:contain;transform-origin:51% 78%;animation:orchard-sway 6s ease-in-out infinite alternate}
.traffic-scene.world-tree .fruit-orbit{position:absolute;left:16%;top:5%;z-index:3;width:44%;height:44%;overflow:visible;pointer-events:none}
.traffic-scene.world-tree .fruit{left:var(--x);top:var(--y);width:clamp(34px,5.2vw,68px);height:clamp(34px,5.2vw,68px);border:2px solid #ffffffb8;border-radius:48% 52% 48% 52%;box-shadow:inset -7px -8px 10px #193e2b40,0 7px 10px #20312b70;background:radial-gradient(circle at 29% 23%,#fff 0 7%,#ffffffbd 8% 12%,#68d879 25%,#26b957 65%,#0c7c3e 100%);animation:none}
.traffic-scene.world-tree .fruit:before{left:48%;top:-8px;width:6px;height:12px;border-radius:5px 1px;background:linear-gradient(90deg,#70502d,#a7753b);transform:rotate(11deg)}
.traffic-scene.world-tree .fruit:after{content:"";position:absolute;left:53%;top:-5px;width:11px;height:6px;border-radius:100% 0 100% 0;background:linear-gradient(135deg,#c9f67b,#47ad48);transform:rotate(-25deg);filter:drop-shadow(0 1px 1px #265c3280)}
.traffic-scene.world-tree .fruit-1{background:radial-gradient(circle at 29% 23%,#fff 0 7%,#ffffffbd 8% 12%,#ffe884 25%,#ffbf2f 65%,#dc861c 100%)}
.traffic-scene.world-tree .fruit-2{background:radial-gradient(circle at 29% 23%,#fff 0 7%,#ffffffbd 8% 12%,#ffaaa1 25%,#f25358 65%,#c62742 100%)}
.traffic-scene.world-tree .fruit-enter{animation:apple-branch-arrive .82s cubic-bezier(.18,.78,.25,1) both;animation-delay:calc(var(--slot)*14ms)}
.traffic-scene.world-tree.choice-0 .tree-topper .world-sprite,.traffic-scene.world-tree.choice-1 .tree-topper .world-sprite,.traffic-scene.world-tree.choice-2 .tree-topper .world-sprite{animation:tree-delight .68s ease-out 1}
.traffic-scene.world-tree .fruit-baskets{left:10%;right:10%;bottom:2%;z-index:4;gap:clamp(5px,2vw,24px)}
.traffic-scene.world-tree .fruit-baskets>div{min-width:0;width:28%;padding:clamp(4px,1vw,10px);border-radius:15px 15px 28px 28px}
.traffic-scene.world-tree .fruit-baskets i{width:clamp(18px,2.4vw,28px);height:clamp(18px,2.4vw,28px)}
.traffic-scene.world-tree .fruit-baskets b{font-size:clamp(17px,2.2vw,26px)}
.traffic-scene.world-tree .fruit-baskets small{font-size:clamp(9px,1vw,13px);line-height:1.1}
.traffic-scene.world-tree .world-tally{display:none}
.traffic-scene.world-tree .scene-toast{bottom:16%;max-width:72%;font-size:clamp(14px,1.35vw,19px)}
.traffic-scene.world-tree .fruit-orbit{left:21%;top:7%;width:40%;height:36%}
.traffic-scene.world-race .race-racer{width:32%;left:calc(8% + var(--distance))}
@keyframes race-advance{0%{transform:translateX(calc(-1 * clamp(22px,4.2vw,58px))) translateY(2px) scale(.96)}58%{transform:translateX(8px) translateY(-4px) scale(1.045)}100%{transform:translateX(0) translateY(0) scale(1)}}
@keyframes race-victory{30%{filter:drop-shadow(0 0 24px #fff76a) brightness(1.25)}100%{filter:drop-shadow(0 0 12px #ffe76e)}}
@keyframes race-sparkle{0%{opacity:0;transform:scale(.35) rotate(-20deg)}35%{opacity:1;transform:scale(1.2) rotate(12deg)}100%{opacity:0;transform:scale(1.5) rotate(35deg)}}
@keyframes orchard-sway{from{transform:rotate(-.5deg)}to{transform:rotate(.5deg)}}
@keyframes tree-delight{0%{transform:rotate(0)}35%{transform:rotate(-1.5deg) scale(1.025)}70%{transform:rotate(1.1deg) scale(1.015)}100%{transform:rotate(0) scale(1)}}
@keyframes apple-branch-arrive{0%{opacity:0;transform:translateY(115px) scale(.28) rotate(28deg)}58%{opacity:1;transform:translateY(-9px) scale(1.12) rotate(-7deg)}78%{transform:translateY(4px) scale(.97) rotate(4deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@media(max-width:760px){
 .traffic-scene.world-race .race-track{inset:25% 0 0;padding:1.5% 2.5% 1%}
 .traffic-scene.world-race .race-racer{left:calc(8% + var(--distance));width:40%;height:100%;top:0}
 .traffic-scene.world-race .race-racer>b{right:1%;top:2%;padding:2px 6px;font-size:15px}
 .traffic-scene.world-tree .tree-topper .world-sprite{left:12%;top:5%;width:73%;height:68%}
 .traffic-scene.world-tree .fruit-orbit{left:23%;top:8%;width:53%;height:43%}
 .traffic-scene.world-tree .fruit{width:34px;height:34px}
 .traffic-scene.world-tree .scene-toast{bottom:18%;max-width:86%;font-size:13px}
 .traffic-scene.world-race .race-racer{width:36%;left:calc(8% + var(--distance))}
 .traffic-scene.world-tree .fruit-baskets{left:3%;right:3%;bottom:2%;gap:5px}
 .traffic-scene.world-tree .fruit-baskets>div{width:32%;padding:4px 2px;border-width:2px}
 .traffic-scene.world-tree .fruit-baskets small{font-size:9px}
}
.fruit-orbit .fruit{left:var(--x);top:var(--y)}
.race-racer .world-sprite{width:300%;max-width:none;object-fit:fill}
.racer-0 .world-sprite{left:0}.racer-1 .world-sprite{left:-100%}.racer-2 .world-sprite{left:-200%}
.teacher-help{display:flex;align-items:center;gap:8px;min-height:72px;padding:6px 12px 6px 2px;opacity:0;transform:translateX(24px);transition:opacity .35s,transform .4s}.teacher-help img{width:56px;height:82px;object-fit:contain;filter:drop-shadow(0 6px 7px #2227)}.choice-1 .teacher-help,.choice-2 .teacher-help{opacity:1;transform:translateX(0)}
.choice-0 .space-traveller{animation:space-to-green 1.6s cubic-bezier(.2,.7,.2,1) both}.choice-1 .space-traveller{animation:space-to-yellow 1.6s cubic-bezier(.2,.7,.2,1) both}.choice-2 .space-traveller{animation:space-to-red 1.6s cubic-bezier(.2,.7,.2,1) both}
@keyframes space-to-green{0%{transform:translate(0,0) scale(.9)}65%{transform:translate(8%,-30%) scale(.68)}100%{transform:translate(0,-5%) scale(.76)}}
@keyframes space-to-yellow{0%{transform:translate(0,0) scale(.9)}65%{transform:translate(112%,-45%) scale(.65)}100%{transform:translate(108%,-6%) scale(.76)}}
@keyframes space-to-red{0%{transform:translate(0,0) scale(.9)}65%{transform:translate(220%,-34%) scale(.65)}100%{transform:translate(212%,-4%) scale(.76)}}

/* Classroom world: keep all three children large, visible and separate. */
.traffic-scene.reflection-v2 .pupils-set{padding:11% 2% 2%;align-items:flex-end;gap:1.2%;background:linear-gradient(180deg,#84d8f3 0 48%,#e6b76f 48% 100%)}
.traffic-scene.reflection-v2 .pupils-set .pupil-role{width:32%;height:88%;padding:6px 4px;gap:4px;border-radius:22px;background:#49322538;border:2px solid #fff9;justify-content:flex-end}
.traffic-scene.reflection-v2 .pupils-set .pupil-crop{width:100%;height:74%;flex:none;min-height:0}
.traffic-scene.reflection-v2 .pupils-set .pupil-crop .world-sprite{inset:0;width:100%;height:100%;object-fit:contain;max-width:100%;object-position:center bottom}
.traffic-scene.reflection-v2 .pupils-set .pupil-role strong{font-size:clamp(14px,1.35vw,20px);line-height:1.08;text-shadow:0 2px 5px #21162c}
.traffic-scene.reflection-v2 .pupils-set .pupil-role>b{width:clamp(30px,4vw,48px);height:clamp(30px,4vw,48px);font-size:clamp(18px,2vw,25px)}
.world-pupils.choice-0 .pupil-role.pupil-0{animation:happy-bounce .8s ease 2}
.world-pupils.choice-1 .pupil-role.pupil-1{animation:hand-raise .8s ease 2}
.world-pupils.choice-2 .pupil-role.pupil-2{animation:gentle-support .8s ease 2}
@media(max-width:760px){.traffic-scene.reflection-v2 .pupils-set{padding:17% 1% 3%;gap:0}.traffic-scene.reflection-v2 .pupils-set .pupil-role{width:33%;height:83%;padding:4px 2px;gap:3px}.traffic-scene.reflection-v2 .pupils-set .pupil-crop{height:72%}.traffic-scene.reflection-v2 .pupils-set .pupil-role strong{font-size:11px}.traffic-scene.reflection-v2 .pupils-set .pupil-role>b{width:28px;height:28px;font-size:17px}}

/* Final six-world scene correction: unique character assets, fixed three-column staging. */
.traffic-scene.world-traffic .world-backdrop,.traffic-scene.world-emotion .world-backdrop,.traffic-scene.world-balloons .world-backdrop,.traffic-scene.world-football .world-backdrop,.traffic-scene.world-pupils .world-backdrop,.traffic-scene.world-gifts .world-backdrop{display:none}
.traffic-scene.world-traffic .world-tally,.traffic-scene.world-emotion .world-tally,.traffic-scene.world-balloons .world-tally,.traffic-scene.world-football .world-tally,.traffic-scene.world-pupils .world-tally,.traffic-scene.world-gifts .world-tally{display:none}
.traffic-scene.world-traffic,.traffic-scene.world-emotion,.traffic-scene.world-balloons,.traffic-scene.world-football,.traffic-scene.world-pupils,.traffic-scene.world-gifts{height:min(72vh,760px);min-height:440px}
.traffic-scene.world-traffic .scene-toast,.traffic-scene.world-emotion .scene-toast,.traffic-scene.world-balloons .scene-toast,.traffic-scene.world-football .scene-toast,.traffic-scene.world-pupils .scene-toast,.traffic-scene.world-gifts .scene-toast{top:12px;bottom:auto;left:50%;max-width:78%;transform:translateX(-50%);font-size:clamp(14px,1.45vw,20px)}
.traffic-scene.world-traffic .traffic-set{background:linear-gradient(#74d2ef 0 55%,#8bcf72 55% 67%,#293654 67%)}
.traffic-scene.world-traffic .school-building{left:5%;top:14%;width:21%;height:38%}
.traffic-scene.world-traffic .signal-stack{left:34%;top:20%;z-index:2;scale:1.15}
.traffic-scene.world-traffic .traffic-actor{position:absolute;left:43%;bottom:8%;width:22%;height:45%;z-index:4;transition:left 1.5s cubic-bezier(.18,.75,.25,1)}
.traffic-scene.world-traffic .traffic-actor .world-sprite{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:none}
.traffic-scene.world-traffic .teacher-help{z-index:5;right:8%;top:26%;display:flex;flex-direction:column;width:16%;height:48%;padding:0;background:transparent;box-shadow:none;color:#fff;text-shadow:0 2px 5px #234;opacity:0;transform:translateX(25px)}
.traffic-scene.world-traffic .teacher-help img{width:100%;height:78%;object-fit:contain}
.traffic-scene.world-traffic .teacher-help span{padding:6px 9px;border-radius:99px;background:#fff;color:#34335a;text-shadow:none;text-align:center;font-size:clamp(11px,1.1vw,15px)}
.traffic-scene.world-traffic .safe-sign{right:8%;bottom:33%;z-index:5}
.traffic-scene.world-traffic.choice-0 .traffic-actor{left:69%}
.traffic-scene.world-traffic.choice-0 .traffic-actor .world-sprite{animation:child-wave .45s ease 1.4s 2}
.traffic-scene.world-traffic.choice-1 .traffic-actor{left:66%}
.traffic-scene.world-traffic.choice-2 .traffic-actor{left:43%}
.traffic-scene.world-traffic.choice-2 .signal-stack .red{background:#ff4d55;box-shadow:0 0 22px #ff7373}
.traffic-scene.world-traffic.choice-2 .traffic-actor .world-sprite{animation:traffic-wait .65s ease-in-out 2}
.traffic-scene.world-traffic .street-tree{position:absolute;bottom:31%;width:8%;height:24%;border-radius:50% 50% 42% 42%;background:radial-gradient(circle at 34% 24%,#b8ed79,#53a94e 68%);filter:drop-shadow(0 8px 4px #376c4a66)}
.traffic-scene.world-traffic .street-tree:after{content:"";position:absolute;left:44%;top:72%;width:17%;height:50%;background:#8b5a3a}
.traffic-scene.world-traffic .tree-left{left:27%}.traffic-scene.world-traffic .tree-right{right:27%;scale:.8}
.traffic-scene.world-traffic.choice-1 .teacher-help,.traffic-scene.world-traffic.choice-2 .teacher-help{opacity:1;transform:none}
@keyframes child-wave{50%{rotate:8deg;translate:0 -7px}}

.traffic-scene.world-emotion .emotion-set,.traffic-scene.world-pupils .pupils-set,.traffic-scene.world-gifts .gifts-set{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;justify-items:center;gap:clamp(10px,2vw,28px);padding:14% 4% 6%;overflow:hidden}
.traffic-scene.world-emotion .emotion-set{background:radial-gradient(ellipse at 50% 100%,#fdc9fb,#5943bd 76%,#262565)}
.traffic-scene.world-emotion .emotion-role,.traffic-scene.world-pupils .pupil-role,.traffic-scene.world-gifts .gift-character{position:relative;inset:auto;width:100%;height:100%;max-width:340px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:clamp(5px,1vh,12px);padding:12px 9px;border-radius:28px;background:#ffffff22;border:2px solid #ffffff88;color:#fff;text-align:center;text-shadow:0 2px 5px #211743;overflow:visible}
.traffic-scene.world-emotion .emotion-crop,.traffic-scene.world-pupils .pupil-crop,.traffic-scene.world-gifts .gift-crop{position:relative;width:100%;height:72%;min-height:0;overflow:visible;flex:none}
.traffic-scene.world-emotion .emotion-crop .world-sprite,.traffic-scene.world-pupils .pupil-crop .world-sprite,.traffic-scene.world-gifts .gift-crop .world-sprite{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;filter:drop-shadow(0 10px 9px #20153b66)}
.traffic-scene.world-emotion .emotion-role strong,.traffic-scene.world-pupils .pupil-role strong,.traffic-scene.world-gifts .gift-character strong{font-size:clamp(15px,1.55vw,22px);line-height:1.1}
.traffic-scene.world-emotion .emotion-role>b,.traffic-scene.world-pupils .pupil-role>b,.traffic-scene.world-gifts .gift-character>b{display:grid;place-items:center;width:clamp(35px,4vw,50px);height:clamp(35px,4vw,50px);border-radius:50%;background:#fff;color:#382e62;text-shadow:none;font-size:clamp(20px,2vw,27px);box-shadow:0 4px 10px #1e174055}
.traffic-scene.world-emotion .emotion-role small,.traffic-scene.world-pupils .pupil-role small,.traffic-scene.world-gifts .gift-character small{max-width:100%;font-size:clamp(11px,1.08vw,15px);line-height:1.12;font-weight:850}
.traffic-scene.world-emotion.choice-0 .emotion-0{animation:happy-bounce .8s ease 2}.traffic-scene.world-emotion.choice-1 .emotion-1{animation:thinking-sway .9s ease 2}.traffic-scene.world-emotion.choice-2 .emotion-2{animation:gentle-support .8s ease 2}

.traffic-scene.world-balloons .balloons-set{background:linear-gradient(#58c8f0 0,#bceeff 65%,#8ac866 65%,#75b75b 100%)}
.traffic-scene.world-balloons .cloud{width:18%;height:12%;background:radial-gradient(ellipse,#fff 0 55%,#e4f7ff 72%,transparent 74%);filter:drop-shadow(0 6px 5px #316b8844)}
.traffic-scene.world-balloons .cloud-a{left:7%;top:28%}.traffic-scene.world-balloons .cloud-b{right:7%;top:16%}.traffic-scene.world-balloons .cloud-c{left:43%;top:9%;width:13%;height:9%;animation-delay:-5s}
.traffic-scene.world-balloons .balloon-role{position:relative;left:auto;right:auto;bottom:auto;inset:auto;width:100%;height:100%;display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:0 4px 8px;transform:none;text-align:center;color:#fff;text-shadow:0 2px 5px #24405e}
.traffic-scene.world-balloons .balloons-set{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:clamp(6px,2vw,24px);padding:15% 5% 5%;}
.traffic-scene.world-balloons .balloon-character{position:relative;width:100%;height:72%;filter:drop-shadow(0 12px 9px #293a5b66);transform:translateY(calc(-1 * var(--lift)));transition:transform .8s cubic-bezier(.2,.75,.25,1)}
.traffic-scene.world-balloons .balloon-character .world-sprite{inset:0;width:100%;height:100%;object-fit:contain}
.traffic-scene.world-balloons .balloon-role>b{display:grid;place-items:center;min-width:42px;height:42px;padding:0 10px;border:3px solid #fff;border-radius:99px;background:#fff;color:#293452;text-shadow:none;font-size:24px;box-shadow:0 5px 12px #24375055}
.traffic-scene.world-balloons .balloon-role>strong{max-width:100%;font-size:clamp(13px,1.45vw,20px);line-height:1.08}
.traffic-scene.world-balloons.choice-0 .balloon-0 .balloon-character,.traffic-scene.world-balloons.choice-1 .balloon-1 .balloon-character,.traffic-scene.world-balloons.choice-2 .balloon-2 .balloon-character{animation:balloon-lift 1.35s cubic-bezier(.2,.7,.25,1) both}
@keyframes balloon-lift{0%,100%{translate:0 0}45%{translate:0 -52px}}

.traffic-scene.world-football .football-set{background:linear-gradient(#5142a1 0 26%,#378e53 26% 33%,#62bd5a 33% 100%)}
.traffic-scene.world-football .stadium-crowd{height:28%;background:repeating-linear-gradient(90deg,#603f9b 0 6%,#f9db89 6.2% 6.7%,#ca5f77 7% 11%,#51429c 11.5% 16%);border-bottom:10px solid #f0d38a}
.traffic-scene.world-football .player-kick{left:9%;bottom:2%;width:34%;height:67%;z-index:3}
.traffic-scene.world-football .player-kick .world-sprite{inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 8px #183b3155)}
.traffic-scene.world-football .coach-help{position:absolute;left:27%;bottom:12%;z-index:4;display:flex;align-items:center;gap:8px;opacity:0;transform:translateY(15px);transition:.35s}
.traffic-scene.world-football .coach-help img{width:clamp(54px,8vw,100px);height:clamp(80px,20vh,160px);object-fit:contain;filter:drop-shadow(0 8px 7px #2348)}
.traffic-scene.world-football .coach-help span{padding:7px 10px;border-radius:99px;background:#fff;color:#383457;font-weight:900;font-size:clamp(11px,1vw,15px)}
.traffic-scene.world-football.choice-2 .coach-help{opacity:1;transform:none}
.traffic-scene.world-football.choice-2 .player-kick .world-sprite{animation:gentle-support .8s ease 2}
.traffic-scene.world-football.choice-1 .goal-frame{animation:post-shake .4s ease 3}
@keyframes post-shake{25%{rotate:3deg}75%{rotate:-3deg}}

.traffic-scene.world-pupils .pupils-set{background:linear-gradient(#83d6ee 0 43%,#f2d49b 43% 100%)}
.traffic-scene.world-pupils .pupil-role{height:87%;padding:8px 6px;background:#ffffff40;border-color:#fff9}
.traffic-scene.world-pupils .pupil-crop{height:69%;width:100%}
.traffic-scene.world-pupils .pupil-role small{background:#ffffffdd;color:#34304f;text-shadow:none;border-radius:99px;padding:4px 7px}
.traffic-scene.world-pupils.choice-0 .pupil-0{animation:happy-bounce .8s ease 2}.traffic-scene.world-pupils.choice-1 .pupil-1{animation:hand-raise .8s ease 2}.traffic-scene.world-pupils.choice-2 .pupil-2{animation:gentle-support .8s ease 2}

.traffic-scene.world-gifts .gifts-set{background:radial-gradient(ellipse at 50% 100%,#7958d7,#222050 77%,#121639)}
.traffic-scene.world-gifts .gift-character{background:linear-gradient(180deg,#ffffff20,#ffffff34);box-shadow:inset 0 0 22px #fff2,0 15px 24px #0e123866}
.traffic-scene.world-gifts .gift-crop{height:76%}
.traffic-scene.world-gifts .gift-crop .world-sprite{filter:drop-shadow(0 12px 9px #10143677)}
.traffic-scene.world-gifts .gift-sparkles{position:absolute;inset:4% 3% 34%;pointer-events:none;opacity:0;background:radial-gradient(circle at 12% 26%,#fff 0 3px,transparent 4px),radial-gradient(circle at 84% 24%,#ffe879 0 4px,transparent 5px),radial-gradient(circle at 78% 70%,#fff 0 3px,transparent 4px),radial-gradient(circle at 24% 76%,#ffdc6b 0 3px,transparent 4px)}
.traffic-scene.world-gifts.choice-0 .gift-sparkles,.traffic-scene.world-gifts.choice-1 .gift-sparkles,.traffic-scene.world-gifts.choice-2 .gift-sparkles{animation:sparkle-show .9s ease 2}
.traffic-scene.world-gifts.choice-0 .gift-0{animation:happy-bounce .8s ease 2}.traffic-scene.world-gifts.choice-1 .gift-1{animation:thinking-sway .9s ease 2}.traffic-scene.world-gifts.choice-2 .gift-2{animation:gentle-support .8s ease 2}
@keyframes sparkle-show{50%{opacity:1;scale:1.12}}
@media(max-width:760px){
 .traffic-scene.world-traffic,.traffic-scene.world-emotion,.traffic-scene.world-balloons,.traffic-scene.world-football,.traffic-scene.world-pupils,.traffic-scene.world-gifts{height:59vh;min-height:370px}
 .traffic-scene.world-traffic .scene-toast,.traffic-scene.world-emotion .scene-toast,.traffic-scene.world-balloons .scene-toast,.traffic-scene.world-football .scene-toast,.traffic-scene.world-pupils .scene-toast,.traffic-scene.world-gifts .scene-toast{top:8px;max-width:90%;font-size:13px}
 .traffic-scene.world-traffic .signal-stack{left:31%;top:21%;scale:.9}.traffic-scene.world-traffic .traffic-actor{left:40%;width:24%;height:42%}.traffic-scene.world-traffic.choice-0 .traffic-actor{left:70%}.traffic-scene.world-traffic.choice-1 .traffic-actor{left:66%}.traffic-scene.world-traffic .teacher-help{right:3%;width:18%;height:42%}
 .traffic-scene.world-emotion .emotion-set,.traffic-scene.world-pupils .pupils-set,.traffic-scene.world-gifts .gifts-set{gap:6px;padding:20% 2% 5%}
 .traffic-scene.world-emotion .emotion-role,.traffic-scene.world-pupils .pupil-role,.traffic-scene.world-gifts .gift-character{padding:7px 3px;border-radius:16px;gap:5px}
 .traffic-scene.world-emotion .emotion-crop,.traffic-scene.world-pupils .pupil-crop,.traffic-scene.world-gifts .gift-crop{height:65%}
 .traffic-scene.world-emotion .emotion-role strong,.traffic-scene.world-pupils .pupil-role strong,.traffic-scene.world-gifts .gift-character strong{font-size:12px}
 .traffic-scene.world-emotion .emotion-role small,.traffic-scene.world-pupils .pupil-role small,.traffic-scene.world-gifts .gift-character small{font-size:10px}
 .traffic-scene.world-balloons .balloons-set{gap:3px;padding:21% 2% 5%}.traffic-scene.world-balloons .balloon-role>strong{font-size:11px}.traffic-scene.world-balloons .balloon-role>b{min-width:34px;height:34px;font-size:19px}
 .traffic-scene.world-football .goal-frame{right:5%;width:28%;height:36%}.traffic-scene.world-football .player-kick{left:1%;width:41%;height:59%}.traffic-scene.world-football .football-score{z-index:6}.traffic-scene.world-football .coach-help{left:26%;bottom:9%}
}
@media(prefers-reduced-motion:reduce){.traffic-scene.world-traffic .scene-setting *, .traffic-scene.world-emotion .scene-setting *, .traffic-scene.world-balloons .scene-setting *, .traffic-scene.world-football .scene-setting *, .traffic-scene.world-pupils .scene-setting *, .traffic-scene.world-gifts .scene-setting *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Three pupils: use each portrait at its natural ratio; keep cards equal and selectable. */
.traffic-scene.reflection-v2.world-pupils .pupils-set{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;justify-items:stretch;gap:clamp(10px,1.5vw,22px);padding:clamp(64px,10vh,98px) 4% 3%;}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role{width:100%;height:87%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:clamp(5px,1vh,11px);padding:clamp(7px,1vw,14px);border:3px solid #fff;border-radius:clamp(16px,2vw,28px);color:#fff;text-shadow:0 2px 5px #14213a66;cursor:pointer;touch-action:manipulation;transition:transform .2s,box-shadow .25s,border-color .25s;overflow:hidden;}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role.pupil-0{background:linear-gradient(155deg,#57d58fdd,#11894ddd);}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role.pupil-1{background:linear-gradient(155deg,#ffd96ddd,#e2a51ddd);}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role.pupil-2{background:linear-gradient(155deg,#ff9fadda,#d95785dd);}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role:hover,.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role:focus-visible{transform:translateY(-4px);box-shadow:0 0 0 4px #fff,0 12px 28px #14213a66;outline:0;}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role .pupil-crop{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;height:69%;min-height:0;flex:1 1 auto;overflow:visible;}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role .pupil-crop .world-sprite{position:static;inset:auto;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center bottom;transform:none;filter:drop-shadow(0 9px 8px #15213f66);}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role strong{max-width:100%;font-size:clamp(13px,1.35vw,20px);line-height:1.12;text-shadow:0 2px 4px #14213a66;overflow-wrap:anywhere;}
.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role>b{display:grid;place-items:center;flex:none;width:clamp(32px,3.6vw,46px);height:clamp(32px,3.6vw,46px);border:2px solid #fff;border-radius:50%;background:#fff;color:#30284b;text-shadow:none;font-size:clamp(17px,1.8vw,24px);box-shadow:0 4px 10px #14213a40;}
.traffic-scene.reflection-v2.world-pupils.choice-0 .pupil-0{box-shadow:0 0 0 4px #fff,0 0 30px #59f39b;}
.traffic-scene.reflection-v2.world-pupils.choice-1 .pupil-1{box-shadow:0 0 0 4px #fff,0 0 30px #ffe36b;}
.traffic-scene.reflection-v2.world-pupils.choice-2 .pupil-2{box-shadow:0 0 0 4px #fff,0 0 30px #ff9bb8;}
.traffic-scene.reflection-v2.world-pupils.choice-0 .pupil-0 .pupil-crop .world-sprite{animation:pupil-joy .85s ease 2;}
.traffic-scene.reflection-v2.world-pupils.choice-1 .pupil-1 .pupil-crop .world-sprite{animation:pupil-wave .85s ease 2;}
.traffic-scene.reflection-v2.world-pupils.choice-2 .pupil-2 .pupil-crop .world-sprite{animation:pupil-help .85s ease 2;}
.traffic-scene.reflection-v2.world-pupils.choice-0 .pupils-set .pupil-role.pupil-0,.traffic-scene.reflection-v2.world-pupils.choice-1 .pupils-set .pupil-role.pupil-1,.traffic-scene.reflection-v2.world-pupils.choice-2 .pupils-set .pupil-role.pupil-2{animation:none;}
@keyframes pupil-joy{0%,100%{transform:translateY(0) rotate(0)}38%{transform:translateY(-13px) rotate(-2deg)}70%{transform:translateY(-5px) rotate(2deg)}}
@keyframes pupil-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-3deg) translateY(-3px)}55%{transform:rotate(3deg) translateY(-4px)}80%{transform:rotate(-2deg)}}
@keyframes pupil-help{0%,100%{transform:translateY(0) rotate(0)}40%{transform:translateY(-8px) rotate(2deg)}70%{transform:translateY(-3px) rotate(-1deg)}}
@media(max-width:760px){.traffic-scene.reflection-v2.world-pupils .pupils-set{gap:6px;padding:clamp(68px,17vh,95px) 2% 3%;}.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role{height:83%;padding:6px 3px;gap:5px;border-width:2px;border-radius:15px;}.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role .pupil-crop{height:65%;}.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role strong{font-size:clamp(10px,2.8vw,12px);}.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role>b{width:28px;height:28px;font-size:16px;}}
@media(max-width:360px){.traffic-scene.reflection-v2.world-pupils .pupils-set{gap:4px;padding-left:1%;padding-right:1%;}.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role{padding:4px 2px;}.traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role strong{font-size:10px;}}
.traffic-scene.world-football .player-kick .world-sprite{mask-image:radial-gradient(ellipse 12% 11% at 78% 90%,transparent 0 91%,#000 100%);-webkit-mask-image:radial-gradient(ellipse 12% 11% at 78% 90%,transparent 0 91%,#000 100%)}

/* Three pupils: preserve portrait proportions and provide readable cards on phones. */
.traffic-scene.reflection-v2.world-pupils .world-tally{display:none}
.traffic-scene.reflection-v2.world-pupils .pupils-set{box-sizing:border-box;}
.traffic-scene.reflection-v2.world-pupils .pupil-role .pupil-crop .world-sprite{width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center bottom;}
@media(max-width:760px){
 .traffic-scene.reflection-v2.world-pupils{height:570px;min-height:570px;}
 .traffic-scene.reflection-v2.world-pupils .pupils-set{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;padding:78px 12px 12px;}
 .traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role{height:100%;min-height:0;display:grid;grid-template-columns:minmax(78px,25%) minmax(0,1fr) auto;grid-template-rows:1fr;align-items:center;justify-items:center;gap:8px;padding:7px 10px;}
 .traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role .pupil-crop{width:100%;height:100%;min-height:0;flex:none;}
 .traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role .pupil-crop .world-sprite{width:100%;height:100%;max-width:100%;max-height:100%;}
 .traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role strong{font-size:clamp(15px,4vw,18px);text-align:center;}
 .traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role>b{width:34px;height:34px;font-size:18px;}
}
@media(max-width:380px){
 .traffic-scene.reflection-v2.world-pupils .pupils-set{padding-left:8px;padding-right:8px;gap:8px;}
 .traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role{grid-template-columns:minmax(66px,24%) minmax(0,1fr) auto;gap:5px;padding:6px;}
 .traffic-scene.reflection-v2.world-pupils .pupils-set .pupil-role strong{font-size:14px;}
}
