/* =====================================================================
   JUNGLE POLISH 049 — child-facing visual finish (Rebirth005 lineage)
   Presentation only. Learning engines, answers, routes, saves, Rive files
   and accepted artwork are untouched. Loaded last so it can consolidate
   the earlier rebirth001–005 presentation layers.
   ===================================================================== */
:root{
  --p49-ink:#1d4a3c; --p49-ink-soft:#3f6559; --p49-cream:#fffaf0; --p49-card:#fffdf7;
  --p49-line:#e3dbbf; --p49-gold:#f3c552; --p49-gold-deep:#c9962c; --p49-green:#2c7a55;
  --p49-good:#2f8f5b; --p49-good-bg:#e3f5e4; --p49-try:#b8663a; --p49-try-bg:#fff0dc;
  --p49-radius:22px; --p49-btn-radius:16px; --p49-shadow:0 10px 26px rgba(48,62,38,.14);
  --p49-label:13px; --p49-body:16px;
}

/* ---------- 0. Shared: readable micro-labels and calm, consistent back buttons ---------- */
html body .eyebrow, html body #v062WorldEyebrow{font-size:var(--p49-label)!important;letter-spacing:.12em!important}
html body #v062WorldBack, html body #v063CollectionBack, html body #v063PlanetBack, html body #v062WildBack,
html body #v062AdvBack, html body #v062SdBack, html body #storyBackBtn, html body #wordBackBtn,
html body #scienceBackBtn, html body #groveHomeBtn, html body #bowlingBackBtn, html body #worldHomeBtn{
  min-height:46px!important; padding:0 16px!important; border-radius:999px!important; border:2px solid #d9ceb0!important;
  background:#fffdf5!important; color:var(--p49-ink)!important; font-weight:900!important; font-size:15px!important;
  letter-spacing:.02em!important; box-shadow:0 3px 0 #d9ceb0!important; white-space:nowrap!important}
html body #v062WorldBack:hover, html body #v063CollectionBack:hover, html body #storyBackBtn:hover, html body #wordBackBtn:hover{background:#fff6dc!important}

/* Celebration toast: a compact banner at the top centre instead of covering the guide card. */
html body .joy-burst{left:50%!important;right:auto!important;top:10px!important;bottom:auto!important;width:min(380px,86vw)!important;
  transform:translate(-50%,-14px) scale(.96)!important;z-index:7000!important}
html body .joy-burst.show{transform:translate(-50%,0) scale(1)!important}
html body .joy-burst .joy-card{padding:10px 16px!important;border-radius:18px!important;text-align:center!important}
html body .joy-burst .joy-word{font-size:22px!important;line-height:1.1!important}
html body .joy-burst .joy-coach{font-size:13px!important;line-height:1.25!important}

/* The numbers checkpoint caption faded in behind lesson cards; keep it invisible unless shown. */
html body #checkpoint:not(.show){opacity:0!important;visibility:hidden!important}

/* ---------- 1. Camp (title) ---------- */
html body #titleScreen .subtitle{margin-left:0!important;padding-left:0!important;text-align:left!important;width:auto!important;max-width:760px!important}
html body #titleScreen .jl-world-note{font-style:normal!important;font-size:12px!important;letter-spacing:.06em!important;line-height:1.5!important;
  display:inline-block!important;border-radius:14px!important;padding:6px 12px!important;white-space:normal!important}
html body #titleScreen .v02-grownups{display:flex!important;justify-content:center!important;align-items:center!important;gap:14px!important}
html body #titleScreen #parentBtn{font-size:13px!important;padding:0 18px!important}
@media (max-height:800px){
  html body #titleScreen .title-card{padding-top:18px!important;padding-bottom:14px!important;top:auto!important}
  html body #titleScreen .title-logo{font-size:58px!important;line-height:.92!important}
  html body #titleScreen .subtitle{font-size:17px!important;margin:6px 0!important}
  html body #titleScreen .v02-hero-band{min-height:0!important;height:auto!important;padding:10px 16px!important;display:flex!important;align-items:center!important;gap:10px!important}
  html body #titleScreen .v02-hero-copy{flex:1 1 auto!important;width:auto!important;min-width:0!important}
  html body #titleScreen .v02-hero-copy>span:not(.jl-world-note){font-size:14px!important}
  html body #titleScreen .jl-world-note{display:none!important}
  html body #titleScreen .v02-hero-creatures{position:relative!important;flex:0 0 170px!important;height:110px!important;width:170px!important;transform:scale(.72)!important;transform-origin:50% 60%!important;margin:-16px 0!important}
  html body #titleScreen .v02-grownups{margin-top:6px!important;min-height:0!important}
  html body #titleScreen .title-note{display:none!important}
}

/* ---------- 2. Learning Grove ---------- */
html body #learningGroveScreen .grove-destination{background-blend-mode:normal!important}
html body #learningGroveScreen .grove-destination strong, html body #learningGroveScreen .grove-destination b{font-size:clamp(20px,2vw,27px)!important}
html body #learningGroveScreen .grove-destination small, html body #learningGroveScreen .grove-destination span:not(.jv-art){font-size:15px!important;line-height:1.3!important}
html body #learningGroveScreen #v060GroveActions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
html body #learningGroveScreen #v060GroveActions>button, html body #learningGroveScreen .grove-bottom>button{width:100%!important;min-height:52px!important;font-size:15px!important;letter-spacing:.04em!important}
html body #learningGroveScreen #v060AdventureBtn, html body #learningGroveScreen #v060ShowdownBtn{
  border-radius:var(--p49-btn-radius)!important;box-shadow:0 4px 0 #cdbf96!important;background:#fffaf0!important;color:var(--p49-ink)!important;border:2px solid #e2d6b3!important}

/* ---------- 3. World menus (Story Tree, Discovery Wild, Word Garden, Bowling, Canopy) ---------- */
html body #v062WorldOverworldScreen .v063-destination, html body #v062WorldOverworldScreen .v064-story-dest{
  border-radius:var(--p49-radius)!important;background:#fffdf6!important;opacity:1!important;border:2px solid rgba(226,214,178,.95)!important;
  box-shadow:0 6px 0 rgba(201,184,135,.55),0 12px 24px rgba(48,62,38,.10)!important;gap:10px!important;padding:14px!important;
  transition:transform .15s ease, box-shadow .15s ease!important}
