:root {
  --ink: #171717;
  --muted: #5c6470;
  --paper: #f4f1ea;
  --panel: #ffffff;
  --line: #d9d2c5;
  --red: #d73c34;
  --teal: #168f8b;
  --gold: #d7a82f;
  --green: #3f8f55;
  --black: #08090b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ebe4d6 0, var(--paper) 280px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}

.brand-text {
  font-size: 1rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: #30343a;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a {
  padding: 8px 0;
}

.nav-login {
  padding: 10px 14px !important;
  border: 1px solid var(--ink);
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
  background: #111 url("/assets/arena.jpg") center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.88), rgba(8, 9, 11, 0.55) 42%, rgba(8, 9, 11, 0.12)),
    linear-gradient(0deg, rgba(8, 9, 11, 0.82), transparent 50%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 116px 0 76px;
}

.hero-main {
  min-width: 0;
}

.kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.58;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel {
  padding: 22px;
  background: rgba(244, 241, 234, 0.94);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.panel-top,
.panel-meta,
.loadout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-top {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(215, 60, 52, 0.16);
}

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  border-top: 1px solid var(--line);
  font-weight: 850;
}

.scoreline strong {
  font-size: 2.2rem;
}

.scoreline.muted {
  color: var(--muted);
}

.panel-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.loadout {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 18px;
}

.loadout span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #e7dfd0;
  font-size: 0.78rem;
  font-weight: 850;
}

.ticker {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--red);
  color: var(--white);
}

.ticker span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ticker span:last-child {
  border-right: 0;
}

.command-band {
  width: min(1120px, calc(100% - 40px));
  margin: -46px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.command-card {
  min-height: 164px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.13);
}

.command-card.dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.command-label {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.4rem;
}

.command-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.command-card.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.season-board {
  margin-top: 76px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.board-grid article {
  min-height: 210px;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(215, 60, 52, 0.18), rgba(22, 143, 139, 0.12)),
    var(--black);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.board-index {
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 850;
}

.board-grid h3 {
  margin: 54px 0 10px;
  font-size: 1.3rem;
}

.board-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.14);
}

.status-strip > div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.status-strip > div:last-child {
  border-right: 0;
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 850;
}

.stat-label {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 84px auto;
}

.section-heading {
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.roster-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.roster-card,
.news-card {
  min-height: 250px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.roster-card h3,
.news-card h3,
.match-row h3 {
  margin: 14px 0 8px;
  font-size: 1.18rem;
}

.roster-card p,
.news-card p,
.match-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
}

.game-tag.accent {
  background: var(--teal);
}

.game-tag.warm {
  background: var(--gold);
  color: var(--ink);
}

.game-tag.green {
  background: var(--green);
}

dl {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

dt,
dd {
  margin: 0;
  font-size: 0.88rem;
}

dt {
  color: var(--muted);
}

dd {
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

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

.match-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-row time,
.match-row > span {
  font-weight: 850;
}

.match-row time {
  color: var(--red);
}

.news-card {
  min-height: 190px;
}

.date {
  color: var(--red) !important;
  font-size: 0.84rem;
  font-weight: 850;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: #fbfaf7;
  background: var(--black);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .status-strip,
  .command-band,
  .board-grid,
  .roster-grid,
  .news-grid,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .status-strip,
  .command-band,
  .board-grid,
  .roster-grid,
  .news-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .command-band {
    margin-top: 20px;
  }

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

  .status-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip > div:last-child {
    border-bottom: 0;
  }

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

  .footer {
    flex-direction: column;
  }
}
