/* ═══════════════════════════════════════════════
   FIFA WC 2026 – Mirrored Bracket Layout
   ═══════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────── */
:root {
  --bg:          #0a0e1a;
  --bg2:         #0d1220;
  --surface:     rgba(255,255,255,0.05);
  --border:      rgba(255,255,255,0.09);
  --gold:        #f5c518;
  --gold2:       #ffd95e;
  --blue:        #1a6fe8;
  --blue-light:  #4da3ff;
  --green:       #22c55e;
  --red:         #ef4444;
  --bronze:      #cd7f32;
  --text:        #e8edf5;
  --text-muted:  #6b7a99;

  /* Bracket sizing — fluid, fits 1366px+ without horizontal scroll */
  --card-w:    clamp(90px,  8.4vw, 152px);
  --center-w:  clamp(102px, 9.5vw, 172px);
  --col-gap:   clamp(11px,  1.55vw, 30px);
  --bracket-h: clamp(500px, calc(100vh - 48px), 960px);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg) url('bg.png') center center / cover no-repeat fixed;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
input { font-family: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── Header ─────────────────────────────────── */
.header {
  background: linear-gradient(135deg, #0d1630 0%, #111827 50%, #0d1630 100%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.hi { font-size: 1.4rem; }
.header-text { flex: 1; }
.header-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--gold), #fff, var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-text p {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-sim-float {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 200;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(109,40,217,0.5);
  transition: all 0.2s;
}
.btn-sim-float:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(109,40,217,0.65);
}

.btn-sim-open {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(109,40,217,0.4);
}
.btn-sim-open:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(109,40,217,0.6);
}

/* ── Champion Banner ────────────────────────── */
#champion-section { border-bottom: 1px solid var(--border); }
.champ-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 32px;
  transition: background 0.4s;
}
.champ-trophy   { font-size: 1.6rem; }
.champ-flag-big { display: flex; align-items: center; }
.champ-flag-big .flag-img { width: 56px; height: auto; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,0.4); display: block; }
.champ-info     { text-align: center; line-height: 1.3; }
.champ-label {
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  font-weight: 700;
}
.champ-name {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.champ-sub {
  font-size: 0.7rem;
  margin-top: 1px;
}
.tbd-champ  { background: transparent; }
.tbd-champ .champ-name { color: var(--text-muted); }
.pred-champ { background: rgba(26,111,232,0.08); }
.pred-champ .champ-name { color: var(--blue-light); }
.pred-champ .champ-sub  { color: var(--blue-light); opacity: 0.8; }
.real-champ {
  background: rgba(245,197,24,0.1);
  animation: glow-gold 2s ease-in-out infinite alternate;
}
.real-champ .champ-name { color: var(--gold); }
.real-champ .champ-sub  { color: var(--gold2); }

@keyframes glow-gold {
  from { box-shadow: inset 0 0 30px rgba(245,197,24,0.06); }
  to   { box-shadow: inset 0 0 50px rgba(245,197,24,0.18); }
}

/* ── Bracket Scroll Wrapper ─────────────────── */
.scroll-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 clamp(6px, 1vw, 20px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  /* NOTE: intentionally not display:flex + align-items:center — centering an
     overflowing flex child that way causes mobile browsers to snap the
     scroll position back to center on touch drag. margin:auto on the
     children below centers safely when content fits, and scrolls normally
     when it overflows. */
}
.scroll-wrap::-webkit-scrollbar { height: 6px; }
.scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

/* ── Round Labels ───────────────────────────── */
.bracket-labels {
  display: grid;
  grid-template-columns: repeat(4, var(--card-w)) var(--center-w) repeat(4, var(--card-w));
  column-gap: var(--col-gap);
  width: max-content;
  margin: 0 auto;
  padding: 8px 0 4px;
}
.rl {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(245,197,24,0.22);
}
.rl-center {
  font-size: 0.68rem;
  color: var(--gold2);
  border-bottom-color: rgba(255,217,94,0.35);
}

/* ── Bracket Holder & Grid ──────────────────── */
.bracket-holder {
  position: relative;
  width: max-content;
  margin: 0 auto;
}
.bracket {
  display: grid;
  grid-template-columns: repeat(4, var(--card-w)) var(--center-w) repeat(4, var(--card-w));
  column-gap: var(--col-gap);
  height: var(--bracket-h);
  min-width: max-content;
  padding: 6px 0;
}

/* ── Bracket Columns ────────────────────────── */
.b-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
.b-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.b-center {
  justify-content: center;
  gap: 14px;
}
.center-final {
  display: flex;
  align-items: center;
  justify-content: center;
}
.center-third-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.center-third-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bronze);
  text-align: center;
}
.center-third-wrap .mc {
  width: var(--center-w);
  border-color: rgba(205,127,50,0.3);
  background: rgba(205,127,50,0.06);
}
.center-third-wrap .mc:hover {
  border-color: rgba(205,127,50,0.6);
  box-shadow: 0 4px 18px rgba(205,127,50,0.18);
}
.b-center .mc {
  width: var(--center-w);
  border-color: rgba(245,197,24,0.3);
  background: linear-gradient(145deg, rgba(245,197,24,0.08), rgba(255,255,255,0.04));
}
.b-center .mc:hover {
  border-color: rgba(245,197,24,0.6);
  box-shadow: 0 4px 24px rgba(245,197,24,0.2);
}

