/* Tavla-TV: 1920 × 1080, scaled to fit any screen. Readable at 15–20 m. System fonts only: halls are often offline. */
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { display: flex; align-items: center; justify-content: center; }
.stage {
  width: 1920px; height: 1080px; flex: none; box-sizing: border-box; padding: 56px 72px 48px;
  background: #050608; color: #fff; font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
  display: flex; flex-direction: column; gap: 32px; transform-origin: center;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.team { display: flex; align-items: center; gap: 20px; min-width: 0; }
.team.away { justify-content: flex-end; }
.name { font-size: 64px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { width: 16px; height: 72px; border-radius: 8px; flex: none; }
.home .bar { background: #4C9AFF; }
.away .bar { background: #FF9F43; }
.badge { font-size: 28px; font-weight: 700; color: #FFC861; border: 3px solid #FFC861; border-radius: 12px; padding: 4px 14px; flex: none; }
.label { font-size: 44px; font-weight: 700; color: #C8CBD2; padding: 10px 28px; border: 3px solid #2A2D34; border-radius: 16px; }
.middle { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.scorebox { display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* The latest goal's numbers. Room kept when empty, so the score does not jump. */
.goal { font-size: 40px; font-weight: 700; color: #C8CBD2; min-height: 48px; white-space: nowrap; }
.score { font-size: 340px; font-weight: 800; line-height: 1; text-align: center; }
.clockbox { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.clock { font-size: 250px; font-weight: 800; line-height: 1; color: #FFD35C; letter-spacing: -.03em; }
.note { font-size: 40px; font-weight: 600; color: #9EA3AD; min-height: 48px; }
.note.timeout { color: #FFC861; }
.bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.side { display: flex; flex-direction: column; gap: 16px; }
.side.away { align-items: flex-end; }
.heading { font-size: 28px; font-weight: 700; letter-spacing: .12em; color: #9EA3AD; }
.slots { display: flex; gap: 16px; width: 100%; }
.away .slots { justify-content: flex-end; }
.slot { flex: 1; max-width: 420px; height: 112px; box-sizing: border-box; border-radius: 20px; border: 3px dashed #2A2D34;
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.slot.on { background: #2A2108; border: 3px solid #FFC861; color: #FFC861; }
.slot .player { font-size: 64px; font-weight: 800; }
.slot .time { font-size: 72px; font-weight: 800; }
.timeouts { font-size: 28px; font-weight: 600; color: #9EA3AD; min-height: 34px; }
.link { margin-left: auto; }
.link.live { color: #4ADE80; }
.link.silent, .link.offline { color: #FFC861; font-weight: 700; }
.foot { display: flex; align-items: center; gap: 20px; border-top: 2px solid #1C1F25; padding-top: 24px; font-size: 24px; color: #9EA3AD; }
[data-show] { display: none; }
[data-show].shown { display: inline-block; }

/* The start page (join.html): the code from the console's Livelänk. */
body.join { display: grid; place-items: center; background: #050608; color: #F5F5F7; font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif; overflow: auto; }
.join-box { width: min(520px, 90vw); text-align: center; }
.join-box h1 { font-size: 44px; font-weight: 800; margin: 0 0 40px; }
.join-box form { display: grid; gap: 16px; }
.join-box label { color: #A1A1AA; font-size: 18px; }
.join-box input {
  font: 700 44px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-align: center;
  text-transform: uppercase; padding: 16px; border-radius: 16px; border: 2px solid #2C2F36; background: #16181D; color: #F5F5F7;
}
.join-box input:focus { outline: none; border-color: #4C9AFF; }
.join-box button { font: 600 22px/1 -apple-system, system-ui, "Helvetica Neue", sans-serif; padding: 20px; border: 0; border-radius: 16px; background: #4C9AFF; color: #0B0C0F; cursor: pointer; }
.join-message { min-height: 1.5em; font-size: 18px; color: #FFC861; }
.join-help { color: #A1A1AA; font-size: 16px; }
