/* ================================================================
   PMD SPORTS PREDICTOR — STYLES
   ================================================================ */

:root {
  --bg: #0A0E1A;
  --surface: #141A2B;
  --surface-2: #1C233A;
  --surface-3: #252C48;
  --border: #2A324B;
  --border-bright: #3A4568;
  --text: #F5F5F0;
  --text-dim: #8A8FA3;
  --text-muted: #5A6078;
  --accent: #FF3864;
  --accent-dim: #B8264A;
  --gold: #FFD369;
  --pitch: #6CFF96;
  --danger: #FF5555;
  --locked: #C89655;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body {
  background-image:
    radial-gradient(ellipse at top left, rgba(255, 56, 100, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(108, 255, 150, 0.05), transparent 50%);
  background-attachment: fixed;
  padding: 16px 16px 80px;
}

.container { max-width: 1400px; margin: 0 auto; }

/* ============ NAVBAR ============ */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.nav-brand {
  font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: 1px;
  text-transform: uppercase; white-space: nowrap;
}
.nav-brand .accent { color: var(--accent); }
.nav-brand::before {
  content: '●'; color: var(--accent); margin-right: 8px;
  font-size: 12px; vertical-align: middle;
}
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-link {
  padding: 8px 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 1.5px; font-weight: 600; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; border-radius: 4px;
  transition: all 0.12s; cursor: pointer; border: 1px solid transparent;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active {
  color: var(--accent); background: var(--surface-2); border-color: var(--border);
}
.nav-link.leaderboard-cta {
  color: var(--gold); border-color: rgba(255, 211, 105, 0.3);
  background: rgba(255, 211, 105, 0.05);
}
.nav-link.leaderboard-cta:hover {
  color: var(--gold); background: rgba(255, 211, 105, 0.15);
  border-color: var(--gold);
}
.nav-player {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; font-size: 12px; font-family: 'IBM Plex Mono', monospace;
}
.nav-player .dot {
  width: 6px; height: 6px; background: var(--pitch); border-radius: 50%;
  box-shadow: 0 0 6px var(--pitch);
}
.nav-player.offline .dot { background: var(--text-muted); box-shadow: none; }

/* ============ HEADER ============ */
.header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 20px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.brand { line-height: 0.9; }
.brand-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 3px; color: var(--accent); text-transform: uppercase;
  margin-bottom: 8px; font-weight: 500;
}
.brand-title {
  font-family: 'Anton', sans-serif; font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.5px; text-transform: uppercase; line-height: 0.9;
}
.brand-title .accent { color: var(--accent); }
.brand-sub {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--text-dim); margin-top: 10px; letter-spacing: 1px;
}
.header-meta {
  text-align: right; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: var(--text-dim);
}

.phase-indicator {
  display: inline-block; padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 2px; font-weight: 600; text-transform: uppercase;
  border-radius: 3px;
}
.phase-open { background: rgba(108, 255, 150, 0.15); color: var(--pitch); border: 1px solid rgba(108, 255, 150, 0.3); }
.phase-locked { background: rgba(255, 211, 105, 0.15); color: var(--gold); border: 1px solid rgba(255, 211, 105, 0.3); }
.phase-finished { background: rgba(255, 56, 100, 0.15); color: var(--accent); border: 1px solid rgba(255, 56, 100, 0.3); }

/* ============ NAME ENTRY ============ */
.name-entry {
  max-width: 520px; margin: 8vh auto; padding: 48px 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; text-align: center;
}
.name-entry h2 {
  font-family: 'Anton', sans-serif; font-size: 36px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.name-entry h2 .accent { color: var(--accent); }
.name-entry p { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }
.name-entry input {
  width: 100%; padding: 14px 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif; font-size: 16px;
  margin-bottom: 16px; outline: none; transition: border 0.15s;
}
.name-entry input:focus { border-color: var(--accent); }

/* ============ BUTTONS ============ */
.btn {
  padding: 12px 20px; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  letter-spacing: 2px; font-weight: 600; text-transform: uppercase;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 6px; cursor: pointer; transition: all 0.15s; text-align: center;
}
.btn:hover:not(:disabled) {
  background: var(--surface-2); border-color: var(--accent); color: var(--accent);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.btn-gold:hover:not(:disabled) { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; }
.btn-danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 10px; }

/* ============ MAIN LAYOUT ============ */
.main-grid {
  display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.4fr);
  gap: 32px; align-items: start;
}
@media (max-width: 960px) { .main-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.panel-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.panel-title { font-family: 'Anton', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; }
.panel-subtitle {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 1.5px; color: var(--text-dim); text-transform: uppercase;
}
.panel-body { padding: 16px; }

/* ============ LIVE STATUS ============ */
.live-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 9px;
  letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase;
}
.live-status .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pitch);
  animation: pulse 2s infinite;
}
.live-status.cached .pulse { background: var(--text-muted); animation: none; }
.live-status.offline .pulse { background: var(--text-muted); animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--pitch); }
  50% { opacity: 0.4; box-shadow: 0 0 2px var(--pitch); }
}

