/* ============================================================================
   3D BASE STYLES — Disko & Dean Camp Clearing
   Pure CSS, no framework, matches brand palette from 2D shop
   ============================================================================ */

:root {
  /* Brand Palette (IMMUTABLE - from LANDING_PAGE_BUILD_BRIEF.md) */
  --forest-deep:   #2D4A3E;
  --forest-light:  #4A7C6F;
  --forest-dark:   #1A2F28;
  --sun-gold:      #F5A623;
  --sun-light:     #F7B84E;
  --earth-cream:   #FDF8F0;
  --earth-sand:    #F5EFE6;
  --bark-brown:    #5D4037;
  --leaf-green:    #7CB342;
  --line:          #e6ded0;

  /* 3D-specific */
  --canvas-bg:     #0a0e1a;
  --ui-bg:         rgba(253, 248, 240, 0.95);
  --ui-border:     rgba(45, 74, 62, 0.2);
  --shadow-soft:   0 4px 24px rgba(45, 74, 62, 0.12);
  --shadow-strong: 0 12px 40px rgba(45, 74, 62, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--canvas-bg);
  color: var(--bark-brown);
  line-height: 1.6;
  touch-action: none; /* Prevent scrolling on canvas */
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  color: var(--forest-deep);
}

/* ============================================================================
   CANVAS CONTAINER
   ============================================================================ */
#canvas-container {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--canvas-bg);
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================================
   LOADING OVERLAY
   ============================================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(245, 166, 35, 0.3);
  border-top-color: var(--sun-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 1.5rem;
  color: var(--earth-cream);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============================================================================
   UI OVERLAY LAYER
   ============================================================================ */
#ui-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none; /* Let clicks through to canvas, except UI elements */
  font-family: 'Plus Jakarta Sans', sans-serif;
}

#ui-overlay * {
  pointer-events: auto; /* Re-enable for actual UI elements */
}

/* ============================================================================
   SCENE UI BASE
   ============================================================================ */
.scene-ui {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  background: transparent;
}

.scene-ui.active {
  display: flex;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: var(--forest-deep);
  color: var(--sun-gold);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.sub {
  color: var(--forest-light);
  opacity: 0.85;
  font-size: 1rem;
  max-width: 660px;
}

/* ============================================================================
   BUTTONS (match 2D shop exactly)
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-gold {
  background: var(--sun-gold);
  color: var(--bark-brown);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.35);
}

.btn-forest {
  background: var(--forest-deep);
  color: var(--earth-cream);
}
.btn-forest:hover {
  transform: translateY(-2px);
  background: var(--forest-dark);
  box-shadow: 0 6px 16px rgba(45, 74, 62, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--forest-deep);
  border: 2px solid var(--forest-light);
}
.btn-ghost:hover {
  background: var(--earth-sand);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

/* ============================================================================
   WELCOME SCENE
   ============================================================================ */
/* The welcome copy used to sit dead centre, which put the headline, the lede
   and both buttons straight on top of the campfire. It now lives in a column
   on the left (x = 2rem page padding + 2rem column margin) so the fire keeps
   the middle of the frame to itself. */
#scene-welcome {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.welcome-content {
  max-width: 360px;
  padding: 1.5rem;
  margin-left: 2rem;
}

.welcome-content h1 {
  font-size: clamp(1.75rem, 2.1vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 0.85rem;
  color: var(--forest-deep);
}

.welcome-content h1 .accent {
  color: var(--sun-gold);
  font-weight: 800;
}

.lede {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--bark-brown);
  opacity: 0.9;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.welcome-hint {
  font-size: 0.8rem;
  color: var(--forest-light);
  opacity: 0.7;
}

/* Narrow screens: the left column would crowd the scene, so the copy comes
   back to the middle and stacks along the bottom, under the fire. */
@media (max-width: 900px) {
  #scene-welcome {
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding-bottom: 1.25rem;
  }

  .welcome-content {
    max-width: 520px;
    margin-left: 0;
    text-align: center;
  }

  .welcome-actions {
    align-items: center;
  }
}

/* ============================================================================
   CLEARING SCENE (Main Hub)
   ============================================================================ */
#scene-clearing {
  background: transparent;
}

.clearing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ui-border);
}

/* Kelvin 2026-11-22: the two top buttons (2D Shop / Go Shopping) sit over the
   bright sky, where the default dark-forest ghost text and border vanished.
   White letters + white border by default; hover keeps the green fill with
   white letters. Scoped to .clearing-header so "← Back to Camp" (solid
   sub-scene headers) is untouched. */
