/* Verdant Wilds v11 — homepage embed (4.16.556) — forest still first-paint, no Illustrator poster */

.world-stage.world-stage--verdant{
  position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;
  background:#b7e4d2;
}

.world-stage.world-stage--verdant .vw-sky{
  position:absolute;inset:0;z-index:0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 8%,rgba(246,255,246,.84),transparent 62%),
    linear-gradient(180deg,#a7daed 0%,#d4f4ea 44%,#cae8d1 79%,#a1dbbf 100%);
  transition:background 1.2s ease,opacity .45s ease;
}

/* Real Verdant WebGL capture — fills F5 gap until live canvas is ready */
.world-stage.world-stage--verdant .vw-frame{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    url("verdant-home-still.jpg?v=4.16.556") center center / cover no-repeat;
  opacity:1;
  transform:scale(1.01);
  transition:opacity .28s ease;
}
body.jr-verdant-ready .world-stage.world-stage--verdant .vw-frame{
  opacity:0;
  visibility:hidden;
}
body.jr-verdant-fallback .world-stage.world-stage--verdant .vw-frame{
  opacity:1;
  visibility:visible;
}

html[data-theme="dark"] .world-stage.world-stage--verdant .vw-sky,
body.night .world-stage.world-stage--verdant .vw-sky,
.world-stage.world-stage--verdant.night .vw-sky{
  background:
    radial-gradient(ellipse 55% 40% at 72% 14%,rgba(210,237,240,.28),transparent 59%),
    linear-gradient(180deg,#0b192b 0%,#193a4b 53%,#1c4149 88%,#132936 100%);
}
html[data-theme="dark"] .world-stage.world-stage--verdant .vw-frame,
body.night .world-stage.world-stage--verdant .vw-frame,
.world-stage.world-stage--verdant.night .vw-frame{
  filter:brightness(.72) saturate(.92) hue-rotate(-6deg);
}

/* Legacy Illustrator mountain poster — never show on F5 / fallback */
.world-stage.world-stage--verdant .vw-poster{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

.world-stage.world-stage--verdant #scene,
.world-stage.world-stage--verdant canvas#scene{
  position:absolute;inset:0;width:100%;height:100%;display:block;outline:none;
  touch-action:none;cursor:grab;z-index:2;pointer-events:none;
  opacity:0;transition:opacity .28s ease;
}
.world-stage.world-stage--verdant #scene:active{cursor:grabbing}
body.jr-verdant-ready .world-stage.world-stage--verdant #scene{
  opacity:1 !important;
  pointer-events:auto;
}
body.jr-verdant-fallback .world-stage.world-stage--verdant #scene,
body.jr-verdant-mobile-lite:not(.jr-verdant-ready) .world-stage.world-stage--verdant #scene{
  display:none !important;opacity:0 !important;pointer-events:none !important;
}

/* Content chapters sit above canvas but pass empty-space hits through to orbit */
body.jr-rebuild.jr-verdant-ready main.illu-main,
body.jr-rebuild.jr-verdant-ready .chapter{
  pointer-events:none;
}
body.jr-rebuild.jr-verdant-ready main.illu-main a,
body.jr-rebuild.jr-verdant-ready main.illu-main button,
body.jr-rebuild.jr-verdant-ready main.illu-main input,
body.jr-rebuild.jr-verdant-ready main.illu-main textarea,
body.jr-rebuild.jr-verdant-ready main.illu-main select,
body.jr-rebuild.jr-verdant-ready main.illu-main .text-zone,
body.jr-rebuild.jr-verdant-ready main.illu-main .illu-btn,
body.jr-rebuild.jr-verdant-ready main.illu-main .button-row,
body.jr-rebuild.jr-verdant-ready main.illu-main .scroll-hint,
body.jr-rebuild.jr-verdant-ready main.illu-main .feature-rail,
body.jr-rebuild.jr-verdant-ready main.illu-main .pillar-grid,
body.jr-rebuild.jr-verdant-ready main.illu-main .surface-row,
body.jr-rebuild.jr-verdant-ready main.illu-main .plans,
body.jr-rebuild.jr-verdant-ready main.illu-main .site-end{
  pointer-events:auto;
}

/* Hide hero chrome over empty/still boot so F5 doesn't flash glass card on void sky */
html.jr-illu-home body.jr-rebuild:not(.jr-verdant-ready):not(.jr-verdant-fallback) main.illu-main,
html.jr-illu-home body.jr-rebuild:not(.jr-verdant-ready):not(.jr-verdant-fallback) .chapters-nav,
html.jr-illu-home body.jr-rebuild:not(.jr-verdant-ready):not(.jr-verdant-fallback) .scroll-hint,
html.jr-illu-home body.jr-rebuild:not(.jr-verdant-ready):not(.jr-verdant-fallback) .motion-fab{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
html.jr-illu-home body.jr-rebuild.jr-verdant-ready main.illu-main,
html.jr-illu-home body.jr-rebuild.jr-verdant-ready .chapters-nav,
html.jr-illu-home body.jr-rebuild.jr-verdant-ready .scroll-hint,
html.jr-illu-home body.jr-rebuild.jr-verdant-ready .motion-fab,
html.jr-illu-home body.jr-rebuild.jr-verdant-fallback main.illu-main,
html.jr-illu-home body.jr-rebuild.jr-verdant-fallback .chapters-nav,
html.jr-illu-home body.jr-rebuild.jr-verdant-fallback .scroll-hint,
html.jr-illu-home body.jr-rebuild.jr-verdant-fallback .motion-fab,
html.jr-illu-home body.jr-rebuild.jr-home-intro-done main.illu-main,
html.jr-illu-home body.jr-rebuild.jr-home-intro-done .chapters-nav,
html.jr-illu-home body.jr-rebuild.jr-home-intro-done .scroll-hint,
html.jr-illu-home body.jr-rebuild.jr-home-intro-done .motion-fab{
  opacity:1 !important;
  visibility:visible !important;
  transition:opacity .38s cubic-bezier(0.16,1,0.3,1);
}

.world-stage.world-stage--verdant .vw-grain{
  position:absolute;inset:0;pointer-events:none;opacity:.14;z-index:4;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.18' filter='url(%23n)'/%3E%3C/svg%3E");
}
.world-stage.world-stage--verdant .vw-veil{
  position:absolute;inset:0;z-index:5;pointer-events:none;
  background:radial-gradient(ellipse 92% 78% at 50% 40%,transparent 40%,rgba(20,48,40,.08) 78%,rgba(18,42,36,.18) 100%);
}
html[data-theme="dark"] .world-stage.world-stage--verdant .vw-veil{
  background:radial-gradient(ellipse 92% 80% at 50% 40%,transparent 38%,rgba(5,20,27,.22) 72%,rgba(5,20,27,.4) 100%);
}
.world-stage.world-stage--verdant .vw-stubs{
  position:absolute;width:0;height:0;overflow:hidden;opacity:0;pointer-events:none;
}
.world-stage.world-stage--verdant .vw-fallback{display:none}
.world-stage.world-stage--verdant .vw-boot{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

@media (max-width:767px),(hover:none) and (pointer:coarse){
  body.jr-verdant-ready:not(.jr-verdant-fallback) .world-stage.world-stage--verdant #scene{
    pointer-events:auto;
  }
}