/* ============ LIVE TABLE ============ */
.live-table-wrap { overflow-x: auto; }
.live-table {
  width: 100%; border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  min-width: 480px;
}
.live-table thead th {
  padding: 8px 6px; font-size: 9px; letter-spacing: 1.5px;
  color: var(--text-muted); text-transform: uppercase; font-weight: 600;
  text-align: right; border-bottom: 1px solid var(--border);
}
.live-table thead th:first-child, .live-table thead th.team-col { text-align: left; }
.live-table tbody td {
  padding: 8px 6px; text-align: right; color: var(--text);
  border-bottom: 1px solid rgba(42, 50, 75, 0.5);
}
.live-table tbody td.team-col { text-align: left; }
.live-table tbody tr.top-5 { background: linear-gradient(90deg, rgba(108, 255, 150, 0.08), transparent); }
.live-table tbody tr.bot-3 { background: linear-gradient(90deg, rgba(255, 85, 85, 0.08), transparent); }
.live-table .rank { color: var(--text-dim); font-weight: 600; }
.live-table tr.top-5 .rank { color: var(--pitch); }
.live-table tr.bot-3 .rank { color: var(--danger); }
.live-table .team-cell { display: flex; align-items: center; gap: 10px; }
.live-table .pts-col { font-weight: 700; color: var(--accent); font-size: 14px; }
.live-table .gd-pos { color: var(--pitch); }
.live-table .gd-neg { color: var(--danger); }

/* ============ PIXEL AVATAR BADGE ============ */
.badge-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 6px;
  overflow: hidden; flex-shrink: 0;
  image-rendering: pixelated; image-rendering: -moz-crisp-edges;
}
.badge-wrap.xs { width: 28px; height: 28px; }
.badge-wrap.sm { width: 40px; height: 40px; }
.badge-wrap.md { width: 56px; height: 56px; }
.badge-wrap.lg { width: 72px; height: 72px; }
.badge-wrap.xl { width: 96px; height: 96px; }
.badge-wrap svg { width: 100%; height: 100%; display: block; }

/* "Others" placeholder — Golden Boot fallback option */
.tb-others-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1.5px dashed var(--text-muted);
  border-radius: 50%;
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0;
}

/* ============ PREDICTIONS ============ */
.pred-board-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
}
.scoring-info {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.5px;
}
.scoring-info strong { color: var(--gold); font-weight: 600; }

.slots-section { padding: 20px; }
.slots-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center;
}
.slots-label .highlight-top { color: var(--pitch); }
.slots-label .highlight-bot { color: var(--danger); }
.slots-label .progress { font-weight: 600; color: var(--text); }

.slots-row { display: grid; gap: 10px; margin-bottom: 24px; }
.slots-row.top { grid-template-columns: repeat(5, 1fr); }
.slots-row.bot { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
  .slots-row.top { gap: 6px; }
  .slots-row.bot { gap: 6px; }
}

.slot {
  aspect-ratio: 0.78;
  border: 2px dashed var(--border); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: all 0.15s;
  background: var(--bg); padding: 6px; gap: 4px;
  min-height: 120px;
}
.slot:hover { border-color: var(--text-dim); }
.slot.active {
  border-color: var(--accent); border-style: solid; background: var(--surface-2);
  box-shadow: 0 0 0 2px rgba(255, 56, 100, 0.2);
}
.slot.filled {
  border-style: solid; border-color: var(--border); background: var(--surface-2);
}
.slot.filled:hover { border-color: var(--accent); }
.slot.locked {
  border-style: solid; border-color: var(--locked);
  background: linear-gradient(180deg, rgba(200, 150, 85, 0.15), rgba(200, 150, 85, 0.05));
  cursor: not-allowed;
}
.slot.locked:hover { border-color: var(--locked); }
.slot-pos {
  position: absolute; top: 4px; left: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: var(--text-muted); font-weight: 700;
}
.slot.top .slot-pos { color: var(--pitch); }
.slot.bot .slot-pos { color: var(--danger); }
.slot-lock {
  position: absolute; top: 4px; right: 6px;
  font-size: 11px; color: var(--locked);
}
.slot-team-name {
  font-size: 10px; color: var(--text); text-align: center;
  line-height: 1.1; font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  width: 100%;
}
.slot-empty-hint {
  font-size: 32px; color: var(--text-muted); font-family: 'Anton', sans-serif;
  line-height: 1;
}
.slot-empty-label {
  font-size: 10px; color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 1px;
}

