:root {
  color: #eef3ed;
  background: #0f130f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-header {
  align-items: center;
  background: rgba(15, 19, 15, 0.95);
  border-bottom: 1px solid rgba(238, 243, 237, 0.14);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.top-links,
.actions,
footer,
footer nav {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 900;
  min-width: max-content;
}

.brand-mark {
  background: #d64f33;
  color: #fff9ed;
  display: inline-grid;
  height: 32px;
  place-items: center;
  width: 32px;
}

.top-links {
  color: #cbd5c6;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  gap: clamp(12px, 3vw, 28px);
  justify-content: flex-end;
}

.top-links a:hover,
footer a:hover {
  color: #fff9ed;
}

.nav-cta,
.primary,
.secondary {
  border: 1px solid rgba(238, 243, 237, 0.25);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
}

.nav-cta,
.primary {
  background: #d64f33;
  border-color: #d64f33;
  color: #fff9ed;
}

.secondary {
  background: rgba(15, 19, 15, 0.72);
  color: #eef3ed;
}

.hero {
  display: grid;
  min-height: min(880px, calc(100vh - 148px));
  overflow: hidden;
  position: relative;
}

.hero img,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 19, 15, 0.95), rgba(15, 19, 15, 0.62), rgba(15, 19, 15, 0.2)),
    linear-gradient(0deg, rgba(15, 19, 15, 0.86), rgba(15, 19, 15, 0));
}

.hero-copy {
  align-self: center;
  display: grid;
  gap: 22px;
  max-width: 820px;
  padding: clamp(42px, 8vw, 112px) clamp(20px, 6vw, 84px);
  position: relative;
  z-index: 1;
}

.kicker {
  color: #f3b65f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.94;
  max-width: 780px;
}

h2 {
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1;
}

h3 {
  font-size: 20px;
}

.lede {
  color: #d9e2d4;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
  max-width: 700px;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
}

.status-strip {
  background: #2a2e1f;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-strip article {
  background: #1a2017;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 24px clamp(18px, 3vw, 34px);
}

.status-strip span,
.leaderboard-head,
.leaderboard article span,
.section-heading p,
.rule-grid p,
.tier-list p,
.download-band p,
footer {
  color: #bdc8b7;
  line-height: 1.55;
}

.status-strip span {
  color: #f3b65f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-panel {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  padding: clamp(54px, 8vw, 112px) clamp(20px, 6vw, 84px);
}

.ladder-section,
.tiers-section {
  background: #eef3ed;
  color: #151a13;
}

.rules-section {
  background: #11160f;
}

.match-history-section {
  background: #171d15;
  color: #eef3ed;
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.ladder-section .kicker,
.tiers-section .kicker {
  color: #a93622;
}

.ladder-section .section-heading p,
.tiers-section .section-heading p {
  color: #4b5745;
}

.leaderboard {
  border: 1px solid rgba(21, 26, 19, 0.16);
  display: grid;
  overflow-x: auto;
}

.leaderboard-head,
.leaderboard article {
  display: grid;
  gap: 16px;
  grid-template-columns: 72px minmax(180px, 1.3fr) minmax(110px, 0.7fr) 96px 96px;
  min-width: 720px;
  padding: 16px 18px;
}

.leaderboard-head {
  background: #dce5d7;
  color: #4b5745;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard article {
  background: #f8fbf6;
  border-top: 1px solid rgba(21, 26, 19, 0.12);
}

.leaderboard article span {
  color: #5d6956;
}

.history-toolbar {
  border: 1px solid rgba(238, 243, 237, 0.14);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  width: fit-content;
}

.history-toolbar div {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 14px 18px;
}

.history-toolbar div + div {
  border-left: 1px solid rgba(238, 243, 237, 0.14);
}

.history-toolbar span,
.history-match-head span,
.history-player span,
.history-status {
  color: #bdc8b7;
  line-height: 1.45;
}

.history-toolbar span,
.history-match-head span {
  color: #f3b65f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.history-status {
  border: 1px solid rgba(238, 243, 237, 0.14);
  min-height: 72px;
  padding: 22px;
}

.match-history-list {
  display: grid;
  gap: 10px;
}

.history-match {
  border: 1px solid rgba(238, 243, 237, 0.14);
  display: grid;
}

.history-match-head {
  align-items: center;
  background: #22291d;
  border-bottom: 1px solid rgba(238, 243, 237, 0.12);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px;
}

.history-match-head > div {
  display: grid;
  gap: 6px;
}

.history-meta {
  color: #bdc8b7;
  font-size: 14px;
  justify-items: end;
}

.history-players {
  display: grid;
}

.history-player {
  align-items: center;
  background: #121710;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1fr) minmax(160px, 0.8fr);
  min-height: 58px;
  padding: 13px 18px;
}

.history-player + .history-player {
  border-top: 1px solid rgba(238, 243, 237, 0.1);
}

.history-player.is-winner {
  background: #182116;
}

.history-player strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.history-player .elo-move {
  color: #eef3ed;
  font-weight: 900;
}

.rule-grid,
.tier-list {
  display: grid;
  gap: 1px;
}

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

.rule-grid article {
  background: #1b2118;
  border: 1px solid rgba(238, 243, 237, 0.12);
  display: grid;
  gap: 12px;
  min-height: 250px;
  padding: 24px;
}

.rule-grid span,
.tier-list span {
  color: #f3b65f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tier-list article {
  background: #f8fbf6;
  border: 1px solid rgba(21, 26, 19, 0.13);
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
}

.tier-list span {
  color: #a93622;
}

.tier-list p {
  color: #4b5745;
}

.download-band {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(15, 19, 15, 0.96), rgba(15, 19, 15, 0.74)),
    url("assets/arena-hero-clean.png") center / cover;
  display: flex;
  gap: 26px;
  justify-content: space-between;
  padding: clamp(44px, 7vw, 84px) clamp(20px, 6vw, 84px);
}

.download-band div {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

footer {
  background: #0f130f;
  border-top: 1px solid rgba(238, 243, 237, 0.14);
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 6vw, 84px);
}

footer span {
  color: #eef3ed;
  font-weight: 900;
}

footer nav {
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .status-strip,
  .rule-grid,
  .tier-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-player {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .top-links {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    min-height: min(680px, calc(100vh - 180px));
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(15, 19, 15, 0.96), rgba(15, 19, 15, 0.58));
  }

  .hero-copy {
    align-self: start;
    padding-top: 70px;
  }

  .status-strip,
  .rule-grid,
  .tier-list {
    grid-template-columns: 1fr;
  }

  .history-toolbar {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .history-toolbar div + div {
    border-left: 0;
    border-top: 1px solid rgba(238, 243, 237, 0.14);
  }

  .history-match-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-meta {
    justify-items: start;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    padding-bottom: 20px;
    padding-top: 20px;
  }

  footer nav {
    justify-content: flex-start;
  }
}