html body #v062WorldOverworldScreen .v063-destination:hover, html body #v062WorldOverworldScreen .v063-destination:focus-visible,
html body #v062WorldOverworldScreen .v064-story-dest:hover, html body #v062WorldOverworldScreen .v064-story-dest:focus-visible{transform:translateY(-3px)!important;background:#fffefa!important;border-color:var(--p49-gold)!important}
html body #v062WorldOverworldScreen .v064-story-dest{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  box-shadow:0 6px 0 rgba(201,184,135,.55),0 12px 24px rgba(48,62,38,.10)!important;border:2px solid rgba(226,214,178,.95)!important;gap:10px!important}
html body #v062WorldOverworldScreen .v064-story-dest .obj{width:clamp(84px,9vw,124px)!important;height:clamp(84px,9vw,124px)!important;flex:none!important;background:none!important}
html body #v062WorldOverworldScreen .v064-story-dest .obj .jv-art{width:100%!important;height:100%!important}
html body #v062WorldOverworldScreen .v063-destination:active, html body #v062WorldOverworldScreen .v064-story-dest:active{transform:translateY(2px)!important;box-shadow:0 2px 0 rgba(201,184,135,.6)!important}
html body #v062WorldOverworldScreen .v063-icon{width:clamp(84px,9vw,124px)!important;height:clamp(84px,9vw,124px)!important;flex:none!important}
html body #v062WorldOverworldScreen .v063-destination strong{font-size:clamp(19px,1.9vw,25px)!important;color:var(--p49-ink)!important;line-height:1.1!important}
html body #v062WorldOverworldScreen .v063-destination small{font-size:clamp(14px,1.25vw,16px)!important;color:var(--p49-ink-soft)!important;line-height:1.3!important;font-weight:750!important}
html body #v062WorldOverworldScreen .v064-story-dest strong, html body #v062WorldOverworldScreen .v064-story-dest b{font-size:clamp(19px,1.9vw,25px)!important;color:var(--p49-ink)!important}
html body #v062WorldOverworldScreen .v064-story-dest small, html body #v062WorldOverworldScreen .v064-story-dest span:not(.jv-art):not(.v063-icon){font-size:clamp(14px,1.25vw,16px)!important}
html body #v062WorldOverworldScreen .p49-level-dots{display:flex;gap:6px;justify-content:center;margin-top:2px}
html body #v062WorldOverworldScreen .p49-level-dots i{width:12px;height:12px;border-radius:50%;background:#e7dfc5;border:2px solid #cdbf96}
html body #v062WorldOverworldScreen .p49-level-dots i.on{background:var(--p49-gold);border-color:var(--p49-gold-deep)}
html body #v062WorldOverworldScreen .v062-guide-copy small{font-size:11px!important}
html body #v062WorldOverworldScreen .v062-guide-copy b{font-size:17px!important}
html body #v062WorldOverworldScreen .v062-guide-copy span{font-size:13px!important;line-height:1.25!important}
html body #v062WorldOverworldScreen #v062WorldProgressLabel{font-size:14px!important}
html body #v062WorldOverworldScreen #v062WorldProgressText{font-size:14px!important;font-weight:850!important}
html body #v062WorldOverworldScreen #v062WorldHint{font-size:14px!important;line-height:1.25!important}
html body #v062WorldOverworldScreen .v062-progress-meter{height:12px!important;border-radius:99px!important}
/* Earth & Weather menu card shows the accepted storm painting instead of a compass. */
html body .p49-art-photo{display:block;width:100%;height:100%;border-radius:18px;background-size:cover;background-position:center;box-shadow:inset 0 0 0 3px rgba(255,255,255,.7)}

/* ---------- 4. Jungle Numbers lesson ---------- */
html body .encounter-body .ghost-hand{font-size:0!important;width:46px!important;height:46px!important;border-radius:50%!important;
  background:radial-gradient(circle at 50% 50%,#fff 0 30%,rgba(255,255,255,0) 31%),radial-gradient(circle,#f3c552 0 60%,rgba(243,197,82,0) 61%)!important;
  box-shadow:0 0 0 6px rgba(243,197,82,.35)!important;pointer-events:none!important;opacity:.9!important;
  position:absolute!important;left:22%!important;top:42%!important;animation:p49Guide 2.4s ease-in-out infinite!important;z-index:3!important}
@keyframes p49Guide{0%{transform:translate(0,0) scale(1);opacity:0}12%{opacity:.95}70%{transform:translate(min(420px,38vw),0) scale(.9);opacity:.95}100%{transform:translate(min(420px,38vw),0) scale(.8);opacity:0}}
html body .encounter-body{position:relative!important}
html body #encounter .pips .pip{width:20px!important;height:20px!important;border-radius:5px!important}
html body #encounter .group-num{font-size:30px!important}
html body #encounter .block-legend{font-size:13px!important}
html body #encounter .strategy-strip{font-size:16px!important}
html body #encounter .feedback{font-size:18px!important}
html body #speech.p49-echo .speech-text, html body #speech.p49-echo p{display:none!important}
html body #speech.p49-echo{width:auto!important;min-width:0!important;padding-right:14px!important}
html body #speech .p49-echo-label{display:none}
html body #speech.p49-echo .p49-echo-label{display:inline-flex;align-items:center;font-weight:900;color:var(--p49-ink);font-size:16px;margin-right:6px}

/* ---------- 5. Story Tree reading lesson ---------- */
html body #storyTreeScreen .story-note, html body #wordGardenScreen .word-note{font-size:14px!important;line-height:1.3!important}
html body #storyTreeScreen .story-progress-row{align-items:center!important}
html body #storyTreeScreen #storyProgress, html body #storyTreeScreen #storySkillChip{font-size:13px!important}
html body #storyTreeScreen #storyStreak, html body #wordGardenScreen #wordStreak{font-size:12px!important;opacity:.85}
html body #storyTreeScreen #storyStage{display:flex!important;flex-direction:column!important;justify-content:center!important}
html body #storyTreeScreen .story-card{margin:auto 0!important;padding:26px 28px!important;border-radius:28px!important;box-shadow:var(--p49-shadow)!important}
html body #storyTreeScreen .story-kicker{font-size:13px!important}
html body #storyTreeScreen .story-prompt{font-size:clamp(26px,2.8vw,38px)!important;line-height:1.12!important}
html body #storyTreeScreen .story-subprompt{font-size:16px!important;line-height:1.35!important}
html body #storyTreeScreen .story-choice-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;gap:14px!important;margin-top:4px!important}
html body #storyTreeScreen .story-choice{min-height:84px!important;font-size:clamp(34px,3.6vw,48px)!important;font-weight:950!important;border-radius:20px!important;
  border:3px solid #e2cf9c!important;background:#fff8e6!important;color:var(--p49-ink)!important;box-shadow:0 5px 0 #dcc58d!important;opacity:1!important;
  transition:transform .12s ease, background .2s ease!important}
html body #storyTreeScreen .story-choice:not(:disabled):hover{transform:translateY(-2px)!important;background:#fffbef!important}
html body #storyTreeScreen .story-choice:not(:disabled):active{transform:translateY(3px)!important;box-shadow:0 2px 0 #dcc58d!important}
html body #storyTreeScreen .story-choice.correct{background:var(--p49-good-bg)!important;border-color:var(--p49-good)!important;color:#1f6a43!important;box-shadow:0 5px 0 #8cc79f!important;opacity:1!important;position:relative!important}
html body #storyTreeScreen .story-choice.correct::after{content:"✓";position:absolute;right:14px;top:8px;font-size:22px;color:var(--p49-good)}
html body #storyTreeScreen .story-choice.try{background:#f4efe3!important;border-color:#d8cdb5!important;color:#9a8f7a!important;box-shadow:none!important;opacity:.75!important;
  text-decoration:line-through;text-decoration-thickness:3px;animation:p49Shake .35s ease 1}
