/*
 * ea-theme.css — Enlightened Attractions Design System
 * All mods link this file. Each mod declares its own --chakra and --chakra-mid.
 * Never edit per-mod. Edit here and it propagates everywhere.
 *
 * CHAKRA COLOR REFERENCE:
 * Root        --chakra:#8B1A1A  --chakra-mid:#C0392B
 * Sacral      --chakra:#7A4A00  --chakra-mid:#D4884A
 * Solar       --chakra:#7A6200  --chakra-mid:#C9A227
 * Heart       --chakra:#1A4A2E  --chakra-mid:#3A7D5E
 * Throat      --chakra:#0A2E4A  --chakra-mid:#2D7FA8
 * Third Eye   --chakra:#2E1A5A  --chakra-mid:#5B3D9E
 * Crown       --chakra:#3A1A5A  --chakra-mid:#9B6DBD
 */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── TOKENS ── */
:root {
  --bg:          #0a0604;
  --text:        #F5EFE6;
  --gold:        #C9963A;
  --gold-dim:    rgba(201,150,58,0.10);
  --muted-dark:  #8a8a8a;
  --muted-light: #5a5040;
  --serif:       'Cormorant Garamond', serif;
  --mono:        'DM Mono', monospace;
  --radius:      4px;
  --tap:         48px;
  --pulse:       1.745s;

  /* Mod overrides these two */
  --chakra:     #8B1A1A;
  --chakra-mid: #C0392B;
}

/* ── BASE ── */
html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── AMBIENT BG PULSE ── */
.ea-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 20%,
    rgba(var(--chakra-rgb, 192,57,43), 0.05) 0%,
    transparent 70%
  );
}

.ea-pulse-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 40%, var(--chakra) 0%, transparent 65%);
  opacity: 0.08;
  animation: ambientDrift 8s ease-in-out infinite;
}

/* ── SPINE: axis reference, invisible ── */
.ea-spine {
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  width: 0;
  background: transparent;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
.ea-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  height: 56px;
  background: rgba(10,6,4,0.92);
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-hub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.nav-hub:hover { color: var(--muted-dark); }

.nav-apex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chakra-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0.5px solid var(--chakra-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(139,26,26,0.06);
}
.chakra-circle::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--chakra-mid);
  opacity: 0.15;
}
.chakra-svg { position: relative; z-index: 1; }

.nav-identity {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-group {
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  opacity: 0.85;
}
.nav-oplus {
  font-size: 9px;
  color: var(--chakra-mid);
  opacity: 0.4;
}
.nav-adjective {
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  opacity: 0.6;
}

.nav-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.a11y-btn {
  width: var(--tap); height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--muted-light);
  padding: 0;
  transition: color 0.2s, border-color 0.2s;
}
.a11y-btn:hover { color: var(--gold); border-color: rgba(201,150,58,0.3); }
.a11y-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.4; fill: none; }

/* ── STORY PAGE NAV ── */
.story-nav {
  z-index: 200;
}

.story-nav .nav-hub {
  color: var(--muted-light);
  font-size: 11px;
  transition: color 0.2s;
}
.story-nav .nav-hub:hover {
  color: var(--chakra-mid);
}
.story-nav .nav-hub:active {
  color: var(--gold);
}

.story-nav .nav-apex,
.story-nav .nav-controls {
  display: none;
}

/* ── LAYOUT ── */
.ea-wrap {
  max-width: 520px;
  width: 100%;
  padding: 80px 24px 60px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  text-align: center;
  left: 0;
  right: 0;
  transform: none;
}

.ea-wrap--wide {
  max-width: 560px;
}

/* ── SCREEN TOGGLES ── */
.screen { display: block; }
.hidden { display: none !important; }

/* ── MOD HEADER ── */
.mod-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  margin-bottom: 10px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mod-eyebrow--ruled::before,
.mod-eyebrow--ruled::after {
  content: '';
  width: 28px;
  height: 0.5px;
  background: rgba(212,136,74,0.3);
}

.mod-title {
  font-family: var(--serif);
  font-size: clamp(40px,11vw,62px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.mod-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted-light);
  font-size: clamp(16px,3.5vw,19px);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 300;
}

/* ── INTERACTION ZONE ── */
.interaction-zone {
  width: 100%;
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 20px;
  margin-bottom: 28px;
}

.sentence-prompt {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px,4.5vw,26px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 6px;
}

