:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f0ede7;
  --ink: #111111;
  --muted: #67615a;
  --line: #ded8cc;
  --accent: #111111;
  --accent-soft: #e9e4db;
  --danger: #9f2020;
  --success: #166534;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.9), transparent 28rem),
    linear-gradient(135deg, rgba(255,255,255,0.7) 0 25%, transparent 25% 50%, rgba(255,255,255,0.35) 50% 75%, transparent 75%),
    var(--bg);
  background-size: auto, 44px 44px, auto;
}

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

button,
input,
select {
  font: inherit;
}

.hero {
  min-height: 92vh;
  padding: 26px;
}

.topbar {
  width: min(1180px, calc(100% - 12px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(17,17,17,0.09);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  position: sticky;
  top: 18px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-grid {
  width: min(1180px, 100%);
  margin: 84px auto 32px;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 74px);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "2026";
  position: absolute;
  right: -22px;
  bottom: -38px;
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  color: rgba(17,17,17,0.045);
  letter-spacing: -0.08em;
  z-index: 0;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.09em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 720px;
  color: #35312d;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

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

.button.secondary,
.button.ghost {
  background: white;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.button.danger {
  border-color: rgba(159, 32, 32, 0.25);
  color: var(--danger);
}

.status-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.status-row span,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #312d29;
  font-weight: 700;
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card h2 {
  font-size: clamp(1.9rem, 4vw, 3.5rem);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.panel-section {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,0.36);
  border-block: 1px solid rgba(17,17,17,0.06);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.prediction-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.card {
  border-radius: var(--radius-md);
  padding: 24px;
}

.form-card {
  display: grid;
  gap: 11px;
  align-content: start;
}

label {
  font-weight: 900;
  letter-spacing: -0.02em;
}

small {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17,17,17,0.08);
}

.selected-team {
  min-height: 72px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  margin: 6px 0;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.message {
  margin: 0;
  min-height: 22px;
  color: var(--muted);
  font-weight: 700;
}

.message.success {
  color: var(--success);
}

.message.error {
  color: var(--danger);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.chart-list,
.top-picks {
  display: grid;
  gap: 12px;
}

.pick-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 2fr) auto;
  align-items: center;
  gap: 12px;
}

.pick-label {
  font-weight: 900;
}

.pick-bar-wrap {
  height: 13px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.pick-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.pick-count {
  color: var(--muted);
  font-weight: 900;
}

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

.group-card {
  padding: 0;
  overflow: hidden;
}

.group-title {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(240,237,231,0.55);
}

.group-title h3 {
  margin: 0;
}

.team-list {
  display: grid;
  gap: 0;
}

.team-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(222,216,204,0.65);
}

.team-row:last-child {
  border-bottom: 0;
}

.team-row mark {
  background: #fff1b8;
  border-radius: 6px;
  padding: 0 2px;
}

.flag {
  font-size: 1.45rem;
}

.search-box {
  width: min(360px, 100%);
}

.search-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface-2);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

td {
  color: #312d29;
}

.empty-state {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

#emptyParticipants {
  padding: 24px;
  margin: 0;
}

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

.rule-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.rule-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 6px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .prediction-layout,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: grid;
    align-items: start;
  }

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

  .hero-copy {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 14px;
  }

  .topbar {
    width: 100%;
    border-radius: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand-copy {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    background: var(--surface-2);
  }

  .hero-grid {
    margin-top: 34px;
  }

  .hero-copy,
  .hero-card,
  .card {
    border-radius: 20px;
  }

  .section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .panel-section {
    padding-inline: 14px;
  }

  .groups-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .pick-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-header {
    flex-direction: column;
  }
}
