:root {
  color-scheme: dark;
  --ink: #f6f1df;
  --muted: #c5bfae;
  --soil: #24180f;
  --soil-2: #332115;
  --grass: #86bf4b;
  --grass-dark: #315f2d;
  --sun: #ffd23f;
  --pea: #62c952;
  --line: rgba(246, 241, 223, 0.18);
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(circle at 22% 10%, rgba(255, 210, 63, 0.24), transparent 28rem),
    linear-gradient(135deg, #17311e 0%, #1f3324 38%, #2b1b10 100%);
}

button,
a {
  font: inherit;
}

.page {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  min-height: 190px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
}

.score-strip {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(36, 24, 15, 0.72);
  box-shadow: 0 18px 50px var(--shadow);
  backdrop-filter: blur(14px);
}

.score-strip div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
}

.score-strip span {
  color: var(--muted);
  font-size: 14px;
}

.score-strip strong {
  color: var(--sun);
  font-size: 17px;
}

.showdown {
  margin-top: 34px;
  border: 1px solid var(--line);
  background: rgba(24, 22, 17, 0.84);
  box-shadow: 0 26px 80px var(--shadow);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.tab,
.open-link {
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.tab {
  min-width: 150px;
  padding: 0 18px;
  cursor: pointer;
}

.tab.is-active {
  color: #17200e;
  border-color: rgba(255, 210, 63, 0.92);
  background: linear-gradient(180deg, #ffe371 0%, #ffc928 100%);
  font-weight: 800;
}

.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 18px;
}

.stage-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d120b;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.notes article {
  min-height: 150px;
  padding: 22px;
  background: rgba(22, 31, 22, 0.86);
}

.notes h2 {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 20px;
}

.notes p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .page {
    width: min(100vw - 24px, 720px);
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .score-strip {
    width: 100%;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tab {
    min-width: 0;
    padding: 0 10px;
  }

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