/* RangeWater Leadership Summit Scavenger Hunt -- v0.0.3.
   Mobile-first. Real RGW brand colors swap in from the Brand Library before launch. */
:root {
  --rw-navy: #1B3A5F;
  --rw-navy-deep: #122844;
  --rw-accent: #C8A96A;
  --rw-accent-bright: #E0B96E;
  --rw-cream: #F7F3EC;
  --rw-ink: #1A1F2A;
  --rw-muted: #6B7280;
  --rw-line: #E5E0D6;
  --rw-ok: #2F855A;
  --rw-pending: #C8A96A;
  --rw-err: #B43E2C;
  --rw-shadow: 0 6px 24px rgba(18, 40, 68, 0.10);
  --rw-radius: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--rw-ink);
  background: var(--rw-cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--rw-navy); }
button, .btn-link, input, select, textarea { font-family: inherit; }
input[type=text], input[type=email], input[type=number], input[type=password],
input[type=datetime-local], select, textarea, input[type=color] {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--rw-line);
  border-radius: 10px;
  font-size: 16px;
  background: white;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rw-navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 95, 0.12);
}
input[type=color] { padding: 4px; height: 44px; }
textarea { font-family: inherit; }

/* ---------- Brand mark ---------- */
.brand-mark { letter-spacing: 0.18em; text-transform: uppercase; color: var(--rw-navy); font-weight: 700; font-size: 13px; text-decoration: none; display: inline-block; }
.brand-mark.small { font-size: 12px; }
.brand-mark.tiny { font-size: 11px; }

.brand-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rw-navy); }
.brand-logo { height: 26px; width: auto; display: block; flex-shrink: 0; }
.brand-logo.small { height: 22px; }
.brand-logo.tiny { height: 18px; }
.brand-suffix { font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rw-muted); border-left: 1px solid var(--rw-line); padding-left: 10px; line-height: 1; }
.brand-lockup.small .brand-suffix { font-size: 10px; padding-left: 8px; }
.brand-lockup.tiny .brand-suffix { font-size: 10px; padding-left: 8px; }
.brand-lockup.on-dark { color: white; }
.brand-lockup.on-dark .brand-suffix { color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.22); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
  line-height: 1.1;
  text-align: center;
}
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--rw-navy); color: white; }
.btn-primary:hover { background: var(--rw-navy-deep); }
.btn-primary[disabled] { background: var(--rw-muted); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--rw-navy); border: 1.5px solid var(--rw-navy); }
.btn-ghost:hover { background: rgba(27, 58, 95, 0.06); }
.btn:active { transform: translateY(1px); }
.btn-link { background: none; border: 0; color: var(--rw-navy); cursor: pointer; text-decoration: underline; padding: 0; font-size: 13px; }
.btn-danger { color: var(--rw-err); }
.muted { color: var(--rw-muted); font-size: 14px; }
.small { font-size: 13px; }
.center { text-align: center; }

