/* =============================================================================
   Story Tabletop — the public website.
   Dual-audience visual architecture:
   - Players stage (Option 2): Warm tactile tabletop room on cream paper +
     contrasting deep-forest inspection stage.
   - Authors stage (Option 3): Editorial drafting frame with perimeter rails
     and an interactive Manuscript <-> Live Tabletop split showcase.
   - Expansion showcase: Coming-soon Augmented Reality & physical editions.
   ============================================================================= */

.site {
  --night: color-mix(in srgb, var(--forest-900) 52%, black);
  --night-deep: color-mix(in srgb, var(--forest-900) 30%, black);
  --hill-far: color-mix(in srgb, var(--forest-700) 55%, var(--night));
  --hill-mid: color-mix(in srgb, var(--forest-900) 80%, black);
  --hill-near: color-mix(in srgb, var(--forest-900) 45%, black);
  --cream: var(--paper);
  --cream-soft: color-mix(in srgb, var(--paper) 80%, transparent);
  --glass: color-mix(in srgb, white 10%, transparent);
  --glass-edge: color-mix(in srgb, white 22%, transparent);
  --site-max: 76rem;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}
html:has(.site) { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html:has(.site) { scroll-behavior: auto; } }

.site-wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--space-6); }
.site-sprite { position: absolute; width: 0; height: 0; }

/* ---------- type ---------- */

.site h1, .site .hero-display, .site .site-h2 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
.site h1, .site .hero-display {
  font-size: clamp(2.15rem, 3.85vw, 3.5rem);
  line-height: 1.1;
}
.site .site-h2 { font-size: clamp(1.75rem, 3.2vw, 2.85rem); line-height: 1.14; }
.site h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  margin: 0 0 var(--space-2);
}
.site-eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-weight: var(--weight-bold);
  color: var(--forest-700);
}
.site-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  margin: var(--space-4) 0 0;
  max-width: 42rem;
  color: var(--soft-ink);
}
.centered { text-align: center; }
.site-lead-block.centered .site-lead,
.hero-lead.centered { margin-left: auto; margin-right: auto; }

/* ---------- navigation: frosted bar on scroll, zero heading collision ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: var(--space-3) var(--space-6);
  transition: background-color var(--duration-fast) var(--ease-gentle),
              border-color var(--duration-fast) var(--ease-gentle),
              box-shadow var(--duration-fast) var(--ease-gentle);
  border-bottom: 1px solid transparent;
}
.site-nav[data-scrolled="true"] {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(43, 39, 36, 0.16);
}
.site-nav-inner,
.site-legal .site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  max-width: var(--site-max);
  margin: 0 auto;
}
.site-island {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}
.site-brand {
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-2);
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  font-size: var(--text-body);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-links a:not(.btn) {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  font-weight: var(--weight-bold);
  color: var(--soft-ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-links a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.site-links a:focus-visible, .site-brand:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.site-lang { border: 1px solid var(--line-strong); }
.site-portal { padding: var(--space-2) var(--space-4); font-size: var(--text-small); white-space: nowrap; }

/* The brand orange at persimmon-500 is about 3.2:1 with white, and persimmon-700
   is 4.495:1 — just under the 4.5:1 line for this button's text (14px and 16px,
   bold). One short step toward persimmon-900 clears it (about 4.8:1) and stays
   the same orange. Hover goes to persimmon-900 (about 6.8:1). */
.site .btn-primary {
  background: color-mix(in srgb, var(--persimmon-700) 85%, var(--persimmon-900));
  color: var(--on-primary);
}
.site .btn-primary:hover { background: var(--persimmon-900); color: var(--on-primary); }

.btn-secondary-ink {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(43, 39, 36, 0.05);
}
.btn-secondary-ink:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--soft-ink);
}
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- Dual Hero Shell + Audience Switcher ---------- */

.hero-shell {
  position: relative;
  padding: 5.75rem 0 clamp(3rem, 5vw, 4.5rem);
  background: #faf0e6;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-shell[data-active-stage="authors"] {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--gold-50) 60%, transparent), transparent 70%),
    var(--paper);
}

.hero-switcher-bar {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.hero-switcher {
  display: inline-flex;
  gap: var(--space-1);
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.hero-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--soft-ink);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-extra);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-gentle),
              color var(--duration-fast) var(--ease-gentle);
}
.hero-tab svg { fill: currentColor; flex: none; }
.hero-tab:hover { color: var(--ink); background: var(--paper); }
.hero-tab[aria-selected="true"] {
  background: var(--forest-900);
  color: var(--cream);
  box-shadow: 0 4px 14px -4px rgba(31, 68, 56, 0.45);
}
.hero-tab[aria-selected="true"] svg { color: var(--gold-400); fill: var(--gold-400); }
.hero-tab#tab-authors[aria-selected="true"] svg { fill: none; stroke: var(--gold-400); }
.hero-tab:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.hero-panel[hidden] { display: none; }