@keyframes p49Shake{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
html body #storyTreeScreen .story-choice .jv-art{max-height:96px!important}
html body #storyTreeScreen .story-choice>span:not(.jv-art):not([data-art-v2]), html body #storyTreeScreen .story-choice b, html body #storyTreeScreen .story-choice strong{font-size:inherit!important;line-height:1!important}
html body #storyTreeScreen #storyFeedback{border-radius:18px!important;padding:12px 16px!important}
html body #storyTreeScreen #storyFeedback strong{font-size:14px!important}
html body #storyTreeScreen #storyFeedback span{font-size:18px!important;line-height:1.3!important}
html body #storyTreeScreen #storyFeedback.good{background:var(--p49-good-bg)!important;border:2px solid #9fd2ad!important}
html body #storyTreeScreen #storyFeedback.learn{background:var(--p49-try-bg)!important;border:2px solid #efc995!important}
html body #storyTreeScreen #storyFeedback.p49-clue-hidden span{display:none!important}
html body #storyTreeScreen #storyFeedback .p49-clue-btn{display:none}
html body #storyTreeScreen #storyFeedback.p49-clue-hidden .p49-clue-btn{display:inline-flex;width:auto;justify-self:start;align-self:flex-start;align-items:center;gap:6px;margin-top:6px;min-height:42px;padding:0 16px;border-radius:999px;
  border:2px dashed #cdbf96;background:#fffdf5;color:var(--p49-ink);font:inherit;font-weight:900;font-size:15px;cursor:pointer}
html body #storyTreeScreen .story-actions{margin-top:2px!important}
html body #storyTreeScreen #storyNext:not(:disabled){animation:p49Ready 1.6s ease-in-out 2}
@keyframes p49Ready{0%,100%{translate:0 0}50%{translate:0 -3px}}
html body #storyTreeScreen .story-friend, html body #storyTreeScreen .story-page-meter{z-index:2!important}

/* ---------- 6. Word Garden lesson ---------- */
html body #wordGardenScreen .word-progress{font-size:13px!important}
html body #wordGardenScreen #wordProgress, html body #wordGardenScreen #wordLevelChip{font-size:13px!important}
html body #wordGardenScreen .word-stage{display:flex!important;flex-direction:column!important;justify-content:center!important;overflow:auto!important}
html body #wordGardenScreen .word-card{margin:auto 0!important;border-radius:28px!important;box-shadow:var(--p49-shadow)!important;height:auto!important;min-height:0!important}
html body #wordGardenScreen .word-target{font-size:clamp(26px,2.8vw,38px)!important}
html body #wordGardenScreen .word-slot{width:clamp(60px,6vw,76px)!important;height:clamp(68px,6.8vw,84px)!important;font-size:clamp(34px,3.4vw,44px)!important;border-radius:16px!important}
html body #wordGardenScreen .word-letter{min-width:clamp(56px,5.4vw,68px)!important;height:clamp(56px,5.4vw,68px)!important;font-size:clamp(30px,3vw,38px)!important;border-radius:16px!important}
html body #wordGardenScreen .word-letter-bank{gap:10px!important;flex-wrap:wrap!important;justify-content:center!important}
html body #wordGardenScreen .word-feedback strong{font-size:14px!important}
html body #wordGardenScreen .word-feedback span{font-size:18px!important}
html body #wordGardenScreen .word-actions{height:auto!important;min-height:0!important}
@media (max-height:760px){
  html body #wordGardenScreen .word-top h1, html body #storyTreeScreen .story-top h1{font-size:34px!important}
  html body #wordGardenScreen .word-card{padding:12px 16px!important;gap:6px!important}
  html body #wordGardenScreen .word-picture{min-height:76px!important;height:84px!important;width:96px!important}
  html body #wordGardenScreen .word-picture .jv-art{max-height:76px!important}
  html body #wordGardenScreen .word-slot{height:58px!important;width:54px!important;font-size:30px!important}
  html body #wordGardenScreen .word-letter{height:50px!important;min-width:50px!important;font-size:28px!important}
  html body #wordGardenScreen .word-feedback{padding:6px 10px!important;min-height:0!important}
  html body #wordGardenScreen .word-actions button{min-height:44px!important;height:44px!important}
  html body #storyTreeScreen .story-card{padding:16px 18px!important}
  html body #storyTreeScreen .story-picture{min-height:84px!important;height:96px!important}
  html body #storyTreeScreen .story-choice{min-height:64px!important}
}

/* ---------- 7. Collections (Grown Plants, Field Guide, Ball Rack, Story Shelf) ---------- */
html body #v063CollectionScreen{background:#1f4b3b url('assets/rebirth001/jungle-trail.png') center/cover!important}
html body #v063CollectionScreen .v063-shell{background:rgba(255,251,240,.96)!important;border-radius:28px!important;box-shadow:0 20px 60px rgba(0,0,0,.25)!important}
html body #v063CollectionScreen .v063-collection{height:auto!important;min-height:100%!important;align-content:start!important;gap:14px!important}
html body #v063CollectionScreen .v063-collection-intro{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:14px 18px!important}
html body #v063CollectionScreen .v063-collection-intro h2{display:none!important}
html body #v063CollectionScreen .v063-collection-intro p{font-size:17px!important;margin:0!important;color:var(--p49-ink)!important}
html body #v063CollectionScreen .p49-count{flex:none;font-weight:950;font-size:15px;color:var(--p49-ink);background:#fff;border-radius:999px;padding:6px 14px;border:2px solid #d6e6d2}
html body #v063CollectionScreen .v063-collection-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:16px!important;overflow:visible!important;align-content:start!important}
html body #v063CollectionScreen .p49-empty{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:6px;padding:18px 22px;border-radius:22px;background:#fff8e3;border:2px dashed #e0cf9e}
html body #v063CollectionScreen .p49-empty b{display:block;font-size:20px;color:var(--p49-ink)}
html body #v063CollectionScreen .p49-empty span{font-size:16px;color:var(--p49-ink-soft);font-weight:750}
html body #v063CollectionScreen .p49-empty button{flex:none;min-height:54px;padding:0 22px;border-radius:16px;border:0;background:var(--p49-green);color:#fff;font:inherit;font-weight:950;font-size:17px;box-shadow:0 4px 0 #1d5a3e;cursor:pointer}
html body #v063CollectionScreen .v063-collection-card{min-height:250px!important;gap:6px!important;padding:16px 12px!important;border-radius:22px!important;border:2px solid #dfe9d9!important;box-shadow:0 5px 0 #dce6d4!important;align-content:center!important}
html body #v063CollectionScreen .v063-collection-card .big{width:128px!important;height:128px!important;display:grid!important;place-items:center!important}
html body #v063CollectionScreen .v063-collection-card .big .jv-art{width:120px!important;height:120px!important;max-width:120px!important}
html body #v063CollectionScreen .v063-collection-card b{font-size:20px!important}
html body #v063CollectionScreen .v063-collection-card>span{font-size:13px!important;border-radius:999px!important;padding:4px 12px!important}
html body #v063CollectionScreen .v063-collection-card .jv-collection-detail{font-size:14px!important;line-height:1.35!important;color:var(--p49-ink-soft)!important;margin:4px 0 0!important}
html body #v063CollectionScreen .v063-collection-card.p49-earned{border-color:#a9d6b2!important;box-shadow:0 5px 0 #a9d6b2!important;background:#fbfff8!important}
html body #v063CollectionScreen .v063-collection-card.p49-earned>span{background:var(--p49-good-bg)!important;color:#1f6a43!important}
html body #v063CollectionScreen .v063-collection-card.p49-locked{background:#f6f3e9!important;border-style:dashed!important;border-color:#d6cdb3!important;box-shadow:none!important}
html body #v063CollectionScreen .v063-collection-card.p49-locked .big{position:relative!important}
html body #v063CollectionScreen .v063-collection-card.p49-locked .big .jv-art,html body #v063CollectionScreen .v063-collection-card.p49-locked .big svg{filter:brightness(0) saturate(0)!important;opacity:.16!important}
html body #v063CollectionScreen .v063-collection-card.p49-locked .big::after{content:"?";position:absolute;inset:0;display:grid;place-items:center;font-size:54px;font-weight:950;color:#b7aa86}
html body #v063CollectionScreen .v063-collection-card.p49-locked b{color:#8b8170!important}
html body #v063CollectionScreen .v063-collection-card.p49-locked>span{background:#ece5d2!important;color:#7a6f5b!important}

/* ---------- 8. Wild Earth investigation ---------- */
html body #v062WildEarthScreen .v062-place-choice, html body #v062WildEarthScreen .v062-investigate-grid>button{padding:12px!important;gap:8px!important}
html body #v062WildEarthScreen .v062-actions button, html body #v062WildEarthScreen [id^="v062"].alt{font-size:15px!important}
html body #v062WildEarthScreen .v062-habitat-pick{justify-content:center!important;gap:10px!important}
html body #v062WildEarthScreen .v062-habitat-pick .cp7-habitat-picture{width:92%!important;height:auto!important;aspect-ratio:16/10!important;max-height:72%!important}
html body #v062WildEarthScreen .v062-habitat-pick .cp7-habitat-picture .jv-habitat{width:100%!important;height:100%!important}
html body #v062WildEarthScreen .v062-habitat-pick b{font-size:20px!important}
html body #v062WildEarthScreen .v062-habitat-pick small{font-size:13px!important}
html body #v062WildEarthScreen #v062WildFeedback{font-size:17px!important;font-weight:900!important;color:#8a4f22!important;min-height:22px!important}
html body #v062WildEarthScreen .p49-wrong{outline:4px solid #efc995!important;opacity:.62!important;filter:saturate(.6)!important}
html body #v062WildEarthScreen .v062-episode-head p, html body #v062WildEarthScreen .v062-guide-line{font-size:16px!important}

/* ---------- 9. Earth & Weather ---------- */
html body #discoveryWildScreen .science-top{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important}
html body #discoveryWildScreen #scienceTopicGrid button{min-width:0!important}
html body #discoveryWildScreen #scienceTopicGrid button b, html body #discoveryWildScreen #scienceTopicGrid button strong, html body #discoveryWildScreen #scienceTopicGrid button span{overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none!important}
html body #discoveryWildScreen #scienceTopicGrid strong{overflow-wrap:normal!important;word-break:keep-all!important;white-space:nowrap!important;font-size:12px!important}
@media (max-width:900px){
  html body #discoveryWildScreen #scienceTopicGrid{grid-auto-rows:auto!important;height:auto!important;max-height:none!important}
  html body #discoveryWildScreen #scienceTopicGrid .science-topic{min-height:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;height:auto!important;padding:5px!important}
  html body #discoveryWildScreen #scienceTopicGrid .science-topic .ico{width:100%!important;height:38px!important}
  html body #discoveryWildScreen #scienceTopicGrid .science-topic .ico img{width:100%!important;height:38px!important;object-fit:cover!important;border-radius:8px!important}
  html body #discoveryWildScreen #scienceTopicGrid .science-topic>span:not(.ico){width:auto!important;padding:0!important;text-align:center!important}
  html body #v062WorldOverworldScreen .v062-world-heading h1, html body #v062WorldOverworldScreen #v062WorldTitle{font-size:34px!important;line-height:1!important}
  html body #v062WorldOverworldScreen #v062WorldGuide{max-width:300px!important}
  html body #v062WorldOverworldScreen #v062WorldEyebrow{white-space:nowrap!important}
  html body #v063CollectionScreen .v063-collection-card{min-height:190px!important;padding:10px!important}
  html body #v063CollectionScreen .v063-collection-card .big{width:92px!important;height:92px!important}
  html body #v063CollectionScreen .v063-collection-card .big .jv-art{width:88px!important;height:88px!important}
  html body #v063CollectionScreen .v063-collection-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:10px!important}
}
html body #discoveryWildScreen #scienceObserveNext{position:sticky!important;bottom:8px!important;z-index:5!important;box-shadow:0 -10px 18px rgba(255,250,240,.95),0 6px 14px rgba(20,50,40,.25)!important}
@media (max-height:760px){html body #discoveryWildScreen .science-scene{height:150px!important;min-height:150px!important}}
html body #discoveryWildScreen .science-card .p49-step{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--p49-ink);color:#fff;font-size:14px;font-weight:950;margin-right:8px;flex:none}

html body .science-choice, html body .space-choice{min-height:64px!important;font-size:clamp(17px,1.6vw,21px)!important;font-weight:950!important;border-radius:18px!important;border:3px solid #e2d6b3!important;box-shadow:0 4px 0 #ddd0a9!important;opacity:1!important}
html body .science-choice:disabled, html body .space-choice:disabled{opacity:.55!important}
html body .science-choice.correct, html body .space-choice.correct{opacity:1!important;background:var(--p49-good-bg)!important;border-color:var(--p49-good)!important;color:#1f6a43!important;box-shadow:0 4px 0 #8cc79f!important}
html body .science-choice.correct::after, html body .space-choice.correct::after{content:" ✓"}
html body .science-choice.wrong, html body .science-choice.try, html body .space-choice.wrong, html body .space-choice.try{opacity:.6!important;text-decoration:line-through;animation:p49Shake .35s ease 1}

/* ---------- 10. Cosmic Canopy and planets ---------- */
html body #v062WorldOverworldScreen .v0643-planet-btn{min-height:54px!important;font-size:12px!important;font-weight:900!important;border-radius:14px!important}
html body #v062WorldOverworldScreen .v0643-lab-btn{min-height:54px!important;font-size:14px!important;font-weight:900!important;border-radius:14px!important}
html body #v063PlanetScreen{background:radial-gradient(circle at 30% 10%,#23365e 0,#0d1730 55%,#060b18 100%)!important}
html body #v063PlanetScreen .v063-shell{background:rgba(250,248,240,.97)!important;border-radius:28px!important}
html body #v063PlanetScreen .v063-planet-layout{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr)!important;align-items:start!important;align-content:start!important;height:auto!important;padding-top:clamp(0px,3vh,28px)!important}
html body #v063PlanetScreen .v063-planet-copy{height:auto!important;display:flex!important;flex-direction:column!important;gap:14px!important;padding:22px!important}
html body #v063PlanetScreen .v063-planet-copy>div:last-child{margin-top:4px!important}
html body #v063PlanetScreen .v063-fact-grid{min-height:0!important}
html body #v063PlanetScreen .v063-planet-scene{width:100%!important;height:auto!important;aspect-ratio:1/1!important;max-height:calc(100dvh - 130px)!important;margin:0 auto!important}
@media (orientation:portrait){html body #v063PlanetScreen .v063-planet-layout{grid-template-columns:1fr!important;justify-items:center!important}html body #v063PlanetScreen .v063-planet-scene{width:min(100%,46dvh)!important}html body #v063PlanetScreen .v063-planet-copy{width:100%!important}}
html body #v063PlanetScreen .v063-fact b{font-size:15px!important}
html body #v063PlanetScreen .v063-fact span{font-size:15px!important;line-height:1.3!important;color:#4c625a!important}
html body #v063PlanetScreen .v063-planet-reveal{font-size:16px!important;line-height:1.35!important;padding:12px 14px!important;min-height:4.4em!important;display:flex!important;align-items:center!important}
html body #v063PlanetScreen .v063-planet-actions button{min-height:56px!important;font-size:17px!important;padding:12px 20px!important}
html body #v063PlanetScreen #v063PlanetAction{flex:1 1 auto!important}

/* ---------- 11. Math Bowling ---------- */
html body #mathBowlingScreen .bowling-shell.v053-arcade{display:flex!important;flex-direction:column!important}
html body #mathBowlingScreen .bowling-shell.v053-arcade .bowling-layout{flex:1 1 auto!important;height:auto!important;min-height:0!important}
html body #mathBowlingScreen .bowling-shell.v053-arcade .bowling-lane-panel{height:100%!important}
html body #mathBowlingScreen .bowling-shell.v053-arcade .bowling-lane-panel{flex:1 1 auto!important;display:flex!important;flex-direction:column!important}
/* Keep the lane the same size when the Easy panel or lesson dock hides at the moment of a throw. */
html body #mathBowlingScreen .bowling-shell.v053-arcade:not(.v053-question-mode) #bowlingLane{flex:0 0 auto!important;min-height:0!important;height:clamp(240px,calc(100dvh - 390px),560px)!important}
html body #mathBowlingScreen .bowling-shell.v053-arcade:not(.v053-question-mode) .bowling-layout{flex:0 0 auto!important}
html body #mathBowlingScreen .bowling-shell.v053-arcade.v053-question-mode #v062BowlingModeBar{display:none!important}
html body #mathBowlingScreen .bowling-shell.v053-arcade #bowlingBall.rolling~#v052BallShadow, html body #mathBowlingScreen .bowling-shell.v053-arcade #bowlingBall.rolling~#v053BallGround{opacity:0!important;transition:opacity .15s!important}
html body #mathBowlingScreen .bowling-shell.v053-arcade #bowlingLane{flex:1 1 auto!important;min-height:240px!important;height:auto!important;container-type:size!important;
  background:#5d543a url('assets/rebirth002/bowling.png') 50% var(--p49-lane-y,38%)/cover no-repeat!important}
html body #mathBowlingScreen #bowlingRollHelp{display:none!important}
html body #mathBowlingScreen #v062EasyPanel small{font-size:14px!important}
html body #mathBowlingScreen #v062EasyPanel strong{font-size:15px!important}
html body #mathBowlingScreen #v062EasyThrow{min-height:56px!important;font-size:21px!important}
html body #mathBowlingScreen #v062BowlingModeBar button{font-size:13px!important;min-width:76px!important}
html body #mathBowlingScreen #v053LaneHud span{font-size:12px!important}
html body #mathBowlingScreen #v053Callout{font-size:14px!important}
html body #mathBowlingScreen .v062-hard-step b, html body #mathBowlingScreen .v062-hard-step strong, html body #mathBowlingScreen .v062-hard-step small{font-size:13px!important}
html body #mathBowlingScreen .v062-hard-lock{min-height:50px!important;font-size:16px!important;font-weight:950!important}
html body #mathBowlingScreen .v062-hard-readout{font-size:13px!important}
/* Deck geometry is computed from the lane painting by polish049.js (--p49-deck-*). */
html body #mathBowlingScreen .bowling-shell.v053-arcade #bowlingPins.p49-deck{
  /* Pure CSS so the deck moves in the same layout pass as the lane (the ball path is computed from it). */
  left:calc(50cqw + .005 * max(100cqw, 150cqh))!important;top:calc(38cqh + .018 * max(66.667cqw, 100cqh) - 151px)!important;bottom:auto!important;width:202px!important;height:151px!important;
  transform:translateX(-50%) scale(var(--p49-deck-scale,.7))!important;transform-origin:50% 100%!important}
html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="7"], html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="8"],
html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="9"], html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="10"]{top:var(--p49-row4,48px)!important;scale:.82;transform-origin:50% 100%}
html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="4"], html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="5"],
html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="6"]{top:var(--p49-row3,64px)!important;scale:.88;transform-origin:50% 100%}
html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="2"], html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="3"]{top:var(--p49-row2,80px)!important;scale:.94;transform-origin:50% 100%}
html body #mathBowlingScreen #bowlingPins.p49-deck .pin[data-pin="1"]{top:var(--p49-row1,96px)!important;transform-origin:50% 100%}
html body #mathBowlingScreen #bowlingPins.p49-deck::after{content:"";position:absolute;left:-14%;right:-14%;bottom:-6px;height:26px;border-radius:50%;
  background:radial-gradient(ellipse at 50% 50%,rgba(60,35,10,.30),rgba(60,35,10,0) 70%);z-index:-1;pointer-events:none}

