/* Quiz Modal - Clean Design */
@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.quiz-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-modal-content {
  max-width: 540px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, var(--opacity-faint));
  border-radius: 0;
  position: relative;
  margin: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.quiz-inner {
  padding: 56px var(--spacing-xl) var(--spacing-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  /* entrance owned by quizAfterSwap (GSAP) — a CSS keyframe here double-animates */
}

/* Close button */
.quiz-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-size: var(--font-size-lg);
  font-weight: var(--font-light);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  line-height: 1;
  padding: 0;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.quiz-close:hover {
  color: rgba(255, 255, 255, var(--opacity-secondary));
  border-color: rgba(255, 255, 255, var(--opacity-subtle));
}

.quiz-back {
  position: absolute;
  top: 12px;
  left: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-size: var(--font-size-xs);
  cursor: pointer;
  padding: 4px 8px;
  font-family: var(--font-family);
  letter-spacing: var(--letter-spacing-body);
  text-transform: uppercase;
  transition: var(--transition);
  z-index: 10;
}

.quiz-back:hover {
  color: rgba(255, 255, 255, var(--opacity-tertiary));
}

/* Question */
.quiz-question {
  font-size: var(--font-size-lg);
  font-weight: var(--font-regular);
  color: rgba(255, 255, 255, var(--opacity-bright));
  text-align: center;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
  letter-spacing: var(--letter-spacing);
}

/* Footer with back */
.quiz-footer {
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, var(--opacity-border));
}

/* Results */
.quiz-result-header {
  font-size: var(--font-size-xs);
  font-weight: var(--font-light);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  letter-spacing: var(--letter-spacing-body);
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.quiz-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex: 1;
}

.quiz-film-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  background: transparent;
  animation: quizSlideUp 0.4s ease-out both;
}

.quiz-film-card:nth-child(1) {
  animation-delay: 0.1s;
}
.quiz-film-card:nth-child(2) {
  animation-delay: 0.2s;
}
.quiz-film-card:nth-child(3) {
  animation-delay: 0.3s;
}

.quiz-film-card:hover {
  background: rgba(255, 255, 255, var(--opacity-border));
  border-color: rgba(255, 255, 255, var(--opacity-subtle));
  transform: translateY(-1px);
}

/* When there's only 1 result, make the card more dramatic */
.quiz-results-list .quiz-film-card:only-child {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg);
  gap: var(--spacing-md);
}

/* Buttons */
.quiz-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.quiz-btn {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  border-radius: var(--border-radius);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-nav);
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-family);
  /* White fill sweeps in from the left on hover */
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition:
    background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    border-color 0.3s ease;
}

.quiz-btn:hover {
  background-size: 100% 100%;
  color: rgba(0, 0, 0, 1);
  border-color: #fff;
}

.quiz-btn.primary {
  border-color: rgba(255, 255, 255, var(--opacity-subtle));
  color: rgba(255, 255, 255, var(--opacity-secondary));
  background: rgba(255, 255, 255, var(--opacity-border));
}

.quiz-btn.primary:hover {
  background: #fff;
  color: rgba(0, 0, 0, 1);
  border-color: #fff;
}

/* Mode Selection */
.quiz-mode-select {
  text-align: left;
  justify-content: center;
  min-height: auto;
}

/* Mode select: 3-card grid, double-border slab cards */
/* Stacked rows at every width — three columns strangled the row layout.
   width 100%: the select column aligns items flex-start, which would
   otherwise shrink the grid to its content */
/* Subtitle under the "Pick your path" heading */
.quiz-mode-subtitle {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  letter-spacing: var(--letter-spacing-body);
  margin-top: var(--spacing-sm);
}

.quiz-mode-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  width: 100%;
}

/* Editorial rows: text starts left on one shared axis, glyph rides the
   right edge on another — every row aligns to the same two lines */
.quiz-mode-card {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  width: 100%;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  border-radius: var(--border-radius); /* squared — system radius */
  cursor: pointer;
  font-family: var(--font-family);
  text-align: left;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.quiz-mode-card:hover {
  background: rgba(255, 255, 255, var(--opacity-ghost));
  border-color: rgba(255, 255, 255, var(--opacity-subtle));
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.quiz-mode-card:focus-visible {
  outline: 1px solid rgba(255, 255, 255, var(--opacity-subtle));
  outline-offset: 2px;
}

.quiz-mode-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  flex: 1;
  min-width: 0;
}

.quiz-mode-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, var(--opacity-primary));
  letter-spacing: var(--letter-spacing);
  margin-bottom: 2px;
  transition: var(--transition);
}

.quiz-mode-card:hover .quiz-mode-title {
  color: #fff;
}