/* ---------- Stage 1 (Option 2): Seamless Tactile Tablet Diorama ---------- */

.hero-players-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
}
.sticker-peel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-4);
  padding: 8px 16px;
  border-radius: 12px 12px 16px 10px;
  background: #355E3B;
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-extra);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: 0 8px 18px -6px rgba(31, 50, 36, 0.35);
}
.sticker-rays { color: var(--gold-400); font-size: 14px; line-height: 1; }

.site .players-h1 {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  font-size: clamp(2.4rem, 4.3vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.headline-sparks {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 4px;
  color: var(--gold-700);
}
.hero-lead {
  margin: var(--space-4) 0 0;
  font-size: var(--text-body-lg);
  line-height: 1.55;
  color: var(--soft-ink);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-8) 0 0;
}
.btn-tactile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: var(--weight-bold);
  box-shadow: 0 8px 20px -8px rgba(156, 60, 34, 0.55);
}
.btn-outline-tactile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 13px 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: var(--weight-bold);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(43, 39, 36, 0.06);
}
.btn-outline-tactile:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.diorama-seamless {
  margin: 0 -1.5rem 0 -0.5rem;
  display: flex;
  justify-content: center;
}
.diorama-seamless picture {
  display: block;
  width: 100%;
  max-width: 50rem;
  min-width: 0;
}
.diorama-seamless img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 96% 94% at 54% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 94% at 54% 50%, #000 78%, transparent 100%);
}

.voice-bars { display: inline-flex; align-items: center; gap: 3px; height: 24px; flex: none; }
.voice-bars i { width: 4px; border-radius: 2px; background: var(--forest-500); height: 40%; }
.voice-bars i:nth-child(2) { height: 85%; }
.voice-bars i:nth-child(3) { height: 55%; }
.voice-bars i:nth-child(4) { height: 100%; }
.voice-bars i:nth-child(5) { height: 35%; }

/* ---------- Stage 2 (Option 3): Editorial Manuscript-to-World Split ---------- */

.drafting-frame {
  position: relative;
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 55%, var(--paper));
}
.reg-mark {
  position: absolute;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  line-height: 1;
  color: var(--soft-ink);
  opacity: 0.55;
  pointer-events: none;
}
.reg-tl { top: -10px; left: -6px; }
.reg-tr { top: -10px; right: -6px; }
.reg-bl { bottom: -10px; left: -6px; }
.reg-br { bottom: -10px; right: -6px; }

.hero-authors-head {
  max-width: 58rem;
  margin: 0 auto var(--space-6);
  text-align: center;
}
.editorial-headline {
  margin: 0;
  font-size: clamp(2.1rem, 3.9vw, 3.6rem);
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
.editorial-sans {
  font-family: var(--font-body);
  font-weight: var(--weight-black);
  letter-spacing: -0.03em;
  margin-right: 0.14em;
}
.editorial-serif {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-regular);
  letter-spacing: -0.01em;
}
.star-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  max-width: 28rem;
  margin: var(--space-3) auto;
  color: var(--gold-700);
}
.star-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.star-rule svg { fill: currentColor; flex: none; }

.editorial-sub {
  margin: 0 auto;
  max-width: 48rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--soft-ink);
}

.split-showcase {
  margin: 0 auto;
  max-width: 68rem;
}
.split-outer-bezel {
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.split-canvas {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night);
}
.split-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.split-line-glow {
  stroke: var(--gold-400);
  stroke-width: 16;
  opacity: 0.7;
}
.split-line {
  stroke: #FFF4C8;
  stroke-width: 4;
}
.split-knob {
  fill: var(--gold-500);
  stroke: #FFF9E6;
  stroke-width: 3.5;
}
.split-arrows {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.split-badge {
  position: absolute;
  top: var(--space-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  pointer-events: none;
}
.split-badge-left {
  left: var(--space-3);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 12px rgba(43, 39, 36, 0.12);
}
.split-badge-right {
  right: var(--space-3);
  background: color-mix(in srgb, #0e1822 86%, transparent);
  color: var(--cream);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(8px);
}
.split-badge-right svg { fill: var(--gold-400); }
.split-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.split-canvas:has(.split-range:focus-visible) {
  box-shadow: var(--shadow-focus);
}

.editorial-steps {
  list-style: none;
  margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-2) 0;
  max-width: 66rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  border-top: 1px solid var(--line);
}
.editorial-steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.editorial-steps li + li::before {
  content: "→";
  position: absolute;
  left: calc(-1 * var(--space-4) - 4px);
  top: 6px;
  color: var(--soft-ink);
  opacity: 0.55;
  font-size: var(--text-small);
}
.editorial-step-icon {
  color: var(--ink);
  margin-top: 2px;
  flex: none;
}
.editorial-steps strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-extra);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2px;
}
.editorial-steps p {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-small);
  line-height: 1.35;
  color: var(--soft-ink);
}