.clearing-header .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}
.clearing-header .btn-ghost:hover {
  background: var(--forest-deep);
  color: #ffffff;
  border-color: var(--forest-deep);
}

.nav-dots {
  display: flex;
  gap: 0.5rem;
}

.nav-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--forest-light);
  background: var(--earth-cream);
  color: var(--forest-deep);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-dot:hover {
  background: var(--forest-light);
  color: var(--earth-cream);
  transform: scale(1.1);
}

.nav-dot.active {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--sun-gold);
}

.clearing-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.clearing-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--ui-border);
  font-size: 0.85rem;
  color: var(--forest-light);
  opacity: 0.7;
}

.clearing-social {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  margin-top: 0.45rem;
  font-size: 0.9rem;
}
.clearing-social a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.clearing-social a:hover { opacity: 1; text-decoration: underline; }

.hidden {
  display: none !important;
}

/* ============================================================================
   SUB-SCENE HEADERS (Cabins, Gallery, Seasons, Grove)
   ============================================================================ */
.sub-scene-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ui-border);
}

.sub-scene-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.25rem;
}

.sub-scene-header .sub {
  margin-top: 0.25rem;
}

/* ============================================================================
   CABINS GRID
   ============================================================================ */
.cabins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem;
}

.cabin-card {
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cabin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.cabin-card-image {
  aspect-ratio: 4/3;
  background: var(--earth-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cabin-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cabin-card:hover .cabin-card-image img {
  transform: scale(1.05);
}

.cabin-card-placeholder {
  font-size: 3rem;
  opacity: 0.5;
}

.cabin-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.cabin-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 0.25rem;
}

.cabin-card-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sun-gold);
  margin-bottom: 0.5rem;
}

.cabin-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.85;
  color: var(--bark-brown);
}

/* ============================================================================
   GALLERY GRID
   ============================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  /* The rows sit closer together than the columns, so the gap between two
     rows is a hairline rather than a lane the 3D scene can show through. */
  row-gap: 0.6rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem;
}

.gallery-card {
  position: relative;
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  /* A square picture plus a thin caption strip under it. The artwork is a
     square master, so this is the shape that shows it uncropped. */
  aspect-ratio: 180 / 206;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.gallery-card-image {
  flex: 1;
  background: var(--earth-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A character cut-out is a transparent PNG with the character standing in
   the middle of the frame. "cover" would crop its head and feet off, so
   keyed portraits are shown whole against the card background. */
.gallery-card-image img.is-keyed {
  object-fit: contain;
}

.gallery-card-placeholder {
  font-size: 2.5rem;
  opacity: 0.4;
}

/* THE CAPTION IS A QUIET LABEL.

   A card at rest is a clean picture: the name is not written on it. The
   name arrives when the card is pointed at, or reached with the keyboard,
   and it lands in the card's own lower row - the strip under the picture -
   so it can never spill down into the gap between two rows of the grid.

   The strip keeps its height whether the name is showing or not, so
   nothing on the grid moves when the name fades in. */
.gallery-card-info {
  position: relative;
  flex: 0 0 auto;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  text-align: center;
  border-top: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gallery-card:hover .gallery-card-info,
.gallery-card:focus-visible .gallery-card-info,
.gallery-card:focus-within .gallery-card-info {
  opacity: 1;
}

.gallery-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* The species is not on the card any more - the card carries one line, the
   name. The species, the role, the description and the quote are all in
   the panel that opens when the card is clicked. */
.gallery-card-species {
  display: none;
}

/* A character still in concept is marked on the picture, not in the
   caption, because the caption is blank until the card is pointed at. */
.gallery-card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--forest-deep);
  color: var(--sun-gold);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* A concept character is still a character, and the picture is the
   client's art. It is shown at FULL STRENGTH.

   The whole card used to be faded to 60%, which was harmless while a card
   was a beige mug shot but wrong now the cards are real pictures: the
   opacity is applied to the card, so the sand card background showed
   through the artwork and the picture read as translucent. The dashed
   border and the CONCEPT badge on the picture already say what it is. */
.gallery-card.concept {
  border-style: dashed;
}

/* The panel is centred with auto margins rather than a translate, so the
   slide-in animation cannot shift it sideways. The old keyframes baked in
   translateX(-50%), which fought the narrow-screen rule and left the panel
   250px off to the left while the animation was on the box. */
.gallery-info {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-strong);
  z-index: 50;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-info-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.gallery-info-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--earth-sand);
  flex-shrink: 0;
}

.gallery-info-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.gallery-info-text .role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sun-gold);
  margin-bottom: 0.5rem;
}

.gallery-info-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}

