/* ========================================
   REVEAL — Invite, Waiting, Reveal, Results, Vibe Report
   Card Game Minimal Edition
   ======================================== */

/* ===== INVITE ===== */
#invite {
  padding: 60px 24px 40px;
  align-items: center;
  gap: 32px;
}
.invite-avatars {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.invite-avatar {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: var(--card-shadow);
}
.invite-avatar.you {
  background: var(--accent-1);
  color: white;
}
.invite-avatar.them {
  border: 2px dashed var(--dashed-border);
  background: var(--card-bg);
}
.invite-vs {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== WAITING — Duo spirit energy ===== */
#waiting {
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 32px;
  text-align: center;
  overflow: hidden;
}

/* Big ambient glow */
.waiting-duo {
  position: relative;
  width: 220px; height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.duo-glow-bg {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle,
    var(--accent-1) 0%,
    var(--accent-2) 30%,
    transparent 70%
  );
  opacity: 0.12;
  animation: duoGlowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* Energy beam connecting the two */
.duo-energy-beam {
  position: absolute;
  width: 60px; height: 2px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-1));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: beamFlow 2s linear infinite;
  opacity: 0.5;
  z-index: 1;
}
.duo-energy-beam::before,
.duo-energy-beam::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 8px var(--accent-1), 0 0 16px var(--accent-1-glow);
}
.duo-energy-beam::before { left: -3px; animation: beamDotPulse 1.5s ease-in-out infinite; }
.duo-energy-beam::after { right: -3px; animation: beamDotPulse 1.5s ease-in-out infinite 0.75s; }

/* Circles */
.duo-circle {
  position: relative;
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.duo-circle.you { margin-right: -10px; }
.duo-circle.them { margin-left: -10px; }

/* Avatar */
.duo-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  position: relative;
  z-index: 3;
  border: 3px solid var(--bg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.duo-circle.you .duo-avatar {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  box-shadow:
    0 0 20px var(--accent-1-glow),
    0 4px 12px rgba(0,0,0,0.3);
}
.duo-circle.them .duo-avatar {
  background: var(--surface);
  color: var(--text-dim);
  border: 3px dashed var(--dashed-border);
  box-shadow: var(--card-shadow);
}

/* Ripple waves expanding outward */
.duo-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-1);
  opacity: 0;
  animation: rippleExpand 3s ease-out infinite;
}
.duo-ripple.r2 {
  animation-delay: 1.5s;
}
.duo-circle.you .duo-ripple { border-color: var(--accent-1); }
.duo-circle.them .duo-ripple { border-color: var(--text-dim); opacity: 0; animation: rippleExpandDim 3s ease-out infinite; }
.duo-circle.them .duo-ripple.r2 { animation-delay: 1.5s; }

/* Orbiting dots */
.duo-orbit-track {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  animation: spiritSpin 4s linear infinite;
}
.duo-orbit-dot {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 6px var(--accent-1);
}
.duo-circle.you .duo-orbit-dot { background: var(--accent-1); box-shadow: 0 0 6px var(--accent-1); }
.duo-circle.them .duo-orbit-dot { background: var(--text-dim); box-shadow: none; opacity: 0.3; }
.duo-orbit-dot:first-child { top: 0; left: 50%; transform: translateX(-50%); }
.duo-orbit-dot.d2 { bottom: 10%; right: 0; }
.duo-orbit-dot.d3 { bottom: 10%; left: 0; }
.duo-circle.you .duo-orbit-track { animation-direction: normal; }
.duo-circle.them .duo-orbit-track { animation-direction: reverse; animation-duration: 5s; }

/* Floating particles */
.duo-particles {
  position: absolute;
  inset: -30px;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0;
  animation: particleFloat 5s ease-in-out infinite;
}
.particle.p1 { left: 10%; top: 20%; animation-delay: 0s; }
.particle.p2 { right: 15%; top: 10%; animation-delay: 0.8s; }
.particle.p3 { left: 5%; bottom: 30%; animation-delay: 1.6s; }
.particle.p4 { right: 8%; bottom: 20%; animation-delay: 2.4s; background: var(--accent-2); }
.particle.p5 { left: 40%; top: 5%; animation-delay: 3.2s; background: var(--accent-2); }
.particle.p6 { right: 35%; bottom: 10%; animation-delay: 4s; }