html body #mathBowlingScreen .bowling-choice{min-height:64px!important;font-size:32px!important;font-weight:950!important;border-radius:18px!important;border:3px solid #e2cf9c!important;box-shadow:0 4px 0 #dcc58d!important}
html body #mathBowlingScreen .bowling-choice.correct{background:var(--p49-good-bg)!important;border-color:var(--p49-good)!important;color:#1f6a43!important}
html body #mathBowlingScreen .bowling-choice.wrong, html body #mathBowlingScreen .bowling-choice.try{background:#f4efe3!important;color:#9a8f7a!important;opacity:.75!important;animation:p49Shake .35s ease 1}

/* ---------- 12. Jungle Showdown ---------- */
html body #v062ShowdownScreen .v062-rivals{align-items:stretch!important}
html body #v062ShowdownScreen .v062-rival{display:grid!important;grid-template-rows:auto auto 1fr auto!important;justify-items:center!important;align-items:start!important}
html body #v062ShowdownScreen .v062-rival .face{height:240px!important;width:217px!important;display:grid!important;place-items:end center!important;margin:0 auto!important}
html body #v062ShowdownScreen .v062-rival strong{font-size:32px!important}
html body #v062ShowdownScreen .v062-rival span{font-size:16px!important;line-height:1.3!important}
html body #v062ShowdownScreen .v062-rival button{align-self:end!important;min-height:56px!important;font-size:17px!important}
html body #v062ShowdownScreen .v062-sd-top small, html body #v062ShowdownScreen .v062-round-title p{font-size:14px!important}
html body #v062ShowdownScreen #v062SdTask p{font-size:17px!important;line-height:1.3!important}
html body #v062ShowdownScreen #v062SdFeedback{font-size:16px!important}
html body #v062ShowdownScreen .v062-task-bank button{min-width:96px!important;min-height:90px!important;font-size:15px!important}
html body #v062ShowdownScreen .v062-sd-score .vs{font-size:12px!important}
html body #v062ShowdownScreen .p49-log-row{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
html body #v062ShowdownScreen .p49-log-row i{width:40px;height:22px;border-radius:7px;border:2px dashed #cdbf96;background:#fbf6e6}
html body #v062ShowdownScreen .p49-log-row i.on{border:2px solid #7b5530;background:linear-gradient(180deg,#b98552,#8a5b31);box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
html body #v062ShowdownScreen .p49-log-row i.new{animation:p49Pop .35s ease 1}
@keyframes p49Pop{0%{transform:scale(.4)}70%{transform:scale(1.12)}100%{transform:none}}