.quiz-mode-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-body);
}

/* Inline tag beside the title — the row keeps the shared text/glyph axes */
.quiz-mode-soon {
  display: inline-block;
  margin-left: var(--spacing-sm);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  font-size: var(--font-size-xs);
  font-weight: var(--font-regular);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: rgba(255, 255, 255, var(--opacity-quiet));
  vertical-align: middle;
}

.quiz-mode-card.is-soon {
  cursor: default;
}

.quiz-mode-card.is-soon .quiz-mode-body {
  opacity: 0.45;
}

.quiz-mode-card.is-soon:hover {
  background-color: transparent;
  border-color: rgba(255, 255, 255, var(--opacity-border));
  transform: none;
}

/* ── Tarot Card: Premium Card Front ── */
/* ── Card Front: Photo-based ── */
/* Old card-front overrides removed — see unified .tarot-card-front block below .tarot-card */

.tarot-card-name::after {
  display: none;
}

/* Tournament Mode */
.tournament-modal {
  max-width: 480px;
  width: 100%;
}

/* Stage frame: double border, inner hairline inset 8px (design-lab Layout A) */
.tournament-stage {
  position: relative;
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  padding: clamp(20px, 3.5vw, 40px);
}

.tournament-stage::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, var(--opacity-faint));
  pointer-events: none;
}

.tournament-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.tournament-round em {
  font-style: normal;
  color: rgba(255, 255, 255, var(--opacity-quiet));
}

/* Hairline: overall tournament progress (matches decided / total) */
.tournament-progress {
  height: 1px;
  background: rgba(255, 255, 255, var(--opacity-faint));
  margin-top: 12px;
  position: relative;
}

.tournament-progress i {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, var(--opacity-subtle));
  transition: width var(--transition-slow);
}

.tournament-prompt {
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, var(--opacity-quiet));
  margin: var(--spacing-lg) 0 12px;
}

/* Versus badge: a small ringed medallion centered between the two posters */
.tournament-vs {
  align-self: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  border-radius: 50%;
  font-size: var(--font-size-2xs);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, var(--opacity-tertiary));
}

/* "Seen both? Show me others" cards — bare buttons in the site's language */
.tournament-alternatives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg) var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.tournament-alt-card {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-family);
  text-align: left;
}

.tournament-round {
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-nav);
  text-transform: uppercase;
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-weight: var(--font-regular);
}

.tournament-match-count {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--letter-spacing-body);
}

/* Duel: poster vs poster */
.tournament-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-md);
  align-items: stretch;
  margin-bottom: var(--spacing-lg);
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tournament-grid::before {
  display: none;
  z-index: 2;
  background: rgba(0, 0, 0, 0.85);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
}

.tournament-grid::after {
  display: none;
}

.tournament-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--spacing-xs);
}

/* Both SWAP links sit on the same line even when one title wraps —
   the grid stretches the wraps equal, auto-margin pins the button down */
.tournament-card-wrap .tournament-swap-btn {
  margin-top: auto;
}

.tournament-card {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity var(--transition);
  font-family: var(--font-family);
  text-align: left;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.tournament-card:hover {
  opacity: 1;
}

/* Still hover — no zoom (scaling a 1-bit dither moires), no press-scale */
.tournament-poster-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 360px;
  background: rgba(255, 255, 255, var(--opacity-ghost));
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  border-radius: 0; /* squared — matches the rest of the UI (cursor, modal, cards) */
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.tournament-card:hover .tournament-poster-wrap,
.tournament-alt-card:hover .tournament-poster-wrap {
  border-color: rgba(255, 255, 255, var(--opacity-subtle));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, var(--opacity-faint));
}

.tournament-card:hover .tournament-title {
  color: rgba(255, 255, 255, var(--opacity-primary));
}

.tournament-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Missing poster fallback */
.tournament-poster-wrap.no-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2/3;
  background: rgba(255, 255, 255, var(--opacity-ghost));
  border: 1px solid rgba(255, 255, 255, var(--opacity-faint));
}

.tournament-no-poster-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--spacing-lg);
  gap: var(--spacing-xs);
}

.tournament-no-poster-title {
  font-size: var(--font-size-md);
  font-family: var(--font-family);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  text-align: center;
  font-weight: var(--font-regular);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.tournament-no-poster-year {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, var(--opacity-quiet));
  font-family: var(--font-family);
}

.tournament-info {
  padding: var(--spacing-sm) 0;
}

.tournament-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-regular);
  color: rgba(255, 255, 255, var(--opacity-primary));
  margin-bottom: 4px;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tournament-meta {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.tournament-swap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-size: var(--font-size-xs);
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  padding: 2px 0;
  letter-spacing: var(--letter-spacing-nav);
  text-transform: uppercase;
}

