@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #f4f1e8;
  --muted: #969a92;
  --panel: #151815;
  --line: #2c302c;
  --acid: #a9e86a;
  --orange: #ff6b35;
  --black: #0b0d0b;
  --page-bg-1: rgba(11, 13, 11, .88);
  --page-bg-2: rgba(11, 13, 11, .96);
  --texture-tint: rgba(169, 232, 106, .04);
  --glow-tint: rgba(169, 232, 106, .09);
  --card-bg: #111411;
  --card-bg-hover: #171a16;
  --card-button-border: #555b53;
  --placeholder: #4f534e;
  --intro-color: #b8bcb4;
  --footer-muted: #686c66;
  --error: #ff8269;
  color-scheme: dark;
}

[data-theme="light"] {
  --ink: #1c1f1b;
  --muted: #5c6058;
  --line: #dcded7;
  --acid: #3f8f4a;
  --black: #f6f5ef;
  --page-bg-1: rgba(246, 245, 239, .92);
  --page-bg-2: rgba(246, 245, 239, .98);
  --texture-tint: rgba(63, 143, 74, .05);
  --glow-tint: rgba(63, 143, 74, .08);
  --card-bg: #ffffff;
  --card-bg-hover: #f1f2ee;
  --card-button-border: #c7cabf;
  --placeholder: #9a9d95;
  --intro-color: #3a3d37;
  --footer-muted: #83867f;
  --error: #c9402a;
  color-scheme: light;
}

/* The replay viewer is a video-player-style surface: keep it on a fixed
   dark palette regardless of page theme so the map, overlays, and colored
   markers stay legible and consistent. */
