/* NON CRAP League — stylesheet */

:root {
  --green:       #1a7a4a;
  --green-dark:  #145c37;
  --green-light: #e8f5ee;
  --gold:        #c9a84c;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --border:      #d1d5db;
  --bg:          #f9fafb;
  --white:       #ffffff;
  --red:         #dc2626;
  --red-light:   #fef2f2;
  --radius:      8px;
  --shadow:      0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 25px rgba(0,0,0,0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Auth page ──────────────────────────────────────────────────────────── */

body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
}

.auth-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo-img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}
.auth-logo p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.motto {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */

.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  background: var(--green);
  color: var(--white);
  width: 100%;
}
button:hover:not(:disabled), .btn:hover { background: var(--green-dark); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-sm     { padding: 0.35rem 0.75rem; font-size: 0.8rem; width: auto; }
.btn-ghost  { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-light); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #b91c1c; }

.error {
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  background: var(--red-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

/* ── App shell ──────────────────────────────────────────────────────────── */

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar-logo {
  height: 32px;
  width: auto;
}
.topbar-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.topbar-nav { display: flex; gap: 0.25rem; }
.topbar-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.topbar-nav a:hover, .topbar-nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.topbar-user button {
  width: auto;
  background: rgba(255,255,255,0.15);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}
.topbar-user button:hover { background: rgba(255,255,255,0.25); }

.main-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── Cards & panels ─────────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ── Leaderboard ────────────────────────────────────────────────────────── */

.leaderboard {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}
.leaderboard td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.leaderboard tr:last-child td { border-bottom: none; }
.leaderboard tr:hover td { background: var(--green-light); }

.rank-1 .rank-num { color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.rank-2 .rank-num { color: #9ca3af; font-weight: 700; }
.rank-3 .rank-num { color: #b45309; font-weight: 700; }

.points-big {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
}

/* ── Round table ────────────────────────────────────────────────────────── */

.round-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.round-table th {
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.round-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.round-table tr:last-child td { border-bottom: none; }
.round-table tr:hover td { background: var(--green-light); }

.score-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.score-pill.correct   { background: #dcfce7; color: #166534; }
.score-pill.incorrect { background: #fee2e2; color: #991b1b; }
.score-pill.partial   { background: #fef9c3; color: #854d0e; }
.score-pill.voided    { background: var(--red-light); color: var(--red); }

/* Score explanation tooltip trigger */
.explanation-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-top: 0.1rem;
}

/* ── Tier badges ────────────────────────────────────────────────────────── */

.tier-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tier-fulltime  { background: #dbeafe; color: #1d4ed8; }
.tier-parttime  { background: #ede9fe; color: #6d28d9; }
.tier-panel     { background: #fef3c7; color: #92400e; }
.tier-other     { background: #f3f4f6; color: #374151; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
  width: auto;
}
.tab-btn:hover { color: var(--green); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }

/* ── Misc ───────────────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--green-light);
  color: var(--green);
}
.badge-gold { background: #fef3c7; color: #92400e; }

[x-cloak] { display: none !important; }

.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state p { margin-top: 0.5rem; font-size: 0.9rem; }

/* ── Typeahead ──────────────────────────────────────────────────────────── */

.typeahead-wrap {
  position: relative;
}
.typeahead-wrap input {
  width: 100%;
}
.typeahead-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}
.typeahead-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.typeahead-item:last-child { border-bottom: none; }
.typeahead-item:hover,
.typeahead-item.focused { background: var(--green-light); }
.typeahead-item.suggest {
  color: var(--green);
  font-style: italic;
  font-size: 0.85rem;
}
.typeahead-item.suggest:hover { background: var(--green-light); }
.pts-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.pts-label.pts-1 { color: #1d4ed8; }
.pts-label.pts-2 { color: #6d28d9; }
.pts-label.pts-3 { color: #92400e; }
.pts-label.pts-4 { color: #374151; }

/* ── Intel feed ─────────────────────────────────────────────────────────── */

.intel-item {
  border-left: 3px solid var(--green);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.6rem;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
}
.intel-item.has-clash {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.intel-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.clash-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  color: #78350f;
}
.clash-warning .icon { flex-shrink: 0; font-style: normal; }

/* ── Prediction entry grid ──────────────────────────────────────────────── */

.fixture-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.fixture-header {
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.fixture-header strong { font-size: 0.95rem; }
.fixture-body { padding: 0.75rem 1rem 1rem; }
.role-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.role-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Appointments season table ──────────────────────────────────────────── */

.appt-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.appt-table th {
  background: var(--green); color: #fff; padding: 5px 6px;
  font-size: .72rem; white-space: nowrap; font-weight: 700;
}
.appt-table td { padding: 3px 3px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.appt-table tbody tr:hover { background: var(--green-light); }

.appt-select {
  width: 100%; min-width: 130px; max-width: 180px;
  padding: 3px 5px; font-size: .78rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: #fff; cursor: pointer;
}
.appt-select.appt-dirty { background: #fef9c3; border-color: #d97706; }

/* ── Schedule tab inline editing ────────────────────────────────────────── */

.input-inline {
  padding: 3px 6px; font-size: .82rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: #fff; font-family: inherit;
}
.input-inline:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px rgba(26,122,74,0.12); }
input[type="datetime-local"].input-inline { font-size: .78rem; }

.form-label {
  display: block; font-size: .72rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: .15rem; text-transform: uppercase; letter-spacing: .02em;
}

.schedule-round-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: .5rem;
  box-shadow: var(--shadow);
}
.schedule-round-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .75rem; cursor: pointer; user-select: none; gap: .5rem;
}
.schedule-round-header:hover { background: var(--green-light); border-radius: var(--radius) var(--radius) 0 0; }
.schedule-round-body { padding: .5rem .75rem .75rem; border-top: 1px solid var(--border); }

/* ── Notification inbox badge ───────────────────────────────────────────── */

.inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  margin-left: 4px;
}

/* ── Compact tip-entry grid ─────────────────────────────────────────────── */

.mode-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.mode-toggle .btn {
  border-radius: 0;
  border: none;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  width: auto;
}
.mode-toggle .btn.active {
  background: var(--green);
  color: var(--white);
}
.mode-toggle .btn:not(.active) {
  background: var(--white);
  color: var(--green);
}
.mode-toggle .btn:not(.active):hover { background: var(--green-light); }

.tip-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.tip-grid th {
  background: var(--green);
  color: var(--white);
  padding: 0.45rem 0.65rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tip-grid td {
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tip-grid tr:last-child td { border-bottom: none; }
.tip-grid tr:hover td { background: var(--green-light); }
.grid-input {
  padding: 0.3rem 0.5rem !important;
  font-size: 0.85rem !important;
  min-width: 0;
}
.tip-saved-ok   { font-size: .72rem; white-space: nowrap; flex-shrink: 0; color: var(--green); }
.tip-saved-warn { font-size: .72rem; white-space: nowrap; flex-shrink: 0; color: #92400e; }
.tip-flash-err  { font-size: .72rem; white-space: nowrap; flex-shrink: 0; color: #dc2626; font-weight: 600; }

@keyframes tip-flash {
  0%   { opacity: 0; transform: translateX(4px); }
  18%  { opacity: 1; transform: translateX(0); }
  72%  { opacity: 1; }
  100% { opacity: 0; }
}
.tip-flash-msg { animation: tip-flash 2.5s ease-out forwards; font-weight: 600; }

/* ── Sparklines ─────────────────────────────────────────────────────────── */

.sparkline-wrap {
  display: flex;
  gap: 2px;
  align-items: center;
}
.spark-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: default;
}
.spark-zero { background: #f3f4f6; color: #9ca3af; }
.spark-low  { background: #dcfce7; color: #166534; }
.spark-mid  { background: #86efac; color: #14532d; }
.spark-high { background: #22c55e; color: #fff; }

/* ── By-round breakdown table ───────────────────────────────────────────── */

.by-round-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.by-round-table th {
  background: var(--green);
  color: var(--white);
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.by-round-table th:first-child { text-align: left; min-width: 80px; }
.by-round-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.by-round-table td:first-child { text-align: left; font-weight: 600; }
.by-round-table tr:last-child td { border-bottom: none; }
.by-round-table tr:hover td { background: var(--green-light); }
.by-round-pts {
  display: inline-block;
  min-width: 22px;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  font-weight: 600;
  text-align: center;
}
.by-round-pts-0    { color: #9ca3af; }
.by-round-pts-low  { background: #dcfce7; color: #166534; }
.by-round-pts-mid  { background: #86efac; color: #14532d; }
.by-round-pts-high { background: #22c55e; color: #fff; }

/* ── Hedge / picket UI ──────────────────────────────────────────────────── */

.hedge-btn {
  padding: 0.15rem 0.5rem !important;
  font-size: 0.72rem !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}
.hedge-btn:hover, .hedge-btn.hedge-active {
  background: #fef3c7 !important;
  color: #78350f !important;
}
.picket-badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 0.3rem;
}

/* ── Season-wide tips accordion ─────────────────────────────────────────── */

.tips-round-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: .5rem;
  overflow: hidden;
}

.tips-round-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}

.tips-round-header:hover { background: var(--green-light); }

/* Locked grid: grey out rows */
.tip-grid-locked tbody tr td { opacity: .55; }
.tip-grid-locked tbody tr:hover td { background: transparent; opacity: .55; }

/* ── Flat season Predictions view ────────────────────────────────────────── */

.season-round-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: .75rem;
  overflow: hidden;
}

.season-round-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: .5rem;
}

.season-deadline {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.round-totals-row td {
  background: var(--bg);
  border-top: 2px solid var(--border);
  font-size: .85rem;
}

/* ── Round status badges ─────────────────────────────────────────────────── */

.round-status-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.round-status-active  { background: #dcfce7; color: #15803d; }
.round-status-upcoming { background: #dbeafe; color: #1d4ed8; }

/* ── Past rounds: greyed out ─────────────────────────────────────────────── */

.round-past {
  border-color: #e5e7eb;
  opacity: .7;
}

.round-past .season-round-header {
  background: #f3f4f6;
}

/* ── Active round: green highlight ───────────────────────────────────────── */

.round-active {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow);
}

.round-active .season-round-header {
  background: var(--green-light);
}

/* ── Upcoming round: blue tint ───────────────────────────────────────────── */

.round-upcoming {
  border-color: #93c5fd;
}

.round-upcoming .season-round-header {
  background: #eff6ff;
}

/* ── Bottom nav (mobile) ─────────────────────────────────────────────────── */

.bottom-nav { display: none; }

.bottom-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  padding: .25rem .125rem;
  transition: color .15s, background .15s;
  text-align: center;
  border: none;
  background: none;
  white-space: nowrap;
}
.bottom-nav-item.active { color: var(--green); background: var(--green-light); }
.bottom-nav-item:hover  { color: var(--green); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* Shell */
  .main-content   { padding: .75rem .75rem 72px; }
  .topbar         { padding: 0 .75rem; }
  .topbar-nav     { display: none; }
  .topbar-user > span { display: none; }        /* hide username, keep sign-out */

  /* Bottom nav */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    z-index: 100;
    justify-content: space-around;
    align-items: stretch;
  }

  /* Cards */
  .card           { padding: .9rem 1rem; }
  .section-header { flex-wrap: wrap; gap: .4rem; }
  .section-header h2 { font-size: 1rem; }

  /* Leaderboard — hide Correct + Predictions columns on mobile */
  .leaderboard th:nth-child(4),
  .leaderboard td:nth-child(4),
  .leaderboard th:nth-child(5),
  .leaderboard td:nth-child(5) { display: none; }
  .leaderboard th, .leaderboard td { padding: .5rem .5rem; }
  .points-big { font-size: 1.05rem; }

  /* Tip entry grid — hide Intel column on mobile */
  .tip-grid th:nth-child(3),
  .tip-grid td:nth-child(3) { display: none; }
  .tip-grid th { font-size: .72rem; padding: .35rem .4rem; }
  .tip-grid td { padding: .35rem .4rem; }

  /* Tabs */
  .tab-btn { padding: .4rem .55rem; font-size: .78rem; }

  /* Round table (all tips & scores) */
  .round-table         { font-size: .78rem; }
  .round-table th,
  .round-table td      { padding: .35rem .45rem; }

  /* By-round breakdown */
  .by-round-table      { font-size: .75rem; }
  .by-round-table th,
  .by-round-table td   { padding: .3rem .4rem; }

  /* Tips accordion */
  .tips-round-header   { gap: .25rem; padding: .6rem .75rem; }
}
