/* static/spine/styles.css */

/* ============================================================
   RESET + TOKENS
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --nav-h: 84px;
  --bg-canopy: #050806;
  --text-ivory: rgba(243, 242, 234, 0.92);
  --text-soft: rgba(240, 246, 255, 0.78);

  /* Default (fallback) biome tokens */
  --bio-panel: rgba(8, 16, 12, 0.72);
  --bio-panel2: rgba(10, 20, 14, 0.68);
  --bio-border: rgba(170, 255, 210, 0.16);
  --bio-border-strong: rgba(170, 255, 210, 0.26);

  --bio-haze-a: rgba(200,255,235,0.06);
  --bio-haze-b: rgba(255,220,150,0.05);
  --bio-haze-c: rgba(60,255,170,0.04);

  --bio-title: rgba(255, 220, 150, 0.90);

  --cta-gold-1: #ffe08a;
  --cta-gold-2: #e4a248;

  --shadow: 0 24px 60px rgba(0,0,0,0.65);
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.55);
}

html, body { height: 100%; }

body{
  font-family: 'Inter', sans-serif;
  background: var(--bg-canopy);
  color: var(--text-ivory);
  line-height: 1.6;
  overflow-x: hidden;

  background-image:
    radial-gradient(circle at 50% 12%, rgba(255, 220, 150, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 18% 65%, rgba(60, 255, 170, 0.09) 0%, transparent 46%),
    radial-gradient(circle at 82% 70%, rgba(30, 180, 120, 0.10) 0%, transparent 48%),
    linear-gradient(180deg, rgba(2,6,4,0.95), rgba(4,10,7,0.88));
  background-attachment: fixed;
}

/* ============================================================
   NAVBAR — CANOPY GLASS
   ============================================================ */
.nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 14px 16px 0;
}

.nav__inner{
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(6, 12, 8, 0.28);
  border: 1px solid rgba(255, 220, 150, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

.nav--scrolled .nav__inner{
  background: rgba(6, 12, 8, 0.74);
  border-color: rgba(255, 220, 150, 0.20);
}

.nav__brand{
  display: grid;
  gap: 2px;
  text-decoration: none;
  min-width: 200px;
}

.nav__brandTitle{
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: rgba(255, 236, 190, 0.95);
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 220, 150, 0.08);
}

.nav__brandTag{
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(220, 240, 232, 0.70);
}

.nav__links{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav__dot{
  color: rgba(255, 220, 150, 0.40);
  font-size: 0.95rem;
  transform: translateY(-1px);
}

.nav__link{
  position: relative;
  text-decoration: none;
  color: rgba(243, 242, 234, 0.86);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav__link i{ margin-right: 8px; opacity: 0.9; }

.nav__link:hover{
  background: rgba(255, 220, 150, 0.08);
  transform: translateY(-1px);
}

.nav__link.is-active{
  background: rgba(60, 255, 170, 0.10);
  color: rgba(230, 255, 244, 0.95);
  box-shadow: inset 0 0 0 1px rgba(60, 255, 170, 0.18);
}

.nav__link--superfood{
  background: rgba(255, 220, 150, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 150, 0.14);
}

.nav__actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__cta{
  text-decoration: none;
  color: #1b1207;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.90rem;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta-gold-1), var(--cta-gold-2));
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.nav__cta:hover{ filter: brightness(1.05); transform: translateY(-1px); }

.nav__burger{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 220, 150, 0.16);
  background: rgba(8, 16, 12, 0.35);
  display: none;
  cursor: pointer;
}

.nav__burger span{
  display: block;
  height: 2px;
  margin: 6px 10px;
  background: rgba(243, 242, 234, 0.85);
  border-radius: 999px;
}

.nav__progress{
  max-width: 1400px;
  margin: 10px auto 0;
  height: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 220, 150, 0.10);
}

.nav__progressBar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 220, 150, 0.0), rgba(255, 220, 150, 0.85), rgba(60, 255, 170, 0.70));
  box-shadow: 0 0 16px rgba(255, 220, 150, 0.22);
}

.nav__panel{
  position: fixed;
  inset: 0;
  z-index: 998;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 220, 150, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(2,6,4,0.92), rgba(4,10,7,0.92));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.nav__panelInner{
  max-width: 560px;
  margin: 90px auto 0;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.nav__panelLink{
  text-decoration: none;
  color: rgba(243, 242, 234, 0.92);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8, 16, 12, 0.52);
  border: 1px solid rgba(255, 220, 150, 0.14);
}

.nav__panelLink:hover{ background: rgba(255, 220, 150, 0.08); }

.nav.nav--open .nav__panel{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.nav-open{ overflow: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(8, 16, 12, 0.85); }
::-webkit-scrollbar-thumb { background: rgba(170, 255, 210, 0.18); border-radius: 12px; }

/* Global grain + atmosphere injected by JS */
.global-grain{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.10; mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
.global-fireflies{ position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.global-firefly{
  position: absolute; width: 7px; height: 7px; border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.92), rgba(255, 225, 140, 0.35) 45%, rgba(0,0,0,0) 70%);
  opacity: 0;
}

/* ============================================================
   SECTIONS + BIOME SYSTEM
   ============================================================ */
section{
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

section::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, var(--bio-haze-a) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, var(--bio-haze-b) 0%, transparent 48%),
    radial-gradient(circle at 50% 85%, var(--bio-haze-c) 0%, transparent 58%);
}

.container{
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.biome-note{
  color: rgba(240, 246, 255, 0.72);
  margin-top: -0.8rem;
  margin-bottom: 1.2rem;
}

.story-toggle{
  max-width: 74ch;
  margin: 0.9rem 0 1.6rem;
}

.story-toggle--center{
  margin-left: auto;
  margin-right: auto;
}

.story-toggle__text{
  margin: 0;
  line-height: 1.9;
  color: rgba(240, 246, 255, 0.82);
  overflow-wrap: anywhere;
}

.story-toggle__actions{
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.story-toggle--center .story-toggle__actions{
  justify-content: center;
}

.story-toggle__btn{
  appearance: none;
  border: 1px solid rgba(255, 220, 150, 0.22);
  background: rgba(8, 16, 12, 0.52);
  color: rgba(248, 244, 231, 0.95);
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.story-toggle__btn:hover{
  transform: translateY(-2px);
  background: rgba(14, 28, 18, 0.72);
  border-color: rgba(255, 220, 150, 0.42);
  box-shadow: 0 18px 36px rgba(0,0,0,0.34);
}

.story-toggle__btn:focus-visible{
  outline: 2px solid rgba(255, 230, 170, 0.92);
  outline-offset: 3px;
}

.story-toggle__btn[hidden]{
  display: none !important;
}

.story-toggle__word{
  display: inline-block;
  will-change: transform, opacity;
}

#intro .story-toggle{
  max-width: 860px;
  margin: 0 auto 1.25rem;
}

#intro .story-toggle__actions{
  margin-top: 1.15rem;
}

#maps .story-toggle{
  max-width: 860px;
  margin: 0 auto 1.85rem;
}

#maps .story-toggle__text{
  text-align: center;
  color: rgba(231, 228, 204, 0.90);
  font-size: 1.03rem;
  text-shadow: 0 0 16px rgba(120, 160, 95, 0.12);
}

#fun-facts .story-toggle,
#artwork .story-toggle,
#planttree .story-toggle{
  max-width: 76ch;
}

#quiz .story-toggle{
  max-width: 74ch;
  margin: 0 0 1.4rem;
}

#drawings .story-toggle{
  max-width: 72ch;
  margin: 1.05rem auto 1.7rem;
}

#artwork .story-toggle{
  margin: 0 auto 2.2rem;
}

#artwork .story-toggle__text{
  text-align: center;
  font-size: 1.02rem;
  color: rgba(242, 236, 214, 0.88);
}

#planttree .story-toggle{
  margin: 0 auto 2rem;
}

@media (max-width: 720px){
  .story-toggle{ margin-bottom: 1.3rem; }
  .story-toggle__text{ line-height: 1.75; }
  .story-toggle__actions{ gap: 0.6rem; }
  .story-toggle__btn{ width: 100%; justify-content: center; text-align: center; }
  #quiz .story-toggle{ margin-bottom: 1.1rem; }
}

.biome-meta{
  text-align: right;
  color: rgba(235, 245, 238, 0.65);
}

/* ===== Biome overrides (distinct but still rainforest) ===== */
#intro{
  --bio-haze-a: rgba(200,255,235,0.10);
  --bio-haze-b: rgba(255,220,150,0.10);
  --bio-haze-c: rgba(60,255,170,0.08);
}

#planttree{
  --bio-panel: rgba(10, 16, 12, 0.74);
  --bio-panel2: rgba(14, 22, 16, 0.66);
  --bio-border: rgba(120, 255, 180, 0.18);
  --bio-border-strong: rgba(120, 255, 180, 0.30);
  --bio-haze-a: rgba(180,255,220,0.07);
  --bio-haze-b: rgba(255,220,150,0.05);
  --bio-haze-c: rgba(90,255,170,0.05);
  --bio-title: rgba(200,255,210,0.92);
}
#fun-facts{
  --bio-panel: rgba(10, 18, 12, 0.72);
  --bio-panel2: rgba(16, 24, 16, 0.65);
  --bio-border: rgba(255, 220, 150, 0.18);
  --bio-border-strong: rgba(255, 220, 150, 0.30);
  --bio-haze-a: rgba(255, 235, 200, 0.06);
  --bio-haze-b: rgba(120, 255, 200, 0.05);
  --bio-haze-c: rgba(255, 220, 150, 0.05);
}
#quiz{
  --bio-panel: rgba(10, 16, 10, 0.74);
  --bio-panel2: rgba(12, 20, 12, 0.66);
  --bio-border: rgba(255, 220, 150, 0.18);
  --bio-border-strong: rgba(255, 220, 150, 0.32);
  --bio-haze-a: rgba(255,220,150,0.07);
  --bio-haze-b: rgba(200,255,235,0.05);
  --bio-haze-c: rgba(255,235,190,0.05);
}
#artwork{
  --bio-panel: rgba(7, 12, 10, 0.78);
  --bio-panel2: rgba(8, 14, 12, 0.72);
  --bio-border: rgba(170,255,210,0.14);
  --bio-border-strong: rgba(170,255,210,0.22);
  --bio-haze-a: rgba(200,255,235,0.04);
  --bio-haze-b: rgba(255,220,150,0.03);
  --bio-haze-c: rgba(60,255,170,0.03);
}
#sponsors{
  --bio-panel: rgba(10, 16, 12, 0.72);
  --bio-panel2: rgba(14, 22, 16, 0.64);
  --bio-border: rgba(255, 220, 150, 0.20);
  --bio-border-strong: rgba(255, 220, 150, 0.34);
  --bio-haze-a: rgba(255,220,150,0.06);
  --bio-haze-b: rgba(200,255,235,0.05);
  --bio-haze-c: rgba(255,235,190,0.05);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h2{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bio-title);
}
h2 i{ margin-right: 0.5rem; opacity: 0.92; }

h3{
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   CARD GRID (for fun facts)
   ============================================================ */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

/* Flip card */
.flip-card{
  perspective: 1200px;
  min-height: 220px;
}
.flip-inner{
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(0.2,0.9,0.3,1.2);
}
.flip-card.is-flipped .flip-inner{ transform: rotateY(180deg); }
.flip-front, .flip-back{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 2rem;
  padding: 2rem 1.6rem;
  background: var(--bio-panel);
  border: 1px solid var(--bio-border);
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   FUN FACTS — FIELD JOURNAL CARD SKIN (15-card grid)
   ============================================================ */
#fun-facts .flip-card{
  min-height: 230px;
}

#fun-facts .flip-front,
#fun-facts .flip-back{
  /* parchment / journal paper vibe */
  background:
    linear-gradient(180deg, rgba(255,235,190,0.10), rgba(255,220,150,0.04)),
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.10), transparent 55%),
    var(--bio-panel);
  border: 1px solid rgba(255, 220, 150, 0.22);
}

#fun-facts .flip-back{
  background:
    linear-gradient(180deg, rgba(255,235,190,0.14), rgba(255,220,150,0.06)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 220, 150, 0.00) 0px,
      rgba(255, 220, 150, 0.00) 22px,
      rgba(255, 220, 150, 0.05) 23px
    ),
    var(--bio-panel2);
  border-color: rgba(255, 220, 150, 0.28);
}

#fun-facts .ff-emoji{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 220, 150, 0.10);
  border: 1px solid rgba(255, 220, 150, 0.20);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
}

#fun-facts .flip-front h3{
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

#fun-facts .ff-teaser{
  color: rgba(240, 246, 255, 0.82);
}

#fun-facts .ff-fieldnote{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 220, 150, 0.92);
  margin-bottom: 0.75rem;
}

#fun-facts .ff-body{
  color: rgba(240, 250, 244, 0.90);
}

#fun-facts .ff-foot{
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(235, 245, 238, 0.60);
  border-top: 1px dashed rgba(255, 220, 150, 0.18);
  padding-top: 0.7rem;
}

#fun-facts .ff-foot strong{
  color: rgba(160,255,210,0.85);
  font-weight: 900;
}

.flip-back{
  transform: rotateY(180deg);
  background: var(--bio-panel2);
}

/* ============================================================
   INTRO HERO (keeps your rainforest intro visuals)
   ============================================================ */
.hero{
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--nav-h, 84px) + 4.2rem);
  padding-bottom: 6rem;
}
.hero.hero--amazon::before{ content: none; }

.hero-bg{
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  /* background-image is set inline in HTML, so we only keep positioning/overlay here */
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-content{ position: relative; z-index: 5; text-align: center; }

/* ============================================================
   HERO TITLE — LAYERED AMAZON DISPLAY
   - Uses the user-approved Cormorant Garamond layered treatment
   - Keeps CTA row directly underneath the title
   ============================================================ */
.hero-content{
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 1180px;
}

.hero-title{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08em;
  margin: 0 0 1.45rem;
  padding: 0 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 30px rgba(255, 220, 150, 0.18),
    0 14px 36px rgba(0,0,0,0.48);
}

.hero-title__line{
  display: block;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #fff8e7 0%, #e6d5a8 40%, #c9b06e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: perspective(500px) rotateX(2deg);
  text-shadow:
    0 0 30px rgba(255, 220, 150, 0.38),
    0 4px 15px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

.hero-title__line--of{
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  margin: -0.18em 0;
  background: linear-gradient(180deg, #f5e7c8, #b8a06e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(60, 255, 170, 0.3);
}

html.has-gsap .hero-title{
  color: inherit;
  -webkit-text-stroke: 0 transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title__line{
    animation: heroTitleFloat 6s ease-in-out infinite;
  }

  .hero-title__line--of{
    animation: heroTitleFloat 6s ease-in-out infinite reverse;
  }
}

@keyframes heroTitleFloat {
  0%, 100% { transform: perspective(500px) rotateX(2deg) translateY(0); }
  50% { transform: perspective(500px) rotateX(2deg) translateY(-6px); }
}

@media (max-width: 640px){
  .hero-title{
    gap: 0.04em;
    margin-bottom: 1.2rem;
    padding: 0 0.4rem;
  }

  .hero-title__line{
    letter-spacing: 0.03em;
  }

  .hero-title__line--of{
    letter-spacing: 0.14em;
  }
}

.hero-subhead{
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  max-width: 860px;
  margin: 0 auto;
  color: rgba(240, 246, 255, 0.86);
}

.hero-ctaRow{
  margin-top: 2.1rem;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta{
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 220, 150, 0.18);
  background: rgba(8, 16, 12, 0.38);
  color: rgba(243, 242, 234, 0.92);
  box-shadow: 0 16px 44px rgba(0,0,0,0.45);
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}

.hero-cta:hover{ transform: translateY(-1px); filter: brightness(1.06); }

.hero-cta--primary{
  background: linear-gradient(135deg, var(--cta-gold-1), var(--cta-gold-2));
  color: #1b1207;
  border-color: rgba(255, 220, 150, 0.35);
}

.hero-cta--ghost{
  background: rgba(8, 16, 12, 0.42);
}

.hero-chips{
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-chip{
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 246, 255, 0.74);
  background: rgba(255, 220, 150, 0.05);
  border: 1px solid rgba(255, 220, 150, 0.12);
}

.hero-explore{
  margin: 2.6rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 16, 12, 0.38);
  border: 1px solid rgba(255, 220, 150, 0.14);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

.hero-explore__label{ color: rgba(240, 246, 255, 0.70); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.92rem; }
.hero-explore__value{ color: rgba(255, 236, 190, 0.92); font-weight: 900; letter-spacing: 0.04em; }
.hero-explore__spark{ color: rgba(60, 255, 170, 0.70); }

.hero-scrollcue{
  margin-top: 1.6rem;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  opacity: 0.92;
}
.hero-scrollcue__drop{
  width: 14px;
  height: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0.0) 45%),
    linear-gradient(180deg, rgb(215, 220, 212), rgba(255,220,140,0.55));
  box-shadow: 0 0 20px rgba(160,255,210,0.18);
}
.hero-scrollcue__text{
  font-size: 0.95rem;
  color: rgba(240, 246, 255, 0.70);
  letter-spacing: 0.05em;
}

/* Intro layers (from your rainforest intro) */
.hero-sky{
  position: absolute; inset: -25%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 215, 140, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 20% 60%, rgba(60, 255, 170, 0.10) 0%, transparent 48%),
    radial-gradient(circle at 85% 70%, rgba(30, 180, 120, 0.10) 0%, transparent 48%),
    linear-gradient(180deg, rgba(2,6,4,0.95), rgba(4,10,7,0.80));
  filter: blur(8px);
}
.hero-mist{
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 30% 35%, rgba(200,255,235,0.12) 0%, transparent 52%),
    radial-gradient(circle at 70% 45%, rgba(210,255,245,0.10) 0%, transparent 55%),
    radial-gradient(circle at 50% 75%, rgba(255,235,190,0.08) 0%, transparent 62%);
  filter: blur(18px);
  opacity: 0.9;
}
.hero-rays{
  position: absolute; inset: -30%;
  background:
    conic-gradient(from 110deg at 60% 20%,
      rgba(255, 220, 150, 0.08), transparent 20%, rgba(160,255,210,0.08), transparent 55%, rgba(255, 220, 150, 0.06));
  mix-blend-mode: screen;
  opacity: 0.8;
  filter: blur(10px);
}

.leaf-frame{
  position: absolute;
  top: 0; bottom: 0;
  width: min(28vw, 360px);
  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
}
.leaf-frame--left{ left: 0; }
.leaf-frame--right{ right: 0; }

.vines{
  position: absolute; left: 0; right: 0; top: -10px; height: 140px;
  background:
    radial-gradient(circle at 18% 65%, rgba(35,110,70,0.35) 0%, transparent 55%),
    radial-gradient(circle at 50% 15%, rgba(60,255,170,0.15) 0%, transparent 52%),
    radial-gradient(circle at 82% 60%, rgba(30,95,62,0.35) 0%, transparent 55%);
  filter: blur(10px);
  opacity: 0.75;
}

.hero-fireflies, .hero-rain{
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-grain{
  position: absolute; inset: -25%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.rf-game-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.rf-game-exit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(194,235,205,0.18);
  border-radius:999px;
  padding:12px 22px;
  font:700 0.96rem/1 "Fredoka","Inter",sans-serif;
  color:#fff6da;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}

.rf-game-exit:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
}

@media (max-width: 980px){
  .card-grid{ grid-template-columns: 1fr; }
  section{ padding: 4.5rem 1.4rem; }
  .leaf-frame{ display: none; }
}

/* =========================================================
   PINNED CHAPTER PANELS (GSAP ScrollTrigger) - kept for sections
   ========================================================= */
#spineRoot > section{
  scroll-margin-top: calc(var(--nav-h, 84px) + 10px);
}

/* #superfoods is a div anchor inside #sponsors; give it the same offset */
#superfoods{ scroll-margin-top: calc(var(--nav-h, 84px) + 10px); }

.rf-game-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.rf-game-exit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(194,235,205,0.18);
  border-radius:999px;
  padding:12px 22px;
  font:700 0.96rem/1 "Fredoka","Inter",sans-serif;
  color:#fff6da;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}

.rf-game-exit:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
}

@media (max-width: 980px){
  .nav__links{ display: none; }
  .nav__burger{ display: inline-block; }
  .nav__brand{ min-width: unset; }
}

#spineRoot > section.biome{
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding-top: clamp(18px, 3vh, 38px);
  padding-bottom: clamp(24px, 5vh, 64px);
}


/* ============================================================
   PLANT CHANGE — VIDEO STORY BRIDGE (scoped)
   ============================================================ */

#plantchange .pcv-shell{
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248,244,237,0.96), rgba(241,235,224,0.96));
  box-shadow: 0 26px 80px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
}

#plantchange .pcv-hero{
  position: relative;
  min-height: min(100vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

#plantchange .pcv-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
}

#plantchange .pcv-heroOverlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 14, 8, 0.18) 0%, rgba(5, 12, 8, 0.42) 55%, rgba(5, 10, 7, 0.68) 100%),
    radial-gradient(circle at 50% 20%, rgba(255, 224, 138, 0.16) 0%, transparent 40%);
}

#plantchange .pcv-heroGlow{
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 233, 211, 0), rgba(245, 233, 211, 0.92));
}

#plantchange .pcv-heroContent{
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: clamp(2rem, 4vw, 3.5rem);
}

#plantchange .pcv-eyebrow{
  margin: 0 0 1rem 0;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 800;
  color: rgba(255, 231, 176, 0.96);
}

#plantchange .pcv-heroTitle{
  margin: 0 0 1rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 32px rgba(0,0,0,0.30);
}

#plantchange .pcv-heroText{
  margin: 0 auto;
  max-width: 30ch;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(247, 244, 236, 0.96);
  text-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

#plantchange .pcv-heroActions{
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

#plantchange .pcv-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 190px;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

#plantchange .pcv-button:hover{
  transform: translateY(-2px);
  filter: brightness(1.04);
}

#plantchange .pcv-button--primary{
  color: #17311a;
  background: linear-gradient(135deg, #ffe08a, #c7f0b5);
  box-shadow: 0 16px 38px rgba(0,0,0,0.22);
}

#plantchange .pcv-button--ghost{
  color: rgba(255, 247, 231, 0.96);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#plantchange .pcv-body{
  padding: clamp(2rem, 3.5vw, 3rem);
  color: #2d3e2c;
}

#plantchange .pcv-block{
  margin-bottom: 4.2rem;
}

#plantchange .pcv-block:last-child{
  margin-bottom: 0;
}

#plantchange .pcv-sectionTitle,
#plantchange .pcv-statsTitle{
  margin: 0 0 0.8rem 0;
  text-align: center;
  font-family: 'Playfair Display', ui-serif, Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  color: #223a23;
}

#plantchange .pcv-sectionSubtitle{
  max-width: 780px;
  margin: 0 auto 2.75rem auto;
  text-align: center;
  font-size: 1.08rem;
  color: #6b4f3a;
}

#plantchange .pcv-grid{
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

#plantchange .pcv-grid--2{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#plantchange .pcv-grid--flip{
  direction: rtl;
}

#plantchange .pcv-grid--flip > *{
  direction: ltr;
}

#plantchange .pcv-card{
  border-radius: 1.8rem;
  overflow: hidden;
}

#plantchange .pcv-card--media{
  box-shadow: 0 22px 42px rgba(48, 56, 37, 0.16);
}

#plantchange .pcv-card--media img{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

