/* ── Board / Kiosk styles ─────────────────────────────────────────────────── */

.board-body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}

.board-shell {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ── Header ── */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel), transparent 30%);
}

.board-meet-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.board-meet-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.board-meet-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.board-pill {
  flex-shrink: 0;
  font-size: 0.88rem;
}

/* ── Main ── */
.board-main {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem 2rem;
}

/* ── Splash screens (loading / waiting) ── */
.board-splash {
  text-align: center;
}

.board-splash-msg {
  font-size: 2rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.board-splash-sub {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  opacity: 0.7;
}

.board-splash-error {
  color: #ffa0a0;
}

/* ── Event slide ── */
.board-event {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.board-event-labels {
  text-align: center;
}

.board-div-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.board-event-name {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

/* ── Results table ── */
.board-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.board-table th,
.board-table td {
  padding: 0.6rem 0.75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
}

.board-table th {
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  border-top: none;
  border-left: none;
  border-right: none;
  background: transparent;
}

.board-table td {
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 50%);
}

.board-table tbody tr:last-child td {
  border-bottom: none;
}

/* Gold / silver / bronze for top 3 */
.board-table tbody tr:nth-child(1) .col-rank { color: #f5c842; font-weight: 800; }
.board-table tbody tr:nth-child(2) .col-rank { color: #b0b8c8; font-weight: 700; }
.board-table tbody tr:nth-child(3) .col-rank { color: #c97c44; font-weight: 700; }

.col-rank  { width: 3.5rem; text-align: center; }
.col-team  { }
.col-mark  { width: 8rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Footer ── */
.board-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.65rem 1.5rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel), transparent 30%);
}

.board-nav {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.board-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.board-progress {
  flex: 1;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.board-pos {
  font-size: 0.85rem;
  color: var(--muted);
}

.board-bar-track {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.board-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.1s linear;
}