/* ============ MOBILE RESPONSIVE: SLOTS + AVATARS ============ */
/* On narrow phones, 5 slots in a row with a fixed 72px avatar clips.
   We make the avatar fluid (max-width 100%), shrink min-height, and
   tighten padding so all five fit cleanly edge-to-edge. */
@media (max-width: 600px) {
  .slot {
    min-height: 88px;
    padding: 4px 2px;
    gap: 2px;
    border-width: 1px;
    border-radius: 7px;
  }
  .slot-pos {
    top: 2px; left: 4px;
    font-size: 9px;
  }
  .slot-team-name {
    font-size: 8px;
    letter-spacing: 0.3px;
  }
  .slot-empty-hint { font-size: 22px; }
  .slot-empty-label { font-size: 8px; }

  /* Fluid avatar INSIDE slots only — elsewhere (pool, roster) keep fixed sizes */
  .slot .badge-wrap {
    width: 100% !important;
    max-width: 50px;
    height: auto !important;
    aspect-ratio: 1;
  }
}

/* Even narrower phones — tighten further so nothing ever clips */
@media (max-width: 380px) {
  .slot { min-height: 78px; padding: 3px 1px; }
  .slot .badge-wrap { max-width: 42px; }
  .slot-team-name { font-size: 7px; }
  .slots-row.top { gap: 4px; }
}

/* ============ CERTAINTY NOTICE ============ */
.certainty-notice {
  margin: 12px 0 20px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(200, 150, 85, 0.12), rgba(200, 150, 85, 0.02));
  border-left: 3px solid var(--locked);
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.5px;
}
.certainty-notice strong { color: var(--locked); font-weight: 700; }

/* ============ TEAM POOL ============ */
.pool-section { padding: 0 20px 20px; border-top: 1px solid var(--border); padding-top: 20px; }
.pool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.pool-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 6px; background: var(--surface-2);
  border: 2px solid transparent; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
}
.pool-item:hover {
  border-color: var(--border-bright);
  transform: translateY(-1px);
  background: var(--surface-3);
}
.pool-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 56, 100, 0.25);
  transform: translateY(-2px);
}
.pool-item.used { opacity: 0.25; pointer-events: none; filter: grayscale(0.5); }
.pool-item .pool-name {
  font-size: 10px; font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ============ TIEBREAKERS ============ */
.tiebreakers {
  padding: 20px;
  border-top: 1px solid var(--border);
}
.tiebreakers-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 4px;
}
.tiebreakers-subtitle {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 16px;
}
.tiebreaker {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; margin-bottom: 12px;
}
.tiebreaker-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.tiebreaker-label {
  font-family: 'Anton', sans-serif; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.tiebreaker-points {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 1px; color: var(--gold);
  background: rgba(255, 211, 105, 0.12);
  padding: 3px 8px; border-radius: 3px;
}
.tiebreaker-sub {
  font-size: 11px; color: var(--text-dim); margin-bottom: 10px;
}
.tiebreaker-options {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tb-option {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; cursor: pointer; transition: all 0.12s;
  font-size: 11px; font-family: 'IBM Plex Mono', monospace;
}
.tb-option:hover { border-color: var(--border-bright); }
.tb-option.selected {
  border-color: var(--accent); color: var(--accent);
  background: rgba(255, 56, 100, 0.08);
}

/* ============ ACTIONS ============ */
.actions-row {
  padding: 20px; border-top: 1px solid var(--border);
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
}
.save-status {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-dim);
}
.save-status.saved { color: var(--pitch); }

/* ============ SECTIONS ============ */
.section { margin-top: 40px; }
.section-title {
  font-family: 'Anton', sans-serif; font-size: 30px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.section-title .accent-bar { width: 40px; height: 3px; background: var(--accent); display: inline-block; }
.section-title .count {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  color: var(--text-dim); letter-spacing: 1px; font-weight: 400;
}

/* ============ ROSTER ============ */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.roster-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px;
}
.roster-card.me { border-color: var(--accent); }
.roster-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.roster-name { font-family: 'Anton', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: 0.5px; }
.roster-status { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1.5px; }
.roster-status.locked { color: var(--gold); }
.roster-status.pending { color: var(--text-dim); }
.roster-status.complete { color: var(--pitch); }
.roster-picks-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.roster-picks-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-dim);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.hidden-badge {
  width: 40px; height: 40px; border-radius: 6px;
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 3px, var(--border) 3px, var(--border) 6px);
  border: 1px solid var(--border);
}