#plantchange .pcv-card--copy{
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(131, 110, 86, 0.14);
  box-shadow: 0 20px 36px rgba(54, 52, 41, 0.10);
  padding: clamp(1.7rem, 3vw, 2.6rem);
}

#plantchange .pcv-cardTitle{
  margin: 0 0 1rem 0;
  font-family: 'Playfair Display', ui-serif, Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: #1f3b1f;
}

#plantchange .pcv-card--copy p{
  margin: 0 0 1rem 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: #3b4a3a;
}

#plantchange .pcv-card--copy p:last-child{
  margin-bottom: 0;
}

#plantchange .pcv-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}

#plantchange .pcv-statCard{
  padding: 2.1rem 1.4rem;
  text-align: center;
  border-radius: 1.9rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(131, 110, 86, 0.14);
  box-shadow: 0 18px 34px rgba(54, 52, 41, 0.10);
  will-change: transform, opacity;
}

#plantchange .pcv-statNumber{
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #2b5e2b;
  margin-bottom: 0.35rem;
}

#plantchange .pcv-statLabel{
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a5541;
}

#plantchange .pcv-cta{
  padding: clamp(2.4rem, 4vw, 3.4rem);
  border-radius: 2.2rem;
  text-align: center;
  background: linear-gradient(145deg, #e7dece, #f2ede3);
  border: 1px solid rgba(131, 110, 86, 0.14);
  box-shadow: 0 24px 48px rgba(54, 52, 41, 0.12);
}

#plantchange .pcv-ctaTitle{
  margin: 0 0 0.9rem 0;
  font-family: 'Playfair Display', ui-serif, Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: #1f3b1f;
}

#plantchange .pcv-ctaText{
  max-width: 650px;
  margin: 0 auto 1.8rem auto;
  font-size: 1.12rem;
  color: #4a4a3a;
}

.rf-game-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.rf-game-exit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(194,235,205,0.18);
  border-radius:999px;
  padding:12px 22px;
  font:700 0.96rem/1 "Fredoka","Inter",sans-serif;
  color:#fff6da;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}

.rf-game-exit:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
}

@media (max-width: 980px){
  #plantchange .pcv-grid--2,
  #plantchange .pcv-stats{
    grid-template-columns: 1fr;
  }

  #plantchange .pcv-card--media img{
    min-height: 300px;
  }
}

@media (max-width: 700px){
  #plantchange .pcv-shell{
    border-radius: 1.4rem;
  }

  #plantchange .pcv-hero{
    min-height: 74vh;
  }

  #plantchange .pcv-heroContent{
    padding: 1.5rem;
  }

  #plantchange .pcv-button{
    width: 100%;
    min-width: 0;
  }

  #plantchange .pcv-body{
    padding: 1.25rem;
  }

  #plantchange .pcv-block{
    margin-bottom: 3rem;
  }

  #plantchange .pcv-card--copy,
  #plantchange .pcv-cta{
    border-radius: 1.4rem;
  }
}

/* ============================================================
   FUN FACTS — "FIELD JOURNAL" LOOK (MATCH PREVIEW)
   ============================================================ */

/* Kill the generic biome haze for this section */
#fun-facts::before{ display:none; }

/* Forest-photo section background (with vignette) */
#fun-facts{
  position: relative;
  overflow: hidden;
}

#fun-facts::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;

  /* Use your own forest/hero image here – adjust path as needed */
  background-image:
    radial-gradient(circle at 50% 35%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.65) 70%, rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(5,8,6,0.35), rgba(5,8,6,0.72)),
    url("./image/heros1.png");

  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;

  filter: blur(2px) saturate(1.05) contrast(1.05) brightness(0.92);
  transform: scale(1.03);
}

/* Make sure content sits above the background */
#fun-facts .container{ position: relative; z-index: 2; }

/* Title/subtitle styling closer to preview */
#fun-facts h2{
  color: rgba(255, 220, 150, 0.92);
  text-align: center;
}
#fun-facts .biome-note{
  text-align: center;
  color: rgba(240, 246, 255, 0.78);
}

/* Grid spacing similar to screenshot */
#fun-facts .card-grid{
  gap: 1.4rem;
  margin-top: 2.2rem;
}

/* Card sizing */
#fun-facts .flip-card{ min-height: 230px; }

/* PAPER CARD BASE (front + back) */
#fun-facts .flip-front,
#fun-facts .flip-back{
  border-radius: 18px;
  padding: 1.35rem 1.25rem;
  border: 2px solid rgba(90, 60, 25, 0.35);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.55),
    0 2px 0 rgba(255,255,255,0.06) inset;

  /* paper */
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.25), transparent 48%),
    radial-gradient(circle at 85% 75%, rgba(0,0,0,0.12), transparent 55%),
    linear-gradient(180deg, rgba(220,190,140,0.92), rgba(200,165,110,0.92));

  color: rgba(25, 18, 10, 0.92);
}

/* Emoji badge like a stamped icon */
#fun-facts .ff-emoji{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(60, 35, 10, 0.10);
  border: 1px solid rgba(60, 35, 10, 0.22);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}

/* Front typography */
#fun-facts .flip-front h3{
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(25, 18, 10, 0.94);
  margin-bottom: 0.55rem;
}
#fun-facts .ff-teaser{
  color: rgba(35, 24, 12, 0.78);
  font-weight: 600;
}

/* BACK: ruled lines + field note header */
#fun-facts .flip-back{
  background:
    /* ruled lines */
    repeating-linear-gradient(
      180deg,
      rgba(120, 75, 25, 0.00) 0px,
      rgba(120, 75, 25, 0.00) 22px,
      rgba(120, 75, 25, 0.10) 23px
    ),
    linear-gradient(180deg, rgba(225,195,145,0.95), rgba(198,160,105,0.95));
}

#fun-facts .ff-fieldnote{
  display:flex;
  justify-content: center;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(70, 40, 12, 0.85);
  margin-bottom: 0.65rem;
}

/* Back body ink */
#fun-facts .ff-body{
  color: rgba(25, 18, 10, 0.88);
  font-weight: 650;
}

/* Footer strip (Amazon Journal #xx + tag) */
#fun-facts .ff-foot{
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.05rem;
  display:flex;
  justify-content: space-between;
  align-items:center;
  font-size: 0.82rem;
  color: rgba(55, 34, 14, 0.70);
  border-top: 1px solid rgba(90, 60, 25, 0.18);
  padding-top: 0.55rem;
}
#fun-facts .ff-foot strong{
  color: rgba(30, 75, 55, 0.85);
  font-weight: 950;
}

/* Corner curl */
#fun-facts .flip-front::after,
#fun-facts .flip-back::after{
  content:"";
  position:absolute;
  right: 12px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.20), rgba(255,255,255,0.05));
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  opacity: 0.55;
}

/* Hover lift (desktop) */
@media (hover:hover){
  #fun-facts .flip-card:hover .flip-front,
  #fun-facts .flip-card:hover .flip-back{
    transform: translateY(-4px);
    transition: transform 160ms ease;
  }
}

/* ============================================================
   ARTWORK GALLERY (zoom grid + modal) — scoped to #artwork
   ============================================================ */

#artwork .art-gallery{
  margin-top: 1.6rem;
}

#artwork .art-gallery__subtitle{
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 220, 150, 0.70);
  margin-bottom: 2.4rem;
}

#artwork .art-gallery__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

/* Card */
#artwork .artg-card{
  position: relative;
  background: rgba(10, 14, 12, 0.80);
  border: 1px solid var(--bio-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  cursor: pointer;
  padding: 0;
  text-align: left;
  aspect-ratio: 3 / 4;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

#artwork .artg-card:hover{
  transform: translateY(-8px) scale(1.01);
  border-color: var(--bio-border-strong);
  box-shadow: 0 30px 70px rgba(0,0,0,0.70);
}

#artwork .artg-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) sepia(12%) contrast(1.02);
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.6s ease;
  display: block;
}

#artwork .artg-card:hover .artg-image{
  filter: grayscale(0%) sepia(0%);
  transform: scale(1.06);
}

#artwork .artg-caption{
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1.1rem 1.0rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.00) 100%);
  transform: translateY(100%);
  transition: transform 0.28s ease;
}

#artwork .artg-card:hover .artg-caption{
  transform: translateY(0);
}

#artwork .artg-caption h3{
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 300;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
  color: rgba(245, 235, 220, 0.98);
  text-transform: none;
}

#artwork .artg-caption p{
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(235, 245, 238, 0.78);
}

/* Mobile: captions always visible (no hover) */
@media (max-width: 600px){
  #artwork .artg-caption{ transform: translateY(0); }
  #artwork .artg-card:hover{ transform: none; }
  #artwork .artg-card:hover .artg-image{ transform: scale(1.02); }
}

/* Modal */
.artg-modal{
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.artg-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
}

.artg-modal__content{
  position: relative;
  z-index: 2510;
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  border: 1px solid rgba(255, 220, 150, 0.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0,0,0,0.75);
  opacity: 0;
  transform: scale(0.85);
  background: rgba(10, 14, 12, 0.96);
}

.artg-modal__image{
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  background: rgba(8, 12, 10, 0.96);
}

.artg-modal__caption{
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.6rem 1.25rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.00) 100%);
  color: rgba(245, 235, 220, 0.98);
  transform: translateY(100%);
}

.artg-modal__caption #modalName{
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.artg-modal__caption small{
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(255, 220, 150, 0.72);
}

.artg-modal__close{
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2520;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.30);
  color: rgba(245, 235, 220, 0.95);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.artg-modal__close:hover{
  border-color: rgba(255, 220, 150, 0.40);
  color: rgba(255, 220, 150, 0.95);
}

/* Prevent background scroll when modal is open */
.no-scroll{ overflow: hidden !important; }

/* =========================================================
   FOOD SPONSORS — Superfoods compact showcase (scoped)
   ========================================================= */

#sponsors{
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2e2a27;
}

#sponsors .superfoods-section{
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background-color: #f5f3f0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.22);
}

#sponsors .superfoods-section::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(180, 210, 140, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(130, 100, 70, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

#sponsors .section-header{
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 5;
}

#sponsors .section-tagline{
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8f9e6b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#sponsors .section-title{
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 400;
  color: #2c4a2e;
  line-height: 1.1;
  margin-bottom: 1rem;
}

#sponsors .section-title span{
  font-style: italic;
  color: #b36b4b;
}

#sponsors .section-desc{
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: #5b5b5b;
  font-weight: 300;
}

#sponsors .product-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

#sponsors .product-card{
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 25px -8px rgba(0,0,0,0.08), 0 0 0 1px rgba(210, 190, 170, 0.15);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

#sponsors .product-card:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 30px -10px rgba(70, 90, 50, 0.2), 0 0 0 1px #cbb99b;
}

#sponsors .product-image{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
  background-color: #eae3db;
}

#sponsors .product-card:hover .product-image{
  transform: scale(1.03);
}

#sponsors .product-info{
  padding: 1.2rem 1rem 1.5rem;
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#sponsors .product-category{
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b2895c;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

#sponsors .product-name{
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2e4a33;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

#sponsors .product-desc{
  font-size: 0.8rem;
  color: #6f6761;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-weight: 300;
  flex: 1;
}

#sponsors .product-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

#sponsors .product-price{
  font-size: 1.4rem;
  font-weight: 300;
  color: #3a5e3a;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

#sponsors .product-price small{
  font-size: 0.7rem;
  color: #8b7a6a;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

#sponsors .btn-outline{
  background: transparent;
  border: 1.5px solid #b09b82;
  color: #4f423a;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

#sponsors .btn-outline:hover{
  background: #b09b82;
  color: #ffffff;
  border-color: #b09b82;
}

#sponsors .btn-outline i{
  font-size: 1rem;
  transition: transform 0.2s;
}

#sponsors .btn-outline:hover i{
  transform: translateX(3px);
}

/* decorative leaves */
#sponsors .leaf-decor{
  position: absolute;
  width: 200px;
  height: 200px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23baceaa" opacity="0.15"><path d="M50 10c-8 20-25 30-30 45 5 10 20 15 30 15 15 0 30-8 35-20-5-15-25-25-35-40z"/></svg>') no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

#sponsors .leaf-1{
  top: 10px;
  right: 0;
  transform: rotate(20deg);
}

#sponsors .leaf-2{
  bottom: 10px;
  left: 0;
  transform: rotate(-15deg) scaleX(-1);
}

#sponsors .superfood-cta{
  margin-top: 4rem;
  text-align: center;
  border-radius: 60px;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, #e7e3d9, #f0ede5);
  box-shadow: inset 0 1px 5px rgba(255,255,255,0.8), 0 15px 25px -10px rgba(60, 60, 40, 0.15);
  position: relative;
  z-index: 10;
}

#sponsors .superfood-cta h3{
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  color: #3b5e3b;
  margin-bottom: 0.5rem;
}

#sponsors .superfood-cta p{
  font-size: 0.9rem;
  color: #6c635a;
  max-width: 450px;
  margin: 0 auto 1.5rem;
}

#sponsors .btn-primary{
  background: #5e7a5e;
  border: none;
  color: #ffffff;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 15px -6px rgba(0,0,0,0.2);
  text-decoration: none;
  display: inline-block;
}

#sponsors .btn-primary:hover{
  background: #4a614a;
  transform: scale(1.01);
}

@media (max-width: 700px){
  #sponsors .superfoods-section{ padding: 3rem 1rem; }
  #sponsors .product-grid{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
  #sponsors .product-info{ padding: 1rem 0.8rem 1.2rem; }
  #sponsors .product-name{ font-size: 1.2rem; }
  #sponsors .product-price{ font-size: 1.2rem; }
  #sponsors .btn-outline{ padding: 0.3rem 0.8rem; font-size: 0.65rem; }
}

/* ============================================================
   QUIZ — RAINFOREST EXPLORER (scoped)
   ============================================================ */
#quiz{
  position: relative;
}

#quiz .container{
  max-width: 1320px;
}

#quiz .story-toggle{
  max-width: 76ch;
  margin: 0 auto 1.75rem;
}

#quiz .story-toggle__text{
  text-align: center;
}

#quiz .ngk-quiz-shell{
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 223, 125, 0.24);
  background:
    radial-gradient(circle at top, rgba(255, 226, 136, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 232, 0.98), rgba(248, 241, 214, 0.98));
}

#quiz .ngk-quiz-header{
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #ffcf2f 0%, #f7be21 100%);
  border-bottom: 5px solid #d07b19;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

#quiz .ngk-quiz-header__inner{
  text-align: center;
  padding: 1.8rem 1.2rem 1.5rem;
}

#quiz .ngk-quiz-title{
  margin: 0;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #2c3e50;
  text-shadow: 2px 2px 0 #f39c12;
  letter-spacing: 0.08em;
}

#quiz .ngk-quiz-header p{
  margin: 0.45rem 0 0;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-size: 1.08rem;
  color: #2c3e50;
}

#quiz .ngk-quiz-main{
  padding: 2rem 1.35rem 1.7rem;
}

#quiz .ngk-quiz-card{
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 30px;
  padding: 1.8rem;
  box-shadow: 0 10px 0 #c7b59e, 0 14px 30px rgba(0,0,0,0.16);
  border: 3px solid #e67e22;
}

#quiz .ngk-quiz-topbar{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

#quiz .ngk-score-badge,
#quiz .ngk-progress-badge{
  background: #fff5cf;
  color: #64451f;
  border: 2px solid #efb531;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(191, 135, 24, 0.48);
}

#quiz .ngk-question-header{
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  background: #edf5d7;
  padding: 15px 20px;
  border-radius: 50px;
  border: 2px dashed #7aa65a;
}

#quiz .ngk-question-number{
  background: #3f8c4f;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-size: 1.7rem;
  font-weight: bold;
  border: 3px solid white;
  box-shadow: 0 4px 0 #2b6036;
  flex-shrink: 0;
}

#quiz .ngk-question-text{
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: #284f2f;
  font-weight: bold;
}

#quiz .ngk-animal-image{
  text-align: center;
  margin: 25px 0;
  background: linear-gradient(180deg, #eff4e8 0%, #e5efdb 100%);
  padding: 18px;
  border-radius: 36px;
  border: 3px solid #d6c058;
}

#quiz .ngk-animal-image img{
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 20px;
  border: 5px solid white;
  box-shadow: 0 6px 0 #b7950b;
}

#quiz .ngk-image-caption{
  margin-top: 10px;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-style: italic;
  color: #6c7c62;
  font-size: 0.95rem;
}

#quiz .ngk-options-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0 22px;
}

#quiz .ngk-option-btn{
  background: #f39c12;
  border: none;
  padding: 20px 15px;
  border-radius: 60px;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.1s ease, border-bottom-width 0.1s ease, opacity 0.1s ease;
  border-bottom: 6px solid #b86d0e;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: left;
}

#quiz .ngk-option-btn:hover:not(:disabled){
  background: #f1c40f;
  transform: translateY(-2px);
  border-bottom-width: 8px;
}

#quiz .ngk-option-btn:active:not(:disabled){
  transform: translateY(4px);
  border-bottom-width: 2px;
}

#quiz .ngk-option-btn.correct{
  background: #2ecc71;
  border-bottom-color: #1e8b4c;
}

#quiz .ngk-option-btn.incorrect{
  background: #e74c3c;
  border-bottom-color: #a8231a;
  opacity: 0.84;
}

#quiz .ngk-option-btn.dimmed{
  opacity: 0.62;
}

#quiz .ngk-option-btn:disabled{
  cursor: default;
}

#quiz .ngk-feedback-banner{
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-weight: 700;
}

#quiz .ngk-feedback-banner.is-correct{
  background: #e6f8ec;
  color: #1f6b38;
  border: 2px solid #79c997;
}

#quiz .ngk-feedback-banner.is-incorrect{
  background: #fdecea;
  color: #9d2f23;
  border: 2px solid #f1a29a;
}

#quiz .ngk-fun-fact{
  background: #dff4db;
  border-left: 10px solid #4d9b50;
  padding: 18px 20px;
  border-radius: 20px;
  margin: 18px 0 25px;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-size: 1.08rem;
  border: 2px solid #75ba78;
  color: #2f4e2f;
}

#quiz .ngk-fun-fact strong{
  color: #2f7b35;
  font-size: 1.16rem;
  margin-right: 0.35rem;
}

#quiz .ngk-nav-buttons{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 30px;
}

#quiz .ngk-nav-btn{
  background: #95a5a6;
  border: none;
  padding: 15px 30px;
  border-radius: 40px;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  border-bottom: 5px solid #7f8c8d;
  transition: transform 0.1s ease, border-bottom-width 0.1s ease, opacity 0.1s ease;
}

#quiz .ngk-nav-btn:active:not(:disabled){
  transform: translateY(4px);
  border-bottom-width: 1px;
}

#quiz .ngk-nav-btn--next{
  background: #e67e22;
  border-bottom-color: #b85e0a;
}

#quiz .ngk-nav-btn:disabled{
  opacity: 0.48;
  cursor: default;
}

#quiz .ngk-quiz-footer{
  text-align: center;
  margin-top: 1.4rem;
  color: #8f8f80;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  font-size: 0.92rem;
}

@media (max-width: 760px){
  #quiz .ngk-quiz-card{
    padding: 1.25rem;
  }

  #quiz .ngk-options-grid{
    grid-template-columns: 1fr;
  }

  #quiz .ngk-nav-buttons{
    flex-direction: column;
  }

  #quiz .ngk-nav-btn{
    width: 100%;
  }
}

@media (max-width: 560px){
  #quiz .ngk-quiz-main{
    padding: 1.1rem 0.8rem 1.2rem;
  }

  #quiz .ngk-question-header{
    padding: 14px;
    border-radius: 24px;
    align-items: flex-start;
  }

  #quiz .ngk-question-number{
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  #quiz .ngk-option-btn{
    font-size: 1.08rem;
  }
}

/* ============================================================
   DRAWINGS — INDIGENOUS GALLERY (SCOPED)
   ============================================================ */
#drawings { position: relative; }

/* Local progress bar (drawings only) */
#drawings .drawings-progress{
  position: sticky; top: 0;
  height: 3px; width: 100%;
  margin: 0 0 1.25rem 0;
  background: rgba(255,220,120,0.25);
  z-index: 3;
  border-radius: 999px;
  overflow: hidden;
}
#drawings .drawings-progress-fill{
  width: 0%; height: 100%;
  background: linear-gradient(90deg,#ffd27a,#7dffb2);
  box-shadow: 0 0 12px rgba(255,210,120,0.55);
}

/* Header */
#drawings .drawings-hero{
  text-align: center;
  padding: 1.25rem 0 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg,
    rgba(255,248,210,0.55) 0%,
    rgba(210,255,215,0.20) 45%,
    rgba(255,255,255,0.00) 100%
  );
}
#drawings .drawings-title{
  font-family:"Playfair Display","Cormorant Garamond",serif;
  font-weight:800;
  font-size:clamp(2.5rem,6vw,4.4rem);
  letter-spacing:0.035em;
  text-transform:uppercase;
  line-height:0.92;

  color:#1b3f20;
  text-shadow:
    0 2px 0 rgba(255,255,255,0.45),
    0 10px 24px rgba(38,88,41,0.18),
    0 0 22px rgba(199,150,75,0.20);
}
#drawings .drawings-title .char{ display:inline-block; }
#drawings .drawings-subtext{
  max-width:820px;
  margin:0.75rem auto 0;
  color:rgba(20,45,20,0.82);
}

/* Scroll hint */
#drawings .drawings-scroll-hint{
  margin-top:1rem;
  font-size:0.80rem;
  text-transform:uppercase;
  letter-spacing:0.26em;
  color:rgba(20,45,20,0.70);
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:0.45rem;
}
#drawings .drawings-scroll-hint i{
  animation:drawings-bounce 2s infinite;
  color:rgba(30,90,40,0.85);
  filter:drop-shadow(0 8px 16px rgba(255,255,255,0.35));
}
@keyframes drawings-bounce{
  0%,20%,50%,80%,100%{transform:translateY(0);}
  40%{transform:translateY(-8px);}
  60%{transform:translateY(-4px);}
}

/* Grid */
#drawings .drawings-gallery{ margin:2rem auto 3rem; }
#drawings .drawings-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.75rem;
}

/* Card */
#drawings .drawings-card{
  background:#fffbf2;
  border-radius:1.25rem;
  overflow:hidden;
  box-shadow:0 18px 36px -22px rgba(0,80,30,0.35);
  border:1px solid rgba(40,110,60,0.18);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position:relative;
  opacity:0;
  transform:translateY(40px);
}
#drawings .drawings-card::after{
  content:"";
  position:absolute;
  top:10px; right:10px;
  width:24px; height:24px;
  opacity:0.35; pointer-events:none;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c6a39" opacity="0.22"><path d="M12,2 C9,2 6,4 6,7 C6,10 12,17 12,17 C12,17 18,10 18,7 C18,4 15,2 12,2 Z M12,9 C10.9,9 10,8.1 10,7 C10,5.9 10.9,5 12,5 C13.1,5 14,5.9 14,7 C14,8.1 13.1,9 12,9 Z"/></svg>') no-repeat center;
  background-size:contain;
}
#drawings .drawings-card:hover{
  transform:translateY(-8px);
  box-shadow:0 28px 50px -26px rgba(0,90,40,0.45);
  border-color:rgba(30,130,70,0.30);
}
#drawings .drawings-card-image{
  width:100%;
  height:320px;
  overflow:hidden;
  position:relative;
  cursor:pointer;
}
#drawings .drawings-card-image img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
  transition:transform .5s cubic-bezier(.2,.9,.3,1);
}
#drawings .drawings-card:hover .drawings-card-image img{ transform:scale(1.05); }

