:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #eef0ee;
  background: #111417;
  --surface: #1b2024;
  --muted: #aab2b5;
  --line: #343b41;
  --accent: #d8f54a;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1056px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 48px; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.masthead, .section-heading, .match-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.masthead { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.masthead button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.masthead button:hover { background: var(--surface); }
.scoreboard {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 9px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 4vw, 43px); letter-spacing: -.035em; line-height: 1.15; }
.match-info p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.match-info p span { margin: 0 5px; color: #758087; }
.score { display: flex; align-items: center; gap: clamp(10px, 2vw, 20px); white-space: nowrap; }
#score { font-size: clamp(35px, 6vw, 60px); line-height: 1; font-weight: 820; font-variant-numeric: tabular-nums; }
.divider { color: #859096; font-weight: 440; }
.team { font-size: 14px; font-weight: 760; letter-spacing: .025em; }
.team-wbg { color: #ffaca1; }
.team-peps { color: #f6db73; }
.match-links { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.match-links a, .section-heading a { color: var(--muted); }
.phase { display: inline-flex; align-items: center; gap: 7px; font-weight: 720; }
.phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9da7a5; }
.phase[data-phase="live"] { color: var(--accent); }
.phase[data-phase="live"]::before { background: currentColor; }
.section-nav { display: none; }
.columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; margin-top: 28px; }
.section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 19px; }
.section-heading span, .section-heading a, .feedback { color: var(--muted); font-size: 12px; }
.empty { margin: 15px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
ol { list-style: none; margin: 0; padding: 0; }
li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
time { color: var(--accent); font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }
aside time { color: var(--muted); }
li h3 { font-size: 15px; line-height: 1.5; }
li p { margin-top: 4px; color: #c6cece; font-size: 14px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
li a { display: inline-block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.feedback { margin-top: 15px; min-height: 1lh; }

@media (max-width: 650px) {
  main { width: calc(100% - 30px); padding: 17px 0 30px; }
  .scoreboard { grid-template-columns: minmax(0, 1fr); padding: 17px 16px 13px; gap: 16px; }
  .score { gap: 16px; }
  .section-nav { display: flex; gap: 16px; margin: 17px 1px 0; font-size: 13px; }
  .section-nav a { color: var(--muted); }
  .columns { grid-template-columns: 1fr; gap: 25px; margin-top: 17px; }
}
