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

:root {
  --bg: #0A1628;
  --surface: #111D33;
  --surface-hover: #1A2A45;
  --border: #1e2a45;
  --text: #FFFFFF;
  --text-dim: #8FA3BF;
  --accent: #002868;
  --accent-hover: #001845;
  --usa-navy: #002868;
  --usa-red: #BF0A30;
  --usa-white: #FFFFFF;
  --accent-text: #4A90D9;
  --gold: #FFD700;
  --teal: #00D4AA;
  --coral: #BF0A30;
  --red-accent: #E8344E;
  --purple: #002868;
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --olympic-blue: #0085C7;
  --para-blue: #004B93;
  --para-green: #00843D;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== FULLSCREEN SECTIONS ===== */
.fullscreen-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ===== SPLASH ===== */
.splash {
  background: url('/images/generated/hero-landing.png') center center / cover no-repeat;
  position: relative;
  text-align: center;
}

.splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.7) 0%,
      rgba(0, 40, 104, 0.6) 30%,
      rgba(10, 22, 40, 0.85) 60%,
      rgba(191, 10, 48, 0.15) 80%,
      rgba(10, 22, 40, 0.95) 100%);
  background-size: 100% 200%;
  animation: gradientShift 8s ease-in-out infinite;
  z-index: 0;
}

.splash-content {
  position: relative;
  z-index: 1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.splash-content {
  max-width: 600px;
  animation: fadeUp 0.6s ease-out;
}

.splash-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.splash h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.accent-text {
  color: var(--gold);
}

.splash-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

/* ===== BUTTONS ===== */
.cta-btn {
  background: linear-gradient(135deg, var(--gold), #FFC000);
  color: #0A1628;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 24px rgba(255, 215, 0, 0.6), 0 0 48px rgba(255, 215, 0, 0.2); }
}

.cta-btn:hover {
  background: linear-gradient(135deg, #FFC000, var(--gold));
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.45);
  animation: none;
}

.cta-btn.small {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ghost-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.pill-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pill-btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.header-pill {
  background: rgba(0, 40, 104, 0.2);
  border: 1px solid rgba(74, 144, 217, 0.3);
  color: var(--accent-text);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.header-pill:hover {
  background: rgba(124, 92, 255, 0.25);
}

.header-pill.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.arrow {
  font-size: 1.2rem;
}

/* ===== QUIZ ===== */
.quiz {
  background: var(--bg);
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.quiz-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 14.28%;
  background: var(--gold);
  border-radius: 0;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.progress-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 1rem;
  font-variant-numeric: tabular-nums;
}

.quiz-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  width: 100%;
  animation: fadeUp 0.4s ease-out;
}

.quiz-step.active {
  display: flex;
}

.quiz-step h2 {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.quiz-hint {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Quiz Cards (Q1, Q2) — Large, tactile, snap on tap */
.quiz-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.quiz-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--text);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  -webkit-tap-highlight-color: transparent;
}

.quiz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 26, 0.82);
  z-index: 0;
  transition: background 0.15s;
}

.quiz-card > * {
  position: relative;
  z-index: 1;
}

.quiz-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: scale(1.02);
  background-color: rgba(255, 215, 0, 0.03);
}

.quiz-card:hover::before {
  background: rgba(8, 14, 26, 0.72);
}

.quiz-card:active {
  transform: scale(0.97);
  transition-duration: 0.06s;
}

.quiz-card.selected {
  border-color: var(--gold);
  background-color: rgba(255, 215, 0, 0.06);
  animation: cardSnap 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardSnap {
  0% { transform: scale(1); }
  40% { transform: scale(0.93); }
  70% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.card-emoji {
  font-size: 2.8rem;
  transition: transform 0.15s;
}

.quiz-card:hover .card-emoji {
  transform: scale(1.1);
}

.card-label {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* === MEGA SHARE BUTTON === */
.share-mega-btn {
  font-size: 1.3rem !important;
  padding: 1.2rem 3.5rem !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--gold) 0%, #FFC000 50%, var(--gold) 100%) !important;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  animation: megaSharePulse 2s ease-in-out infinite !important;
  letter-spacing: 0.02em;
}

.share-mega-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 12px 40px rgba(0, 0, 0, 0.4) !important;
  animation: none !important;
}

@keyframes megaSharePulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255, 215, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.65), 0 8px 32px rgba(0, 0, 0, 0.3); transform: scale(1.02); }
}

/* Word Grid (Q3) — Grabbable chips with glow */
.word-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 520px;
}

.word-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.word-chip:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 215, 0, 0.1);
  color: #fff;
}

