:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #142b47;
  background: #edf3f9;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
[hidden] { display: none !important; }
.live-display {
  width: 100%; min-height: 0; flex: 1 1 auto; padding: clamp(16px, 2vw, 36px);
  display: flex; flex-direction: column; gap: clamp(10px, 1.2vh, 18px); overflow: hidden;
}
.display-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.display-identity { min-width: 0; }
h1 { font-size: clamp(20px, 1.65vw, 34px); line-height: 1.15; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.display-context { display: flex; flex-wrap: wrap; margin: 8px 0 0; font-size: clamp(17px, 1.2vw, 25px); line-height: 1.25; }
.display-context span + span::before { content: " · "; white-space: pre; color: #687d95; }
.display-brand { display: flex; flex: 0 0 auto; gap: 10px; align-items: center; color: #163e70; font-family: 'Comfortaa', cursive; font-size: clamp(20px, 1.6vw, 32px); font-weight: 700; }
.display-brand img { width: auto; height: clamp(30px, 3.2vw, 54px); }
.display-section-heading { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
h2 { margin: 0; font-size: clamp(26px, 2.2vw, 46px); line-height: 1.15; }
.display-progress { margin: 0; font-size: clamp(16px, 1.1vw, 23px); color: #465e79; white-space: nowrap; }
.display-viewport { min-height: 0; flex: 1 1 auto; overflow: hidden; background: white; border: 1px solid #ccd9e8; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: clamp(22px, 1.6vw, 34px); line-height: 1.2; }
th, td { padding: clamp(9px, 1vh, 15px) clamp(10px, 1vw, 22px); text-align: right; vertical-align: middle; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
th { background: #143b68; color: white; font-size: .75em; line-height: 1.2; font-weight: 600; }
td { border-bottom: 1px solid #dbe4ef; }
tr:nth-child(even) td { background: #f1f5fa; }
td[data-field="label"], th[data-field="label"], td[data-field="name"], th[data-field="name"] { width: 42%; text-align: left; font-weight: 700; }
td[data-field="rank"], th[data-field="rank"] { width: 7%; text-align: left; }
table[data-kind="matches"] [data-field="label"] { width: 8%; }
table[data-kind="matches"] [data-field="higher_label"], table[data-kind="matches"] [data-field="lower_label"] { width: 25%; text-align: left; font-weight: 700; }
table[data-kind="matches"] [data-field="result"] { width: 24%; text-align: left; font-size: .8em; }
td[data-field="status"], th[data-field="status"], td[data-field="note"], th[data-field="note"], td[data-field="progress"], th[data-field="progress"] { font-size: .75em; }
tr.is-awaiting td { color: #566a81; }
.display-empty { margin: 0; padding: 36px; font-size: clamp(24px, 2vw, 40px); color: #526780; }
.display-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; font-size: clamp(15px, 1vw, 21px); color: #526780; line-height: 1.2; }
.display-footer p { margin: 0; }
.display-footer .is-stale { color: #9b4a08; font-weight: 700; }
.display-notice { margin: 0; padding: 8px 12px; border: 1px solid #e6c576; background: #fff5d9; color: #744b0b; font-size: clamp(16px, 1.1vw, 23px); }
@media (max-width: 760px) {
  .live-display { padding: 12px; gap: 8px; }
  .display-brand span { display: none; }
  .display-heading { gap: 12px; }
  table { font-size: 20px; }
  th, td { padding: 9px 8px; }
}