.sentence-anchor {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-dark);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.sentence-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 0.5px solid rgba(245,239,230,0.12);
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px,4.5vw,26px);
  text-align: center;
  padding: 12px 8px;
  outline: none;
  caret-color: var(--chakra-mid);
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
  resize: none;
  overflow: hidden;
  min-height: 52px;
  line-height: 1.6;
  display: block;
  scrollbar-width: none;
}
.sentence-input::-webkit-scrollbar { display: none; }
.sentence-input::placeholder { color: var(--muted-light); opacity: 0.4; font-style: italic; }
.sentence-input:focus { border-bottom-color: var(--chakra-mid); }

/* ── BUTTONS ── */
.process-btn {
  background: none;
  border: 0.5px solid var(--chakra-mid);
  color: var(--text);
  padding: 16px 36px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-family: var(--mono);
  border-radius: var(--radius);
  min-height: var(--tap);
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 40px;
}
.process-btn:hover { border-color: var(--gold); color: var(--gold); }
.process-btn:disabled,
.process-btn.loading { opacity: 0.35; cursor: not-allowed; }

.read-btn {
  width: 100%;
  margin-top: 32px;
  padding: 20px;
  background: none;
  border: 0.5px solid rgba(212,136,74,0.2);
  color: var(--chakra-mid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.3s, color 0.3s, opacity 0.2s;
  min-height: var(--tap);
  opacity: 0;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.read-btn.ready { opacity: 1; pointer-events: auto; }
.read-btn:hover { border-color: rgba(212,136,74,0.5); color: var(--text); }
.read-btn.loading { opacity: 0.35; pointer-events: none; }

/* ── RESULT ZONE ── */
.result-zone {
  text-align: left;
  border-top: 0.5px solid rgba(255,255,255,0.04);
  padding-top: 32px;
  margin-bottom: 32px;
}

.result-bubble {
  background: rgba(255,255,255,0.02);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
}
.result-bubble::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chakra-mid), transparent);
  opacity: 0.4;
}

.result-primary {
  font-family: var(--serif);
  font-size: clamp(17px,3.8vw,21px);
  line-height: 1.85;
  font-style: italic;
  color: var(--text);
}

.result-line {
  font-family: var(--serif);
  font-size: clamp(14px,3.2vw,17px);
  font-style: italic;
  font-weight: 300;
  color: var(--muted-dark);
  line-height: 1.7;
  padding: 18px 0;
  border-top: 0.5px solid rgba(255,255,255,0.04);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.result-line.visible { opacity: 1; }

.result-correction {
  font-family: var(--serif);
  font-size: clamp(15px,3.4vw,18px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
  padding: 20px 0;
  border-top: 0.5px solid rgba(192,57,43,0.2);
  margin-top: 8px;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.result-correction.visible { opacity: 1; }

.result-question {
  font-family: var(--serif);
  font-size: clamp(19px,4.2vw,24px);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.result-question.visible { opacity: 1; }

/* ── LOADING DOTS ── */
.loading-dots {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 0;
}
.loading-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--chakra-mid);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── CHECKOUT BAR ── */
.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 0.5px solid rgba(255,255,255,0.05);
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  gap: 8px;
}

.reset-btn {
  background: none;
  border: none;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  padding: 6px 0;
  transition: color 0.2s;
  flex-shrink: 0;
}
.reset-btn:hover { color: var(--muted-dark); }

.arknet-lock {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  opacity: 0.3;
  user-select: none;
  flex-shrink: 0;
}

.looks-display {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--chakra-mid);
  opacity: 0.75;
  transition: opacity 0.3s;
  flex-shrink: 0;
  padding: 6px 12px;
  border: 0.5px solid rgba(var(--chakra-rgb, 192,57,43), 0.15);
  border-color: var(--chakra-mid);
  border-radius: var(--radius);
  min-height: 36px;
}
.looks-display:hover { opacity: 1; }
.looks-display .looks-num {
  font-weight: 500;
  font-size: 13px;
  color: var(--chakra-mid);
}
.looks-display .looks-word {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  opacity: 0.6;
}

.angle-btn {
  background: none;
  border: 0.5px solid var(--chakra-mid);
  color: var(--chakra-mid);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
  min-height: var(--tap);
  display: flex;
  align-items: center;
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.angle-btn:hover {
  border-color: var(--chakra-mid);
  color: var(--text);
  background: var(--chakra);
}
.angle-btn.visible { visibility: visible; }

/* ── PIXEL 9 / MOBILE — 412px viewport ── */
@media (max-width: 480px) {
  .ea-nav { padding: 0 16px; }

  .ea-wrap { padding: 72px 16px 48px; }

  .checkout-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .angle-btn {
    font-size: 9px;
    padding: 10px 14px;
    letter-spacing: 0.08em;
  }
  .arknet-lock { display: none; }

  .next-mod-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .enter-btn { width: 100%; }
}

/* ── NEXT MOD ZONE ── */
.next-mod-zone {
  padding: 24px 0 8px;
  opacity: 0;
  transition: opacity 0.8s ease;
  text-align: center;
}
.next-mod-zone.visible { opacity: 1; }

.next-mod-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 12px;
  display: block;
}

.next-mod-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0.5px solid rgba(201,150,58,0.18);
  color: var(--gold);
  padding: 16px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  min-height: var(--tap);
  -webkit-tap-highlight-color: transparent;
}
.next-mod-btn:hover { background: var(--gold-dim); border-color: rgba(201,150,58,0.45); }

