/* ════════════════════════════════════════════════════════════════════
   Our Story screen — visual novel of the user-companion relationship.
   Ported from docs/plans/our-story-mock.html. Uses existing app theme
   variables (--bg, --bg2, --rose, --cream, etc.) defined in
   variables.css. Does NOT import an external font; reuses the app's
   default font family for body text and falls back to a serif stack
   for display headings.
   ═══════════════════════════════════════════════════════════════════ */

#screenStory.active {
  display: block;
  overflow-y: auto;
  height: 100vh;
}

.story-screen {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 120px;
  position: relative;
  font-family: var(--font-body, 'Inter', sans-serif);
}

/* Mock used these as design tokens; alias to app-side variables. */
.story-screen {
  --story-bg3: var(--bg3, #1a1a1f);
  --story-bg4: var(--bg4, #222228);
  --story-rose-glow: rgba(194, 105, 122, 0.15);
  --story-rose-glow2: rgba(194, 105, 122, 0.08);
  --story-gold: #d4a853;
  --story-cream: var(--cream, var(--text, #e8ddd3));
  --story-cream-dim: var(--text-secondary, #a89e94);
  --story-cream-muted: var(--text-muted, #6b6360);
  --story-border: var(--border, rgba(232, 221, 211, 0.06));
  --story-border-hover: rgba(232, 221, 211, 0.12);
  --story-radius: 12px;
  --story-radius-sm: 8px;
  --story-radius-lg: 16px;
  --story-display-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ── Chapter nav (right rail) ──────────────────────────────────────── */

.chapter-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}
.chapter-nav .nav-line {
  width: 2px;
  height: 20px;
  background: var(--story-border);
  border-radius: 1px;
}
.chapter-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--story-cream-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.chapter-dot.completed {
  border-color: var(--rose-dim, #9e4f5f);
  background: var(--rose-dim, #9e4f5f);
}
.chapter-dot.active {
  border-color: var(--rose);
  background: var(--rose);
  box-shadow: 0 0 12px rgba(194, 105, 122, 0.4);
}
.chapter-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: var(--story-cream-muted);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--story-border);
}
.chapter-dot:hover::after { opacity: 1; }

/* Jump-to-Now dot — slightly larger with a pulse to invite the click. */
.chapter-dot.is-now {
  width: 14px;
  height: 14px;
  border-color: var(--rose);
  background: transparent;
  position: relative;
}
.chapter-dot.is-now::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  opacity: 0.4;
  animation: storyNowPulse 2s ease-in-out infinite;
}
.chapter-dot.is-now.active {
  background: var(--rose);
}

/* ── Prologue ──────────────────────────────────────────────────────── */

.prologue {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 0;
  position: relative;
}
.prologue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(194, 105, 122, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.prologue-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-dim, #9e4f5f), var(--rose));
  margin-bottom: 32px;
  position: relative;
  opacity: 0;
  transform: scale(0.8);
  animation: storyAvatarReveal 1s 0.3s ease-out forwards;
  overflow: hidden;
  border: 3px solid rgba(194, 105, 122, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
}
.prologue-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prologue-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--rose), transparent, var(--rose)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: storyAvatarRingSpin 8s linear infinite;
}

.prologue-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
  opacity: 0;
  animation: storyFadeUp 0.8s 0.6s ease-out forwards;
}

.prologue-title {
  font-family: var(--story-display-font);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--story-cream);
  margin-bottom: 12px;
  opacity: 0;
  animation: storyFadeUp 0.8s 0.8s ease-out forwards;
}
.prologue-title em {
  font-style: italic;
  color: var(--rose);
}

.prologue-subtitle {
  font-size: 15px;
  color: var(--story-cream-dim);
  max-width: 420px;
  margin-bottom: 40px;
  opacity: 0;
  animation: storyFadeUp 0.8s 1.0s ease-out forwards;
}

.prologue-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: storyFadeUp 0.8s 1.2s ease-out forwards;
}
.prologue-meta-item { text-align: center; }
.prologue-meta-item .value {
  font-size: 22px;
  font-weight: 600;
  color: var(--story-cream);
}
.prologue-meta-item .label {
  font-size: 11px;
  color: var(--story-cream-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.prologue-how-we-met {
  margin-top: 48px;
  padding: 20px 28px;
  background: var(--bg2);
  border: 1px solid var(--story-border);
  border-radius: var(--story-radius);
  max-width: 440px;
  opacity: 0;
  animation: storyFadeUp 0.8s 1.4s ease-out forwards;
}
.prologue-how-we-met .hwm-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--story-cream-muted);
  margin-bottom: 8px;
}
.prologue-how-we-met .hwm-text {
  font-family: var(--story-display-font);
  font-style: italic;
  font-size: 15px;
  color: var(--story-cream-dim);
  line-height: 1.6;
}

.story-empty-message {
  text-align: center;
  margin: 64px 0;
  font-family: var(--story-display-font);
  font-style: italic;
  font-size: 16px;
  color: var(--story-cream-muted);
}

/* ── Chapter ───────────────────────────────────────────────────────── */

.chapter {
  padding-top: 80px;
  margin-bottom: 24px;
  position: relative;
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.chapter-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.chapter-number {
  font-family: var(--story-display-font);
  font-size: 48px;
  font-weight: 600;
  color: var(--rose);
  opacity: 0.3;
  line-height: 1;
}

.chapter-info { flex: 1; }
.chapter-info .chapter-stage {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 4px;
}
.chapter-info .chapter-title {
  font-family: var(--story-display-font);
  font-size: 24px;
  color: var(--story-cream);
  font-weight: 400;
}
.chapter-info .chapter-date {
  font-size: 12px;
  color: var(--story-cream-muted);
  margin-top: 4px;
}

.chapter-stub {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--story-cream-muted);
  font-style: italic;
}

/* ── Timeline + base beat ──────────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rose-dim, #9e4f5f), var(--story-border), transparent);
  border-radius: 1px;
}

.beat {
  position: relative;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease-out;
}
.beat.visible {
  opacity: 1;
  transform: translateY(0);
}
.beat::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--story-bg3);
  border: 2px solid var(--story-cream-muted);
  z-index: 2;
  transition: all 0.3s ease;
}
.beat.visible::before {
  border-color: var(--rose-dim, #9e4f5f);
  background: var(--bg);
}

/* ── Memory card ───────────────────────────────────────────────────── */

.memory-card {
  background: var(--bg2);
  border: 1px solid var(--story-border);
  border-radius: var(--story-radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.memory-card:hover {
  border-color: var(--story-border-hover);
  background: var(--story-bg3);
  transform: translateX(4px);
}

.memory-card .card-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.memory-card .card-content {
  flex: 1;
  font-size: 14px;
  color: var(--story-cream-dim);
  line-height: 1.6;
}
.memory-card .card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}
.memory-card .card-time {
  font-size: 11px;
  color: var(--story-cream-muted);
  white-space: nowrap;
}
.memory-card .card-content strong {
  color: var(--story-cream);
  font-weight: 500;
}

.memory-card.importance-high {
  border-left: 3px solid var(--rose);
  padding-left: 17px;
}
.memory-card.importance-high .card-content {
  font-size: 15px;
  color: var(--story-cream);
}
.memory-card.importance-low .card-content {
  font-size: 13px;
  color: var(--story-cream-muted);
}

.core-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--story-gold);
}
.core-badge svg { width: 12px; height: 12px; }