.tournament-swap-btn .swap-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.tournament-swap-btn:hover {
  color: rgba(255, 255, 255, var(--opacity-secondary));
}

/* Footer actions */
.tournament-footer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-lg);
  margin: 0 auto;
}

.tournament-footer-sep {
  color: rgba(255, 255, 255, var(--opacity-dim));
}

.tournament-footer .quiz-btn {
  width: auto;
  padding: var(--spacing-sm) var(--spacing-lg);
}

.tournament-seen-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-family: var(--font-family);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-nav);
  cursor: pointer;
  transition: color var(--transition);
  padding: 8px 0;
}

.tournament-seen-btn:hover {
  color: rgba(255, 255, 255, var(--opacity-secondary));
}

/* ── Champion fullview split ── */
.tournament-champion-fullview {
  max-width: 100% !important;
  width: 100% !important;
  height: 100%;
  padding: 0;
  border: none !important;
}

.tournament-champion-fullview .quiz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
}

.tournament-champion-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
}

.tournament-champion-left {
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
  border-right: 1px solid rgba(255, 255, 255, var(--opacity-border));
}

.tournament-champion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.tournament-champion-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.tournament-champion-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-2xl);
  overflow-y: auto;
}

.tournament-champion-right .quiz-result-header {
  text-align: left;
  margin-bottom: var(--spacing-sm);
}

.tournament-champion-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-regular);
  letter-spacing: var(--letter-spacing-tight);
  color: rgba(255, 255, 255, var(--opacity-primary));
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
}

.tournament-champion-meta {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  margin-bottom: var(--spacing-xs);
}

.tournament-champion-vibe {
  font-size: var(--font-size-base); /* vibe tier: one size everywhere — matches body */
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-style: italic;
  margin-bottom: var(--spacing-lg);
}

.tournament-champion-sub {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, var(--opacity-quiet));
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin-bottom: var(--spacing-xl);
}

.tournament-champion-right .quiz-buttons {
  margin-bottom: var(--spacing-xl);
}

.tournament-champion-right .bracket-overview {
  border-top: 1px solid rgba(255, 255, 255, var(--opacity-border));
  padding-top: var(--spacing-lg);
}

/* Visual Bracket Overview — fixed-geometry tree, SVG connector ducts.
   Match positions come inline from renderBracketOverview (44px matches, 52px pitch). */
.bracket-overview {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: var(--spacing-sm);
  overflow-x: auto;
  /* flex child of the 100vh quiz column: without this it collapses
     and hides most of the bracket instead of letting the modal scroll */
  flex-shrink: 0;
  scrollbar-width: none;
}

.bracket-overview::-webkit-scrollbar {
  display: none;
}

.bracket-col {
  position: relative;
  width: 104px;
  flex-shrink: 0;
}

.bracket-col-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  line-height: 12px;
  font-size: var(--font-size-2xs);
  color: rgba(255, 255, 255, var(--opacity-quiet));
  text-align: center;
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  font-weight: var(--font-regular);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bracket-duct {
  flex-shrink: 0;
  display: block;
}

.bracket-duct path {
  fill: none;
  stroke: rgba(255, 255, 255, var(--opacity-muted));
  stroke-width: 1;
}

.bracket-match {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  overflow: hidden;
}

/* 16-pool first column: 8 matches compress to 44px so the tree fits 900px */
.bracket-col-dense .bracket-match {
  height: 44px;
}

.bracket-match.solo {
  height: 30px;
}

/* Fully-empty future matches: ghost boxes, half the border weight —
   the tree's shape stays legible without competing with played rounds */
.bracket-match.ghost {
  border-color: rgba(255, 255, 255, var(--opacity-faint));
}

.bracket-match.ghost .bracket-slot {
  border-bottom-color: rgba(255, 255, 255, var(--opacity-ghost));
}

@keyframes bracketBreathe {
  0%,
  100% {
    border-color: rgba(255, 255, 255, var(--opacity-subtle));
  }
  50% {
    border-color: rgba(255, 255, 255, var(--opacity-border));
  }
}

.bracket-match.active {
  border-color: rgba(255, 255, 255, var(--opacity-subtle));
  animation: bracketBreathe 2.4s ease-in-out infinite;
}

.bracket-match.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, var(--opacity-subtle));
}

.bracket-slot {
  flex: 1;
  min-height: 0;
  display: block;
  line-height: 28px;
  font-size: var(--font-size-sm);
  padding: 0 var(--spacing-sm);
  letter-spacing: var(--letter-spacing-body);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(255, 255, 255, var(--opacity-faint));
}

.bracket-slot:last-child {
  border-bottom: none;
}