.editorial-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero-invite-note {
  margin: 0 0 0 var(--space-2);
  font-size: var(--text-small);
  color: var(--soft-ink);
}

/* ---------- Unified Lower Sections: Tactile Diorama + Editorial Drafting ---------- */

.site-section { padding: clamp(4rem, 7.5vw, 6.25rem) 0; }
.site-paper {
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, color-mix(in srgb, var(--gold-50) 48%, transparent), transparent 72%),
    var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.site-lead-block { max-width: 50rem; margin-bottom: var(--space-8); }
.site-lead-block.centered { margin-left: auto; margin-right: auto; }

.sticker-night {
  background: color-mix(in srgb, var(--gold-500) 16%, #142B23);
  border-color: rgba(244, 201, 93, 0.55);
  color: var(--gold-200);
}
.sticker-persimmon {
  background: color-mix(in srgb, var(--persimmon-700) 88%, var(--persimmon-900));
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* 1 · How It Works: Editorial Triptych */
.how-frame {
  background: color-mix(in srgb, var(--surface) 70%, var(--paper));
}
.section-head-editorial {
  max-width: 46rem;
  margin: 0 auto var(--space-8);
}
.how-triptych {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.how-triptych li {
  position: relative;
  padding: var(--space-6);
}
.how-triptych li + li {
  border-left: 1px solid var(--line);
}
.how-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--line-strong);
}
.how-num-tag {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-semibold);
  font-size: var(--text-h3);
  color: var(--persimmon-700);
}
.how-ink-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.how-triptych p { margin: 0; color: var(--soft-ink); }

/* 2 · Players: Nocturnal Lantern Tabletop Stage */
.site-forest {
  position: relative;
  background:
    radial-gradient(ellipse 65% 50% at 25% 28%, rgba(244, 201, 93, 0.12), transparent 70%),
    radial-gradient(ellipse 55% 45% at 80% 75%, rgba(232, 106, 76, 0.10), transparent 70%),
    linear-gradient(180deg, #0B1915 0%, #132820 55%, #0B1915 100%);
  color: var(--cream);
  border-top: 1px solid rgba(244, 201, 93, 0.2);
  border-bottom: 1px solid rgba(244, 201, 93, 0.2);
}
.site-forest .site-h2 { color: var(--cream); }
.site-forest .site-lead { color: var(--cream-soft); max-width: 46rem; }

.players-header {
  max-width: 50rem;
  margin-bottom: var(--space-8);
}
.players-stage-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.night-bezel {
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.06);
  border: 1px solid rgba(244, 201, 93, 0.32);
  box-shadow: 0 24px 52px -18px rgba(0, 0, 0, 0.65);
}
.night-bezel picture { display: block; width: 100%; }
.night-bezel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
}

.phone-modes {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-radius: 12px;
  background: rgba(8, 18, 15, 0.58);
  border: 1px solid rgba(244, 201, 93, 0.22);
}
.phone-modes-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-extra);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.phone-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.phone-mode-card {
  padding: var(--space-3) var(--space-4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.phone-mode-num {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--gold-400);
}
.phone-mode-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: var(--text-body);
  color: var(--cream);
}
.phone-mode-card p {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--cream-soft);
}

.players-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 8px var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(244, 201, 93, 0.12);
  border: 1px solid rgba(244, 201, 93, 0.35);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--gold-200);
}
.players-status svg { fill: var(--gold-400); flex: none; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.07), rgba(255, 249, 236, 0.03));
  border: 1px solid rgba(244, 201, 93, 0.24);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.45);
}
.point-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(244, 201, 93, 0.16);
  border: 1px solid rgba(244, 201, 93, 0.38);
  color: var(--gold-400);
}
.point-icon svg { flex: none; }
.points li:nth-child(3) .point-icon svg { fill: currentColor; }
.points h3 { color: var(--cream); }
.points p { margin: 0; color: var(--cream-soft); }