.pin-indicator {
  display: inline-flex;
  align-items: center;
  color: var(--rose);
}
.pin-indicator svg { width: 12px; height: 12px; }

/* ── Turning point ─────────────────────────────────────────────────── */

.turning-point {
  background: linear-gradient(135deg, rgba(194, 105, 122, 0.08), rgba(194, 105, 122, 0.03));
  border: 1px solid rgba(194, 105, 122, 0.2);
  border-radius: var(--story-radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.turning-point::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
}

.beat.is-turning-point::before {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 8px rgba(194, 105, 122, 0.5);
  width: 14px;
  height: 14px;
  left: -33px;
  top: 17px;
}

.turning-point .tp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--story-rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--rose);
}
.turning-point .tp-icon svg { width: 18px; height: 18px; }

.turning-point .tp-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 6px;
}
.turning-point .tp-title {
  font-family: var(--story-display-font);
  font-size: 18px;
  color: var(--story-cream);
  margin-bottom: 8px;
}
.turning-point .tp-description {
  font-size: 13px;
  color: var(--story-cream-dim);
  line-height: 1.5;
  margin-bottom: 14px;
}
.turning-point .tp-relive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--rose);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.turning-point .tp-relive:hover {
  color: var(--story-cream);
  gap: 10px;
}
.turning-point .tp-relive svg { width: 14px; height: 14px; }

