:root {
  font-family: system-ui, sans-serif;
  color-scheme: light;
  background: #f8f7f4;
  color: #182338;
  --title: #004682;
  --muted: #37465b;
  --line: #dbe1e8;
  --active-row: #edf4ff;
  --button: #ddeaff;
  --accent: #e79525;
  --red: #ad362b;
  --blue: #084a8d;
}
:root.room {
  color-scheme: dark;
  background: #0a2c64;
  color: #f4f7ff;
  --title: #f2f6ff;
  --muted: #d4e2fa;
  --line: #31558b;
  --active-row: #1e477f;
  --button: #214c88;
  --accent: #ffbe61;
  --red: #ff9f99;
  --blue: #91c8ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 68rem; margin: auto; padding: clamp(.6rem, 2.5vw, 1.5rem); }
header { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: baseline; justify-content: space-between; }
h1 { color: var(--title); font-size: clamp(1.2rem, 4.2vw, 2.4rem); line-height: 1.1; margin: 0; }
h1::after { content: ''; display: block; width: 4em; margin-top: .18em; border-bottom: .09em solid var(--accent); border-radius: 30%; }
nav { display: flex; gap: .25rem; }
button {
  font: inherit;
  font-size: clamp(.72rem, 2.3vw, .95rem);
  background: transparent;
  color: inherit;
  padding: .28em .52em;
  border: 1px solid var(--line);
  border-radius: .4rem;
  cursor: pointer;
}
button[aria-pressed="true"] { background: var(--button); color: var(--title); border-color: var(--title); }
#match-times { margin: .55em 0 .7em; color: var(--muted); font-weight: 650; font-size: clamp(.72rem, 2.2vw, 1.16rem); }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: clamp(.73rem, 2.35vw, 1.34rem);
  font-variant-numeric: tabular-nums;
}
td, th { text-align: left; padding: .31em .36em; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; white-space: nowrap; }
tr.today { background: var(--active-row); font-weight: 800; }
tr.today td:first-child { box-shadow: inset .16em 0 var(--accent); }
td:last-child, th:last-child { text-align: right; }
.red::before, .blue::before { content: ''; display: inline-block; width: .49em; height: .49em; border-radius: 50%; margin-inline-end: .34em; vertical-align: .12em; }
.red::before { background: var(--red); }
.blue::before { background: var(--blue); }
td.date, td.score { white-space: nowrap; }
footer { color: var(--muted); font-size: clamp(.68rem, 2vw, .96rem); margin-top: .5em; }
footer:empty { display: none; }
.room main { padding: clamp(.5rem, 2vw, 1.1rem); }
.room table { font-size: clamp(.71rem, min(2.5vw, 4vh), 1.6rem); }
.room td, .room th { padding-block: .24em; }
@media (max-width: 350px) {
  main { padding: .45rem; }
  .schedule th { white-space: normal; }
}