/* ── Compact Match Card ─────────────────────── */
.mc {
  width: var(--card-w);
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 4px 9px 3px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
  position: relative;
  user-select: none;
}
.mc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  border-color: rgba(77,163,255,0.45);
  background: rgba(255,255,255,0.08);
}
.mc::after {
  content: 'details';
  position: absolute;
  bottom: 3px;
  right: 7px;
  font-size: 0.45rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.18s;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mc:hover::after { opacity: 0.5; }
.mc-done {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.055);
}
.mc-tbd {
  opacity: 0.38;
  pointer-events: none;
}

/* Team row */
.mc-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 3px;
  border-radius: 5px;
  min-width: 0;
  transition: background 0.15s;
}
.mc-win { background: rgba(245,197,24,0.14); }
.mc-lose { opacity: 0.35; }

.mc-flag {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.mc-flag .flag-img {
  width: clamp(20px, 2vw, 26px);
  height: clamp(13px, 1.35vw, 17px);
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
  display: block;
}
.flag-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 19px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
}
.flag-ph-lg {
  width: 48px;
  height: 32px;
  font-size: 0.75rem;
}
.mc-pct {
  font-size: clamp(0.5rem, 0.55vw, 0.65rem);
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}
.mc-win .mc-pct { color: var(--gold); }

.mc-abbr {
  font-size: clamp(0.42rem, 0.46vw, 0.56rem);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.mc-win .mc-abbr { color: rgba(245,197,24,0.75); }

/* Middle score row */
.mc-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 2px 0 1px;
}
.mc-status {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.45rem;
  font-weight: 700;
  flex-shrink: 0;
}
.st-done { background: rgba(34,197,94,0.25); color: var(--green); }
.st-pred { background: rgba(26,111,232,0.25); color: var(--blue-light); }
.st-tbd  { background: rgba(255,255,255,0.08); color: var(--text-muted); }

