.board {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.board-hero { text-align: center; padding: clamp(32px, 6vw, 64px) 0 clamp(20px, 4vw, 32px); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.board-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  background: linear-gradient(180deg, #fff8e2, var(--gold-2) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 480px; margin: 14px auto 0; color: var(--ink-2); line-height: 1.6; }

/* One tab per game. Scrolls sideways on its own if there are ever more tabs than fit. */
.board-tabs {
  display: flex;
  justify-content: safe center;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.board-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.board-tab:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.28); }
.board-tab[aria-current='page'] {
  color: #2b1c04;
  border-color: rgba(255, 232, 170, 0.7);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.board-panel {
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board-table th {
  padding: 14px 16px 10px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--hairline);
}
.board-table td { padding: 0 16px; height: 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.board-table tbody tr:last-child td { border-bottom: none; }
.col-rank { width: 72px; color: var(--ink-3); font-weight: 700; }
.board-table th.col-credits, .col-credits { text-align: right; }
td.col-credits { font-weight: 700; color: var(--gold-2); white-space: nowrap; }
.col-player { min-width: 0; }
.player-name { font-weight: 600; color: var(--ink); word-break: break-all; }
.you {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: #2b1c04;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.board-table tr.me td { background: rgba(217, 180, 90, 0.12); }
.board-table tr.me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

.medal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  color: #2b1c04;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.medal.gold { background: radial-gradient(circle at 35% 30%, #fff1c4, var(--gold) 60%, var(--gold-3)); }
.medal.silver { background: radial-gradient(circle at 35% 30%, #ffffff, #c9cfd6 60%, #8a939c); }
.medal.bronze { background: radial-gradient(circle at 35% 30%, #f6c79c, #c07a43 60%, #7d4a22); }

/* Your row, pinned below the top 100. */
.board-me td { border-top: 2px dashed var(--panel-border); }

.skeleton i {
  display: inline-block;
  height: 12px;
  width: 60%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skeleton .col-rank i { width: 24px; }
.skeleton .col-credits i { width: 64px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.board-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px 32px;
  text-align: center;
  color: var(--ink-2);
}
.board-state[hidden] { display: none; }
.board-state p { margin: 0; }

.board-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(217, 180, 90, 0.08);
  border: 1px solid var(--panel-border);
}
.board-cta p { margin: 0; color: var(--ink); font-weight: 600; }

.site-footer { text-align: center; padding: 8px 16px 32px; color: var(--ink-3); font-size: 0.85rem; }

@media (max-width: 640px) {
  .topbar .brand-name { display: none; }
}
@media (max-width: 480px) {
  .topbar { padding-inline: 12px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 0.95rem; }
  .topbar .btn-icon { width: 36px; height: 36px; min-height: 36px; }
  .pill { gap: 6px; height: 36px; padding: 0 10px 0 6px; font-size: 0.92rem; }
  .board-table th, .board-table td { padding-inline: 12px; }
  .col-rank { width: 56px; }
}
@media (max-width: 400px) {
  .pill { padding-left: 12px; }
}
