:root {
  --bg: #0f1923;
  --ink: #ece8e1;
  --muted: #8b978f;
  --red: #ff4655;
  --line: rgba(236, 232, 225, 0.14);
  --panel: #14202b;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(236, 232, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 232, 225, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  padding-left: 42px;
}

img { max-width: 100%; }

a { color: inherit; }

button, a { font: inherit; }

button { cursor: pointer; }

.spine {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.42em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border-right: 1px solid var(--line);
  background: #0c141c;
  z-index: 20;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  background: rgba(15, 25, 35, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.top.scrolled { border-bottom-color: var(--line); }

.logo {
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.logo span { color: var(--red); }

.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.top nav a:hover { color: var(--ink); }

.tracker {
  color: var(--bg) !important;
  background: var(--red);
  padding: 10px 14px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  align-items: end;
  overflow: hidden;
  padding: 24px 48px 0;
}

.slash {
  position: absolute;
  z-index: 0;
  right: 24%;
  top: -12%;
  width: min(220px, 18vw);
  height: 130%;
  background: var(--red);
  transform: rotate(18deg);
}

.wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 8vh 0 48px;
}

.eyebrow, .live {
  margin: 0 0 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.live[hidden] { display: none; }

.live::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

h1 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.tag {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: 0.42em;
  letter-spacing: 0.08em;
}

.lead {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions button, .ghost {
  border: 0;
  text-decoration: none;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.actions button {
  background: var(--red);
  color: #0f1923;
}

.ghost {
  color: var(--ink);
  border: 1px solid var(--line) !important;
}

.actions button:hover, .ghost:hover { filter: brightness(1.08); }

.rank {
  margin: 22px 0 0;
  font-family: Unbounded, sans-serif;
  font-size: 20px;
}

.hero-art {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 640px;
}

.hero-art img {
  position: absolute;
  right: -6%;
  bottom: -8%;
  height: 118%;
  width: auto;
  max-width: none;
  filter: drop-shadow(-24px 24px 30px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  user-select: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 20, 28, 0.92);
}

.stat {
  padding: 28px 32px 32px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat span {
  display: block;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.stat strong {
  display: block;
  margin-top: 10px;
  font-family: Unbounded, sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.block { padding: 84px 48px 8px; }

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 14px 6px 0;
  background: var(--red);
}

.block-head p {
  margin: 0;
  color: var(--muted);
  max-width: 280px;
  text-align: right;
}

.agents, .maps {
  display: grid;
  gap: 16px;
}

.agents { grid-template-columns: 1.35fr 1fr; }

.agent, .map {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
}

.agent img {
  position: absolute;
  right: -8%;
  bottom: -6%;
  height: 112%;
  width: auto;
  max-width: none;
}

.agent .shade, .map .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 25, 35, 0.05) 20%, rgba(15, 25, 35, 0.92) 100%);
}

.card-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
}

.role, .card-copy p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.card-copy h3 {
  margin: 8px 0;
  font-family: Unbounded, sans-serif;
  font-size: 40px;
  font-weight: 500;
}

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

.map {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.map .card-copy h3 { font-size: 28px; }

.matches { display: flex; flex-direction: column; }

.match {
  display: grid;
  grid-template-columns: 168px 1fr auto auto auto;
  gap: 22px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.match:last-child { border-bottom: 1px solid var(--line); }

.thumb {
  height: 92px;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.match h3 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: 26px;
  font-weight: 500;
}

.match .when {
  margin: 6px 0 0;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
}

.score {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.kda {
  margin: 0;
  min-width: 96px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.result {
  margin: 0;
  min-width: 132px;
  text-align: right;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}

.match.win .result, .match.win .score { color: var(--ink); }

.match.loss .result, .match.loss .score { color: var(--red); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 72px;
  padding: 28px 48px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.make-link {
  margin: 0;
  padding: 8px 48px 48px;
  text-align: center;
}

.make-link a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
}

.maker {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  max-width: 640px;
  padding: 48px;
}

.maker h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.maker p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.maker form {
  display: grid;
  gap: 12px;
  width: min(100%, 460px);
  margin-top: 8px;
}

.maker input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 0;
  font-family: Unbounded, sans-serif;
  font-size: 28px;
  color: inherit;
}

.maker button {
  justify-self: start;
  border: 0;
  background: var(--red);
  color: #0f1923;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.maker .back {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  text-decoration: none;
}

.empty {
  color: var(--muted);
  padding: 12px 0 28px;
}

.pre {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 48px 48px 48px 90px;
  background:
    linear-gradient(rgba(236, 232, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 232, 225, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto;
}

.pre[hidden] { display: none; }

.pre-mark {
  width: 84px;
  height: 10px;
  margin-bottom: 10px;
  background: var(--red);
  transform: skewX(-24deg);
  animation: pre-slide 1.05s ease-in-out infinite;
}

@keyframes pre-slide {
  0% { transform: skewX(-24deg) translateX(0); opacity: 1; }
  50% { transform: skewX(-24deg) translateX(36px); opacity: 0.35; }
  100% { transform: skewX(-24deg) translateX(0); opacity: 1; }
}

.pre-kicker {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.pre-name {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
}

.pre-note {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 1100px) {
  .maps { grid-template-columns: 1fr 1fr; }
  .slash { right: 8%; }
}

@media (max-width: 860px) {
  body { padding-left: 0; }
  .spine { display: none; }
  .top { padding: 16px 20px; flex-wrap: wrap; }
  .top nav { flex-wrap: wrap; gap: 14px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px 20px 0;
  }
  .slash { display: none; }
  .hero { overflow: hidden; }
  .hero-art { min-height: 420px; order: -1; overflow: hidden; }
  .hero-art img { right: -4%; height: 100%; }
  .hero-copy { padding-top: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .block { padding: 56px 20px 0; }
  .block-head { flex-direction: column; align-items: start; }
  .block-head p { text-align: left; }
  .agents { grid-template-columns: 1fr; }
  .maps { grid-template-columns: 1fr; }
  .match {
    grid-template-columns: 96px 1fr;
    grid-template-areas:
      "thumb main"
      "thumb score"
      "thumb result";
  }
  .thumb { grid-area: thumb; height: 100%; min-height: 96px; }
  .match .main { grid-area: main; }
  .score { grid-area: score; font-size: 24px; }
  .kda { display: none; }
  .result { grid-area: result; text-align: left; }
  footer { flex-direction: column; padding: 24px 20px 12px; }
  .make-link, .maker { padding-left: 20px; padding-right: 20px; }
  .pre { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live::before { box-shadow: none; }
  .pre-mark { animation: none; }
}
