/* Refined destination grid: reset legacy per-card coordinates at every viewport. */
#jungleWorldScreen #worldMap{height:auto!important;min-height:0!important;align-items:stretch!important;grid-auto-flow:row!important;overflow:visible!important}
#jungleWorldScreen #worldMap .world-spot{position:relative!important;inset:auto!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important;margin:0!important;min-width:0!important;min-height:180px!important;height:100%!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:8px!important;padding:16px 12px!important}
#jungleWorldScreen #worldMap .spot-icon{flex:0 0 94px!important;width:94px!important;height:94px!important}
#jungleWorldScreen .world-map-shell{overflow:auto!important;gap:10px!important}
#jungleWorldScreen .world-bottom{flex-wrap:wrap!important;gap:8px!important}
/* Science uses one deliberate reading column with natural-height actions. */
#discoveryWildScreen .science-learning-panel{display:block!important;overflow:auto!important;align-content:start!important}
#discoveryWildScreen #scienceStage{min-height:0!important;height:auto!important;display:block!important}
#discoveryWildScreen .science-card{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:12px!important;padding:16px!important;overflow:visible!important}
#discoveryWildScreen .science-card>h2{margin:0!important;font-size:clamp(25px,3vw,38px)!important;line-height:1.1!important;flex:none!important}
#discoveryWildScreen .science-card>p{margin:0!important;font-size:17px!important;line-height:1.4!important}
#discoveryWildScreen .science-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;flex:none!important}
#discoveryWildScreen #scienceObserveNext{height:auto!important;min-height:50px!important;max-height:64px!important;flex:none!important;padding:14px 18px!important;width:100%!important}
#discoveryWildScreen .jv-weather-discoveries{margin:0!important;flex:none!important}
#discoveryWildScreen .science-scene{height:clamp(160px,24dvh,260px)!important;min-height:160px!important;flex:none!important}
#discoveryWildScreen .science-demo-grid{flex:none!important;gap:8px!important}
#discoveryWildScreen .science-demo-btn{min-height:48px!important;padding:10px!important}
/* Field discoveries: pictures carry the relationship; type carries the fact. */
#v062WildEarthScreen .v062-episode-head h2{font-size:clamp(23px,3vw,34px)!important;line-height:1.1!important}
#v062WildEarthScreen .v062-fact-card{width:min(680px,calc(100% - 32px))!important;height:auto!important;min-height:0!important;box-sizing:border-box!important;margin:16px!important;padding:22px!important;border-radius:24px!important;background:#fffbefed!important}
#v062WildEarthScreen .v062-fact-card .pair{font-size:32px!important;gap:22px!important;margin-bottom:12px!important}
#v062WildEarthScreen .v062-fact-card .pair>span{display:flex!important;align-items:center!important;justify-content:center!important;width:145px!important;height:125px!important;font-size:0!important;flex:none!important}
#v062WildEarthScreen .v062-fact-card .pair>span:nth-child(2){font-size:32px!important;width:32px!important}
#v062WildEarthScreen .v062-fact-card .pair .jv-art,#v062WildEarthScreen .v062-fact-card .pair .jv-habitat{width:100%!important;height:100%!important;object-fit:contain!important}
#v062WildEarthScreen .v062-fact-card h3{font-size:clamp(20px,2.4vw,28px)!important;line-height:1.15!important;margin:10px 0!important}
#v062WildEarthScreen .v062-fact-card p{font-size:clamp(16px,1.6vw,20px)!important;line-height:1.5!important;max-width:530px!important}
#v062WildEarthScreen .v062-fact-card small{display:block!important;margin-top:14px!important;font-size:10px!important;letter-spacing:.12em!important}
#v062WildEarthScreen .v062-guide-line{padding:8px 12px!important;gap:10px!important}
#v062WildEarthScreen .v062-guide-line .face{width:38px!important;height:46px!important;min-width:38px!important}
#v062WildEarthScreen .v062-guide-line b{display:none!important}
#v062WildEarthScreen .v062-guide-line span{font-size:13px!important;line-height:1.4!important;margin:0!important}
#v062WildEarthScreen .v062-episode-actions{gap:10px!important;padding:4px!important;flex-wrap:wrap!important}
#v062WildEarthScreen .v062-episode-actions button{min-height:48px!important;padding:12px 18px!important;font-size:13px!important}
#v062WildEarthScreen .v062-animal-stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
#v062WildEarthScreen .v062-animal-stage .v062-animal{top:auto!important;bottom:10%!important;left:13%!important;width:clamp(120px,17vw,195px)!important;min-height:0!important;min-width:0!important;max-height:none!important}
#v062WildEarthScreen .v062-animal-stage .cp6-real-animal,#v062WildEarthScreen .v062-animal-stage .jv-art{width:100%!important;height:auto!important;display:block!important}
#v062WildEarthScreen .v062-animal-stage .v062-animal label{font-size:11px!important;background:#fffbef!important;padding:7px 10px!important}
#v062WildEarthScreen .v062-animal-stage.play.toucan .v062-animal{animation:jvToucanReach 2s ease-in-out forwards!important}
#v062WildEarthScreen .v062-animal-stage.play.sloth .v062-animal{animation:jvSlothClimb 3s ease-in-out forwards!important}
#v062WildEarthScreen .v062-animal-stage.play.capybara .v062-animal{animation:jvCapySwim 2.4s ease-in-out forwards!important}
@keyframes jvToucanReach{0%{transform:translate(0,0)}55%{transform:translate(38vw,-18%) rotate(-8deg)}75%{transform:translate(38vw,-18%) rotate(3deg)}100%{transform:translate(33vw,0)}}
@keyframes jvSlothClimb{0%{transform:translate(0,0) rotate(-3deg)}50%{transform:translate(15vw,-12%) rotate(6deg)}100%{transform:translate(30vw,-5%) rotate(-3deg)}}
@keyframes jvCapySwim{0%{transform:translateX(0)}65%{transform:translate(36vw,10%)}100%{transform:translate(40vw,15%)}}
@media(max-width:850px){#jungleWorldScreen #worldMap{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(175px,1fr))!important}#jungleWorldScreen #worldMap .spot-icon{flex-basis:65px!important;width:65px!important;height:65px!important}#jungleWorldScreen #worldMap .world-spot{min-height:175px!important;padding:10px!important}#discoveryWildScreen .science-layout{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important}#discoveryWildScreen .science-topic-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}#discoveryWildScreen .science-topic{min-height:64px!important}#discoveryWildScreen .science-topic small{display:none!important}#v062WildEarthScreen .v062-fact-card{padding:15px!important}#v062WildEarthScreen .v062-fact-card .pair>span{width:100px!important;height:95px!important}#v062WildEarthScreen .v062-fact-card .pair{gap:12px!important}}
@media(prefers-reduced-motion:reduce){#v062WildEarthScreen .v062-animal-stage.play .v062-animal{animation-duration:.01ms!important}}
#v062WildEarthScreen .toucan .v062-prop{display:block!important;left:69%!important;right:auto!important;top:auto!important;bottom:45%!important;width:15%!important;height:15%!important;z-index:2}
.jv-fruit-branch{display:block;position:relative;width:100%;height:9px;border-radius:80%;background:#63472a;transform:rotate(-12deg);box-shadow:0 3px 3px #143f3444}
.jv-fruit-branch i{position:absolute;top:-5px;left:8%;width:24px;height:29px;border-radius:45% 45% 50% 50%;background:radial-gradient(circle at 30% 30%,#ffe59b,#ed8d31 48%,#a73429);box-shadow:inset -3px -3px 4px #75342e55,0 3px 3px #203b3044}
.jv-fruit-branch i:nth-child(2){left:30%;top:3px}.jv-fruit-branch i:nth-child(3){left:54%;top:-10px}
#v062WildEarthScreen .toucan.play .jv-fruit-branch{animation:jvFruitNudge 2s ease forwards}
@keyframes jvFruitNudge{0%,55%,100%{transform:rotate(-12deg)}65%{transform:rotate(-2deg)}75%{transform:rotate(-16deg)}}
#v062WildEarthScreen .toucan .v062-prop{left:auto!important;right:0!important;width:31%!important}
#discoveryWildScreen #scienceStage .science-scene{height:clamp(160px,24dvh,260px)!important;min-height:160px!important;max-height:260px!important;flex:0 0 auto!important;aspect-ratio:auto!important}
#discoveryWildScreen #scienceStage #scienceObserveNext{position:static!important;inset:auto!important;transform:none!important;margin:0!important;box-sizing:border-box!important;align-self:stretch!important}
#discoveryWildScreen #scienceStage .science-actions{position:static!important;inset:auto!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}
@media(max-width:850px){
 #discoveryWildScreen .science-layout{grid-template-rows:190px minmax(0,1fr)!important}
 #discoveryWildScreen .science-map-panel{height:190px!important;min-height:0!important;padding:8px!important;box-sizing:border-box!important}
 #discoveryWildScreen #scienceTopicGrid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important;flex:1!important}
 #discoveryWildScreen #scienceTopicGrid .science-topic{display:flex!important;flex-direction:row!important;min-height:48px!important;min-width:0!important;gap:5px!important;padding:5px!important;overflow:hidden!important}
 #discoveryWildScreen #scienceTopicGrid .science-topic .ico{width:42px!important;height:42px!important;flex:0 0 42px!important}
 #discoveryWildScreen #scienceTopicGrid .science-topic strong{font-size:9px!important;overflow-wrap:anywhere!important}
 #discoveryWildScreen .science-map-title{font-size:10px!important;margin-bottom:5px!important}
 #discoveryWildScreen .science-field-count{padding:4px!important;margin-top:5px!important}
}
@media(max-width:480px){#discoveryWildScreen #scienceTopicGrid .science-topic .ico{display:none!important}#discoveryWildScreen #scienceTopicGrid .science-topic{justify-content:center!important;text-align:center!important}}
#discoveryWildScreen .science-layout:has(.science-welcome) .science-learning-panel{display:none!important}
#discoveryWildScreen .science-layout:has(.science-welcome){grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr)!important}
#discoveryWildScreen .science-layout:has(.science-welcome) .science-map-panel{height:100%!important;min-height:0!important}
#discoveryWildScreen .science-layout:has(.science-welcome) #scienceTopicGrid .science-topic{display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important;gap:0!important;align-items:stretch!important}
#discoveryWildScreen .science-layout:has(.science-welcome) #scienceTopicGrid .science-topic .ico{display:block!important;min-width:0!important;width:100%!important;height:100px!important;min-height:0!important;flex:1 1 0!important;overflow:hidden!important}
#discoveryWildScreen .science-layout:has(.science-welcome) #scienceTopicGrid .science-topic img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
#discoveryWildScreen .science-layout:has(.science-welcome) #scienceTopicGrid .science-topic>span:last-child{min-height:38px!important;max-height:none!important;padding:10px!important;flex:none!important}
#discoveryWildScreen .science-layout:has(.science-welcome) #scienceTopicGrid .science-topic strong{font-size:13px!important}
@media(max-width:850px) and (max-height:800px){
 #jungleWorldScreen #worldMap{grid-template-rows:repeat(3,minmax(140px,1fr))!important;gap:8px!important;padding:10px!important}
 #jungleWorldScreen #worldMap .world-spot{min-height:140px!important;padding:8px!important;gap:5px!important}
 #jungleWorldScreen #worldMap .spot-icon{width:50px!important;height:50px!important;flex:0 0 50px!important}
 #jungleWorldScreen #worldMap .world-spot strong{font-size:13px!important}
 #jungleWorldScreen #worldMap .world-spot small{font-size:10px!important}
 #jungleWorldScreen #worldMap .area-state{margin-top:4px!important;font-size:9px!important}
}

/* Closure047: reuse the established Saturn ball illustration in both holders. */
.jv-saturn-ball{position:relative;display:inline-block;width:100%;height:100%}.jv-saturn-ball>svg{width:100%!important;height:100%!important;display:block}
/* Keep the throw instruction off the ball and pin deck. */
#mathBowlingScreen #v053Callout{left:auto!important;right:10px!important;top:10px!important;bottom:auto!important;transform:none!important;max-width:48%!important;min-width:0!important;width:auto!important;pointer-events:none!important}
/* Refinement048: usable collections, clear maps and focused learning panels. */
#v063CollectionStage{overflow:auto!important}
#v063CollectionStage .v063-collection{display:block!important;height:auto!important;padding:16px!important}
#v063CollectionStage .v063-collection-intro h2{display:none!important}
#v063CollectionStage .v063-collection-intro{padding:12px 16px!important;margin-bottom:16px!important}
#v063CollectionStage .v063-collection-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;align-items:start!important}
#v063CollectionStage .v063-collection-card{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;gap:14px!important;height:auto!important;min-height:250px!important;padding:24px 14px!important;background:#f4f5e5!important;border-radius:22px!important}
#v063CollectionStage .v063-collection-card .big{display:grid!important;place-items:center!important;font-size:0!important;min-height:0!important;width:140px!important;height:140px!important;flex:none!important}
#v063CollectionStage .v063-collection-card .big .jv-art{display:block!important;width:140px!important;height:140px!important}
#v063CollectionStage .v063-collection-card>b{font-size:19px!important}
#v063CollectionStage .v063-collection-card>span{font-size:12px!important;background:#e0ebd5;padding:7px 12px;border-radius:20px}
#v062WildEarthScreen .v062-earth-map{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto repeat(2,minmax(150px,1fr)) auto!important;gap:16px!important;padding:20px!important;height:100%!important;min-height:0!important;overflow:auto!important;background:linear-gradient(#173f3440,#173f3460),url('assets/rebirth002/canopy.png') center/cover!important}
#v062WildEarthScreen .v062-earth-globe,#v062WildEarthScreen .v062-earth-trail{display:none!important}
#v062WildEarthScreen .v062-map-curiosity{position:static!important;transform:none!important;grid-column:1/-1!important;justify-self:center!important;margin:0!important}
#v062WildEarthScreen .v062-region{position:relative!important;inset:auto!important;transform:none!important;width:auto!important;min-width:0!important;height:100%!important;display:flex!important;align-items:center!important;gap:16px!important;padding:24px 18px!important;background:#fffbedf5!important}
#v062WildEarthScreen .v062-region .ico{width:86px!important;height:86px!important;flex:0 0 86px!important}
#v062WildEarthScreen .v062-region .stamp{position:static!important;align-self:flex-start!important;font-size:9px!important;margin-left:auto!important}
#v062WildEarthScreen .v062-region:after{display:none!important}
#v062WildEarthScreen .cp6-science-entry{position:static!important;inset:auto!important;transform:none!important;grid-column:1/-1!important;grid-row:4!important;width:auto!important;min-height:72px!important;padding:14px!important}
#storyTreeScreen #storyStage{min-height:0!important;height:auto!important;display:block!important;padding:12px!important}
#storyTreeScreen .story-friend{display:grid!important;grid-template-columns:52px 1fr!important;gap:4px 10px!important;width:calc(100% - 24px)!important;left:12px!important;box-sizing:border-box!important;padding:16px 10px!important;text-align:left!important}
#storyTreeScreen .story-friend .face{grid-row:1/3!important;float:none!important;width:52px!important;height:64px!important;margin:0!important}
#storyTreeScreen .story-friend .face .jv-art{width:52px!important;height:64px!important}
#storyTreeScreen .story-friend .jv-token-text{display:none!important}
#storyTreeScreen .story-friend>span{font-size:11px!important;margin:0!important}
#storyTreeScreen .story-friend:before{display:none!important}
#jvNarratorPanel{position:fixed!important;inset:0!important;margin:auto!important;width:min(480px,calc(100vw - 40px))!important;max-height:calc(100dvh - 40px)!important;box-sizing:border-box!important;overflow:auto!important;padding:24px!important;border:2px solid #d6c28b!important;border-radius:24px!important;box-shadow:0 20px 70px #12382f50!important;background:#fffbed!important;color:#204e40!important}
#jvNarratorPanel::backdrop{background:#12382f88}
#jvNarratorPanel:not([open]){display:none!important}
#wordHearBtn{display:none!important}
#wordStage .word-picture[data-v064-role=listen]{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:4px!important;min-height:80px!important;height:80px!important;background:#e6efd8!important}
#wordStage .word-picture[data-v064-role=listen] .v064-listen-clue{font-size:38px!important;line-height:1!important;color:#34664f!important}
#wordStage .word-picture[data-v064-role=listen] small{font-size:11px!important;letter-spacing:.06em!important;color:#34664f!important}
#wordStage .word-card{gap:12px!important}
#wordStage .word-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
#wordStage .word-check{grid-column:1/-1!important}
#v062SdStage .v062-lane{height:130px!important;min-height:130px!important;background:#fffbedbd!important;margin:10px 0!important;border:1px solid #d5dbbd!important}
#v062SdStage .v062-track{top:auto!important;bottom:18px!important;left:10%!important;right:5%!important;height:6px!important;background:#a38d62!important}
#v062SdStage .v062-pad{top:auto!important;bottom:8px!important;transform:translateX(-50%)!important}
#v062SdStage .v062-runner{bottom:24px!important;width:82px!important;height:82px!important;transform:translateX(-50%)!important}
#v062SdStage .v062-sd-task{padding:16px!important;gap:18px!important}
@media(max-width:850px){#v063CollectionStage .v063-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#v062WildEarthScreen .v062-earth-map{gap:10px!important;padding:12px!important;grid-template-rows:auto repeat(2,minmax(125px,1fr)) auto!important}#v062WildEarthScreen .v062-region{padding:12px!important;gap:8px!important}#v062WildEarthScreen .v062-region .ico{width:52px!important;height:52px!important;flex-basis:52px!important}#v062WildEarthScreen .v062-region strong{font-size:17px!important}#v062WildEarthScreen .v062-region .stamp{display:none!important}}
#v063CollectionStage .jv-collection-detail{font-size:15px!important;line-height:1.55!important;margin:0!important;font-weight:600!important;color:#466354!important;text-align:center!important}
#wordGardenScreen #wordStage{min-height:0!important;height:auto!important;display:block!important;padding:12px!important}
#wordStage .v064-listen-clue{background:none!important;border:0!important;box-shadow:none!important;width:auto!important;height:auto!important;padding:0!important;border-radius:0!important}
#v063CollectionStage .v063-collection-grid{align-items:stretch!important}
#v063CollectionStage .v063-collection-card{height:100%!important;box-sizing:border-box!important}
#wordStage .word-card{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
#wordStage .word-card>*{flex-shrink:0!important}
#wordStage .word-actions{position:static!important;inset:auto!important;transform:none!important;margin:0!important;background:none!important}
@media(max-width:850px){#wordStage .word-card{padding:12px!important;gap:8px!important}#wordStage .word-target{font-size:24px!important;margin:0!important}#wordStage .word-letter-bank{gap:6px!important}#wordStage .word-letter{min-width:44px!important;width:44px!important;height:48px!important;padding:0!important;font-size:24px!important}#wordStage .word-slot{width:52px!important;height:54px!important}#wordStage .word-picture[data-v064-role=listen]{height:64px!important;min-height:64px!important}#wordStage .word-feedback{min-height:0!important;padding:9px!important;font-size:13px!important}#wordStage .word-actions button{min-height:44px!important;padding:10px!important;font-size:13px!important}}
