:root {
  --bg: #120f0c;
  --bg-soft: #1d1813;
  --panel: rgba(31, 23, 18, 0.9);
  --panel-strong: rgba(43, 30, 22, 0.94);
  --ink: #f7efe1;
  --muted: #cab9a4;
  --line: rgba(255, 241, 219, 0.14);
  --accent: #ff5a36;
  --accent-deep: #c83216;
  --gold: #ffbe63;
  --green: #7fe0b3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --display: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium",
    sans-serif;
  --body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 90, 54, 0.15), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 190, 99, 0.1), transparent 26%),
    linear-gradient(180deg, #140f0a 0%, #0e0c09 100%);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

main,
.masthead {
  width: min(1380px, calc(100vw - 2rem));
  margin: 0 auto;
}

.masthead {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 1.5rem;
  padding: 2rem 0 1.5rem;
  align-items: end;
  animation: rise-in 700ms ease both;
}

.brand-block h1,
.panel-heading h2,
.manifesto h2,
.preview-frame h3,
.combatant h3,
#match-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-block h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  text-shadow: 0 0 24px rgba(255, 90, 54, 0.25);
}

.eyebrow,
.tiny-label,
.score-label,
.combatant-role {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.tiny-label,
.score-label {
  font-size: 0.72rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  text-transform: uppercase;
}

.lede,
.manifesto p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.masthead-actions,
.match-actions,
.chip-row,
.reaction-grid,
.prediction-labels,
.preview-footer,
.topic-row,
.slip-summary,
.slip-actions,
.queue-topline,
.queue-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.primary-button,
.ghost-button,
.chip-button,
.reaction-button {
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #ff7b46 100%);
  color: #140e09;
  box-shadow: 0 16px 30px rgba(255, 90, 54, 0.2);
}

.ghost-button,
.chip-button,
.reaction-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost-button:hover,
.chip-button:hover,
.reaction-button:hover,
.chip-button.active,
.queue-card.active {
  border-color: rgba(255, 190, 99, 0.45);
  background: rgba(255, 190, 99, 0.08);
}

.full-width {
  width: 100%;
  justify-content: center;
}

.browse-rail {
  display: grid;
  gap: 0.75rem;
  margin: 0 auto 1rem;
  animation: rise-in 820ms ease both;
}

.topic-row {
  align-items: center;
}

.rail-chip {
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-chip.active {
  color: var(--ink);
  border-color: rgba(255, 190, 99, 0.45);
  background: rgba(255, 190, 99, 0.08);
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 auto 1.5rem;
  animation: rise-in 900ms ease both;
}

.score-strip article,
.panel,
.manifesto {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(18, 15, 12, 0.96) 100%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.score-strip article {
  border-radius: 1.35rem;
  padding: 1rem 1.1rem;
}

.score-strip strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
}

.arena-shell,
.composer-grid,
.manifesto-grid,
.flow-shell,
.flow-stage-grid,
.flow-detail-grid,
.ops-checklist,
.flow-steps {
  display: grid;
  gap: 1.25rem;
}

.flow-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.arena-shell {
  grid-template-columns: 0.92fr 1.4fr 0.95fr;
  align-items: start;
}

.flow-shell {
  grid-template-columns: 0.9fr 1.45fr 0.85fr;
  margin: 0 auto 1.5rem;
  align-items: start;
  animation: rise-in 980ms ease both;
}

.flow-map,
.flow-stage-panel,
.flow-ops-panel {
  min-height: 100%;
}

.flow-steps {
  grid-template-columns: 1fr;
}

.flow-step-button {
  display: grid;
  gap: 0.5rem;
  text-align: left;
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.flow-step-button.active,
.flow-step-button:hover {
  border-color: rgba(255, 190, 99, 0.45);
  background: rgba(255, 190, 99, 0.08);
}

.flow-step-button strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-step-button p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.flow-stage-grid {
  grid-template-columns: 1.2fr 0.8fr;
  margin-bottom: 1rem;
}

.flow-detail-grid {
  grid-template-columns: repeat(3, 1fr);
}

.flow-card {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.flow-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.flow-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.flow-list article {
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 241, 219, 0.06);
}

.flow-list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-list p,
.ops-checklist p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-pill {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 90, 54, 0.1);
  border: 1px solid rgba(255, 90, 54, 0.2);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-checklist article {
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.panel {
  border-radius: 1.6rem;
  padding: 1.25rem;
}

.panel-heading {
  margin-bottom: 1rem;
}

.queue-list,
.sideline-thread,
.rounds-grid {
  display: grid;
  gap: 0.85rem;
}

.queue-card {
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.queue-card h3,
.round-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
}

.queue-topline,
.queue-sides {
  justify-content: space-between;
  align-items: center;
}

.queue-topline {
  margin-bottom: 0.55rem;
}

.queue-topline .tiny-label:last-child,
.queue-sides span:last-child {
  color: var(--muted);
}

.queue-sides {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 241, 219, 0.08);
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.queue-card p,
.round-card p,
.sideline-post p,
.spectator-rules li,
.preview-stake span,
.preview-frame p,
.combatant p {
  margin: 0;
  color: var(--muted);
}

.queue-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-stage {
  display: grid;
  gap: 1rem;
}

.match-marquee,
.match-meta,
.combatants {
  display: grid;
  gap: 1rem;
}

.match-marquee {
  grid-template-columns: 1fr auto;
  align-items: end;
}

#match-claim {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.timer-block {
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 190, 99, 0.14), rgba(255, 190, 99, 0.02));
  border: 1px solid rgba(255, 190, 99, 0.25);
  min-width: 172px;
}

.timer-block p,
.match-meta strong,
.preview-stake strong {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.combatants {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.combatant,
.pulse-card,
.sideline-post,
.round-card,
.preview-frame,
.slip-leg {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.combatant h3 {
  font-size: 1.35rem;
}

.versus-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 99, 0.25);
  background: radial-gradient(circle, rgba(255, 90, 54, 0.18), transparent 70%);
  font-family: var(--display);
  letter-spacing: 0.1em;
}

.match-meta {
  grid-template-columns: repeat(4, 1fr);
}

.rounds-grid {
  grid-template-columns: repeat(3, 1fr);
}

.round-card h3 {
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prediction-bar {
  margin: 0.65rem 0;
  height: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#prediction-fill {
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  transition: width 240ms ease;
}

.prediction-labels,
.preview-footer {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

.reaction-grid {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.reaction-button {
  display: grid;
  gap: 0.4rem;
  text-align: left;
}

.reaction-button strong {
  font-size: 1.15rem;
}

.card-slip {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.slip-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.slip-summary article {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.slip-summary strong {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.slip-list {
  display: grid;
  gap: 0.8rem;
}

.slip-leg {
  display: grid;
  gap: 0.5rem;
}

.slip-leg header,
.slip-leg footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.slip-leg header {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.slip-leg footer {
  color: var(--muted);
  font-size: 0.88rem;
}

.slip-leg button {
  border: 1px solid rgba(255, 90, 54, 0.2);
  background: rgba(255, 90, 54, 0.08);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slip-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.crowd-heading {
  margin-top: 0.2rem;
}

.sideline-post {
  animation: rise-in 320ms ease both;
}

.sideline-post header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.spectator-rules ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.composer-shell {
  width: min(1380px, calc(100vw - 2rem));
  margin: 1.5rem auto;
}

.composer-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.composer-form {
  display: grid;
  gap: 1rem;
}

label,
fieldset {
  display: grid;
  gap: 0.6rem;
  border: 0;
  margin: 0;
  padding: 0;
}

legend,
label {
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

textarea,
input {
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 136px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.preview-card {
  background: linear-gradient(180deg, var(--panel-strong) 0%, rgba(19, 15, 12, 0.96) 100%);
}

.preview-frame {
  display: grid;
  gap: 1rem;
  min-height: 100%;
}

.preview-badge {
  justify-self: start;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 190, 99, 0.12);
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-frame h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.preview-stake {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.manifesto {
  width: min(1380px, calc(100vw - 2rem));
  margin: 1.5rem auto 2rem;
  padding: 1.25rem;
  border-radius: 1.6rem;
  animation: rise-in 1100ms ease both;
}

.manifesto-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.manifesto h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.94;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 1100px) {
  .masthead,
  .arena-shell,
  .flow-shell,
  .composer-grid,
  .manifesto-grid,
  .score-strip,
  .field-row,
  .match-meta,
  .rounds-grid,
  .slip-summary,
  .flow-stage-grid,
  .flow-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .versus-mark {
    justify-self: center;
  }

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

@media (max-width: 720px) {
  .masthead,
  main,
  .composer-shell,
  .manifesto {
    width: min(100vw - 1rem, 100%);
  }

  .masthead {
    padding-top: 1rem;
  }

  .brand-block h1 {
    font-size: 4rem;
  }

  .panel,
  .manifesto,
  .score-strip article {
    border-radius: 1.2rem;
  }

  .match-marquee {
    grid-template-columns: 1fr;
  }

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