/* 3 · Authors Atelier Bento: 4 Real Illustrated Plates */
.authors-atelier {
  background: color-mix(in srgb, var(--surface) 75%, var(--paper));
}
.bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.bento-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.bento-plate {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.bento-plate picture { display: block; width: 100%; }
.bento-plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.bento-plate-tag {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  padding: 5px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 12px rgba(43, 39, 36, 0.12);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}
.bento-body {
  padding: var(--space-4) var(--space-4) var(--space-3);
}
.bento-body h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-bottom: var(--space-2);
}
.bento-body p {
  margin: 0;
  color: var(--soft-ink);
}

/* 4 · Expansion Section: Double-Bezel Diorama Windows + Ruled Strip */
.expansion-section {
  background: #faf0e6;
}
.expansion-windows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.expansion-window {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.bezel-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night);
}
.bezel-media picture { display: block; width: 100%; }
.bezel-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.expansion-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 6px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, #0e1822 88%, transparent);
  border: 1px solid rgba(244, 201, 93, 0.42);
  backdrop-filter: blur(8px);
  color: var(--gold-200);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-extra);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.expansion-copy {
  padding: var(--space-6) var(--space-4) var(--space-4);
}
.expansion-copy h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-bottom: var(--space-2);
}
.expansion-copy p {
  margin: 0;
  color: var(--soft-ink);
}

.expansion-strip {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.expansion-strip li {
  padding: var(--space-6);
}
.expansion-strip li + li {
  border-left: 1px solid var(--line);
}
.strip-num {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-semibold);
  font-size: var(--text-body);
  color: var(--persimmon-700);
}
.expansion-strip h3 {
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-2);
}
.expansion-strip p {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--soft-ink);
}

/* 5 · Safeguards: Continuous 2x2 Architectural Ledger */
.rules-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.rules-ledger li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
}
.rules-ledger li:nth-child(even) {
  border-left: 1px solid var(--line);
}
.rules-ledger li:nth-child(n+3) {
  border-top: 1px solid var(--line);
}
.rule-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--forest-50) 80%, var(--surface));
  border: 1px solid var(--forest-400);
  color: var(--forest-900);
}
.rules-ledger p { margin: 0; color: var(--soft-ink); }

/* 6 · AI Limits: Tactile Card-Stock Plaques */
.ai-plaques {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.ai-plaques li {
  position: relative;
  padding: var(--space-6);
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--forest-900);
  box-shadow: var(--shadow-card);
}
.plaque-index {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--gold-900);
}
.ai-plaques p { margin: 0; color: var(--soft-ink); }

/* 7 · FAQ: Editorial Bookplate Index */
.faq {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: var(--space-12);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 6.5rem;
}
.star-rule-left {
  justify-content: flex-start;
  margin: var(--space-4) 0 0;
  max-width: 14rem;
}
.faq-ledger {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-ledger details + details { border-top: 1px solid var(--line); }
.faq-ledger summary {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-lg);
  cursor: pointer;
  list-style: none;
}
.faq-ledger summary::-webkit-details-marker { display: none; }
.faq-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-small);
  color: var(--persimmon-700);
}
.faq-ledger summary::after {
  content: "+";
  color: var(--soft-ink);
  font-family: var(--font-body);
  font-size: var(--text-h4);
  line-height: 1;
}
.faq-ledger details[open] summary::after { content: "−"; }
.faq-ledger summary:focus-visible { outline: none; box-shadow: inset var(--shadow-focus); }
.faq-ledger details p {
  margin: 0;
  padding: 0 var(--space-6) var(--space-6) calc(var(--space-6) + 2.2rem + var(--space-3));
  color: var(--soft-ink);
  max-width: 44rem;
}

/* ---------- 8 · The Ending: Painted Nocturnal Campfire ---------- */

.descent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: #0B1915;
  padding: clamp(5rem, 10vw, 8rem) var(--space-6) var(--space-8);
}
.descent-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B1915;
}
.descent-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0B1915 0%,
    rgba(11, 25, 21, 0.45) 28%,
    rgba(11, 25, 21, 0.35) 62%,
    #0B1915 100%
  );
}
.descent-backdrop picture {
  display: block;
  width: 100%;
  height: 100%;
}
.descent-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.star-rule-gold {
  color: var(--gold-400);
  margin-bottom: var(--space-4);
}
.star-rule-gold span {
  background: linear-gradient(90deg, transparent, rgba(244, 201, 93, 0.45), transparent);
}