.next-mod-chevron {
  font-size: 18px;
  color: var(--chakra-mid);
  opacity: 0.6;
}

.next-mod-text { text-align: left; }

.next-mod-eyebrow {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  display: block;
  margin-bottom: 3px;
}

.next-mod-name {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

/* ── STORY PAGE ── */
.book-header {
  text-align: center;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
}

.book-eyebrow {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  opacity: 0.6;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.book-eyebrow::before,
.book-eyebrow::after {
  content: '';
  width: 28px;
  height: 0.5px;
  background: rgba(212,136,74,0.3);
}

.book-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px,8vw,52px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}

.book-meta {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  opacity: 0.4;
}

.act {
  padding: 28px 0;
  border-top: 0.5px solid rgba(255,255,255,0.04);
  opacity: 0;
}
.act:first-child { border-top: none; padding-top: 0; }
.act.visible { animation: fadeUp 0.9s ease forwards; }

.act-prose {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px,4vw,23px);
  line-height: 1.85;
  color: var(--text);
}

.branch-intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px,3.8vw,21px);
  line-height: 1.75;
  color: rgba(245,239,230,0.6);
  margin-bottom: 24px;
  opacity: 0;
  text-align: center;
  position: relative;
  padding: 36px 0 28px;
}
.branch-intro.visible { animation: fadeUp 0.8s ease forwards; }

.branch-intro::before,
.branch-intro::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(212,136,74,0.2), transparent);
  pointer-events: none;
}
.branch-intro::before { top: 0; }
.branch-intro::after  { bottom: 0; }

/* ── LEGACY .branches / .branch-btn ── */
.branches {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
}
.branches.visible { animation: fadeUp 0.8s ease forwards; }

.branch-btn {
  width: 100%;
  background: none;
  border: 0.5px solid rgba(212,136,74,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, opacity 0.25s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.branch-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(212,136,74,0.04);
  opacity: 0;
  transition: opacity 0.25s;
}
.branch-btn:hover { border-color: rgba(212,136,74,0.45); }
.branch-btn:hover::before { opacity: 1; }
.branches:has(.branch-btn:hover) .branch-btn:not(:hover) { opacity: 0.3; }
.branch-btn.selected {
  border-color: var(--chakra-mid);
  background: rgba(212,136,74,0.06);
  pointer-events: none;
  animation: branchChosen 0.45s ease forwards;
}
.branch-btn.dismissed {
  opacity: 0.08 !important;
  transform: scaleY(0.97);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease !important;
}
.branch-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  opacity: 0.7;
  margin-bottom: 8px;
  display: block;
}
.branch-prose {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px,3.5vw,19px);
  line-height: 1.75;
  color: var(--text);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.55s ease 0.1s, max-height 0.5s ease;
}
.branch-btn.selected .branch-prose {
  opacity: 1;
  max-height: 200px;
}

/* ── SACRED CHOICE ── */
.choices {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  opacity: 0;
}
.choices.visible { animation: fadeUp 0.8s ease forwards; }

.choices::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 0.5px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(212,136,74,0.18), transparent);
  z-index: 10;
  pointer-events: none;
}

.choice {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  display: block;
}

.choice-inner {
  position: relative;
  border: 0.5px solid rgba(245,239,230,0.07);
  padding: 36px 36px 32px;
  transition: border-color 0.4s ease, background 0.4s ease;
  overflow: hidden;
}