#drawings .drawings-card-text{
  padding:1.25rem 1.25rem 1.35rem;
  background:#fffbf2;
}
#drawings .drawings-card-text h3{
  font-family:"Cormorant Garamond",serif;
  font-size:1.55rem;
  font-weight:600;
  color:#2a6b2f;
  margin:0 0 .25rem;
}
#drawings .drawings-card-text .artist{
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.11em;
  color:#7a8569;
  margin-bottom:0.55rem;
}
#drawings .drawings-card-text .description{
  font-size:0.95rem;
  color:#3f5c3f;
  line-height:1.5;
}

/* Outtro */
#drawings .drawings-outtro{
  text-align:center;
  padding:3.75rem 1.5rem;
  background:rgba(220,245,215,0.55);
  border-top:4px solid rgba(120,190,120,0.55);
  border-bottom:4px solid rgba(120,190,120,0.55);
  border-radius:18px;
  backdrop-filter:blur(6px);
}
#drawings .drawings-outtro h3{
  font-family:"Cormorant Garamond",serif;
  font-size:clamp(2.0rem,5vw,2.75rem);
  color:#1f4a26;
  margin-bottom:0.75rem;
  opacity:0;
  transform:translateY(50px);
}
#drawings .drawings-outtro p{
  font-size:1.05rem;
  color:#2e5a34;
  max-width:700px;
  margin:0 auto 1.6rem;
  opacity:0;
  transform:translateY(30px);
}
#drawings .drawings-btn{
  text-decoration:none;
  background:transparent;
  border:2px solid #1f4a26;
  color:#1f4a26;
  padding:0.75rem 2.2rem;
  border-radius:3rem;
  font-size:0.98rem;
  font-weight:700;
  letter-spacing:0.10em;
  text-transform:uppercase;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:0.75rem;
  transition:all 0.3s;
  opacity:0;
  transform:scale(0.9);
}
#drawings .drawings-btn:hover{
  background:#1f4a26;
  color:#f6ffe9;
}

/* ============================================================
   DRAWINGS MODAL — centered image + overlaid caption
   ============================================================ */
.drawings-modal{
  position: fixed;
  inset: 0;
  z-index: 2501;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(30, 25, 20, 0.95);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawings-modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawings-modal__content{
  position: relative;
  max-width: min(92vw, 980px);
  max-height: 92vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.drawings-modal__image{
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
  border: 3px solid #9c7e5c;
}

.drawings-modal__caption{
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  text-align: center;
  color: #f0e2d0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  padding: 1rem;
  border-radius: 0.5rem;
  pointer-events: none;
}

.drawings-modal__caption h4{
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  color: #f5ede0;
  margin: 0;
}

.drawings-modal__caption p{
  font-size: 1rem;
  color: #d4c8b0;
  margin: 0.25rem 0 0;
}

.drawings-modal__close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2510;
  background: none;
  border: none;
  color: #f5ede0;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.drawings-modal__close:hover{
  transform: scale(1.2);
  color: #c4a582;
}

@media (max-width: 600px){
  .drawings-modal__close{ top: 10px; right: 10px; }
}

/* Responsive */
@media (max-width:1000px){
  #drawings .drawings-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  #drawings .drawings-grid{ grid-template-columns:1fr; }
  #drawings .drawings-card-image{ height:280px; }
}

/* Scroll lock for modals (Drawings simplified lightbox) */
body.modal-open{ overflow: hidden; }

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   SUPERFOODS MODAL — image zoom
   ============================================================ */
.superfoods-modal {
  position: fixed;
  inset: 0;
  z-index: 2600; /* above other modals if needed */
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.superfoods-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.superfoods-modal.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.superfoods-modal.is-visible .superfoods-modal__overlay {
  opacity: 1;
}

.superfoods-modal__content {
  position: relative;
  z-index: 2610;
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.7);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.superfoods-modal.is-visible .superfoods-modal__content {
  transform: scale(1);
  opacity: 1;
}

.superfoods-modal__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #f5f3f0;
}

.superfoods-modal__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.superfoods-modal__caption h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin: 0 0 0.25rem;
  color: #f5ede0;
}

.superfoods-modal__caption p {
  font-size: 1rem;
  margin: 0;
  color: #d4c8b0;
}

.superfoods-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2620;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 2.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.superfoods-modal__close:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
  border-color: #ffd78c;
}

@media (max-width: 600px) {
  .superfoods-modal__caption h4 { font-size: 1.3rem; }
  .superfoods-modal__close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 2rem; }
}

/* ============================================================
   PLANTTREE — RIOTERRA + PLANT A TREE (scoped, collision-proof)
   ============================================================ */

#planttree{
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

#planttree .container{
  max-width: 1320px;
}

#planttree .pt-heroBadge{
  text-align: center;
  margin-bottom: 1.8rem;
}

#planttree .pt-heroBadge span{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  background: rgba(255, 220, 150, 0.10);
  border: 1px solid rgba(255, 220, 150, 0.28);
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
  color: rgba(248, 241, 220, 0.94);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

#planttree .pt-heroBadge i{
  color: rgba(170, 255, 210, 0.88);
}

/* ============================================================
   PLANTTREE — CINEMATIC PURCHASE INTRO
   - Scoped only to #planttree
   - Large display typography before RIOTERRA
   ============================================================ */
#planttree .pt-introLede{
  position: relative;
  isolation: isolate;
  max-width: 1180px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4.4vw, 4rem) clamp(1rem, 4vw, 3.25rem);
  text-align: center;
  border-radius: clamp(26px, 4vw, 46px);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 230, 150, 0.22), transparent 38%),
    radial-gradient(circle at 20% 20%, rgba(115, 255, 180, 0.16), transparent 36%),
    radial-gradient(circle at 84% 72%, rgba(37, 150, 88, 0.24), transparent 45%),
    linear-gradient(145deg, rgba(5, 18, 11, 0.86), rgba(10, 35, 19, 0.70) 46%, rgba(4, 11, 7, 0.88));
  border: 1px solid rgba(185, 255, 215, 0.22);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 220, 150, 0.10);
  overflow: hidden;
}

#planttree .pt-introLede::before{
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255, 220, 150, 0.13);
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 220, 150, 0.08) 50%, transparent 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 15px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,0.65));
  pointer-events: none;
}

#planttree .pt-introLede::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(720px, 82%);
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(129, 255, 180, 0.86), rgba(255, 224, 138, 0.92), transparent);
  box-shadow: 0 0 34px rgba(129, 255, 180, 0.28);
  pointer-events: none;
}

#planttree .pt-introKicker{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: clamp(1rem, 2.2vw, 1.55rem);
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 220, 150, 0.09);
  border: 1px solid rgba(255, 220, 150, 0.24);
  color: rgba(255, 239, 196, 0.96);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0,0,0,0.24);
}

#planttree .pt-introKicker i{
  color: rgba(130, 255, 182, 0.95);
  filter: drop-shadow(0 0 10px rgba(130, 255, 182, 0.32));
}

#planttree .pt-introQuestion{
  margin: 0;
  display: grid;
  gap: 0.08em;
  justify-items: center;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.84;
}

#planttree .pt-introQuestionLine{
  display: block;
  font-size: clamp(2.15rem, 6.2vw, 5.15rem);
  letter-spacing: 0.075em;
  color: rgba(252, 247, 226, 0.96);
  text-shadow:
    0 10px 34px rgba(0,0,0,0.46),
    0 0 22px rgba(255, 220, 150, 0.12);
}

#planttree .pt-introQuestionMain{
  display: block;
  font-size: clamp(4.8rem, 13.6vw, 12rem);
  letter-spacing: 0.035em;
  line-height: 0.78;
  background: linear-gradient(180deg, #fff9df 0%, #ffe08a 24%, #8effb2 72%, #1ed072 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 248, 221, 0.16);
  text-shadow:
    0 0 22px rgba(142, 255, 178, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.58);
  filter: drop-shadow(0 0 24px rgba(129, 255, 180, 0.16));
}

#planttree .pt-introPartner{
  max-width: 850px;
  margin: clamp(1.3rem, 2.8vw, 2rem) auto 0;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  line-height: 1.55;
  font-weight: 600;
  color: rgba(229, 244, 232, 0.88);
  text-shadow: 0 10px 28px rgba(0,0,0,0.30);
}

#planttree .pt-introPartner strong{
  color: rgba(255, 225, 138, 0.98);
  font-weight: 900;
  letter-spacing: 0.02em;
}

#planttree .pt-introActions{
  display: flex;
  justify-content: center;
  margin-top: clamp(1.35rem, 2.6vw, 2.15rem);
}

#planttree .pt-introCheckoutBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 54px;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: #102114;
  background: linear-gradient(135deg, #fff0a8, #8effb2 58%, #41de86);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.32),
    0 0 28px rgba(142,255,178,0.13);
  font-size: 0.92rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

#planttree .pt-introCheckoutBtn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 24px 52px rgba(0,0,0,0.38),
    0 0 38px rgba(142,255,178,0.21);
}

@media (prefers-reduced-motion: no-preference){
  #planttree .pt-introQuestionMain{
    animation: ptTreePulse 4.8s ease-in-out infinite;
  }
}

@keyframes ptTreePulse{
  0%, 100%{ filter: drop-shadow(0 0 18px rgba(129, 255, 180, 0.12)); }
  50%{ filter: drop-shadow(0 0 34px rgba(129, 255, 180, 0.32)); }
}

@media (max-width: 640px){
  #planttree .pt-introLede{
    border-radius: 24px;
    padding: 2rem 0.85rem;
  }

  #planttree .pt-introKicker{
    letter-spacing: 0.14em;
  }

  #planttree .pt-introQuestionLine{
    letter-spacing: 0.035em;
  }

  #planttree .pt-introQuestionMain{
    font-size: clamp(4.1rem, 20vw, 6.7rem);
    letter-spacing: 0.01em;
    -webkit-text-stroke-width: 0.5px;
  }

  #planttree .pt-introCheckoutBtn{
    width: min(100%, 340px);
  }
}


#planttree .pt-heroTitle{
  margin: 0 0 1rem 0;
  text-align: center;
  left: auto;
  transform: none;
  width: auto;
  display: block;
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: none;
  white-space: normal;
  background: linear-gradient(135deg, #ffffff 0%, #e6c87e 68%, #8effb2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

#planttree .pt-heroTitle::after{
  display: none;
}

#planttree .pt-heroSub{
  max-width: 880px;
  margin: 0 auto 2.4rem;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: rgba(224, 235, 223, 0.82);
}

#planttree .pt-heroSub strong{
  color: rgba(247, 233, 195, 0.95);
  font-weight: 700;
}

#planttree .pt-axesGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 3rem 0 2rem;
}

#planttree .pt-axisCard{
  background:
    linear-gradient(145deg, rgba(20, 28, 20, 0.72), rgba(5, 10, 7, 0.88));
  border-radius: 2rem;
  border: 1px solid rgba(255, 220, 150, 0.18);
  padding: 2rem 1.8rem;
  box-shadow: 0 16px 34px rgba(0,0,0,0.30);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

#planttree .pt-axisCard:hover{
  transform: translateY(-8px);
  border-color: rgba(255, 220, 150, 0.42);
  box-shadow: 0 26px 50px rgba(0,0,0,0.42);
}

#planttree .pt-axisIcon{
  font-size: 2.6rem;
  color: rgba(255, 220, 150, 0.92);
  margin-bottom: 1rem;
}

#planttree .pt-axisTitle{
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.15;
  color: rgba(248, 236, 205, 0.96);
  margin-bottom: 0.8rem;
  text-transform: none;
}

#planttree .pt-axisDescription{
  font-size: 0.98rem;
  line-height: 1.68;
  color: rgba(234, 239, 229, 0.84);
}

#planttree .pt-axisQuote{
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(255, 220, 150, 0.70);
  font-size: 0.9rem;
  line-height: 1.65;
  font-style: italic;
  color: rgba(224, 208, 176, 0.88);
}

#planttree .pt-axisStat{
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-top: 0.9rem;
  margin-top: 1rem;
  border-top: 1px dashed rgba(255, 220, 150, 0.22);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(236, 241, 232, 0.88);
}

#planttree .pt-axisStat i{
  color: rgba(255, 220, 150, 0.92);
  margin-top: 0.1rem;
}

#planttree .pt-heroNote{
  margin: 2rem 0 1.4rem;
  padding: 1.6rem;
  text-align: center;
  border-radius: 2rem;
  border: 1px solid rgba(170,255,210,0.22);
  background:
    radial-gradient(circle at 20% 30%, rgba(142,255,178,0.08), transparent 48%),
    linear-gradient(180deg, rgba(12,18,12,0.60), rgba(8,12,8,0.68));
}

#planttree .pt-heroNote p{
  margin: 0;
  color: rgba(244, 239, 225, 0.94);
}

#planttree .pt-heroNote i{
  margin-right: 0.45rem;
  color: rgba(142,255,178,0.88);
}

#planttree .pt-heroNote strong{
  color: rgba(249, 236, 199, 0.96);
}

#planttree .pt-heroNoteMeta{
  margin-top: 0.65rem !important;
  font-size: 0.88rem;
  color: rgba(215, 227, 217, 0.80) !important;
}

#planttree .pt-heroNote--closing{
  margin-top: 2rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(230,200,126,0.08), transparent 48%),
    linear-gradient(180deg, rgba(12,18,12,0.60), rgba(8,12,8,0.68));
  border-color: rgba(255, 220, 150, 0.24);
}

#planttree .pt-highlightRow{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.8rem 0 3rem;
}

#planttree .pt-highlightPill{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(242, 241, 230, 0.88);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

#planttree .pt-highlightPill i{
  color: rgba(255, 220, 150, 0.92);
}

#planttree .pt-plantingHeader{
  margin: 0 0 0.6rem;
  text-align: center;
}

#planttree .pt-plantingTitle{
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: rgba(255, 220, 150, 0.94);
  text-transform: none;
  margin: 0;
}

#planttree .pt-plantingTitle i{
  margin-right: 0.75rem;
  color: rgba(170,255,210,0.90);
}

#planttree .pt-lede{
  max-width: 72ch;
  margin: 0 auto;
  color: rgba(240, 246, 255, 0.78);
}

#planttree .pt-projectsGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 3rem;
}

#planttree .pt-projectCard{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(142,255,178,0.20);
  background: rgba(8, 18, 12, 0.68);
  backdrop-filter: blur(4px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.30);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

#planttree .pt-projectCard:hover{
  transform: translateY(-12px) scale(1.01);
  border-color: rgba(142,255,178,0.44);
  box-shadow: 0 26px 50px rgba(0,0,0,0.42);
}

#planttree .pt-projectImage{
  height: 260px;
  overflow: hidden;
  background: rgba(0,0,0,0.12);
}

#planttree .pt-projectImage img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

#planttree .pt-projectCard:hover .pt-projectImage img{
  transform: scale(1.08);
}

#planttree .pt-projectContent{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.8rem;
}

#planttree .pt-projectTitle{
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  color: rgba(202, 255, 208, 0.94);
  margin: 0 0 0.45rem;
  text-transform: none;
}

#planttree .pt-projectSpecies{
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 220, 150, 0.88);
  border-left: 3px solid rgba(142,255,178,0.78);
  padding-left: 0.8rem;
  margin-bottom: 0.9rem;
}

#planttree .pt-projectDescription{
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(220, 229, 220, 0.78);
  margin-bottom: 1.2rem;
}

#planttree .pt-projectImpact{
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.85rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: rgba(0,0,0,0.35);
}

#planttree .pt-impactItem{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(243, 244, 233, 0.88);
}

#planttree .pt-impactItem i{
  color: rgba(255, 220, 150, 0.92);
}

#planttree .pt-projectCounter{
  padding-top: 0.9rem;
  margin-bottom: 1rem;
  border-top: 1px dashed rgba(142,255,178,0.24);
  color: rgba(234, 240, 230, 0.86);
  font-weight: 600;
}

#planttree .pt-counterNumber{
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(142,255,178,0.96);
  margin-right: 0.3rem;
}

#planttree .pt-projectBtn{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  align-self: flex-start;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(250, 246, 230, 0.96);
  background: rgba(30, 55, 40, 0.92);
  border: 1px solid rgba(142,255,178,0.70);
  transition: transform 0.18s ease, gap 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#planttree .pt-projectBtn:hover{
  transform: translateY(-2px);
  gap: 0.9rem;
  background: rgba(43, 110, 71, 0.98);
  border-color: rgba(255, 220, 150, 0.82);
}

#planttree .pt-photoStoryIntro{
  margin: 0 0 1.25rem;
  text-align: center;
}

#planttree .pt-photoStoryText{
  max-width: 820px;
  margin: 0.7rem auto 0;
  color: rgba(224, 235, 223, 0.78);
  line-height: 1.72;
}

#planttree .pt-block{
  margin: 0 0 3.2rem 0;
}

#planttree .pt-grid{
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

#planttree .pt-grid--2{
  grid-template-columns: 1fr 1fr;
}

#planttree .pt-grid--flip{
  direction: rtl;
}

#planttree .pt-grid--flip .pt-card{
  direction: ltr;
}

#planttree .pt-card{
  border-radius: 2.2rem;
  border: 1px solid var(--bio-border);
  box-shadow: var(--shadow-soft);
}

#planttree .pt-copy{
  padding: 2.4rem 2.2rem;
  background:
    linear-gradient(180deg, rgba(255,235,190,0.10), rgba(255,220,150,0.04)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(circle at 85% 75%, rgba(0,0,0,0.18), transparent 55%),
    var(--bio-panel);
}

#planttree .pt-media{
  padding: 0;
  overflow: hidden;
  background: var(--bio-panel2);
}

#planttree .pt-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2.2rem;
  filter: saturate(1.05) contrast(1.02);
  transform: translateZ(0);
}

#planttree .pt-h3{
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  color: rgba(210, 255, 220, 0.94);
  text-transform: none;
}

#planttree .pt-copy p{
  font-size: 1.05rem;
  line-height: 1.72;
  color: rgba(240, 246, 255, 0.82);
  margin-bottom: 0.9rem;
}

#planttree .pt-muted{
  color: rgba(235, 245, 238, 0.68);
}

#planttree .pt-strong{
  color: rgba(255, 235, 190, 0.88);
  font-weight: 700;
}

#planttree .pt-sectionTitle{
  margin: 0 0 1.2rem 0;
  text-align: center;
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: rgba(255, 235, 190, 0.94);
  text-transform: none;
}

#planttree .pt-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

#planttree .pt-stat{
  padding: 2.2rem 1.6rem;
  text-align: center;
  border-radius: 2.4rem;
  border: 1px solid rgba(255, 220, 150, 0.18);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.09), transparent 60%),
    linear-gradient(180deg, rgba(255,235,190,0.08), rgba(10,16,12,0.35)),
    rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.55);
}

#planttree .pt-statNumber{
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.35rem;
  color: rgba(170, 255, 210, 0.96);
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

#planttree .pt-statLabel{
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 235, 190, 0.82);
}

#planttree .pt-cta{
  margin-top: 3rem;
  padding: 3.2rem 2.4rem;
  border-radius: 3.2rem;
  text-align: center;
  border: 1px solid rgba(255, 220, 150, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,220,150,0.12), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(120,255,200,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,235,190,0.10), rgba(10,16,12,0.55)),
    var(--bio-panel2);
  box-shadow: var(--shadow);
}

#planttree .pt-ctaTitle{
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  color: rgba(255, 235, 190, 0.96);
  text-transform: none;
}

#planttree .pt-ctaText{
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(240, 246, 255, 0.82);
  max-width: 64ch;
  margin: 0 auto 1.6rem auto;
}

#planttree .pt-button{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(10, 16, 12, 0.95);
  background: linear-gradient(135deg, rgba(170,255,210,0.95), rgba(255,235,190,0.92));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 38px rgba(0,0,0,0.55);
  transition: transform 0.18s ease, filter 0.18s ease;
}

#planttree .pt-button:hover{
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
}

#planttree .pt-button:active{
  transform: translateY(0);
}

@media (max-width: 1100px){
  #planttree .pt-axesGrid,
  #planttree .pt-projectsGrid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  #planttree .pt-grid--2,
  #planttree .pt-stats{
    grid-template-columns: 1fr;
  }

  #planttree .pt-copy{
    padding: 2rem 1.6rem;
  }

  #planttree .pt-cta{
    padding: 2.6rem 1.6rem;
    border-radius: 2.6rem;
  }

  #planttree .pt-highlightPill{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px){
  #planttree .pt-projectImage{
    height: 220px;
  }

  #planttree .pt-projectContent{
    padding: 1.45rem;
  }
}


/* ============================================================
   MAPS SECTION — EARTH.VISION (SCOPED TO #maps)
   ============================================================ */
#maps{
  --bio-panel: rgba(11, 20, 13, 0.78);
  --bio-panel2: rgba(18, 28, 18, 0.66);
  --bio-border: rgba(190, 210, 150, 0.18);
  --bio-border-strong: rgba(210, 224, 166, 0.30);
  --bio-haze-a: rgba(132, 172, 86, 0.07);
  --bio-haze-b: rgba(205, 175, 104, 0.06);
  --bio-haze-c: rgba(88, 130, 78, 0.05);
}

#maps .geo-section{
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(12, 24, 16, 0.86), rgba(14, 28, 18, 0.74)),
    radial-gradient(circle at top, rgba(205, 175, 104, 0.08), transparent 48%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 3rem 3rem 2rem 2rem;
  padding: 2.5rem 2rem;
  box-shadow:
    0 30px 40px -20px rgba(0,0,0,0.85),
    0 0 0 1px rgba(197, 208, 154, 0.16) inset,
    0 0 32px rgba(112, 144, 83, 0.15);
  border: 1px solid rgba(199, 205, 152, 0.18);
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

#maps .geo-header{
  text-align: center;
  margin-bottom: 2.5rem;
}

#maps .geo-header h1,
#maps .geo-header h2{
  margin: 0 0 0.5rem;
  font: 700 clamp(3rem, 6vw, 5.35rem)/0.95 'Playfair Display', serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  background: linear-gradient(145deg, #f8efd2, #d7bd72, #79a86a);
  -webkit-background-clip: text;
  background-clip: text;
  color: #f8efd2;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 0 18px rgba(179, 151, 89, 0.18));
}

#maps .geo-header h1 i,
#maps .geo-header h2 i{
  margin-right: 0.9rem;
  filter: drop-shadow(0 0 10px rgba(194, 181, 115, 0.24));
}

#maps .geo-accent{ color: #d9d787; }

#maps .geo-header p{
  color: rgba(217, 222, 192, 0.86);
  font-size: 1.05rem;
  letter-spacing: 2px;
  font-weight: 400;
  text-shadow: 0 0 10px rgba(95, 120, 72, 0.16);
}

#maps .map-zoom-container{
  position: relative;
  width: 100%;
  margin: 2rem 0 3rem;
  border-radius: 2rem;
  overflow: hidden;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.34));
  border: 2px solid rgba(191, 199, 138, 0.24);
  aspect-ratio: 2 / 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(110, 136, 85, 0.16), transparent 46%),
    #0d1811;
}

#maps .map-pan{
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}

#maps .map-image,
#maps .map-image-detailed{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#maps .map-image{
  object-fit: cover;
  filter: grayscale(0.55) sepia(0.18) brightness(0.70) contrast(1.16)
          drop-shadow(0 0 8px rgba(108, 136, 83, 0.20));
  transition: filter 0.3s ease;
}