.word-chip:active {
  transform: scale(0.95);
  transition-duration: 0.06s;
}

.word-chip.selected {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: chipLock 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chipLock {
  0% { transform: scale(1); }
  50% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.word-chip.dimmed {
  opacity: 0.25;
  pointer-events: none;
  transform: scale(0.95);
}

.cta-btn.locked-in {
  animation: lockedInPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lockedInPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Spectrum Slider (Q3) */
.spectrum-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
}

.spectrum-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.spectrum-slider {
  -webkit-appearance: none;
  flex: 1;
  height: 8px;
  background: linear-gradient(90deg, var(--usa-red), var(--gold), var(--usa-navy));
  border-radius: 4px;
  outline: none;
}

.spectrum-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.spectrum-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

/* Would You Rather (Q4, Q7) */
.wyr-options {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.wyr-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 2rem 2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.wyr-btn:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: scale(1.02);
  background: rgba(255, 215, 0, 0.03);
}

.wyr-btn:active {
  transform: scale(0.97);
  transition-duration: 0.06s;
}

.wyr-btn.selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.06);
  animation: cardSnap 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wyr-emoji {
  font-size: 2.5rem;
}

.wyr-or {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Trick Reveal (Q7) */
.trick-reveal {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(0, 40, 104, 0.15) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  animation: fadeUp 0.4s ease-out;
  text-align: center;
}

.trick-reveal p {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.trick-sub {
  color: var(--text-dim);
  font-size: 0.95rem !important;
  margin-bottom: 1.5rem !important;
}

/* ===== QUIZ LOADING ===== */
.quiz-loading {
  background: var(--bg);
  flex-direction: column;
}

.loading-content {
  text-align: center;
  animation: fadeUp 0.4s ease-out;
}

.dna-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
}

.dna-spinner::before {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: brandedPulse 1.5s ease-in-out infinite;
}

.dna-spinner::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--red-accent);
  animation: spin 0.8s linear infinite;
}

.dna-dot {
  display: none;
}

@keyframes brandedPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 0.1; }
}

.loading-msg {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: opacity 0.3s;
}

/* ===== IDENTITY RESULT ===== */
.identity {
  background: radial-gradient(ellipse at top right, rgba(0, 40, 104, 0.2) 0%, transparent 40%),
              radial-gradient(ellipse at bottom left, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
              var(--bg);
  flex-direction: column;
  padding: 2rem;
}

.identity-container {
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: fadeUp 0.6s ease-out;
}

.identity-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 1.5rem;
}

.identity-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 215, 0, 0.6);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.identity-card {
  background: url('/images/generated/identity-bg-1.png') center center / cover no-repeat;
  position: relative;
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 2rem 2rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.15);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 480px;
  overflow: visible;
}

.identity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 29, 51, 0.82);
  border-radius: 22px;
  z-index: 0;
}

.identity-card > * {
  position: relative;
  z-index: 1;
}

.identity-name {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.identity-tagline {
  font-size: 1.1rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
}

#reveal-card .identity-tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

#reveal-card .identity-traits {
  margin-bottom: 2rem;
}

#reveal-card .trait {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: rgba(255, 215, 0, 0.9);
}

.rarity-bar {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.rarity-text {
  color: var(--coral);
  font-size: 0.95rem;
  font-weight: 600;
}

.identity-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trait {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 40, 104, 0.2);
  color: var(--accent-text);
  border-radius: 999px;
  font-weight: 500;
}

