/* Founder review: reachable controls at compact desktop and tablet sizes. */
#learningGroveScreen #cp8EarthWeatherJump{display:none!important}
#learningGroveScreen .grove-shell{grid-template-rows:auto auto minmax(0,1fr) auto auto!important}
#wordGardenScreen .word-learning-panel,#storyTreeScreen .story-learning-panel,#discoveryWildScreen .science-learning-panel,#cosmicCanopyScreen .cosmic-learning-panel{overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:18px!important}
#wordGardenScreen #wordStage,#storyTreeScreen #storyStage,#discoveryWildScreen #scienceStage{height:auto!important;min-height:100%!important;overflow:visible!important}
#wordGardenScreen .word-card{height:auto!important;min-height:0!important;overflow:visible!important}
#wordGardenScreen .word-actions{position:sticky;bottom:0;z-index:4;background:#fff9e8;padding:9px 0 8px!important;margin-bottom:4px}
#wordGardenScreen .word-check{min-height:48px!important}
#wordGardenScreen .word-top,#storyTreeScreen .story-top{padding-right:0!important;flex-wrap:wrap;gap:8px}
.screen .v063-activity-badge{display:none!important}
/* The lane and learning dock share actual space; neither covers the other. */
#mathBowlingScreen .bowling-shell.v053-arcade{display:flex!important;flex-direction:column!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;gap:6px!important;padding:10px!important;overflow:auto!important}
#mathBowlingScreen .bowling-top{flex:none!important;min-height:48px!important;position:relative!important;padding-right:0!important}
#mathBowlingScreen .bowling-top h1{font-size:clamp(22px,3vw,34px)!important}
#mathBowlingScreen .v062-bowl-modebar{position:static!important;transform:none!important;justify-content:center!important;flex-wrap:wrap!important;order:0!important}
#mathBowlingScreen .v062-bowl-ready-note{display:none!important}
#mathBowlingScreen #v060BowlingRack{flex:none!important;max-height:72px!important;min-height:64px!important;padding:4px 10px!important;gap:6px!important}
#mathBowlingScreen #v060BowlingRack .v060-ball-chip{min-height:54px!important;min-width:54px!important;padding:3px!important;gap:1px!important}
#mathBowlingScreen #v060BowlingRack .cp7-ball-image{width:34px!important;height:34px!important}
#mathBowlingScreen .bowling-shell.v053-arcade .bowling-layout{display:flex!important;flex-direction:column!important;flex:1 0 400px!important;height:auto!important;min-height:0!important}
#mathBowlingScreen .bowling-shell.v053-arcade .bowling-lane-panel{display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;gap:6px!important;overflow:visible!important;padding:0!important}
#mathBowlingScreen .bowling-shell.v053-arcade .bowling-lane{flex:1 0 210px!important;min-height:210px!important;height:auto!important;max-height:none!important}
#mathBowlingScreen .bowling-shell.v053-arcade .v053-lesson-dock{flex:none!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:visible!important;padding:10px!important}
#mathBowlingScreen .bowling-shell.v053-arcade.v053-question-mode .v053-lesson-dock{min-height:0!important;max-height:none!important;overflow:visible!important}
#mathBowlingScreen .v062-easy-panel,#mathBowlingScreen .v062-hard-panel{position:static!important;transform:none!important;width:100%!important;flex:none!important;order:5;box-sizing:border-box!important;margin:0!important;z-index:auto!important}
#mathBowlingScreen #bowlingRollHelp{min-height:0!important;font-size:11px!important;margin:0!important}
#mathBowlingScreen #bowlingBall{background:transparent!important;box-shadow:none!important}
#mathBowlingScreen #bowlingBall>span:not(.jv-ball-surface),#mathBowlingScreen #bowlingBall span:before,#mathBowlingScreen #bowlingBall span:after{display:none!important;content:none!important}
#mathBowlingScreen #bowlingPins{top:auto!important;bottom:55%!important;transform-origin:50% 100%!important;filter:drop-shadow(0 4px 2px #231b2266)!important}
#mathBowlingScreen .bowling-choice{min-height:48px!important}
#mathBowlingScreen .v053-mini-controls{flex-wrap:wrap!important;overflow:visible!important}
/* Match the protected artboards' shape instead of adding tall letterboxes. */
#v062WorldStage:has(.v0643-rive-world){overflow:auto!important;display:block!important}
#v062WorldStage .v0643-rive-world{height:auto!important;min-height:100%!important;display:flex!important;flex-direction:column!important;gap:10px!important}
#v062WorldStage .v0643-rive-main{width:100%!important;aspect-ratio:16/9!important;min-height:0!important;flex:none!important;background:#050b12!important}
#v062WorldStage .v0643-rive-rail{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:10px!important;overflow:visible!important}
#v062WorldStage .v0643-rive-rail h3,#v062WorldStage .v0643-rive-rail p{display:none!important}
#v062WorldStage .v0643-planet-grid{grid-template-columns:repeat(5,1fr)!important;grid-area:auto!important}
#v062WorldStage .v0643-planet-btn{min-height:44px!important;font-size:8px!important}
#v062WorldStage .v0643-labs{grid-area:auto!important;margin:0!important;grid-template-columns:1fr 1fr!important}
#v062WorldStage .v0643-lab-btn{min-height:44px!important}
#v062WorldStage .v0643-lab-btn b{font-size:10px!important}
#v062WorldStage .v0643-credit{grid-area:auto!important;grid-column:1/-1!important;font-size:8px!important}
#v063PlanetStage{overflow:auto!important}
#v063PlanetStage .v063-planet-layout{height:auto!important;min-height:100%!important;align-items:start!important}
#v063PlanetStage .v063-planet-scene{aspect-ratio:1!important;width:100%!important;height:auto!important;min-height:0!important;align-self:start!important;background:#090b13!important}
#v063PlanetStage #junglePlanetLiveRive{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
#v063PlanetStage .jungle-planet-status{bottom:8px!important}
@media(max-width:650px){#v062WorldStage .v0643-rive-rail{grid-template-columns:1fr!important}#v063PlanetStage .v063-planet-layout{grid-template-columns:1fr!important}#v063PlanetStage .v063-planet-scene{max-width:430px!important;margin:auto!important}#mathBowlingScreen .bowling-top{flex-wrap:wrap!important}#mathBowlingScreen .bowling-shell.v053-arcade .bowling-layout{flex-basis:400px!important}}
@media(prefers-reduced-motion:reduce){.jv-hazard{opacity:.9}}
#mathBowlingScreen .bowling-shell.v053-arcade #v062BowlingModeBar{position:static!important;inset:auto!important;transform:none!important;margin:0!important;align-self:center!important;flex:none!important;height:auto!important;min-height:44px!important;padding:4px 8px!important;order:4!important}
#mathBowlingScreen .bowling-shell.v053-arcade .bowling-layout{flex:1 0 auto!important;min-height:260px!important}
#mathBowlingScreen .bowling-shell.v053-arcade:has(#v062EasyPanel) .v053-lesson-dock,#mathBowlingScreen .bowling-shell.v053-arcade:has(#v062HardPanel) .v053-lesson-dock{display:none!important}
#mathBowlingScreen .bowling-shell.v053-arcade .bowling-lane{flex:1 0 240px!important;min-height:240px!important}
#mathBowlingScreen .bowling-shell.v053-arcade.v053-question-mode .bowling-lane{flex:1 0 190px!important;min-height:190px!important}
#mathBowlingScreen .bowling-shell.v053-arcade #bowlingPins{bottom:48%!important}
#mathBowlingScreen .bowling-card:has(.v064-inline-flow.show) #bowlingFeedback .v064-inline-next{display:none!important}
#mathBowlingScreen .bowling-shell.v053-arcade .v062-bowl-modebar .flow{display:none!important}
#mathBowlingScreen .v053-callout strong{color:#244f3d!important}
#v062WorldStage .v0643-rive-world{overflow:visible!important;max-height:none!important;min-height:0!important;padding:8px!important}
#v062WorldStage .v0643-rive-main{width:min(100%,calc((100dvh - 380px)*1.7778))!important;align-self:center!important}
#v062WorldStage .v0643-rive-rail{flex:none!important;height:auto!important;min-height:116px!important;max-height:none!important}
@media(max-height:560px){#v062WorldStage .v0643-rive-main{width:100%!important}}
#v063PlanetStage .v063-planet-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
#discoveryWildScreen #scienceObserveNext{position:sticky!important;bottom:0!important;z-index:4!important;min-height:48px!important;box-shadow:0 0 0 6px #fff9e8!important}
@media(max-width:650px){#v063PlanetStage .v063-planet-layout{grid-template-columns:1fr!important}}

#v062WorldStage .v0643-rive-main .v0643-head{display:none!important}

#storyTreeScreen #storyWorldPanel .story-friend{display:flex!important;flex-direction:column!important;align-items:center!important;width:calc(100% - 16px)!important;left:8px!important;right:8px!important;min-width:0!important;padding:16px 6px 6px!important;gap:2px!important;box-sizing:border-box!important}#storyTreeScreen #storyWorldPanel .story-friend .face{width:60px!important;height:62px!important}#storyTreeScreen #storyWorldPanel .story-friend b{font-size:12px!important;line-height:1.2!important}
/* Replace inherited absolute Story Tree map coordinates with a real menu grid. */
#v062WorldOverworldScreen[data-world="story"] #v062WorldStage{display:block!important;overflow:auto!important}
#v062WorldStage .v064-story-world{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(150px,1fr))!important;gap:14px!important;padding:16px!important;height:100%!important;min-height:0!important;box-sizing:border-box!important}
#v062WorldStage .v064-story-world .v064-story-dest{position:relative!important;inset:auto!important;transform:none!important;translate:none!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:none!important;margin:0!important;padding:14px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:10px!important;text-align:center!important}
#v062WorldStage .v064-story-dest .obj{width:80px!important;height:80px!important;flex:none!important}
#v062WorldStage .v064-story-dest b{font-size:clamp(14px,1.7vw,20px)!important;line-height:1.15!important;white-space:normal!important}
#v062WorldStage .v064-story-dest small{font-size:12px!important;line-height:1.3!important;white-space:normal!important}
#v062WorldStage .v064-story-sign{display:none!important}
#storyTreeScreen .jv-letter-task{font-size:80px!important;font-weight:1000!important;color:#244f3d!important;min-height:125px!important;display:grid!important;place-items:center!important}
#storyTreeScreen .jv-letter-task:after{display:none!important}
.v062-wild-guide .face>.jv-art{width:100%!important;height:100%!important}
#mathBowlingScreen .bowling-shell.v053-arcade #bowlingPins{animation:none!important;transform:translateX(-50%) scale(.67)!important;bottom:42%!important}
#mathBowlingScreen .bowling-shell.v053-arcade #bowlingPins .pin{background:transparent url('assets/rebirth002/bowling-pin.svg') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 3px 2px #191b2355)!important}
#mathBowlingScreen #bowlingPins .pin:before,#mathBowlingScreen #bowlingPins .pin:after{display:none!important}
@media(max-width:700px){#v062WorldStage .v064-story-world{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(130px,1fr))!important}}
body:has(#storyTreeScreen:not(.hidden)) #joyBurst{inset:auto auto 18px 18px!important;width:min(220px,25vw)!important;height:auto!important;transform:none!important;pointer-events:none!important}
body:has(#storyTreeScreen:not(.hidden)) #joyBurst .joy-card{padding:12px!important;min-height:0!important;width:100%!important;border-radius:18px!important}
body:has(#storyTreeScreen:not(.hidden)) #joyBurst .joy-word{font-size:20px!important;line-height:1.1!important}
body:has(#storyTreeScreen:not(.hidden)) #joyBurst .joy-equation{font-size:13px!important;line-height:1.2!important}
body:has(#storyTreeScreen:not(.hidden)) #joyBurst .joy-coach{font-size:11px!important;line-height:1.2!important}