.choice-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    var(--chakra) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.choice-inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chakra-mid), transparent);
  opacity: 0.22;
  transition: opacity 0.4s ease;
}

.choice:hover .choice-inner            { border-color: var(--chakra-mid); }
.choice:hover .choice-inner::before    { opacity: 0.08; }
.choice:hover .choice-inner::after     { opacity: 0.65; }

.choice-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--chakra-mid);
  opacity: 0.06;
  transition: opacity 0.4s ease;
  pointer-events: none;
  user-select: none;
}
.choice:hover .choice-num { opacity: 0.12; }

.choice-label {
  font-size: 7px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  opacity: 0.45;
  margin-bottom: 14px;
  display: block;
  transition: opacity 0.3s ease;
}
.choice:hover .choice-label { opacity: 0.75; }

.choice-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.25;
  color: rgba(245,239,230,0.65);
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}
.choice:hover .choice-text { color: #F5EFE6; }

.choice-consequence {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(13px, 2.8vw, 15px);
  line-height: 1.75;
  color: rgba(245,239,230,0);
  max-height: 0;
  overflow: hidden;
  transition: color 0.8s ease 0.3s, max-height 0.6s ease 0.2s;
  position: relative;
  z-index: 1;
}

.choice-signal {
  position: absolute;
  bottom: 20px; right: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  opacity: 0;
  transition: opacity 0.4s ease;
  font-family: var(--mono);
}
.choice:hover .choice-signal { opacity: 0.45; }

.choice-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--chakra-mid);
  animation: choiceDotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.choice.chosen .choice-inner          { border-color: var(--chakra-mid); }
.choice.chosen .choice-inner::after   { opacity: 0.85; }
.choice.chosen .choice-inner::before  { opacity: 0.07; }
.choice.chosen .choice-num            { opacity: 0.16; }
.choice.chosen .choice-text           { color: #F5EFE6; }
.choice.chosen .choice-label          { opacity: 0.75; }

.choice.chosen .choice-consequence {
  color: rgba(245,239,230,0.45);
  max-height: 200px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 0.5px solid rgba(255,255,255,0.05);
}

.choice.dismissed {
  opacity: 0.07 !important;
  pointer-events: none;
  transition: opacity 0.7s ease !important;
}

.choices:has(.choice:hover) .choice:not(:hover) {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.choices:has(.chosen) .choice:not(.chosen) {
  opacity: 0.07 !important;
  pointer-events: none;
  transition: opacity 0.7s ease !important;
}
.choices:has(.chosen) .choice.chosen {
  opacity: 1 !important;
}

@media (max-width: 480px) {
  .choice-inner  { padding: 28px 20px 26px; }
  .choice-num    { font-size: 52px; top: 16px; right: 16px; }
  .choice-text   { font-size: clamp(22px, 7vw, 28px); }
  .choice-signal { display: none; }
}

.bridge-question {
  font-family: var(--serif);
  font-size: clamp(20px,4.5vw,27px);
  font-weight: 300;
  font-style: italic;
  color: var(--chakra-mid);
  line-height: 1.6;
  margin-top: 20px;
  display: block;
}

.enter-zone {
  padding: 32px 0 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.enter-zone.visible { opacity: 1; }

.enter-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-light);
  opacity: 0.5;
  margin-bottom: 20px;
  display: block;
}

.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0.5px solid rgba(212,136,74,0.3);
  color: var(--chakra-mid);
  padding: 18px 36px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  min-height: var(--tap);
  min-width: 180px;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.enter-btn:hover { background: rgba(212,136,74,0.08); border-color: var(--chakra-mid); color: var(--text); }
.enter-chevron { font-size: 16px; opacity: 0.6; }

@media (max-width: 480px) {
  .enter-btn { width: 100%; }
}

/* ── LOOKS BAR ── */
.looks-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  margin-top: 12px;
}
.looks-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--chakra-mid);
  opacity: 0.5;
  transition: opacity 0.3s;
  min-height: var(--tap);
  padding: 0 12px;
}
.looks-bar a:hover { opacity: 0.85; }
.looks-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--chakra-mid);
}

/* ── MY LOOKS NAV ── */
.looks-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}
.looks-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.looks-nav-label {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  transition: color 0.2s;
}
.looks-nav-label.has-session {
  color: var(--chakra-mid);
  opacity: 0.7;
}
.looks-nav-btn:hover .looks-nav-label { color: var(--chakra-mid); }

