@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600&family=DM+Mono:wght@400;500&family=Inter:wght@400;500&display=swap');

:root {
  /* Navigation and footer stay dark */
  --nav-bg:        #0E1016;
  --footer-bg:     #0E1016;

  /* Content area — light */
  --bg:            #F4F5F8;
  --surface:       #FFFFFF;
  --surface-2:     #F0F1F6;

  /* Borders */
  --rule:          #E2E4ED;
  --rule-strong:   #CBD0E0;

  /* Text */
  --text:          #0E1118;
  --text-2:        #5A5F7A;
  --text-3:        #9499B4;

  /* Accent */
  --accent:        #FF6B2B;
  --accent-dim:    rgba(255,107,43,0.08);

  /* Status */
  --live:          #008A4F;
  --live-dim:      rgba(0,138,79,0.10);

  /* Fonts — unchanged */
  --mono:   'DM Mono', monospace;
  --sans:   'Inter', system-ui, sans-serif;
  --cond:   'Barlow Condensed', sans-serif;
  --radius: 3px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

::selection { background: var(--accent); color: #fff; }

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

/* ── Layout ─────────────────────────────────── */

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.rule {
  height: 1px;
  background: var(--rule);
  margin: 32px 0;
}

/* ── Navigation — dark ──────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 52px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 18px;
  color: #EAEBF0;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: auto;
}

.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.nav-links a.active {
  color: #FFFFFF;
  border-bottom-color: var(--accent);
}

/* ── Hero — light ───────────────────────────── */

.hero {
  background: var(--bg);
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--rule);
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.label-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 58px);
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.6;
}

/* legacy hero used on other pages */
.hero .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--cond);
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.hero .updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
}

/* ── Probability bars ───────────────────────── */

.prob-track {
  height: 3px;
  background: var(--rule-strong);
  border-radius: 0;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  transition: width 0.4s ease;
}

.row-prob-track {
  height: 2px;
  background: var(--rule-strong);
  overflow: hidden;
}

.row-prob-fill {
  height: 100%;
  background: var(--text-3);
}

/* legacy alias — keeps groups/matches bars working */
.prob-bar {
  height: 3px;
  background: var(--rule-strong);
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

/* ── Top 5 featured block ───────────────────── */

.top5 {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  margin: 24px 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.top5-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.1s;
}

.top5-item:last-child { border-bottom: none; }
.top5-item:hover { background: var(--surface-2); }

.top5-item[data-rank="1"] {
  border-left: 3px solid var(--accent);
  padding-left: 21px;
}

.top5-rank {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  min-width: 24px;
}

.top5-flag { font-size: 32px; line-height: 1; flex-shrink: 0; }

.top5-info { flex: 1; min-width: 0; }

.top5-name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}

.top5-detail {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  font-family: var(--sans);
}

.top5-right {
  text-align: right;
  min-width: 120px;
  flex-shrink: 0;
}