.identity-insight {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.identity-matches {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.identity-matches h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.identity-athlete-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.identity-match {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.match-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.match-info {
  display: flex;
  flex-direction: column;
}

.match-info strong {
  font-size: 0.95rem;
}

.match-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.match-reason {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.25rem;
}

.identity-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.i-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.i-stat strong {
  font-size: 1.3rem;
  font-weight: 700;
}

.i-stat span {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.olympic-accent { color: var(--gold); }
.paralympic-accent { color: var(--teal); }

.identity-footer {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.identity-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.identity-friend-cta {
  padding: 1rem;
  background: rgba(0, 40, 104, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius-sm);
}

.identity-friend-cta p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ===== HEADER ===== */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

/* ===== TAB BAR ===== */
.tab-bar {
  display: flex;
  width: 100%;
  gap: 0;
  margin-top: 0.25rem;
}

.tab-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(124, 92, 255, 0.05);
}

.tab-btn.active {
  color: var(--accent-text);
  border-bottom-color: var(--accent-text);
}

/* ===== TAB PANES — Each tab has its own emotional register ===== */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane.active .section {
  opacity: 1;
  transform: translateY(0);
}

/* Results tab: warm, personal */
#tab-results {
  background: linear-gradient(180deg, #12181F 0%, #0E1420 100%);
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* Clashes tab: energetic, confrontational */
#tab-clashes {
  background: linear-gradient(180deg, #0E0A18 0%, #0D1420 100%);
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* Athletes tab: reference library, dense */
#tab-athletes {
  background: transparent;
  margin-top: 0.5rem;
}

/* ===== MAIN ===== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1rem;
}

.fire, .bolt {
  margin-right: 0.25rem;
}

/* ===== COMPACT IDENTITY — Warm personal banner ===== */
.compact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

.compact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
}

.compact-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-text);
}

.compact-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
}

.compact-right {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ===== HOT TAKES — Social feed style, tight spacing ===== */
.hot-takes-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hot-take-card {
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 1.25rem 0.5rem;
  transition: all 0.2s;
  animation: fadeUp 0.3s ease-out;
}

.hot-take-card:hover {
  background: rgba(232, 52, 78, 0.03);
}

.take-text {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.take-athletes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.take-athlete {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.take-athlete::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-block;
  flex-shrink: 0;
}

.take-vs {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--red-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.take-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.take-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.take-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.take-btn.agree.active {
  background: rgba(255, 77, 77, 0.15);
  border-color: var(--coral);
  color: var(--coral);
}

.take-btn.disagree.active {
  background: rgba(0, 40, 104, 0.2);
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.take-btn.clash {
  border-color: var(--teal);
  color: var(--teal);
}

.take-btn.clash:hover {
  background: rgba(255, 215, 0, 0.08);
}

/* Hot take reaction split */
.take-reaction-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.3s ease-out;
}

.take-split-bar {
  display: flex;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.75rem;
}

.take-split-agree {
  background: linear-gradient(135deg, rgba(232, 52, 78, 0.3), rgba(232, 52, 78, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.take-split-agree span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral);
  white-space: nowrap;
}

.take-split-disagree {
  background: linear-gradient(135deg, rgba(0, 40, 104, 0.3), rgba(0, 40, 104, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.take-split-disagree span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}

.take-explanation-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
}

.take-split-explanation .loading-inline.small {
  justify-content: flex-start;
}

.take-split-explanation .loading-inline.small .spinner {
  width: 16px;
  height: 16px;
}

.ht-vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Clash divider (replaces old hot-takes-divider) */
.clash-divider {
  margin: 2.5rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.clash-divider h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* ===== FAN CLASH ===== */
.clash-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .clash-pickers {
    grid-template-columns: 1fr;
  }
}

.clash-container {
  background: url('/images/generated/clash-vs-bg.png') center center / cover no-repeat;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.clash-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.78);
  border-radius: var(--radius);
  z-index: 0;
}

.clash-container > * {
  position: relative;
  z-index: 1;
}

.clash-hot-take {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 0.5rem;
}

.clash-question {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 1.25rem;
}

.clash-vote-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.clash-vote-btn {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 140px;
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}

.clash-vote-btn:hover {
  transform: translateY(-3px);
}

/* Split-screen color temperatures: warm left, cool right */
.clash-vote-btn.left {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
  border-color: rgba(255, 215, 0, 0.15);
}

.clash-vote-btn.left:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.clash-vote-btn.right {
  background: linear-gradient(135deg, transparent 0%, rgba(0, 212, 170, 0.05) 100%);
  border-color: rgba(0, 212, 170, 0.15);
}

.clash-vote-btn.right:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.2);
  background: linear-gradient(135deg, transparent 0%, rgba(0, 212, 170, 0.1) 100%);
}

.clash-emoji {
  font-size: 1.5rem;
}

.clash-vs {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* Vote Result */
.vote-reveal {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeUp 0.4s ease-out;
}

.vote-reveal p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.vote-bar-container {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 40px;
}

.vote-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.vote-bar-segment.left {
  background: linear-gradient(90deg, var(--gold), rgba(255, 215, 0, 0.5));
  color: #000;
}

.vote-bar-segment.right {
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.5), var(--teal));
  color: #000;
}

.clash-analysis {
  margin-top: 1.5rem;
}

.clash-custom {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.clash-custom-label {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.compare-selectors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.compare-selectors select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  width: 100%;
  max-width: 260px;
  cursor: pointer;
}

.clash-vs-small {
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ===== ATHLETE GRID — Dense reference library ===== */
.athlete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.athlete-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.athlete-card.olympic-border {
  border-left: 5px solid var(--gold);
}

.athlete-card.paralympic-border {
  border-left: 5px solid var(--teal);
}

.athlete-card:hover {
  background: var(--surface-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.athlete-card.olympic-border:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), -4px 0 16px rgba(255, 215, 0, 0.15);
}

.athlete-card.paralympic-border:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), -4px 0 16px rgba(0, 212, 170, 0.15);
}

.athlete-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.athlete-avatar {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.athlete-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.athlete-sport {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.athlete-bio {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.badge-olympic {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
}

.badge-paralympic {
  background: rgba(255, 215, 0, 0.1);
  color: var(--teal);
}

.badge-milestone {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.see-split-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent-text);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.see-split-btn:hover {
  background: rgba(0, 40, 104, 0.15);
  border-color: var(--accent-text);
}

/* Filters — Functional tool bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
}

.olympic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.paralympic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

.search-box {
  margin-left: auto;
}

.search-box input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  min-width: 240px;
}

.search-box input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== DETAIL PANEL — Editorial long-form ===== */
.detail-panel {
  animation: fadeUp 0.3s ease;
  max-width: 700px;
  margin: 0 auto;
}

.back-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.back-btn:hover {
  color: var(--text);
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: transparent;
  padding: 2rem 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.detail-hero h2 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-hook {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.detail-bio {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Big Insight — Editorial pullquote, no card container */
.big-insight-box {
  background: transparent;
  border-left: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 1rem;
  border-radius: 0;
  margin-bottom: 2.5rem;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.big-insight-box strong {
  color: rgba(255, 215, 0, 0.7);
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-style: normal;
  font-weight: 600;
}

.section-title h3 {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

/* Dashboard Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-card-header h3 {
  font-size: 1rem;
}

.interpretation-hook {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.dash-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-top: auto;
  border: none;
  padding-bottom: 0;
  align-items: center;
}

.metric {
  flex: 1;
}

.metric .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.metric .val {
  font-size: 0.9rem;
  font-weight: 500;
}

.dash-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.dash-bullets li {
  margin-bottom: 0.5rem;
}

.dash-bullets strong {
  color: var(--text);
}

/* Fan Insight View */
.action-section {
  margin-top: 3rem;
  text-align: center;
}

.brief-container {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255,255,255,0.03) 100%);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: left;
  margin-top: 1rem;
  line-height: 1.7;
}

.brief-container h2 {
  font-size: 1.1rem;
  color: var(--accent-text);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.01em;
}

.brief-container h2:first-child {
  margin-top: 0;
}

.brief-container ul {
  margin-left: 1.25rem;
  color: var(--text-dim);
}

.brief-container li {
  margin-bottom: 0.6rem;
}

.brief-container li::marker {
  color: var(--accent-text);
}

.brief-container strong {
  color: var(--text);
}

/* ===== COMPARE VISUAL ===== */
.compare-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.compare-key-insight {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.compare-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  text-align: center;
}

.compare-header-col {
  flex: 1;
}

.compare-header-col h3 { font-size: 1rem; }
.compare-header-col.left h3 { color: var(--gold); }
.compare-header-col.right h3 { color: var(--teal); }

.compare-header-col .icon-lg {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.compare-header-col.center {
  flex: 0 0 50px;
  font-weight: 700;
  color: var(--text-dim);
  font-size: 1.2rem;
}

.compare-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.compare-table {
  margin-bottom: 1rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.compare-row + .compare-row {
  margin-top: 0.4rem;
}

.c-metric {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.c-val {
  font-size: 0.85rem;
}

.c-left {
  padding-right: 0.75rem;
  border-right: 1px solid var(--border);
}

.c-right {
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.compare-venn {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.venn-col {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.venn-col h4 {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.venn-col.shared {
  background: rgba(0, 40, 104, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.venn-col.shared h4 {
  color: var(--accent-text);
  border-bottom-color: rgba(124, 92, 255, 0.2);
}

.venn-col ul {
  list-style: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.venn-col li {
  margin-bottom: 0.3rem;
  padding-left: 0.75rem;
  position: relative;
}

.venn-col li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--text);
}

/* ===== SHARE MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.shareable-card {
  width: 400px;
  max-width: 90vw;
  background: #111827;
  border: 2px solid var(--accent);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background-image:
    radial-gradient(circle at top right, rgba(0, 40, 104, 0.2), transparent 40%),
    radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.1), transparent 40%);
}

.share-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.shareable-card h2 {
  font-size: 2rem;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}

.share-tagline {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.center-traits {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.share-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.s-stat {
  display: flex;
  flex-direction: column;
}

.s-stat strong {
  font-size: 1.2rem;
}

.s-stat span {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.share-footer {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.share-hint {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ===== LOADING ===== */
.loading-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  padding: 2rem;
  justify-content: center;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== INSIGHT OUTPUT ===== */
.insight-output {
  font-size: 0.95rem;
  line-height: 1.6;
}

.insight-output h1, .insight-output h2, .insight-output h3, .insight-output h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.insight-output h2 { color: var(--accent-text); font-size: 1.15rem; }
.insight-output h3 { font-size: 1rem; }
.insight-output p { margin-bottom: 1rem; }
.insight-output ul, .insight-output ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.insight-output li { margin-bottom: 0.25rem; }
.insight-output strong { color: var(--text); }
.insight-output em { color: var(--text-dim); }

.error-text {
  color: var(--coral);
  text-align: center;
  padding: 2rem;
}

.muted {
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.stats span {
  margin: 0 0.25rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Dramatic identity reveal entrance --- */
@keyframes revealBlackout {
  0% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

@keyframes typescaleIn {
  0% { opacity: 0; transform: scale(0.4); letter-spacing: 0.4em; filter: blur(8px); }
  60% { opacity: 1; transform: scale(1.08); letter-spacing: -0.02em; filter: blur(0); }
  100% { transform: scale(1); letter-spacing: -0.03em; filter: blur(0); }
}

.reveal-blackout {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  animation: revealBlackout 0.8s 0.6s ease-out forwards;
}

.identity-name.type-in {
  animation: typescaleIn 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-fade-in {
  animation: fadeUp 0.6s 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ===== DECODE SEQUENCE ===== */
.decode-sequence {
  background: #050A14;
  flex-direction: column;
}

.decode-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.decode-fragments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.decode-fragment {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.decode-fragment.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.decode-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.decode-answer {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.3;
}

.decode-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.decode-line {
  opacity: 0;
  animation: decodeFadeIn 0.6s ease forwards;
}

.decode-dot {
  opacity: 0;
  animation: decodePulseIn 0.5s ease forwards;
}

@keyframes decodeFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes decodePulseIn {
  0% { opacity: 0; r: 0; }
  60% { r: 6; }
  100% { opacity: 1; r: 4; }
}

.decode-reasoning {
  color: var(--text-dim);
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
  line-height: 1.6;
  max-width: 440px;
  min-height: 3em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.decode-reasoning.visible {
  opacity: 1;
  transform: translateY(0);
}

.decode-generating {
  display: block;
  margin-top: 1rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  animation: decodePulseText 1.5s ease-in-out infinite;
}

@keyframes decodePulseText {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== MATCH STORYTELLING ===== */

/* Surprise divider before Paralympic reveal */
.match-surprise-divider {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.match-surprise-divider.show {
  opacity: 1;
  transform: translateY(0);
}

.match-surprise-divider span {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  color: var(--teal);
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.06);
  letter-spacing: 0.02em;
}

/* Surprise match card — visually distinct */
.match-card.surprise-match {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0, 212, 170, 0.06) 100%);
  border-width: 2px;
}

.match-card.surprise-match::after {
  content: 'SURPRISE MATCH';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: rgba(0, 212, 170, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.match-card.surprise-match:hover {
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.2);
  border-color: var(--teal);
}

/* Connection sentence on match cards */
.match-connection {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}

/* Why You Match section — editorial feel */
.why-you-match-section {
  margin: 2rem 0;
  padding: 2rem 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 0;
  animation: fadeUp 0.4s ease-out;
}

.wym-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 215, 0, 0.6);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.wym-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wym-dimension {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.wym-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.wym-dimension h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-text);
  margin-bottom: 0.25rem;
}

.wym-dimension p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

/* ===== CAMERA SHAKE (Identity Drop) ===== */
@keyframes cameraShake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3px, -2px); }
  20% { transform: translate(4px, 1px); }
  30% { transform: translate(-2px, 3px); }
  40% { transform: translate(3px, -3px); }
  50% { transform: translate(-4px, 2px); }
  60% { transform: translate(2px, -1px); }
  70% { transform: translate(-3px, 3px); }
  80% { transform: translate(4px, -2px); }
  90% { transform: translate(-1px, 1px); }
}

.identity-name.camera-shake {
  animation: cameraShake 0.5s ease-out !important;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, var(--gold), #FFC000);
  -webkit-background-clip: text;
}

/* ===== RARITY RING CHART ===== */
.identity-rarity {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.rarity-text-line {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--coral);
  max-width: 180px;
  text-align: left;
  line-height: 1.3;
}

.rarity-chart {
  flex-shrink: 0;
}

.rarity-ring {
  display: block;
}

.rarity-arc {
  transition: stroke-dasharray 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .splash h1 {
    font-size: 2.5rem;
  }

  .quiz-cards {
    grid-template-columns: 1fr;
  }

  .wyr-options {
    flex-direction: column;
  }

  .wyr-btn {
    min-width: unset;
    width: 100%;
  }

  .clash-vote-btns {
    flex-direction: column;
  }

  .clash-vote-btn {
    min-width: unset;
    width: 100%;
  }

  .compact-card {
    flex-direction: column;
    text-align: center;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .c-metric {
    order: -1;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .c-left, .c-right {
    border: none;
    padding: 0;
  }

  .compare-venn {
    grid-template-columns: 1fr;
  }

  .compare-split {
    flex-direction: column;
    gap: 1rem;
  }

  .compare-header-col.center {
    flex: unset;
  }

  .detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .compare-selectors {
    flex-direction: column;
  }

  .compare-selectors select {
    min-width: unset;
    width: 100%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    margin-left: 0;
  }

  .search-box input {
    min-width: unset;
    width: 100%;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-btn {
    font-size: 0.75rem;
    padding: 0.6rem 0.5rem;
  }

  .identity-card {
    padding: 2rem 1.25rem;
  }

  .decode-fragments {
    gap: 1rem;
  }

  .decode-fragment {
    padding: 0.75rem;
  }

  .decode-answer {
    font-size: 0.75rem;
  }

  .identity-rarity {
    flex-direction: column;
    align-items: center;
  }

  .rarity-text-line {
    text-align: center;
    max-width: unset;
  }
}

@media (max-width: 480px) {
  .fullscreen-section {
    padding: 1.5rem;
  }

  main {
    padding: 0 1rem 1rem;
  }

  .athlete-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

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

/* ===== NEW EMOTIONAL ARC RESTRUCTURE ===== */

/* --- Visibility & Transitions --- */
.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2rem;
}

.hidden {
  display: none !important;
}

.section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reveal Screen — Full-bleed dramatic takeover --- */
#reveal-screen {
  background: #000;
  padding: 0;
  overflow: hidden;
}

.reveal-glow {
  position: absolute;
  width: 100vmin;
  height: 100vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 30%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: reveal-bloom 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes reveal-bloom {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Gold particle burst for reveal */
@keyframes particle-burst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  50% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

@keyframes float-particle {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-80px) scale(0.3); opacity: 0; }
}

.reveal-container {
  position: relative;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.reveal-container::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 1;
}

.reveal-container.burst::before {
  animation: particle-burst 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered trait badge animation */
.identity-traits .trait {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.reveal-traits-visible .trait:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.reveal-traits-visible .trait:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.reveal-traits-visible .trait:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

#reveal-card {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  /* Override card styling — full bleed, no container */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 2rem 1rem !important;
  max-width: 100% !important;
}

#reveal-card::before {
  display: none !important;
}

#reveal-card.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

#reveal-continue {
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 2;
}

/* Movie-title scale on reveal, normal elsewhere */
.identity-name {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #FFC000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
}

#reveal-card .identity-name {
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 1rem 0 1.5rem;
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
}

/* identity-rarity is now styled in the decode/rarity section above */

/* --- Matches Grid — Primary match is hero-sized --- */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* First match card is the primary — make it hero-sized */
.matches-grid .match-card:first-child {
  grid-column: 1 / -1;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 215, 0, 0.04) 100%);
  border-color: rgba(255, 215, 0, 0.25);
}

.matches-grid .match-card:first-child .match-name {
  font-size: 2rem;
}

.matches-grid .match-card:first-child .match-emoji {
  font-size: 2.8rem;
}

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.match-card.show {
  opacity: 1;
  transform: translateY(0);
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--accent-text);
}

.match-card.olympic-border { border-left: 5px solid var(--gold); }
.match-card.paralympic-border { border-left: 5px solid var(--teal); }

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.match-emoji {
  font-size: 2rem;
}

.match-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.match-type.olympic { color: var(--gold); }
.match-type.paralympic { color: var(--teal); }

.match-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.match-sport {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.match-reason {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.match-cta {
  color: var(--accent-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.share-prompt {
  text-align: center;
  margin: 3rem 0 1rem;
  padding: 2rem;
  background: rgba(124, 92, 255, 0.05);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.share-prompt.promoted {
  background: linear-gradient(135deg, rgba(0, 40, 104, 0.15) 0%, rgba(0, 212, 170, 0.08) 100%);
  border: 1px solid rgba(74, 144, 217, 0.3);
  padding: 2.5rem 2rem;
  margin: 3rem 0 1rem;
}

.share-prompt.promoted h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.share-prompt.promoted p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.share-prompt.promoted .cta-btn {
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
}

.share-prompt p {
  margin-bottom: 1rem;
  color: var(--text-dim);
}

.section-transition {
  text-align: center;
  margin: 5rem 0 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.section-transition h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-transition p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hot Takes Divider (inside clashes tab) --- */
.hot-takes-divider {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.hot-takes-divider h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* --- Hot Takes Redesign --- */
.hot-take-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.hot-take-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
}

.hot-take-text {
  font-size: 1.1rem;
  line-height: 1.5;
  font-style: italic;
}

.hot-take-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hot-take-actions button {
  background: rgba(255,255,255,0.05);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.hot-take-actions button:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Parity Reveal --- */
.parity-reveal {
  text-align: center;
  margin-top: 2rem;
}

.parity-split {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.parity-side {
  width: 150px;
  height: 200px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s forwards;
}

.parity-side.olympic-side {
  border-left: 4px solid var(--gold);
}

.parity-side.paralympic-side {
  border-left: 4px solid var(--teal);
  animation-delay: 0.3s;
}

.parity-text {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

.parity-text.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes slideUpFade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-win {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.pulse-win {
  animation: pulse-win 0.3s ease-in-out 2;
}

/* --- Split Modal --- */
.split-modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
}
.split-tension-box {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 300;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(0, 40, 104, 0.15) 0%, transparent 70%);
  border-radius: var(--radius);
  border: 1px solid rgba(124, 92, 255, 0.2);
  margin-bottom: 2rem;
}
.split-tension-box strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 1rem;
  font-weight: 700;
}
.faction-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faction-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Color-coded left borders for fan groups */
.faction-card:nth-child(1) { border-left: 3px solid var(--gold); padding-left: 1rem; }
.faction-card:nth-child(2) { border-left: 3px solid var(--teal); padding-left: 1rem; }
.faction-card:nth-child(3) { border-left: 3px solid var(--red-accent); padding-left: 1rem; }

.faction-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.faction-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.faction-vibe {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
}
.faction-hook {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.faction-size {
  font-size: 0.75rem;
  color: var(--text-dim);
}
/* Horizontal bar for faction size */
.faction-card .faction-size {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faction-card:nth-child(1) .faction-size::before {
  content: '';
  display: inline-block;
  height: 4px;
  width: 60%;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.5;
}
.faction-card:nth-child(2) .faction-size::before {
  content: '';
  display: inline-block;
  height: 4px;
  width: 45%;
  background: var(--teal);
  border-radius: 2px;
  opacity: 0.5;
}
.faction-card:nth-child(3) .faction-size::before {
  content: '';
  display: inline-block;
  height: 4px;
  width: 30%;
  background: var(--red-accent);
  border-radius: 2px;
  opacity: 0.5;
}

/* ===== QUIZ SLIDE TRANSITIONS — Fast horizontal swipe ===== */
.quiz-step {
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.quiz-step.slide-out {
  opacity: 0;
  transform: translateX(-80px) scale(0.95);
  pointer-events: none;
}
.quiz-step.slide-in {
  opacity: 0;
  transform: translateX(80px) scale(0.95);
}
.quiz-step.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ===== CARD HOVER ENHANCEMENTS ===== */
.athlete-card,
.match-card,
.faction-card,
.ft-card,
.hot-take-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.athlete-card:hover,
.match-card:hover,
.ft-card:hover,
.hot-take-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Tab pane cross-fade */
.tab-pane {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tab-pane.active {
  opacity: 1;
}

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

/* ===== FAN THINK TABS — Editorial, clean ===== */
.fan-think-section {
  margin-top: 3rem;
}
.section-title-text {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.fan-think-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0;
}
.ft-tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ft-tab:hover {
  color: var(--text);
}
.ft-tab.active {
  color: var(--text);
  border-bottom-color: var(--gold);
  font-weight: 600;
}
.ft-pane {
  animation: fadeUp 0.2s ease-out;
}
.ft-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  padding: 1rem 0;
  margin-bottom: 0;
  transition: background 0.2s;
}
.ft-card:hover {
  background: rgba(255, 255, 255, 0.02);
}
.ft-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.ft-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.ft-card-badge {
  font-size: 0.7rem;
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.ft-card-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.ft-card-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ft-bar-fill {
  height: 6px;
  background: linear-gradient(90deg, var(--usa-navy), var(--accent-text));
  border-radius: 3px;
  flex-shrink: 0;
}
.ft-bar-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}
/* Obsessions — with subtle topic icon cues */
.ft-obsession {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  padding: 1rem 0 1rem 1.75rem;
  margin-bottom: 0;
  position: relative;
}
.ft-obsession::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--red-accent);
  font-size: 1.2rem;
  line-height: 1;
}
.ft-obs-topic {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.ft-obs-hook {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
/* Location cards — with pin accent */
.ft-location-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  padding: 1rem 0 1rem 1.75rem;
  margin-bottom: 0;
  position: relative;
}
.ft-location-card::before {
  content: '\25C6';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--teal);
  font-size: 0.8rem;
  line-height: 1;
}
.ft-loc-place {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.ft-loc-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== QUIZ — ACT 1: MINIMAL, FAST, CHANNEL-FLIPPING ===== */
/* Near-black base with subtle gradient shifts between questions */
.quiz.quiz-temp-1 {
  background: linear-gradient(165deg, #080E1A 0%, #0D1525 40%, #0A1222 100%);
}
.quiz.quiz-temp-2 {
  background: linear-gradient(195deg, #0A1222 0%, #0D1830 40%, #080E1A 100%);
}
.quiz.quiz-temp-3 {
  background: linear-gradient(135deg, #0D1525 0%, #0A1628 40%, #0E1A30 100%);
}
.quiz.quiz-temp-4 {
  background: linear-gradient(210deg, #0E1A30 0%, #0A1222 40%, #0D1525 100%);
}

/* No overlay needed — backgrounds are already dark and minimal */
.quiz::before {
  display: none;
}

.quiz > * {
  position: relative;
  z-index: 1;
}

/* ===== AI-GENERATED IMAGES ===== */
.ai-image-container {
  margin: 1.5rem auto;
  text-align: center;
  max-width: 360px;
}
.ai-generated-image {
  width: 100%;
  max-width: 360px;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}
.ai-generated-image.clash-image {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius);
  margin-top: 1rem;
}
.ai-generated-image.share-card-image {
  max-width: 360px;
  max-height: 540px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border: 2px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* When AI image is shown in share modal, it replaces the HTML card */
#share-modal .ai-image-container {
  max-width: 380px;
  margin: 0 auto;
}

/* AI image inside identity card — keep it compact */
.identity-card .ai-image-container {
  max-width: 280px;
  margin: 1rem auto 0;
}
.identity-card .ai-generated-image {
  max-width: 280px;
  max-height: 320px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ===== CLASH CARD TEMPLATE (pre-generated bg + text overlay) ===== */
.clash-card-template {
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/generated/clash-vs-bg.png') center center / cover no-repeat;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.clash-card-template::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  z-index: 0;
}

.clash-card-template > * {
  position: relative;
  z-index: 1;
}

.clash-card-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.clash-card-emoji {
  font-size: 2.5rem;
}

.clash-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.clash-card-left .clash-card-name { color: var(--gold); }
.clash-card-right .clash-card-name { color: var(--teal); }

.clash-card-sport {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.clash-card-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.clash-card-cat.olympic {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold);
}

.clash-card-cat.paralympic {
  background: rgba(0, 212, 170, 0.2);
  color: var(--teal);
}

.clash-card-vs {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  padding: 0 1rem;
}

/* ===== LIVE CLASH COMMENTARY ===== */
.clash-commentary {
  margin-top: 1rem;
  min-height: 2rem;
}

.gemini-thinking {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0;
}

.gemini-thinking-dots {
  display: flex;
  gap: 4px;
}

.gemini-thinking-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: thinkPulse 1.4s ease-in-out infinite;
}

.gemini-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.gemini-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

.gemini-thinking-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

.commentary-stream {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gold);
  font-style: italic;
  margin: 0;
  animation: commentaryFadeIn 0.3s ease-out;
}

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

/* ===== DYNAMIC MATCHUP BUILDER ===== */
.dynamic-matchup-build {
  padding: 1.5rem 0;
}

.dm-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.dm-athletes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dm-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.dm-vs {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dm-framing {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  margin-bottom: 1rem;
}

.dm-dimensions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dm-dimension-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-dim-val {
  font-size: 0.95rem;
  font-weight: 600;
}

.dm-dim-val.dm-left {
  text-align: right;
  color: var(--warm-accent, #ff6b6b);
}

.dm-dim-val.dm-right {
  text-align: left;
  color: var(--cool-accent, #48dbfb);
}

.dm-dim-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  min-width: 120px;
}

.dm-analysis {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.dm-fade-in {
  animation: dmFadeIn 0.5s ease-out both;
}

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