:root {
  --bg: #0b0d12;
  --bg-elevated: #11151d;
  --surface-1: #151a24;
  --surface-2: #1b2331;
  --surface-3: #232d3d;
  --surface-4: #0f141d;
  --text-1: #f4f7fb;
  --text-2: #c1cad8;
  --text-3: #8893a7;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --scripture: #e1b56b;
  --scripture-soft: rgba(225, 181, 107, 0.12);
  --scripture-strong: #f1ce8b;
  --meme: #59d8ff;
  --meme-soft: rgba(89, 216, 255, 0.12);
  --meme-strong: #8ee6ff;
  --heat: #ff6b6b;
  --success: #57d38c;
  --warning: #ffb454;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.32);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --content-width: min(1380px, calc(100% - 40px));
  --battle-width: 820px;
  --motion-fast: 150ms ease;
  --motion-mid: 190ms ease;
  --motion-slow: 240ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-1);
  background:
    radial-gradient(circle at 10% 12%, rgba(225, 181, 107, 0.09), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(89, 216, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #080b10 0%, #0b0d12 18%, #0f131a 46%, #090c12 100%);
  font-family: var(--font-ui);
  line-height: 1.6;
  padding: 0 0 calc(88px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.07;
}

body::after {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.05), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.03), transparent 32%);
  opacity: 0.25;
}

body.has-sheet-open {
  overflow: hidden;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.13;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08) 0 0.7px, transparent 1px),
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.05) 0 0.8px, transparent 1.1px),
    radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.06) 0 0.8px, transparent 1px);
  background-size: 170px 170px;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(7, 10, 15, 0.82);
  color: var(--text-1);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(89, 216, 255, 0.95);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #091019;
  transition: top var(--motion-fast);
}

.skip-link:focus {
  top: 16px;
}

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

.section-shell {
  width: var(--content-width);
  margin: 0 auto;
}

.card-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(25, 31, 43, 0.94), rgba(14, 18, 26, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 44%);
  box-shadow: var(--shadow-1);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--text-3);
  font: 600 12px/16px var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition:
    transform var(--motion-fast),
    background-color var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    color var(--motion-fast);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.compact {
  min-height: 38px;
  padding-inline: 0.9rem;
}