html body .p49-icon-slot{display:grid!important;place-items:center!important;font-size:0!important}
html body .p49-icon-slot .jv-art{width:56px!important;height:56px!important}
html body #v062ShowdownScreen .v062-sd-score .who{font-size:26px!important;line-height:1!important;letter-spacing:.2em!important;color:#c9b98c!important}
html body #v062ShowdownScreen .v062-sd-score .who b{letter-spacing:0!important;color:var(--p49-ink)!important}
html body #v062ShowdownScreen .v062-sd-score .who .jv-art{width:30px!important;height:30px!important;display:inline-block!important;vertical-align:middle!important}
html body #v062ShowdownScreen .v062-lane{background:rgba(255,252,240,.84)!important;border:2px solid rgba(214,200,160,.9)!important}
html body #v062ShowdownScreen .v062-track{height:10px!important;border-radius:99px!important;background:linear-gradient(90deg,#9b7b4f,#c8a670)!important}
html body #v062ShowdownScreen .v062-pad{width:44px!important;height:24px!important;border-radius:50%!important;background:#d9ccad!important;border:2px solid #b49f72!important}
html body #v062ShowdownScreen .v062-sd-result{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:14px!important;height:100%!important;
  background:radial-gradient(circle at 50% 28%,#fff6d5 0,#fffaf0 55%)!important;border-radius:24px!important}
html body #v062ShowdownScreen .v062-sd-result .big .jv-art{width:200px!important;height:220px!important}
html body #v062ShowdownScreen .v062-sd-result h2{font-size:clamp(30px,3.6vw,46px)!important;margin:0!important}
html body #v062ShowdownScreen .v062-sd-result p{font-size:18px!important;margin:0!important}
html body #v062ShowdownScreen .v062-sd-actions button{min-height:58px!important;min-width:180px!important;font-size:18px!important;border-radius:16px!important}

/* ---------- 13. Jungle Adventures ---------- */
html body #v062AdventureScreen .v062-adv-hub{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:14px!important;overflow:auto!important;align-content:center!important}
html body #v062AdventureScreen .v062-adv-card{min-width:0!important;height:auto!important;min-height:0!important;padding:22px 18px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:10px!important}
html body #v062AdventureScreen .v062-adv-card .hero{width:clamp(120px,14vw,190px)!important;height:clamp(120px,14vw,190px)!important}
html body #v062AdventureScreen .v062-adv-card p{font-size:16px!important;line-height:1.35!important}
html body #v062AdventureScreen .v062-adv-mini-route{font-size:clamp(14px,1.4vw,19px)!important;font-weight:900!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px!important}
html body #v062AdventureScreen .v062-adv-card .go{min-height:54px!important;font-size:17px!important;width:100%!important}
html body #v062AdventureScreen .v062-adv-guide b{font-size:13px!important}
html body #v062AdventureScreen .v062-adv-guide span{font-size:13px!important;line-height:1.25!important}

/* ---------- 14. Journal and grown-up gate ---------- */
html body #journalModal .v060-chip{font-size:13px!important}
html body #journalModal .journal-card.locked{opacity:.85!important}

/* ---------- Portrait tablets ---------- */
@media (orientation:portrait) and (max-width:900px){
  html body #v062WorldOverworldScreen .v063-destination{min-height:0!important}
  html body #v062AdventureScreen .v062-adv-hub{grid-template-columns:1fr!important;align-content:start!important}
  html body #v062AdventureScreen .v062-adv-card{display:grid!important;grid-template-columns:150px 1fr!important;grid-template-areas:"hero title" "hero copy" "hero route" "go go"!important;
    text-align:left!important;align-items:center!important;column-gap:18px!important;row-gap:6px!important}
  html body #v062AdventureScreen .v062-adv-card .hero{grid-area:hero!important;width:150px!important;height:150px!important}
  html body #v062AdventureScreen .v062-adv-card h2{grid-area:title!important;margin:0!important;text-align:left!important}
  html body #v062AdventureScreen .v062-adv-card p{grid-area:copy!important;margin:0!important;text-align:left!important}
  html body #v062AdventureScreen .v062-adv-mini-route{grid-area:route!important;justify-content:flex-start!important}
  html body #v062AdventureScreen .v062-adv-card .go{grid-area:go!important}
  html body #v062WorldOverworldScreen .v064-story-world{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body #v062WorldOverworldScreen .v064-story-dest{min-height:0!important}
}
@media (prefers-reduced-motion:reduce){
  html body .encounter-body .ghost-hand{animation:none!important;opacity:.8!important}
  html body #storyTreeScreen .story-choice.try{animation:none}
}