/* ============ LEADERBOARD ============ */
.leaderboard { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lb-row {
  display: grid; grid-template-columns: 50px 1fr 80px;
  align-items: center; padding: 14px 20px;
  border-bottom: 1px solid var(--border); gap: 16px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row.podium-1 { background: linear-gradient(90deg, rgba(255, 211, 105, 0.1), transparent); }
.lb-row.podium-2 { background: linear-gradient(90deg, rgba(200, 200, 210, 0.06), transparent); }
.lb-row.podium-3 { background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), transparent); }
.lb-rank { font-family: 'Anton', sans-serif; font-size: 28px; color: var(--text-dim); }
.lb-row.podium-1 .lb-rank { color: var(--gold); }
.lb-name { font-family: 'Anton', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: 0.5px; }
.lb-score { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 700; text-align: right; color: var(--accent); }
.lb-breakdown { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 1px; margin-top: 2px; }

/* ============ ADMIN ============ */
.admin-login {
  max-width: 440px; margin: 8vh auto; padding: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; text-align: center;
}
.admin-login-icon {
  font-family: 'Anton', sans-serif; font-size: 14px;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 12px;
}
.admin-login h2 {
  font-family: 'Anton', sans-serif; font-size: 28px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.admin-login p { color: var(--text-dim); font-size: 13px; margin-bottom: 24px; }
.admin-login input {
  width: 100%; padding: 14px 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; color: var(--text);
  font-family: 'IBM Plex Mono', monospace; font-size: 15px;
  margin-bottom: 12px; outline: none; letter-spacing: 2px; text-align: center;
}
.admin-login input:focus { border-color: var(--accent); }
.admin-error {
  color: var(--danger); font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  margin-top: 12px; min-height: 16px;
}

.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.admin-section { padding: 24px; border-bottom: 1px solid var(--border); }
.admin-section:last-child { border-bottom: none; }
.admin-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px;
}
.admin-title { font-family: 'Anton', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.admin-description { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }
.admin-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ INFO CARD ============ */
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px; margin-bottom: 20px;
}
.info-card .title {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}
.info-card .body { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.info-card .body strong { color: var(--text); font-weight: 600; }
.info-card .body code {
  background: var(--bg); padding: 2px 6px; border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--accent); border: 1px solid var(--border);
}

.mode-pill {
  display: inline-block;
  padding: 3px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  margin-left: 8px;
}
.mode-pill.local { background: rgba(255, 211, 105, 0.15); color: var(--gold); border: 1px solid rgba(255, 211, 105, 0.3); }
.mode-pill.online { background: rgba(108, 255, 150, 0.15); color: var(--pitch); border: 1px solid rgba(108, 255, 150, 0.3); }

/* ============ HOW IT'S BUILT PAGE ============ */
.built-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.built-intro p + p { margin-top: 16px; }
.built-intro strong { color: var(--accent); }
.built-intro em { color: var(--gold); font-style: normal; }

.built-lessons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.built-lesson {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
@media (max-width: 600px) {
  .built-lesson { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
}
.built-lesson-num {
  font-family: 'Anton', sans-serif;
  font-size: 56px;
  letter-spacing: 0;
  color: var(--accent);
  line-height: 0.85;
  opacity: 0.8;
}
.built-lesson-body h3 {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.1;
}
.built-lesson-body p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.6;
}
.built-quote {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 14px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  border-radius: 0 4px 4px 0;
}
.built-why {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-top: 2px;
}
.built-why strong { color: var(--pitch); }
.built-why em { color: var(--text); font-style: italic; }

/* Remove unused styles for live-status / mode-pill (cleanup request) */
.scoring-panel {
  background: linear-gradient(135deg, rgba(255, 211, 105, 0.08), rgba(255, 56, 100, 0.05));
  border: 1px solid rgba(255, 211, 105, 0.25);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.scoring-panel-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.scoring-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.scoring-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scoring-points {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--gold);
}
.scoring-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ============ ADMIN PLAYER ROWS ============ */
.admin-player-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  gap: 12px;
}
.admin-player-name {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.admin-player-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 4px;
}
.admin-player-meta code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ============ DIAGNOSTICS OUTPUT ============ */
.diag-row {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.diag-row.ok { border-left-color: var(--pitch); }
.diag-row.fail { border-left-color: var(--danger); background: rgba(255, 85, 85, 0.06); }
.diag-row.warn { border-left-color: var(--gold); background: rgba(255, 211, 105, 0.06); }
.diag-row.skip { border-left-color: var(--text-muted); opacity: 0.7; }
.diag-row-head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.diag-row-detail {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 22px;
}
.diag-row-detail code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
}

/* ============ MISC ============ */
.empty-state {
  padding: 40px 20px; text-align: center; color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface); border: 1px solid var(--accent); color: var(--text);
  padding: 12px 20px; border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1px;
  z-index: 1000; transition: transform 0.3s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Share modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px; max-width: 480px; width: 100%;
}
.modal h3 {
  font-family: 'Anton', sans-serif; font-size: 24px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.modal-preview {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 14px; margin-bottom: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  white-space: pre-wrap; word-break: break-word; color: var(--text);
  max-height: 300px; overflow-y: auto; line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