#maps .map-image-detailed{
  opacity: 0;
  object-fit: cover;
  background: #132117;
  filter: saturate(0.92) contrast(1.03) brightness(0.98)
          drop-shadow(0 0 12px rgba(112, 144, 83, 0.18));
}

#maps .rainforest-image{
  opacity: 0;
  object-fit: contain;
  object-position: center center;
  background: #0d1811;
  filter: brightness(0.90) contrast(1.08) saturate(1.02);
}

#maps .pin{
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50% 50% 0 50%;
  transform: rotate(45deg) translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transform-origin: bottom right;
  z-index: 20;
}

#maps .pin i{
  transform: rotate(-45deg);
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.72));
  transition: transform 0.2s;
}

#maps .pin::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: inherit;
  opacity: 0.5;
  filter: blur(8px);
  z-index: -1;
}

#maps .pin[data-city="amazon"]{
  background: linear-gradient(135deg, rgba(112, 168, 83, 0.96), rgba(194, 178, 98, 0.92));
  box-shadow:
    0 0 0 4px rgba(139, 181, 98, 0.26),
    0 0 34px rgba(128, 171, 92, 0.44),
    0 0 72px rgba(194, 178, 98, 0.22);
  left: 33%;
  top: 63%;
}

#maps .pin-tooltip{
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  background: rgba(13, 24, 16, 0.96);
  color: rgba(244, 240, 223, 0.96);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  white-space: nowrap;
  border: 1px solid rgba(199, 195, 126, 0.34);
  box-shadow: 0 0 20px rgba(113, 142, 82, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease 0.1s, transform 0.2s ease;
  pointer-events: none;
  z-index: 50;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#maps .pin:hover .pin-tooltip{
  opacity: 1;
  transform: translateX(-50%) translateY(-8px) rotate(0deg);
}

#maps .pin:hover i{
  transform: rotate(-45deg) scale(1.1);
  color: #fff5c6;
}

#maps .highlight-amazon{
  position: absolute;
  left: 33%;
  top: 63%;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 179, 92, 0.34) 0%, rgba(198, 185, 108, 0.14) 45%, transparent 72%);
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  box-shadow: 0 0 50px rgba(123, 165, 90, 0.34);
  border: 2px solid rgba(196, 185, 108, 0.44);
}

#maps .stats-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 4rem;
  margin: 2.5rem 0 1rem;
}

#maps .stat-item{
  text-align: center;
  background: rgba(15, 28, 18, 0.60);
  border-radius: 3rem;
  padding: 1.2rem 2.5rem;
  border: 1px solid rgba(198, 205, 150, 0.20);
  box-shadow: 0 15px 25px -10px rgba(0,0,0,0.56), 0 0 24px rgba(102, 134, 77, 0.12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  min-width: 180px;
}

#maps .stat-number{
  font-size: 3.1rem;
  font-weight: 900;
  background: linear-gradient(145deg, #fff8df, #cad89a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  filter: drop-shadow(0 0 12px rgba(180, 175, 113, 0.20));
  letter-spacing: 4px;
}

#maps .stat-label{
  font-size: 1rem;
  text-transform: uppercase;
  color: rgba(223, 229, 204, 0.82);
  letter-spacing: 2px;
  font-weight: 400;
}

#maps .geo-footer{
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  color: rgba(193, 199, 176, 0.88);
  font-size: 0.92rem;
  gap: 2rem;
  flex-wrap: wrap;
}

#maps .geo-footer span i{
  color: #c6bb71;
  margin-right: 0.5rem;
  animation: maps-glow 2.8s infinite ease-in-out;
}

#maps .facts-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.35rem;
  margin: 2.4rem 0 1.4rem;
}

#maps .fact-card{
  background: rgba(13, 24, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.75rem;
  padding: 1.4rem 1.35rem;
  width: min(100%, 260px);
  border: 1px solid rgba(199, 205, 152, 0.18);
  box-shadow: 0 15px 25px -10px rgba(0,0,0,0.5);
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#maps .fact-card i{
  font-size: 2.1rem;
  color: #c8db88;
  filter: drop-shadow(0 0 8px rgba(200, 219, 136, 0.32));
  margin-bottom: 0.7rem;
}

#maps .fact-title{
  font-size: 1.06rem;
  font-weight: 800;
  color: rgba(250, 245, 226, 0.96);
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

#maps .fact-desc{
  font-size: 0.94rem;
  color: rgba(226, 233, 221, 0.78);
  line-height: 1.55;
}

#maps .fact-card:hover{
  transform: translateY(-5px);
  background: rgba(18, 34, 22, 0.82);
  border-color: rgba(199, 205, 152, 0.32);
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.7);
}

@keyframes maps-glow{
  0%, 100% { transform: translateY(0); opacity: 0.82; }
  50% { transform: translateY(-2px); opacity: 1; }
}

@media (max-width: 700px){
  #maps .geo-section{ padding: 2rem 1.25rem; border-radius: 2.2rem; }
  #maps .pin{ width: 1.5rem; height: 1.5rem; }
  #maps .pin i{ font-size: 0.9rem; }
  #maps .stat-number{ font-size: 2.5rem; }
  #maps .fact-card{ width: 100%; max-width: 320px; }
}



/* =========================================================
   GAMES — inline rainforest arcade
   ========================================================= */

#games{
  position: relative;
  padding: 96px 0 90px;
}

#games::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 20%, rgba(70, 156, 88, 0.16), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(248, 210, 111, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(4,16,9,0.16), rgba(4,16,9,0.04));
  pointer-events:none;
}

.games-shell{
  position: relative;
  z-index: 1;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(189, 235, 198, 0.18);
  background: linear-gradient(180deg, rgba(7, 20, 11, 0.78), rgba(9, 28, 15, 0.62));
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
  backdrop-filter: blur(10px);
}

.games-shell h2{
  margin-bottom: 12px;
}

.games-subtitle{
  max-width: 760px;
  margin-bottom: 24px;
}

.games-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 220px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(162, 219, 173, 0.12), rgba(39, 88, 53, 0.16)),
    rgba(10, 24, 15, 0.88);
  border: 1px solid rgba(181, 236, 196, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 44px rgba(0,0,0,0.22);
}

.game-card--soon{
  opacity: 0.78;
}

.game-card__meta h3{
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  color: #f3ebcf;
}

.game-card__meta p{
  margin: 0;
  color: rgba(242, 244, 236, 0.82);
  line-height: 1.6;
}

.game-card__btn{
  margin-top: 22px;
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 0.95rem/1 "Inter", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: #102515;
  background: linear-gradient(135deg, #f5d58d, #b5efb3);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.game-card__btn:hover,
.game-card__btn:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
  filter: saturate(1.08);
}

.game-card__btn--disabled,
.game-card__btn:disabled{
  cursor:not-allowed;
  opacity: 0.64;
  filter: grayscale(0.1);
}

body.games-modal-open{
  overflow:hidden;
}

.games-modal{
  position:fixed;
  inset:0;
  z-index: 250;
  display:grid;
  place-items:center;
  padding: 28px;
  opacity:1;
  visibility:visible;
  transition: opacity .22s ease, visibility .22s ease;
}

.games-modal[aria-hidden="true"]{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.games-modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(1,7,4,0.74);
  backdrop-filter: blur(9px);
}

.games-modal__content{
  position:relative;
  z-index:1;
  width:min(1040px, 100%);
  min-height:min(680px, calc(100vh - 40px));
  max-height:calc(100vh - 24px);
  border-radius: 28px;
  border: 1px solid rgba(194, 235, 205, 0.18);
  background: linear-gradient(180deg, rgba(5, 16, 10, 0.96), rgba(8, 26, 15, 0.96));
  box-shadow: 0 30px 90px rgba(0,0,0,0.42);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.games-modal__topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(194, 235, 205, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.games-modal__title{
  margin:0;
  color:#f4ebcf;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.games-modal__close{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(194,235,205,0.18);
  background: rgba(255,255,255,0.06);
  color:#fff6da;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}

.games-modal__close:hover{
  transform: scale(1.05);
  background: rgba(255,255,255,0.12);
}

.games-modal__stage{
  position: relative;
  flex:1;
  padding: clamp(16px, 2vw, 24px);
  overflow:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.inline-game{
  width:100%;
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.inline-game[hidden]{
  display:none !important;
}

.inline-game.is-active{
  display:flex;
}

.rf-game-title{
  margin: 0 0 18px;
  text-align:center;
  font-family:"Fredoka","Inter",sans-serif;
  color:#fff1c7;
  letter-spacing: 0.04em;
}

.rf-game-reset{
  display:block;
  margin: 20px auto 0;
  border:0;
  border-radius:999px;
  padding:12px 26px;
  font:700 0.96rem/1 "Fredoka","Inter",sans-serif;
  color:#14341c;
  background: linear-gradient(135deg, #f3cd7e, #c1ef9f);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  cursor:pointer;
}

/* Tic Tac Toe */
.rf-ttt{
  width:min(100%, 700px);
  margin: 0 auto;
  padding: clamp(18px, 2vw, 28px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 48, 28, 0.94), rgba(10, 30, 18, 0.94));
  border: 1px solid rgba(194, 235, 205, 0.16);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.rf-ttt__status{
  min-height: 30px;
  margin-bottom: 16px;
  text-align:center;
  font: 600 1.15rem/1.4 "Fredoka","Inter",sans-serif;
  color:#fff1c7;
}

.rf-ttt__board{
  display:grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 14px;
  max-width: 470px;
  margin: 0 auto;
}

.rf-ttt__cell{
  aspect-ratio:1/1;
  border:0;
  border-radius:22px;
  font: 700 clamp(2rem, 5vw, 4rem)/1 "Fredoka","Inter",sans-serif;
  color:#14341c;
  background: linear-gradient(145deg, #93ef91, #d7f6a9);
  box-shadow: 0 10px 0 #1d6e31, 0 18px 28px rgba(0,0,0,0.24);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.rf-ttt__cell:hover:not(:disabled){
  transform: translateY(-2px);
  filter:saturate(1.05);
}

.rf-ttt__cell:active:not(:disabled){
  transform: translateY(4px);
  box-shadow: 0 4px 0 #1d6e31, 0 10px 18px rgba(0,0,0,0.24);
}

.rf-ttt__cell--x{
  background: linear-gradient(145deg, #ffd96b, #fff0a6);
}

.rf-ttt__cell--o{
  background: linear-gradient(145deg, #ff74bf, #ffc1df);
  color:#fff8ef;
}

.rf-ttt__cell--winner{
  outline: 4px solid rgba(255, 213, 64, 0.95);
  animation: rfPulse .7s ease-in-out infinite alternate;
}

@keyframes rfPulse{
  from{ transform: scale(1); }
  to{ transform: scale(1.06); }
}

/* Word Search */
.rf-ws{
  width:min(100%, 680px);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 48, 28, 0.94), rgba(10, 30, 18, 0.94));
  border: 1px solid rgba(194, 235, 205, 0.16);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.rf-ws__grid{
  display:grid;
  grid-template-columns: repeat(8, minmax(0, 50px));
  justify-content:center;
  width:fit-content;
  max-width:100%;
  margin: 0 auto;
  gap: 4px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(4, 20, 10, 0.85);
  box-shadow: inset 0 0 0 1px rgba(183, 230, 193, 0.10), 0 16px 40px rgba(0,0,0,0.22);
}

.rf-ws__cell{
  display:grid;
  place-items:center;
  width:50px;
  aspect-ratio:1/1;
  border-radius: 12px;
  user-select:none;
  -webkit-user-select:none;
  font: 700 clamp(0.88rem, 1.55vw, 1.05rem)/1 "Fredoka","Inter",sans-serif;
  color:#14341c;
  background: linear-gradient(145deg, #95ef93, #d9f8ab);
  box-shadow: 0 4px 0 #1d6e31, 0 10px 16px rgba(0,0,0,0.22);
  touch-action:none;
}

.rf-ws__cell.is-selected{
  background: linear-gradient(145deg, #ffe26e, #fff2b5);
}

.rf-ws__cell.is-found{
  background: linear-gradient(145deg, #2f9957, #1f6a3f);
  color:#fff6da;
}

.rf-ws__words{
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(7, 22, 12, 0.72);
  border: 1px solid rgba(189, 235, 198, 0.12);
}

.rf-ws__words h2{
  margin: 0 0 14px;
  text-align:center;
  color:#fff1c7;
  font-family:"Fredoka","Inter",sans-serif;
  font-size:1.15rem;
}

.rf-ws__wordlist{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 12px;
}

.rf-ws__word{
  padding:8px 14px;
  border-radius:999px;
  background: rgba(147, 239, 145, 0.14);
  color:#f2f4ec;
  font: 700 0.92rem/1 "Inter",sans-serif;
  letter-spacing: 0.04em;
}

.rf-ws__word.is-found{
  background: rgba(255, 217, 107, 0.92);
  color:#16361d;
  text-decoration: line-through;
}

.rf-game-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.rf-game-exit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(194,235,205,0.18);
  border-radius:999px;
  padding:12px 22px;
  font:700 0.96rem/1 "Fredoka","Inter",sans-serif;
  color:#fff6da;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}

.rf-game-exit:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
}

@media (max-width: 980px){
  .games-grid{
    grid-template-columns:1fr;
  }

  .games-modal__content{
    min-height: calc(100vh - 24px);
  }
}

@media (max-width: 640px){
  #games{
    padding: 72px 0 66px;
  }

  .games-modal__stage{
    align-items:flex-start;
  }

  .rf-ttt,
  .rf-ws{
    width:100%;
    border-radius: 22px;
  }

  .games-shell{
    padding: 22px;
  }

  .games-modal{
    padding: 12px;
  }

  .games-modal__topbar{
    padding: 14px 16px;
  }

  .games-modal__stage{
    padding: 14px;
    place-items:center;
    align-content:center;
  }

  .rf-ttt__board{
    gap: 10px;
  }

  .rf-ws__grid{
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width:100%;
    gap: 4px;
    padding: 10px;
  }

  .rf-ws__cell{
    width:auto;
    min-width: 0;
  }

  .rf-game-actions{
    flex-direction:column;
  }
}


/* =========================================================
   GAMES PREMIUM UPGRADE — poster cards + intro state
   ========================================================= */
.games-shell{
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(126, 181, 109, 0.14), transparent 42%),
    radial-gradient(circle at bottom right, rgba(255, 204, 122, 0.10), transparent 38%),
    linear-gradient(180deg, rgba(7, 21, 13, 0.95), rgba(10, 32, 18, 0.94));
  border: 1px solid rgba(197, 231, 200, 0.16);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34);
}

.games-shell__header{
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.games-shell__eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 241, 205, 0.18);
  background: rgba(246, 232, 185, 0.08);
  color: #f3e7bb;
  font: 700 0.72rem/1 Inter, sans-serif;
  letter-spacing: 0.22em;
}

#games .games-shell h2{
  margin: 0;
  color: #f6eed4;
  font-size: clamp(2rem, 4vw, 3rem);
}

.games-subtitle{
  max-width: 680px;
  margin: 12px auto 0;
  color: rgba(240, 236, 223, 0.78);
}

.games-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.game-card{
  position: relative;
  min-height: 380px;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(237, 241, 226, 0.14);
  background: linear-gradient(180deg, rgba(10, 18, 13, 0.94), rgba(10, 18, 13, 0.75));
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.game-card:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 38px 78px rgba(0,0,0,0.34);
  border-color: rgba(245, 230, 185, 0.28);
}

.game-card__backdrop{
  position:absolute;
  inset:0;
  z-index:0;
}

.game-card__backdrop::before,
.game-card__backdrop::after{
  content:"";
  position:absolute;
  inset:0;
}

.game-card__backdrop::before{
  background:
    radial-gradient(circle at 24% 22%, rgba(255,255,255,0.20), transparent 0 20%),
    radial-gradient(circle at 68% 24%, rgba(255, 209, 102, 0.16), transparent 0 26%),
    radial-gradient(circle at 50% 100%, rgba(21, 51, 26, 0.72), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12));
  opacity: .95;
}

.game-card__backdrop::after{
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.62));
}

.game-card--ttt .game-card__backdrop{
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 215, 0, 0.34), transparent 20%),
    radial-gradient(circle at 78% 20%, rgba(255, 102, 163, 0.30), transparent 20%),
    linear-gradient(145deg, #245a2c 0%, #173d20 48%, #0c1f15 100%);
}

.game-card--ttt .game-card__backdrop::before{
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.16), transparent 0 18%),
    linear-gradient(90deg, transparent 49%, rgba(255,245,200,0.12) 49%, rgba(255,245,200,0.12) 51%, transparent 51%),
    linear-gradient(transparent 49%, rgba(255,245,200,0.12) 49%, rgba(255,245,200,0.12) 51%, transparent 51%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.22));
  background-size: auto, 34% 100%, 100% 34%, auto;
  background-position: center, center, center, center;
}

.game-card--wordsearch .game-card__backdrop{
  background:
    radial-gradient(circle at 18% 16%, rgba(171, 255, 177, 0.26), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(237, 221, 167, 0.22), transparent 20%),
    linear-gradient(145deg, #1d4f28 0%, #102d1b 55%, #0a1710 100%);
}

.game-card--wordsearch .game-card__backdrop::before{
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.22));
  background-size: 36px 36px, 36px 36px, auto;
  opacity: .9;
}

.game-card--soon .game-card__backdrop{
  background:
    radial-gradient(circle at 30% 22%, rgba(177, 212, 169, 0.18), transparent 22%),
    linear-gradient(145deg, #203224 0%, #121c15 60%, #09100c 100%);
}

.game-card__frame{
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(4,9,6,0.14) 36%, rgba(5,10,7,0.72) 100%);
}

.game-card__eyebrow{
  display:inline-flex;
  align-items:center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 235, 195, 0.12);
  border: 1px solid rgba(249, 235, 195, 0.18);
  color:#f8edc7;
  font: 700 0.74rem/1 Inter, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.game-card__meta h3{
  margin: 0 0 10px;
  color:#fff8e2;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1.03;
}

.game-card__meta p{
  margin:0;
  color: rgba(244, 240, 226, 0.84);
  max-width: 28ch;
  font-size: 0.98rem;
}

.game-card__chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-card__chip{
  display:inline-flex;
  align-items:center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 24, 15, 0.62);
  border: 1px solid rgba(242, 234, 201, 0.12);
  color:#eef2de;
  font: 600 0.82rem/1 Inter, sans-serif;
}

.game-card__footer{ display:flex; }

.game-card__btn{
  min-width: 180px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #f6df9f 0%, #d7ad57 100%);
  color:#132315;
  font: 800 0.92rem/1 Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0,0,0,0.24);
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.game-card__btn:hover{ transform: translateY(-2px); box-shadow: 0 18px 28px rgba(0,0,0,0.28); }

.game-card__btn--disabled{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.54);
  cursor: not-allowed;
  box-shadow: none;
}

.games-modal__content{
  width: min(1120px, 100%);
  min-height: min(740px, calc(100vh - 40px));
  background:
    radial-gradient(circle at top left, rgba(103, 147, 98, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 216, 145, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(5, 14, 9, 0.98), rgba(8, 22, 13, 0.98));
}

.games-modal__stage{
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 35%);
}

.games-intro{
  width: 100%;
  min-height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.games-intro[hidden]{
  display:none !important;
}

.games-intro.is-active{
  display:flex;
}

.games-intro__card{
  width: min(980px, 100%);
  min-height: 520px;
  display:grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(340px, 1.08fr);
  border-radius: 34px;
  overflow:hidden;
  border: 1px solid rgba(244, 233, 193, 0.16);
  box-shadow: 0 36px 100px rgba(0,0,0,0.34);
  background: linear-gradient(145deg, rgba(11, 23, 15, 0.96), rgba(7, 16, 10, 0.96));
}

.games-intro__media{
  position: relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
  background: linear-gradient(145deg, rgba(42, 89, 46, 0.94), rgba(12, 30, 18, 0.98));
}

.games-intro__media::before,
.games-intro__media::after{
  content:"";
  position:absolute;
  inset:0;
}

.games-intro__media::before{
  background:
    radial-gradient(circle at 26% 24%, rgba(255,255,255,0.16), transparent 0 14%),
    radial-gradient(circle at 78% 18%, rgba(255, 208, 109, 0.18), transparent 0 18%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.14));
}

.games-intro__media::after{
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.32));
}

.games-intro__card[data-game-theme="tictactoe"] .games-intro__media{
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 215, 0, 0.30), transparent 16%),
    radial-gradient(circle at 76% 22%, rgba(255, 105, 180, 0.22), transparent 16%),
    linear-gradient(145deg, #285d34 0%, #153821 60%, #0a180f 100%);
}

.games-intro__card[data-game-theme="wordsearch"] .games-intro__media{
  background:
    radial-gradient(circle at 22% 18%, rgba(171,255,177,0.22), transparent 14%),
    radial-gradient(circle at 74% 22%, rgba(253, 236, 176, 0.20), transparent 16%),
    linear-gradient(145deg, #1f502b 0%, #102f1a 55%, #08130d 100%);
}

.games-intro__halo{
  position:absolute;
  width: 320px;
  height: 320px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(255,255,255,0.03) 48%, transparent 72%);
  filter: blur(6px);
}

.games-intro__icon{
  position:relative;
  z-index:2;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height:1;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.28));
}

.games-intro__spark{
  position:absolute;
  z-index:1;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,246,219,0.75), rgba(255,255,255,0.0));
  opacity:.7;
}

.games-intro__spark--one{
  width: 240px;
  height: 2px;
  top: 26%;
  left: 14%;
  transform: rotate(-18deg);
}

.games-intro__spark--two{
  width: 180px;
  height: 2px;
  bottom: 24%;
  right: 14%;
  transform: rotate(16deg);
}

.games-intro__content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 18px;
  padding: clamp(28px, 4vw, 42px);
}

.games-intro__eyebrow{
  color:#f5deb0;
  font: 800 0.78rem/1 Inter, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.games-intro__title{
  margin:0;
  color:#fff8df;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .96;
}

.games-intro__desc{
  margin:0;
  max-width: 44ch;
  color: rgba(244, 238, 221, 0.82);
  font-size: 1.02rem;
}

.games-intro__chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.games-intro__chip{
  display:inline-flex;
  align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(248, 238, 205, 0.14);
  color:#f0efd8;
  font: 600 0.84rem/1 Inter, sans-serif;
}

.games-intro__actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  padding-top: 8px;
}

.games-intro__start,
.games-intro__back{
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  font: 800 0.88rem/1 Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor:pointer;
}

.games-intro__start{
  background: linear-gradient(135deg, #f8e09d 0%, #d6a94d 100%);
  color:#132315;
}

.games-intro__back{
  background: rgba(255,255,255,0.08);
  color:#f5ecd0;
  border: 1px solid rgba(245, 236, 208, 0.14);
}

.rf-game-surface{
  width: min(860px, 100%);
  border-radius: 32px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(241, 233, 197, 0.14);
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 28%),
    linear-gradient(180deg, rgba(11, 24, 16, 0.96), rgba(10, 18, 13, 0.96));
}

.rf-game-surface--ttt{
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 215, 0, 0.08), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(255, 105, 180, 0.08), transparent 16%),
    linear-gradient(180deg, rgba(12, 27, 16, 0.97), rgba(9, 17, 12, 0.98));
}

.rf-game-surface--ws{
  width: min(900px, 100%);
  background:
    radial-gradient(circle at 20% 10%, rgba(170,255,179,0.07), transparent 18%),
    radial-gradient(circle at 80% 12%, rgba(253, 236, 176, 0.06), transparent 16%),
    linear-gradient(180deg, rgba(11, 25, 15, 0.97), rgba(8, 16, 11, 0.98));
}