.close-info {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ============================================================================
   SEASONS RING UI
   ============================================================================ */
.seasons-ring-ui {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Kelvin 2026-11-07: Spring+Summer left, Autumn+Snow right, 3D ring centered between */
  align-items: flex-start;
  gap: 2rem;
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem;
}

.seasons-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: min(400px, 30vw);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .seasons-ring-ui {
    flex-direction: column;
    align-items: center;
  }
  .seasons-col {
    width: 100%;
    max-width: 400px;
  }
}

.season-card {
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.season-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.season-card-image {
  aspect-ratio: 3/4;
  background: var(--earth-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.season-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.season-card-body {
  padding: 1.25rem 1.5rem;
}

.season-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.season-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.season-card .blurb {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.82;
  margin-bottom: 1rem;
}

.season-card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--forest-deep);
  margin-bottom: 0.75rem;
}

.season-card .btn {
  width: 100%;
}

.season-card .tagline-note {
  font-size: 0.78rem;
  color: #8a7f70;
  text-align: center;
  margin-top: 0.5rem;
}

/* Season-specific accent colors */
.season-autumn .season-label { color: #c1703a; }
.season-winter .season-label { color: #3a86ff; }
.season-spring .season-label { color: #4dbb4d; }
.season-summer .season-label { color: #00a8c0; }

/* ============================================================================
   GROVE CONTENT
   ============================================================================ */
.grove-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.support-card, .merch-preview {
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.support-card h3, .merch-preview h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.support-card p, .merch-preview p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* ============================================================================
   MODALS
   ============================================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 33, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  /* Top padding clears the absolute .modal-close circle (top:1rem + 36px ≈
     3.25rem): with the old uniform 2rem, centered headings started at 2rem
     and their first line ran UNDER the ✕ at narrower widths (website-bot
     review item a, 2026-11-21). Content now starts below the button. */
  padding: 3.75rem 2rem 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-strong);
  animation: slideUp 0.3s ease;
}

.cabin-modal-content {
  max-width: 600px;
}

/* The cabin room. The picture is the client's own art — the inside of that
   cabin. The friend stands beside the text as the delivered cut-out, so the
   same friend appears in the gallery, in the clearing and in their own home.
   The two are deliberately NOT composited: a cut-out pasted into a painted
   doorway reads as a sticker. */
.cabin-room {
  width: 100%;
  line-height: 0;
  margin-bottom: 1.1rem;
}

.cabin-room-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* The friend, standing on the text's baseline. The height and the offset
   are worked out from the cut-out's measured ground line in JS, so the feet
   land on the baseline whatever the artist did with the framing. */
.cabin-modal-figure {
  flex: 0 0 auto;
  width: auto;
  object-fit: contain;
  align-self: flex-end;
  filter: drop-shadow(0 4px 6px rgba(20, 32, 26, 0.22));
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--earth-cream);
  color: var(--forest-deep);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--forest-deep);
  color: var(--earth-cream);
  border-color: var(--forest-deep);
}

/* Signup Form */
#signup-form-container {
  text-align: center;
}

#signup-form-container h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

#signup-form-container .sub {
  margin-bottom: 1.5rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 2px solid var(--forest-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--earth-cream);
  color: var(--bark-brown);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--sun-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.signup-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.privacy {
  font-size: 0.78rem;
  color: var(--forest-light);
  margin-top: 1rem;
}

.signup-success {
  text-align: center;
  animation: slideUp 0.3s ease;
}

.signup-success h3 {
  color: var(--leaf-green);
  margin-bottom: 0.5rem;
}

.signup-success .sub {
  margin-bottom: 1.5rem;
}

.gift {
  background: var(--earth-sand);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: left;
}

.gift b {
  color: var(--forest-deep);
}

.gift-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.gift-note b {
  color: var(--forest-deep);
}

.download-link {
  display: inline-block;
  margin-top: 1rem;
}

/* ============================================================================
   CABIN MODAL CONTENT
   ============================================================================ */
.cabin-modal-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cabin-modal-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--earth-sand);
  background: var(--earth-sand);
  flex-shrink: 0;
}

.cabin-modal-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.cabin-modal-info .role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sun-gold);
  margin-bottom: 1rem;
}

.cabin-modal-info .desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

