:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --ink: #1b2522;
  --muted: #5f6d68;
  --line: #d8d1c3;
  --panel: #fffdf8;
  --accent: #0f766e;
  --accent-dark: #0a4f49;
  --gold: #d69b22;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: var(--accent);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 96px;
  padding: 22px clamp(18px, 4vw, 48px);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

main {
  margin: 0 auto;
  max-width: 1100px;
  padding: 22px clamp(14px, 4vw, 44px) 48px;
}

button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.icon-button {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 1.35rem;
  height: 46px;
  padding: 0;
  width: 46px;
}

.status-band {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr auto;
  margin-bottom: 28px;
  padding: 16px;
}

.label {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.section-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 28px 0 12px;
}

.match-list,
.notification-list {
  display: grid;
  gap: 10px;
}

.match {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(96px, 130px) 1fr auto;
  padding: 14px;
}

.match time {
  color: var(--accent-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.match-title {
  font-weight: 900;
}

.teams {
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}

.live-details {
  color: var(--accent-dark);
  font-weight: 800;
  line-height: 1.35;
  margin-top: 4px;
}

.pill {
  align-self: start;
  background: #e9e2d4;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.pill.result {
  background: #d5f2e7;
  color: #075d44;
}

.pill.live {
  background: #fee4e2;
  color: var(--danger);
}

.pill.inferred {
  background: #fff2cc;
  color: #7a4d00;
}

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

.event {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.event h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.event dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.event div {
  display: grid;
  gap: 2px;
}

.event dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event dd {
  font-weight: 700;
  margin: 0;
}

.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.notice strong {
  display: block;
}

.notice span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

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

@media (max-width: 760px) {
  .status-band {
    grid-template-columns: 1fr;
  }

  .match {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