.rf-game-surface__hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  margin-bottom: 18px;
}

.rf-game-badge{
  display:inline-flex;
  align-items:center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(248, 238, 205, 0.08);
  border: 1px solid rgba(248, 238, 205, 0.14);
  color:#f6e7bb;
  font: 800 0.74rem/1 Inter, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rf-game-title{
  margin-bottom: 0;
}

.rf-ws__grid{
  margin: 0 auto;
}

.rf-ws__words{
  margin-top: 22px;
}

@media (max-width: 980px){
  .games-grid{ grid-template-columns: 1fr; }
  .game-card{ min-height: 320px; }
  .games-intro__card{ grid-template-columns: 1fr; min-height: unset; }
  .games-intro__media{ min-height: 220px; }
}

@media (max-width: 640px){
  .games-shell{ padding: 18px; }
  .game-card__frame{ padding: 18px; }
  .game-card__btn{ width: 100%; }
  .games-modal__content{ min-height: calc(100vh - 20px); border-radius: 22px; }
  .games-modal__stage{ padding: 14px; }
  .games-intro__content{ padding: 22px; }
  .games-intro__actions{ flex-direction: column; }
  .games-intro__start,
  .games-intro__back{ width: 100%; }
}


/* =========================================================
   GAMES — Rainforest Saga match-3
   ========================================================= */

.game-card--saga .game-card__backdrop{
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 240, 170, 0.25), transparent 32%),
    radial-gradient(circle at 78% 22%, rgba(120, 255, 188, 0.25), transparent 28%),
    linear-gradient(160deg, rgba(14,48,26,0.94) 0%, rgba(25,83,45,0.9) 45%, rgba(84,138,74,0.82) 100%);
}

.game-card--saga .game-card__backdrop::before{
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(135deg, rgba(255,220,120,0.16), rgba(255,255,255,0));
}

.rf-game-surface--saga{
  width: 100%;
}

.rf-saga{
  position: relative;
  width: 100%;
}

.rf-saga__shell{
  width: 100%;
  display: flex;
  justify-content: center;
}

.rf-saga__panel{
  position: relative;
  width: min(100%, 860px);
  padding: 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(133, 193, 102, 0.35), transparent 34%),
    repeating-linear-gradient(45deg, rgba(20,60,24,0.92) 0px, rgba(20,60,24,0.92) 4px, rgba(33,88,37,0.94) 4px, rgba(33,88,37,0.94) 12px);
  border: 3px solid rgba(200, 244, 164, 0.48);
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -8px 18px rgba(6, 24, 11, 0.36);
}

.rf-saga__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(100, 156, 79, 0.96), rgba(55, 108, 55, 0.96));
  border: 2px solid rgba(233, 249, 177, 0.6);
  box-shadow: 0 10px 0 rgba(24, 62, 27, 0.9), inset 0 2px 12px rgba(220, 255, 173, 0.36);
}

.rf-saga__episode{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff7c3;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(20, 48, 20, 0.7);
}

.rf-saga__train{
  font-size: 2rem;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.rf-saga__level{
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1ba 0%, #ead383 100%);
  color: #214822;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: lowercase;
  border: 2px solid rgba(255,255,230,0.78);
  box-shadow: inset 0 -3px 0 rgba(136, 106, 32, 0.28);
}

.rf-saga__stats{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(71, 126, 70, 0.94), rgba(52, 99, 53, 0.94));
  border: 2px solid rgba(199, 235, 157, 0.42);
  box-shadow: inset 0 1px 10px rgba(209,255,174,0.18);
}

.rf-saga__livesWrap,
.rf-saga__scoreWrap{
  display: flex;
  align-items: center;
  gap: 12px;
}

.rf-saga__lives{
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  filter: drop-shadow(0 5px 10px rgba(8, 24, 11, 0.4));
}

.rf-saga__timer{
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 43, 20, 0.95);
  color: #fff7c8;
  font-weight: 800;
  border: 2px solid rgba(192, 235, 140, 0.35);
  white-space: nowrap;
}

.rf-saga__score{
  min-width: 112px;
  padding: 10px 18px;
  border-radius: 999px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: #224825;
  background: linear-gradient(180deg, #fff2bc 0%, #efd888 100%);
  border: 2px solid rgba(255,255,240,0.78);
  box-shadow: inset 0 -4px 0 rgba(152, 121, 48, 0.3), 0 7px 0 rgba(28, 72, 31, 0.72);
}

.rf-saga__streak{
  min-width: 64px;
  padding: 9px 14px;
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  color: #224825;
  background: linear-gradient(180deg, #ffc65f 0%, #ff9b39 100%);
  border: 2px solid rgba(255, 214, 110, 0.72);
  box-shadow: 0 0 16px rgba(255, 180, 66, 0.26);
}

.rf-saga__notif{
  margin-top: 16px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(49, 90, 50, 0.96), rgba(39, 72, 39, 0.96));
  color: #fff7bf;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
  border: 2px solid rgba(255, 230, 139, 0.45);
  box-shadow: inset 0 0 16px rgba(201, 255, 142, 0.18);
}

.rf-saga__notif span{
  font-size: 1.5rem;
}

.rf-saga__boardWrap{
  position: relative;
  margin-top: 18px;
  border-radius: 28px;
}

.rf-saga__board{
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(44, 103, 49, 0.96), rgba(28, 71, 32, 0.98));
  border: 4px solid rgba(98, 197, 99, 0.6);
  box-shadow:
    inset 0 0 0 4px rgba(210, 255, 174, 0.16),
    0 12px 0 rgba(16, 48, 19, 0.88),
    0 24px 44px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.rf-saga__board.is-flash{
  box-shadow:
    inset 0 0 0 4px rgba(255, 247, 170, 0.88),
    0 0 28px rgba(255, 244, 166, 0.72),
    0 12px 0 rgba(16, 48, 19, 0.88);
}

.rf-saga__board.is-shake{
  animation: rfSagaShake 0.2s ease;
}

@keyframes rfSagaShake{
  0% { transform: translateX(0); }
  25% { transform: translateX(6px); }
  50% { transform: translateX(-6px); }
  75% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.rf-saga__cell{
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 20% 30% 20% 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  cursor: pointer;
  background: radial-gradient(circle at 30% 35%, #f9ffdd 0%, #9ad06f 66%, #77a758 100%);
  border: 3px solid rgba(252, 250, 195, 0.78);
  color: #17361a;
  text-shadow: 0 2px 0 rgba(255,255,255,0.32), 0 4px 10px rgba(18, 51, 21, 0.28);
  box-shadow: 0 7px 0 rgba(41, 95, 46, 0.92), 0 10px 18px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
  transition: transform 0.08s linear, box-shadow 0.08s linear, filter 0.12s ease, border-color 0.12s ease;
}

.rf-saga__cell:hover:not(:disabled){
  filter: brightness(1.03);
}

.rf-saga__cell:active:not(:disabled){
  transform: translateY(4px);
  box-shadow: 0 4px 0 rgba(41, 95, 46, 0.92), 0 6px 14px rgba(0, 0, 0, 0.22);
}

.rf-saga__cell.is-selected{
  border-color: #ffba0a;
  box-shadow: 0 0 0 4px rgba(254, 206, 86, 0.72), 0 7px 0 rgba(41, 95, 46, 0.92), 0 14px 18px rgba(0, 0, 0, 0.24);
  transform: scale(1.03) translateY(-3px);
  background: radial-gradient(circle at 30% 35%, #ffffd2 0%, #b5df82 70%, #86b45c 100%);
}

.rf-saga__cell.is-match{
  animation: rfSagaMatchPop 0.28s ease forwards;
  z-index: 2;
}

@keyframes rfSagaMatchPop{
  0% { transform: scale(1) translateY(-2px); filter: brightness(1); }
  30% { transform: scale(1.24) translateY(-6px); filter: brightness(1.35); box-shadow: 0 0 18px rgba(255, 208, 70, 0.72); }
  100% { transform: scale(1) translateY(-2px); filter: brightness(1); }
}

.rf-saga__particles{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 28px;
}

.rf-saga__particle{
  position: absolute;
  font-size: 1.8rem;
  animation: rfSagaFloat 1s ease-out forwards;
}

@keyframes rfSagaFloat{
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-110px) rotate(360deg); opacity: 0; }
}

.rf-saga__progressRow{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.rf-saga__progressLabel,
.rf-saga__progressCount{
  color: #fff6be;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rf-saga__progressTrack{
  flex: 1;
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 54, 22, 0.95);
  border: 2px solid rgba(169, 215, 126, 0.45);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.26);
}

.rf-saga__progressFill{
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd87a 0%, #fff2ae 50%, #ccff9a 100%);
  box-shadow: 0 0 18px rgba(255, 244, 165, 0.4);
  transition: width 0.2s ease;
}

.rf-saga__actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.rf-saga__button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 250, 200, 0.72);
  background: linear-gradient(180deg, #f5dfa0 0%, #e6be70 100%);
  color: #173817;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  box-shadow: 0 8px 0 rgba(118, 92, 34, 0.84), 0 10px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.08s linear, box-shadow 0.08s linear, filter 0.12s ease;
}

.rf-saga__button:hover{
  filter: brightness(1.03);
}

.rf-saga__button:active{
  transform: translateY(5px);
  box-shadow: 0 3px 0 rgba(118, 92, 34, 0.84), 0 6px 12px rgba(0, 0, 0, 0.18);
}

.rf-saga__button--bonus{
  background: linear-gradient(180deg, #ffc989 0%, #f1a65a 100%);
  box-shadow: 0 8px 0 rgba(158, 95, 38, 0.84), 0 10px 18px rgba(0, 0, 0, 0.18);
}

.rf-saga__footer{
  margin-top: 14px;
  text-align: center;
  color: rgba(228, 247, 189, 0.92);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

@media (max-width: 980px){
  .rf-saga__panel{
    padding: 16px;
  }
  .rf-saga__stats{
    border-radius: 28px;
  }
  .rf-saga__actions{
    justify-content: center;
  }
}

@media (max-width: 720px){
  .rf-saga__header,
  .rf-saga__stats{
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .rf-saga__episode,
  .rf-saga__scoreWrap,
  .rf-saga__livesWrap{
    justify-content: center;
  }

  .rf-saga__progressRow{
    flex-direction: column;
    align-items: stretch;
  }

  .rf-saga__actions{
    flex-direction: column;
    align-items: stretch;
  }

  .rf-saga__button,
  .rf-saga__actions .rf-game-exit{
    width: 100%;
  }

  .rf-saga__board{
    gap: 6px;
    padding: 12px;
  }

  .rf-saga__cell{
    border-width: 2px;
  }





  
}


/* =========================================================
   PLANTS & ANIMALS — living gallery
   Preserves source concept fonts:
   - Poppins
   - Playfair Display
   Colors tuned to the existing rainforest stack.
   ========================================================= */

.plants-animals-section {
  --pa-bg-1: #07110d;
  --pa-bg-2: #0b1b14;
  --pa-bg-3: #143225;
  --pa-panel: rgba(8, 20, 15, 0.74);
  --pa-panel-strong: rgba(9, 18, 13, 0.92);
  --pa-border: rgba(255, 220, 150, 0.14);
  --pa-border-strong: rgba(255, 220, 150, 0.28);
  --pa-text: #f4edd7;
  --pa-text-soft: rgba(244, 237, 215, 0.76);
  --pa-title-1: #f3e1b7;
  --pa-title-2: #d9edc9;
  --pa-title-3: #bfe1ab;
  --pa-accent: #d9c07c;
  --pa-shadow: 0 30px 65px -30px rgba(0, 0, 0, 0.78);
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 8vw, 8rem) 0;
  color: var(--pa-text);
  overflow: clip;
}

.plants-animals-section::before,
.plants-animals-section::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.plants-animals-section::before {
  top: 4%;
  left: -8%;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(82, 132, 89, 0.18) 0%, rgba(82, 132, 89, 0.08) 35%, transparent 70%);
  filter: blur(24px);
  animation: paFloatGlowA 18s ease-in-out infinite alternate;
}

.plants-animals-section::after {
  right: -10%;
  bottom: -8%;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(185, 156, 96, 0.12) 0%, rgba(185, 156, 96, 0.05) 38%, transparent 70%);
  filter: blur(28px);
  animation: paFloatGlowB 20s ease-in-out infinite alternate;
}

@keyframes paFloatGlowA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.08); }
}

@keyframes paFloatGlowB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 3%, 0) scale(1.1); }
}

.plants-animals-shell {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2rem);
}

.plants-animals-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 3.5rem;
}

.plants-animals-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(19, 45, 32, 0.56);
  border: 1px solid var(--pa-border);
  color: var(--pa-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font: 400 0.82rem/1 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.plants-animals-header h2 {
  margin: 0;
  font: 700 clamp(3rem, 6vw, 5.35rem)/0.95 'Playfair Display', serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(145deg, var(--pa-title-1), var(--pa-title-2), var(--pa-title-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(179, 151, 89, 0.18));
}

.plants-animals-subtitle {
  margin: 1.2rem auto 0;
  max-width: 760px;
  color: var(--pa-text-soft);
  font: 300 1.04rem/1.8 'Poppins', sans-serif;
}

.plants-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.15rem, 2vw, 1.9rem);
}

.pa-card {
  appearance: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(12, 27, 19, 0.9), rgba(9, 19, 15, 0.98));
  box-shadow: var(--pa-shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.08), box-shadow 0.32s ease, opacity 0.42s ease, filter 0.42s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.plants-animals-section.is-enhanced .pa-card {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
}

.plants-animals-section.is-enhanced .pa-card.is-visible {
  opacity: 1;
  transform: none;
}

.pa-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 38px 75px -34px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(223, 201, 141, 0.22) inset;
}

.pa-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 189, 126, 0.12), transparent 36%, transparent 68%, rgba(120, 161, 106, 0.08));
  opacity: 0.8;
  pointer-events: none;
}

.pa-card-image {
  height: 360px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pa-bg-2), var(--pa-bg-3));
}

.pa-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease, filter 0.45s ease;
  filter: saturate(0.96) contrast(1.02) brightness(0.92);
  will-change: transform;
}

.pa-card:hover .pa-card-image img {
  transform: scale(1.1);
  filter: saturate(1.04) contrast(1.05) brightness(0.96);
}

.pa-card-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.9rem 1.35rem 1.3rem;
  color: var(--pa-text);
  background: linear-gradient(to top, rgba(6, 12, 9, 0.95), rgba(6, 12, 9, 0.68) 64%, transparent);
  border-top: 1px solid rgba(229, 214, 167, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pa-card-info h3 {
  margin: 0 0 0.25rem;
  font: 600 clamp(1.55rem, 2vw, 1.95rem)/1.06 'Poppins', sans-serif;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.pa-card-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(244, 237, 215, 0.82);
  font: 300 0.82rem/1.4 'Poppins', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pa-card-meta i {
  color: var(--pa-accent);
  font-size: 0.78rem;
}

.pa-zoom-hint {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(225, 210, 168, 0.24);
  background: rgba(8, 15, 12, 0.42);
  color: #f6ead0;
  font: 400 0.72rem/1 'Poppins', sans-serif;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(18px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.pa-card:hover .pa-zoom-hint {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.pa-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(2, 7, 5, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1100;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pa-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pa-modal-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  width: min(1120px, 100%);
  max-height: min(86vh, 860px);
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid var(--pa-border-strong);
  background: linear-gradient(145deg, rgba(10, 18, 14, 0.92), rgba(16, 32, 23, 0.84));
  box-shadow: 0 60px 90px -36px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.pa-modal-overlay.is-open .pa-modal-content {
  transform: scale(1);
  opacity: 1;
}

.pa-modal-image-wrap {
  min-width: 0;
  background: linear-gradient(150deg, #0b1d15, #153122);
  padding: clamp(1rem, 2vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-modal-image {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.82);
}

.pa-modal-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(10, 16, 13, 0.62), rgba(10, 16, 13, 0.85));
  border-left: 1px solid rgba(228, 213, 171, 0.12);
}

.pa-modal-kicker {
  margin: 0 0 1rem;
  color: rgba(244, 237, 215, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font: 400 0.72rem/1.3 'Poppins', sans-serif;
}

.pa-modal-title {
  margin: 0 0 1rem;
  font: 700 clamp(2.4rem, 4vw, 3.7rem)/1 'Playfair Display', serif;
  background: linear-gradient(135deg, #f2dfb0, #d9efc5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pa-modal-desc {
  margin: 0;
  color: var(--pa-text-soft);
  font: 300 1.08rem/1.9 'Poppins', sans-serif;
}

.pa-modal-footnote {
  margin-top: 1.5rem;
  color: rgba(244, 237, 215, 0.5);
  font: 400 0.8rem/1.4 'Poppins', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pa-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(225, 210, 168, 0.26);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 16, 13, 0.44);
  color: rgba(255, 250, 234, 0.84);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.pa-modal-close:hover {
  background: rgba(130, 101, 45, 0.44);
  color: #fff;
  transform: scale(1.06) rotate(90deg);
}

body.pa-modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .pa-modal-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }

  .pa-modal-text {
    border-left: 0;
    border-top: 1px solid rgba(228, 213, 171, 0.12);
  }
}

@media (max-width: 768px) {
  .plants-animals-section {
    padding: 4.25rem 0;
  }

  .plants-animals-header {
    margin-bottom: 2.5rem;
  }

  .pa-card-image {
    height: 300px;
  }

  .pa-card-info {
    padding: 1.45rem 1.1rem 1.05rem;
  }

  .pa-modal-overlay {
    padding: 0.85rem;
  }

  .pa-modal-content {
    border-radius: 28px;
  }

  .pa-modal-close {
    top: 0.7rem;
    right: 0.7rem;
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plants-animals-section::before,
  .plants-animals-section::after,
  .pa-card,
  .pa-card-image img,
  .pa-zoom-hint,
  .pa-modal-content,
  .pa-modal-overlay {
    animation: none !important;
    transition: none !important;
  }
}


/* ============================================================
   FUN FACTS — EXACT WILD FLIP CARDS
   ============================================================ */
#fun-facts{
  font-family: 'Baloo 2', cursive;
  min-height: 100vh;
  background: linear-gradient(145deg, #0f3b0f 0%, #2b6b2b 40%, #4f9e4f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  overflow-y: clip;
  isolation: isolate;
}

#fun-facts::before,
#fun-facts::after{
  content: none;
}

#fun-facts *{
  box-sizing: border-box;
}

#fun-facts .glow-field{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#fun-facts .glow-particle{
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(250, 255, 190, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 25px 10px #fbffb1, 0 0 45px 15px #fddf8e;
  filter: blur(2px);
  opacity: 0.7;
  will-change: transform;
}

#fun-facts .game-zone{
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#fun-facts .wild-title{
  margin: 0 0 5px;
  font-size: clamp(2.5rem, 10vw, 4.8rem);
  font-weight: 800;
  color: #fff3ba;
  text-shadow: 6px 6px 0 #2e6b2e, 10px 10px 25px rgba(0,0,0,0.4);
  letter-spacing: 3px;
  transform: rotate(-1deg);
  background: rgba(34, 87, 34, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: inline-block;
  padding: 0.2rem 1.5rem 0.2rem 1.5rem;
  border-radius: 70px 20px 70px 20px;
  border: 4px solid #ffdb7c;
  box-shadow: 0 15px 0 #1e5a1e;
}

#fun-facts .wild-title span{
  color: #FFF2A5;
}

#fun-facts .sub-snag{
  font-size: 1.9rem;
  color: #fefbcf;
  text-shadow: 3px 3px 0 #1b621b;
  margin-bottom: 35px;
  background: #418541;
  display: inline-block;
  padding: 0.3rem 2.5rem;
  border-radius: 50px;
  border: 3px dashed #fde482;
  box-shadow: inset 0 -5px 0 #1b4f1b;
}

#fun-facts .cards-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  margin: 15px 0 40px;
  perspective: 2000px;
}

#fun-facts .card{
  width: 260px;
  height: 330px;
  cursor: pointer;
  position: relative;
  perspective: 2800px;
  transform-style: preserve-3d;
  border-radius: 32px 32px 32px 32px;
  transition: filter 0.2s;
  filter: drop-shadow(0 20px 20px rgba(0, 30, 0, 0.6));
}

#fun-facts .card:hover{
  filter: drop-shadow(0 25px 25px rgba(255, 200, 50, 0.7));
}

#fun-facts .card:focus-visible{
  outline: 3px solid #fff2a5;
  outline-offset: 6px;
}

#fun-facts .card-inner{
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  border-radius: inherit;
}

#fun-facts .card-front,
#fun-facts .card-back{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.2), 0 18px 25px rgba(0, 30, 0, 0.6);
  border: 4px solid white;
  overflow: hidden;
  font-weight: 700;
  text-align: center;
}

#fun-facts .card-front{
  background: #2b5e2b;
  color: white;
}

#fun-facts .card-front img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

#fun-facts .card-front .front-title{
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  width: 100%;
  padding: 18px 8px 12px 8px;
  font-size: 2rem;
  color: #fffbc2;
  text-shadow: 3px 3px 0 #1f541f, 0 0 10px #000;
  border-top: 3px solid #ffec9e;
  transform: translateY(0);
  letter-spacing: 1px;
}

#fun-facts .card-back{
  background: #c7e9b0;
  background: linear-gradient(145deg, #b1dfb1, #7bbf7b);
  transform: rotateY(180deg);
  color: #023b02;
  font-size: 1.35rem;
  border: 4px solid #ffea9e;
  justify-content: center;
  padding: 20px 15px;
}

#fun-facts .card-back p{
  background: #fefbd0;
  padding: 1.3rem 1rem;
  border-radius: 40px;
  border: 4px solid #d4a948;
  box-shadow: inset 0 -5px 0 #a47d32, 0 8px 0 #5b8c4e;
  font-size: 1.3rem;
  font-weight: 600;
  color: #134013;
  margin: 0 8px;
}

#fun-facts .card-back p::before{
  content: "🌿 ";
  font-size: 1.9rem;
}

#fun-facts .card-back p::after{
  content: " 🌿";
  font-size: 1.9rem;
}

#fun-facts .wiggle-hint{
  font-size: 2rem;
  color: #fef7cf;
  background: #2c792c;
  padding: 12px 40px;
  border-radius: 60px;
  border: 4px solid #ffd966;
  margin-top: 15px;
  animation: ffBob 3s infinite ease-in-out;
  display: inline-block;
  box-shadow: 0 10px 0 #1c541c;
}

#fun-facts .photo-credit{
  font-size: 1rem;
  color: #d3efb0;
  background: #275e27;
  padding: 0.2rem 1.5rem;
  border-radius: 60px;
  margin-top: 8px;
  border: 1px solid #b3d17a;
}

#fun-facts .photo-credit a{
  color: #ffecaa;
  text-decoration: none;
}

@keyframes ffBob {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.7deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 650px){
  #fun-facts .card{
    width: 210px;
    height: 280px;
  }

  #fun-facts .card-front .front-title{
    font-size: 1.6rem;
  }
}

@media (max-width: 480px){
  #fun-facts .card{
    width: 180px;
    height: 240px;
  }
}


/* ============================================================
   HERO + ARTWORK STORY MODAL OVERRIDES
   ============================================================ */
.artg-modal__content--story{
  width:min(96vw, 1320px);
  max-height:92vh;
  overflow:hidden;
  display:grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  align-items:stretch;
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.98), rgba(12, 18, 14, 0.98));
  border: 1px solid rgba(255,220,150,0.18);
  border-radius:18px;
}

