/* Sunlit surface jungle. No underground wall or stone ceiling. */
:root[data-theme="forest"]{
  /* Keep the original forest UI from ui-polish.css; only scenery changes. */
  filter:none;color-scheme:dark;
  --theme-surface:#284737;--theme-control:#203b2d;--theme-hover:#355f49;
  --theme-line:#b9e3cb30;--theme-accent:#a3e4bb;
}
:root[data-theme="forest"] .world-stage{background:#92bfa1}
:root[data-theme="forest"] .world-stage>main{padding-bottom:600px}
:root[data-theme="forest"] .jungle-scene{display:block;position:absolute;inset:0;z-index:0;overflow:hidden}
.jungle-sky{position:absolute;inset:0;image-rendering:pixelated;background:
  url('./assets/jungle/jungle-mahogany-near.png') center calc(100vh - 290px)/1024px 533px repeat-x fixed,
  url('./assets/jungle/jungle-mahogany-mid.png') center calc(100vh - 420px)/1024px 533px repeat-x fixed,
  url('./assets/jungle/jungle-mahogany-far.png') center calc(100vh - 650px)/1024px 722px repeat-x fixed,
  linear-gradient(#70acd0,#b9d9c6 55%,#76a85a 85%,#4a7d2d) fixed}
.jungle-scene .marble-floor,.jungle-scene .marble-water-front{height:512px}
.jungle-tiles{image-rendering:pixelated}
.jungle-tiles>.jungle-pot{height:26px}
.jungle-tiles>.jungle-grass-tile{width:16px;height:16px}
.marble-water-tiles>.jungle-lily{width:54px;height:18px}
.jungle-scene .marble-enemy{filter:drop-shadow(1px 2px 0 #233c2d33)}
.jungle-slime{width:32px;height:24px}
.jungle-slime[data-water-contact="true"]::after{content:"";position:absolute;left:-5px;bottom:calc(var(--submerged-depth,6px) - 1px);width:42px;height:2px;background:linear-gradient(90deg,#8bc4b2 0 7px,transparent 7px 35px,#8bc4b2 35px);opacity:.5;animation:jungle-slime-wake .48s steps(2,end) infinite}
@keyframes jungle-slime-wake{0%,100%{clip-path:inset(0 2px)}50%{clip-path:inset(0);opacity:.3}}
.giant-tortoise{width:72px;height:42px}
.jungle-bat{width:28px;height:24px}
.piranha{width:28px;height:23px}
.giant-tortoise img:not(.tortoise-shell){opacity:calc(1 - var(--shell-opacity,0))}
.giant-tortoise .tortoise-shell{bottom:2px;opacity:var(--shell-opacity,0);transform:translateX(-50%) rotate(var(--shell-angle,0rad));transform-origin:center}
.jungle-ripples{animation:jungle-water-ripple 4s steps(3,end) infinite}
.jungle-splash i{background:#9ac8b2}
@keyframes jungle-water-ripple{0%,100%{opacity:.4}50%{opacity:.85}}
@media(prefers-reduced-motion:reduce){.jungle-ripples,.jungle-slime::after{animation:none}}
:root[data-theme="forest"] .world-stage :is(.page-heading,.section-title,.section-head-extra,footer,.notice,.result-actions){position:relative;background:#284737f2;border-radius:6px;box-shadow:0 2px 8px #13301d20}
:root[data-theme="forest"] .world-stage :is(.page-heading,.section-title){padding:10px 12px;margin-inline:-12px;border:1px solid var(--theme-line)}
:root[data-theme="forest"] .world-stage footer{padding:12px;border:1px solid var(--theme-line)}
:root[data-theme="forest"] .world-stage .empty{background:var(--theme-surface);border-radius:10px}
.theme-preview.forest{background:#81b07b url('./assets/jungle/jungle-canopy.png') center/60px 51px;color:#305b33;image-rendering:pixelated}
@media(max-width:680px){
  :root[data-theme="forest"] .world-stage>main{padding-bottom:584px}
}