.alert { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.alert-ok { background: rgba(47, 133, 90, 0.10); color: var(--rw-ok); }
.alert-err { background: rgba(180, 62, 44, 0.10); color: var(--rw-err); }
.alert-pending { background: rgba(200, 169, 106, 0.18); color: #7B5E07; }

code { background: var(--rw-cream); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.pill { display: inline-block; background: var(--rw-cream); color: var(--rw-navy); padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.pill-pts { background: var(--rw-navy); color: white; }
.pill-warn { background: rgba(180, 62, 44, 0.10); color: var(--rw-err); }
.pill-ok { background: rgba(47, 133, 90, 0.15); color: var(--rw-ok); }
.pill-pending { background: rgba(200, 169, 106, 0.20); color: #7B5E07; }
.pill-rejected { background: rgba(180, 62, 44, 0.10); color: var(--rw-err); }
.diff-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: var(--rw-navy); margin-right: 2px; vertical-align: middle; }

/* ---------- Landing ---------- */
body.landing {
  /* Stack: subtle white wash for legibility -> the doodle illustration
     -> cream solid color (fallback if the image 404s). */
  background:
    linear-gradient(180deg, rgba(247,243,236,0.40) 0%, rgba(247,243,236,0.65) 100%),
    url(/static/login-bg/mobile.jpg) center/cover no-repeat,
    var(--rw-cream);
  min-height: 100dvh; display: flex; flex-direction: column;
}
@media (min-width: 720px) {
  body.landing {
    background:
      linear-gradient(180deg, rgba(247,243,236,0.35) 0%, rgba(247,243,236,0.55) 100%),
      url(/static/login-bg/tablet.jpg) center/cover no-repeat,
      var(--rw-cream);
  }
}
@media (min-width: 1100px) {
  body.landing {
    background:
      linear-gradient(180deg, rgba(247,243,236,0.30) 0%, rgba(247,243,236,0.50) 100%),
      url(/static/login-bg/desktop.jpg) center/cover no-repeat,
      var(--rw-cream);
  }
}
.landing-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 6vh 20px 4vh; text-align: center; }
.landing-inner { max-width: 540px; width: 100%; }
.landing h1 { font-size: clamp(34px, 9vw, 64px); line-height: 1.05; margin: 14px 0 16px; letter-spacing: -0.02em; font-weight: 800; color: var(--rw-navy); }
.landing h1 .accent { display: block; color: var(--rw-accent); margin-top: 4px; }
.lede { font-size: 17px; max-width: 460px; margin: 0 auto 28px; }
.hint { font-size: 13px; color: var(--rw-muted); max-width: 420px; margin: 16px auto 0; }
.event-meta { margin-top: 24px; padding: 6px 14px; display: inline-block; background: white; border: 1px solid var(--rw-line); border-radius: 999px; font-size: 12px; color: var(--rw-muted); }
.landing-foot { text-align: center; font-size: 12px; color: var(--rw-muted); padding: 18px; }

/* ---------- Auth ---------- */
body.auth {
  background:
    linear-gradient(180deg, rgba(247,243,236,0.50) 0%, rgba(247,243,236,0.75) 100%),
    url(/static/login-bg/mobile.jpg) center/cover no-repeat,
    var(--rw-cream);
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 720px) {
  body.auth {
    background:
      linear-gradient(180deg, rgba(247,243,236,0.40) 0%, rgba(247,243,236,0.65) 100%),
      url(/static/login-bg/tablet.jpg) center/cover no-repeat,
      var(--rw-cream);
  }
}
@media (min-width: 1100px) {
  body.auth {
    background:
      linear-gradient(180deg, rgba(247,243,236,0.35) 0%, rgba(247,243,236,0.60) 100%),
      url(/static/login-bg/desktop.jpg) center/cover no-repeat,
      var(--rw-cream);
  }
}
.auth-wrap { width: 100%; padding: 16px; }
.auth-card { max-width: 420px; margin: 0 auto; background: white; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 24px 22px; box-shadow: var(--rw-shadow); }
.auth-card h1 { font-size: 26px; margin: 12px 0 4px; letter-spacing: -0.01em; color: var(--rw-navy); }
.auth-card form { margin-top: 18px; }
.auth-card label { display: block; margin-bottom: 14px; }
.auth-card label > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-back { text-align: center; margin-top: 20px; font-size: 13px; }

/* ---------- Admin shell ---------- */
.admin-bar { background: white; border-bottom: 1px solid var(--rw-line); position: sticky; top: 0; z-index: 100; }
.admin-bar-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.ham-btn { background: none; border: 0; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; }
.ham-btn span { display: block; width: 22px; height: 2px; background: var(--rw-navy); border-radius: 2px; transition: transform 0.18s ease, opacity 0.18s ease; }
body.nav-open .ham-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .ham-btn span:nth-child(2) { opacity: 0; }
body.nav-open .ham-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.admin-nav { display: none; flex-direction: column; border-top: 1px solid var(--rw-line); background: white; padding: 8px 12px 16px; }
body.nav-open .admin-nav { display: flex; }
.admin-nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-size: 16px; color: var(--rw-ink); font-weight: 500; }
.admin-nav a:hover { background: var(--rw-cream); }
.admin-nav a.active { background: var(--rw-navy); color: white; }
.nav-logout { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; margin-top: 8px; border-top: 1px dashed var(--rw-line); }

.admin-wrap { padding: 22px 16px 60px; max-width: 1200px; margin: 0 auto; }
.admin-wrap h1 { margin: 0 0 6px; font-size: 26px; color: var(--rw-navy); letter-spacing: -0.01em; }
.admin-wrap h2 { margin: 0 0 10px; font-size: 17px; color: var(--rw-navy); }
.hd-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 24px; }
.stat-card { background: white; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 18px 16px; box-shadow: var(--rw-shadow); min-width: 0; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.stat-card.link:hover { border-color: var(--rw-navy); }
.stat-card.hot { border-color: var(--rw-accent); }
.stat-num { font-size: 32px; font-weight: 800; color: var(--rw-navy); line-height: 1; }
.stat-label { margin-top: 8px; font-size: 12px; color: var(--rw-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.next-steps, .card { background: white; border-radius: var(--rw-radius); padding: 20px 22px; border: 1px solid var(--rw-line); margin-top: 16px; box-shadow: var(--rw-shadow); }
.checklist { padding-left: 20px; margin: 8px 0 12px; }
.checklist li { margin-bottom: 6px; }

.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.row-form > label { flex: 1; min-width: 140px; }
.row-form > label.grow { flex: 2; min-width: 200px; }
.row-form button { white-space: nowrap; }
.row-form > label > span { display: block; font-size: 12px; color: var(--rw-muted); margin-bottom: 4px; }

.grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-form label { display: block; }
.grid-form .span2 { grid-column: span 2; }
.grid-form > label > span { display: block; font-size: 12px; color: var(--rw-muted); margin-bottom: 4px; }
.grid-form .checkbox-row { display: flex; align-items: center; gap: 8px; padding-top: 18px; }
.grid-form .checkbox-row input { width: auto; }
.grid-form fieldset { grid-column: span 2; border: 1px dashed var(--rw-line); border-radius: 10px; padding: 14px 16px; }
.grid-form fieldset legend { font-size: 12px; color: var(--rw-muted); padding: 0 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rw-line); }
.tbl thead th { background: var(--rw-cream); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rw-muted); }
.tbl.small { font-size: 13px; }
.tbl select, .tbl input { font-size: 13px; padding: 6px 8px; }
.row-approved td { background: rgba(47, 133, 90, 0.04); }
.row-rejected td { background: rgba(180, 62, 44, 0.04); }
form.inline { display: inline; }
form.inline select, form.inline input { display: inline-block; width: auto; }

.team-chip { display: inline-block; width: 12px; height: 12px; border-radius: 999px; vertical-align: middle; margin-right: 6px; }
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--rw-cream); padding: 4px 12px; border-radius: 999px; font-size: 13px; }