.artg-modal__imageWrap{
  padding: 1.15rem;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,220,150,0.08), transparent 50%),
    rgba(8,12,10,0.92);
}

.artg-modal__content--story .artg-modal__image{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:calc(92vh - 2.3rem);
  object-fit:contain;
  border-radius:14px;
  background: rgba(8,12,10,0.96);
}

.artg-modal__body{
  padding: 1.15rem 1.4rem 1.45rem;
  overflow-y:auto;
  min-height:0;
}

.artg-modal__title{
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height:1.05;
  color: rgba(245,235,220,0.98);
  margin: 0 0 0.35rem;
}

.artg-modal__meta{
  color: rgba(255,220,150,0.78);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.artg-modal__storyLabel{
  color: rgba(255,220,150,0.92);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255,220,150,0.14);
}

.artg-modal__story{
  color: rgba(240,246,255,0.90);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 700px){
  .artg-modal__content--story{
    width:min(94vw, 980px);
    max-height:92vh;
    grid-template-columns: 1fr;
  }
  .artg-modal__imageWrap{ padding: 0.95rem 0.95rem 0.45rem; }
  .artg-modal__content--story .artg-modal__image{
    height:auto;
    max-height:min(54vh, 560px);
  }
  .artg-modal__body{ padding: 0.35rem 1rem 1.15rem; }
}


/* ============================================================
   ARTWORK GALLERY — HEROES REFRESH (2026-04)
   ============================================================ */
#artwork{
  position: relative;
}

#artwork .art-gallery{
  margin-top: 0.4rem;
}

#artwork .art-gallery__shell{
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 2.8vw, 2.35rem);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(8, 14, 10, 0.82), rgba(6, 11, 8, 0.92)),
    radial-gradient(circle at top, rgba(255, 220, 150, 0.08), transparent 42%);
  border: 1px solid rgba(255, 220, 150, 0.14);
  box-shadow: 0 30px 80px rgba(0,0,0,0.42);
}

#artwork .art-gallery__shell::before,
#artwork .art-gallery__shell::after{
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
}

#artwork .art-gallery__shell::before{
  width: 260px;
  height: 260px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 220, 150, 0.12) 0%, rgba(255, 220, 150, 0) 72%);
}

#artwork .art-gallery__shell::after{
  width: 300px;
  height: 300px;
  bottom: -130px;
  left: -110px;
  background: radial-gradient(circle, rgba(60, 255, 170, 0.10) 0%, rgba(60, 255, 170, 0) 72%);
}

#artwork .art-gallery__header{
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 0.55rem;
}

#artwork .art-gallery__eyebrow{
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 220, 150, 0.74);
}

#artwork .art-gallery__header h2{
  margin-bottom: 0.8rem;
}

#artwork .story-toggle{
  position: relative;
  z-index: 1;
  max-width: 78ch;
  margin: 0 auto 2rem;
}

#artwork .story-toggle__text{
  color: rgba(241, 238, 225, 0.86);
}

#artwork .art-gallery__grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.45rem;
}

#artwork .artg-card{
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  aspect-ratio: auto;
  background:
    linear-gradient(180deg, rgba(13, 20, 16, 0.96), rgba(10, 16, 12, 0.98));
  border: 1px solid rgba(255, 220, 150, 0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.40);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

#artwork .artg-card:hover,
#artwork .artg-card:focus-visible{
  transform: translateY(-6px);
  border-color: rgba(255, 220, 150, 0.28);
  box-shadow: 0 26px 62px rgba(0,0,0,0.52);
}

#artwork .artg-card:focus-visible{
  outline: 2px solid rgba(255, 232, 170, 0.78);
  outline-offset: 3px;
}

#artwork .artg-card--featured{
  background:
    linear-gradient(180deg, rgba(15, 23, 18, 0.98), rgba(9, 16, 12, 1));
  border-color: rgba(255, 220, 150, 0.22);
}

#artwork .artg-media{
  position: relative;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  background: rgba(7, 11, 8, 0.96);
}

#artwork .artg-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.96) contrast(1.03) brightness(0.96);
  transform: scale(1.01);
  transition: transform 420ms ease, filter 420ms ease;
}

#artwork .artg-card:hover .artg-image,
#artwork .artg-card:focus-visible .artg-image{
  transform: scale(1.06);
  filter: saturate(1.02) contrast(1.05) brightness(1);
}

#artwork .artg-media::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(5,8,6,0.90));
  pointer-events: none;
}

#artwork .artg-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(7, 12, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 220, 150, 0.16);
  color: rgba(248, 242, 224, 0.90);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#artwork .artg-copy{
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem 1.15rem 1.2rem;
}

#artwork .artg-kicker{
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 220, 150, 0.72);
}

#artwork .artg-copy h3{
  margin: 0;
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 0.98;
  font-weight: 500;
  color: rgba(250, 241, 225, 0.96);
  text-transform: none;
  letter-spacing: -0.02em;
}

#artwork .artg-footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 220, 150, 0.10);
  color: rgba(220, 232, 225, 0.74);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#artwork .artg-footer i{
  margin-left: 0.28rem;
  font-size: 0.74rem;
}

.artg-modal__overlay{
  background:
    radial-gradient(circle at top, rgba(255, 220, 150, 0.07), transparent 38%),
    rgba(3, 5, 4, 0.94);
  backdrop-filter: blur(10px);
}

.artg-modal__content--story{
  width: min(94vw, 1260px);
  max-height: 90vh;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  border-radius: 28px;
  border: 1px solid rgba(255, 220, 150, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 16, 12, 0.98), rgba(7, 11, 9, 0.98));
  box-shadow: 0 38px 96px rgba(0,0,0,0.72);
}

.artg-modal__imageWrap{
  padding: 1.15rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 220, 150, 0.10), transparent 44%),
    linear-gradient(180deg, rgba(10, 16, 12, 0.98), rgba(7, 11, 9, 0.98));
}

.artg-modal__content--story .artg-modal__image{
  border-radius: 22px;
  border: 1px solid rgba(255, 220, 150, 0.12);
  box-shadow: 0 22px 54px rgba(0,0,0,0.42);
  max-height: calc(90vh - 2.3rem);
}

.artg-modal__body{
  padding: 1.4rem 1.45rem 1.55rem;
  background:
    linear-gradient(180deg, rgba(13, 20, 16, 0.92), rgba(8, 13, 10, 0.96));
  border-left: 1px solid rgba(255, 220, 150, 0.10);
}

.artg-modal__eyebrow{
  margin: 0 0 0.65rem;
  color: rgba(255, 220, 150, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.artg-modal__title{
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: rgba(250, 242, 226, 0.97);
}

.artg-modal__meta{
  color: rgba(226, 233, 225, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.artg-modal__storyLabel{
  color: rgba(255, 220, 150, 0.92);
  margin-bottom: 0.8rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 220, 150, 0.12);
}

.artg-modal__story{
  color: rgba(238, 242, 234, 0.90);
  font-size: 1rem;
  line-height: 1.82;
}

.artg-modal__close{
  top: 20px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: rgba(5, 9, 7, 0.68);
  border-color: rgba(255, 220, 150, 0.18);
}

.artg-modal__close:hover{
  background: rgba(15, 22, 16, 0.94);
}

@media (max-width: 900px){
  #artwork .art-gallery__shell{
    border-radius: 26px;
    padding: 1rem;
  }

  #artwork .art-gallery__grid{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }

  #artwork .artg-copy{
    padding: 1rem 1rem 1.05rem;
  }

  .artg-modal__content--story{
    width: min(94vw, 980px);
    grid-template-columns: 1fr;
  }

  .artg-modal__body{
    border-left: 0;
    border-top: 1px solid rgba(255, 220, 150, 0.10);
  }
}

@media (max-width: 600px){
  #artwork .artg-card:hover,
  #artwork .artg-card:focus-visible{
    transform: none;
  }

  #artwork .artg-media{
    aspect-ratio: 4 / 4.6;
  }

  #artwork .artg-badge{
    top: 12px;
    right: 12px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  #artwork .artg-footer{
    gap: 0.45rem;
    font-size: 0.7rem;
  }

  .artg-modal__imageWrap{
    padding: 0.85rem 0.85rem 0.35rem;
  }

  .artg-modal__content--story .artg-modal__image{
    max-height: min(50vh, 420px);
  }

  .artg-modal__body{
    padding: 1rem 1rem 1.2rem;
  }
}


/* ============================================================
   ARTWORK GALLERY — AUTHOR INTRO + CHECKOUT RESTORE (2026-04)
   ============================================================ */
#artwork .art-gallery__author{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  margin: 0 auto 1.8rem;
  padding: 1.15rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 22, 17, 0.96), rgba(9, 15, 12, 0.96));
  border: 1px solid rgba(255, 220, 150, 0.16);
  box-shadow: 0 20px 54px rgba(0,0,0,0.32);
}

#artwork .art-gallery__authorMedia{
  position: relative;
  align-self: start;
  width: 100%;
  height: 340px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(6, 10, 8, 0.96);
}

#artwork .art-gallery__authorMedia img{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.98) contrast(1.03) brightness(0.97);
}

#artwork .art-gallery__author--reverse{
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

#artwork .art-gallery__author--reverse .art-gallery__authorMedia{
  grid-column: 2;
  grid-row: 1;
}

#artwork .art-gallery__author--reverse .art-gallery__authorCopy{
  grid-column: 1;
  grid-row: 1;
}

#artwork .art-gallery__authorCopy{
  display: grid;
  gap: 0.85rem;
  align-content: center;
  min-height: 340px;
  padding: 0.4rem 0;
}

#artwork .art-gallery__authorTag{
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 220, 150, 0.08);
  border: 1px solid rgba(255, 220, 150, 0.16);
  color: rgba(255, 220, 150, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

#artwork .art-gallery__authorCopy h3{
  margin: 0;
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 0.95;
  color: rgba(250, 241, 225, 0.97);
}

#artwork .art-gallery__authorCopy p{
  margin: 0;
  color: rgba(232, 238, 230, 0.86);
  line-height: 1.78;
}

#artwork .art-gallery__authorActions,
#artwork .artg-actions,
.artg-modal__actions{
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

#artwork .art-gallery__authorBtn,
#artwork .artg-open,
#artwork .artg-checkout,
.artg-modal__checkout{
  appearance: none;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

#artwork .art-gallery__authorBtn:hover,
#artwork .artg-open:hover,
#artwork .artg-checkout:hover,
.artg-modal__checkout:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
}

#artwork .art-gallery__authorBtn--primary,
#artwork .artg-open,
.artg-modal__checkout{
  background: linear-gradient(135deg, var(--cta-gold-1), var(--cta-gold-2));
  color: #1b1207;
  box-shadow: 0 14px 30px rgba(0,0,0,0.32);
}

#artwork .art-gallery__authorBtn--ghost,
#artwork .artg-checkout{
  background: rgba(8, 16, 12, 0.54);
  color: rgba(248, 242, 224, 0.95);
  border: 1px solid rgba(255, 220, 150, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 150, 0.04);
}

#artwork .artg-summary{
  margin: 0;
  color: rgba(225, 233, 226, 0.76);
  line-height: 1.65;
}

#artwork .artg-copy{
  gap: 0.7rem;
}

#artwork .artg-actions{
  margin-top: 0.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 220, 150, 0.10);
}

#artwork .artg-actions .artg-open,
#artwork .artg-actions .artg-checkout{
  flex: 1 1 170px;
}

#artwork .artg-footer{
  display: none;
}

.artg-modal__actions{
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 220, 150, 0.12);
}

@media (max-width: 900px){
  #artwork .art-gallery__author{
    grid-template-columns: 1fr;
  }

  #artwork .art-gallery__author--reverse .art-gallery__authorMedia,
  #artwork .art-gallery__author--reverse .art-gallery__authorCopy{
    grid-column: auto;
    grid-row: auto;
  }

  #artwork .art-gallery__authorMedia{
    height: min(48vh, 420px);
  }

  #artwork .art-gallery__authorCopy{
    min-height: 0;
    padding: 0;
  }
}

@media (max-width: 600px){
  #artwork .art-gallery__author{
    padding: 0.85rem;
    border-radius: 22px;
  }

  #artwork .art-gallery__authorActions,
  #artwork .artg-actions,
  .artg-modal__actions{
    gap: 0.65rem;
  }

  #artwork .art-gallery__authorBtn,
  #artwork .artg-open,
  #artwork .artg-checkout,
  .artg-modal__checkout{
    width: 100%;
  }
}

/* ============================================================
   GAMES — Poster / Logo Background Cards
   Purpose:
   - Uses each game card's existing .game-card__backdrop layer
   - Adds one image per game card
   - Keeps text readable with overlays
   - Does not change JS/game launch behavior
   ============================================================ */

#games .game-card__backdrop{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition:
    transform 420ms ease,
    filter 420ms ease,
    opacity 420ms ease;
}

/* Tic Tac Toe poster image */
#games .game-card--ttt .game-card__backdrop{
  background-image: url("./image/games/tictactoe-logo.png");
}

/* Word Search poster image */
#games .game-card--wordsearch .game-card__backdrop{
  background-image: url("./image/games/wordsearch-logo.png");
}

/* Rainforest Saga poster image */
#games .game-card--saga .game-card__backdrop{
  background-image: url("./image/games/saga-logo.png");
}

/* Coming Soon poster image */
#games .game-card--soon .game-card__backdrop{
  background-image: url("./image/games/coming-soon-logo.png");
}

/* Dark readability layer over the image */
#games .game-card__backdrop::before{
  background:
    linear-gradient(
      180deg,
      rgba(3, 12, 7, 0.20) 0%,
      rgba(3, 12, 7, 0.45) 42%,
      rgba(3, 12, 7, 0.86) 100%
    ),
    radial-gradient(
      circle at 50% 18%,
      rgba(255, 230, 150, 0.18),
      transparent 42%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(30, 120, 65, 0.45),
      transparent 58%
    );
}

/* Premium glass/sheen layer */
#games .game-card__backdrop::after{
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.16) 0%,
      rgba(255,255,255,0.03) 28%,
      rgba(0,0,0,0.10) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* Keep the written content above the image */
#games .game-card__frame{
  position: relative;
  z-index: 2;
  min-height: 100%;
  background:
    linear-gradient(
      180deg,
      rgba(5, 16, 9, 0.18) 0%,
      rgba(5, 16, 9, 0.38) 44%,
      rgba(5, 16, 9, 0.72) 100%
    );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Poster hover effect */
#games .game-card:hover .game-card__backdrop{
  transform: scale(1.09);
  filter: saturate(1.15) contrast(1.08) brightness(1.05);
}

/* Make text stronger over image backgrounds */
#games .game-card__eyebrow,
#games .game-card__meta h3,
#games .game-card__meta p,
#games .game-card__chip{
  text-shadow: 0 3px 14px rgba(0,0,0,0.65);
}

/* Optional: make the card title feel more like a real game logo */
#games .game-card__meta h3{
  color: #fff5c8;
  text-shadow:
    0 3px 0 rgba(20, 65, 25, 0.55),
    0 12px 28px rgba(0,0,0,0.70);
}

/* Coming soon should look dimmer/locked */
#games .game-card--soon .game-card__backdrop{
  filter: grayscale(0.35) brightness(0.72);
}

#games .game-card--soon:hover .game-card__backdrop{
  filter: grayscale(0.20) brightness(0.86) saturate(1.05);
}
/* ============================================================
   PLANT TREE — Contest + TreeHero referral callouts
   ============================================================ */
#planttree .pt-programGrid{
  width:min(1040px,100%);
  margin:1.45rem auto 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

#planttree .pt-programGrid--featured{
  grid-template-columns:1fr;
  gap:16px;
}

#planttree .pt-programCard{
  display:flex;
  gap:14px;
  align-items:flex-start;
  text-align:left;
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(255, 220, 150, 0.20);
  background:rgba(8, 16, 12, 0.48);
  box-shadow:0 18px 42px rgba(0,0,0,0.32);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

#planttree .pt-programCard--contest{
  border-color:rgba(255, 220, 150, 0.30);
  background:linear-gradient(145deg, rgba(255,220,150,0.13), rgba(8,16,12,0.52));
}

#planttree .pt-programCard--contestHero{
  position:relative;
  display:block;
  overflow:hidden;
  padding:clamp(1.35rem, 3vw, 2.2rem);
  border-radius:30px;
  border:1px solid rgba(255, 224, 138, 0.55);
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(120,255,180,0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 220, 150, 0.26), rgba(12, 42, 20, 0.82) 58%, rgba(4, 14, 8, 0.92));
  box-shadow:
    0 30px 80px rgba(0,0,0,0.48),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 70px rgba(255, 220, 150, 0.12);
}

#planttree .pt-programCard--contestHero::before{
  content:"";
  position:absolute;
  inset:-80px -120px auto auto;
  width:260px;
  height:260px;
  border-radius:999px;
  background:rgba(255,255,255,0.10);
  pointer-events:none;
}

#planttree .pt-contestRibbon{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  margin-bottom:1rem;
  padding:0.55rem 0.85rem;
  border-radius:999px;
  color:#1b1207;
  background:linear-gradient(135deg, #fff3b0, #f0b84d);
  box-shadow:0 14px 30px rgba(0,0,0,0.28);
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:0.78rem;
}

#planttree .pt-contestMain{
  position:relative;
  z-index:1;
  display:flex;
  gap:1.15rem;
  align-items:flex-start;
}

#planttree .pt-programCard--contestHero h3{
  margin:0 0 0.65rem;
  color:rgba(255,248,225,0.98);
  font-size:clamp(1.45rem, 3.1vw, 2.45rem);
  line-height:1.04;
  letter-spacing:-0.04em;
  text-shadow:0 10px 28px rgba(0,0,0,0.35);
}

#planttree .pt-programCard--contestHero p{
  max-width:72ch;
  color:rgba(248,244,231,0.92);
  font-size:clamp(0.98rem, 1.5vw, 1.1rem);
  line-height:1.7;
}

#planttree .pt-programCard--contestHero p strong{
  color:#ffe08a;
  font-weight:1000;
}

#planttree .pt-contestBtn{
  margin-top:1.1rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.55rem;
  padding:0.9rem 1.25rem;
  border-radius:999px;
  text-decoration:none;
  color:#1b1207;
  background:linear-gradient(135deg, var(--cta-gold-1), var(--cta-gold-2));
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:0.08em;
  box-shadow:0 18px 42px rgba(0,0,0,0.38);
  transition:transform 180ms ease, filter 180ms ease;
}

#planttree .pt-contestBtn:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
}

#planttree .pt-programCard--referral{
  border-color:rgba(120, 255, 180, 0.24);
  background:linear-gradient(145deg, rgba(120,255,180,0.10), rgba(8,16,12,0.52));
}

#planttree .pt-programGrid--featured .pt-programCard--referral{
  max-width:760px;
  margin:0 auto;
}

#planttree .pt-programIcon{
  width:44px;
  height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#1b1207;
  background:linear-gradient(135deg, var(--cta-gold-1), var(--cta-gold-2));
  box-shadow:0 12px 28px rgba(0,0,0,0.30);
}

#planttree .pt-programIcon--large{
  width:72px;
  height:72px;
  border-radius:24px;
  font-size:1.65rem;
  box-shadow:0 20px 42px rgba(0,0,0,0.36);
}

#planttree .pt-programCard h3{
  margin:0 0 5px;
  color:rgba(255,236,190,0.96);
  font-size:1rem;
  font-weight:900;
  letter-spacing:-0.01em;
}

#planttree .pt-programCard p{
  margin:0;
  color:rgba(240,246,255,0.82);
  font-size:0.9rem;
  line-height:1.55;
}


@media (max-width:780px){
  #planttree .pt-programGrid{
    grid-template-columns:1fr;
  }

  #planttree .pt-contestMain{
    display:block;
  }

  #planttree .pt-programIcon--large{
    margin-bottom:1rem;
  }

  #planttree .pt-contestBtn{
    width:100%;
    text-align:center;
  }
}

/* ============================================================
   MOBILE POLISH — HEROES RAINFOREST
   - Keeps current HTML + JS intact
   - Removes Fun Facts card title divider line
   - Makes the site feel intentionally designed on phones
   ============================================================ */

/* Remove the gold divider line inside Heroes Fun Facts cards */
#fun-facts .card-front .front-title{
  border-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.58) 38%, rgba(0,0,0,0.84) 100%);
  padding: 3.9rem 0.85rem 1rem;
}

/* Make image cards feel more premium without changing the markup */
#fun-facts .card-front::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.12), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.12) 48%, rgba(0,0,0,0.68) 100%);
}

#fun-facts .card-front img{
  transform: scale(1.015);
  transition: transform 360ms ease, filter 360ms ease;
}

@media (hover:hover){
  #fun-facts .card:hover .card-front img{
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
  }
}

@media (max-width: 1100px){
  .nav{
    padding: 10px 12px 0;
  }

  .nav__inner{
    border-radius: 18px;
  }

  #fun-facts .cards-grid{
    width: min(100%, 900px);
    gap: 24px;
  }

  #fun-facts .card{
    width: clamp(224px, 31vw, 270px);
    height: auto;
    aspect-ratio: 260 / 330;
  }
}