.looks-dropdown {
  position: fixed;
  top: 56px;
  right: 48px;
  width: 280px;
  background: rgba(12,10,8,0.97);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 18px;
  z-index: 199;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.looks-dropdown.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ld-view { }
.ld-heading {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}
.ld-desc {
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  color: var(--muted-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.ld-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  display: block;
  margin-bottom: 8px;
}
.ld-input-row {
  display: flex;
  gap: 6px;
}
.ld-input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.3s;
}
.ld-input:focus { border-bottom-color: var(--chakra-mid); }
.ld-input::placeholder { color: var(--muted-light); opacity: 0.3; text-transform: uppercase; }
.ld-go {
  background: none;
  border: 0.5px solid var(--chakra-mid);
  color: var(--chakra-mid);
  font-family: var(--serif);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.ld-go:hover { background: var(--chakra); color: var(--text); }
.ld-err {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: rgba(192,87,70,0.8);
  min-height: 14px;
  margin-top: 6px;
}
.ld-links { margin-top: 16px; padding-top: 12px; border-top: 0.5px solid rgba(255,255,255,0.04); }
.ld-link {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  color: var(--muted-light);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.ld-link:hover { color: var(--chakra-mid); }

.ld-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.03);
}
.ld-row:last-of-type { border-bottom: none; }
.ld-row-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.ld-row-val {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  color: var(--chakra-mid);
}
.ld-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.ld-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ld-buy {
  display: block;
  text-align: center;
  padding: 10px;
  border: 0.5px solid var(--chakra-mid);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chakra-mid);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ld-buy:hover { background: var(--chakra); color: var(--text); }
.ld-close-session {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  opacity: 0.25;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s;
  text-align: center;
}
.ld-close-session:hover { opacity: 0.6; }

@media (max-width: 480px) {
  .looks-dropdown { right: 16px; left: 16px; width: auto; }
}

/* ── ACCESSIBILITY PANEL ── */
.a11y-panel {
  position: fixed;
  top: 56px;
  right: 0;
  width: 260px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: rgba(12,10,8,0.97);
  border-left: 0.5px solid rgba(255,255,255,0.06);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  z-index: 200;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.a11y-panel.open { transform: translateX(0); }
.a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.a11y-title {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
}
.a11y-close {
  background: none;
  border: none;
  color: var(--muted-light);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.a11y-close:hover { color: var(--text); }
.a11y-section {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
}
.a11y-section:last-of-type { border-bottom: none; }
.a11y-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  display: block;
  margin-bottom: 10px;
}
.a11y-row {
  display: flex;
  gap: 6px;
}
.a11y-opt {
  flex: 1;
  background: none;
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 8px 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-height: 36px;
  text-align: center;
}
.a11y-opt:hover { border-color: rgba(255,255,255,0.15); color: var(--text); }
.a11y-opt.active {
  border-color: var(--chakra-mid);
  color: var(--chakra-mid);
  background: rgba(var(--chakra-rgb, 192,57,43), 0.06);
}
.a11y-reset-row { text-align: center; margin-top: 8px; }
.a11y-reset {
  background: none;
  border: none;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
  opacity: 0.5;
}
.a11y-reset:hover { color: var(--text); opacity: 1; }

@media (max-width: 480px) {
  .a11y-panel { width: 100%; border-left: none; }
}

/* ── ACCESSIBILITY MODES ── */

/* Text size: large (+25%) */
html.a11y-text-large .mod-title { font-size: clamp(48px,13vw,72px); }
html.a11y-text-large .mod-sub { font-size: clamp(18px,4vw,22px); }
html.a11y-text-large .sentence-input { font-size: clamp(22px,5vw,28px); }
html.a11y-text-large .decode-text,
html.a11y-text-large .result-primary { font-size: clamp(19px,4.2vw,24px); }
html.a11y-text-large .act-prose { font-size: clamp(21px,4.5vw,27px); }
html.a11y-text-large .choice-text { font-size: clamp(30px,7vw,42px); }
html.a11y-text-large .plain-text { font-size: clamp(21px,4.5vw,26px); }

/* Text size: extra large (+50%) */
html.a11y-text-xlarge .mod-title { font-size: clamp(56px,15vw,82px); }
html.a11y-text-xlarge .mod-sub { font-size: clamp(20px,4.5vw,25px); }
html.a11y-text-xlarge .sentence-input { font-size: clamp(26px,6vw,32px); }
html.a11y-text-xlarge .decode-text,
html.a11y-text-xlarge .result-primary { font-size: clamp(22px,5vw,28px); }
html.a11y-text-xlarge .act-prose { font-size: clamp(24px,5.5vw,32px); }
html.a11y-text-xlarge .choice-text { font-size: clamp(34px,8vw,48px); }
html.a11y-text-xlarge .plain-text { font-size: clamp(24px,5.5vw,30px); }

/* High contrast */
html.a11y-high-contrast body { background: #000; }
html.a11y-high-contrast .ea-ambient,
html.a11y-high-contrast .ea-pulse-bg { opacity: 0; }
html.a11y-high-contrast .mod-sub,
html.a11y-high-contrast .decode-text,
html.a11y-high-contrast .result-primary,
html.a11y-high-contrast .act-prose,
html.a11y-high-contrast .plain-text { color: #fff; }
html.a11y-high-contrast .decode-block { border-left-width: 2px; background: rgba(255,255,255,0.04); }
html.a11y-high-contrast .choice-inner { border-width: 1px; }
html.a11y-high-contrast .checkout-bar { border-top-width: 1px; border-bottom-width: 1px; border-color: rgba(255,255,255,0.15); }

/* Light mode */
html.a11y-light body { background: #f5f2ed; color: #1a1614; }
html.a11y-light .ea-ambient,
html.a11y-light .ea-pulse-bg { opacity: 0; }
html.a11y-light .ea-nav { background: rgba(245,242,237,0.95); border-bottom-color: rgba(0,0,0,0.06); }
html.a11y-light .nav-hub { color: #8a8580; }
html.a11y-light .mod-title { color: #1a1614; }
html.a11y-light .mod-sub { color: #6b6259; }
html.a11y-light .sentence-input { color: #1a1614; border-bottom-color: rgba(0,0,0,0.12); }
html.a11y-light .sentence-input::placeholder { color: #9b9285; }
html.a11y-light .decode-text,
html.a11y-light .result-primary,
html.a11y-light .act-prose { color: #1a1614; }
html.a11y-light .decode-block { background: rgba(0,0,0,0.02); }
html.a11y-light .verdict-text { color: #6b6259; }
html.a11y-light .plain-text { color: #8b6914; }
html.a11y-light .choice-inner { border-color: rgba(0,0,0,0.08); }
html.a11y-light .choice-text { color: rgba(26,22,20,0.65); }
html.a11y-light .choice:hover .choice-text { color: #1a1614; }
html.a11y-light .checkout-bar { border-color: rgba(0,0,0,0.06); }
html.a11y-light .reset-btn { color: #8a8580; }
html.a11y-light .ea-footer { color: #9b9285; }
html.a11y-light .a11y-panel { background: rgba(245,242,237,0.97); border-color: rgba(0,0,0,0.06); }
html.a11y-light .a11y-title { color: #1a1614; }
html.a11y-light .a11y-opt { border-color: rgba(0,0,0,0.1); color: #6b6259; }
html.a11y-light .a11y-opt:hover { border-color: rgba(0,0,0,0.2); color: #1a1614; }

/* Reduced motion */
html.a11y-reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ── FOOTER ── */
.ea-footer {
  text-align: center;
  padding: 32px 24px 24px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted-light);
  opacity: 0.35;
  position: relative;
  z-index: 10;
}
.ea-footer a { color: inherit; text-decoration: none; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes dotPulse {
  0%,80%,100% { opacity: 0.2; transform: scale(0.8); }
  40%         { opacity: 1;   transform: scale(1); }
}

@keyframes ambientDrift {
  0%,100% { opacity: 0.08; transform: scale(0.97) translateY(0); }
  50%     { opacity: 0.13; transform: scale(1.03) translateY(-12px); }
}

@keyframes sigil-breathe {
  0%,100% { transform: scale(1);   opacity: 0.8; }
  50%     { transform: scale(1.4); opacity: 1; }
}

@keyframes branchChosen {
  0%   { box-shadow: 0 0 0 0    rgba(212,136,74,0.5); }
  40%  { box-shadow: 0 0 0 12px rgba(212,136,74,0);   }
  100% { box-shadow: 0 0 0 0    rgba(212,136,74,0);   }
}

@keyframes choiceDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

/* ── PRE-INDEX COMMERCE SHIELD ── */
body.pre-index .checkout-bar,
body.pre-index .angle-btn,
body.pre-index a[href*="buy.stripe.com"] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