.lb-list { list-style: none; padding: 0; margin: 0; }
.lb-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rw-line); }
.lb-list li:last-child { border-bottom: 0; }
.lb-color { width: 14px; height: 14px; border-radius: 999px; }
.lb-name { flex: 1; font-weight: 600; }
.lb-pts { font-weight: 800; color: var(--rw-navy); }
.lb-done { font-size: 13px; }

/* Registration desk */
.reg-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.reg-row { display: flex; align-items: center; gap: 14px; background: white; padding: 14px 16px; border: 1px solid var(--rw-line); border-radius: 12px; text-decoration: none; color: inherit; }
.reg-row:hover { border-color: var(--rw-navy); }
.reg-row > div:first-child { flex: 1; }
.reg-name { font-weight: 700; }
.reg-team { color: var(--rw-muted); font-size: 13px; }
.reg-arrow { color: var(--rw-navy); font-size: 22px; }

.qr-card { background: white; border-radius: var(--rw-radius); padding: 28px 24px; border: 1px solid var(--rw-line); box-shadow: var(--rw-shadow); text-align: center; max-width: 480px; margin: 18px auto; }
.qr-instructions { color: var(--rw-muted); font-size: 14px; margin: 0 0 18px; }
.qr-image { display: block; max-width: 320px; width: 100%; margin: 0 auto 18px; border: 1px solid var(--rw-line); border-radius: 12px; }
.qr-link { font-size: 12px; word-break: break-all; color: var(--rw-muted); }
.qr-actions { margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Judge queue */
.queue-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 12px; }
.queue-card { background: white; border-radius: var(--rw-radius); padding: 14px 16px; border: 1px solid var(--rw-line); box-shadow: var(--rw-shadow); }
.queue-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.queue-item-title { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.queue-evidence { width: 100%; max-height: 380px; object-fit: contain; border-radius: 10px; background: #000; display: block; margin: 6px 0 10px; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.reject-form { display: flex; gap: 6px; flex: 1; min-width: 180px; }
.reject-form input { flex: 1; padding: 8px 10px; }

/* Announcements */
.ann-list { list-style: none; padding: 0; margin: 0; }
.ann-list li { padding: 10px 0; border-bottom: 1px solid var(--rw-line); }
.ann-list li:last-child { border-bottom: 0; }
.ann-meta { font-size: 12px; color: var(--rw-muted); margin-bottom: 4px; }
.ann-body { font-size: 15px; }
.ann-feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ann-feed li { background: white; border: 1px solid var(--rw-line); border-radius: 12px; padding: 14px 16px; }

/* Map containers */
.map-canvas { height: 65vh; min-height: 380px; border-radius: var(--rw-radius); border: 1px solid var(--rw-line); margin-top: 14px; }

/* Grayscale basemap tiles -- markers stay in color since they live in
   .leaflet-marker-pane, a sibling of .leaflet-tile-pane. */
.leaflet-tile-pane { filter: grayscale(100%) contrast(1.05) brightness(0.98); }
.play-map { height: calc(100dvh - 52px - 56px); border-radius: 0; margin-top: 0; }
.hunt-pin { width: 36px; height: 36px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); border: 2px solid white; }
.me-marker .me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2563EB; border: 3px solid white; box-shadow: 0 0 0 2px rgba(37,99,235,0.4); }
.team-marker { background: transparent; border: 0; }
.tm-dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 2px rgba(0,0,0,0.3); }
.tm-label { position: absolute; left: 24px; top: -2px; background: rgba(255,255,255,0.95); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

/* ---------- Play ---------- */
.play-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--rw-navy); color: white; position: sticky; top: 0; z-index: 100; }
.play-bar .brand-mark { color: white; }
.play-bar-right { display: flex; align-items: center; gap: 12px; }
.play-team { font-size: 13px; opacity: 0.85; }
.play-ham span { background: white; }
body.play-nav-open .play-ham span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.play-nav-open .play-ham span:nth-child(2) { opacity: 0; }
body.play-nav-open .play-ham span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.play-nav { display: none; background: white; border-bottom: 1px solid var(--rw-line); padding: 8px 12px 12px; }
body.play-nav-open .play-nav { display: flex; flex-direction: column; }
.play-nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-size: 16px; color: var(--rw-ink); font-weight: 500; }
.play-nav a.active { background: var(--rw-navy); color: white; }
.play-logout-form { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; margin-top: 8px; border-top: 1px dashed var(--rw-line); }

