:root {
  --ink: #10150d;
  --forest: #172413;
  --olive: #384928;
  --moss: #65723f;
  --sand: #d4b06a;
  --gold: #c9a227;
  --paper: #f2eee3;
  --cream: #fbf8f0;
  --muted: #827e73;
  --line: rgba(23, 36, 19, .16);
  --red: #a72f25;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.top-line { height: 5px; background: linear-gradient(90deg, var(--red) 0 10%, var(--gold) 10% 42%, var(--forest) 42%); }
.site-header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 66px; height: 56px; object-fit: contain; }
.brand span { display: grid; gap: 3px; }
.brand small, .kicker, .eyebrow, .video-label, .team-filter { letter-spacing: .17em; text-transform: uppercase; font-size: .69rem; font-weight: 800; }
.brand strong { font-family: Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: 1.3rem; font-weight: 500; }
nav { display: flex; gap: 34px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .72rem; }
nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a:focus-visible { border-color: var(--gold); }
.header-unit { width: 58px; height: 58px; object-fit: contain; }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--forest); min-height: 670px; display: grid; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,20,11,.97) 0 42%, rgba(13,20,11,.62) 67%, rgba(13,20,11,.38)), url('/assets/hero-tank.jpg') center/cover; filter: saturate(.65); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: linear-gradient(90deg, var(--gold) 0 34%, var(--red) 34% 39%, transparent 39%); }
.hero-grain { position: absolute; inset: 0; opacity: .12; background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.08) 4px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(35px, 6vw, 86px); align-items: center; padding: 70px 0; }
.eyebrow { width: max-content; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5594f; box-shadow: 0 0 0 5px rgba(229,89,79,.15); }
.hero .kicker { margin: 42px 0 14px; color: var(--sand); }
h1, h2 { font-family: Impact, "Arial Narrow", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .025em; margin: 0; line-height: .9; }
h1 { font-size: clamp(4.2rem, 7.5vw, 7.4rem); }
h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.hero-subtitle { margin: 25px 0 30px; max-width: 490px; font-size: 1.08rem; color: rgba(255,255,255,.72); line-height: 1.55; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-meta span { display: grid; gap: 4px; color: rgba(255,255,255,.55); text-transform: uppercase; font-size: .65rem; letter-spacing: .12em; }
.hero-meta b { color: #fff; font-size: 1.15rem; letter-spacing: 0; }
.video-shell { background: #090c08; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.video-label { padding: 14px 18px; display: flex; justify-content: space-between; color: var(--sand); }
.video-shell video { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; background: #050605; }
.hero-number { position: absolute; z-index: 1; right: -16px; bottom: -45px; font-family: Impact, sans-serif; font-size: 14rem; color: rgba(255,255,255,.035); }

.podium-section, .evaluations-section { padding-block: 105px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 55px; }
.section-heading > div { position: relative; }
.section-heading .kicker { margin: 0 0 13px; color: var(--moss); }
.section-index { position: absolute; left: -48px; top: 0; font-family: Impact, sans-serif; color: var(--gold); font-size: 1.1rem; }
.updated, .section-heading > p { color: var(--muted); font-size: .82rem; max-width: 330px; line-height: 1.5; }
.podium { min-height: 390px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; padding-top: 34px; }
.podium-card { position: relative; color: #fff; background: var(--olive); min-height: 275px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 34px 22px 28px; border-top: 5px solid var(--sand); overflow: hidden; }
.podium-card.first { order: 2; min-height: 380px; background: var(--forest); border-color: var(--gold); }
.podium-card.second { order: 1; min-height: 315px; background: #505951; border-color: #aeb5b2; }
.podium-card.third { order: 3; min-height: 280px; background: #7a4a2f; border-color: #b97950; }
.podium-card::after { content: attr(data-position); position: absolute; right: 10px; top: -32px; font: 15rem/1 Impact, sans-serif; color: rgba(255,255,255,.05); }
.podium-logo { display: block; object-fit: contain; object-position: center; margin-bottom: 20px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.24)); }
.podium-card.first .podium-logo { width: min(78%, 300px); height: 180px; }
.podium-card.second .podium-logo { width: min(72%, 270px); height: 140px; }
.podium-card.third .podium-logo { width: min(58%, 180px); height: 115px; }
.podium-logo.fallback { display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font: 1.3rem Impact, sans-serif; }
.medal { position: absolute; left: 18px; top: 17px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold); font-weight: 900; }
.second .medal { background: #c4c9c8; }
.third .medal { background: #c17b52; color: #fff; }
.podium-card h3 { margin: 0; font: 500 clamp(1.2rem, 2.5vw, 2rem) Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.podium-score { margin-top: 12px; color: var(--sand); font: 500 2rem Impact, sans-serif; }
.podium-score small { font: 700 .68rem "Segoe UI", sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.scores-band { color: #fff; background: var(--forest); padding-block: 100px; }
.scores-band .light .kicker { color: var(--sand); }
.scores-band .section-heading > p { color: rgba(255,255,255,.55); }
.leaderboard { display: grid; }
.ranking-row { display: grid; grid-template-columns: 70px minmax(180px, 1fr) 2fr 110px; align-items: center; min-height: 88px; border-top: 1px solid rgba(255,255,255,.13); gap: 20px; }
.ranking-row:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.rank-number { font: 500 2.2rem Impact, sans-serif; color: var(--sand); }
.rank-team { display: flex; align-items: center; gap: 15px; font-weight: 800; text-transform: uppercase; }
.rank-team img, .unit-item img { width: 44px; height: 44px; object-fit: contain; }
.rank-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); font-weight: 900; font-size: .7rem; }
.rank-bar { height: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--moss), var(--gold)); }
.rank-score { text-align: right; font: 500 1.65rem Impact, sans-serif; }

.team-filter { display: grid; gap: 9px; color: var(--muted); }
select, input, button { font: inherit; }
.team-filter select { min-width: 230px; border: 1px solid var(--line); background: var(--cream); padding: 13px 38px 13px 14px; color: var(--ink); }
.evaluations-heading { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(280px, 340px); align-items: end; }
.evaluations-heading .team-filter { grid-column: 1; width: 100%; font-size: .78rem; }
.evaluations-heading .team-filter select { width: 100%; min-width: 0; min-height: 64px; padding: 16px 48px 16px 18px; font-size: 1.08rem; font-weight: 800; }
.evaluations-title { grid-column: 2; text-align: center; }
.evaluations-title .section-index { left: 50%; top: -31px; transform: translateX(-50%); }
.heading-spacer { grid-column: 3; }
.evaluation-table-wrap { overflow-x: auto; border-top: 4px solid var(--forest); background: var(--cream); box-shadow: 0 18px 50px rgba(28,34,23,.08); }
.evaluation-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.evaluation-table th { color: var(--paper); background: var(--olive); padding: 16px; text-align: left; font-size: .69rem; letter-spacing: .11em; text-transform: uppercase; }
.evaluation-table td { padding: 16px; border-bottom: 1px solid var(--line); }
.evaluation-table td:first-child { color: var(--muted); width: 55px; }
.evaluation-table td:nth-child(n+3), .evaluation-table th:nth-child(n+3) { text-align: right; }
.evaluation-table tr:hover td { background: #f2ecd9; }
.weight-pill { display: inline-block; min-width: 48px; padding: 5px 9px; color: var(--olive); background: rgba(101,114,63,.12); text-align: center; font-weight: 800; }
.pending { color: #aaa49a; }
.units { padding-bottom: 95px; }
.units > .kicker { color: var(--moss); margin-bottom: 25px; }
.unit-strip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: var(--cream); }
.unit-item { min-height: 125px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 18px; border-right: 1px solid var(--line); text-align: center; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.unit-item:last-child { border-right: 0; }
.unit-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--olive); font: 1rem Impact, sans-serif; }
footer { color: #fff; background: #0d130b; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
.footer-brand span { display: grid; gap: 4px; }
.footer-brand small, footer p { color: rgba(255,255,255,.5); font-size: .72rem; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-copy { max-width: 680px; }
  .unit-strip { grid-template-columns: repeat(3, 1fr); }
  .unit-item:nth-child(3) { border-right: 0; }
  .unit-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .ranking-row { grid-template-columns: 55px minmax(170px, 1fr) 100px; }
  .rank-bar { display: none; }
  .evaluations-heading { grid-template-columns: minmax(245px, 300px) minmax(0, 1fr); }
  .heading-spacer { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 1220px); }
  .site-header { min-height: 82px; }
  .brand img { width: 52px; height: 48px; }
  .brand small { font-size: .55rem; }
  .brand strong { font-size: 1rem; }
  .header-unit { width: 46px; height: 46px; }
  .hero-grid { padding: 58px 0 48px; gap: 45px; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.2rem); }
  .podium-section, .evaluations-section, .scores-band { padding-block: 75px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 38px; }
  .evaluations-heading { display: grid; grid-template-columns: 1fr; gap: 32px; }
  .evaluations-heading .team-filter, .evaluations-title { grid-column: 1; width: 100%; }
  .evaluations-title { text-align: center; }
  .section-index { display: none; }
  .podium { grid-template-columns: 1fr; align-items: stretch; min-height: 0; padding: 0; }
  .podium-card, .podium-card.first, .podium-card.second, .podium-card.third { order: initial; min-height: 240px; }
  .podium-card.first { order: 1; }
  .podium-card.second { order: 2; }
  .podium-card.third { order: 3; }
  .podium-card.first .podium-logo { width: min(78%, 220px); height: 135px; }
  .podium-card.second .podium-logo { width: min(72%, 190px); height: 110px; }
  .podium-card.third .podium-logo { width: min(62%, 160px); height: 95px; }
  .ranking-row { grid-template-columns: 38px 1fr 78px; min-height: 78px; gap: 10px; }
  .rank-team img, .rank-mark { width: 35px; height: 35px; }
  .rank-score { font-size: 1.35rem; }
  .unit-strip { grid-template-columns: repeat(2, 1fr); }
  .unit-item { border-bottom: 1px solid var(--line); }
  .unit-item:nth-child(2n) { border-right: 0; }
  .unit-item:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