.button-primary {
  color: #0d1219;
  font-weight: 700;
  background: linear-gradient(135deg, var(--scripture-strong), #f6dab1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 26px rgba(225, 181, 107, 0.18);
}

.button-secondary {
  color: var(--text-1);
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost,
.button-tertiary {
  color: var(--text-2);
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
}

.button-ghost:hover,
.button-tertiary:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

.arena-topbar {
  position: sticky;
  top: 10px;
  z-index: 60;
  width: min(1440px, calc(100% - 20px));
  margin: 10px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 15, 22, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(225, 181, 107, 0.24);
  background:
    linear-gradient(180deg, rgba(225, 181, 107, 0.18), rgba(225, 181, 107, 0.06)),
    rgba(255, 255, 255, 0.02);
  color: var(--scripture-strong);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.18em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-kicker,
.topbar-label {
  color: var(--text-3);
  font: 600 12px/16px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.topbar-progress-shell {
  display: grid;
  gap: 8px;
}

.topbar-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.topbar-progress-copy strong {
  font-size: 0.98rem;
}

.topbar-progressbar {
  position: relative;
  height: 8px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.topbar-progressbar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--scripture-strong), var(--meme));
}

.topbar-insights {
  display: flex;
  gap: 10px;
}

.topbar-insight {
  min-width: 138px;
  padding: 11px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.topbar-insight span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 4px;
}

.topbar-insight strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.arena-page {
  padding-top: 18px;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-pitch {
  margin: 0;
  max-width: 30ch;
  color: var(--text-2);
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.5;
}

.hero-info-chips,
.meta-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-chip,
.tag-chip,
.filter-chip,
.meta-chip,
.arena-badge,
.vote-chip,
.choice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.info-chip,
.meta-chip,
.tag-chip,
.choice-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.hero-cta-row {
  display: flex;
  gap: 12px;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metric,
.hero-spotlight,
.summary-card,
.panel-card {
  padding: 20px;
}

.hero-spotlight {
  min-height: 164px;
}

.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.summary-head h3,
.panel-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.summary-grid,
.panel-grid,
.metric-grid,
.reveal-grid {
  display: grid;
  gap: 12px;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.summary-stat,
.metric-box {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.summary-stat span,
.metric-box span,
.field-label,
.field-stack label {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 4px;
}

.summary-stat strong,
.metric-box strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.summary-actions,
.filter-actions,
.reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.progress-strip {
  position: relative;
  height: 10px;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.progress-strip span {
  display: block;
  width: min(100%, calc(var(--progress, 0) * 1%));
  height: 100%;
  background: linear-gradient(90deg, var(--scripture), var(--meme));
}

.main-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 18px;
  margin-top: 14px;
  align-items: start;
}

.summary-rail,
.battle-column {
  display: grid;
  gap: 16px;
}

.battle-column {
  position: relative;
  z-index: 2;
  margin-top: -118px;
}

.summary-rail {
  position: sticky;
  top: 102px;
}

.battle-stage {
  display: flex;
  justify-content: center;
}

.battle-card {
  width: min(100%, var(--battle-width));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(20, 25, 36, 0.96), rgba(11, 14, 20, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
  box-shadow: var(--shadow-2);
}

.battle-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.battle-number-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--text-3);
  font: 600 12px/16px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.battle-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.battle-contextline {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

.battle-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 280px;
}

.arena-badge {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.arena-badge.is-bible {
  border-color: rgba(225, 181, 107, 0.32);
  color: var(--scripture-strong);
  background: var(--scripture-soft);
}

.arena-badge.is-meme {
  border-color: rgba(89, 216, 255, 0.32);
  color: var(--meme-strong);
  background: var(--meme-soft);
}

.arena-badge.is-close {
  border-color: rgba(255, 180, 84, 0.35);
  color: var(--warning);
  background: rgba(255, 180, 84, 0.12);
}

.battle-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.battle-nav-copy {
  color: var(--text-3);
  font-size: 13px;
}

.battle-nav-group {
  display: inline-flex;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform var(--motion-fast),
    background-color var(--motion-fast),
    border-color var(--motion-fast);
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.versus-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.battle-choice {
  position: relative;
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform var(--motion-mid),
    border-color var(--motion-mid),
    background-color var(--motion-mid),
    box-shadow var(--motion-mid),
    opacity var(--motion-mid);
}

.battle-choice:hover {
  transform: translateY(-2px);
}

.battle-choice--scripture {
  background:
    linear-gradient(180deg, rgba(225, 181, 107, 0.11), rgba(225, 181, 107, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.battle-choice--meme {
  background:
    linear-gradient(180deg, rgba(89, 216, 255, 0.12), rgba(89, 216, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.battle-choice.is-selected {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.battle-choice--scripture.is-selected {
  border-color: rgba(225, 181, 107, 0.48);
  box-shadow: 0 0 0 1px rgba(225, 181, 107, 0.2), 0 18px 40px rgba(0, 0, 0, 0.24), 0 0 0 8px rgba(225, 181, 107, 0.06);
}

.battle-choice--meme.is-selected {
  border-color: rgba(89, 216, 255, 0.48);
  box-shadow: 0 0 0 1px rgba(89, 216, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.24), 0 0 0 8px rgba(89, 216, 255, 0.06);
}

.battle-choice.is-muted {
  opacity: 0.58;
}

.choice-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.choice-pill {
  font-weight: 700;
}

.choice-pill--scripture {
  border-color: rgba(225, 181, 107, 0.32);
  color: var(--scripture-strong);
  background: var(--scripture-soft);
}

.choice-pill--meme {
  border-color: rgba(89, 216, 255, 0.32);
  color: var(--meme-strong);
  background: var(--meme-soft);
}

.choice-ref {
  color: var(--text-3);
  font: 500 12px/16px var(--font-mono);
}

.choice-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.battle-choice--scripture .choice-title {
  font-family: var(--font-display);
  color: var(--scripture-strong);
}

.battle-choice--meme .choice-title {
  font-family: var(--font-ui);
  color: var(--meme-strong);
}

.choice-copy {
  margin: 0;
  color: var(--text-1);
  font-size: 17px;
  line-height: 1.7;
}

.choice-copy--scripture {
  color: #f5ecd6;
}

.choice-copy--meme {
  color: #eef7ff;
}

.choice-visual {
  margin: 18px 0 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.55;
}

.vs-medallion {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 4px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.96), rgba(8, 11, 17, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.vs-medallion span {
  font: 700 20px/1 var(--font-display);
  letter-spacing: 0.08em;
}

.vs-medallion small {
  color: var(--text-3);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.battle-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.battle-vote-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 48px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform var(--motion-mid),
    border-color var(--motion-mid),
    background-color var(--motion-mid),
    box-shadow var(--motion-mid),
    opacity var(--motion-mid);
}

.battle-vote-button:hover {
  transform: translateY(-1px);
}

.battle-vote-button strong {
  font-size: 17px;
  line-height: 1.2;
}

.battle-vote-button small {
  color: var(--text-3);
  font-size: 12px;
}

.battle-vote-button .hotkey-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font: 700 11px/1 var(--font-mono);
}

.battle-vote-button--scripture:hover,
.battle-vote-button--scripture.is-selected {
  border-color: rgba(225, 181, 107, 0.4);
  background: rgba(225, 181, 107, 0.1);
}

.battle-vote-button--meme:hover,
.battle-vote-button--meme.is-selected {
  border-color: rgba(89, 216, 255, 0.42);
  background: rgba(89, 216, 255, 0.1);
}

.battle-vote-button.is-dimmed,
.battle-vote-button[disabled] {
  opacity: 0.55;
}

.reveal-panel {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 90%),
    rgba(255, 255, 255, 0.02);
}

.reveal-panel.is-locked {
  border-style: dashed;
  opacity: 0.86;
}

.reveal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.vote-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}

.reveal-note,
.judge-note,
.share-line,
.panel-note {
  margin: 0;
  color: var(--text-2);
}

.scorebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.scorebar-track {
  display: grid;
  grid-template-columns: minmax(0, var(--scripture-width)) minmax(0, var(--meme-width));
  min-height: 14px;
}

.scorebar-track::before,
.scorebar-track::after {
  content: "";
  display: block;
}

.scorebar-track::before {
  background: linear-gradient(90deg, var(--scripture), var(--scripture-strong));
}

.scorebar-track::after {
  background: linear-gradient(90deg, var(--meme), var(--meme-strong));
}

.reveal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.judge-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.battle-rail {
  padding: 18px;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.rail-head strong {
  display: block;
  font-size: 15px;
}

.rail-head span {
  color: var(--text-3);
  font-size: 12px;
}

.rail-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rail-chip {
  position: relative;
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: 600 12px/1 var(--font-mono);
  transition:
    transform var(--motion-fast),
    background-color var(--motion-fast),
    border-color var(--motion-fast);
}

.rail-chip:hover {
  transform: translateY(-1px);
}

.rail-chip.is-current {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.rail-chip.is-voted {
  background: rgba(255, 255, 255, 0.08);
}

.rail-chip.is-hot::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--heat);
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.35);
}

.rail-chip.is-hidden-filter {
  opacity: 0.35;
}

.context-panel {
  position: sticky;
  top: 102px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-tabs {
  display: none;
  gap: 8px;
  padding: 12px 22px 0;
  overflow-x: auto;
}

.panel-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

.panel-tab.is-active {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
}

.panel-body {
  padding: 18px 22px 22px;
  display: grid;
  gap: 14px;
}

.panel-close {
  display: none;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

.filter-chip.is-active {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.08);
}

.panel-list {
  padding-left: 18px;
  margin: 0;
  color: var(--text-2);
}

.panel-list li + li {
  margin-top: 10px;
}

.site-footer {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.vote-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  display: none;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(9, 12, 17, 0), rgba(9, 12, 17, 0.86) 28%, rgba(9, 12, 17, 0.98) 100%);
}

.vote-bar-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 14, 20, 0.96);
  box-shadow: var(--shadow-2);
}

.vote-bar-status {
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 13px;
}

.vote-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vote-button-main {
  position: relative;
  min-height: 84px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    opacity var(--motion-fast);
}

.vote-button-main strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.vote-button-main small {
  color: var(--text-3);
  font-size: 12px;
}

.vote-button-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-bottom: 10px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-2);
  font: 700 11px/1 var(--font-mono);
}

.vote-scripture:hover,
.vote-scripture.is-selected {
  border-color: rgba(225, 181, 107, 0.42);
  background: rgba(225, 181, 107, 0.12);
}

.vote-meme:hover,
.vote-meme.is-selected {
  border-color: rgba(89, 216, 255, 0.42);
  background: rgba(89, 216, 255, 0.12);
}

.vote-button-next.is-ready {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.vote-button-main.is-dimmed,
.vote-button-main[disabled] {
  opacity: 0.56;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 110px;
  z-index: 70;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(19, 24, 34, 0.96);
  color: var(--text-1);
  box-shadow: var(--shadow-1);
  transition: opacity var(--motion-mid), transform var(--motion-mid);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

@media (max-width: 1279px) {
  .arena-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .battle-column {
    order: 1;
    margin-top: 0;
  }

  .summary-rail {
    position: static;
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-panel {
    position: static;
    order: 3;
  }
}

@media (max-width: 1023px) {
  .panel-tabs {
    display: flex;
  }

  .versus-stage {
    grid-template-columns: 1fr;
  }

  .vs-medallion {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .arena-topbar {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 12px 12px 10px;
    gap: 10px;
    top: 8px;
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-lockup {
    font-size: 1.1rem;
  }

  .topbar-progress-copy {
    display: grid;
    gap: 4px;
  }

  .topbar-progressbar,
  .topbar-insights {
    display: none;
  }

  .topbar-actions {
    display: flex;
    justify-content: flex-start;
  }

  .topbar-actions > :not(:last-child) {
    display: none;
  }

  .hero-strip {
    gap: 14px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero-pitch {
    max-width: none;
    font-size: 15px;
  }

  .hero-info-chips {
    gap: 8px;
  }

  .hero-side {
    display: none;
  }

  .hero-copy,
  .hero-metric,
  .hero-spotlight,
  .summary-card,
  .panel-card,
  .battle-card {
    padding: 20px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .summary-rail {
    grid-template-columns: 1fr;
  }

  .battle-stage {
    margin-top: -2px;
  }

  .battle-card-head,
  .battle-nav-row,
  .reveal-head,
  .summary-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .battle-badges {
    justify-content: flex-start;
    max-width: none;
  }

  .battle-actions {
    grid-template-columns: 1fr;
  }

  .reveal-grid,
  .summary-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .battle-rail {
    overflow: hidden;
  }

  .rail-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .rail-track::-webkit-scrollbar {
    display: none;
  }

  .rail-chip {
    flex: 0 0 auto;
  }

  .context-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    z-index: 56;
    max-height: min(76vh, 780px);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform var(--motion-slow), opacity var(--motion-slow);
  }

  .context-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .panel-close {
    display: inline-flex;
  }

  .panel-body {
    max-height: calc(76vh - 120px);
    overflow-y: auto;
  }

  .vote-bar {
    display: block;
  }

  .vote-actions {
    grid-template-columns: 1fr 1fr;
  }

  .vote-button-next {
    grid-column: 1 / -1;
  }

  .toast-stack {
    right: 12px;
    left: 12px;
    bottom: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