.cabin-modal-quote {
  font-style: italic;
  color: var(--forest-light);
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

.cabin-modal-offer {
  background: linear-gradient(135deg, #EDF5F0 0%, #FDF8F0 100%);
  border: 2px solid var(--leaf-green);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.cabin-modal-offer h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cabin-modal-offer p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.cabin-modal-offer .btn {
  width: auto;
  min-width: 200px;
}

/* ============================================================================
   CORNER TOGGLES (ambient sound + reduced motion)
   ============================================================================ */

/* The two toggles are one narrow column in the bottom-right corner, the
   sound button above the motion button.

   They used to sit side by side, which made the pair 147px wide and reached
   further left — straight across the gallery info panel's text, which is
   how the sound button came to cover Kellie's information. Stacked, the
   pair is as wide as one button. */
.corner-toggles {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.reduced-motion-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
  color: var(--forest-deep);
  font-weight: 600;
}

.reduced-motion-toggle:hover {
  background: var(--forest-light);
  color: var(--earth-cream);
  border-color: var(--forest-light);
}

.reduced-motion-toggle[aria-pressed="true"] {
  background: var(--forest-deep);
  color: var(--sun-gold);
  border-color: var(--forest-deep);
}

.toggle-icon {
  font-size: 1.25rem;
}

/* ============================================================================
   AUDIO TOGGLE (ambient sound)
   Sits above the motion toggle, in the same column.
   ============================================================================ */
.audio-toggle[aria-pressed="true"] {
  background: #5d4037;
  color: var(--earth-sand);
  border-color: #5d4037;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
  .scene-ui {
    padding: 1.25rem;
  }

  .cabins-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-info {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    margin-inline: 0;
    width: auto;
  }

  .gallery-info-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cabin-modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .corner-toggles {
    bottom: 1rem;
    right: 1rem;
  }

  .reduced-motion-toggle {
    padding: 0.5rem 0.75rem;
  }

  /* On a narrow screen the gallery info panel spans the full width at the
     bottom, so the corner toggles would sit on top of it. Move them to the
     top corner while the panel is open. */
  body.info-open .corner-toggles {
    bottom: auto;
    top: 1rem;
  }
}

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

  .season-card {
    max-width: 100%;
  }
}

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

  .loading-spinner {
    animation: none;
    border-top-color: transparent;
  }

  #reduced-motion-notice {
    display: inline !important;
  }

  .reduced-motion-toggle[aria-pressed="true"] {
    display: none;
  }
}

/* ============================================================================
   WELCOME SCREEN — PARENT CALL-OUT
   ============================================================================ */