/* === Partner joined states === */
.duo-circle.them.active .duo-avatar {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  color: white;
  border: 3px solid var(--bg);
  box-shadow:
    0 0 20px var(--accent-2-glow),
    0 4px 12px rgba(0,0,0,0.3);
}
.duo-circle.them.active .duo-ripple {
  border-color: var(--accent-2);
  animation: rippleExpand 3s ease-out infinite;
}
.duo-circle.them.active .duo-ripple.r2 { animation-delay: 1.5s; }
.duo-circle.them.active .duo-orbit-dot {
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
  opacity: 1;
}
.duo-circle.them.active ~ .duo-particles .particle { background: var(--accent-2); }
.waiting-partner-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-mid);
  box-shadow: var(--card-shadow);
}
.waiting-partner-progress .dot-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.5s ease-in-out infinite;
}
.nudge-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  box-shadow: var(--card-shadow);
}
.nudge-btn:active { transform: scale(0.95); }

/* ===== REVEAL — Card flip moment ===== */
#reveal {
  padding: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.reveal-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
}
.countdown-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 120px;
  line-height: 1;
  color: var(--accent-1);
  animation: countPop 0.4s ease;
}
.countdown-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Syne', sans-serif;
}

/* Full-screen reveal card — card flip in */
.reveal-fullscreen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  opacity: 0;
  transform: perspective(800px) rotateY(20deg) scale(0.92);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.reveal-fullscreen.active {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) scale(1);
  pointer-events: all;
}
.reveal-fullscreen.exit {
  opacity: 0;
  transform: perspective(800px) rotateY(-20deg) scale(0.88);
}
.reveal-q-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.reveal-question {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 32px;
  max-width: 80%;
}

/* VS cards — two physical cards side by side */
.reveal-vs-block {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}
.reveal-vs-card {
  flex: 1;
  padding: 20px 14px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.reveal-vs-card .rv-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  margin-bottom: 10px;
}
.reveal-vs-card .rv-answer {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}
.reveal-vs-card.you-card {
  background: var(--accent-1-bg);
  border: 1.5px solid var(--accent-1-border);
}
.reveal-vs-card.you-card .rv-label { color: var(--accent-1); }
.reveal-vs-card.them-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
}
.reveal-vs-card.them-card .rv-label { color: var(--text-mid); }

/* Answer hidden state */
.reveal-vs-card .rv-answer-hidden {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* Reaction */
.reveal-reaction {
  margin: 8px 0 4px;
  opacity: 0;
  transform: scale(0) rotate(-15deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-reaction.pop {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.reveal-reaction .reaction-emoji {
  font-size: 56px;
  display: block;
  line-height: 1.2;
}
.reveal-reaction .reaction-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  margin-top: 4px;
  letter-spacing: -0.3px;
}
.reveal-reaction .reaction-text.matched-text {
  color: var(--accent-1);
}
.reveal-reaction .reaction-text.diff-text {
  color: var(--text-dim);
}

.reveal-tap-hint {
  position: absolute;
  bottom: 40px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  animation: tapHintPulse 2s ease-in-out infinite;
}

/* Mini confetti burst */
.card-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.card-confetti-piece {
  position: absolute;
  border-radius: 50%;
  animation: cardConfettiBurst 0.8s ease-out forwards;
}

/* ===== RESULTS / STORY — Receipt card style ===== */
#results {
  padding: 0;
}
#results::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-1-glow) 0%, transparent 70%);
  top: 10%; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.story-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.story-scroll::-webkit-scrollbar { display: none; }

/* Hero — muted, card-like */
.story-hero {
  padding: 36px 24px 28px;
  text-align: center;
  background: var(--accent-1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.story-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.story-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.story-hero-emoji { font-size: 32px; }
.story-hero-score {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: white;
  letter-spacing: -3px;
  line-height: 1;
}
.story-hero-names {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  position: relative;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.story-hero-vibe {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: white;
  position: relative;
  margin-top: 6px;
  letter-spacing: -0.3px;
}
.story-hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  position: relative;
  margin-top: 2px;
}

/* Narrative */
.story-intro {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.story-intro p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0;
}
.story-intro strong { color: var(--text); }

/* Chapter per question — card-like sections */
.story-chapter {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.ch-num {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.ch-question {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 14px;
}
.ch-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ch-ans {
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--card-shadow);
}
.ch-ans .ch-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  margin-bottom: 4px;
}
.ch-ans .ch-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.ch-ans.ch-you {
  background: var(--accent-1-bg);
  border: 1px solid var(--accent-1-border);
}
.ch-ans.ch-you .ch-label { color: var(--accent-1); }
.ch-ans.ch-them {
  background: var(--surface);
  border: 1px solid var(--border);
}
.ch-ans.ch-them .ch-label { color: var(--text-mid); }

/* Outro */
.story-outro {
  padding: 32px 24px;
  text-align: center;
}
.story-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.story-stat-val {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--accent-1);
}
.story-stat-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 2px;
}
.story-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-dim);
  letter-spacing: -0.5px;
  opacity: 0.4;
}
.story-date {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.35;
  margin-top: 2px;
}

