/* ── Variables & Reset ──────────────────────────────────────────────────────── */
:root {
  --bg:            #0b1622;
  --bg-card:       #111e2e;
  --bg-hover:      #19293d;
  --bg-input:      #0d1a28;
  --border:        #1e3348;
  --border-light:  #2a4560;
  --text:          #e2eaf4;
  --text-muted:    #5c7a99;
  --text-dim:      #3d5870;
  --accent:        #f97316;   /* orange — basketball */
  --accent-dim:    rgba(249,115,22,.15);
  --accent-hover:  #ea6c10;
  --blue:          #3b82f6;
  --blue-dim:      rgba(59,130,246,.15);
  --correct:       #22c55e;
  --correct-dim:   rgba(34,197,94,.12);
  --incorrect:     #ef4444;
  --incorrect-dim: rgba(239,68,68,.10);
  --pending:       #f59e0b;
  --projected:     rgba(249,115,22,.08);
  --team-h:        34px;
  --game-w:        130px;
  --round-gap:     2px;
  --radius:        8px;
  --radius-sm:     5px;
  --shadow:        0 2px 12px rgba(0,0,0,.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }
button { cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .85em;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.nav-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  flex: 1;
  letter-spacing: -.3px;
}
.nav-link {
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-sep { color: var(--border-light); font-size: 16px; }
.nav-user { color: var(--text-muted); font-size: 12px; font-weight: 500; }
.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.btn-link:hover { color: var(--text); background: var(--bg-hover); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  font-size: 13px;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: #22364e; border-color: #3a5678; }
.btn-danger   { background: rgba(127,29,29,.6); color: #fca5a5; border: 1px solid #7f1d1d; }
.btn-danger:hover { background: rgba(153,27,27,.7); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder { color: var(--text-dim); }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

/* ── Auth / Setup Pages ──────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,.08) 0%, transparent 60%), var(--bg);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo {
  font-size: 40px;
  text-align: center;
  margin-bottom: 10px;
  animation: bounce-in .5s ease;
}
@keyframes bounce-in {
  0%   { transform: scale(.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.auth-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -.4px;
}
.auth-subtitle { color: var(--text-muted); text-align: center; font-size: 13px; margin-bottom: 28px; }
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: all .15s;
}
.auth-tab.active { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.auth-error {
  background: var(--incorrect-dim);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  display: none;
}
.auth-error.show { display: block; }
.auth-links { text-align: center; margin-top: 12px; }
.auth-links-sep { color: var(--text-dim); margin: 0 6px; font-size: 12px; }
.auth-help-link { background: none; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.auth-help-link:hover { color: var(--accent); }
.auth-help { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; display: none; }
.auth-help.show { display: block; }

/* ── Page Shell ──────────────────────────────────────────────────────────────── */
.page { padding: 20px 24px; max-width: 1400px; }
.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.page-title { font-size: 20px; font-weight: 800; flex: 1; letter-spacing: -.3px; }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.02);
}
.card-body { padding: 20px; }

/* ── Banners ─────────────────────────────────────────────────────────────────── */
.pool-locked-banner {
  background: linear-gradient(135deg, #78350f, #92400e);
  color: #fef3c7;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 9px;
  border-bottom: 1px solid #b45309;
}
.pool-open-banner {
  background: var(--correct-dim);
  border-bottom: 1px solid rgba(34,197,94,.2);
  color: var(--correct);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

/* ── Tickers ─────────────────────────────────────────────────────────────────── */
.ticker-strip {
  overflow: hidden;
  white-space: nowrap;
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(249,115,22,.25);
  padding: 7px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .3px;
}
.ticker-strip-msg {
  background: var(--blue-dim);
  border-bottom: 1px solid rgba(59,130,246,.25);
  color: var(--blue);
}
.ticker-strip-score {
  background: var(--correct-dim);
  border-bottom: 1px solid rgba(34,197,94,.2);
  color: var(--correct);
}
.ticker-inner {
  display: inline-block;
  animation: tickerScroll 70s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Pick-Distribution Hover Tooltip ─────────────────────────────────────────── */
.pick-tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  padding: 12px 14px;
  min-width: 220px;
  max-width: 340px;
  pointer-events: none;
  font-size: 12px;
}
.pick-tt-cols {
  display: flex;
  gap: 0;
}
.pick-tt-col {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
}
.pick-tt-col:first-child { padding-left: 0; }
.pick-tt-col:last-child  { padding-right: 0; }
.pick-tt-team {
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.pick-tt-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.pick-tt-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.pick-tt-entry {
  color: var(--text-muted);
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick-tt-empty {
  color: var(--text-dim);
  font-style: italic;
}

/* ── Bracket Selector Bar ────────────────────────────────────────────────────── */
.bracket-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.bracket-tabs { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.bracket-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: background .15s, color .15s, border-color .15s;
}
.bracket-tab:hover:not(.active) { background: var(--bg-hover); color: var(--text); }
.bracket-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.bracket-tab-del {
  font-size: 10px;
  opacity: .6;
  line-height: 1;
  padding: 1px 2px;
  border-radius: 2px;
}
.bracket-tab-del:hover { opacity: 1; background: rgba(0,0,0,.2); }

/* ── Bracket Top Bar ─────────────────────────────────────────────────────────── */
.bracket-topbar {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-wrap: wrap;
}
.pick-progress-wrap {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pick-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.pick-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .3s ease;
  width: 0%;
}
.pick-count-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Bracket Layout ──────────────────────────────────────────────────────────── */
.bracket-wrapper { overflow-x: auto; padding: 20px 16px 32px; }
.bracket-layout  { display: flex; align-items: stretch; gap: 0; width: max-content; }
.bracket-half    { display: flex; flex-direction: column; }
.region-block    { display: flex; flex-direction: column; }
.region-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  padding: 4px 0 8px;
  opacity: .8;
}
.region-rounds { display: flex; gap: var(--round-gap); }
.round-col     { display: flex; flex-direction: column; }
.round-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  padding-bottom: 6px;
  width: var(--game-w);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* E8 stagger: overlap into the adjacent S16 column gap */
.round-col[data-round="4"]:not([data-rev]) {
  margin-left: -26px;
  position: relative;
  z-index: 1;
}
.round-col[data-round="4"][data-rev] {
  margin-right: -26px;
  position: relative;
  z-index: 1;
}

.game-wrap { display: flex; align-items: center; justify-content: center; position: relative; }

/* ── Game Cards ──────────────────────────────────────────────────────────────── */
.game {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: var(--game-w);
  background: var(--bg-card);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: box-shadow .15s;
}
.game:hover { box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.game-champ {
  border: 2px solid var(--accent);
  box-shadow: 0 0 16px var(--accent-dim);
}

/* ── Team Rows ───────────────────────────────────────────────────────────────── */
.team-row {
  height: var(--team-h);
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
  cursor: default;
  user-select: none;
}
.team-row:last-child { border-bottom: none; }
.team-row.clickable  { cursor: pointer; }
.team-row.clickable:hover { background: var(--bg-hover); }
/* projected comes first so .picked (below) always wins when both are present */
.team-row.projected      { background: transparent; }
.team-row.picked         { background: rgba(249,115,22,.32); box-shadow: inset 3px 0 0 var(--accent); }
.team-row.actual-winner  { background: var(--correct-dim); }
.team-row.correct        { background: var(--correct-dim); }
.team-row.incorrect      { background: var(--incorrect-dim); }
.team-row.eliminated     { opacity: .45; }
.team-row.tbd            { color: var(--text-dim); font-style: italic; }

/* ── Game time row ───────────────────────────────────────────────────────────── */
.game-time-row {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 2px 6px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.15);
  font-weight: 500;
  letter-spacing: .3px;
  white-space: nowrap;
}
.game-time-live {
  color: var(--correct) !important;
  font-weight: 700;
}
.game-live {
  outline: 2px solid #00e676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.45);
}
.live-dot {
  color: var(--incorrect);
  font-size: 8px;
  vertical-align: middle;
  animation: livepulse 1.2s ease-in-out infinite;
}
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Team logos ──────────────────────────────────────────────────────────────── */
.team-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}
.team-logo-spacer {
  display: inline-block;
  width: 18px;
  flex-shrink: 0;
}

.team-seed {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 14px;
  text-align: right;
  font-weight: 600;
}
.team-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.team-name.proj-name { color: var(--accent); font-style: italic; opacity: .85; }
.team-name.proj-eliminated { text-decoration: line-through; opacity: .55; }
.team-check     { font-size: 13px; color: var(--correct);   font-weight: 700; flex-shrink: 0; }
.team-x         { font-size: 13px; color: var(--incorrect); font-weight: 700; flex-shrink: 0; }
.team-score-live { font-size: 12px; font-weight: 700; color: var(--text); flex-shrink: 0; }

/* ── Final Four / Center section ─────────────────────────────────────────────── */
.ff-section {
  display: flex;
  flex-direction: row;      /* horizontal: [FF61] [Champ] [FF62] */
  align-items: center;      /* vertically centered in the full bracket height */
  justify-content: center;
  gap: 6px;
  padding: 28px 10px 8px;   /* top padding for the label */
  position: relative;
}
.ff-label {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}
.ff-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ff-sublabel {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── Champion box ────────────────────────────────────────────────────────────── */
.champion-box {
  margin-top: 8px;
  width: var(--game-w);
  min-height: 52px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(249,115,22,.12);
  padding: 10px 8px 8px;
  text-align: center;
  box-shadow: 0 0 20px rgba(249,115,22,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.champ-empty {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 4px;
}
.champ-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 5px;
}
.champ-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.champ-seed {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}
.champ-inner-eliminated { opacity: .6; }
.champ-logo-eliminated  { filter: grayscale(1); }
.champ-name-eliminated  { text-decoration: line-through; color: var(--incorrect); }
.champ-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.champ-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--pending);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Leaderboard ─────────────────────────────────────────────────────────────── */
#lbContent { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lb-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.lb-table th, .lb-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.lb-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  background: var(--bg);
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tbody tr:hover   { background: var(--bg-hover); }
.lb-rank       { font-weight: 700; color: var(--text-muted); width: 44px; }
.lb-rank.top3  { color: var(--pending); }
.lb-score      { font-weight: 800; font-size: 17px; color: var(--accent); }
.lb-max        { font-size: 12px; color: var(--text-muted); }
.lb-correct    { font-size: 12px; color: var(--text-muted); }
.lb-round      { font-size: 12px; color: var(--text-muted); text-align: center; white-space: nowrap; }
.lb-name-link  { color: var(--text); font-weight: 600; }
.lb-name-link:hover { color: var(--accent); }
.lb-you        { font-size: 11px; color: var(--blue); margin-left: 6px; font-weight: 600; }
.lb-you-row    { background: var(--blue-dim) !important; }
.lb-champ-header { text-align: center; }
.lb-champ-cell { text-align: center; width: 44px; padding: 6px 8px; }
.lb-champ-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.lb-champ-none { color: var(--text-dim); }

/* ── Admin ───────────────────────────────────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-grid > * { min-width: 0; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border-light);
}
.badge-green  { background: var(--correct-dim); color: var(--correct); border-color: transparent; }
.badge-red    { background: var(--incorrect-dim); color: var(--incorrect); border-color: transparent; }
.badge-blue   { background: var(--blue-dim); color: var(--blue); border-color: transparent; }
.badge-orange { background: var(--accent-dim); color: var(--accent); border-color: transparent; }

#resultsContent { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.results-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.results-table th, .results-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.results-table th {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  background: var(--bg);
}
.results-table tr:last-child td { border-bottom: none; }

.round-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.round-tab {
  padding: 5px 13px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
}
.round-tab:hover  { color: var(--text); background: var(--bg-hover); }
.round-tab.active { background: var(--accent); color: #fff; border-color: transparent; }

.scoring-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.scoring-inputs .form-group label { font-size: 10px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info { flex: 1; }
.toggle-info strong { display: block; font-size: 13px; margin-bottom: 2px; }
.toggle-info span   { font-size: 12px; color: var(--text-muted); }
.toggle { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border-light);
  border-radius: 11px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-track::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s;
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::before { transform: translateX(16px); }

.invite-code {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 6px;
  text-align: center;
  color: var(--accent);
  margin: 8px 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ── Toast ───────────────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0d2642;
  border: 1px solid var(--blue);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  z-index: 999;
  box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Misc ────────────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; justify-content: center; align-items: center; padding: 60px; }
.empty-state    { text-align: center; color: var(--text-muted); padding: 40px 20px; font-size: 14px; }

/* ── Fox Pick Icons ──────────────────────────────────────────────────────────── */
.fox-pick-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Profile Page ────────────────────────────────────────────────────────────── */
.profile-bracket-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.profile-bracket-row:last-child { margin-bottom: 0; }
