:root {
  color-scheme: light;
  --grass: #0f7a5f;
  --grass-dark: #084d3d;
  --lime: #d8f55d;
  --ink: #15211f;
  --muted: #66726f;
  --line: #dce5e2;
  --paper: #fbfdf9;
  --card: #ffffff;
  --gold: #f2b84b;
  --red: #d94f45;
  --blue: #2d6cdf;
  --shadow: 0 12px 30px rgba(21, 33, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(216, 245, 93, 0.25), transparent 34%),
    linear-gradient(135deg, var(--grass-dark), var(--grass));
  color: white;
  padding: 14px 16px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, 0.18) 49.6% 50.4%, transparent 50.4%),
    radial-gradient(circle at 50% 56%, transparent 0 62px, rgba(255, 255, 255, 0.14) 63px 65px, transparent 66px),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: auto, auto, 58px 58px, 58px 58px;
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -78px;
  width: min(78vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(rgba(8, 77, 61, 0.18), rgba(8, 77, 61, 0.36)),
    url("./paddy-sweepstakes.jpg") center / cover no-repeat;
  filter: saturate(1.08) contrast(1.04);
  opacity: 0.32;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

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

.topbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto 24px;
}

.topbar a {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
}

.hero-grid {
  display: grid;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.78;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 11vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-title-lockup {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-title-lockup h1 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.hero-photo {
  width: 84px;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #0b0f0d;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo span {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--lime);
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paddy-action-photo {
  position: relative;
  margin: 0;
  max-width: 430px;
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.paddy-action-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.button,
.ghost-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--lime);
  color: #18312b;
}

.button.secondary,
.ghost-button {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.score-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.score-card div,
.status-strip,
.info-panel,
.highlight-card,
.prediction-card,
.team-card,
.participant-card,
.rules-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.score-card div {
  min-height: 92px;
  padding: 14px;
  color: var(--ink);
}

.score-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.score-card strong {
  font-size: 1.7rem;
}

.status-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.status-strip > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.25);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading .eyebrow {
  color: var(--grass);
}

.section-heading .ghost-button {
  color: var(--grass-dark);
  border-color: var(--line);
  background: white;
}

.info-panel,
.highlight-card {
  margin-bottom: 12px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.dropdown-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dropdown-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 1.18rem;
  font-weight: 900;
}

.dropdown-section summary::-webkit-details-marker {
  display: none;
}

.dropdown-section summary::after {
  content: "⌄";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef6f3;
  color: var(--grass-dark);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.dropdown-section[open] summary::after {
  transform: rotate(180deg);
}

.dropdown-section summary span {
  display: grid;
  gap: 3px;
}

.dropdown-section summary small {
  color: var(--grass);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dropdown-section summary strong {
  margin-left: auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f4f8f6;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.dropdown-content {
  padding: 0 12px 12px;
}

.knockout-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 12px;
  overflow-x: auto;
}

.knockout-round h3 {
  margin: 4px 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.knockout-matchups {
  display: grid;
  gap: 10px;
}

.knockout-match {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.knockout-match.live {
  border-color: #e6b94e;
}

.knockout-team {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.knockout-team + .knockout-team {
  border-top: 1px solid var(--line);
}

.knockout-team span {
  display: grid;
  gap: 2px;
}

.knockout-team small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.knockout-team.winner {
  background: #f7ffe2;
}

.knockout-match.empty .knockout-team {
  color: #a8b1ad;
  font-weight: 800;
}

.info-panel strong,
.highlight-card strong {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.88rem;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr.leader {
  background: #f7ffe2;
}

tbody tr.eliminated {
  background: #fff0ee;
  color: #8d2923;
}

.participant-card.eliminated,
.team-card.eliminated {
  border-color: #e6aaa5;
  background: #fff0ee;
  color: #8d2923;
}

.participant-card.eliminated .stat,
.team-card.eliminated .stat {
  background: #ffe1de;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef6f3;
  font-weight: 900;
}

.leader .rank {
  background: var(--gold);
}

.movement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  border-radius: 50%;
  font-weight: 900;
}

.movement.up {
  color: var(--grass);
  background: #ddf7ed;
}

.movement.down {
  color: var(--red);
  background: #ffe4e1;
}

.movement.same {
  color: var(--muted);
  background: #eef1ef;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef6f3;
  color: var(--grass-dark);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.live {
  background: #fff0d0;
  color: #8a5a00;
}

.badge.out {
  background: #ffe4e1;
  color: #9a241d;
}

.badge.champ {
  background: #fff2c5;
  color: #7a5200;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prediction-grid {
  display: grid;
  gap: 12px;
}

.compact-heading {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.simple-draw-grid {
  display: grid;
  gap: 12px;
}

.simple-draw-person {
  display: grid;
  gap: 10px;
  border: 1px solid #bfd4cc;
  border-left: 5px solid var(--grass);
  border-radius: 8px;
  background: white;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(17, 70, 54, 0.06);
}

.simple-draw-person h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

.simple-team-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.simple-team-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #d6e6df;
  border-radius: 6px;
  background: #f3f8f6;
  padding: 9px 8px;
}

.simple-team-list small {
  color: #687b74;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.simple-team-list strong {
  overflow-wrap: anywhere;
  color: #064f3d;
  font-size: 0.84rem;
}

.draw-count {
  border-radius: 999px;
  background: #eef6f3;
  padding: 7px 10px;
  color: var(--grass-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.draw-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.draw-search span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.draw-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b9d0c7;
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.draw-search input:focus {
  border-color: var(--grass);
  outline: 3px solid #d9eee6;
}

.draw-empty {
  border: 1px dashed #b9d0c7;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.prediction-card {
  padding: 16px;
}

.prediction-card.primary {
  background: linear-gradient(135deg, #ffffff, #f4ffe0);
  border-color: #d9ed9a;
}

.prediction-card .big-number {
  display: block;
  margin: 8px 0;
  font-size: 2.1rem;
  font-weight: 900;
}

.team-grid,
.participant-grid,
.rules-grid {
  display: grid;
  gap: 12px;
}

.team-card,
.participant-card,
.rules-grid article {
  padding: 14px;
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat {
  border-radius: 8px;
  background: #f4f8f6;
  padding: 9px 8px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
}

.rules-grid {
  padding-bottom: 32px;
}

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

@media (min-width: 720px) {
  .hero {
    padding: 20px 24px 28px;
  }

  .hero-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: end;
  }

  .hero-title-lockup {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
  }

  .hero-photo {
    width: 118px;
  }

  .score-card,
  .prediction-grid,
  .participant-grid,
  .rules-grid,
  .simple-draw-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .simple-team-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-strip {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1000px) {
  .participant-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