.bracket-col-dense .bracket-slot {
  line-height: 20px;
  font-size: var(--font-size-xs);
}

.bracket-slot.won {
  color: rgba(255, 255, 255, var(--opacity-bright));
  background: rgba(255, 255, 255, var(--opacity-faint));
}

.bracket-slot.lost {
  color: rgba(255, 255, 255, var(--opacity-quiet));
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, var(--opacity-dim));
}

.bracket-slot.empty {
  color: rgba(255, 255, 255, var(--opacity-dim));
}

.bracket-slot.champion-slot {
  color: rgba(255, 255, 255, var(--opacity-primary));
  background: rgba(255, 255, 255, var(--opacity-muted));
  font-weight: var(--font-medium);
  text-align: center;
}

/* Layout A: matchup left, bracket always visible right (stacks on mobile) */
.tournament-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.tournament-main {
  min-width: 0;
}

.tournament-side {
  min-width: 0;
  overflow-x: auto;
}

/* Mobile */

/* ── Mode Label (shared across all modes) ── */
.quiz-mode-label {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, var(--opacity-quiet));
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-weight: var(--font-regular);
}

/* ══════════════════════════════════════
   TODAY'S PULL
   ══════════════════════════════════════ */
.pull-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  padding: var(--spacing-xl) 0;
}

.pull-card-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.pull-card-area .tarot-card {
  width: 180px;
}

.pull-instruction {
  font-family: var(--font-family);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, var(--opacity-quiet));
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  font-weight: var(--font-regular);
  animation: quizFadeIn 0.6s ease 0.4s both;
}

/* ══════════════════════════════════════
   OPENING SCENE
   ══════════════════════════════════════ */
.scene-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scene-dots {
  display: flex;
  gap: 8px;
  margin-bottom: var(--spacing-lg);
}

.scene-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, var(--opacity-border));
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.scene-dot.active {
  background: rgba(255, 255, 255, var(--opacity-tertiary));
  transform: scale(1.3);
}

.scene-dot.done {
  background: rgba(255, 255, 255, var(--opacity-dim));
}

.scene-question {
  font-size: var(--font-size-lg);
  font-weight: var(--font-regular);
  color: rgba(255, 255, 255, var(--opacity-bright));
  letter-spacing: var(--letter-spacing);
  margin-bottom: var(--spacing-lg);
  max-width: 420px;
  line-height: 1.4;
}

.scene-options {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  border-top: 1px solid rgba(255, 255, 255, var(--opacity-faint));
}

.scene-option {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, var(--opacity-faint));
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-regular);
  letter-spacing: var(--letter-spacing-display-tight);
  padding: 16px 0;
  cursor: pointer;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
  text-align: left;
}

.scene-option {
  position: relative;
}

/* Hairline underline sweeps in from the left */
.scene-option::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, var(--opacity-subtle));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.scene-option:hover::after {
  transform: scaleX(1);
}

.scene-option:hover {
  color: rgba(255, 255, 255, var(--opacity-primary));
  padding-left: 6px;
}

/* ══════════════════════════════════════
   YOUR CHART
   ══════════════════════════════════════ */
.chart-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chart-paths {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  border-top: 1px solid rgba(255, 255, 255, var(--opacity-faint));
}

.chart-paths .scene-option.skip {
  color: rgba(255, 255, 255, var(--opacity-subtle));
  font-style: italic;
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 420px;
  margin: var(--spacing-lg) 0;
  background: rgba(255, 255, 255, var(--opacity-ghost));
}

.zodiac-cell {
  background: var(--bg-color);
  border: none;
  padding: 16px 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
}

.zodiac-cell:hover {
  background: rgba(255, 255, 255, var(--opacity-faint));
}

.zodiac-cell:hover .zodiac-symbol {
  transform: translateY(-3px);
  color: rgba(255, 255, 255, var(--opacity-bright));
}

.zodiac-symbol {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease;
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  line-height: 1;
}

.zodiac-name {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.chart-symbol-large {
  font-size: var(--font-size-3xl);
  color: rgba(255, 255, 255, var(--opacity-quiet));
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.chart-element-line {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
}

.chart-reading {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: var(--spacing-md);
}

.chart-tarot-line {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.chart-season-cross {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, var(--opacity-quiet));
  margin-bottom: var(--spacing-md);
}

.chart-birthday-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
  max-width: 320px;
  margin: var(--spacing-lg) 0;
  text-align: left;
}

.chart-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-label {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, var(--opacity-tertiary));
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.chart-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, var(--opacity-border));
  color: var(--text-primary);
  padding: 8px 0;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}

.chart-input:focus {
  border-bottom-color: rgba(255, 255, 255, var(--opacity-subtle));
}