.top5-pct {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.pct-unit {
  font-size: 14px;
  color: var(--text-3);
}

/* ── Team crest / initial ───────────────────── */

.team-crest {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-initial {
  width: 28px;
  height: 28px;
  background: var(--rule-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
}

/* ── Ad slot ────────────────────────────────── */

.ad-slot {
  margin: 24px 0;
  overflow: hidden;
}

.ad-slot ins {
  display: block;
}

/* ── Section header ─────────────────────────── */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 0 10px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 0;
}

.section-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.section-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

/* ── Team rows (rank 6–48) ──────────────────── */

.ranking-list { padding-bottom: 16px; }

.team-row {
  display: grid;
  grid-template-columns: 28px 32px 1fr 140px 52px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.1s, padding 0.1s, margin 0.1s;
}

.team-row:last-child { border-bottom: none; }

.team-row:hover {
  background: var(--accent-dim);
  margin: 0 -20px;
  padding: 11px 20px;
}

.rank-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}

.team-flag { font-size: 20px; line-height: 1; }

.team-name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-pct {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  text-align: right;
}

/* ── Source note ────────────────────────────── */

.source-note {
  font-size: 12px;
  color: var(--text-3);
  margin: 28px 0;
  line-height: 1.6;
}

/* ── Standings table ────────────────────────── */

.groups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.group-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.group-section:nth-child(odd) {
  border-right: 1px solid var(--rule);
  padding-right: 32px;
}

.group-section:nth-child(even) {
  padding-left: 32px;
}

.group-header {
  font-family: var(--cond);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.standings {
  width: 100%;
  border-collapse: collapse;
}

.standings th {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
  padding: 8px 6px;
  text-align: right;
  border-bottom: 2px solid var(--text);
}

.standings th:first-child { text-align: left; padding-left: 0; }

.standings td {
  font-size: 14px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  font-family: var(--mono);
  color: var(--text-2);
}

.standings td:first-child {
  text-align: left;
  padding-left: 0;
  font-family: var(--sans);
  color: var(--text);
}

.standings tr:last-child td { border-bottom: none; }

.standings tbody tr:nth-child(1) td:first-child,
.standings tbody tr:nth-child(2) td:first-child {
  border-left: 2px solid var(--accent);
  padding-left: 6px;
}

.standings tr:hover td { background: var(--accent-dim); }

.td-team {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.td-flag { font-size: 16px; line-height: 1; }

.adv-high { color: var(--live); }
.adv-mid  { color: var(--text); }
.adv-low  { color: var(--text-3); }

/* ── Match rows ─────────────────────────────── */

.matches-section { padding: 16px 0 0; }

.date-label {
  font-family: var(--cond);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.03em;
}

.match-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  line-height: 1.4;
}

.chip-live  { color: var(--live); }
.chip-today { color: var(--accent); }
.chip-ft    { color: var(--text-3); }
.chip-group { color: var(--text-3); }

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-team-away {
  flex-direction: row-reverse;
  text-align: right;
}

.match-team-name {
  font-family: var(--cond);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.match-score-center {
  text-align: center;
  min-width: 64px;
}

.match-score {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.match-prob {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

.match-venue {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-top: 6px;
}

.chip-group {
  color: var(--text-3);
  border-color: var(--rule-strong);
}

.no-matches {
  padding: 40px 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-3);
}

/* ── Predict page ───────────────────────────── */

.predict-intro { padding: 20px 0 32px; border-bottom: 1px solid var(--rule); }

.predict-intro h2 {
  font-family: var(--cond);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.predict-intro p { font-size: 14px; color: var(--text-2); }

.step-indicator { display: flex; gap: 8px; margin: 24px 0 16px; }

.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rule);
  border: 1px solid var(--text-3);
}

.step-dot.active { background: var(--accent); border-color: var(--accent); }
.step-dot.done   { background: var(--text-3); border-color: var(--text-3); }

.step-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
}

.predict-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.predict-group h3 {
  font-family: var(--cond);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
}

.team-picker { display: flex; flex-wrap: wrap; gap: 8px; }

.team-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s;
  min-height: 44px;
}

.team-btn:hover { border-color: var(--text-3); color: var(--text); }
.team-btn.selected-1st { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.team-btn.selected-2nd { border-color: var(--text-2); color: var(--text); }

.pick-legend { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.pick-legend span { margin-right: 16px; }
.pick-legend .l1 { color: var(--accent); }
.pick-legend .l2 { color: var(--text-2); }

.bracket-step {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
  display: none;
}
.bracket-step.active { display: block; }

.bracket-step h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 8px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.btn:hover { background: var(--accent); color: #fff; }
.btn-secondary { border-color: var(--rule-strong); color: var(--text-2); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

.step-nav { display: flex; gap: 12px; margin: 28px 0; }

.name-input {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: var(--radius);
  outline: none;
  margin-bottom: 20px;
}

.name-input:focus { border-color: var(--text-3); }
.name-input::placeholder { color: var(--text-3); }

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

.leaderboard-section { padding: 40px 0; }

.leaderboard-section h2 {
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.lb-table { width: 100%; border-collapse: collapse; }

.lb-table th {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.lb-table th:last-child { text-align: right; }

.lb-table td {
  padding: 10px 8px;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--text-2);
}

.lb-table td:first-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  width: 32px;
}

.lb-table td:last-child { font-family: var(--mono); text-align: right; color: var(--accent); }
.lb-table tr.mine td { color: var(--text); }

/* ── Footer — dark ──────────────────────────── */

.site-footer {
  background: var(--footer-bg);
  margin-top: 0;
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 20px;
}

.footer-legal p + p { margin-top: 10px; }

.footer-links { display: flex; gap: 24px; margin-bottom: 12px; }

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-family: var(--sans);
}

.footer-links a:hover { color: rgba(255,255,255,0.75); }

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ── Match Picks tab ────────────────────────── */

.mp-header { margin-bottom: 20px; }

.mp-header h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 4px;
}

.mp-sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.mp-date-header {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  padding: 20px 0 8px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 0;
}

#mp-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

#mp-display-name {
  flex: 1;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  outline: none;
}

#mp-display-name:focus { border-color: var(--accent); }

.mp-locked {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
  font-style: italic;
}

.mp-leaderboard-wrap {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.loading-cell {
  color: var(--text-3);
  padding: 20px 0;
  font-family: var(--mono);
  font-size: 13px;
}

.my-row td {
  background: var(--accent-dim);
  font-weight: 600;
}

.mpc-team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpc-team-away {
  flex-direction: row-reverse;
  text-align: right;
}

.mpc-team-name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

/* ── Predict tabs ───────────────────────────── */

.predict-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 28px;
}

.ptab {
  padding: 10px 24px;
  background: none;
  border: none;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.ptab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ── Group league ────────────────────────────── */

.gl-explainer {
  max-width: 560px;
  margin: 0 auto 28px;
  text-align: center;
}

.gl-explainer p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 6px;
}

.gl-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  max-width: 680px;
  margin: 0 auto 32px;
}

.gl-card {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gl-card h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.gl-card p { font-size: 13px; color: var(--text-2); }

.gl-card input {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}

.gl-card input:focus { border-color: var(--accent); }

.gl-divider {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  padding-top: 64px;
}

.gl-error {
  font-size: 12px;
  color: #e05555;
  font-family: var(--mono);
}

.gl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gl-group-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.gl-code-display {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.gl-section {
  margin-bottom: 32px;
}

.gl-section-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 12px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  min-height: 32px;
}

.btn-ghost {
  border-color: var(--rule-strong);
  color: var(--text-3);
}

.btn-ghost:hover {
  border-color: var(--text-3);
  color: var(--text-2);
  background: transparent;
}

/* ── Match prediction cards ──────────────────── */

.match-predict-card {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 10px;
}

.mpc-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.mpc-team {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.mpc-vs {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
}

.mpc-time {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
  font-family: var(--mono);
}

.mpc-picks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pick-btn {
  padding: 7px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s;
}

.pick-btn:hover { border-color: var(--accent); color: var(--accent); }
.pick-btn.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.mpc-score-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.score-input {
  width: 52px;
  padding: 6px;
  text-align: center;
  font-family: var(--mono);
  font-size: 18px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.score-input:focus { border-color: var(--accent); }

.score-hint {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
}

.mpc-saved {
  margin-top: 10px;
  font-size: 13px;
  color: var(--live);
  font-family: var(--mono);
}

.mpc-locked {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-top: 10px;
  font-style: italic;
}

/* ── Predict legal ───────────────────────────── */

.predict-legal {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--sans);
  line-height: 1.6;
}

/* ── Loading / error ────────────────────────── */

.loading {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  padding: 32px 0;
}

.error-msg {
  font-family: var(--mono);
  font-size: 13px;
  color: #e05555;
  padding: 20px 0;
}

/* ── Mobile ─────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links a { padding: 0 10px; font-size: 12px; }

  .hero-title { font-size: 34px; }
  .hero { padding: 28px 0 20px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 13px; }

  .top5-item { padding: 14px 16px; gap: 12px; }
  .top5-item[data-rank="1"] { padding-left: 13px; }
  .top5-flag { font-size: 26px; }
  .top5-name { font-size: 18px; }
  .top5-pct  { font-size: 22px; }
  .top5-right { min-width: 80px; }

  .team-row {
    grid-template-columns: 24px 26px 1fr 80px 40px;
    gap: 8px;
  }

  .groups-grid { grid-template-columns: 1fr; }

  .group-section:nth-child(odd) { border-right: none; padding-right: 0; }
  .group-section:nth-child(even) { padding-left: 0; }

  .standings-wrap { overflow-x: auto; }

  .match-team-name { font-size: 15px; }
  .match-score { font-size: 17px; }
  .match-teams { gap: 8px; }
  .team-crest  { width: 22px; height: 22px; }
  .team-initial { width: 22px; height: 22px; font-size: 8px; }

  .team-picker { gap: 6px; }
  .team-btn { font-size: 13px; padding: 6px 10px; }

  .gl-options {
    grid-template-columns: 1fr;
  }
  .gl-divider { display: none; }
  .ptab { padding: 10px 16px; font-size: 13px; }
}

/* ── Save-code banner ──────────────────────────────── */
.save-code-banner {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 6px;
  margin: 16px 0;
}
.scb-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.scb-label {
  font-size: 12px;
  color: var(--text-3);
  display: block;
  margin-bottom: 4px;
}
.scb-code {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
}
.scb-hint {
  font-size: 12px;
  color: var(--text-2);
  display: block;
  margin-top: 6px;
  max-width: 360px;
  line-height: 1.5;
}
.scb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.scb-dismiss {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
}
.scb-dismiss:hover { color: var(--text); }

/* ── Restore bar ───────────────────────────────────── */
.restore-bar {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}
.restore-bar-label {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.restore-bar input {
  width: 130px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.restore-bar input:focus { border-color: var(--accent); }

@media (max-width: 640px) {
  .scb-code { font-size: 22px; }
  .restore-bar { flex-direction: column; align-items: flex-start; }
  .restore-bar input { width: 160px; }
}

/* ── Lock option cards ─────────────────────────────── */
.lock-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.lock-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lock-option:hover { background: var(--surface-2); }
.lock-option input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.lock-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim, rgba(var(--accent-rgb, 37,99,235), 0.06));
}
.lock-option-body { flex: 1; }
.lock-option-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.lock-icon { font-size: 16px; }
.lock-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.lock-badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.lock-badge-hard    { color: #e53e3e; }
.lock-badge-popular { color: var(--accent); }
.lock-badge-open    { color: var(--live); }
.lock-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.lock-warn {
  font-size: 11px;
  color: #e53e3e;
  margin-top: 4px;
  font-family: var(--mono);
}

/* ── Form fields ───────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}
.field-hint {
  font-size: 11px;
  color: var(--text-3);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Lock status badge ─────────────────────────────── */
.lock-status {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid currentColor;
  display: inline-block;
}
.lock-status.lock-open   { color: var(--live); }
.lock-status.lock-active { color: var(--accent); }
.lock-status.lock-closed { color: var(--text-3); }

/* ── Create card wider on landing ─────────────────── */
.gl-card-create { max-width: 100%; }

/* ── Share modal ───────────────────────────────────── */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}
.share-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 201;
  background: var(--surface);
  border-radius: 12px;
  padding: 32px 28px;
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  flex-direction: column;
  gap: 20px;
}
.share-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.share-close {
  position: absolute;
  top: -12px;
  right: -8px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-3);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.share-close:hover { color: var(--text); }
.share-header { text-align: center; }
.share-trophy { font-size: 40px; display: block; margin-bottom: 8px; }
.share-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 6px;
}
.share-subtitle { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.share-link-row { display: flex; gap: 8px; }
.share-url-input {
  flex: 1;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg);
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: -6px;
}
.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn-whatsapp { background: #25D366; color: #fff; }
.share-btn-facebook { background: #1877F2; color: #fff; }
.share-btn-twitter  { background: #000;    color: #fff; }
.share-btn-native   { background: var(--surface-2); color: var(--text); border: 1px solid var(--rule-strong); }
.share-note { font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.5; }
.share-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  position: relative;
}
.share-divider::before,
.share-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--rule);
}
.share-divider::before { left: 0; }
.share-divider::after  { right: 0; }
.share-group-link {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.share-group-link:hover { background: var(--surface-2); }

@media (max-width: 480px) {
  .share-modal  { padding: 24px 16px; }
  .share-buttons { grid-template-columns: 1fr 1fr; }
  .lock-option  { padding: 10px 12px; }
}

/* ── Predict unified page ────────────────────────────── */

/* Group status bar */
.predict-group-bar {
  margin: 20px 0 12px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
}
.pgb-solo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pgb-solo-text {
  font-size: 14px;
  color: var(--text-2);
  flex: 1;
  min-width: 100px;
}
#pgb-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pgb-group-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pgb-group-name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.pgb-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.pgb-group-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pgb-leave {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.pgb-leave:hover { color: var(--text); }

/* How to play */
.predict-how-to {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-2);
}
.predict-how-to summary {
  cursor: pointer;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  user-select: none;
}
.predict-how-to summary::-webkit-details-marker { display: none; }
.predict-how-to summary::before {
  content: '▸ ';
  color: var(--accent);
}
.predict-how-to[open] summary::before { content: '▾ '; }
.predict-how-to-list {
  margin: 12px 0 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.45;
}
.predict-how-to-list code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Scoring rules strip */
.picks-rules {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.rule-sep { color: var(--rule-strong); }

/* Stage banners */
.stage-banner {
  margin: 28px 0 0;
  padding: 14px 0 10px;
  border-top: 2px solid var(--text);
}
.stage-banner-inner {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.stage-fill-btn {
  margin-left: auto;
  font-size: 12px;
}
.stage-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.stage-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

/* TBD match card */
.match-predict-tbd {
  opacity: 0.5;
  pointer-events: none;
}
.mpc-tbd {
  color: var(--text-3) !important;
  font-style: italic;
}

/* Pick correctness badges */
.pick-result {
  font-family: var(--mono);
  font-size: 12px;
  margin-left: 8px;
}
.pick-perfect { color: var(--accent); font-weight: 600; }
.pick-correct { color: var(--live); }
.pick-wrong   { color: var(--text-3); }

/* Predicted champion bar */
.predict-suggest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin: 0 0 12px;
  background: var(--surface);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
.psb-text { margin: 0; flex: 1; min-width: 200px; }

.predict-champion-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin: 20px 0 8px;
  background: linear-gradient(135deg, rgba(232, 122, 42, 0.12), rgba(232, 122, 42, 0.04));
  border: 1px solid rgba(232, 122, 42, 0.35);
  border-radius: var(--radius);
}
.pcb-trophy { font-size: 28px; line-height: 1; }
.pcb-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.pcb-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-family: var(--mono);
}
.pcb-name {
  font-family: var(--cond);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.pcb-meta { font-size: 12px; color: var(--text-2); }
.pcb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tbd-preview-note {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
  font-style: italic;
}

/* Score summary strip */
.predict-score-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 28px 0;
}
.pss-score { display: flex; align-items: baseline; gap: 4px; }
.pss-pts {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.pss-label { font-family: var(--mono); font-size: 14px; color: var(--text-3); }
.pss-detail { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; }

/* Group create/join modal */
.group-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 201;
  background: var(--surface);
  border-radius: 10px;
  padding: 32px 28px;
  width: min(560px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.group-modal-inner { position: relative; }
.gm-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 6px;
}
.gm-sub { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.gm-switch {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
}
.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}
.btn-text:hover { opacity: 0.75; }
.restore-error {
  display: block;
  font-size: 13px;
  color: #e53e3e;
  margin-bottom: 8px;
}

/* Leader picks grid modal */
.picks-grid-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 201;
  background: var(--surface);
  border-radius: 10px;
  padding: 28px;
  width: min(640px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.pgm-inner { position: relative; }
.pgm-title { font-family: var(--cond); font-weight: 600; font-size: 22px; margin-bottom: 6px; }
.pgm-sub   { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.pgm-date  {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 14px 0 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.pgm-match        { margin-bottom: 16px; }
.pgm-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pgm-teams { font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--text); }
.pgm-time  { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.pgm-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: var(--radius);
}
.pgm-member-row:nth-child(odd) { background: var(--surface-2); }
.pgm-member-name { font-size: 13px; color: var(--text-2); }
.pgm-pick {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pgm-pick-correct { color: var(--live); font-weight: 600; }
.pgm-pick-wrong   { color: var(--text-3); }
.pgm-pts { font-size: 11px; color: var(--accent); }

@media (max-width: 640px) {
  .predict-group-bar  { padding: 12px 16px; }
  #pgb-group          { flex-direction: column; align-items: flex-start; }
  .pgb-group-actions  { width: 100%; }
  .predict-champion-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .pcb-actions { width: 100%; }
  .pcb-actions .btn-outline { flex: 1; text-align: center; }
  .predict-how-to { padding: 10px 14px; font-size: 13px; }
  .group-modal        { padding: 20px 16px; width: calc(100vw - 16px); max-height: 92vh; }
  .picks-grid-modal   { padding: 20px 16px; width: calc(100vw - 16px); }
  .tbd-team-row       { flex-direction: column; align-items: stretch; gap: 8px; }
  .tbd-team-row .mpc-vs { text-align: center; font-size: 12px; }
  .pick-btn           { flex: 1; min-width: calc(50% - 4px); text-align: center; }
}

/* ── Team picker modal ───────────────────────────────── */
.tp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
}
.tp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 301;
  background: var(--surface);
  border-radius: 10px;
  width: min(420px, calc(100vw - 24px));
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.tp-header {
  display: flex;
  gap: 8px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.tp-search {
  flex: 1;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-family: var(--sans);
}
.tp-search:focus { border-color: var(--accent); }
.tp-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}
.tp-close:hover { color: var(--text); }
.tp-list {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}
.tp-team-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: var(--text);
  font-family: var(--sans);
  transition: background 0.1s;
}
.tp-team-btn:hover { background: var(--surface-2); }
.tp-team-btn.tp-excluded,
.tp-team-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.tp-excl-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: auto;
  font-style: italic;
}
.tp-crest {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── TBD match card ──────────────────────────────────── */
.tbd-team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tbd-slot { flex: 1; min-width: 0; }
.tbd-pick-slot {
  width: 100%;
  padding: 10px 14px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  background: none;
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-align: center;
  box-sizing: border-box;
}
.tbd-pick-slot:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tbd-pick-slot--bracket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  min-height: 64px;
  justify-content: center;
}
.tbd-slot-label {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.25;
  text-align: center;
}
.tbd-slot-action {
  font-size: 11px;
  color: var(--text-3);
}
.tbd-picked-team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tbd-picked-team:hover { border-color: var(--accent); }
.tbd-picked-team--auto {
  border-style: dashed;
  opacity: 0.92;
}
.tbd-picked-name { font-size: 14px; }
.tbd-picked-role {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 400;
  font-family: var(--sans);
  white-space: normal;
}
.chip-match-num {
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
}
.tp-header-text { flex: 1; min-width: 0; }
.tp-slot-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.tp-team-group {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-3);
  flex-shrink: 0;
}
.tp-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.tp-inline-crest {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.tbd-hint {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-top: 4px;
  text-align: center;
}

@media (max-width: 640px) {
  .tp-modal    { max-height: 80vh; }
  .tbd-team-row { gap: 8px; }
}