.welcome-parents-link {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.welcome-parents-link a {
  color: var(--sun-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.welcome-parents-link a:hover {
  color: #fff;
}

/* ============================================================================
   FOR PARENTS SCENE
   ============================================================================ */
.parents-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.parents-hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  background: linear-gradient(135deg, var(--earth-cream), var(--earth-sand));
  border-radius: 16px;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
}

.parents-hero .eyebrow {
  color: var(--sun-gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.parents-hero h1 {
  color: var(--forest-deep);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
}

.parents-hero .lede {
  color: var(--bark-brown);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.parents-section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 18px rgba(45, 74, 62, 0.08);
}

.parents-section h2 {
  color: var(--forest-deep);
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 0;
  font-size: 1.5rem;
}

.parents-section .section-lede {
  color: var(--bark-brown);
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.parents-section p {
  color: var(--bark-brown);
  line-height: 1.6;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.curriculum-card {
  background: linear-gradient(180deg, var(--earth-cream) 0%, var(--earth-sand) 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf-green);
  border-radius: 10px;
  padding: 1.25rem;
}

.curriculum-age {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--forest-light);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.curriculum-card h3 {
  margin: 0 0 0.75rem;
  color: var(--forest-deep);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
}

.curriculum-skills {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.curriculum-skills li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(45, 74, 62, 0.12);
  font-size: 0.93rem;
}

.curriculum-skills li:last-child { border-bottom: none; }

.skill-icon { font-size: 1.1rem; flex-shrink: 0; }
.skill-label { color: var(--forest-deep); font-weight: 600; flex: 1; }
.skill-who { color: var(--forest-light); font-size: 0.82rem; font-style: italic; }

.curriculum-blurb {
  font-size: 0.92rem;
  color: var(--bark-brown);
  font-style: italic;
  margin: 0.5rem 0 0;
}

.parents-section-screentime {
  background: linear-gradient(135deg, var(--earth-sand) 0%, var(--earth-cream) 100%);
  border-left: 4px solid var(--sun-gold);
}

.printables-group {
  margin-top: 1.75rem;
}

.printables-group-title {
  color: var(--forest-deep);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.printables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.printables-group .printables-grid {
  margin-top: 1rem;
}

.printable-card {
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}

.printable-episode {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-gold);
  margin-bottom: 0.4rem;
}

.printable-card h3 {
  color: var(--forest-deep);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.printable-card p {
  color: var(--bark-brown);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.printable-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.printable-meta span {
  font-size: 0.82rem;
  color: var(--forest-light);
  font-weight: 600;
}

.faq-list { margin-top: 1rem; }

.faq-item {
  background: var(--earth-cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  padding: 0.75rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--forest-deep);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-item summary::before {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--leaf-green);
  transition: transform 0.2s;
}

.faq-item[open] summary::before { content: '−'; }
.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--bark-brown);
  font-size: 0.95rem;
  line-height: 1.55;
}

.privacy-line {
  text-align: center;
  color: var(--forest-light);
  font-size: 0.9rem;
  font-style: italic;
  margin: 2rem 0 0;
}

/* ============================================================================
   STORY TIME (watch scene)
   ============================================================================ */
.watch-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.watch-hero {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  background: linear-gradient(135deg, var(--earth-cream), var(--earth-sand));
  border-radius: 14px;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}

.watch-hero .eyebrow {
  color: var(--sun-gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.watch-hero h1 {
  color: var(--forest-deep);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.watch-hero .lede {
  color: var(--bark-brown);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.watch-stage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.watch-frame {
  background: var(--forest-deep);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem;
}

.watch-character {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--forest-light);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.watch-title {
  color: var(--forest-deep);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.watch-prompt {
  color: var(--bark-brown);
  font-size: 1rem;
  line-height: 1.55;
  font-style: italic;
  border-left: 3px solid var(--sun-gold);
  padding-left: 0.85rem;
  margin: 0;
}

.watch-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.watch-thumb {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font: inherit;
}

.watch-thumb:hover {
  border-color: var(--leaf-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(45, 74, 62, 0.12);
}

.watch-thumb.active {
  border-color: var(--leaf-green);
  background: linear-gradient(135deg, var(--earth-cream), #FFF8E7);
  border-left: 4px solid var(--leaf-green);
}

.watch-thumb-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--leaf-green);
  min-width: 32px;
}

.watch-thumb-character {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-light);
  font-weight: 700;
}

.watch-thumb-title {
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .watch-stage {
    grid-template-columns: 1fr;
  }
  .parents-hero { padding: 1.5rem 1rem 2rem; }
  .parents-section { padding: 1.25rem; }
}

/* ============================================================================
   COMING SOON BUTTONS (config-driven)
   ============================================================================ */
.btn-coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bark-brown) !important;
  color: var(--earth-sand) !important;
  border-color: var(--bark-brown) !important;
}

.btn-coming-soon:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================================================
   PACK GATE — single CTA card, parent/teacher fork, success links
   (SPEC-pack-gate-parent-teacher-2026-11-19.md; TODO(copy) pending Phase 5)
   ============================================================================ */

/* Single public CTA card that replaced the 9/33-card pack grid */
.pack-gate-cta {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  text-align: center;
  background: var(--earth-cream);
  border: 1px solid var(--forest-light);
  border-radius: 14px;
  box-shadow: var(--shadow-soft, 0 6px 24px rgba(45, 74, 62, 0.12));
}

.pack-gate-cta h2 {
  margin: 0.35rem 0 0.6rem;
  color: var(--forest-deep);
}

.pack-gate-cta .section-lede {
  margin: 0 auto 1.25rem;
  max-width: 42ch;
}

.pack-gate-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sun-gold);
}

.pack-gate-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--forest-light);
}

/* Fork step: two side-by-side choices, stacked on narrow screens */
.fork-choice {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.5rem;
}

.fork-choice .btn {
  min-width: 160px;
}

/* Success screen: download link(s) — one for parents, two for teachers */
.success-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.1rem 0 0.4rem;
  text-align: center;
}

.success-links .btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Success-screen upsells — the decision-5 set only */
.upsell-section {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--forest-light);
}

.upsell-section h4 {
  margin: 0 0 0.75rem;
  color: var(--forest-deep);
  font-size: 1rem;
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.upsell-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--earth-sand);
  border: 1px solid var(--forest-light);
  border-radius: 10px;
  text-decoration: none;
  color: var(--forest-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.upsell-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft, 0 6px 18px rgba(45, 74, 62, 0.16));
}

.upsell-title {
  font-weight: 700;
}

.upsell-price {
  color: var(--sun-gold);
  font-weight: 700;
  font-size: 1.05rem;
}

.upsell-desc {
  font-size: 0.82rem;
  color: var(--forest-light);
}

.upsell-cta {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-light);
}

.upsell-soon {
  opacity: 0.65;
  cursor: not-allowed;
}

.upsell-soon .upsell-cta {
  color: var(--bark-brown);
}