/* Counted pictures (three pins = three pictures) */
html body .p49-counted{display:flex;align-items:flex-end;justify-content:center;gap:4px;width:100%;height:100%}
html body .p49-counted>span{display:block;flex:0 1 auto;max-width:34%;height:86%}
html body .p49-counted .p49-pin-img{height:100%;width:auto;display:block;filter:drop-shadow(0 3px 2px rgba(40,30,20,.25))}
html body .p49-counted .jv-art{width:100%!important;height:100%!important}
html body .p49-trio{display:flex;gap:6px;justify-content:center;align-items:center;height:100%}
html body .p49-trio .jv-art{width:72px!important;height:72px!important}

/* =====================================================================
   FIRST-IMPRESSION FINISH: one colour per world, used the same way on
   the Grove tiles, the world menus and their buttons.
   ===================================================================== */
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination, html body #v062WorldOverworldScreen{--a1:#5dbb76;--a2:#2f8e55;--sh:#1f6a3d;--tint:#e4f4e6}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination.math{--a1:#f7a64b;--a2:#e4762a;--sh:#b4551b;--tint:#fdebd6}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination.story, html body #v062WorldOverworldScreen[data-world="story"]{--a1:#a07ad8;--a2:#7550b8;--sh:#553592;--tint:#efe7fa}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination.discovery, html body #v062WorldOverworldScreen[data-world="wild"]{--a1:#5dbb76;--a2:#2f8e55;--sh:#1f6a3d;--tint:#e4f4e6}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination.words, html body #v062WorldOverworldScreen[data-world="words"]{--a1:#f08aa6;--a2:#d1577b;--sh:#a33c5b;--tint:#fde7ee}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination.cosmic, html body #v062WorldOverworldScreen[data-world="space"]{--a1:#5470c4;--a2:#2a3c82;--sh:#1a275c;--tint:#e3e9fb}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination.bowling, html body #v062WorldOverworldScreen[data-world="bowling"]{--a1:#3dbab3;--a2:#1f8580;--sh:#145f5b;--tint:#dff4f2}

html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination{
  background:radial-gradient(circle at 50% 26%,rgba(255,255,255,.38),rgba(255,255,255,0) 52%),linear-gradient(165deg,var(--a1),var(--a2))!important;
  border:3px solid rgba(255,255,255,.8)!important;border-radius:30px!important;box-shadow:0 7px 0 var(--sh),0 18px 30px rgba(40,30,10,.22)!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:12px!important;
  padding:16px 14px!important;color:#fff!important;transition:transform .15s ease,box-shadow .15s ease!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination:hover, html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination:focus-visible{transform:translateY(-4px)!important;box-shadow:0 11px 0 var(--sh),0 24px 34px rgba(40,30,10,.26)!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination:active{transform:translateY(4px)!important;box-shadow:0 3px 0 var(--sh),0 8px 16px rgba(40,30,10,.2)!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination::before, html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination::after{display:none!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination .grove-icon{width:clamp(92px,9.5vw,138px)!important;height:clamp(92px,9.5vw,138px)!important;flex:none!important;border-radius:50%!important;
  background:radial-gradient(circle at 50% 40%,#fff 0 58%,#fff7e4 100%)!important;box-shadow:inset 0 -6px 0 rgba(0,0,0,.06),0 6px 14px rgba(0,0,0,.18)!important;display:grid!important;place-items:center!important;margin:0!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination .grove-icon .jv-art{width:78%!important;height:78%!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination>span:last-child{display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;width:auto!important;text-align:center!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination strong{color:#fff!important;font-size:clamp(21px,2.2vw,30px)!important;letter-spacing:.01em!important;text-shadow:0 2px 0 rgba(0,0,0,.2)!important;line-height:1.05!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination small{color:#fff!important;opacity:.96!important;font-size:clamp(14px,1.2vw,16px)!important;line-height:1.3!important;max-width:27ch!important;font-weight:750!important}
html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination>span:last-child::after{content:"PLAY  →";display:inline-flex;margin-top:4px;padding:7px 18px;border-radius:999px;background:rgba(255,255,255,.95);color:var(--sh);font-weight:950;font-size:14px;letter-spacing:.06em;box-shadow:0 3px 0 rgba(0,0,0,.12)}
@media (max-height:760px){
  html body #learningGroveScreen#learningGroveScreen .grove-destination .grove-icon{width:74px!important;height:74px!important}
  html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination{gap:6px!important;padding:10px!important}
  html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination small{display:none!important}
  html body #learningGroveScreen#learningGroveScreen .grove-destination.grove-destination>span:last-child::after{padding:5px 14px;font-size:12px}
}

/* World menus pick up their world colour. */
html body #v062WorldOverworldScreen .v063-icon, html body #v062WorldOverworldScreen .v064-story-dest .obj{border-radius:50%!important;background:radial-gradient(circle at 50% 42%,#fff 0 50%,var(--tint) 100%)!important;
  box-shadow:inset 0 0 0 4px var(--tint),0 4px 10px rgba(0,0,0,.08)!important;padding:8px!important;box-sizing:border-box!important}
html body #v062WorldOverworldScreen .v063-destination, html body #v062WorldOverworldScreen .v064-story-dest{border-top:8px solid var(--a1)!important}
html body #v062WorldOverworldScreen .v063-destination:hover, html body #v062WorldOverworldScreen .v064-story-dest:hover{border-color:var(--a1)!important}
html body #v062WorldOverworldScreen .v063-destination strong, html body #v062WorldOverworldScreen .v064-story-dest b{color:var(--sh)!important}
html body #v062WorldOverworldScreen .v062-progress-meter i, html body #v062WorldOverworldScreen #v062WorldProgressFill{background:linear-gradient(90deg,var(--a1),var(--a2))!important}
html body #v062WorldOverworldScreen h1#v062WorldTitle{color:var(--sh)!important}
html body #v062WorldOverworldScreen[data-world="space"] h1#v062WorldTitle{color:#fff!important}

/* Camp: a preview strip of the six worlds replaces the run-on list of names. */
html body #titleScreen .p49-world-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
html body #titleScreen .p49-world-strip span{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 4px;border-radius:999px;background:#fff;border:2px solid var(--c);color:#24493c;font-weight:900;font-size:13px;letter-spacing:.03em;box-shadow:0 2px 0 var(--c)}
html body #titleScreen .p49-world-strip i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--c)}
html body #titleScreen .p49-world-strip i .jv-art{width:28px!important;height:28px!important}
html body #titleScreen .v02-hero-copy .jl-world-note{display:none!important}
html body #titleScreen #startBtn{font-size:clamp(22px,2.4vw,30px)!important;letter-spacing:.04em!important}
html body #titleScreen #startBtn::after{content:"  →"}
@media (max-height:760px){html body #titleScreen .p49-world-strip span{font-size:0;padding:3px;gap:0}html body #titleScreen .p49-world-strip i{width:30px;height:30px}}

/* Jungle Numbers menu: same frame and card system as the other world menus, in its orange. */
html body #jungleWorldScreen{--a1:#f7a64b;--a2:#e4762a;--sh:#b4551b;--tint:#fdebd6}
html body #jungleWorldScreen .world-map-shell{width:min(1180px,96vw)!important;max-width:none!important;height:min(888px,98dvh)!important;max-height:none!important;
  top:auto!important;left:auto!important;margin:auto!important;display:flex!important;flex-direction:column!important;border-radius:28px!important;background:rgba(255,251,240,.96)!important}
html body #jungleWorldScreen .world-map-top h1{color:var(--sh)!important}
html body #jungleWorldScreen #worldMap{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:1fr!important;gap:14px!important;padding:14px!important;border-radius:22px!important}
html body #jungleWorldScreen #worldMap .world-spot{background:#fffdf6!important;border:2px solid rgba(226,214,178,.95)!important;border-top:8px solid var(--a1)!important;border-radius:22px!important;
  box-shadow:0 6px 0 rgba(201,184,135,.55),0 12px 24px rgba(48,62,38,.10)!important;min-height:0!important;transition:transform .15s ease!important}