.replay {
  --ink: #f4f1e8;
  --muted: #969a92;
  --line: #2c302c;
  --panel: #151815;
  --acid: #a9e86a;
  --black: #0b0d0b;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.theme-toggle:hover { color: var(--acid); border-color: var(--acid); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(var(--page-bg-1), var(--page-bg-2)),
    repeating-linear-gradient(120deg, transparent 0 80px, var(--texture-tint) 81px 82px);
  font: 15px/1.55 Inter, sans-serif;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 5%, var(--glow-tint), transparent 28%);
}
main, footer { width: min(1180px, calc(100% - 40px)); margin: auto; }
.hero { padding: 92px 0 75px; max-width: 850px; }
.eyebrow {
  color: var(--acid);
  margin: 0 0 14px;
  font: 700 12px/1 Inter, sans-serif;
  letter-spacing: .2em;
}
h1, h2 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0;
}
h1 { font-size: clamp(64px, 9vw, 112px); line-height: .82; max-width: 820px; }
h1 span { color: transparent; -webkit-text-stroke: 1px var(--acid); }
h2 { font-size: clamp(34px, 5vw, 54px); line-height: 1; }
.intro { color: var(--intro-color); max-width: 570px; margin: 32px 0 38px; font-size: 17px; }
form { max-width: 720px; }
label > span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 9px; }
.search-control { display: flex; border-bottom: 2px solid var(--ink); }
input, button, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.search-control input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 17px 0;
  color: var(--ink);
  background: transparent;
  font: 600 22px "Barlow Condensed", sans-serif;
}
.search-control input::placeholder { color: var(--placeholder); }
.search-control button {
  border: 0;
  padding: 0 23px;
  background: var(--acid);
  color: #10120d;
  font-weight: 700;
  cursor: pointer;
}
.search-control button b { margin-left: 12px; }
button:disabled { opacity: .55; cursor: wait; }
.status { min-height: 24px; color: var(--muted); }
.status[data-kind="error"] { color: var(--error); }
.matches, .replay { padding: 58px 0 85px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 30px; }
.section-heading h2 span { color: var(--acid); }
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  cursor: pointer;
}
.text-button:hover { color: var(--acid); }
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--card-button-border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
}
.share-button:hover { border-color: var(--acid); color: var(--acid); }
.share-button span { font-size: 15px; line-height: 1; }
.highlight-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: #101310;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.highlight-button:hover { filter: brightness(1.08); }
.highlight-button.is-active { box-shadow: 0 0 0 3px rgba(169,232,106,.2); }
.replay-help {
  width: min(720px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(169,232,106,.55);
  background: #101310;
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(0,0,0,.7);
}
.replay-help::backdrop { background: rgba(4,6,4,.76); backdrop-filter: blur(3px); }
.replay-help-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.replay-help-heading .eyebrow { margin-bottom: 6px; }
.replay-help-heading h3 { margin: 0; font: 700 28px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.replay-help-heading button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
}
.replay-help-intro { margin: 0; padding: 18px 24px 6px; color: #c3c8c0; font-size: 13px; }
.replay-help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px 24px 18px; }
.replay-help-grid section { padding: 13px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.replay-help-grid h4 { margin: 0 0 9px; color: var(--acid); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.replay-help-grid p { margin: 5px 0; color: #c3c8c0; font-size: 11px; }
kbd {
  display: inline-block;
  min-width: 21px;
  padding: 1px 5px;
  border: 1px solid #4b5049;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #1b1e1b;
  color: var(--ink);
  font: 600 10px/1.5 Inter, sans-serif;
  text-align: center;
}
.replay-help-tip { margin: 0; padding: 11px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.export-anchor { position: relative; }
.export-anchor > button[data-export-clip] { display: inline-flex; align-items: center; gap: 7px; }
.export-anchor > button[data-export-clip]:disabled { opacity: .4; cursor: not-allowed; }
.export-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  width: min(300px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(223,255,63,.35);
  background: rgba(7,9,7,.97);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.export-panel[hidden] { display: none; }
.export-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: var(--acid); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.export-panel-heading button { width: 21px; height: 21px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; }
.export-note { color: var(--muted); font-size: 11px; margin: 0 0 9px; }
.export-note strong { color: var(--ink); }
.export-duration-control { display: grid; grid-template-columns: auto 1fr 34px; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.export-duration-control input { width: 100%; accent-color: var(--acid); }
.export-duration-control output { color: var(--acid); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.export-duration-presets { display: flex; margin-bottom: 9px; }
.export-duration-presets button {
  flex: 1;
  height: 28px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #1b1e1b;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}
.export-duration-presets button:last-child { border-right: 1px solid var(--line); }
.export-duration-presets button.is-active { border-color: var(--acid); background: var(--acid); color: #101310; }
.export-panel .primary-button {
  display: block;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: #101310;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-sizing: border-box;
}
.export-panel progress { width: 100%; margin: 4px 0 9px; accent-color: var(--acid); }
.export-panel [data-export-cancel] { width: 100%; padding: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.export-panel [data-export-cancel]:hover { color: var(--acid); border-color: var(--acid); }
.export-panel video { display: block; width: 100%; max-height: 280px; margin-bottom: 9px; background: #000; object-fit: contain; }
.export-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.export-result-actions .primary-button { grid-column: 1 / -1; }
.export-result-actions button { padding: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.export-result-actions button:hover { color: var(--acid); border-color: var(--acid); }
.match-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.match-card {
  display: grid;
  grid-template-columns: 64px 90px minmax(180px, 1fr) repeat(3, 85px) 145px;
  align-items: center;
  gap: 20px;
  padding: 22px 25px;
  background: var(--card-bg);
}
.match-card:hover { background: var(--card-bg-hover); }
.match-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  opacity: .85;
}
.match-card:hover .match-thumb { opacity: 1; }
.match-place { font: 800 32px "Barlow Condensed", sans-serif; color: var(--acid); }
.match-place small { display: block; font: 700 9px/1 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--acid); margin-top: 3px; }
.match-card.is-win { box-shadow: inset 3px 0 0 var(--acid); }
.replay-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; align-items: center; }
.match-card h3 { margin: 0; font: 700 23px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.match-card p, .match-stat small { color: var(--muted); margin: 2px 0 0; font-size: 12px; }
.match-stat strong { display: block; font-size: 17px; }
.match-card button {
  border: 1px solid var(--card-button-border);
  color: var(--ink);
  background: transparent;
  padding: 11px 14px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .06em;
}
.match-card button:hover { border-color: var(--acid); color: var(--acid); }
.match-card.is-skeleton .match-thumb,
.match-card.is-skeleton .match-place,
.match-card.is-skeleton h3,
.match-card.is-skeleton p,
.match-card.is-skeleton .match-stat,
.match-card.is-skeleton button {
  border: 0;
  color: transparent;
  background: linear-gradient(100deg, var(--card-bg-hover) 40%, var(--line) 50%, var(--card-bg-hover) 60%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s linear infinite;
}
.match-card.is-skeleton h3 { height: 20px; width: 70%; margin: 0 0 6px; }
.match-card.is-skeleton p { height: 12px; width: 50%; margin: 0; }
.match-card.is-skeleton .match-place { height: 34px; }
.match-card.is-skeleton .match-stat { height: 30px; }
.match-card.is-skeleton button { height: 40px; }
@keyframes skeleton-shimmer { to { background-position: -200% 0; } }
.replay-meta { margin: 8px 0 0; color: var(--muted); }
.replay-grid {
  position: relative;
  display: block;
  padding-right: 340px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.replay:fullscreen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: var(--black);
  padding: 24px 32px 40px;
  box-sizing: border-box;
  border-top: 0;
}
.replay:fullscreen .map-shell { max-width: calc(100vh - 220px); margin: 0 auto; }
.map-shell { position: relative; aspect-ratio: 1; overflow: hidden; background: #1a211b; }
canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
canvas:active { cursor: grabbing; }
.map-tooltip {
  position: absolute;
  z-index: 4;
  max-width: 270px;
  padding: 7px 9px;
  border: 1px solid rgba(223,255,63,.45);
  background: rgba(7,9,7,.94);
  color: #f1f3ec;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  transform: translate(10px, calc(-100% - 10px));
  transition: opacity .1s ease;
}
.map-tooltip.is-visible { opacity: 1; }
.map-tooltip .tooltip-title {
  display: block;
  margin-bottom: 3px;
  color: #72d5ff;
  font-weight: 800;
  letter-spacing: .02em;
}
.map-tooltip .tooltip-row { display: flex; align-items: center; gap: 5px; padding: 1px 0; }
.map-tooltip .tooltip-row.is-tracked { font-weight: 700; }
.map-tooltip .tooltip-team {
  flex: none;
  min-width: 14px;
  padding: 0 2px;
  border: 1px solid;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.map-tooltip .tooltip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-tooltip .tooltip-tag {
  flex: none;
  padding: 0 4px;
  border: 1px solid rgba(241,243,236,.35);
  border-radius: 2px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .85;
}
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,13,11,.88); color: var(--acid); letter-spacing: .08em; text-transform: uppercase; }
.replay-onboarding {
  position: absolute;
  inset: auto auto 18px 50%;
  z-index: 7;
  display: grid;
  width: min(520px, calc(100% - 36px));
  min-height: 0;
  padding: 13px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(169,232,106,.55);
  background: rgba(7,10,7,.94);
  box-shadow: 0 7px 24px rgba(0,0,0,.5);
  color: var(--ink);
}
.replay-onboarding strong { color: var(--acid); font: 700 16px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.replay-onboarding span { margin-top: 2px; color: #c3c8c0; font-size: 11px; }
.replay-onboarding span b { color: var(--ink); }
.replay-onboarding small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.replay-onboarding button { justify-self: end; margin-top: 8px; padding: 5px 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 10px; }
.replay-state { position: absolute; top: 18px; left: 50%; z-index: 3; transform: translateX(-50%); padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(8,10,8,.82); color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.replay-state.is-playing { color: var(--acid); border-color: rgba(223,255,63,.4); }
.replay-state.is-event { color: #ffe36e; border-color: rgba(255,227,110,.45); }
.vehicle-roster { position: absolute; left: 18px; bottom: 18px; z-index: 4; width: min(270px, calc(100% - 36px)); padding: 10px; border: 1px solid rgba(72,184,255,.5); background: rgba(7,11,12,.94); box-shadow: 0 5px 18px rgba(0,0,0,.5); }
.vehicle-roster[hidden] { display: none; }
.vehicle-roster-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #72d5ff; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.vehicle-roster-heading button { width: 23px; height: 23px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; }
.vehicle-roster [data-vehicle-roster-list] { display: grid; gap: 4px; }
.vehicle-occupant-button { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; width: 100%; padding: 6px 7px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); color: var(--ink); text-align: left; cursor: pointer; }
.vehicle-occupant-button:hover, .vehicle-occupant-button.is-followed { border-color: #72d5ff; background: rgba(72,184,255,.1); }
.vehicle-occupant-button i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vehicle-occupant-button small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.death-banner {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  max-width: calc(100% - 40px);
  padding: 10px 17px;
  display: grid;
  gap: 5px;
  width: min(560px, calc(100% - 40px));
  background: rgba(8, 11, 9, .94);
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 12px;
  text-align: left;
  pointer-events: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.death-banner > span { display: block; color: #eef1e9; }
.death-banner i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-weight: 800;
}
.death-banner .knock { color: #f0c95d; }
.death-banner .kill, .death-banner .death { color: #ff8074; }
.death-banner .revive { color: #70d89a; }
.death-banner .recall { color: #64ddff; }
.victory-banner {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  max-width: calc(100% - 40px);
  padding: 11px 22px;
  text-align: center;
  background: linear-gradient(rgba(42, 33, 6, .95), rgba(30, 23, 4, .95));
  border: 1px solid rgba(255, 209, 102, .85);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55);
  pointer-events: auto;
}
.victory-banner strong {
  display: block;
  color: #ffd166;
  font: 800 19px "Barlow Condensed", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.victory-banner span {
  display: block;
  margin-top: 3px;
  color: #f1e4c4;
  font-size: 12px;
}
.victory-stats { display: flex; justify-content: center; gap: 18px; margin-top: 9px; }
.victory-stats span { margin: 0; font-size: 10px; text-transform: uppercase; }
.victory-stats b { display: block; color: #ffd166; font-size: 16px; }
.victory-banner .victory-tracked {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 209, 102, .22);
  color: #bdb8aa;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.victory-banner button {
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 209, 102, .65);
  background: transparent;
  color: #ffd166;
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.map-badge { position: absolute; left: 18px; top: 18px; background: rgba(8,10,8,.82); padding: 8px 11px; font-size: 12px; }
.map-badge-line { display: block; }
.map-badge i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); margin-right: 7px; }
.map-badge-zone {
  display: block;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  letter-spacing: .02em;
  color: #cfe0ff;
}
.map-badge-zone[hidden] { display: none; }
.map-badge-zone b { color: #ff9f43; font-variant-numeric: tabular-nums; }
.map-badge-zone.is-closing b { color: #ff5a4c; }
.map-zoom {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(8,10,8,.86);
}
.map-zoom button {
  width: 36px;
  height: 34px;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}
.map-zoom button:last-child { border-right: 0; }
.map-zoom button:hover { color: var(--acid); background: rgba(255,255,255,.06); }
.map-zoom button.is-active { color: #101310; background: var(--acid); }
.map-zoom-level {
  display: grid;
  min-width: 42px;
  padding: 0 7px;
  place-items: center;
  border-right: 1px solid rgba(255,255,255,.18);
  color: var(--acid);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.camera-mode-control { display: flex; align-items: center; }
.camera-mode-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.camera-mode-control select { height: 34px; padding: 0 25px 0 9px; border: 0; background: #101410; color: var(--ink); cursor: pointer; font-size: 10px; }
.map-fullscreen {
  position: absolute;
  top: 62px;
  right: 18px;
  z-index: 3;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(8,10,8,.86);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}
.map-fullscreen:hover, .map-fullscreen.is-active { color: var(--acid); border-color: var(--acid); }
aside {
  position: absolute;
  inset: 0 0 0 auto;
  width: 340px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.featured-player { padding: 21px; border-bottom: 1px solid var(--line); }
.featured-player span { display: block; color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; }
.featured-player strong { color: var(--acid); font: 700 24px "Barlow Condensed", sans-serif; }
.detail-control { margin-top: 14px; }
.detail-control > span, .squad-roster h3, .player-browser label > span {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font: 700 9px/1 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented-control button {
  padding: 6px 3px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #0e110e;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}
.segmented-control button:last-child { border-right: 1px solid var(--line); }
.segmented-control button.is-active { background: var(--acid); color: #101310; }
.squad-roster { margin-top: 16px; }
.squad-roster > div { display: grid; gap: 4px; }
.roster-player {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}
.roster-combat {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 13px;
}
.roster-health {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
}
.roster-health i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff6655 0 30%, #ffc857 50%, #72dc8b 75%); }
.roster-combat small { width: 20px; color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; text-align: right; }
.roster-combat img { width: 38px; height: 13px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.85)); }
.roster-details {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 11px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}
.roster-stats { white-space: nowrap; }
.roster-stats b { color: var(--ink); font-weight: 700; margin-right: 1px; }
.roster-context {
  min-width: 0;
  overflow: hidden;
  color: #72d5ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-context.heal { color: #72dc8b; }
.roster-context.boost { color: #64ddff; }
.roster-player.is-compact { padding-block: 5px; }
.roster-player.is-compact .roster-combat { min-height: 8px; }
.roster-player.is-compact .roster-details { grid-template-columns: 1fr; min-height: 9px; }
.roster-player.is-followed { border-color: var(--acid); background: rgba(169,232,106,.08); }
.roster-player.is-dead { opacity: .5; }
.roster-player.is-knocked { border-color: rgba(224,88,244,.55); }
.roster-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.roster-name { min-width: 0; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.roster-state { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.roster-actions { display: flex; gap: 2px; }
.roster-actions button {
  width: 25px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.roster-actions button:hover, .roster-actions button.is-active { border-color: var(--acid); color: var(--acid); }
.roster-actions button.is-hidden { color: #ff8074; opacity: .72; }
.player-browser { margin-top: 13px; border-top: 1px solid var(--line); }
.player-browser summary { padding: 10px 0 4px; color: var(--muted); cursor: pointer; font-size: 10px; text-transform: uppercase; }
.player-browser summary span { display: inline; }
.player-browser label { display: block; margin-top: 8px; }
.player-browser input {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: #0e110e;
  color: var(--ink);
  font-size: 11px;
}
.player-roster { display: grid; gap: 3px; max-height: 240px; margin-top: 7px; overflow-y: auto; }
.pin-control { display: block; margin-top: 16px; }
.pin-control span { display: block; color: var(--muted); text-transform: uppercase; font-size: 9px; letter-spacing: .12em; margin-bottom: 6px; }
.pin-control select { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); background: #0e110e; color: var(--ink); }
.feed-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.feed-filter select { min-width: 105px; padding: 5px 7px; border: 1px solid var(--line); background: #0e110e; color: var(--ink); text-transform: none; letter-spacing: normal; }
.feed-filter button { padding: 5px 7px; border: 1px solid var(--line); background: #0e110e; color: var(--muted); cursor: pointer; font-size: 9px; text-transform: uppercase; }
.feed-filter button[aria-pressed="true"] { border-color: var(--acid); color: var(--acid); }
.event-inspector { padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(223,255,63,.045); }
.event-inspector[hidden] { display: none !important; }
.event-inspector-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--acid); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.event-inspector-heading button { width: 23px; height: 23px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; }
.event-inspector > strong { display: block; color: var(--ink); font: 700 17px/1.15 "Barlow Condensed", sans-serif; }
.event-inspector > p { margin: 5px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.event-inspector-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.event-inspector-actions button { flex: 1; padding: 7px 5px; border: 1px solid var(--line); background: #171a17; color: var(--ink); cursor: pointer; font-size: 10px; }
.event-inspector-actions button:hover { border-color: var(--acid); color: var(--acid); }
.kill-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 15px 20px;
  scrollbar-width: thin;
  scrollbar-color: #555b53 #151815;
}
.kill-feed::-webkit-scrollbar { width: 7px; }
.kill-feed::-webkit-scrollbar-track { background: #151815; }
.kill-feed::-webkit-scrollbar-thumb { background: #555b53; border-radius: 8px; }
.kill-feed p { color: var(--muted); font-size: 12px; border-bottom: 1px solid #252925; padding: 9px 0; margin: 0; }
.kill-feed b { color: var(--ink); }
.feed-row {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 26px 7px 0;
  border-bottom: 1px solid #252925;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}
.feed-row:hover { background: rgba(255,255,255,.04); }
.feed-row time { color: #777d75; font-size: 8px; font-variant-numeric: tabular-nums; }
.feed-line { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.feed-participant { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.feed-actor, .feed-target { flex: 1 1 0; }
.feed-actor { text-align: right; }
.feed-target { color: #d9ddd5; }
.feed-participant .feed-player {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-causer { display: inline-flex; flex: none; align-items: center; gap: 2px; min-width: 20px; justify-content: center; }
.feed-distance { color: #aeb3aa; font-size: 8px; font-variant-numeric: tabular-nums; }
.feed-row .feed-focus { position: absolute; top: 8px; right: 0; float: none; }
.feed-player {
  appearance: none;
  border: 0;
  border-bottom: 1px dotted currentColor;
  padding: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.feed-player:hover, .feed-player:focus-visible { filter: brightness(1.35); border-bottom-style: solid; outline: none; }
.feed-player.is-pinned {
  border-bottom-style: solid;
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 2px rgba(255,255,255,.1);
}
.feed-weapon {
  height: 15px;
  width: auto;
  max-width: 46px;
  object-fit: contain;
  vertical-align: -2px;
  margin: 0 1px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .85));
}
.feed-event-icon {
  flex: none;
  height: 14px;
  width: auto;
  vertical-align: -1px;
  margin: 0 2px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .85));
}
.feed-event-glyph {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #72d5ff;
  font: 800 10px/1 Inter, sans-serif;
}
.feed-event-glyph.revive { color: #66c98b; }
.feed-event-glyph.throwable { color: #e6a54c; }
.feed-event-glyph.care, .feed-event-glyph.brdm { color: #e8b947; border-radius: 2px; }
.feed-causer-icon { display: inline-grid; place-items: center; flex: none; width: 22px; height: 14px; color: #cfd4cc; font-size: 14px; }
.feed-causer-icon.vehicle {
  position: relative;
  width: 23px;
  height: 9px;
  border: 1px solid #72d5ff;
  border-radius: 2px;
  background: rgba(72,184,255,.2);
}
.feed-causer-icon.vehicle::before, .feed-causer-icon.vehicle::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border: 1px solid #72d5ff;
  border-radius: 50%;
  background: #101310;
}
.feed-causer-icon.vehicle::before { left: 3px; }
.feed-causer-icon.vehicle::after { right: 3px; }
.kill-detail { color: #d96d64; margin-left: 4px; white-space: nowrap; }
.chain-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 4px;
  border: 1px solid #ff6b4a;
  border-radius: 2px;
  color: #ff8a66;
  background: rgba(255,107,74,.12);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  vertical-align: 1px;
}
.assist-detail { color: #a7aca4; margin-left: 4px; white-space: normal; }
.assist-detail .feed-player { font-weight: 600; }
.bot-badge, .team-badge { display: inline-block; border: 1px solid #9b6431; border-radius: 2px; padding: 1px 3px; margin-right: 3px; font-size: 8px; line-height: 1.2; letter-spacing: .08em; vertical-align: 1px; }
.bot-badge { color: #ff9f43; }
.team-badge { min-width: 16px; text-align: center; background: rgba(255,255,255,.05); }
.feed-action { margin: 0 3px; }
.kill-feed [data-seek] { cursor: pointer; }
.kill-feed .is-selected { background: rgba(223,255,63,.08); box-shadow: inset 2px 0 var(--acid); }
.feed-focus { float: right; width: 22px; height: 22px; margin: -4px 0 -4px 6px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.feed-focus:hover, .feed-focus:focus-visible { color: var(--acid); border-color: var(--acid); }
.feed-action.knock { color: #e2b94b; }
.feed-action.revive { color: #66c98b; }
.feed-action.kill { color: #d96d64; }
.feed-action.redeploy { color: #4fdcff; }
.feed-action.throwable { color: #e6a54c; }
.feed-action.flare { color: #ff7a28; }
.feed-action.vehicle { color: #ff8434; }
.feed-action.care { color: #e8b947; }
.feed-action.brdm { color: #76c7a1; }
.feed-action.bluechip-supply { color: #65baff; }
.legend-box {
  border: 1px solid var(--line);
  border-top: 0;
  background: #121512;
}
.legend-box summary {
  padding: 11px 16px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  user-select: none;
}
.legend-box summary:hover { color: var(--acid); }
.legend {
  padding: 4px 16px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: start;
  gap: 12px 22px;
  color: var(--muted);
  font-size: 11px;
}
.legend span { min-width: 0; }
.legend-group { display: grid; gap: 8px; align-content: start; }
.legend-group h4 {
  margin: 0 0 2px;
  color: var(--ink);
  font: 700 10px/1 Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.effect.density {
  width: 14px;
  height: 8px;
  background: linear-gradient(90deg, transparent 0 15%, rgba(255,120,52,.4) 15% 40%, rgba(255,70,52,.9) 40% 60%, rgba(255,120,52,.35) 60% 85%, transparent 85%);
}
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: #e8e9df; }
.dot.player { background: linear-gradient(135deg, #44c2a0 0 50%, #f472b6 50%); }
.dot.zone { background: #5fb8ff; }
.effect { display: inline-grid; place-items: center; width: 11px; height: 11px; margin-right: 5px; }
.effect.official { width: 23px; height: 22px; object-fit: contain; opacity: .75; filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.effect.official.vehicle-art {
  width: 31px;
  height: 27px;
  opacity: .78;
  filter: contrast(1.35) brightness(1.1);
}
.effect.official.vehicle-ground {
  filter: contrast(1.35) brightness(1.1) drop-shadow(1px 0 #72d5ff) drop-shadow(-1px 0 #72d5ff) drop-shadow(0 1px #72d5ff) drop-shadow(0 -1px #72d5ff) drop-shadow(0 2px 2px #001018);
}
.effect.official.vehicle-glider {
  filter: contrast(1.35) brightness(1.1) drop-shadow(1px 0 #d09aff) drop-shadow(-1px 0 #d09aff) drop-shadow(0 1px #d09aff) drop-shadow(0 -1px #d09aff) drop-shadow(0 2px 2px #100019);
}
.effect.bot { background: #ff9f43; border: 1px solid #ffe0bd; }
.effect.fire { border-radius: 50%; border: 2px solid #ffe148; box-shadow: 0 0 5px #ffe148; }
.effect.hit { border-radius: 50%; border: 2px solid #ff523f; box-shadow: inset 5px 0 #70f28c; }
.effect.tracer { width: 15px; height: 2px; background: repeating-linear-gradient(90deg, #ffe148 0 4px, transparent 4px 7px, #ff3c30 7px 11px, transparent 11px 14px); box-shadow: 0 0 4px #ff8a3a; }
.effect.kill-line { border: 2px solid #ff4c3e; border-radius: 50%; box-shadow: 0 0 5px rgba(255,76,62,.65); }
.effect.knock-line { border: 2px solid #e058f4; border-radius: 50%; box-shadow: 0 0 5px rgba(224,88,244,.6); }
.effect.revive-outcome { border: 2px solid #56beff; border-radius: 50%; box-shadow: 0 0 5px rgba(86,190,255,.65); }
.effect.vehicle { border: 2px solid #48b8ff; border-radius: 50%; }
.effect.glider { border: 2px solid #be70ff; border-radius: 50%; box-shadow: -8px 0 5px rgba(190,112,255,.3); }
.effect.landing { color: #f0f1e8; border: 1px solid currentColor; border-radius: 50%; font-size: 7px; }
.effect.redeploy { color: #4fdcff; border: 1px solid #4fdcff; border-radius: 50%; font-size: 10px; }
.effect.throwable { border: 2px solid #ffa637; border-radius: 50%; background: rgba(255,166,55,.2); }
.effect.flare { color: #ffba60; border: 1px solid #ff7a28; border-radius: 50%; font: 700 9px/9px sans-serif; }
.effect.wreck { color: #ff8434; border: 1px solid #ff8434; font: 700 13px/9px sans-serif; }
.effect.care-package { width: 23px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.effect.bluechip { color: #d5efff; border: 1px solid #b7e2ff; background: #3a91de; font: 700 11px/9px sans-serif; }
.effect.brdm { color: #d8ffeb; border: 1px solid #9de1c2; background: #38705c; font: 700 8px/9px sans-serif; }
.effect.next-zone { width: 14px; height: 8px; border-top: 2px dashed #fff; }
.effect.heal-pulse { border-radius: 50%; border: 2px solid #5ede78; box-shadow: 0 0 5px #5ede78; }
.effect.health-bar {
  border-radius: 50%;
  border: 2px solid #f2f5ee;
  border-bottom-color: rgba(4,8,6,.85);
  box-shadow: 0 0 3px rgba(242,245,238,.5);
}
.effect.boost-pulse { border-radius: 50%; border: 2px solid #50c8ff; box-shadow: 0 0 5px #50c8ff; }
.effect.death { color: rgba(255,255,255,.65); font: 700 16px/10px sans-serif; }
.controls {
  display: grid;
  grid-template-columns: 46px 42px minmax(280px, 1fr) 42px;
  align-items: center;
  gap: 10px 13px;
  padding: 18px;
  background: #101310;
  border: 1px solid var(--line);
  border-top: 0;
  font-size: 12px;
  /* Keep play/scrub reachable while the tall map scrolls. */
  position: sticky;
  bottom: 0;
  z-index: 6;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .35);
}
.control-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.replay-options { grid-column: 1 / -1; min-width: 0; border-top: 1px solid rgba(255,255,255,.08); }
.replay-options > summary {
  padding: 10px 2px 2px;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.replay-options > summary span { margin-left: 6px; color: var(--muted); font-size: 8px; letter-spacing: normal; text-transform: none; }
.replay-options[open] > summary { color: var(--acid); }
.replay-options .control-tools { padding-top: 10px; }
.event-navigation { display: flex; align-items: center; gap: 5px; }
.event-navigation button {
  min-width: 28px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--line);
  background: #1b1e1b;
  color: var(--ink);
  cursor: pointer;
}
.event-navigation button[data-squad-highlights] { width: auto; font-size: 10px; }
.event-navigation button[data-squad-highlights].is-active { color: #101310; border-color: var(--acid); background: var(--acid); }
.event-navigation select { max-width: 118px; padding: 5px; background: #1b1e1b; color: var(--ink); border: 1px solid var(--line); }
.scrubber-wrap { position: relative; display: flex; align-items: center; padding-top: 28px; }
.scrubber-tip {
  position: absolute;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  padding: 3px 8px;
  background: rgba(7, 9, 7, .94);
  border: 1px solid rgba(223, 255, 63, .45);
  color: #f1f3ec;
  font-size: 11px;
  min-width: 120px;
  max-width: 300px;
  line-height: 1.45;
  white-space: pre-line;
  pointer-events: none;
  z-index: 3;
}
.density-strip {
  position: absolute;
  inset: auto 7px -8px 7px;
  height: 8px;
  pointer-events: none;
  opacity: .85;
}
.timeline-lanes { position: absolute; inset: 0 7px auto 7px; height: 27px; border-bottom: 1px solid rgba(255,255,255,.08); }
.timeline-lane-label { position: absolute; left: 0; color: rgba(255,255,255,.38); font-size: 6px; line-height: 8px; text-transform: uppercase; }
.timeline-lane-label:nth-child(1) { top: 0; }
.timeline-lane-label:nth-child(2) { top: 9px; }
.timeline-lane-label:nth-child(3) { top: 18px; }
.scrubber-marks { position: absolute; inset: 0; height: 27px; }
.zone-region { position: absolute; top: 18px; height: 7px; background: rgba(95,184,255,.1); border-left: 1px solid rgba(95,184,255,.3); pointer-events: none; }
.scrubber-marks .mark { position: absolute; width: 4px; height: 7px; padding: 0; border: 0; transform: translateX(-2px); cursor: pointer; pointer-events: auto; }
.scrubber-marks .mark[data-lane="combat"] { top: 0; }
.scrubber-marks .mark[data-lane="squad"] { top: 9px; }
.scrubber-marks .mark[data-lane="zones"] { top: 18px; }
.scrubber-marks .mark.is-selected { width: 6px; height: 9px; transform: translateX(-3px); box-shadow: 0 0 7px rgba(255,255,255,.7); }
.scrubber-marks .kill { background: #ff4c3a; }
.scrubber-marks .knock { background: #e2b94b; }
.scrubber-marks .death { background: #f0f1e8; }
.scrubber-marks .revive { background: #66c98b; }
.scrubber-marks .recall { background: #4fdcff; }
.scrubber-marks .zone { background: #5fb8ff; opacity: .55; }
.play-button { width: 42px; height: 38px; border: 0; background: var(--acid); cursor: pointer; }
.bookmark-add { min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); background: #1b1e1b; color: var(--ink); cursor: pointer; font-size: 10px; }
.bookmark-add:hover { color: var(--acid); border-color: var(--acid); }
.bookmark-box { border: 1px solid var(--line); border-top: 0; background: #111411; }
.bookmark-box summary { padding: 10px 16px; color: var(--muted); cursor: pointer; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.bookmark-box summary span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; border-radius: 9px; background: rgba(255,255,255,.08); color: var(--ink); }
.bookmark-list { display: grid; gap: 1px; padding: 0 10px 10px; }
.bookmark-list > p { margin: 0; padding: 8px; color: var(--muted); font-size: 11px; }
.bookmark-row { display: grid; grid-template-columns: auto minmax(0,1fr) repeat(3,auto); align-items: center; gap: 6px; padding: 7px 8px; background: rgba(255,255,255,.025); }
.bookmark-row time { color: var(--acid); font-variant-numeric: tabular-nums; font-size: 11px; }
.bookmark-row strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-row button { padding: 4px 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.bookmark-row button:hover { color: var(--acid); border-color: var(--acid); }
.controls input { accent-color: var(--acid); width: 100%; }
.controls label { color: var(--muted); }
.controls select { margin-left: 7px; background: #1b1e1b; color: var(--ink); border: 1px solid var(--line); padding: 6px; }
.speed-control { display: grid; grid-template-columns: auto auto auto 34px; align-items: center; gap: 7px; white-space: nowrap; color: var(--muted); }
.speed-presets { display: flex; }
.speed-presets button {
  min-width: 29px;
  height: 28px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #1b1e1b;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}
.speed-presets button:last-child { border-right: 1px solid var(--line); }
.speed-presets button.is-active { border-color: var(--acid); background: var(--acid); color: #101310; }
.adaptive-speed { display: flex; align-items: center; gap: 4px; font-size: 9px; }
.adaptive-speed input { width: auto; margin: 0; }
.speed-control output { color: var(--acid); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.note { color: var(--muted); font-size: 11px; }
footer { border-top: 1px solid var(--line); padding: 25px 0 50px; color: var(--footer-muted); font-size: 11px; }
.mobile-replay-tabs { display: none; }

@media (max-width: 800px) {
  .hero { padding-top: 60px; }
  .match-card { grid-template-columns: 65px 1fr repeat(2, 55px); gap: 12px; padding: 18px 14px; }
  .match-card .match-thumb, .match-card .survived { display: none; }
  .match-card button { grid-column: 1 / -1; }
  .replay-grid { padding-right: 0; }
  .mobile-replay-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
  }
  .mobile-replay-tabs button {
    padding: 10px;
    border: 0;
    border-right: 1px solid var(--line);
    background: #111411;
    color: var(--muted);
  }
  .mobile-replay-tabs button[aria-selected="true"] { color: var(--acid); box-shadow: inset 0 -2px var(--acid); }
  aside { position: static; width: auto; border: 0; border-top: 1px solid var(--line); }
  aside [data-mobile-panel], .legend-box[data-mobile-panel] { display: none; }
  aside [data-mobile-panel].mobile-panel-active { display: block; }
  .legend-box[data-mobile-panel] { border-top: 1px solid var(--line); }
  .legend-box[data-mobile-panel].mobile-panel-active { display: block; }
  .kill-feed { max-height: 180px; }
  .controls { grid-template-columns: 42px 42px minmax(120px, 1fr) 42px; }
  .controls > [data-current-time] { display: block; color: var(--ink); font-variant-numeric: tabular-nums; }
  .control-tools { flex-wrap: wrap; justify-content: center; }
  .event-navigation { justify-content: center; }
  .speed-control { justify-content: center; }
}
@media (max-width: 520px) {
  main, footer { width: min(100% - 24px, 1180px); }
  .search-control { display: block; border: 0; }
  .search-control input { width: 100%; border-bottom: 2px solid var(--ink); }
  .search-control button { width: 100%; padding: 15px; }
  .death-banner { bottom: 12px; width: calc(100% - 20px); }
  .victory-banner { width: calc(100% - 20px); padding: 10px; }
  .victory-stats { gap: 10px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .replay-actions { justify-content: flex-start; }
  .replay-help-grid { grid-template-columns: 1fr; }
  .replay-help { max-height: calc(100% - 24px); overflow-y: auto; }
  .controls { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 8px; padding: 12px; }
  .controls > [data-current-time] { display: none; }
  .control-tools { display: grid; grid-template-columns: 1fr auto; }
  .speed-control { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; }
  .speed-control > span { display: none; }
  .speed-presets button { min-width: 0; flex: 1; }
  .speed-presets { display: flex; min-width: 0; }
  .speed-control output { display: none; }
  .event-navigation { justify-content: flex-start; }
  .event-navigation select { max-width: 105px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
