:root {
  --green: #087a3d;
  --green-dark: #053e2d;
  --green-soft: #e8f6ee;
  --gold: #ffd34d;
  --gold-soft: #fff4cf;
  --red: #d93636;
  --blue: #123b7a;
  --ink: #132033;
  --muted: #5e6b7c;
  --line: #dce5ef;
  --paper: #ffffff;
  --wash: #f6f9fc;
  --shadow: 0 18px 48px rgba(19, 32, 51, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Segoe UI", Roboto, sans-serif;
  background: var(--wash);
}

a {
  color: inherit;
}

.site-shell {
  min-width: 320px;
  overflow: hidden;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 720px;
  color: #fff;
  background: #061728;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("hero.jpg?v=20260611-1") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 15, 29, .96) 0%, rgba(4, 15, 29, .78) 42%, rgba(4, 15, 29, .18) 70%, rgba(4, 15, 29, .74) 100%),
    linear-gradient(0deg, rgba(4, 15, 29, .92) 0%, rgba(4, 15, 29, .18) 50%, rgba(4, 15, 29, .82) 100%);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.brand span {
  overflow-wrap: anywhere;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 7px;
  color: rgba(255, 255, 255, .84);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  color: #061728;
  background: var(--gold);
}

.hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 116px 0 74px;
}

.eyebrow,
.label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.label {
  color: var(--green);
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: .9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.button-primary {
  color: #061728;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(255, 211, 77, .26);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .24);
  backdrop-filter: blur(12px);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin-top: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
}

.quick-stats div {
  min-height: 112px;
  padding: 20px;
  background: rgba(5, 22, 42, .62);
  backdrop-filter: blur(10px);
}

.quick-stats strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.35;
}

.section {
  padding: 70px 0;
}

.intro-band,
.scoring-band,
.transparency-band {
  background: #fff;
}

.section-heading {
  max-width: 760px;
}

.section-heading.centered {
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.rules-copy h2,
.final-box h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy,
.rules-copy p,
.final-box p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.steps-grid,
.score-grid,
.tables-grid {
  display: grid;
  gap: 18px;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.step-card,
.score-card,
.table-card,
.match-panel,
.prize-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(19, 32, 51, .07);
}

.step-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 122px;
  height: 122px;
  border: 22px solid rgba(8, 122, 61, .08);
  border-radius: 50%;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: var(--green);
}

.step-card h3,
.score-card h3,
.table-card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.step-card p,
.score-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.prize-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
}

.prize-board {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.donut-chart {
  width: min(320px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 47%, transparent 48%),
    conic-gradient(var(--green) 0 70%, var(--gold) 70% 90%, var(--red) 90% 100%);
  box-shadow: var(--shadow);
}

.donut-center {
  display: grid;
  place-items: center;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  text-align: center;
  background: #fff;
}

.donut-center strong {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.donut-center span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.prize-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.color-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.mark-green {
  background: var(--green);
}

.mark-gold {
  background: var(--gold);
}

.mark-red {
  background: var(--red);
}

.prize-row strong,
.prize-row span {
  display: block;
}

.prize-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .92rem;
}

.prize-row b {
  font-size: 1.45rem;
}

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

.score-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
}

.score-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(8, 122, 61, .1);
}

.score-value {
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 4rem;
  font-weight: 900;
  line-height: .9;
}

.muted-card .score-value {
  color: #697589;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
}

.match-panel {
  padding: 24px;
}

.match-header,
.deadline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-header span {
  color: var(--muted);
  font-weight: 800;
}

.match-header strong,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: .84rem;
  font-weight: 900;
  background: var(--green-soft);
}

.match-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}

.match-score > span {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
}

.match-score > span:last-child {
  text-align: right;
}

.score-box {
  display: grid;
  grid-template-columns: 54px 22px 54px;
  align-items: center;
  justify-items: center;
  min-width: 130px;
}

.score-box b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #061728;
  font-size: 1.45rem;
  background: #eef4f2;
}

.score-box i {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.deadline-bar {
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.deadline-bar span,
.deadline-bar strong {
  overflow-wrap: anywhere;
}

.transparency-layout {
  display: grid;
  gap: 28px;
}

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

.table-card {
  overflow: hidden;
}

.table-card h3 {
  padding: 22px 22px 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f8fbfd;
}

td:last-child,
th:last-child {
  text-align: right;
  font-weight: 900;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #061728;
  font-weight: 900;
  background: var(--gold);
}

.final-cta {
  padding: 70px 0;
  background: var(--wash);
}

.final-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 122, 61, .98), rgba(18, 59, 122, .94)),
    url("hero.jpg?v=20260611-1") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.final-box .label {
  color: var(--gold);
}

.final-box p {
  color: rgba(255, 255, 255, .84);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 92px;
  }

  .steps-grid,
  .score-grid,
  .prize-layout,
  .prize-board,
  .rules-layout,
  .tables-grid,
  .final-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .topbar {
    padding-top: 14px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-actions,
  .hero-actions .button,
  .final-actions,
  .final-box .button {
    width: 100%;
  }

  .final-actions {
    justify-content: stretch;
  }

  .quick-stats,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .prize-board,
  .match-panel,
  .final-box {
    padding: 20px;
  }

  .prize-row {
    grid-template-columns: 16px 1fr;
  }

  .prize-row b {
    grid-column: 2;
  }

  .match-score {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .match-score > span:last-child {
    text-align: center;
  }

  .score-box {
    margin: 0 auto;
  }

  th,
  td {
    padding: 12px 10px;
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
