:root {
  --bg: #061827;
  --bg-deep: #02101d;
  --surface: rgba(4, 22, 36, 0.84);
  --surface-strong: rgba(2, 16, 29, 0.94);
  --text: #f8fbff;
  --muted: #c6d6df;
  --line: rgba(72, 177, 255, 0.55);
  --yellow: #ffd51f;
  --yellow-dark: #e7b800;
  --green: #08a767;
  --blue: #26a7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg-deep);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #051728 0%, #06243b 100%);
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  grid-template-rows: auto 1fr;
  isolation: isolate;
  background-image: url("assets/stadium-final-2026.png");
  background-position: center;
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 13, 27, 0.62) 0%, rgba(0, 16, 29, 0.3) 42%, rgba(0, 15, 23, 0.78) 100%),
    radial-gradient(circle at 50% 46%, rgba(10, 120, 180, 0.12), rgba(0, 0, 0, 0) 48%);
}

.site-header {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--yellow);
}

.brand {
  text-decoration: none;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span {
  color: var(--yellow);
}

.hero__content {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 62px 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.match-info {
  max-width: 100%;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.countdown {
  width: 100%;
  margin: 42px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.time-card {
  min-width: 0;
  min-height: 186px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.time-card strong {
  display: block;
  min-width: 3ch;
  color: var(--yellow);
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 0.95;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.time-card span {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 800;
}

.status-message {
  min-height: 1.5em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 36px;
  border-radius: 7px;
  color: #061827;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-dark));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  text-decoration: none;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 950;
}

.hero-button--alm {
  background: linear-gradient(180deg, var(--yellow), var(--yellow-dark));
}

.hero-button--watch {
  color: var(--text);
  background: linear-gradient(180deg, #ff2d2d, #b81414);
}

.hero-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.vote-panel {
  width: min(100%, 740px);
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(72, 177, 255, 0.48);
  border-radius: 8px;
  background: rgba(2, 16, 29, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.vote-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.vote-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.vote-options {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vote-option {
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 28, 44, 0.78);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vote-option:hover,
.vote-option:focus-visible {
  border-color: var(--yellow);
}

.vote-option.is-selected {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--yellow);
}

.vote-option:disabled {
  cursor: default;
}

.vote-team {
  font-size: 1.15rem;
  font-weight: 950;
}

.vote-percent {
  color: var(--yellow);
  font-size: 1.15rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.vote-bar {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.vote-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transition: width 250ms ease;
}

.vote-count {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.vote-message {
  min-height: 1.3em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-footer {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 820px) {
  .site-header,
  .hero__content {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    padding-top: 18px;
  }

  .hero__content {
    padding: 50px 0 64px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .time-card {
    min-height: 142px;
  }

  .hero-actions {
    width: min(100%, 360px);
  }

  .hero-button {
    width: min(100%, 360px);
    padding: 0 24px;
  }

  .vote-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .match-info {
    font-size: 1rem;
  }

  .countdown {
    gap: 10px;
  }

  .time-card {
    min-height: 122px;
    padding: 16px 8px;
  }

  .time-card strong {
    font-size: 3.1rem;
  }

  .time-card span {
    margin-top: 10px;
  }

  .vote-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-button:hover,
  .hero-button:focus-visible {
    transform: none;
  }
}