.mc-score {
  font-size: clamp(0.58rem, 0.62vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.sc-done { color: var(--text); }
.sc-pred { color: var(--blue-light); }

/* ── SVG Connector Lines ────────────────────── */
.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.connector-paths path {
  fill: none;
  stroke: rgba(77,163,255,0.26);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Third Place Section ─────────────────────── */
#third-place-section {
  border-top: 1px solid var(--border);
  padding: 10px 24px 16px;
}
.third-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.third-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.third-card-slot .mc {
  width: 200px;
  border-color: rgba(205,127,50,0.3);
  background: rgba(205,127,50,0.06);
}
.third-card-slot .mc:hover {
  border-color: rgba(205,127,50,0.6);
  box-shadow: 0 4px 18px rgba(205,127,50,0.18);
}

/* ── Result Modal ────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }

.modal {
  background: linear-gradient(145deg, #131929, #0f1520);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: var(--text); }

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  padding-right: 30px;
}
.modal-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 0;
}
.mt  { display: flex; align-items: center; gap: 6px; }
.mt .flag-img { width: 28px; height: auto; border-radius: 2px; }
.pred-side .flag-img { width: 36px; height: auto; border-radius: 3px; }
.mvs { color: var(--text-muted); font-size: 0.8rem; }

.modal-meta {
  display: flex;
  gap: 14px;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.modal-section { margin-top: 16px; }
.modal-section h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.src-tag {
  font-size: 0.58rem;
  background: rgba(26,111,232,0.2);
  color: var(--blue-light);
  padding: 1px 7px;
  border-radius: 99px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* Prediction display inside modal */
.modal-pred-box { }
.pred-disp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  text-align: center;
}
.pred-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  flex: 1;
  min-width: 0;
}
.pred-side strong {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pred-pct-lg {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--blue-light);
}
.pred-vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.pred-score-lg {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2px;
}
.pred-lbl {
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.pred-bar-wrap2 {
  display: flex;
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
}
.pred-bar-a2 { background: var(--blue); border-radius: 99px 0 0 99px; }
.pred-bar-b2 { background: var(--blue-light); border-radius: 0 99px 99px 0; }

/* Score inputs */
.score-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.score-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.score-group label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}
.score-group input {
  width: 64px;
  height: 48px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.score-group input::-webkit-outer-spin-button,
.score-group input::-webkit-inner-spin-button { -webkit-appearance: none; }
.score-group input:focus { border-color: var(--blue); background: rgba(26,111,232,0.08); }
.score-divider { font-size: 1.4rem; color: var(--text-muted); font-weight: 300; padding-top: 22px; }
.pen-note { font-size: 0.65rem; color: var(--text-muted); margin-top: 8px; text-align: center; }

.modal-buttons {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.btn-save, .btn-reset, .btn-cancel {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-save {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 2px 10px rgba(34,197,94,0.3);
}
.btn-save:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-reset {
  background: rgba(239,68,68,0.15);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-reset:hover { background: rgba(239,68,68,0.25); }
.btn-cancel {
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-cancel:hover { background: rgba(255,255,255,0.12); color: var(--text); }

/* ── Simulator Panel ─────────────────────────── */
.sim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.sim-overlay.hidden { display: none; }

.sim-panel {
  background: linear-gradient(145deg, #13122b, #0f1025);
  border: 1px solid rgba(109,40,217,0.35);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  max-height: 90vh;
  overflow-y: auto;
}
.sim-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  padding-right: 30px;
  background: linear-gradient(90deg, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sim-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.sim-options { display: flex; flex-direction: column; gap: 10px; }
.sim-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-align: left;
  transition: all 0.2s;
}
.sim-btn:hover { transform: translateX(3px); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }
.sim-btn-icon { font-size: 1.3rem; flex-shrink: 0; }
.sim-btn-text { display: flex; flex-direction: column; gap: 2px; }
.sim-btn-text strong { font-size: 0.88rem; font-weight: 700; }
.sim-btn-text small  { font-size: 0.7rem; color: var(--text-muted); }
.sim-btn-pred  { border-color: rgba(26,111,232,0.35); }
.sim-btn-pred:hover  { border-color: rgba(26,111,232,0.7); background: rgba(26,111,232,0.1); }
.sim-btn-rand  { border-color: rgba(245,197,24,0.3); }
.sim-btn-rand:hover  { border-color: rgba(245,197,24,0.6); background: rgba(245,197,24,0.07); }
.sim-btn-step  { border-color: rgba(34,197,94,0.3); }
.sim-btn-step:hover  { border-color: rgba(34,197,94,0.6); background: rgba(34,197,94,0.08); }
.sim-btn-clear { border-color: rgba(239,68,68,0.3); }
.sim-btn-clear:hover { border-color: rgba(239,68,68,0.6); background: rgba(239,68,68,0.08); }

.sim-log {
  margin-top: 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.72rem;
  line-height: 1.7;
}
.sim-log.hidden { display: none; }
.log-entry   { color: var(--text-muted); }
.log-winner  { color: var(--gold); font-weight: 700; }
.log-pens    { color: var(--blue-light); }
.log-done    { color: var(--green); font-weight: 700; font-size: 0.78rem; }
.log-info    { color: var(--text-muted); font-style: italic; }

/* ── Hover Popup ─────────────────────────────── */
.mc-popup {
  position: fixed;
  z-index: 400;
  background: linear-gradient(145deg, #141b2e, #0f1520);
  border: 1px solid rgba(77,163,255,0.4);
  border-radius: 14px;
  padding: 16px 18px;
  width: 300px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.65), 0 0 0 1px rgba(77,163,255,0.1);
  pointer-events: none;
  animation: popupIn 0.18s cubic-bezier(0.16,1,0.3,1);
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.9) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.mcp-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mcp-win {
  background: rgba(245,197,24,0.14);
}
.mcp-flag { flex-shrink: 0; display: flex; align-items: center; }
.mcp-flag .flag-img { width: 48px; height: auto; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,0.4); display: block; }
.mcp-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.mcp-win .mcp-name { color: var(--gold); }
.mcp-pct {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--blue-light);
}
.mcp-win .mcp-pct { color: var(--gold); }

.mcp-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin: 5px 6px;
}
.mcp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 99px;
}
.mcp-bar-b .mcp-bar-fill-b {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
  border-radius: 99px;
  margin-left: auto;
}
/* right-align team B bar */
.mcp-bar-b {
  direction: rtl;
}

.mcp-score-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 6px;
}
.mcp-score {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
}
.mcp-done { color: var(--text); }
.mcp-pred { color: var(--blue-light); }
.mcp-slbl {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.mcp-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────── */
/* clamp() handles fluid scaling down to ~950px wide.
   Below that, horizontal scroll activates as a safety net. */
@media (max-width: 1200px) {
  .header { height: 54px; }
  .champ-bar { padding: 7px 16px; }
  .champ-name { font-size: clamp(0.95rem, 1.1vw, 1.3rem); }
  .champ-flag-big .flag-img { width: clamp(36px, 3.5vw, 56px); }
}
