:root {
  --bg: #070707;
  --panel: #111111;
  --panel-2: #171717;
  --line: #2a2a2a;
  --ink: #f5f5ef;
  --muted: #a3a39c;
  --team-a: #f5ff32;
  --team-a-deep: #cdd700;
  --team-b: #ff394f;
  --team-b-deep: #d9002c;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(245,255,50,.05), transparent 24rem),
    radial-gradient(circle at 80% 0%, rgba(255,57,79,.05), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input { font: inherit; }

button {
  cursor: pointer;
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hidden { display: none !important; }

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(16px, env(safe-area-inset-left));
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7,7,7,.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  letter-spacing: -.05em;
  width: max-content;
}

.brand-mark {
  background: var(--white);
  color: var(--black);
  padding: 5px 7px;
  line-height: 1;
  transform: rotate(-2deg);
}

.brand-word {
  font-size: 18px;
}

.topbar-live {
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff2440;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,36,64,.65);
  animation: livePulse 1.35s infinite;
}

.icon-btn {
  justify-self: end;
  border: 1px solid #383838;
  background: transparent;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  padding: 10px 12px;
}

.hero-intro {
  padding: 42px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  font: 800 11px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  color: #b2b2ab;
}

.hero-intro h1,
.section-head h2,
.consequence h2,
.share-banner h2,
.next-clash h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: .89;
  letter-spacing: -.07em;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-intro h1 span { color: var(--team-a); }

.hero-rule {
  min-width: 300px;
  border-left: 4px solid var(--white);
  padding: 9px 0 9px 16px;
  display: grid;
  gap: 4px;
}

.hero-rule strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.hero-rule span {
  color: var(--muted);
  font-size: 13px;
}

.battle-stage {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(245,255,50,.035) 0 50%, rgba(255,57,79,.035) 50% 100%),
    #0a0a0a;
}

.battle-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 70%);
}

.battle-bg-text {
  position: absolute;
  top: 7%;
  font-size: min(20vw, 280px);
  font-weight: 1000;
  letter-spacing: -.1em;
  opacity: .018;
  user-select: none;
  pointer-events: none;
}

.battle-bg-left { left: -4vw; }
.battle-bg-right { right: -2vw; }

.arena-grid {
  position: relative;
  z-index: 2;
  padding: 28px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.team-card {
  border: 1px solid #303030;
  background: rgba(13,13,13,.88);
  padding: 20px;
  min-width: 0;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.team-card.leading {
  box-shadow: inset 0 0 0 1px currentColor, 0 0 45px rgba(255,255,255,.03);
}

.team-a.leading { color: var(--team-a); border-color: rgba(245,255,50,.75); }
.team-b.leading { color: var(--team-b); border-color: rgba(255,57,79,.75); }

.team-card.hit { animation: teamHit .32s ease; }

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

.team-kicker,
.cannon-kicker {
  margin: 0 0 4px;
  color: #8f8f89;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
}

.team-card h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: .8;
  letter-spacing: -.07em;
  font-weight: 1000;
}

.team-score {
  text-align: right;
  display: grid;
}

.team-score span {
  font: 900 clamp(24px, 4vw, 42px)/.9 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.06em;
}

.team-score small {
  margin-top: 8px;
  color: #85857f;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}

.fire-btn {
  border: 0;
  width: 100%;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-weight: 950;
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, filter .12s ease;
}

.fire-btn:hover { filter: brightness(1.04); transform: translateY(-2px); }
.fire-btn:active { transform: translateY(1px) scale(.993); }

.fire-a { background: var(--team-a); color: #050505; }
.fire-b { background: var(--team-b); color: #fff; }

.fire-btn-main {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -.055em;
  line-height: .9;
}

.fire-btn-sub {
  margin-top: 6px;
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}

.fire-btn::after {
  content: "";
  position: absolute;
  inset: -50% 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.34), transparent 65%);
  transform: translateX(-130%);
}

.fire-btn:hover::after { animation: buttonSweep .7s ease; }

.team-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #aaa9a1;
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.scoreboard-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  border: 1px solid #303030;
  background: #0f0f0f;
}

.scoreboard-strip > div {
  padding: 14px 18px;
  display: grid;
  gap: 5px;
}

.scoreboard-strip > div:not(:last-child) { border-right: 1px solid #2b2b2b; }

.timer-label,
.heat-label,
.viewer-label {
  color: #85857f;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
}

.scoreboard-strip strong {
  font: 900 clamp(18px, 3.4vw, 34px)/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.04em;
}

.timer-block strong.last-minute { color: var(--team-b); animation: warningPulse .9s infinite; }

.territory-wrap {
  grid-column: 1 / -1;
  border: 1px solid #303030;
  background: #0d0d0d;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.territory-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.territory-name {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}

.territory-name strong { font-size: 26px; letter-spacing: -.05em; }
.territory-name.right { justify-content: flex-end; }
.territory-name.left strong { color: var(--team-a); }
.territory-name.right strong { color: var(--team-b); }

.territory-status {
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  color: #b6b6af;
  padding: 8px 10px;
  border: 1px solid #303030;
  background: #090909;
}

.territory {
  height: 130px;
  display: flex;
  position: relative;
  overflow: hidden;
  border: 2px solid #050505;
  background: #151515;
}

.territory-side {
  height: 100%;
  transition: width .34s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}

.territory-side::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.45) 0 8px, transparent 8px 18px);
}