@media (max-width: 768px){
  html{
    scroll-padding-top: calc(var(--nav-h, 84px) + 10px);
  }

  body{
    background-attachment: scroll;
  }

  section{
    padding: clamp(3.2rem, 9vw, 4.8rem) 1rem;
  }

  .container,
  .plants-animals-shell,
  #fun-facts .game-zone{
    width: 100%;
    max-width: 100%;
  }

  /* Mobile navigation: compact, premium, thumb-friendly */
  .nav{
    padding: 8px 10px 0;
  }

  .nav__inner{
    gap: 10px;
    padding: 9px 10px;
    border-radius: 18px;
    background: rgba(4, 14, 8, 0.72);
    box-shadow: 0 18px 42px rgba(0,0,0,0.48);
  }

  .nav__brandTitle{
    font-size: clamp(1.65rem, 7vw, 2.05rem);
  }

  .nav__brandTag{
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .nav__actions{
    gap: 8px;
  }

  .nav__cta{
    display: none;
  }

  .nav__burger{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 220, 150, 0.10);
  }

  .nav__panelInner{
    margin: calc(var(--nav-h, 84px) + 18px) auto 0;
    padding: 14px;
    gap: 10px;
  }

  .nav__panelLink{
    padding: 13px 15px;
    border-radius: 16px;
    font-size: 0.98rem;
    background:
      linear-gradient(135deg, rgba(255,220,150,0.08), rgba(60,255,170,0.05)),
      rgba(8, 16, 12, 0.66);
  }

  /* Hero: stronger mobile composition */
  .hero{
    min-height: 100svh;
    align-items: center;
    padding-top: calc(var(--nav-h, 84px) + 3.4rem);
    padding-bottom: 3.4rem;
  }

  #intro .hero-bg{
    background-position: center top;
  }

  .hero-content{
    padding-inline: 0.2rem;
  }

  .hero-title{
    margin-bottom: 1.25rem;
    padding: 0;
    text-shadow: 0 10px 28px rgba(0,0,0,0.62);
  }

  .hero-title__line{
    font-size: clamp(3rem, 17vw, 5.1rem);
    letter-spacing: 0.025em;
    line-height: 0.92;
  }

  .hero-title__line--of{
    font-size: clamp(1.35rem, 7vw, 2.1rem);
    letter-spacing: 0.13em;
    margin: -0.08em 0;
  }

  .hero-ctaRow{
    margin-top: 1.55rem;
    gap: 10px;
  }

  .hero-cta{
    width: min(100%, 310px);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.82rem;
  }

  .hero-chips{
    gap: 8px;
    margin-top: 0.95rem;
  }

  .hero-chip{
    font-size: 0.74rem;
    padding: 5px 10px;
    background: rgba(4, 14, 8, 0.46);
  }

  /* Maps + Plants mobile layout support */
  .map-zoom-container{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-height: 300px;
  }

  .map-pan{
    min-width: 720px;
  }

  .facts-grid{
    grid-template-columns: 1fr !important;
    gap: 15px;
    padding: 10px 0;
  }

  .plants-gallery{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .pa-card-info{
    position: relative !important;
    background: rgba(8, 28, 16, 0.95) !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    padding: 15px;
  }

  .pa-zoom-hint{
    display: inline-flex !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 14px !important;
  }

  /* Fun Facts: mobile-first card gallery */
  #fun-facts{
    min-height: auto;
    align-items: flex-start;
    padding: calc(var(--nav-h, 84px) + 2.4rem) 0.85rem 3.4rem;
    overflow-y: visible;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 236, 160, 0.24), transparent 42%),
      radial-gradient(circle at 14% 35%, rgba(120, 255, 170, 0.16), transparent 36%),
      linear-gradient(145deg, #071f0d 0%, #124517 48%, #226d24 100%);
  }

  #fun-facts .glow-particle{
    opacity: 0.46;
    filter: blur(3px);
  }

  #fun-facts .wild-title{
    font-size: clamp(2.05rem, 12vw, 3.35rem);
    line-height: 0.94;
    letter-spacing: 0.035em;
    padding: 0.22rem 1rem 0.28rem;
    border-width: 3px;
    border-radius: 34px 16px 34px 16px;
    box-shadow: 0 9px 0 #164516, 0 20px 35px rgba(0,0,0,0.32);
    text-shadow: 3px 3px 0 #1f5d22, 7px 7px 18px rgba(0,0,0,0.38);
  }

  #fun-facts .sub-snag{
    font-size: clamp(1.08rem, 5.2vw, 1.45rem);
    margin: 0.85rem 0 1.35rem;
    padding: 0.3rem 1rem;
    border-width: 2px;
    box-shadow: inset 0 -4px 0 #153f15, 0 10px 24px rgba(0,0,0,0.22);
  }

  #fun-facts .cards-grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0.25rem 0 1.6rem;
    perspective: 1800px;
  }

  #fun-facts .card{
    width: 100%;
    height: auto;
    aspect-ratio: 0.78;
    min-height: 232px;
    border-radius: 24px;
    filter: drop-shadow(0 14px 16px rgba(0, 24, 0, 0.55));
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  #fun-facts .card:hover{
    filter: drop-shadow(0 14px 16px rgba(0, 24, 0, 0.55));
  }

  #fun-facts .card-front,
  #fun-facts .card-back{
    border-width: 3px;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18), 0 12px 22px rgba(0, 24, 0, 0.50);
  }

  #fun-facts .card-front .front-title{
    font-size: clamp(1.05rem, 5vw, 1.5rem);
    line-height: 0.98;
    letter-spacing: 0.02em;
    padding: 3.4rem 0.55rem 0.78rem;
    text-shadow: 2px 2px 0 #164416, 0 0 10px rgba(0,0,0,0.88);
    overflow-wrap: anywhere;
  }

  #fun-facts .card-back{
    padding: 13px 10px;
  }

  #fun-facts .card-back p{
    padding: 1rem 0.72rem;
    border-radius: 26px;
    border-width: 3px;
    box-shadow: inset 0 -4px 0 #a47d32, 0 6px 0 #4f8046;
    font-size: clamp(0.95rem, 4.4vw, 1.16rem);
    line-height: 1.18;
    margin: 0;
  }

  #fun-facts .card-back p::before,
  #fun-facts .card-back p::after{
    font-size: 1.25rem;
  }

  #fun-facts .wiggle-hint{
    max-width: 100%;
    font-size: clamp(0.98rem, 4.7vw, 1.25rem);
    padding: 10px 16px;
    border-width: 3px;
    margin-top: 0.4rem;
    box-shadow: 0 7px 0 #1c541c, 0 16px 28px rgba(0,0,0,0.25);
  }

  #fun-facts .wiggle-hint::before{
    content:"Tap cards to flip";
    font: inherit;
  }

  #fun-facts .wiggle-hint{
    font-size: 0;
  }

  #fun-facts .wiggle-hint::before{
    font-size: clamp(0.98rem, 4.7vw, 1.25rem);
  }
}

@media (max-width: 430px){
  section{
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .nav__brandTag{
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #fun-facts .cards-grid{
    grid-template-columns: 1fr;
    width: min(100%, 318px);
    margin-inline: auto;
    gap: 16px;
  }

  #fun-facts .card{
    min-height: 365px;
    border-radius: 28px;
  }

  #fun-facts .card-front .front-title{
    font-size: clamp(1.35rem, 8vw, 1.85rem);
    padding-bottom: 0.95rem;
  }

  #fun-facts .card-back p{
    font-size: clamp(1.05rem, 5.5vw, 1.3rem);
    line-height: 1.22;
  }
}

@media (max-width: 360px){
  #fun-facts .cards-grid{
    width: 100%;
  }

  #fun-facts .card{
    min-height: 335px;
  }

  .hero-title__line{
    font-size: clamp(2.65rem, 16vw, 4.2rem);
  }
}


/* ============================================================
   HEROES MOCKUP BRANDING PASS
   - Logo in nav/mobile/footer
   - Mockup-style hero message and action tiles
   - Keeps the logo out of the intro hero body
   ============================================================ */
:root{
  --heroes-gold: #f5c75d;
  --heroes-gold-2: #ffe9a8;
  --heroes-green: #143f1f;
  --heroes-glass: rgba(4, 16, 9, 0.78);
}

.nav{
  padding: 10px 18px 0;
}

.nav__inner{
  max-width: 1460px;
  padding: 9px 14px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(6,20,10,0.86), rgba(6,18,12,0.72), rgba(5,17,10,0.86)),
    rgba(3, 12, 7, 0.78);
  border: 1px solid rgba(245, 199, 93, 0.36);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.58),
    0 0 0 1px rgba(255, 238, 175, 0.07) inset,
    0 0 34px rgba(245, 199, 93, 0.10);
}

.nav__brand{
  min-width: 248px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.nav__logoWrap{
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.42), rgba(255,255,255,0.08) 56%, rgba(20,76,31,0.38) 100%);
  box-shadow:
    0 0 0 2px rgba(255, 238, 184, 0.62),
    0 0 26px rgba(255, 228, 134, 0.34),
    0 16px 28px rgba(0,0,0,0.40);
  overflow: visible;
}

.nav__logo{
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,0.35));
}

.nav__brandText{
  display: grid;
  gap: 1px;
}

.nav__brandTitle{
  font-size: clamp(2.1rem, 3vw, 2.85rem);
  line-height: 0.82;
  color: rgba(255, 231, 167, 0.98);
  text-shadow: 0 0 18px rgba(245,199,93,0.20), 0 3px 14px rgba(0,0,0,0.48);
}

.nav__brandTag{
  color: var(--heroes-gold);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.nav__links{
  gap: 5px;
}

.nav__dot{ display:none; }

.nav__link{
  display: inline-grid;
  place-items: center;
  gap: 4px;
  min-width: 70px;
  padding: 8px 9px;
  color: rgba(255, 244, 216, 0.91);
  font-size: 0.78rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: none;
  border-radius: 16px;
}

.nav__link i{
  margin: 0;
  color: var(--heroes-gold);
  font-size: 1.08rem;
  filter: drop-shadow(0 0 9px rgba(245,199,93,0.24));
}

.nav__link:hover,
.nav__link.is-active{
  background: rgba(245,199,93,0.12);
  color: rgba(255,248,225,0.98);
  box-shadow: inset 0 0 0 1px rgba(245,199,93,0.24);
}

.nav__cta{
  background: linear-gradient(135deg, #fff1a8, #f5bf48 44%, #c98223 100%);
  color: #211608;
  border: 1px solid rgba(255,241,168,0.64);
  box-shadow: 0 10px 26px rgba(0,0,0,0.40), 0 0 18px rgba(245,199,93,0.22);
}

.nav__panel{
  background:
    radial-gradient(circle at 50% 8%, rgba(245,199,93,0.18), transparent 42%),
    radial-gradient(circle at 80% 72%, rgba(68,255,149,0.10), transparent 44%),
    linear-gradient(180deg, rgba(3,12,7,0.94), rgba(4,20,10,0.96));
}

.nav__panelInner{
  max-width: min(92vw, 440px);
  margin-top: calc(var(--nav-h, 84px) + 22px);
  padding: 18px;
  border-radius: 26px;
  background: rgba(5, 21, 11, 0.82);
  border: 1px solid rgba(245,199,93,0.25);
  box-shadow: 0 28px 70px rgba(0,0,0,0.50);
}

.nav__panelBrand{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid rgba(245,199,93,0.18);
  margin-bottom: 2px;
}

.nav__panelLogo{
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.42));
}

.nav__panelBrand strong{
  display:block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  line-height: 0.9;
  color: rgba(255,231,167,0.98);
}

.nav__panelBrand span{
  color: var(--heroes-gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.nav__panelLink{
  display:flex;
  align-items:center;
  gap: 13px;
  border-color: rgba(245,199,93,0.16);
}

.nav__panelLink i{
  width: 24px;
  text-align: center;
  color: var(--heroes-gold);
}

.nav__panelLink--tree{
  color: #211608;
  background: linear-gradient(135deg, #fff1a8, #e9ab37) !important;
  border-color: rgba(255,241,168,0.55);
}

.nav__panelLink--tree i{ color: #26561f; }

#intro.hero{
  min-height: 100svh;
  padding-top: calc(var(--nav-h, 84px) + 5rem);
  padding-bottom: clamp(3.4rem, 6vw, 5.5rem);
}

#intro::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 217, 122, 0.22), transparent 24%),
    radial-gradient(circle at 18% 26%, rgba(79, 255, 157, 0.12), transparent 31%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.28) 52%, rgba(0,0,0,0.58) 100%);
}

#intro .hero-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  max-width: 1240px;
}

.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap: 9px;
  margin: 0 0 0.85rem;
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  color: rgba(255, 234, 177, 0.96);
  background: rgba(7, 22, 10, 0.54);
  border: 1px solid rgba(245,199,93,0.26);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

.hero-title--mockup{
  margin: 0;
  max-width: 1120px;
  gap: 0;
  text-shadow: 0 12px 34px rgba(0,0,0,0.78);
}

.hero-title--mockup .hero-title__line{
  letter-spacing: 0.025em;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff9e8 0%, #ffe8a9 42%, #d29d42 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.58));
}

.hero-title__line--main{
  font-size: clamp(3.8rem, 8vw, 7.45rem);
}

.hero-title__line--rainforest{
  font-size: clamp(4.5rem, 9.7vw, 8.85rem);
}

.hero-tagline{
  margin: 1.05rem auto 0;
  color: rgba(255, 247, 219, 0.96);
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  text-shadow: 0 8px 24px rgba(0,0,0,0.70);
}

.hero-ctaRow{
  margin-top: 1.8rem;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 12px;
  border-color: rgba(255,238,174,0.42);
  letter-spacing: 0.07em;
}

.hero-cta--tree{
  background: linear-gradient(135deg, #f7e37d, #eead36 52%, #c78322 100%);
}

.hero-featureGrid{
  width:min(100%, 930px);
  margin: clamp(1.8rem, 4vw, 3rem) auto 0;
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.hero-featureTile{
  position:relative;
  min-height: 126px;
  padding: 14px 10px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
  color: rgba(255, 246, 218, 0.94);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(6, 28, 12, 0.58);
  border: 1px solid rgba(245,199,93,0.54);
  box-shadow:
    0 15px 36px rgba(0,0,0,0.42),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow:hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-featureTile::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(circle at 50% 12%, rgba(245,199,93,0.22), transparent 48%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-featureTile i,
.hero-featureTile span{
  position:relative;
  z-index:1;
}

.hero-featureTile i{
  width: 54px;
  height: 54px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  color: #143111;
  font-size: 1.8rem;
  background: linear-gradient(145deg, #fff1a8, #e7b13d);
  box-shadow: 0 9px 20px rgba(0,0,0,0.34), 0 0 22px rgba(245,199,93,0.20);
}

.hero-featureTile span{
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 5px 14px rgba(0,0,0,0.60);
}

.hero-featureTile:hover{
  transform: translateY(-5px);
  border-color: rgba(255,237,168,0.82);
  background: rgba(12, 44, 18, 0.72);
}

.hero-featureTile:hover::before{ opacity:1; }

.hero-featureTile--tree{
  border-color: rgba(255,236,137,0.86);
  background: linear-gradient(180deg, rgba(93, 62, 12, 0.34), rgba(13, 45, 17, 0.70));
}

.hero-chips{ display:none; }

.site-footer{
  position:relative;
  display:grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(360px, 1.2fr);
  gap: 28px;
  align-items:center;
  margin: 3rem auto 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 24px;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(245,199,93,0.18), transparent 34%),
    radial-gradient(circle at 88% 72%, rgba(70,255,145,0.10), transparent 36%),
    linear-gradient(135deg, rgba(4,16,9,0.94), rgba(8,31,15,0.90));
  border: 1px solid rgba(245,199,93,0.28);
  box-shadow: 0 24px 65px rgba(0,0,0,0.42);
}

.site-footer__brand{
  display:flex;
  gap: 18px;
  align-items:center;
}

.site-footer__logo{
  width: 128px;
  height: 128px;
  object-fit:contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45));
}

.site-footer__brand h2{
  margin: 0 0 0.3rem;
  color: rgba(255,231,167,0.98);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.9;
  text-transform:none;
}

.site-footer__brand p{
  max-width: 32ch;
  color: rgba(255,246,218,0.82);
}

.site-footer__links{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

.site-footer__links a{
  color: rgba(255,246,218,0.88);
  text-decoration:none;
  font-weight: 800;
  border-bottom: 1px solid rgba(245,199,93,0.14);
  padding-bottom: 6px;
}

.site-footer__links a:hover{ color: var(--heroes-gold-2); }

.site-footer__credit{
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(245,199,93,0.18);
  color: rgba(255,246,218,0.62);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1240px){
  .nav__brand{ min-width: 214px; }
  .nav__logoWrap{ width: 64px; height:64px; flex-basis:64px; }
  .nav__logo{ width:72px; height:72px; }
  .nav__link{ min-width: 58px; font-size:0.70rem; padding-inline:6px; }
  .nav__link i{ font-size: 1rem; }
  .hero-featureGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; }
}

@media (max-width: 980px){
  .nav__brand{ min-width: 0; }
  .nav__logoWrap{ width: 58px; height:58px; flex-basis:58px; }
  .nav__logo{ width:66px; height:66px; }
  .nav__brandTitle{ font-size: 2.05rem; }
  .hero-featureGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
  .site-footer{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .nav__inner{ padding: 8px 10px; }
  .nav__logoWrap{ width: 52px; height:52px; flex-basis:52px; }
  .nav__logo{ width:60px; height:60px; }
  .nav__brand{ gap: 10px; }
  .nav__brandTitle{ font-size: clamp(1.8rem, 8vw, 2.25rem); }
  .nav__brandTag{ font-size:0.58rem; letter-spacing:0.12em; }

  #intro.hero{
    padding-top: calc(var(--nav-h, 84px) + 2.7rem);
    padding-bottom: 3rem;
  }

  .hero-eyebrow{
    font-size: 0.64rem;
    letter-spacing: 0.11em;
    padding: 0.46rem 0.76rem;
  }

  .hero-title__line--main{
    font-size: clamp(2.65rem, 14vw, 4.9rem) !important;
  }

  .hero-title__line--rainforest{
    font-size: clamp(3.15rem, 16vw, 5.55rem) !important;
  }

  .hero-tagline{
    margin-top: 0.85rem;
    font-size: clamp(0.85rem, 4.2vw, 1.16rem);
    letter-spacing: 0.11em;
  }

  .hero-featureGrid{
    width: min(100%, 420px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 1.55rem;
  }

  .hero-featureTile{
    min-height: 98px;
    padding: 11px 8px;
    border-radius: 16px;
  }

  .hero-featureTile i{
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.4rem;
  }

  .hero-featureTile span{ font-size:0.78rem; }
  .site-footer__brand{ flex-direction: column; text-align:center; }
  .site-footer__links{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px){
  .nav__logoWrap{ width: 48px; height:48px; flex-basis:48px; }
  .nav__logo{ width:56px; height:56px; }
  .nav__brandTitle{ font-size: 1.78rem; }
  .nav__brandTag{ max-width: 140px; }
  .hero-title__line--main{ font-size: clamp(2.25rem, 13.5vw, 3.4rem) !important; }
  .hero-title__line--rainforest{ font-size: clamp(2.7rem, 15.5vw, 4.05rem) !important; }
  .hero-featureGrid{ width: min(100%, 350px); }
  .site-footer__links{ grid-template-columns: 1fr; text-align:center; }
}
/* ============================================================
   EMERGENCY MOBILE LOGO CONTAINMENT PATCH
   Prevents the Heroes logo image from rendering at intrinsic size
   inside the fixed navbar, mobile menu, or footer.
   ============================================================ */

.nav img,
.nav__logo,
.nav__panelLogo,
.site-footer__logo{
  display: block;
  object-fit: contain;
  max-inline-size: 100%;
  max-block-size: 100%;
  height: auto;
  flex-shrink: 0;
}

.nav__logoWrap{
  contain: layout paint;
  isolation: isolate;
}

.nav__logo{
  inline-size: 82px;
  block-size: 82px;
  max-inline-size: 82px;
  max-block-size: 82px;
}

.nav__panelLogo{
  inline-size: 96px;
  block-size: 96px;
  max-inline-size: 96px;
  max-block-size: 96px;
}

.site-footer__logo{
  inline-size: 128px;
  block-size: 128px;
  max-inline-size: 128px;
  max-block-size: 128px;
}

@media (max-width: 768px){
  .nav{
    padding: max(8px, env(safe-area-inset-top)) 10px 0;
  }

  .nav__inner{
    min-height: 62px;
    padding: 7px 9px;
    gap: 8px;
    border-radius: 18px;
  }

  .nav__brand{
    min-width: 0;
    max-width: calc(100vw - 118px);
    gap: 8px;
    overflow: hidden;
  }

  .nav__logoWrap{
    inline-size: clamp(42px, 11.5vw, 50px) !important;
    block-size: clamp(42px, 11.5vw, 50px) !important;
    flex: 0 0 clamp(42px, 11.5vw, 50px) !important;
    overflow: hidden;
  }

  .nav__logo{
    inline-size: clamp(40px, 12vw, 52px) !important;
    block-size: clamp(40px, 12vw, 52px) !important;
    max-inline-size: clamp(40px, 12vw, 52px) !important;
    max-block-size: clamp(40px, 12vw, 52px) !important;
  }

  .nav__brandText{
    min-width: 0;
    overflow: hidden;
  }

  .nav__brandTitle{
    font-size: clamp(1.45rem, 7.2vw, 1.9rem) !important;
    line-height: 0.9;
    white-space: nowrap;
  }

  .nav__brandTag{
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.52rem !important;
    letter-spacing: 0.10em !important;
  }

  .nav__actions{
    gap: 8px;
    flex-shrink: 0;
  }

  .nav__cta{
    padding: 9px 10px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .nav__burger{
    inline-size: 40px;
    block-size: 40px;
    flex: 0 0 40px;
  }

  .nav__progress{
    margin-top: 7px;
  }

  .nav__panelInner{
    width: min(92vw, 420px);
    max-height: calc(100dvh - var(--nav-h, 76px) - 34px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__panelBrand{
    gap: 10px;
    align-items: center;
  }

  .nav__panelLogo{
    inline-size: clamp(52px, 17vw, 64px) !important;
    block-size: clamp(52px, 17vw, 64px) !important;
    max-inline-size: clamp(52px, 17vw, 64px) !important;
    max-block-size: clamp(52px, 17vw, 64px) !important;
  }

  .nav__panelBrand strong{
    font-size: clamp(1.65rem, 7.5vw, 2.05rem) !important;
  }

  .nav__panelBrand span{
    font-size: 0.64rem !important;
    letter-spacing: 0.06em !important;
  }

  .site-footer__logo{
    inline-size: clamp(76px, 24vw, 96px) !important;
    block-size: clamp(76px, 24vw, 96px) !important;
    max-inline-size: clamp(76px, 24vw, 96px) !important;
    max-block-size: clamp(76px, 24vw, 96px) !important;
  }
}

@media (max-width: 430px){
  .nav__inner{
    min-height: 58px;
    padding: 6px 8px;
  }

  .nav__brand{
    max-width: calc(100vw - 108px);
    gap: 7px;
  }

  .nav__logoWrap{
    inline-size: 42px !important;
    block-size: 42px !important;
    flex-basis: 42px !important;
  }

  .nav__logo{
    inline-size: 44px !important;
    block-size: 44px !important;
    max-inline-size: 44px !important;
    max-block-size: 44px !important;
  }

  .nav__brandTitle{
    font-size: 1.48rem !important;
  }

  .nav__brandTag{
    max-width: 112px;
    font-size: 0.48rem !important;
  }

  .nav__cta{
    padding: 8px 9px;
    font-size: 0.62rem;
  }

  .nav__burger{
    inline-size: 38px;
    block-size: 38px;
    flex-basis: 38px;
  }

  .nav__panelLogo{
    inline-size: 54px !important;
    block-size: 54px !important;
    max-inline-size: 54px !important;
    max-block-size: 54px !important;
  }

   /* ============================================================
   MOBILE RESPONSIVENESS FOR GEOGRAPHY/PLANTCHANGE SECTION
   ============================================================ */
@media (max-width: 980px) {
  /* 1. Force the grid to stack vertically in 1 column instead of 2 */
  #plantchange .pcv-grid--2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* 2. Undo the text-direction flipping so things stack in natural order */
  #plantchange .pcv-grid--flip {
    direction: ltr;
  }
  #plantchange .pcv-grid--flip > * {
    direction: ltr;
  }

  /* 3. Center the image block and ensure it occupies clean width proportions */
  #plantchange .pcv-card--media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Limits size on mobile so it doesn't look blown out */
    margin: 0 auto;   /* Centers the container horizontally */
  }

  #plantchange .pcv-card--media img {
    width: 100%;
    min-height: 300px; /* Slightly lower minimum height for small screens */
    object-fit: cover;
  }
  
  /* 4. Fix your statistics grid columns for mobile layouts */
  #plantchange .pcv-stats {
    grid-template-columns: 1fr; /* Stacks cards vertically instead of 3 across */
    gap: 1rem;
  }
}
}

/* ============================================================
   MOBILE PERFECT PATCH — touch layout, map transition, modal safety
   Append-only override. Keep this block at the very bottom of styles.css.
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h, 84px) + 14px);
}

@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
  }

  .nav {
    padding: max(10px, env(safe-area-inset-top)) 10px 0;
  }

  .nav__inner {
    gap: 10px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .nav__brand {
    min-width: 0;
  }

  .nav__brandTitle {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .nav__brandTag {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .nav__burger span {
    width: 22px;
    margin: 3px 0;
  }

  .nav__panel {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .nav__panelInner {
    margin-top: calc(var(--nav-h, 84px) + 18px);
    padding: 14px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .nav__panelLink {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
}

@media (max-width: 768px) {
  #spineRoot > section.biome,
  section {
    min-height: auto;
    padding-top: clamp(46px, 12vw, 72px);
    padding-bottom: clamp(46px, 12vw, 72px);
    padding-left: clamp(16px, 4vw, 22px);
    padding-right: clamp(16px, 4vw, 22px);
  }

  .container,
  .plants-animals-shell,
  .geo-section {
    width: 100%;
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: 1.08;
  }

  .story-toggle__text,
  .biome-note,
  .plants-animals-subtitle {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-h, 84px) + 3.2rem);
    padding-bottom: 4rem;
  }

  .hero-title__line {
    font-size: clamp(3.1rem, 16vw, 5rem);
    line-height: 0.92;
  }

  .hero-tagline {
    font-size: clamp(1rem, 4.4vw, 1.25rem);
  }

  .hero-ctaRow,
  .hero-featureGrid {
    width: 100%;
  }

  .hero-cta,
  .story-toggle__btn,
  .nav__panelLink,
  .pa-card,
  .quiz-option,
  button,
  a[class*="button"],
  a[class*="cta"] {
    touch-action: manipulation;
  }

  .hero-cta,
  .story-toggle__btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .global-grain,
  .hero-grain {
    opacity: 0.055;
  }

  .global-firefly:nth-child(n+9),
  #heroFireflies .firefly:nth-child(n+14),
  #heroRain .rain-drop:nth-child(n+25) {
    display: none !important;
  }
}

/* Map: mobile gets its own geometry. Do not let the old 720px pan layer
   create horizontal scroll or throw off the GSAP zoom math. */
@media (max-width: 700px) {
  #maps .geo-section {
    overflow: hidden;
  }

  #maps .map-zoom-container {
    overflow: hidden !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: auto;
    max-width: 100%;
    min-height: 0 !important;
    aspect-ratio: 1.18 / 1;
    margin: 1.15rem 0 1.75rem;
    border-radius: 1.35rem;
  }

  #maps .map-pan {
    width: 100% !important;
    min-width: 0 !important;
    height: 100%;
    transform-origin: 0 0;
  }

  #maps .map-image,
  #maps .map-image-detailed,
  #maps .rainforest-image {
    width: 100%;
    height: 100%;
  }

  #maps .map-image {
    object-fit: cover;
    object-position: center center;
  }

  #maps #mapsAmazonMap,
  #maps .rainforest-image {
    object-fit: contain !important;
    object-position: center center;
    background: #0d1811;
  }

  #maps .pin {
    width: 1.85rem;
    height: 1.85rem;
  }

  #maps .highlight-amazon {
    width: 4rem;
    height: 4rem;
  }

  #maps .pin-tooltip {
    display: none !important;
  }

  #maps .facts-grid {
    grid-template-columns: 1fr !important;
    gap: 0.95rem;
  }

  #maps .fact-card {
    min-height: auto;
  }

  #maps .geo-footer {
    gap: 0.65rem;
  }

  #maps .geo-footer span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  #maps .map-zoom-container {
    aspect-ratio: 1 / 1;
  }
}

