* { box-sizing: border-box; margin: 0; }
html { color-scheme: dark; }
body { min-height: 100dvh; display: flex; flex-direction: column; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 16px 16px; background: #0b0f19; color: #fff; font: 18px/1.4 system-ui, -apple-system, sans-serif; }
#board { flex: 1; display: flex; flex-direction: column; gap: 12px; }
#board[hidden] { display: none; }
#state { text-align: center; font-size: 22px; font-weight: 700; }
#teams { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team { min-width: 0; border-radius: 20px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.a { background: #1d4ed8; } .b { background: #b91c1c; }
.team h2 { font-size: clamp(18px, 5vw, 40px); overflow-wrap: anywhere; }
.team.serving h2::after { content: ''; display: inline-block; width: .55em; height: .55em; margin-left: .4em; border-radius: 50%; background: #facc15; }
.points { flex: 1; display: flex; align-items: center; font-size: clamp(88px, 28vw, 300px); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; font-weight: 600; }
#sets { text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }
#message { text-align: center; font-size: 20px; }
#message:empty { display: none; }
#fresh { text-align: center; font-size: 15px; color: #cbd5e1; }
#fresh.old { color: #fbbf24; font-weight: 700; }
@media (max-width: 480px) and (orientation: portrait) { .points { font-size: 30vw; } #teams { max-height: 62dvh; } }