.play-wrap { padding: 18px 16px 80px; max-width: 720px; margin: 0 auto; }
.play-h1 { margin: 0 0 6px; font-size: 24px; color: var(--rw-navy); letter-spacing: -0.01em; }
.back-link { font-size: 13px; margin: 0 0 10px; }
.status-banner { background: white; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--rw-line); font-size: 14px; margin-bottom: 14px; }
.banner-live { border-color: var(--rw-ok); background: rgba(47, 133, 90, 0.06); }
.banner-draft { background: var(--rw-cream); }
.banner-ended { background: rgba(180, 62, 44, 0.06); border-color: var(--rw-err); }

.team-summary { background: white; border: 2px solid var(--rw-navy); border-radius: var(--rw-radius); padding: 14px 16px; margin-bottom: 14px; }
.ts-line { font-size: 14px; }
.ts-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.ts-num { font-size: 28px; font-weight: 800; color: var(--rw-navy); line-height: 1; }
.ts-lbl { font-size: 11px; color: var(--rw-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.alert-card { background: white; border: 1px solid var(--rw-accent); border-radius: 12px; padding: 14px; }

.play-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.play-tile { display: block; background: white; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 16px; text-decoration: none; color: var(--rw-ink); box-shadow: var(--rw-shadow); }
.play-tile.primary { background: var(--rw-navy); color: white; grid-column: span 2; }
.play-tile.primary .tile-sub { color: rgba(255,255,255,0.75); }
.tile-icon { font-family: monospace; font-size: 11px; letter-spacing: 0.18em; opacity: 0.8; }
.tile-title { font-size: 17px; font-weight: 700; margin-top: 6px; }
.tile-sub { font-size: 13px; color: var(--rw-muted); margin-top: 4px; }

.clock { display: flex; align-items: baseline; gap: 8px; background: white; border: 1px solid var(--rw-line); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.clock-label { font-size: 12px; color: var(--rw-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.clock-time { font-size: 22px; font-weight: 800; color: var(--rw-navy); font-variant-numeric: tabular-nums; }

.item-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.item-link { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--rw-line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: var(--rw-shadow); }
.item-row.item-approved .item-link { border-color: var(--rw-ok); background: rgba(47, 133, 90, 0.04); }
.item-row.item-pending .item-link { border-color: var(--rw-pending); }
.item-row.item-rejected .item-link { border-color: var(--rw-err); }
.item-pts { background: var(--rw-navy); color: white; border-radius: 10px; padding: 6px 10px; min-width: 56px; text-align: center; }
.item-pts-num { font-size: 22px; font-weight: 800; line-height: 1; display: block; }
.item-pts-lbl { font-size: 10px; opacity: 0.8; letter-spacing: 0.04em; }
.item-body { flex: 1; min-width: 0; }
.item-title { font-weight: 700; font-size: 15px; }
.item-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--rw-muted); margin-top: 4px; }
.item-status { display: flex; align-items: center; }

.item-meta-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.item-desc { font-size: 16px; line-height: 1.55; margin: 8px 0 14px; }
.hint-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--rw-line); flex-wrap: wrap; }
.hint-row:last-child { border-bottom: 0; }
.hint-label { font-weight: 700; font-size: 14px; }
.hint-text { font-size: 14px; color: var(--rw-ink); flex: 1; min-width: 200px; background: var(--rw-cream); padding: 8px 12px; border-radius: 8px; }
.sub-history { list-style: none; padding: 0; margin: 0; }
.sub-history li { padding: 8px 0; border-bottom: 1px solid var(--rw-line); font-size: 14px; }
.sub-history li:last-child { border-bottom: 0; }
.sub-history li.sub-approved strong { color: var(--rw-ok); }
.sub-history li.sub-pending strong { color: #7B5E07; }
.sub-history li.sub-rejected strong { color: var(--rw-err); }

/* Big leaderboard */
.lb-big li.lb-row { display: grid; grid-template-columns: 36px 16px 1fr auto auto; align-items: center; gap: 10px; padding: 12px 0; }
.lb-rank { font-weight: 800; font-size: 18px; color: var(--rw-navy); }
.lb-mine { background: rgba(200, 169, 106, 0.10); border-radius: 10px; padding: 12px 10px !important; }

/* ---------- TV ---------- */
body.tv { background: #0a1424; color: white; min-height: 100dvh; font-size: 18px; }
body.tv a { color: var(--rw-accent); }
body.tv .muted { color: rgba(255,255,255,0.6); }
.tv-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.tv-left, .tv-right { padding: 28px 32px; }
.tv-left { background: linear-gradient(160deg, #122844, #0a1424); }
.tv-head .brand-mark { color: var(--rw-accent); font-size: 14px; letter-spacing: 0.24em; }
.tv-head .brand-lockup { gap: 14px; }
.tv-head .brand-logo { height: 36px; }
.tv-head .brand-suffix { color: var(--rw-accent); border-color: rgba(255,255,255,0.22); font-size: 13px; letter-spacing: 0.26em; padding-left: 14px; }
.tv-head h1 { margin: 6px 0 8px; font-size: 38px; line-height: 1.05; }
.tv-clock { font-size: 76px; font-weight: 800; color: var(--rw-accent); font-variant-numeric: tabular-nums; line-height: 1; }
.tv-clock-lbl { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 22px; }
.tv-left h2, .tv-right h2 { font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin: 14px 0 10px; }
.tv-lb { list-style: none; padding: 0; margin: 0; }
.tv-lb-row { display: grid; grid-template-columns: 40px 16px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.10); font-size: 22px; }
.tv-rank { font-weight: 800; color: var(--rw-accent); }
.tv-color { width: 14px; height: 14px; border-radius: 999px; }
.tv-team { font-weight: 700; }
.tv-pts { font-weight: 800; }
.tv-map { height: 58vh; border-radius: 14px; margin-bottom: 18px; background: #1a2a3e; }
.tv-recent { list-style: none; padding: 0; margin: 0; }
.tv-recent li { display: flex; align-items: center; gap: 8px; font-size: 16px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.tv-recent-item { color: rgba(255,255,255,0.85); flex: 1; }
.tv-recent-pts { color: var(--rw-ok); font-weight: 800; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
  .stat-num { font-size: 38px; }
  .admin-wrap { padding: 28px 24px; }
  .admin-wrap h1 { font-size: 30px; }
  .next-steps h2, .card h2 { font-size: 18px; }
  .queue-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
  .play-map { height: calc(100dvh - 52px); }
}

/* Hamburger drawer is now used at all screen widths. The drawer drops
   below the sticky top bar when opened; max-width keeps it tidy on
   desktop so it doesn't span the full viewport for a single column of links. */
@media (min-width: 900px) {
  .admin-nav, .play-nav {
    max-width: 320px;
    margin-left: auto;
    border-left: 1px solid var(--rw-line);
    border-bottom-left-radius: var(--rw-radius);
    box-shadow: 0 12px 28px rgba(18, 40, 68, 0.12);
  }
  .play-nav { border-left-color: rgba(255,255,255,0.12); }
}
