/* Scene geometry scales independently of readable instructions and touch controls. */
#app:has(.play-titlebar){max-width:1000px;padding:20px 16px 32px}
.play-titlebar.game-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:0;position:static;background:none}
.play-titlebar>div{min-width:0}.play-titlebar h1,.number-room .play-titlebar h1,.drill-room .play-titlebar h1{font-size:clamp(23px,3vw,30px);line-height:1.35;margin:5px 0 0;color:#174e42}
.play-eyebrow{font-size:13px;font-weight:800;letter-spacing:.08em;color:#547763}.play-header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.play-header-actions button{min-height:44px;white-space:nowrap}
.play-heading.task-header,.question-rescue .play-heading.water-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:20px;margin:0 0 16px;border:2px solid #d4dfc7;border-radius:20px;background:#fffdf2;align-items:start}
.play-heading .play-heading-main{min-width:0}.play-meta{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:13px;color:#526e5c;font-weight:700}
.play-heading .game-question,.bridge-wide .play-heading .game-question{font-size:clamp(22px,2.8vw,30px);line-height:1.5;margin:12px 0 7px;padding:0;border:0;background:none;letter-spacing:0;color:#174e42;overflow-wrap:anywhere}
.play-heading .game-instruction{font-size:clamp(16px,1.8vw,18px);line-height:1.65;font-weight:500;margin:0;color:#3c6255}
.play-heading .play-detail{font-size:14px;margin:7px 0 0;color:#68734e}.play-heading-actions{display:flex;justify-content:flex-end}.play-heading .listen{display:flex;align-items:center;gap:8px;width:auto;min-height:44px;margin:0;padding:8px 14px;font-size:15px}.play-heading .listen svg{width:22px;height:22px}.play-heading .listen-text{display:inline}
.play-cue{display:flex;justify-content:center;padding:10px;border-radius:14px;background:#edf4e5}.play-cue .question-visual{max-width:100%;min-width:0;width:100%}.play-cue:has(.number-hero){background:none;padding:0;justify-content:flex-end}.play-cue .number-hero{width:140px;height:140px}
.stage:has(>.play-heading){background:#fffdf3;padding-top:0;overflow:hidden}.stage>.play-heading{border-width:0 0 2px;border-radius:20px 20px 0 0}
.mission-content{display:flex;flex-direction:column}.mission-content>p:not(.mission-daily){min-height:3.3em;line-height:1.65}.mission-content .mission-daily{margin-top:auto}.home-delivery-slings{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
/* Remove the legacy 13 px circular counters from numeric fruit orders. */
.earth-harvest .wish{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;width:100%;min-height:64px;padding:7px;border:1px solid #d6c997;border-radius:14px;box-sizing:border-box}
.earth-harvest .wish>.fruit-number-order{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;height:auto;min-height:42px;gap:4px;padding:4px 6px;background:#fff6cf;border-radius:9px;color:#20494b;font-size:19px;line-height:1.1;white-space:nowrap}
.earth-harvest .fruit-number-order>svg{display:block;flex:0 0 32px;width:32px;height:36px;overflow:visible}.fruit-number-order>b{position:static;font-size:inherit;line-height:1.2;white-space:nowrap}.wish:after{display:none}
.earth-harvest.open-picnic{padding:16px 12px}.earth-harvest .harvest-leader{max-width:600px;margin:0 auto 16px;padding:6px 12px;justify-content:center}.earth-harvest .harvest-leader>svg[data-art-fit]{width:104px;height:104px;flex-basis:104px}
.earth-harvest .animal-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px;max-width:600px;margin:auto}.earth-harvest .animal-row:has(>.diner:only-child){grid-template-columns:minmax(0,290px);justify-content:center}
.earth-harvest .animal-row>.diner{width:100%;max-width:none;min-width:0;padding:9px;box-sizing:border-box;display:flex;align-items:center}.earth-harvest .diner-art{width:80%;max-width:200px;height:auto;aspect-ratio:1;margin:4px 0}.earth-harvest .serve-zone{min-height:88px;margin-top:auto;width:100%;padding:8px;display:flex;align-items:center;justify-content:center}.earth-harvest .empty-plate{display:block;font-size:15px;line-height:1.6;text-align:center}.earth-harvest .fruit-slots{width:100%;justify-content:center}.earth-harvest .plate-actions{display:flex;width:100%;gap:7px}.earth-harvest .plate-actions button{flex:1;min-width:0;min-height:44px;font-size:16px;padding:8px 4px}.earth-harvest .diner>small{font-size:14px;line-height:1.5;margin:9px 0 7px}.earth-harvest .plate-fruit{width:36px;height:40px;min-height:40px;padding:0}.earth-harvest .plate-fruit svg{width:100%;height:100%}
/* Fixed 4:3 air route. Background and suspension stay in the same coordinate frame. */
.air-delivery.basket-scene{position:relative;padding:0;width:100%;aspect-ratio:4/3;min-height:0;background:#bfe7f3 url('./assets/scenes/delivery-sky-post-v0521.png') center/cover no-repeat;container-type:inline-size}
.air-delivery .air-delivery-rig{position:absolute;width:73%;height:auto;aspect-ratio:1;left:13.5%;top:-1%;margin:0}.air-delivery .cargo-label{font-size:clamp(13px,2.6cqw,20px)}.air-delivery .cargo-drop-mark{font-size:clamp(24px,6cqw,45px)!important}
/* Keep the rescue scene and its actors at the same proportions on every screen. */
.water-shell .question-rescue .spray-area{height:auto;min-height:0;aspect-ratio:4/3;container-type:inline-size;flex:none;background-size:cover}
.water-shell .spray-area .water-nozzle.water-crew{width:36%;height:41%;left:50%;bottom:0;max-width:none;max-height:none}
.water-shell .spray-area .question-target{width:21%;height:30%;min-width:0;min-height:0;padding:0}.water-shell .question-target>svg{width:100%;height:100%}.water-shell .question-target .soak-ring{width:100%;height:auto;aspect-ratio:1;left:0;top:11%}.water-shell .forest-rescue-scene .question-target .answer-label .rescue-symbol{width:clamp(25px,7cqw,54px);height:auto;aspect-ratio:1}
.water-shell.is-expanded{overflow:auto;display:block}.water-shell.is-expanded .water-scene-slot,.water-shell.is-expanded .water-stage{display:block;flex:none}.water-shell.is-expanded .question-rescue{max-width:960px;margin:auto}.water-shell.is-expanded .water-options{flex-wrap:wrap}.water-shell.is-expanded .water-outcome:not(:empty){position:static}.water-shell.is-expanded .play-heading{margin:0 0 12px;padding:12px}.water-shell.is-expanded .play-heading .game-question{font-size:22px}.water-shell.is-expanded .water-options,.water-shell.is-expanded .water-notes{max-width:960px;margin:auto}
/* Square map cells retain geometry; wide maps can pan without squeezing touch targets. */
.bridge-river-world{--bank:72px}.bridge-map-grid{grid-auto-rows:auto}.bridge-cell{aspect-ratio:1;height:auto;min-height:44px}.bridge-map-viewport{scrollbar-width:auto}
/* The puzzle stays readable above a fixed 3:1 driving scene. */
.drill-room .drill-route{height:auto;aspect-ratio:3/1;container-type:inline-size}.drill-room .drill-car{width:35%;height:100%;left:0;bottom:2%;transform:none;transition:left 1.4s ease-in-out}.drill-room .drill-cleared .drill-car{left:65%;transform:none}.drill-goal{top:10%;right:2%}.drill-tunnel .logic-items{overflow-wrap:anywhere}.number-field{max-width:720px;margin-left:auto;margin-right:auto}.number-toolbar{position:static}.number-room .number-board{min-width:0}.number-room .number-next strong{font-size:30px}
@media(max-width:600px){#app:has(.play-titlebar){padding:14px 10px 24px}.play-titlebar.game-top{gap:10px}.play-titlebar h1,.number-room .play-titlebar h1,.drill-room .play-titlebar h1{font-size:23px}.play-header-actions button{font-size:14px;padding:8px 10px}.play-titlebar.water-bar{flex-wrap:wrap}.play-titlebar.water-bar>div:first-child{flex:1 1 100%}.play-titlebar.water-bar .play-header-actions{margin-left:auto}.play-heading.task-header,.question-rescue .play-heading.water-heading{padding:16px;gap:10px}.play-meta{font-size:12px;gap:6px 10px}.play-cue .number-hero{width:100px;height:100px}.earth-harvest.open-picnic{padding:12px 8px}.earth-harvest .animal-row{gap:8px}.earth-harvest .animal-row>.diner{padding:6px;border-radius:18px}.earth-harvest .wish{padding:5px;min-height:58px}.earth-harvest .wish>.fruit-number-order{font-size:17px;padding:2px 4px;gap:2px}.earth-harvest .fruit-number-order>svg{width:29px;height:32px;flex-basis:29px}.earth-harvest .diner-art{width:92%}.earth-harvest .serve-zone{padding:5px;border-radius:18px}.earth-harvest .empty-plate{font-size:14px}.earth-harvest .harvest-leader>svg[data-art-fit]{width:90px;height:90px;flex-basis:90px}.water-hud{flex-wrap:wrap;gap:7px}.water-hud strong{font-size:13px}.drill-route .drill-goal{font-size:13px;padding:5px 9px}.mission-content>p:not(.mission-daily){min-height:0}}
.task-header.play-heading .listen .listen-text{display:inline}
.play-titlebar.water-bar>div:first-child{flex:1 1 auto}.play-titlebar.water-bar .play-header-actions{margin-left:0}
@media(prefers-reduced-motion:reduce){.drill-room .drill-car{transition:none}}

/* Keep the current target digit visible in every cue mode, including narrow screens. */
.number-room .number-target-list .number-goal{display:inline-grid;place-items:center;flex:0 0 auto;min-width:64px;min-height:64px;padding:6px 10px;font-size:clamp(36px,4vw,44px);line-height:1.1;box-sizing:border-box;font-variant-numeric:lining-nums tabular-nums}
.number-room .number-word-cue{font-size:26px;font-weight:700;color:#174e42}.number-room .number-target-list{max-width:100%;min-width:0}