html body #jungleWorldScreen #worldMap .world-spot:hover{transform:translateY(-3px)!important;border-color:var(--a1)!important}
html body #jungleWorldScreen #worldMap .spot-icon{flex:0 0 clamp(84px,9vw,118px)!important;width:clamp(84px,9vw,118px)!important;height:clamp(84px,9vw,118px)!important;border-radius:50%!important;
  background:radial-gradient(circle at 50% 42%,#fff 0 50%,var(--tint) 100%)!important;box-shadow:inset 0 0 0 4px var(--tint)!important;padding:8px!important;box-sizing:border-box!important}
html body #jungleWorldScreen #worldMap .spot-icon .jv-art{width:100%!important;height:100%!important}
html body #jungleWorldScreen #worldMap .world-spot strong{font-size:clamp(17px,1.7vw,22px)!important;color:var(--sh)!important}
html body #jungleWorldScreen #worldMap .world-spot small{font-size:clamp(13px,1.2vw,15px)!important;line-height:1.3!important;color:var(--p49-ink-soft)!important}
html body #jungleWorldScreen #worldMap .area-state{font-size:12px!important;font-style:normal!important;padding:3px 10px!important;border-radius:999px!important}
html body #jungleWorldScreen .world-bottom button{min-height:50px!important;font-size:14px!important}
html body #jungleWorldScreen .world-map-note{font-size:14px!important}
@media (orientation:portrait) and (max-width:900px){html body #jungleWorldScreen #worldMap{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
html body #jungleWorldScreen #worldMap{grid-template-rows:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
html body #jungleWorldScreen #worldMap .world-spot{height:auto!important;overflow:hidden!important}
@media (orientation:portrait) and (max-width:900px){html body #jungleWorldScreen #worldMap{grid-template-rows:repeat(3,minmax(0,1fr))!important}}
@media (max-height:760px){
  html body #jungleWorldScreen #worldMap .spot-icon{flex-basis:68px!important;width:68px!important;height:68px!important;padding:5px!important}
  html body #jungleWorldScreen #worldMap .world-spot{gap:4px!important;padding:8px!important}
  html body #jungleWorldScreen #worldMap .world-spot small{display:none!important}
  html body #jungleWorldScreen #worldMap .world-spot strong{font-size:16px!important}
}

/* =====================================================================
   LIVING SCENES (polish049fx.js): one animated layer per weather scene,
   replacing the flat diagram cards that covered the paintings.
   ===================================================================== */
html body #discoveryWildScreen #scienceScene.cp10-scene{height:clamp(230px,40dvh,400px)!important;min-height:230px!important;position:relative!important;overflow:hidden!important;border-radius:22px!important}
html body #discoveryWildScreen #scienceScene .cp10-scene-photo{object-fit:cover!important;transition:none!important;animation:none!important}
html body #discoveryWildScreen #scienceScene .p49-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}
html body #discoveryWildScreen #scienceScene .cp10-overlay, html body #discoveryWildScreen #scienceScene canvas.jv-hazard,
html body #discoveryWildScreen #scienceScene canvas.rebirth-tornado, html body #discoveryWildScreen #scienceScene .science-effect{display:none!important}
html body #discoveryWildScreen .science-demo-btn{min-height:56px!important;font-size:15px!important;font-weight:950!important;border-radius:16px!important;border:3px solid #d9ceb0!important;box-shadow:0 4px 0 #d9ceb0!important;transition:transform .12s ease!important}
html body #discoveryWildScreen .science-demo-btn:active{transform:translateY(3px)!important;box-shadow:0 1px 0 #d9ceb0!important}
html body #discoveryWildScreen .science-demo-btn.active, html body #discoveryWildScreen .science-demo-btn[aria-pressed="true"]{background:#e3f5e4!important;border-color:#2f8f5b!important}
@media (max-height:760px){html body #discoveryWildScreen #scienceScene.cp10-scene{height:200px!important;min-height:200px!important}}

/* Bowling game feel */
html body #mathBowlingScreen #bowlingLane .p49-bowl-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:30}
html body #mathBowlingScreen #bowlingLane.p49-thud{animation:p49Thud .42s cubic-bezier(.3,.7,.3,1) 1}
@keyframes p49Thud{0%{translate:0 0}15%{translate:-5px 3px}35%{translate:5px -2px}55%{translate:-3px 1px}75%{translate:2px 0}100%{translate:0 0}}
html body #mathBowlingScreen #bowlingBall.ready .jv-ball-surface{animation:p49Bob 1.6s ease-in-out infinite}
@keyframes p49Bob{0%,100%{translate:0 0}50%{translate:0 -6px}}
html body #mathBowlingScreen #v053Event.p49-pop{animation:p49EventPop 1.3s cubic-bezier(.2,1.3,.3,1) 1!important;background:none!important;color:#fff8d8!important;-webkit-text-stroke:3px #a8501a!important;paint-order:stroke fill!important;
  text-shadow:0 5px 0 #7a3810,0 12px 24px rgba(0,0,0,.45)!important;font-weight:950!important;letter-spacing:.02em!important}
@keyframes p49EventPop{0%{transform:translate(-50%,-50%) scale(.2) rotate(-12deg);opacity:0}35%{transform:translate(-50%,-50%) scale(1.18) rotate(3deg);opacity:1}55%{transform:translate(-50%,-50%) scale(.96) rotate(-1deg)}75%{transform:translate(-50%,-50%) scale(1.04)}100%{transform:translate(-50%,-50%) scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){html body #mathBowlingScreen #bowlingBall.ready .jv-ball-surface,html body #mathBowlingScreen #bowlingLane.p49-thud,html body #mathBowlingScreen #v053Event.p49-pop{animation:none!important}}
html body #discoveryWildScreen #scienceScene.volcano .cp10-scene-photo{object-position:center 10%!important}
html body #discoveryWildScreen #scienceScene.tornado .cp10-scene-photo{object-position:center 42%!important}
html body #discoveryWildScreen #scienceScene.earthquake .cp10-scene-photo{object-position:center 62%!important}
html body #discoveryWildScreen #scienceScene.blizzard .cp10-scene-photo{object-position:center 40%!important}
html body #discoveryWildScreen #scienceScene.tsunami .cp10-scene-photo{object-position:center 38%!important}
html body #discoveryWildScreen #scienceScene.landslide .cp10-scene-photo{object-position:center 35%!important}
html body #discoveryWildScreen #scienceScene.flood .cp10-scene-photo{object-position:center 55%!important}
html body #discoveryWildScreen #scienceScene.hurricane .cp10-scene-photo{object-position:center 36%!important}
html body #mathBowlingScreen.v062-easy-active .bowling-shell.v053-arcade.v053-throwing:not(.v053-question-mode)::after{content:"WATCH THE PINS…";position:absolute;left:50%;bottom:42px;transform:translateX(-50%);
  padding:14px 28px;border-radius:999px;background:#1f3d36;color:#fff6d8;font-weight:950;font-size:20px;letter-spacing:.08em;box-shadow:0 5px 0 #0f2420;animation:p49Ready 1.2s ease-in-out infinite}
html body #mathBowlingScreen .bowling-shell.v053-arcade{position:relative!important}
/* Earth & Weather on short screens: one swipeable row of topics, then the scene and its three buttons together. */
html body #discoveryWildScreen .science-demo-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
@media (max-height:760px){
  html body #discoveryWildScreen .science-map-title{display:none!important}
  html body #discoveryWildScreen .science-layout{grid-template-rows:auto minmax(0,1fr)!important}
  html body #discoveryWildScreen #scienceTopicGrid{flex:0 0 auto!important}
  html body #discoveryWildScreen .science-map-panel{height:auto!important;min-height:0!important;padding:6px 8px!important}
  html body #discoveryWildScreen #scienceTopicGrid{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:6px!important;padding-bottom:4px!important;scroll-snap-type:x proximity;height:auto!important;min-height:0!important;align-items:flex-start!important}
  html body #discoveryWildScreen #scienceTopicGrid .science-topic{flex:0 0 112px!important;scroll-snap-align:start;height:62px!important;min-height:0!important;max-height:62px!important;justify-content:flex-start!important}
  html body #discoveryWildScreen #scienceTopicGrid .science-topic .ico, html body #discoveryWildScreen #scienceTopicGrid .science-topic .ico img{height:30px!important}
  html body #discoveryWildScreen #scienceFieldCount{margin-top:2px!important}
  html body #discoveryWildScreen .science-card>h2{font-size:22px!important}
  html body #discoveryWildScreen .science-card>p{font-size:15px!important;line-height:1.3!important}
  html body #discoveryWildScreen .science-card{gap:8px!important;padding:12px!important}
  html body #discoveryWildScreen #scienceScene.cp10-scene{height:170px!important;min-height:170px!important}
  html body #discoveryWildScreen .science-demo-btn{min-height:48px!important;font-size:13px!important;padding:6px!important}
}
/* Celebration overlay + answer pop */
html body canvas.p49-celebrate{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:9000}
html body .p49-win{animation:p49Win .55s cubic-bezier(.2,1.4,.3,1) 1!important}
@keyframes p49Win{0%{transform:scale(1)}35%{transform:scale(1.12)}65%{transform:scale(.97)}100%{transform:scale(1)}}
/* Gentle life in the menus: icons breathe; characters on Camp bob. */
html body #learningGroveScreen .grove-destination .grove-icon .jv-art{animation:p49Float 3.2s ease-in-out infinite}
html body #learningGroveScreen .grove-destination:nth-child(2) .grove-icon .jv-art{animation-delay:-.6s}
html body #learningGroveScreen .grove-destination:nth-child(3) .grove-icon .jv-art{animation-delay:-1.2s}
html body #learningGroveScreen .grove-destination:nth-child(4) .grove-icon .jv-art{animation-delay:-1.8s}
html body #learningGroveScreen .grove-destination:nth-child(5) .grove-icon .jv-art{animation-delay:-2.4s}
html body #learningGroveScreen .grove-destination:nth-child(6) .grove-icon .jv-art{animation-delay:-3s}
html body #v062WorldOverworldScreen .v063-destination:hover .jv-art, html body #v062WorldOverworldScreen .v064-story-dest:hover .jv-art{animation:p49Wiggle .6s ease-in-out 1}
html body #titleScreen .v02-hero-creatures .creature .jv-art{animation:p49Float 2.8s ease-in-out infinite}
html body #titleScreen .v02-hero-creatures .creature.fizz .jv-art{animation-delay:-.9s}
html body #titleScreen .v02-hero-creatures .creature.sprig .jv-art{animation-delay:-1.8s}
@keyframes p49Float{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -7px;rotate:-2deg}}
@keyframes p49Wiggle{0%,100%{rotate:0deg}25%{rotate:-6deg}75%{rotate:6deg}}
@media (prefers-reduced-motion:reduce){html body .p49-win,html body #learningGroveScreen .grove-icon .jv-art,html body #titleScreen .creature .jv-art{animation:none!important}}
/* Story Tree's win toast sat on top of Pipmoss; show it as a small banner at the top centre instead. */
html body:has(#storyTreeScreen:not(.hidden)) #joyBurst{inset:10px auto auto 50%!important;width:min(340px,60vw)!important;transform:translateX(-50%)!important}
/* Short landscape screens (iPad, 1024x768): keep the pre-roll lesson dock compact so the lane stays big. */
@media (max-height:820px){
  html body #mathBowlingScreen .bowling-shell.v053-arcade:not(.v053-question-mode) #v053LessonDock{max-height:118px!important;min-height:0!important;overflow:auto!important;padding:6px 10px!important}
  html body #mathBowlingScreen .bowling-shell.v053-arcade:not(.v053-question-mode) #v053LessonDock .bowling-card p, html body #mathBowlingScreen .bowling-shell.v053-arcade:not(.v053-question-mode) #v053LessonDock .v051-frame-strip{display:none!important}
  html body #mathBowlingScreen .bowling-shell.v053-arcade:not(.v053-question-mode) #v053LessonDock .bowling-card h2{font-size:20px!important}
  html body #mathBowlingScreen #v060BowlingRack{min-height:52px!important;max-height:56px!important}
  html body #mathBowlingScreen .bowling-top h1{font-size:28px!important}
}
@media (max-height:820px){
  html body #mathBowlingScreen .bowling-shell.v053-arcade:not(.v053-question-mode) #v053LessonDock .bowling-card{display:none!important}
  html body #mathBowlingScreen .bowling-shell.v053-arcade:not(.v053-question-mode) #v053LessonDock{max-height:84px!important}
}