/* ── Flashback card ────────────────────────────────────────────────── */

.flashback-card {
  background: var(--bg2);
  border: 1px solid var(--story-border);
  border-radius: var(--story-radius);
  overflow: hidden;
  transition: all 0.25s ease;
}
.flashback-card:hover {
  border-color: var(--story-border-hover);
  transform: translateX(4px);
}

.flashback-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--story-bg3);
  border-bottom: 1px solid var(--story-border);
}
.flashback-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--story-radius-sm);
  background: var(--story-rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  font-size: 16px;
}
.flashback-header-text .fh-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--story-cream);
}
.flashback-header-text .fh-time {
  font-size: 11px;
  color: var(--story-cream-muted);
}
.flashback-outcome {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
}
.flashback-outcome.win {
  background: rgba(143, 166, 122, 0.15);
  color: #8fa67a;
}
.flashback-outcome.loss {
  background: rgba(194, 105, 122, 0.15);
  color: var(--rose);
}
.flashback-outcome.draw {
  background: rgba(212, 168, 83, 0.15);
  color: var(--story-gold);
}

.flashback-body {
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.flashback-memory {
  font-size: 13px;
  color: var(--story-cream-dim);
  line-height: 1.5;
  font-style: italic;
}
.flashback-memory strong {
  color: var(--story-cream);
  font-weight: 500;
  font-style: normal;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  grid-template-rows: repeat(3, 24px);
  gap: 2px;
  flex-shrink: 0;
}
.mini-board .cell {
  background: var(--story-bg4);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.mini-board .cell.x { color: var(--rose); }
.mini-board .cell.o { color: var(--story-cream); }

/* ── Evolution marker ──────────────────────────────────────────────── */

.evolution-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--story-border);
  border-radius: var(--story-radius-sm);
  font-size: 13px;
  flex-wrap: wrap;
}
.evolution-marker .evo-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--story-gold);
  flex-shrink: 0;
}
.evolution-marker .evo-icon svg { width: 14px; height: 14px; }
.evolution-marker .evo-old {
  color: var(--story-cream-muted);
  text-decoration: line-through;
}
.evolution-marker .evo-arrow {
  color: var(--story-cream-muted);
  margin: 0 4px;
}
.evolution-marker .evo-new {
  color: var(--story-cream);
  font-weight: 500;
}
.evolution-marker .evo-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--story-cream-muted);
  flex-shrink: 0;
}
.beat.is-evolution::before {
  border-color: var(--story-gold);
  background: var(--bg);
}

/* ── Right Now section ─────────────────────────────────────────────── */

.now-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--story-border);
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease-out;
}
.now-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.now-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.now-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
  animation: storyNowPulse 2s ease-in-out infinite;
}
.now-header .now-label {
  font-family: var(--story-display-font);
  font-size: 22px;
  color: var(--story-cream);
}

.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.now-card {
  background: var(--bg2);
  border: 1px solid var(--story-border);
  border-radius: var(--story-radius);
  padding: 18px 20px;
}
.now-card .nc-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--story-cream-muted);
  margin-bottom: 8px;
}
.now-card .nc-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--story-cream);
}
.now-card .nc-sub {
  font-size: 12px;
  color: var(--story-cream-dim);
  margin-top: 2px;
}