/* Actions */
.story-actions {
  padding: 0 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== VIBE CARD — Clean white minimal ===== */
.vibe-card {
  margin: 12px 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.08);
  overflow: hidden;
}
[data-theme="dark"] .vibe-card {
  background: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.3);
}
.vc-inner {
  padding: 32px 28px 28px;
  position: relative;
}

/* Profiles — avatar pair */
.vc-profiles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.vc-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.vc-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-1);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.vc-avatar-partner {
  background: #EC4899;
}
.vc-profile-name {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.2px;
}
[data-theme="dark"] .vc-profile-name { color: #999; }
.vc-vs {
  font-size: 14px;
  color: #ccc;
  font-weight: 300;
  margin-bottom: 20px;
}
[data-theme="dark"] .vc-vs { color: #555; }

/* Top — Big number hero */
.vc-top {
  text-align: center;
  margin-bottom: 24px;
}
.vc-pct {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 80px;
  line-height: 0.85;
  letter-spacing: -4px;
  color: var(--accent-1);
}
.vc-vibe {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 8px;
  opacity: 0.6;
}

/* Divider */
.vc-divider {
  width: 32px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 auto 20px;
  border-radius: 1px;
}
[data-theme="dark"] .vc-divider { background: rgba(255,255,255,0.08); }

/* Headline — lighter weight */
.vc-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 6px;
}
[data-theme="dark"] .vc-headline { color: #e8e8e8; }

/* Hook */
.vc-hook {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.4;
}
[data-theme="dark"] .vc-hook { color: #777; }

/* Awards — compact emoji rows */
.vc-awards {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
  background: #f7f7f7;
  border-radius: 16px;
  padding: 4px;
}
[data-theme="dark"] .vc-awards { background: rgba(255,255,255,0.04); }
.vc-award {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
}
.vc-award-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.vc-award-text {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}
[data-theme="dark"] .vc-award-text { color: #ccc; }

/* Archetype */
.vc-archetype {
  text-align: center;
  padding: 20px 16px;
  border-radius: 16px;
  border: 1.5px solid #eee;
}
[data-theme="dark"] .vc-archetype { border-color: rgba(255,255,255,0.08); }
.vc-arch-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: #bbb;
  margin-bottom: 6px;
}
[data-theme="dark"] .vc-arch-label { color: #666; }
.vc-arch-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
[data-theme="dark"] .vc-arch-name { color: #f0f0f0; }

/* Footer */
.vc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
[data-theme="dark"] .vc-footer { border-top-color: rgba(255,255,255,0.06); }
.vc-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #ccc;
  letter-spacing: -0.3px;
}
[data-theme="dark"] .vc-brand { color: #444; }
.vc-tag {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-1);
  opacity: 0.5;
  letter-spacing: 0.3px;
}

/* ===== VIBE LOADING SCREEN ===== */
.vibe-loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 28px;
  text-align: center;
  position: relative;
  margin: 12px 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.08);
  overflow: hidden;
}
[data-theme="dark"] .vibe-loading-screen {
  background: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.3);
}
.vibe-loading-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0.06;
  filter: blur(80px);
  animation: vibeGlowPulse 2.5s ease-in-out infinite;
}
.vibe-loading-emoji {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--accent-1);
  animation: vibeSpinSlow 3s linear infinite;
}
.vibe-loading-text {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #999;
  letter-spacing: -0.2px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
[data-theme="dark"] .vibe-loading-text { color: #777; }
.vibe-loading-text.vibe-text-exit {
  opacity: 0;
  transform: translateY(-8px);
}
.vibe-loading-text.vibe-text-enter {
  animation: vibeTextIn 0.3s ease forwards;
}
@keyframes vibeGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.06; }
  50% { transform: scale(1.3); opacity: 0.1; }
}
@keyframes vibeSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes vibeTextIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== MINI STATS ROW ===== */
.story-stats-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.story-stats-mini > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.story-stats-dot {
  color: var(--text-dim);
  opacity: 0.3;
  font-size: 16px;
  line-height: 1;
}
.story-stat-val-mini {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--accent-1);
  letter-spacing: -0.5px;
}
.story-stat-lbl-mini {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* ===== DETAILS TOGGLE ===== */
.details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.details-toggle:active {
  background: var(--surface-hover);
}
.details-toggle-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.details-toggle-icon {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}
.details-toggle.open .details-toggle-icon {
  transform: rotate(180deg);
}

/* ===== COLLAPSIBLE DETAILS ===== */
.details-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