.descent-inner { max-width: var(--site-max); margin: 0 auto; }
.descent-call {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
  padding-bottom: clamp(8rem, 16vw, 13rem);
}
.descent-call .site-h2 { color: var(--cream); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65); }
.descent-call p { margin: var(--space-4) 0 0; color: var(--cream); font-size: var(--text-body-lg); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
.descent-links {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--space-8);
  padding: var(--space-6);
  border-radius: 12px;
  background: rgba(8, 18, 15, 0.82);
  border: 1px solid rgba(244, 201, 93, 0.24);
  backdrop-filter: blur(12px);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
.descent-links p { margin: 0; color: var(--cream-soft); }
.descent-links nav { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.descent-brand { font-family: var(--font-heading); font-weight: var(--weight-black); font-size: var(--text-body-lg); color: var(--cream) !important; margin-bottom: var(--space-2) !important; }
.descent-title { text-transform: uppercase; letter-spacing: var(--tracking-caption); font-size: var(--text-caption); font-weight: var(--weight-bold); color: var(--gold-200) !important; }
.descent-links a { color: var(--cream); text-decoration: none; font-weight: var(--weight-semibold); }
.descent-links a:hover { text-decoration: underline; color: var(--surface); }
.descent-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.descent-legal { margin: var(--space-6) 0 0; text-align: center; font-size: var(--text-caption); color: var(--cream-soft); }

/* ---------- Narrow Screens ---------- */

@media (max-width: 72rem) {
  .site-links a:not(.btn):not(.site-lang) { display: none; }
  .hero-players-grid, .players-stage-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-players-copy { max-width: 44rem; }
  .diorama-seamless { margin: 0 auto; max-width: 46rem; }
  .editorial-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-steps li + li::before { display: none; }
  .expansion-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expansion-strip li:nth-child(3) { border-left: 0; }
  .expansion-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 52rem) {
  .how-triptych, .bento, .phone-modes-grid, .expansion-windows,
  .expansion-strip, .editorial-steps, .rules-ledger, .faq, .ai-plaques, .descent-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .how-triptych li + li, .expansion-strip li + li { border-left: 0; border-top: 1px solid var(--line); }
  .rules-ledger li:nth-child(even) { border-left: 0; }
  .rules-ledger li + li { border-top: 1px solid var(--line); }
  .faq-intro { position: static; }
  .faq-ledger details p { padding-left: var(--space-6); }
  .hero-shell { padding-top: 5.5rem; }
  .hero-tab { padding: var(--space-2) var(--space-4); font-size: var(--text-caption); }
  .site-brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .drafting-frame { padding: var(--space-6) var(--space-4); }
  .split-badge { font-size: 10px; padding: 4px 8px; top: var(--space-2); }
  .split-badge-right { right: var(--space-2); }
}

/* ---------- Legal Pages (Privacy) ---------- */

.legal { padding: clamp(7rem, 12vw, 9rem) var(--space-6) clamp(4rem, 8vw, 6rem); }
.legal-page { max-width: 48rem; margin: 0 auto; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-updated { margin: var(--space-3) 0 0; color: var(--soft-ink); font-size: var(--text-small); }
.legal-page h2 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin: var(--space-12) 0 var(--space-3);
}
.legal-page p, .legal-page li { line-height: var(--leading-body-lg); }
.legal-page p { margin: 0 0 var(--space-3); }
.legal-page ul { margin: 0 0 var(--space-3); padding-left: var(--space-6); }
.legal-page li + li { margin-top: var(--space-3); }
.legal-page a { color: var(--forest-700); font-weight: var(--weight-semibold); }
.legal-essentials {
  margin-top: var(--space-8);
  padding: var(--space-2) var(--space-6) var(--space-3);
  border-radius: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}
.legal-essentials h2 { margin-top: var(--space-4); }
.legal-contact { margin-top: var(--space-12); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.legal-footer {
  padding: var(--space-6);
  text-align: center;
  font-size: var(--text-caption);
  color: var(--soft-ink);
  border-top: 1px solid var(--line);
}

/* ---------- Analytics Consent ---------- */

.consent {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(42rem, calc(100% - var(--space-6)));
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.consent[hidden] { display: none; }
.consent p {
  margin: 0;
  flex: 1;
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
.consent-actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.consent .btn { padding: var(--space-2) var(--space-4); font-size: var(--text-small); line-height: var(--leading-small); }
.consent-decline {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line-strong);
}
.consent-decline:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 40rem) {
  .consent { flex-direction: column; align-items: stretch; text-align: left; }
  .consent-actions { justify-content: flex-end; }
}