.now-followups {
  background: var(--bg2);
  border: 1px solid var(--story-border);
  border-radius: var(--story-radius);
  padding: 18px 20px;
}
.now-followups .nf-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--story-cream);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.now-followups .nf-title svg { width: 14px; height: 14px; color: var(--rose); }

.followup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--story-border);
  font-size: 13px;
  color: var(--story-cream-dim);
}
.followup-item:last-child { border-bottom: none; }
.followup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-dim, #9e4f5f);
  flex-shrink: 0;
}
.followup-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--story-cream-muted);
  flex-shrink: 0;
}

/* ── Activities Played section ─────────────────────────────────────── */

.activities-section {
  margin-top: 48px;
}
.activities-section .as-title {
  font-family: var(--story-display-font);
  font-size: 20px;
  color: var(--story-cream);
  margin-bottom: 16px;
}
.activities-empty {
  padding: 18px 20px;
  background: var(--bg2);
  border: 1px solid var(--story-border);
  border-radius: var(--story-radius);
  font-size: 13px;
  color: var(--story-cream-muted);
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--story-border);
  border-radius: var(--story-radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
}
.activity-row .ar-name {
  color: var(--story-cream);
  font-weight: 500;
  flex: 1;
}
.activity-row .ar-stats {
  color: var(--story-cream-muted);
  font-size: 12px;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.story-footer {
  text-align: center;
  margin-top: 64px;
  padding: 40px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.story-footer.visible {
  opacity: 1;
  transform: translateY(0);
}
.story-footer .sf-line {
  width: 48px;
  height: 2px;
  background: var(--rose-dim, #9e4f5f);
  margin: 0 auto 16px;
  border-radius: 1px;
}
.story-footer .sf-text {
  font-family: var(--story-display-font);
  font-style: italic;
  font-size: 16px;
  color: var(--story-cream-muted);
}

/* ── Memory detail overlay ─────────────────────────────────────────── */

.memory-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.3s ease;
}
.memory-overlay.open {
  background: rgba(0,0,0,0.6);
  pointer-events: all;
  backdrop-filter: blur(4px);
}
.memory-detail {
  background: var(--bg2);
  border: 1px solid var(--story-border-hover);
  border-radius: var(--story-radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 90%;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}
.memory-overlay.open .memory-detail {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.md-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.md-day-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.md-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--story-bg4);
  color: var(--story-cream-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.md-close:hover { background: var(--story-rose-glow); color: var(--rose); }
.md-content {
  font-size: 16px;
  color: var(--story-cream);
  line-height: 1.6;
  margin-bottom: 20px;
}
.md-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--story-border);
  font-size: 12px;
}
.md-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.md-meta-item .meta-label {
  color: var(--story-cream-muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.md-meta-item .meta-value { color: var(--story-cream-dim); }
.md-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.md-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--story-radius-sm);
  border: 1px solid var(--story-border);
  background: var(--story-bg3);
  color: var(--story-cream-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.md-action-btn:hover {
  border-color: var(--story-border-hover);
  color: var(--story-cream);
}
.md-action-btn.pinned {
  border-color: rgba(194, 105, 122, 0.3);
  color: var(--rose);
  background: var(--story-rose-glow2);
}
.md-action-btn.delete:hover {
  border-color: rgba(194, 105, 122, 0.3);
  color: var(--rose);
  background: var(--story-rose-glow2);
}
.md-action-btn svg { width: 14px; height: 14px; }

/* ── Animations ────────────────────────────────────────────────────── */

@keyframes storyAvatarReveal {
  to { opacity: 1; transform: scale(1); }
}
@keyframes storyAvatarRingSpin {
  to { transform: rotate(360deg); }
}
@keyframes storyFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes storyNowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 800px) {
  .chapter-nav { display: none; }
  .prologue-title { font-size: 32px; }
  .now-grid { grid-template-columns: 1fr; }
  .story-screen { padding: 0 16px 80px; }
  .flashback-body { flex-direction: column; align-items: flex-start; }
}