/* Plants & Animals: consistent one-column mobile gallery and scroll-safe modal. */
@media (max-width: 768px) {
  .plants-gallery {
    grid-template-columns: 1fr !important;
    width: min(100%, 460px);
    margin-left: auto;
    margin-right: auto;
    gap: 1.1rem;
  }

  .pa-card {
    border-radius: 24px;
  }

  .pa-card-image {
    height: clamp(230px, 64vw, 320px) !important;
  }

  .pa-card-info {
    padding: 1.25rem 1.05rem 1rem;
  }

  .pa-card-meta {
    line-height: 1.45;
  }
}

@media (max-width: 960px) {
  .pa-modal-overlay {
    align-items: center;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }

  .pa-modal-content {
    width: min(100%, 680px);
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: 1fr;
  }

  .pa-modal-image-wrap {
    padding: 0.85rem;
  }

  .pa-modal-image {
    width: 100%;
    max-height: 42vh;
    max-height: 42dvh;
    object-fit: contain;
  }

  .pa-modal-text {
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px solid rgba(228, 213, 171, 0.12);
    padding: clamp(1.15rem, 5vw, 2rem);
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .pa-modal-title {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.05;
  }

  .pa-modal-desc {
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .pa-modal-footnote {
    margin-top: 1rem;
  }
}

@media (max-width: 420px) {
  .pa-modal-content {
    border-radius: 22px;
  }

  .pa-modal-close {
    top: 0.55rem;
    right: 0.55rem;
    width: 44px;
    height: 44px;
  }

  .pa-modal-image {
    max-height: 36vh;
    max-height: 36dvh;
  }

  .pa-modal-text {
    padding: 1.05rem;
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  }
}

@media (hover: none), (pointer: coarse) {
  .pa-card:hover,
  .hero-featureTile:hover,
  .fact-card:hover,
  .flip-card:hover {
    transform: none !important;
  }

  .pa-card:hover .pa-card-image img {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .global-fireflies,
  .hero-fireflies,
  .hero-rain {
    display: none !important;
  }


/* ============================================================
   FIX: HERO BACKGROUND — SHOW FULL IMAGE, REMOVE SIDE MASKS
   Put this at the VERY BOTTOM of static/spine/styles.css
   ============================================================ */

/* Force the hero image to show fully instead of being cropped */
#intro.hero.hero--amazon .hero-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 4, 0.08) 0%,
      rgba(2, 6, 4, 0.03) 45%,
      rgba(2, 6, 4, 0.12) 100%
    ),
    url("./image/background.png") !important;

  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #050806 !important;

  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;

  filter: brightness(1.18) contrast(1.04) saturate(1.10) !important;
}

/* Remove the dark left/right SVG design that is covering the image */
#intro.hero.hero--amazon .leaf-frame,
#intro.hero.hero--amazon .leaf-frame--left,
#intro.hero.hero--amazon .leaf-frame--right {
  display: none !important;
}

/* Keep the hero content above the image */
#intro.hero.hero--amazon .hero-content {
  position: relative !important;
  z-index: 5 !important;
}

/* Reduce overlay layers so the image is not visually buried */
#intro.hero.hero--amazon .hero-sky {
  opacity: 0.14 !important;
  filter: blur(6px) !important;
}

#intro.hero.hero--amazon .hero-mist {
  opacity: 0.18 !important;
}

#intro.hero.hero--amazon .hero-rays {
  opacity: 0.20 !important;
}

#intro.hero.hero--amazon .vines {
  opacity: 0.16 !important;
}

#intro.hero.hero--amazon .hero-grain {
  opacity: 0.04 !important;
}

/* Mobile keeps the full image visible too */
@media (max-width: 700px) {
  #intro.hero.hero--amazon .hero-bg {
    background-size: contain !important;
    background-position: center center !important;
  }
}   
   
}

/* ============================================================
   MISSION — UNDER LANDING PAGE
   Append-only, fully scoped. Does not modify existing sections.
   ============================================================ */
#mission.hotr-mission{
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(5rem, 8vw, 7rem) 1.35rem;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 226, 140, 0.18) 0%, transparent 34%),
    radial-gradient(circle at 18% 30%, rgba(125, 255, 178, 0.16) 0%, transparent 34%),
    radial-gradient(circle at 88% 70%, rgba(45, 168, 93, 0.22) 0%, transparent 40%),
    linear-gradient(180deg, #030705 0%, #07150c 44%, #030705 100%);
}

#mission.hotr-mission::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.38;
  background:
    linear-gradient(115deg, rgba(0,0,0,0.78), rgba(0,0,0,0.22) 38%, rgba(0,0,0,0.72)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='0%25' r='75%25'%3E%3Cstop offset='0%25' stop-color='%23ffe6a3' stop-opacity='.38'/%3E%3Cstop offset='55%25' stop-color='%23003518' stop-opacity='.18'/%3E%3Cstop offset='100%25' stop-color='%23000000' stop-opacity='.75'/%3E%3C/radialGradient%3E%3ClinearGradient id='l' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230c3217'/%3E%3Cstop offset='.55' stop-color='%23051a0d'/%3E%3Cstop offset='1' stop-color='%23020503'/%3E%3C/linearGradient%3E%3Cfilter id='blur'%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23l)'/%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Cg opacity='.65' filter='url(%23blur)'%3E%3Cpath d='M0 740 C120 560 210 450 330 330 C420 240 500 190 590 60 L610 900 L0 900 Z' fill='%23040f08'/%3E%3Cpath d='M1600 720 C1480 560 1370 430 1230 300 C1135 210 1060 150 1000 45 L950 900 L1600 900 Z' fill='%23040e08'/%3E%3Cpath d='M760 0 C700 170 720 300 660 460 C600 620 470 710 390 900 L880 900 C850 720 895 590 860 455 C820 305 850 165 760 0 Z' fill='%2307160b' opacity='.74'/%3E%3C/g%3E%3Cg stroke='%231f6d3a' stroke-opacity='.32' stroke-width='6' fill='none'%3E%3Cpath d='M95 -20 C150 130 110 245 190 370 C270 500 230 650 290 930'/%3E%3Cpath d='M1470 -40 C1410 105 1460 250 1360 390 C1260 540 1305 700 1210 930'/%3E%3Cpath d='M420 -20 C450 165 390 315 455 470 C520 625 460 755 515 930'/%3E%3Cpath d='M1150 -20 C1080 130 1140 300 1065 485 C1000 645 1065 780 980 930'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.08);
}

#mission.hotr-mission::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,7,5,0.94) 0%, rgba(3,7,5,0.18) 18%, rgba(3,7,5,0.22) 72%, rgba(3,7,5,0.96) 100%),
    radial-gradient(circle at 50% 24%, rgba(255, 226, 140, 0.10), transparent 38%),
    radial-gradient(circle at 12% 80%, rgba(125, 255, 178, 0.10), transparent 36%);
}

#mission .hotr-mission__firefly{
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  z-index: -1;
  background: radial-gradient(circle at 35% 35%, white 0%, rgba(255, 232, 160, 0.86) 26%, rgba(125, 255, 178, 0.34) 58%, transparent 72%);
  box-shadow: 0 0 18px rgba(255, 226, 140, 0.55), 0 0 34px rgba(125, 255, 178, 0.25);
  opacity: 0.58;
  animation: hotrMissionDrift 8s ease-in-out infinite alternate, hotrMissionPulse 2.5s ease-in-out infinite alternate;
}

#mission .hotr-mission__firefly:nth-child(1){ left: 8%; top: 22%; animation-delay: .2s; }
#mission .hotr-mission__firefly:nth-child(2){ left: 18%; top: 76%; animation-delay: 1.1s; }
#mission .hotr-mission__firefly:nth-child(3){ left: 32%; top: 18%; animation-delay: .8s; }
#mission .hotr-mission__firefly:nth-child(4){ left: 72%; top: 23%; animation-delay: 1.8s; }
#mission .hotr-mission__firefly:nth-child(5){ left: 84%; top: 72%; animation-delay: .5s; }
#mission .hotr-mission__firefly:nth-child(6){ left: 92%; top: 42%; animation-delay: 1.4s; }

@keyframes hotrMissionDrift{
  from{ transform: translate3d(-16px, -10px, 0) scale(.8); }
  to{ transform: translate3d(22px, 16px, 0) scale(1.2); }
}

@keyframes hotrMissionPulse{
  from{ opacity: .24; filter: blur(.2px); }
  to{ opacity: .82; filter: blur(0); }
}

#mission .hotr-mission__wrap{
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

#mission .hotr-mission__shell{
  position: relative;
  overflow: hidden;
  border-radius: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(244, 213, 138, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255,255,255,0.02)),
    radial-gradient(circle at 18% 16%, rgba(255, 226, 140, 0.16), transparent 32%),
    radial-gradient(circle at 86% 78%, rgba(125, 255, 178, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(4, 14, 8, 0.86), rgba(5, 20, 11, 0.78));
  box-shadow:
    0 34px 90px rgba(0,0,0,0.62),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 80px rgba(125, 255, 178, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

#mission .hotr-mission__shell::before{
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: .7;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 226, 140, 0.22) 42%, rgba(125, 255, 178, 0.18) 52%, transparent 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(125, 255, 178, 0.14) 42%, rgba(255, 226, 140, 0.20) 52%, transparent 100%) bottom / 100% 1px no-repeat;
}

#mission .hotr-mission__grid{
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: clamp(1.3rem, 3vw, 2.2rem);
  align-items: stretch;
}

#mission .hotr-mission__copy{
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.6rem);
  border-radius: clamp(22px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(2, 10, 6, 0.64), rgba(3, 14, 8, 0.42));
  border: 1px solid rgba(255, 226, 140, 0.12);
  box-shadow: inset 0 0 70px rgba(0,0,0,0.22);
}

#mission .hotr-mission__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: rgba(255, 226, 140, 0.92);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

#mission .hotr-mission__eyebrow::before{
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 226, 140, 0), rgba(255, 226, 140, .85));
}

#mission .hotr-mission__title{
  max-width: 11ch;
  margin: 0 0 1.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.045em;
  text-transform: none;
  color: transparent;
  background: linear-gradient(180deg, #fff7df 0%, #f4d58a 46%, #b9873b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 20px 50px rgba(0,0,0,.34);
}

#mission .hotr-mission__text{
  display: grid;
  gap: .95rem;
  max-width: 76ch;
  color: rgba(235, 247, 236, 0.76);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
  line-height: 1.86;
}

#mission .hotr-mission__text p{ margin: 0; }

#mission .hotr-mission__text strong{
  color: rgba(255, 245, 214, 0.98);
  font-weight: 800;
}

#mission .hotr-mission__highlight{
  color: rgba(244, 213, 138, 0.98);
  font-weight: 800;
}

#mission .hotr-mission__contact{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  margin-top: 1.35rem;
  padding: .78rem 1rem;
  border-radius: 999px;
  color: rgba(255, 248, 225, 0.95);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255, 226, 140, 0.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

#mission .hotr-mission__contact:hover{
  transform: translateY(-2px);
  border-color: rgba(255, 226, 140, 0.38);
  background: rgba(255,255,255,.085);
}

#mission .hotr-mission__impact{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 226, 140, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid rgba(125, 255, 178, 0.18);
  box-shadow: inset 0 0 60px rgba(125, 255, 178, 0.04);
}

#mission .hotr-mission__impactTop{
  padding: 1.15rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.10), rgba(255, 226, 140, 0.08));
  border: 1px solid rgba(255,255,255,.10);
  text-align: center;
}

#mission .hotr-mission__impactNumber{
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3.8rem, 8vw, 6.4rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255, 248, 225, 0.98);
  text-shadow:
    0 0 34px rgba(125, 255, 178, 0.16),
    0 18px 38px rgba(0,0,0,0.34);
  font-variant-numeric: tabular-nums;
}

#mission .hotr-mission__impactLabel{
  margin-top: .55rem;
  color: rgba(244, 213, 138, .95);
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#mission .hotr-mission__badgeGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

#mission .hotr-mission__badge{
  min-height: 116px;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(3, 12, 7, 0.46);
  border: 1px solid rgba(255,255,255,0.105);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

#mission .hotr-mission__badge i{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: .8rem;
  border-radius: 14px;
  color: rgba(6, 18, 10, .94);
  background: linear-gradient(135deg, #f4d58a, #7dffb2);
  box-shadow: 0 0 28px rgba(125, 255, 178, 0.16);
}

#mission .hotr-mission__badge strong{
  display: block;
  margin-bottom: .25rem;
  color: rgba(255, 248, 225, .95);
  font-size: .92rem;
  font-weight: 900;
}

#mission .hotr-mission__badge span{
  color: rgba(235, 247, 236, .62);
  font-size: .82rem;
  line-height: 1.45;
}

#mission .hotr-mission__strip{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.2rem;
}

#mission .hotr-mission__pill{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .85rem;
  border-radius: 999px;
  color: rgba(255,248,225,.86);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,226,140,.13);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 980px){
  #mission .hotr-mission__grid{ grid-template-columns: 1fr; }
  #mission .hotr-mission__title{ max-width: 100%; }
}

@media (max-width: 640px){
  #mission.hotr-mission{ padding-inline: 1rem; }
  #mission .hotr-mission__shell{ border-radius: 26px; padding: 1rem; }
  #mission .hotr-mission__copy,
  #mission .hotr-mission__impact{ border-radius: 22px; }
  #mission .hotr-mission__text{ line-height: 1.72; }
  #mission .hotr-mission__contact{ width: 100%; justify-content: center; font-size: .88rem; }
  #mission .hotr-mission__badgeGrid{ grid-template-columns: 1fr; }
  #mission .hotr-mission__badge{ min-height: auto; }
}

@media (prefers-reduced-motion: reduce){
  #mission .hotr-mission__firefly{
    animation: none !important;
  }
}

/* Final logo containment safety. This does not change layout; it only prevents intrinsic image blowouts. */
.nav__logo,
.nav__panelLogo{
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav__logo{
  max-width: 82px;
  max-height: 82px;
}

.nav__panelLogo{
  max-width: 96px;
  max-height: 96px;
}

@media (max-width: 768px){
  .nav__logo{ max-width: 52px; max-height: 52px; }
  .nav__panelLogo{ max-width: 64px; max-height: 64px; }
}

/* ============================================================
   LANDING HERO — NO MIST / NO CLOUDINESS / SHARP IMAGE
   ============================================================ */

/* Remove global biome haze from the landing page */
#intro.hero.hero--amazon::before{
  display: none !important;
  content: none !important;
}

/* Keep only the real background image with a light readability shade */
#intro.hero.hero--amazon .hero-bg{
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 4, 0.04) 0%,
      rgba(2, 6, 4, 0.02) 45%,
      rgba(2, 6, 4, 0.16) 100%
    ),
    url("./image/background2.png") !important;

  background-size: cover !important;
  background-position: center 35% !important;
  background-repeat: no-repeat !important;

  filter: brightness(1.10) contrast(1.16) saturate(1.12) !important;
}

/* Kill all cloudy / mist / haze layers */
#intro.hero.hero--amazon .hero-sky,
#intro.hero.hero--amazon .hero-mist,
#intro.hero.hero--amazon .hero-rays,
#intro.hero.hero--amazon .vines,
#intro.hero.hero--amazon .hero-grain{
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Optional: remove rain too, because it can also soften the image */
#intro.hero.hero--amazon .hero-rain{
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Keep title readable now that the mist is gone */
#intro.hero.hero--amazon .hero-title{
  text-shadow:
    0 6px 18px rgba(0,0,0,0.82),
    0 0 18px rgba(255, 220, 150, 0.14) !important;
}

#intro.hero.hero--amazon .hero-title__line{
  filter: drop-shadow(0 7px 10px rgba(0,0,0,0.65)) !important;
}

/* ============================================================
   LANDING HERO — VIEW / TITLE / IMAGE POSITION FIX ONLY
   Put this AFTER your no-mist/no-cloudiness CSS.
   ============================================================ */

/* Give the fixed navbar room so it does not cover the hero composition */
#intro.hero.hero--amazon{
  min-height: 100svh !important;
  padding-top: calc(var(--nav-h, 110px) + 2.7rem) !important;
  padding-bottom: 2.2rem !important;
  display: flex !important;
  align-items: center !important;
}

/* Fix hero image framing without touching your mist settings */
#intro.hero.hero--amazon .hero-bg{
  background-size: cover !important;
  background-position: center 46% !important;
  background-repeat: no-repeat !important;
}

/* Stop content from sitting too high under the navbar */
#intro.hero.hero--amazon .hero-content{
  max-width: 1060px !important;
  margin-inline: auto !important;
  transform: translateY(16px) !important;
  padding-inline: 1rem !important;
}

/* Hide the small eyebrow on the landing page to give the image/title more room */
#intro.hero.hero--amazon .hero-eyebrow{
  display: none !important;
}

/* Cleaner title block */
#intro.hero.hero--amazon .hero-title{
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
  gap: 0 !important;
  max-width: 980px !important;
  margin-inline: auto !important;
}

/* Remove the awkward 3D/perspective look from the title */
#intro.hero.hero--amazon .hero-title__line{
  transform: none !important;
  line-height: 0.88 !important;
  letter-spacing: 0.018em !important;
}

/* Smaller top line */
#intro.hero.hero--amazon .hero-title__line--main{
  font-size: clamp(3.1rem, 6.2vw, 5.8rem) !important;
}

/* Smaller Rainforest line */
#intro.hero.hero--amazon .hero-title__line--rainforest{
  font-size: clamp(3.7rem, 7.4vw, 7rem) !important;
}

/* Tagline closer and cleaner */
#intro.hero.hero--amazon .hero-tagline{
  margin-top: 0.55rem !important;
  font-size: clamp(0.95rem, 1.55vw, 1.22rem) !important;
  letter-spacing: 0.26em !important;
}

/* Buttons smaller */
#intro.hero.hero--amazon .hero-ctaRow{
  margin-top: 1.45rem !important;
  gap: 0.85rem !important;
}

#intro.hero.hero--amazon .hero-cta{
  min-height: 46px !important;
  padding: 0.78rem 1.35rem !important;
  border-radius: 14px !important;
  font-size: 0.82rem !important;
}

/* Bottom feature grid less aggressive */
#intro.hero.hero--amazon .hero-featureGrid{
  margin-top: 2rem !important;
  max-width: 820px !important;
  gap: 0.7rem !important;
}

#intro.hero.hero--amazon .hero-featureTile{
  min-height: 92px !important;
  padding: 0.8rem 0.55rem !important;
}

#intro.hero.hero--amazon .hero-featureTile i{
  width: 42px !important;
  height: 42px !important;
  font-size: 1.22rem !important;
}

#intro.hero.hero--amazon .hero-featureTile span{
  font-size: 0.78rem !important;
}


/* ============================================================
   MOBILE LANDING HERO — VIEW FIX ONLY
   ============================================================ */

@media (max-width: 768px){
  #intro.hero.hero--amazon{
    min-height: 100svh !important;
    padding-top: calc(var(--nav-h, 76px) + 2.35rem) !important;
    padding-bottom: 2rem !important;
    align-items: center !important;
  }

  #intro.hero.hero--amazon .hero-bg{
    background-size: cover !important;
    background-position: center center !important;
  }

  #intro.hero.hero--amazon .hero-content{
    width: min(100%, 430px) !important;
    padding-inline: 1rem !important;
    transform: translateY(0) !important;
  }

  #intro.hero.hero--amazon .hero-title{
    margin-bottom: 0.65rem !important;
  }

  #intro.hero.hero--amazon .hero-title__line{
    line-height: 0.9 !important;
    letter-spacing: 0.01em !important;
  }

  #intro.hero.hero--amazon .hero-title__line--main{
    font-size: clamp(2.15rem, 11.5vw, 3.55rem) !important;
  }

  #intro.hero.hero--amazon .hero-title__line--rainforest{
    font-size: clamp(2.55rem, 14vw, 4.25rem) !important;
  }

  #intro.hero.hero--amazon .hero-tagline{
    font-size: 0.82rem !important;
    letter-spacing: 0.18em !important;
  }

  #intro.hero.hero--amazon .hero-ctaRow{
    margin-top: 1.1rem !important;
    gap: 0.65rem !important;
  }

  #intro.hero.hero--amazon .hero-cta{
    width: min(100%, 320px) !important;
    min-height: 44px !important;
    font-size: 0.72rem !important;
  }

  /* This is important. The 7 tiles make mobile look crowded. */
  #intro.hero.hero--amazon .hero-featureGrid{
    display: none !important;
  }
}

#intro.hero.hero--amazon .hero-bg{
  background-position: center 10% !important;
}

