:root {
  color-scheme: dark;
  --bg: #101217;
  --panel: #1a1d24;
  --panel-warm: #232019;
  --ink: #f4f1e9;
  --muted: #aaa294;
  --gold: #e9bd66;
  --green: #80d99b;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--gold);
}

.home-header,
.homepage-feature,
.home-main,
.home-footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.home-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 32px;
  align-items: end;
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--border);
}

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

.eyebrow {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 0;
}

.home-summary {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.time-control {
  display: grid;
  gap: 7px;
}

.time-control label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.time-control select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  padding: 10px 12px;
}

.time-control select:focus-visible,
.homepage-feature a:focus-visible,
.home-event-row a:focus-visible,
.home-competition-row:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.homepage-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  margin-top: 22px;
  border: 1px solid rgba(233, 189, 102, 0.42);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.homepage-feature[hidden] {
  display: none;
}

.homepage-feature__copy {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 22px;
  border-right: 1px solid var(--border);
  background: rgba(233, 189, 102, 0.055);
}

.homepage-feature__topline,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.homepage-feature__topline .eyebrow,
.homepage-feature__copy h2,
.homepage-feature__copy p,
.homepage-feature__fixtures-label {
  margin: 0;
}

.homepage-feature__copy h2 {
  font-size: 28px;
}

.homepage-feature__copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.homepage-feature__stage {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(128, 217, 155, 0.4);
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.homepage-feature__action {
  width: fit-content;
  font-size: 14px;
  font-weight: 800;
}

.homepage-feature__fixtures {
  display: grid;
  align-content: start;
}

.homepage-feature__fixtures-label {
  padding: 12px 16px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.homepage-feature__fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  min-height: 62px;
  align-content: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
}

.homepage-feature__fixture:hover,
.homepage-feature__fixture:focus-visible,
.home-event-row:hover,
.home-competition-row:hover {
  background: rgba(233, 189, 102, 0.07);
}

.homepage-feature__teams {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
}

.homepage-feature__teams span,
.homepage-feature__meta,
.home-event-match span,
.home-event-match strong span,
.home-competition-row small {
  color: var(--muted);
}

.homepage-feature__fixture time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.homepage-feature__meta {
  grid-column: 1 / -1;
  font-size: 12px;
}

.home-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  gap: 34px;
  padding: 38px 0 54px;
}

.section-heading {
  align-items: end;
  margin-bottom: 14px;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.section-heading > a {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
}

.home-event-list,
.home-competition-list {
  border-top: 1px solid var(--border);
}

.home-event-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border);
}

.home-event-hitbox {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-event-competition {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.home-event-match {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-event-match strong {
  font-size: 14px;
  line-height: 1.35;
}

.home-event-match span {
  font-size: 12px;
  line-height: 1.35;
}

.home-event-row time,
.home-time-tbc {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.home-competition-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
}

.home-competition-row > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-competition-row strong {
  font-size: 14px;
}

.home-competition-row small {
  font-size: 11px;
  line-height: 1.35;
}

.competition-status {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.empty-state {
  padding: 22px 0;
  color: var(--muted);
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 820px) {
  .home-header,
  .homepage-feature,
  .home-main {
    grid-template-columns: 1fr;
  }

  .homepage-feature__copy {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .home-main {
    gap: 38px;
  }
}

@media (max-width: 620px) {
  .home-header {
    gap: 20px;
    padding-top: 25px;
  }

  h1 {
    font-size: 48px;
  }

  .homepage-feature__copy {
    padding: 18px;
  }

  .homepage-feature__copy h2 {
    font-size: 24px;
  }

  .homepage-feature__fixture {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 76px;
    padding: 11px 14px;
  }

  .homepage-feature__fixture time,
  .homepage-feature__meta {
    grid-column: 1;
  }

  .home-main {
    padding-top: 32px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .home-event-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
    min-height: 86px;
    padding: 12px 4px;
  }

  .home-event-competition {
    grid-column: 1 / -1;
  }

  .home-footer {
    flex-direction: column;
  }
}