.territory-a { width: 50.1%; background: var(--team-a); }
.territory-b { width: 49.9%; background: var(--team-b); }

.territory-midline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50.1%;
  width: 4px;
  transform: translateX(-2px);
  background: #fff;
  box-shadow: 0 0 24px rgba(255,255,255,.65);
  transition: left .34s cubic-bezier(.2,.8,.2,1);
  z-index: 3;
}

.territory-midline span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: #050505;
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 9px;
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.territory-pulse {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  left: 50%;
  pointer-events: none;
  z-index: 2;
}

.territory-pulse.active {
  animation: territoryShock .5s ease;
}

.impact-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 12;
  overflow: hidden;
}

.impact-text {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) scale(.8) rotate(-2deg);
  font-weight: 1000;
  font-size: clamp(38px, 8vw, 94px);
  letter-spacing: -.07em;
  line-height: .85;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.6);
  animation: impactPop .85s ease forwards;
}

.impact-text.team-a { color: var(--team-a); }
.impact-text.team-b { color: var(--team-b); }
.impact-text.system { color: #fff; }

.cannon-zone {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cannon-card {
  border: 1px solid #303030;
  background: #0e0e0e;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.cannon-card.firing { animation: cannonCardFire .75s ease; }

.cannon-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.cannon-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.04em;
}

.cannon-title-row > strong {
  font: 950 30px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cannon-a .cannon-title-row > strong { color: var(--team-a); }
.cannon-b .cannon-title-row > strong { color: var(--team-b); }

.cannon-track {
  height: 15px;
  background: #242424;
  margin: 15px 0 12px;
  overflow: hidden;
  border: 1px solid #323232;
}

.cannon-fill {
  height: 100%;
  transition: width .25s ease;
}

.cannon-a .cannon-fill { background: var(--team-a); }
.cannon-b .cannon-fill { background: var(--team-b); }

.charge-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #414141;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.charge-btn:hover { background: #181818; border-color: #666; }
.charge-btn span { color: #fff; }

.cannon-note {
  margin: 11px 0 0;
  color: #81817b;
  font-size: 11px;
  line-height: 1.45;
}

.broadcast,
.consequence,
.archive,
.next-clash {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 62px);
}

.broadcast-status {
  text-align: right;
  color: #a8a8a1;
  font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ff2440;
  color: white;
  padding: 7px 9px;
  font-weight: 950;
}

.live-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.broadcast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, .7fr);
  gap: 14px;
}

.broadcast-player {
  min-height: 420px;
  grid-row: span 2;
  border: 1px solid #343434;
  background:
    radial-gradient(circle at 28% 50%, rgba(245,255,50,.16), transparent 28%),
    radial-gradient(circle at 74% 50%, rgba(255,57,79,.16), transparent 28%),
    #090909;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.broadcast-player::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.07) 3px 4px);
  pointer-events: none;
}

.player-overlay-top {
  position: absolute;
  top: 0;
  inset-inline: 0;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  z-index: 2;
}

.player-battle {
  width: min(90%, 640px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.player-team {
  display: grid;
  gap: 8px;
}

.player-team small {
  font: 900 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.player-team strong {
  font: 1000 clamp(54px, 8vw, 104px)/.8 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.09em;
}

.player-a { color: var(--team-a); }
.player-b { color: var(--team-b); text-align: right; }
.player-vs {
  color: #fff;
  font: 950 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid #555;
  padding: 10px;
  transform: rotate(-3deg);
}

.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  white-space: nowrap;
  background: #f4f4ef;
  color: #050505;
  border-top: 1px solid white;
  height: 38px;
  display: flex;
  align-items: center;
  z-index: 3;
}

.ticker-track {
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  animation: tickerMove 22s linear infinite;
  padding-left: 100%;
}

.activity-panel,
.chat-panel {
  border: 1px solid #343434;
  background: #0d0d0d;
  min-height: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 13px;
  border-bottom: 1px solid #2b2b2b;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.panel-head > :last-child { color: #777772; }

.pulse-label {
  position: relative;
  padding-left: 10px;
}

.pulse-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #32ff85;
}

.activity-list {
  height: 194px;
  overflow: auto;
  scrollbar-width: thin;
}

.activity-item {
  padding: 10px 12px;
  border-bottom: 1px solid #1e1e1e;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  font-size: 11px;
}

.activity-item .activity-icon { font-size: 12px; }
.activity-item strong { font-weight: 850; }
.activity-item time {
  color: #6f6f6a;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.activity-item.a strong { color: var(--team-a); }
.activity-item.b strong { color: var(--team-b); }
.activity-item.system strong { color: #fff; }

.chat-panel { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }

.chat-list {
  height: 152px;
  overflow: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

.chat-message {
  padding: 4px 11px;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
}

.chat-message strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-right: 6px;
  font-size: 10px;
}

.chat-message.team-a strong { color: var(--team-a); }
.chat-message.team-b strong { color: var(--team-b); }
.chat-message.me strong { color: #fff; text-decoration: underline; }

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid #2a2a2a;
}

.chat-form input {
  border: 0;
  background: #101010;
  color: #fff;
  min-width: 0;
  padding: 11px;
}

.chat-form button {
  border: 0;
  border-left: 1px solid #2a2a2a;
  background: #181818;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 0 14px;
}

.consequence {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 38px;
  align-items: start;
  border-top: 1px solid #202020;
}

.consequence h2 { font-size: clamp(38px, 5.8vw, 70px); }
.consequence-main > p:not(.eyebrow) {
  color: #a5a59d;
  max-width: 690px;
  font-size: 16px;
  line-height: 1.65;
}

.text-btn {
  margin-top: 14px;
  border: 0;
  border-bottom: 1px solid #666;
  padding: 0 0 5px;
  background: transparent;
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.consequence-proof {
  border: 1px solid #343434;
  background: #0d0d0d;
  padding: 16px;
}

.proof-label {
  font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  color: #888882;
  margin-bottom: 12px;
}

.takeover-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px;
  background: var(--team-b);
  color: white;
}

.takeover-crown { font-size: 38px; }

.takeover-preview div { display: grid; gap: 5px; }
.takeover-preview small {
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.takeover-preview strong {
  font-size: 22px;
  letter-spacing: -.04em;
  line-height: 1;
}
.takeover-preview span:last-child {
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.reach-card {
  margin-top: 12px;
  padding: 15px;
  background: #151515;
  border: 1px solid #282828;
  display: grid;
  gap: 5px;
}
.reach-card span,
.reach-card small {
  color: #85857f;
  font: 800 9px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.reach-card strong {
  font: 950 42px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.06em;
}

.louder-line {
  margin-top: 12px;
  border: 1px dashed #3d3d3d;
  padding: 14px;
  text-align: center;
  font: 900 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.reinforcements {
  background: #efefe9;
  color: #050505;
  border-block: 1px solid #fff;
}

.share-banner {
  min-height: 270px;
  padding-block: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.share-banner .eyebrow { color: #585853; }
.share-banner h2 { font-size: clamp(38px, 6vw, 74px); }
.share-banner p:last-child { color: #5f5f59; margin-bottom: 0; }

.share-main-btn {
  border: 0;
  background: #050505;
  color: #fff;
  padding: 20px 22px;
  min-width: 260px;
  min-height: 68px;
  font: 950 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.archive-count {
  color: #777771;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.archive-card {
  border: 1px solid #303030;
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
}

.archive-winner {
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  color: var(--team-a);
}

.archive-card h3 {
  margin: 24px 0 auto;
  font-size: clamp(27px, 4vw, 46px);
  line-height: .94;
  letter-spacing: -.05em;
}

.archive-score {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  color: #888881;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.next-clash {
  border-top: 1px solid #262626;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}

.next-clash h2 { font-size: clamp(36px, 6vw, 74px); }
.next-clash h2 span { color: #666; font-size: .45em; vertical-align: middle; }

.secondary-btn {
  border: 1px solid #565656;
  background: transparent;
  padding: 16px 18px;
  min-width: 150px;
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.footer {
  border-top: 1px solid #282828;
  padding-block: 24px 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #686862;
  font: 800 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(470px, 100%);
  background: #f4f4ef;
  color: #090909;
  border: 1px solid white;
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  animation: modalIn .18s ease;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 28px;
  line-height: 1;
}

.modal h2 {
  margin: 13px 0 8px;
  font-size: 38px;
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.payment-team-badge,
.ad-label {
  display: inline-flex;
  background: #0b0b0b;
  color: #fff;
  font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  padding: 7px 8px;
}

.payment-team-badge.team-a { background: var(--team-a); color: #050505; }
.payment-team-badge.team-b { background: var(--team-b); color: #fff; }

.payment-copy { color: #575750; font-size: 14px; }

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.wallet-btn {
  border: 1px solid #bebeb8;
  background: white;
  color: #050505;
  min-height: 52px;
  font-weight: 850;
}

.wallet-btn.active {
  border: 2px solid #050505;
}

.wallet-apple span { font-size: 21px; }
.gpay { font-weight: 1000; }

.checkout-sheet {
  border-block: 1px solid #cccac2;
  padding-block: 10px;
  display: grid;
  gap: 8px;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.checkout-line.muted { color: #6f6f69; font-weight: 700; }

.confirm-pay-btn {
  margin-top: 18px;
  width: 100%;
  min-height: 58px;
  border: 0;
  background: #070707;
  color: #fff;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
}

.confirm-pay-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.mock-note {
  display: block;
  text-align: center;
  margin-top: 9px;
  color: #777770;
  font-size: 10px;
}

.fake-ad-player {
  border: 1px solid #b7b7b2;
  margin-top: 18px;
  background: #0a0a0a;
  color: #fff;
}

.ad-brand {
  padding: 9px;
  border-bottom: 1px solid #333;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #8b8b85;
  letter-spacing: .1em;
}

.ad-visual {
  min-height: 210px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ad-visual strong {
  position: relative;
  z-index: 2;
  font-size: 36px;
  line-height: .85;
  letter-spacing: -.06em;
}

.ad-shape {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  filter: blur(1px);
}
.ad-shape-one { background: var(--team-a); left: -50px; top: 20px; }
.ad-shape-two { background: var(--team-b); right: -55px; bottom: 4px; }

.ad-timer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #333;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ad-timer-line strong { font-size: 20px; }

.share-modal { width: min(600px, 100%); }

.share-card-preview {
  min-height: 260px;
  padding: 18px;
  background:
    linear-gradient(100deg, rgba(245,255,50,.94) 0 50%, rgba(255,57,79,.94) 50% 100%);
  color: #050505;
  border: 4px solid #050505;
  display: grid;
  align-content: space-between;
  margin-top: 18px;
}

.share-card-brand {
  font: 950 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.03em;
}

.share-card-title {
  font-weight: 1000;
  font-size: clamp(38px, 7vw, 66px);
  line-height: .84;
  letter-spacing: -.07em;
  max-width: 90%;
}

.share-card-score {
  font: 950 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.share-card-cta {
  justify-self: end;
  background: #050505;
  color: #fff;
  padding: 8px 10px;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.share-actions button {
  border: 1px solid #bdbdb6;
  background: #fff;
  color: #050505;
  padding: 12px 8px;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.consequence-modal { width: min(680px, 100%); }
.consequence-modal .eyebrow { color: #666660; }
.scale-list {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid #c4c4bc;
}
.scale-list div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #c4c4bc;
}
.scale-list strong {
  font: 900 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.scale-list span {
  color: #4f4f49;
  font-size: 13px;
  line-height: 1.45;
}
.modal-foot { color: #64645d; font-size: 12px; line-height: 1.45; }

/* TOAST */
.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100% - 32px));
}

.toast {
  padding: 13px 14px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font: 800 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  animation: toastIn .2s ease;
}

.toast.a { border-left: 4px solid var(--team-a); }
.toast.b { border-left: 4px solid var(--team-b); }
.toast.success { border-left: 4px solid #32ff85; }

/* END STATE */
.end-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow: auto;
  background: #070707;
  color: #fff;
}

.end-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.08) 3px 4px);
}

.end-close {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 2;
  border: 1px solid #555;
  background: rgba(7,7,7,.8);
  color: #fff;
  padding: 12px 14px;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.end-content {
  width: min(1000px, calc(100% - 34px));
  margin: 0 auto;
  padding: 72px 0 80px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.end-content > h1 {
  margin: 12px 0;
  font-size: clamp(62px, 13vw, 170px);
  line-height: .78;
  letter-spacing: -.09em;
  font-weight: 1000;
}

.winner-message {
  margin: 28px auto 40px;
  max-width: 760px;
  font-weight: 900;
  font-size: clamp(21px, 3.5vw, 34px);
  line-height: 1;
  letter-spacing: -.04em;
}

.final-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  border-block: 1px solid #333;
  padding: 22px 0;
}

.final-score > div:not(.final-vs) {
  display: grid;
  gap: 6px;
}

.final-score span {
  font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.final-score strong {
  font: 1000 clamp(40px, 7vw, 78px)/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.08em;
}

.final-score > div:first-child strong { color: var(--team-a); }
.final-score > div:last-child strong { color: var(--team-b); }

.final-vs {
  color: #777;
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #333;
}

.stats-grid div {
  padding: 20px 10px;
  display: grid;
  gap: 8px;
}
.stats-grid div:not(:last-child) { border-right: 1px solid #333; }
.stats-grid span {
  color: #777;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.stats-grid strong {
  font: 950 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.05em;
}

.winner-takeover {
  margin-top: 44px;
  padding: 28px;
  background: #f4f4ef;
  color: #050505;
  text-align: left;
}

.takeover-tag {
  display: inline-flex;
  background: #050505;
  color: #fff;
  padding: 7px 8px;
  font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
}

.winner-takeover h2 {
  margin: 18px 0 6px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .86;
  letter-spacing: -.07em;
}

.winner-takeover p {
  color: #565650;
  max-width: 650px;
}

.aftermath-row {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid #aaa;
  display: grid;
  gap: 5px;
}
.aftermath-row span {
  font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  color: #666;
}
.aftermath-row strong { font-size: 15px; }

.end-next {
  margin-top: 28px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.end-next span {
  color: #777;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.end-next h3 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -.05em;
}
.end-next button {
  margin-top: 10px;
  border: 1px solid #555;
  background: transparent;
  padding: 14px 16px;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* DEBUG */
.debug-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 140;
  height: 100dvh;
  width: min(360px, 92vw);
  background: #101010;
  border-left: 1px solid #333;
  box-shadow: -20px 0 50px rgba(0,0,0,.45);
  transform: translateX(100%);
  transition: transform .22s ease;
  overflow: auto;
}

.debug-drawer.open { transform: translateX(0); }

.debug-head {
  padding: 16px;
  border-bottom: 1px solid #2c2c2c;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.debug-head div { display: grid; gap: 4px; }
.debug-head strong {
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.debug-head span {
  color: #73736e;
  font-size: 10px;
}
.debug-head button {
  border: 0;
  background: transparent;
  font-size: 24px;
}

.debug-section {
  padding: 16px;
  border-bottom: 1px solid #252525;
  display: grid;
  gap: 9px;
}

.debug-label {
  color: #767671;
  font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
}

.debug-section button {
  min-height: 40px;
  border: 1px solid #3a3a3a;
  background: #181818;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.debug-section button:hover { background: #222; }

.debug-grid,
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.segmented { grid-template-columns: repeat(3, 1fr); }
.segmented button.active {
  background: #f2f2ed;
  color: #050505;
}

.debug-section button.danger {
  background: #b40025;
  border-color: #e10032;
}

/* ANIMATIONS */
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,36,64,.55); }
  50% { box-shadow: 0 0 0 6px rgba(255,36,64,0); }
}

@keyframes buttonSweep {
  to { transform: translateX(130%); }
}

@keyframes teamHit {
  0% { transform: translateX(0); }
  35% { transform: translateX(var(--kick, 4px)); }
  70% { transform: translateX(calc(var(--kick, 4px) * -.4)); }
  100% { transform: translateX(0); }
}

@keyframes impactPop {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.55) rotate(-3deg); }
  18% { opacity: 1; transform: translate(-50%,-50%) scale(1.08) rotate(-1deg); }
  72% { opacity: 1; transform: translate(-50%,-54%) scale(1) rotate(-1deg); }
  100% { opacity: 0; transform: translate(-50%,-66%) scale(.96) rotate(-1deg); }
}

@keyframes territoryShock {
  0% { width: 0; opacity: 0; box-shadow: 0 0 0 rgba(255,255,255,0); }
  30% { opacity: 1; box-shadow: 0 0 80px 35px rgba(255,255,255,.48); }
  100% { width: 0; opacity: 0; box-shadow: 0 0 180px 90px rgba(255,255,255,0); }
}

@keyframes cannonCardFire {
  0% { transform: scale(1); }
  20% { transform: scale(1.012); filter: brightness(1.35); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes warningPulse {
  0%,100% { opacity: 1; }
  50% { opacity: .42; }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 860px) {
  .hero-intro {
    align-items: start;
    flex-direction: column;
  }

  .hero-rule { min-width: 0; width: 100%; }

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

  .broadcast-player { grid-row: auto; min-height: 360px; }

  .activity-list { height: 180px; }
  .chat-list { height: 180px; }

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

  .share-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-main-btn { width: 100%; }
}

@media (max-width: 660px) {
  .container { width: min(100% - 22px, 1180px); }

  .topbar {
    height: 58px;
    grid-template-columns: 1fr auto;
  }

  .topbar-live { display: none; }
  .icon-btn { padding: 9px 10px; }

  .hero-intro {
    padding: 28px 0 22px;
  }

  .hero-intro h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .arena-grid {
    padding-top: 11px;
    gap: 8px;
  }

  .team-card {
    padding: 12px;
  }

  .team-card-head {
    display: grid;
    gap: 9px;
    margin-bottom: 12px;
  }

  .team-score { text-align: left; }
  .team-score span { font-size: 24px; }

  .team-card h2 { font-size: clamp(38px, 13vw, 58px); }
  .fire-btn { min-height: 86px; }
  .fire-btn-main { font-size: clamp(24px, 8vw, 35px); }
  .fire-btn-sub { font-size: 9px; }
  .team-meta { font-size: 9px; gap: 6px; flex-direction: column; }

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

  .scoreboard-strip > div:nth-child(2) {
    border-right: 0;
  }

  .scoreboard-strip > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #2b2b2b;
  }

  .scoreboard-strip > div { padding: 11px 12px; }
  .scoreboard-strip strong { font-size: 20px; }

  .territory-wrap { padding: 10px; }

  .territory-head {
    gap: 7px;
    grid-template-columns: 1fr 1fr;
  }

  .territory-status {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    order: -1;
    padding: 6px 8px;
    font-size: 9px;
  }

  .territory-name { grid-row: 2; }
  .territory-name strong { font-size: 19px; }
  .territory { height: 104px; }

  .cannon-zone { gap: 8px; }
  .cannon-card { padding: 12px; }
  .cannon-title-row { align-items: start; flex-direction: column; gap: 8px; }
  .cannon-card h3 { font-size: 18px; }
  .cannon-title-row > strong { font-size: 24px; }
  .charge-btn { padding: 11px 8px; font-size: 9px; }
  .cannon-note { font-size: 9px; }

  .broadcast,
  .consequence,
  .archive,
  .next-clash {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .broadcast-status { justify-items: start; text-align: left; }

  .broadcast-player { min-height: 300px; }
  .player-battle { gap: 8px; width: 94%; }
  .player-team small { font-size: 14px; }
  .player-team strong { font-size: clamp(39px, 14vw, 66px); }
  .player-vs { font-size: 13px; padding: 8px; }

  .consequence-proof { padding: 10px; }

  .share-banner { min-height: 0; }
  .archive-grid { grid-template-columns: 1fr; }

  .next-clash {
    flex-direction: column;
    align-items: flex-start;
  }

  .secondary-btn { width: 100%; }

  .footer {
    flex-direction: column;
    gap: 8px;
  }

  .modal { padding: 19px; }
  .modal h2 { font-size: 32px; }
  .wallet-grid { grid-template-columns: 1fr; }
  .share-actions { grid-template-columns: 1fr 1fr; }
  .scale-list div { grid-template-columns: 1fr; gap: 6px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .stats-grid div:nth-child(-n+2) { border-bottom: 1px solid #333; }
  .winner-takeover { padding: 20px; }

  .end-content { padding-top: 84px; }
}

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