/* ================================================================
   QUINIELA MUNDIAL FIFA 2026 — Design System
   GA Tech Solutions · Paleta corporativa + atmósfera mundialista
   ================================================================ */

/* ── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --c-bg:           #0D1B3E;
  --c-bg2:          #1A3A6B;
  --c-cyan:         #00AEEF;
  --c-cyan-light:   #33C3F5;
  --c-white:        #FFFFFF;
  --c-text-muted:   #9BAEC8;
  --c-surface:      #F4F8FB;
  --c-success:      #22C55E;
  --c-error:        #EF4444;
  --c-gold:         #F59E0B;
  --c-card:         #112347;
  --c-border:       rgba(0,174,239,.18);

  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 4px 24px rgba(0,0,0,.35);
  --transition:     .2s ease;

  --font-body:      'Barlow', system-ui, sans-serif;
  --font-title:     'Oswald', 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', 'Barlow', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

strong, b {
  font-weight: 600;
}

a { color: var(--c-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-cyan-light); }

/* ── Utilities ─────────────────────────────────────────────────── */
.text-cyan  { color: var(--c-cyan)    !important; }
.text-gold  { color: var(--c-gold)    !important; }
.text-muted { color: var(--c-text-muted) !important; }

.qm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ── Navigation ────────────────────────────────────────────────── */
.qm-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,27,62,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.qm-nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
}

.qm-nav__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-white); font-size: 1.1rem;
  text-decoration: none; font-family: var(--font-title);
}

.qm-nav__trophy { font-size: 1.4rem; }
.qm-nav__title strong { color: var(--c-cyan); }

.qm-nav__links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}

.qm-nav__links a {
  color: var(--c-text-muted); padding: 6px 12px;
  border-radius: var(--radius-sm); font-size: .9rem;
  transition: all var(--transition);
}

.qm-nav__links a:hover,
.qm-nav__links a.active {
  color: var(--c-white);
  background: rgba(0,174,239,.15);
}

.qm-nav__logout {
  background: none; border: 1px solid var(--c-border);
  color: var(--c-text-muted); padding: 5px 14px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: .9rem;
  transition: all var(--transition);
}
.qm-nav__logout:hover { border-color: var(--c-error); color: var(--c-error); }

.qm-nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.qm-nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text-muted); border-radius: 2px;
  transition: var(--transition);
}

/* ── Main & Footer ─────────────────────────────────────────────── */
.qm-main { min-height: calc(100vh - 60px - 50px); }

.qm-footer {
  border-top: 1px solid var(--c-border);
  padding: 14px 20px;
}
.qm-footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--c-text-muted);
}

/* ── Alerts ────────────────────────────────────────────────────── */
.qm-alert {
  padding: 12px 20px; font-size: .9rem; border-radius: 0;
  border-left: 4px solid;
}
.qm-alert--success { background: rgba(34,197,94,.12);  border-color: var(--c-success); color: #bbf7d0; }
.qm-alert--error   { background: rgba(239,68,68,.12);  border-color: var(--c-error);   color: #fecaca; }
.qm-alert--info    { background: rgba(0,174,239,.12);   border-color: var(--c-cyan);    color: #bae6fd; }

/* ── Buttons ───────────────────────────────────────────────────── */
.qm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 22px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; border: 2px solid transparent;
  font-family: var(--font-title);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.qm-btn--primary {
  background: var(--c-cyan); color: var(--c-bg); border-color: var(--c-cyan);
}
.qm-btn--primary:hover {
  background: var(--c-cyan-light); border-color: var(--c-cyan-light); color: var(--c-bg);
}

.qm-btn--outline {
  background: transparent; color: var(--c-cyan); border-color: var(--c-cyan);
}
.qm-btn--outline:hover { background: rgba(0,174,239,.1); }

.qm-btn--lg { padding: 14px 32px; font-size: 1rem; }
.qm-btn--sm { padding: 7px 16px; font-size: .85rem; }
.qm-btn--xs { padding: 4px 10px; font-size: .78rem; }
.qm-btn--full { width: 100%; }

/* ── Cards ─────────────────────────────────────────────────────── */
.qm-card {
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow var(--transition);
}
.qm-card--dark {
  background: var(--c-card);
  border: 1px solid var(--c-border);
}
.qm-card--info {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  text-align: center;
}
.qm-card__title {
  font-size: 1rem; font-weight: 700; color: var(--c-cyan);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}
.qm-card__note { color: var(--c-text-muted); font-size: .82rem; margin-top: 8px; }

/* ── Inputs ────────────────────────────────────────────────────── */
.qm-input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--c-border);
  color: var(--c-white); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.qm-input:focus {
  outline: none; border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0,174,239,.18);
}
.qm-input::placeholder { color: var(--c-text-muted); }
.qm-input option { background: var(--c-bg); }
.qm-input--sm { padding: 7px 12px; font-size: .85rem; }

.qm-input--otp {
  font-size: 2rem; text-align: center; letter-spacing: .4em;
  font-weight: 700; padding: 16px;
  font-family: var(--font-title);
}

.qm-form-group { margin-bottom: 18px; }
.qm-form-group label {
  display: block; margin-bottom: 6px;
  font-size: .85rem; color: var(--c-text-muted); font-weight: 500;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Flags ─────────────────────────────────────────────────────── */
.fi { display: inline-block; border-radius: 2px; vertical-align: middle; }
.qm-flag-xs { width: 16px; height: 12px; font-size: 16px; }
.qm-flag-sm { width: 20px; height: 15px; font-size: 20px; }
.qm-flag-md { width: 24px; height: 18px; font-size: 24px; }
.qm-flag-lg { width: 40px; height: 30px; font-size: 40px; }

/* ── Chips & Badges ────────────────────────────────────────────── */
.qm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500;
}
.qm-chip--success { background: rgba(34,197,94,.18);  color: #86efac; }
.qm-chip--error   { background: rgba(239,68,68,.18);   color: #fca5a5; }
.qm-chip--info    { background: rgba(0,174,239,.18);    color: #7dd3fc; }
.qm-chip--muted   { background: rgba(155,174,200,.15);  color: var(--c-text-muted); }

/* Points badges */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; padding: 2px 8px; border-radius: 6px;
  font-size: .8rem; font-weight: 700;
  font-family: var(--font-title);
}
.badge-exact   { background: rgba(245,158,11,.2); color: var(--c-gold);    border: 1px solid var(--c-gold); }
.badge-correct { background: rgba(34,197,94,.18); color: var(--c-success); border: 1px solid var(--c-success); }
.badge-wrong   { background: rgba(155,174,200,.12); color: var(--c-text-muted); border: 1px solid transparent; }
.badge-pending { background: transparent; color: var(--c-text-muted); border: 1px dashed var(--c-border); }

.badge-exact-inline   { background: rgba(245,158,11,.2);  color: var(--c-gold);    padding: 2px 8px; border-radius: 5px; font-weight: 700; font-family: var(--font-title); }
.badge-correct-inline { background: rgba(34,197,94,.18);  color: var(--c-success); padding: 2px 8px; border-radius: 5px; font-weight: 700; font-family: var(--font-title); }
.badge-wrong-inline   { background: rgba(155,174,200,.12); color: var(--c-text-muted); padding: 2px 8px; border-radius: 5px; font-weight: 700; font-family: var(--font-title); }

/* ── Bolsa chips ───────────────────────────────────────────────── */
.qm-bolsa-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  font-family: var(--font-title);
}
.qm-bolsa-chip--paid    { background: rgba(0,174,239,.2); color: var(--c-cyan); }
.qm-bolsa-chip--pending { background: rgba(155,174,200,.15); color: var(--c-text-muted); }

.qm-bolsa-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid;
}
.qm-bolsa-badge--paid {
  background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3);
  color: #86efac;
}
.qm-bolsa-badge--pending {
  background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3);
  color: #fca5a5;
}
.qm-bolsa-badge__label { font-size: .75rem; color: var(--c-text-muted); }
.qm-bolsa-badge__status { font-weight: 700; font-size: .9rem; }

/* ── Hero ──────────────────────────────────────────────────────── */
.qm-hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  background: url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?w=1600&q=80') center/cover no-repeat;
  overflow: hidden;
}
.qm-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,62,.92) 0%, rgba(26,58,107,.85) 100%);
}
.qm-hero__content {
  position: relative; z-index: 1; text-align: center;
  max-width: 680px; padding: 40px 20px;
}
.qm-hero__badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(0,174,239,.2); border: 1px solid rgba(0,174,239,.4);
  color: var(--c-cyan); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px;
}
.qm-hero__title {
  font-family: var(--font-title); font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800; line-height: 1.05; color: var(--c-white);
  margin-bottom: 16px;
}
.qm-hero__title strong { color: var(--c-cyan); }
.qm-hero__sub {
  font-size: 1.1rem; color: var(--c-text-muted); margin-bottom: 32px;
}

/* ── Countdown ─────────────────────────────────────────────────── */
.qm-countdown {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 28px;
}
.qm-countdown__item {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,174,239,.12); border: 1px solid rgba(0,174,239,.3);
  border-radius: var(--radius-sm); padding: 12px 16px; min-width: 70px;
}
.qm-countdown__num {
  font-size: 2rem; font-weight: 800; color: var(--c-cyan);
  font-variant-numeric: tabular-nums; line-height: 1;
  font-family: var(--font-title);
}
.qm-countdown__item small { color: var(--c-text-muted); font-size: .75rem; margin-top: 4px; }

/* Hero countdown (Landing style) */
.hero-countdown {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
}
.cd-unit {
  background: rgba(0,174,239,0.08);
  border: 1px solid rgba(0,174,239,0.25);
  border-radius: 10px;
  padding: 14px 20px 10px;
  text-align: center;
  min-width: 80px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.cd-unit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,174,239,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cd-unit:hover { 
  border-color: rgba(0,174,239,0.5); 
  background: rgba(0,174,239,0.12);
  transform: translateY(-2px);
}
.cd-num {
  font-family: var(--font-title);
  font-size: 2.6rem; font-weight: 700;
  line-height: 1;
  color: var(--c-white);
  letter-spacing: -1px;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
.cd-unit:hover .cd-num { color: var(--c-cyan); }
.cd-lbl {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 6px;
  font-family: var(--font-title);
}
.cd-sep {
  font-family: var(--font-title);
  font-size: 2rem; font-weight: 700;
  color: rgba(0,174,239,0.4);
  margin: 0 -4px;
}

/* Scoring cards hover effects */
.score-card.exacto:hover {
  border-color: rgba(245,158,11,0.5) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(245,158,11,0.15);
}
.score-card.winner:hover {
  border-color: rgba(34,197,94,0.5) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(34,197,94,0.15);
}
.score-card.miss:hover {
  border-color: rgba(255,255,255,0.1) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* ── Sections ──────────────────────────────────────────────────── */
.qm-section { padding: 60px 20px; }
.qm-section--dark { background: rgba(0,0,0,.2); }
.qm-section__title {
  font-family: var(--font-title); font-size: 1.8rem; font-weight: 800;
  text-align: center; margin-bottom: 32px;
}
.qm-section__note {
  text-align: center; color: var(--c-text-muted); font-size: .9rem; margin-top: 20px;
}

/* ── Scoring Explanation (Compact) ────────────────────────────── */
.qm-scoring-section { margin-bottom: 24px; padding: 20px; }
.qm-scoring-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qm-scoring-header h3 { margin: 0; font-family: var(--font-title); font-size: 1.1rem; }
.qm-scoring-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.qm-scoring-card { padding: 16px; border-radius: 8px; text-align: center; }
.qm-scoring-card__pts { font-family: var(--font-title); font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.qm-scoring-card__title { font-family: var(--font-title); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.qm-scoring-card__example { font-size: 0.72rem; color: var(--c-text-muted); }
.qm-scoring-card__example strong { color: var(--c-white); }
.qm-scoring-card--exact { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.qm-scoring-card--exact .qm-scoring-card__pts { color: var(--c-gold); }
.qm-scoring-card--correct { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }
.qm-scoring-card--correct .qm-scoring-card__pts { color: var(--c-success); }
.qm-scoring-card--miss { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); }
.qm-scoring-card--miss .qm-scoring-card__pts { color: rgba(255,255,255,0.3); }

/* ── Stats Bar (Predictions Page) ─────────────────────────────── */
.qm-stats-bar { margin-bottom: 24px; padding: 20px; overflow-x: auto; }
.qm-stats-bar__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; min-width: 0; }
.qm-stats-bar__left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; flex: 1; min-width: 0; }
.qm-stats-bar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qm-stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; }
.qm-stat-item--wide { min-width: 120px; }
.qm-stat-item__label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-text-muted); font-family: var(--font-title); }
.qm-stat-item__value { font-family: var(--font-title); font-size: 2rem; font-weight: 800; line-height: 1; }
.qm-stat-item__value--gold { color: var(--c-gold); }
.qm-stat-item__value--green { color: #22C55E; }
.qm-stat-item__value--cyan { color: var(--c-cyan); }
.qm-stats-separator { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }
.qm-champion-badge { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(0,174,239,0.08); border: 1px solid rgba(0,174,239,0.2); border-radius: 8px; }
.qm-champion-badge--empty { background: rgba(155,174,200,0.06); border-color: rgba(155,174,200,0.15); }
.qm-champion-badge__label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-text-muted); font-family: var(--font-title); }
.qm-champion-badge__flag { width: 32px; height: 24px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.qm-champion-badge__name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.qm-champion-badge__placeholder { font-weight: 500; font-size: 0.85rem; color: var(--c-text-muted); white-space: nowrap; }
.qm-bolsa-status { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; }
.qm-bolsa-status--paid { background: rgba(0,174,239,0.15); border: 1px solid rgba(0,174,239,0.3); }
.qm-bolsa-status--pending { background: rgba(155,174,200,0.1); border: 1px solid rgba(155,174,200,0.2); }
.qm-bolsa-status__text { font-size: 0.85rem; font-weight: 600; }
.qm-bolsa-status--paid .qm-bolsa-status__text { color: var(--c-cyan); }
.qm-bolsa-status--pending .qm-bolsa-status__text { color: var(--c-text-muted); }

.qm-cards-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.qm-card--info .qm-card__icon { font-size: 2.5rem; margin-bottom: 12px; }
.qm-card--info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.qm-card--info p  { color: var(--c-text-muted); font-size: .9rem; }

/* ── Example table (landing) ───────────────────────────────────── */
.qm-example-table {
  max-width: 500px; margin: 40px auto 0;
  background: var(--c-card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--c-border);
}
.qm-example-table h3 { margin-bottom: 16px; font-size: 1rem; color: var(--c-cyan); }
.qm-example-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--c-border);
  font-size: .9rem; color: var(--c-text-muted);
}
.qm-example-row:last-child { border-bottom: none; }

/* ── Prizes ────────────────────────────────────────────────────── */
.qm-prizes {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.qm-prize {
  text-align: center; padding: 28px 36px;
  border-radius: var(--radius); border: 1px solid var(--c-border);
  background: var(--c-card); min-width: 160px;
}
.qm-prize__medal { font-size: 2.5rem; margin-bottom: 8px; }
.qm-prize__amount { font-size: 1.5rem; font-weight: 800; color: var(--c-cyan); margin-bottom: 6px; }
.qm-prize--gold   { border-color: var(--c-gold); }
.qm-prize--silver { border-color: #94a3b8; }
.qm-prize--bronze { border-color: #b45309; }

/* ── Leaderboard preview ───────────────────────────────────────── */
.qm-lb-preview { display: flex; flex-direction: column; gap: 6px; }
.qm-lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); transition: background var(--transition);
}
.qm-lb-row:hover { background: rgba(0,174,239,.06); }
.qm-lb-row--top  { background: rgba(245,158,11,.06); }
.qm-lb-row--me   { background: rgba(0,174,239,.1); border: 1px solid rgba(0,174,239,.25); }
.qm-lb-pos  { font-weight: 800; min-width: 28px; text-align: center; }
.qm-lb-name { flex: 1; font-size: .9rem; }
.qm-lb-pts  { font-weight: 700; color: var(--c-cyan); font-size: .9rem; }

/* ── Progress bar ──────────────────────────────────────────────── */
.qm-progress-bar {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.1); overflow: hidden; margin: 8px 0;
}
.qm-progress-bar__fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-cyan-light));
  transition: width .4s ease;
}
.qm-progress-label {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--c-text-muted);
}

/* ── Tables ────────────────────────────────────────────────────── */
.qm-table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
}
.qm-table thead th {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-muted); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  font-family: var(--font-title);
}
.qm-table tbody td {
  padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.qm-table tbody tr:hover { background: rgba(0,174,239,.04); }
.qm-table__pos  { font-size: 1.1rem; text-align: center; font-family: var(--font-title); font-weight: 700; }
.qm-table__name { font-weight: 600; }
.qm-table__pts  { font-weight: 800; color: var(--c-cyan); font-size: 1.1rem; text-align: center; font-family: var(--font-title); }
.qm-table__row--top td { color: var(--c-white); }
.qm-table__row--me { background: rgba(0,174,239,.08) !important; }

/* ── Group tabs ────────────────────────────────────────────────── */
.qm-group-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
}
.qm-group-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
  background: var(--c-card);
}
.qm-group-tab:hover { border-color: var(--c-cyan); color: var(--c-white); }
.qm-group-tab.active {
  border-color: var(--c-cyan); color: var(--c-cyan);
  background: rgba(0,174,239,.1);
}
.qm-group-tab__flags { display: flex; gap: 2px; font-size: .75rem; }
.qm-group-tab__progress { font-size: .7rem; color: var(--c-text-muted); }

/* ── Jornada ───────────────────────────────────────────────────── */
.qm-jornada { margin-bottom: 24px; }
.qm-jornada__header {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--c-text-muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}

/* ── Match cards ───────────────────────────────────────────────── */
.qm-match-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-border); margin-bottom: 8px;
  background: var(--c-card);
  border-left: 3px solid var(--c-cyan);
  transition: all var(--transition);
}
.qm-match-card--exact  { border-left-color: var(--c-gold);    background: rgba(245,158,11,.05); }
.qm-match-card--correct{ border-left-color: var(--c-success); background: rgba(34,197,94,.05);  }
.qm-match-card--wrong  { border-left-color: rgba(155,174,200,.3); }

.qm-match-card__team {
  display: flex; align-items: center; gap: 8px; flex: 1;
}
.qm-match-card__team--away { flex-direction: row-reverse; text-align: right; }
.qm-match-card__team-name { font-weight: 500; font-size: .9rem; }

.qm-match-card__score {
  display: flex; align-items: center; gap: 6px;
  min-width: 120px; justify-content: center;
}
.qm-match-card__sep { color: var(--c-text-muted); font-weight: 700; }

.qm-match-card__result-block { text-align: center; }
.qm-match-card__pred  { font-size: .85rem; color: var(--c-text-muted); margin-bottom: 2px; }
.qm-match-card__real  { font-weight: 800; font-size: 1rem; color: var(--c-white); }

/* ── Score inputs ──────────────────────────────────────────────── */
.qm-score-input {
  width: 52px; padding: 8px 4px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  color: var(--c-white); text-align: center;
  font-size: 1.1rem; font-weight: 700;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  -moz-appearance: textfield;
}
.qm-score-input:focus {
  outline: none; border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0,174,239,.18);
}
.qm-score-input::-webkit-outer-spin-button,
.qm-score-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Auth pages ────────────────────────────────────────────────── */
/* auth-page: body is BLOCK (nav stays on top), qm-main centers the card */
.auth-page { display: block; }
.qm-auth-wrapper { width: 100%; max-width: 420px; padding: 20px; margin: 0 auto; }
.qm-auth-card {
  background: var(--c-card); border-radius: var(--radius);
  border: 1px solid var(--c-border); padding: 36px; box-shadow: var(--shadow);
}
.qm-auth-card__header { text-align: center; margin-bottom: 28px; }
.qm-auth-card__logo   { font-size: 3rem; margin-bottom: 12px; }
.qm-auth-card__header h1 { font-size: 1.5rem; margin-bottom: 8px; }
.qm-auth-card__header h1 strong { color: var(--c-cyan); }
.qm-auth-card__header p { color: var(--c-text-muted); font-size: .9rem; }
.qm-auth-card__footer { text-align: center; margin-top: 20px; color: var(--c-text-muted); font-size: .85rem; }
.qm-auth-form { display: flex; flex-direction: column; gap: 4px; }

/* ── Dashboard ─────────────────────────────────────────────────── */
.qm-dashboard { padding-top: 32px; }

.qm-dash-header {
  margin-bottom: 28px;
  background: var(--c-card); border-radius: var(--radius);
  border: 1px solid var(--c-border); padding: 24px;
}
.qm-dash-hero {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.qm-dash-hero__name { font-family: var(--font-title); font-size: 1.6rem; margin-bottom: 16px; }

.qm-dash-stats  { display: flex; gap: 24px; flex-wrap: wrap; }
.qm-dash-stat   { display: flex; flex-direction: column; gap: 2px; }
.qm-dash-stat__val {
  font-size: 1.5rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-title);
}
.qm-dash-stat__label { font-size: .75rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-title); }

.qm-dash-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.qm-dash-left, .qm-dash-right { display: flex; flex-direction: column; gap: 16px; }

.qm-match-mini {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 16px 0;
}
.qm-match-mini__team {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex: 1; font-size: .85rem; font-weight: 600; text-align: center;
}
.qm-match-mini__vs { color: var(--c-text-muted); font-weight: 800; }

.qm-countdown-card { text-align: center; }
.qm-countdown-card .qm-countdown { justify-content: center; }

/* ── Predictions header ─────────────────────────────────────────── */
.qm-predictions-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.qm-predictions-header h1 { font-family: var(--font-title); font-size: 1.8rem; }
.qm-predictions-header__sub {
  display: flex; align-items: center; gap: 8px;
  color: var(--c-text-muted); font-size: .9rem; margin-top: 4px;
}
.qm-predictions-progress { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.qm-predictions-progress__count { font-size: 1rem; font-weight: 700; color: var(--c-cyan); }
.qm-predictions-actions { text-align: center; padding: 24px 0; }

.qm-champion-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(0,174,239,.08); border: 1px solid rgba(0,174,239,.2);
  margin-bottom: 16px; font-size: .9rem; flex-wrap: wrap; gap: 12px;
}

/* ── Champion modal grid ───────────────────────────────────────── */
.qm-champion-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px; max-height: 60vh; overflow-y: auto; margin-top: 16px;
  padding-right: 4px;
}
.qm-champion-option {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-border); cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.qm-champion-option:hover { border-color: var(--c-cyan); background: rgba(0,174,239,.07); }
.qm-champion-option input { display: none; }
.qm-champion-option input:checked + .fi + .qm-champion-option__name,
.qm-champion-option:has(input:checked) {
  border-color: var(--c-cyan); background: rgba(0,174,239,.15);
}
.qm-champion-option__name { font-size: .72rem; color: var(--c-text-muted); font-weight: 500; }

/* ── My Predictions ────────────────────────────────────────────── */
.qm-my-summary {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
  margin-bottom: 24px;
}
.qm-my-summary__stats {
  background: var(--c-card); border-radius: var(--radius);
  border: 1px solid var(--c-border); padding: 20px;
  display: flex; gap: 28px; flex: 1;
}
.qm-my-summary__right { display: flex; flex-direction: column; gap: 12px; min-width: 160px; }

.qm-badges-row { display: flex; flex-wrap: wrap; gap: 12px; }
.qm-badge-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px; border-radius: var(--radius-sm);
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2);
  min-width: 90px; text-align: center;
}
.qm-badge-item__emoji { font-size: 1.8rem; }
.qm-badge-item__name  { font-size: .78rem; font-weight: 700; color: var(--c-gold); }
.qm-badge-item__desc  { font-size: .7rem; color: var(--c-text-muted); }

.qm-history-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid var(--c-border);
  font-size: .85rem;
}
.qm-history-row:last-child { border-bottom: none; }
.qm-history-row--exact   { background: rgba(245,158,11,.05); border-radius: var(--radius-sm); padding: 8px 10px; }
.qm-history-row--correct { background: rgba(34,197,94,.05);  border-radius: var(--radius-sm); padding: 8px 10px; }
.qm-history-row--wrong   { opacity: .7; }
.qm-history-row__teams { display: flex; align-items: center; gap: 6px; flex: 2; min-width: 200px; }
.qm-history-row__pred,
.qm-history-row__result { flex: 1; color: var(--c-text-muted); }
.qm-history-row__pts  { min-width: 60px; text-align: center; }

/* Trend bar */
.qm-trend-bar {
  display: flex; height: 6px; border-radius: 3px; overflow: hidden;
  margin-top: 4px; width: 100%;
}
.qm-trend-bar__seg { display: flex; align-items: center; justify-content: center; font-size: .6rem; }
.qm-trend-bar__seg--home { background: var(--c-cyan); }
.qm-trend-bar__seg--draw { background: var(--c-gold); }
.qm-trend-bar__seg--away { background: var(--c-text-muted); }
.qm-history-row__trend { flex: 1; min-width: 100px; }

/* ── Mini rankings ─────────────────────────────────────────────── */
.qm-mini-rankings { margin-top: 32px; }
.qm-mini-rankings h2 { margin-bottom: 16px; font-family: var(--font-title); }
.qm-mini-rankings__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}

/* ── Public page ───────────────────────────────────────────────── */
.qm-public-header { text-align: center; padding: 32px 0 20px; }
.qm-public-header h1 { font-family: var(--font-title); font-size: 2rem; margin-bottom: 8px; }

.qm-public-match {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--c-border); font-size: .9rem;
}
.qm-public-match:last-child { border-bottom: none; }
.qm-public-match__team { display: flex; align-items: center; gap: 6px; flex: 1; }
.qm-public-match__team:last-of-type { flex-direction: row-reverse; }
.qm-public-match__score {
  font-weight: 800; font-size: 1.1rem; min-width: 60px;
  text-align: center; color: var(--c-cyan);
}

/* ── Modal ─────────────────────────────────────────────────────── */
.qm-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.qm-modal.open { display: flex; }
.qm-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
}
.qm-modal__content {
  position: relative; z-index: 1;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px;
  max-width: 720px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow);
}
.qm-modal__content h2 { margin-bottom: 16px; font-family: var(--font-title); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .qm-nav__links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: 12px; gap: 4px; }
  .qm-nav__links.open { display: flex; }
  .qm-nav__burger { display: flex; }
  .qm-nav__inner { position: relative; }
  .qm-dash-grid { grid-template-columns: 1fr; }
  .qm-match-card { flex-wrap: wrap; }
  .qm-match-card__team { flex-direction: column; text-align: center; }
  .qm-match-card__team--away { flex-direction: column; }
  .qm-predictions-header { flex-direction: column; }
  .qm-hero__title { font-size: 2.8rem; }
  .qm-countdown__num { font-size: 1.5rem; }
  .cd-num { font-size: 2rem; }
  .cd-unit { min-width: 70px; padding: 12px 16px 8px; }
  .scoring-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .qm-my-summary { flex-direction: column; }
  .qm-my-summary__stats { flex-wrap: wrap; gap: 16px; }
  .qm-table { font-size: .8rem; }
  .qm-table thead th, .qm-table tbody td { padding: 8px 6px; }
}

@media (max-width: 480px) {
  .qm-group-tabs { gap: 4px; }
  .qm-group-tab  { padding: 6px 8px; font-size: .75rem; }
  .qm-history-row { flex-direction: column; align-items: flex-start; }
  .qm-prizes { flex-direction: column; align-items: center; }
  .qm-dash-stats { gap: 16px; }
}

/* ================================================================
   EFECTOS VISUALES ADICIONALES v4.1.1
   ================================================================ */

/* ── Flip countdown ────────────────────────────────────────────── */
.qm-countdown--flip {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 28px;
}
.qm-flip-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.qm-flip-item small { color: var(--c-text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

.qm-flip-card {
  position: relative; width: 70px; height: 80px;
  perspective: 300px;
}
.qm-flip-card__top,
.qm-flip-card__bottom,
.qm-flip-card__back-top,
.qm-flip-card__back-bottom {
  position: absolute; left: 0; right: 0;
  overflow: hidden; border-radius: 6px;
  background: #112347; border: 1px solid rgba(0,174,239,.25);
  display: flex; align-items: center; justify-content: center;
}
.qm-flip-card__top    { top: 0;    height: 50%; border-bottom: 1px solid rgba(0,0,0,.4); border-radius: 6px 6px 0 0; align-items: flex-end;   padding-bottom: 2px; }
.qm-flip-card__bottom { bottom: 0; height: 50%; border-top: 1px solid rgba(0,0,0,.4);    border-radius: 0 0 6px 6px; align-items: flex-start; padding-top: 2px;    }
.qm-flip-card__back-top    { top: 0;    height: 50%; border-radius: 6px 6px 0 0; align-items: flex-end;   padding-bottom: 2px; transform-origin: bottom; transform: rotateX(90deg); }
.qm-flip-card__back-bottom { bottom: 0; height: 50%; border-radius: 0 0 6px 6px; align-items: flex-start; padding-top: 2px;    transform-origin: top;    transform: rotateX(-90deg); }

.qm-flip-num {
  font-size: 2.2rem; font-weight: 800; color: var(--c-cyan);
  font-variant-numeric: tabular-nums; line-height: 1; user-select: none;
}

/* Flip animation */
@keyframes flipTop {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(-90deg); }
}
@keyframes flipBottom {
  0%   { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}
.qm-flip-card.flipping .qm-flip-card__top {
  animation: flipTop .25s ease-in forwards;
}
.qm-flip-card.flipping .qm-flip-card__back-bottom {
  animation: flipBottom .25s ease-out .25s forwards;
}

/* ── Flame animation for streak ────────────────────────────────── */
@keyframes flame {
  0%,100% { transform: scaleY(1)   rotate(-3deg); }
  25%      { transform: scaleY(1.1) rotate(3deg);  }
  50%      { transform: scaleY(.95) rotate(-2deg); }
  75%      { transform: scaleY(1.05) rotate(2deg); }
}
.qm-streak-flame {
  display: inline-block;
  animation: flame .9s ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 0 6px rgba(245,158,11,.7));
}
@media (prefers-reduced-motion: reduce) {
  .qm-streak-flame { animation: none; }
}

/* ── Hex pattern background ────────────────────────────────────── */
.qm-section--hex {
  position: relative;
}
.qm-section--hex::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32L28 66zm0 34L0 84V52l28-16 28 16v32L28 100z' fill='none' stroke='%2300AEEF' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.qm-section--hex > * { position: relative; z-index: 1; }

/* Apply hex to hero section */
.qm-hero { background-attachment: fixed; }

/* ── Badge glow for earned badges ──────────────────────────────── */
@keyframes badgeGlow {
  0%,100% { box-shadow: 0 0 8px  rgba(245,158,11,.3); }
  50%      { box-shadow: 0 0 18px rgba(245,158,11,.7); }
}
.qm-badge-item {
  animation: badgeGlow 2.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .qm-badge-item { animation: none; }
}

/* ── Match card open state — cyan left border pulse ────────────── */
@keyframes borderPulse {
  0%,100% { border-left-color: var(--c-cyan); }
  50%      { border-left-color: var(--c-cyan-light); }
}
.qm-match-card:not(.qm-match-card--exact):not(.qm-match-card--correct):not(.qm-match-card--wrong) {
  animation: borderPulse 3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .qm-match-card { animation: none !important; }
}

/* ================================================================
   MOBILE BOTTOM NAV (< 640px) — spec §11.5
   ================================================================ */

.qm-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,27,62,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,174,239,.2);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.qm-bottom-nav__items {
  display: flex; justify-content: space-around; align-items: center;
}

.qm-bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 8px;
  color: var(--c-text-muted); font-size: .62rem; font-weight: 500;
  text-decoration: none; transition: color var(--transition);
  min-width: 56px; text-align: center;
}

.qm-bottom-nav__item:hover,
.qm-bottom-nav__item.active { color: var(--c-cyan); }

.qm-bottom-nav__icon { font-size: 1.3rem; line-height: 1; }

@media (max-width: 640px) {
  .qm-bottom-nav { display: block; }
  .qm-main { padding-bottom: 72px; }   /* prevent content hidden under nav */
  .qm-footer { display: none; }        /* footer redundant with bottom nav */
  .qm-nav__links { display: none !important; }  /* hide top links on mobile */
  .qm-nav__burger { display: none; }             /* no need for burger either */
}

/* ================================================================
   GROUP TAB TRANSITION — spec §11.3 "transición suave al cambiar grupo"
   ================================================================ */
.qm-jornada-area {
  animation: fadeSlideIn .28s ease both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* Oculta el botón guardar cuando el fragmento AJAX detecta deadline cerrado */
.hidden-save { display: none !important; }

/* ── Auth pages (login, verify OTP)
   El nav PERMANECE VISIBLE igual que la página inicial.
   El contenido del qm-main se centra verticalmente. */
body.auth-page .qm-footer     { display: none !important; }
body.auth-page .qm-bottom-nav { display: none !important; }

body.auth-page .qm-main {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;     /* alerts stack ABOVE the card */
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;                  /* space between alert and card */
}
/* Alerts on auth pages: same width as the card */
body.auth-page .qm-alert {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}
/* The auth wrapper must NOT override the centering */
body.auth-page .qm-auth-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 420px;
}

/* ── Logo GA Tech en nav ──────────────────────────────────────── */
.qm-nav__logo {
  height: 32px;
  width: auto;
  display: block;
  /* Logo ya tiene colores propios (círculo azul con ícono blanco) */
  filter: drop-shadow(0 0 4px rgba(0,174,239,.3));
  opacity: .95;
}
.qm-nav__logo:hover { opacity: 1; filter: drop-shadow(0 0 6px rgba(0,174,239,.5)); }

/* ── Auth card refinements ───────────────────────────────────── */
.qm-auth-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 0;
  margin: 0;
}

.qm-auth-card {
  background: var(--c-card);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  padding: 40px 36px;
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
}

.qm-auth-card__logo-img {
  height: 48px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
  /* Logo ya tiene colores propios */
  filter: drop-shadow(0 2px 8px rgba(0,174,239,.4));
}

/* ================================================================
   TEMA MUNDIALISTA — Vistas públicas
   ================================================================ */

/* ── Stadium animated background ───────────────────────────────── */
.wc-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a1628;
}

/* Animated gradient pitch lines */
.wc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      rgba(255,255,255,.025) 48px,
      rgba(255,255,255,.025) 50px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(255,255,255,.025) 48px,
      rgba(255,255,255,.025) 50px
    );
  animation: pitchScroll 18s linear infinite;
}

@keyframes pitchScroll {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 200px, 200px 0; }
}

/* Radial spotlight */
.wc-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%,
    rgba(0,174,239,.08) 0%,
    rgba(13,27,62,.92) 70%,
    rgba(8,12,28,1) 100%);
  pointer-events: none;
}

.wc-hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 40px 20px;
}

/* ── World Cup badge ─────────────────────────────────────────────── */
.wc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(0,174,239,.12);
  border: 1px solid rgba(0,174,239,.35);
  color: var(--c-cyan);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── Hero title with gradient ───────────────────────────────────── */
.wc-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
}
.wc-title__accent {
  background: linear-gradient(135deg, #00AEEF 0%, #33C3F5 40%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wc-subtitle {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin: 16px 0 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Country flag strip ─────────────────────────────────────────── */
.wc-flag-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0;
  opacity: .6;
}
.wc-flag-strip .fi { font-size: 1.8rem; }

/* ── Stats bar ──────────────────────────────────────────────────── */
.wc-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,174,239,.15);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 600px;
  margin: 32px auto 0;
}
.wc-stat {
  flex: 1;
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid rgba(0,174,239,.1);
  position: relative;
}
.wc-stat:last-child { border-right: none; }
.wc-stat::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 30%;
  height: 2px;
  background: var(--c-cyan);
  border-radius: 1px;
}
.wc-stat__val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--c-cyan);
  display: block;
  line-height: 1;
}
.wc-stat__label {
  font-size: .72rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}

/* ── How it works section ───────────────────────────────────────── */
.wc-section {
  padding: 64px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.wc-section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.wc-section__sub {
  text-align: center;
  color: var(--c-text-muted);
  margin-bottom: 40px;
  font-size: .95rem;
}

/* ── Points cards ───────────────────────────────────────────────── */
.wc-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 48px;
}
.wc-point-card {
  background: var(--c-card);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  padding: 24px 16px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.wc-point-card:hover { transform: translateY(-3px); }
.wc-point-card--gold   { border-color: rgba(245,158,11,.4); }
.wc-point-card--green  { border-color: rgba(34,197,94,.3);  }
.wc-point-card--gray   { border-color: rgba(155,174,200,.2); }
.wc-point-card__pts {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.wc-point-card--gold  .wc-point-card__pts { color: var(--c-gold); }
.wc-point-card--green .wc-point-card__pts { color: var(--c-success); }
.wc-point-card--gray  .wc-point-card__pts { color: var(--c-text-muted); }
.wc-point-card__label { color: var(--c-text-muted); font-size: .82rem; font-family: var(--font-title); text-transform: uppercase; letter-spacing: 0.5px; }
.wc-point-card__example { color: var(--c-text-muted); font-size: .75rem; margin-top: 6px; }

/* ── Prizes podium ──────────────────────────────────────────────── */
.wc-prizes-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.wc-prize {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 24px 20px;
  border-radius: var(--radius); border: 1px solid var(--c-border);
  background: var(--c-card); min-width: 140px;
  transition: transform .2s;
}
.wc-prize:hover { transform: translateY(-4px); }
.wc-prize--1 {
  border-color: var(--c-gold);
  background: linear-gradient(180deg, rgba(245,158,11,.07) 0%, var(--c-card) 100%);
  min-width: 160px; padding: 32px 24px;
}
.wc-prize--2 { border-color: rgba(148,163,184,.4); }
.wc-prize--3 { border-color: rgba(180,83,9,.35); }
.wc-prize__medal { font-size: 2.4rem; }
.wc-prize--1 .wc-prize__medal { font-size: 3rem; }
.wc-prize__amount { font-size: 1.4rem; font-weight: 800; color: var(--c-cyan); font-family: var(--font-title); }
.wc-prize--1 .wc-prize__amount { font-size: 1.8rem; color: var(--c-gold); }
.wc-prize__label { font-size: .8rem; color: var(--c-text-muted); font-family: var(--font-title); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Leaderboard public ─────────────────────────────────────────── */
.wc-lb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(0,174,239,.1) 0%, transparent 100%);
  border-bottom: 2px solid var(--c-cyan);
  border-radius: var(--radius) var(--radius) 0 0;
}
.wc-lb-header h2 { margin: 0; font-size: 1.1rem; font-family: var(--font-title); }

.wc-lb-table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}
.wc-lb-table thead th {
  padding: 10px 16px;
  background: rgba(255,255,255,.03);
  color: var(--c-text-muted);
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  text-align: left; border-bottom: 1px solid var(--c-border);
  font-family: var(--font-title);
}
.wc-lb-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.wc-lb-table tbody tr:hover { background: rgba(0,174,239,.04); }
.wc-lb-table tbody tr:nth-child(1) td { background: rgba(245,158,11,.06); }
.wc-lb-table tbody tr:nth-child(2) td { background: rgba(148,163,184,.04); }
.wc-lb-table tbody tr:nth-child(3) td { background: rgba(180,83,9,.04); }

.wc-position { font-size: 1.2rem; font-weight: 800; min-width: 36px; text-align: center; font-family: var(--font-title); }
.wc-name     { font-weight: 600; }
.wc-pts      { font-size: 1.1rem; font-weight: 800; color: var(--c-cyan); text-align: center; font-family: var(--font-title); }
.wc-exact    { color: var(--c-gold); font-weight: 700; text-align: center; font-family: var(--font-title); }

/* ── Public match results ───────────────────────────────────────── */
.wc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.wc-match-result {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .2s, transform .2s;
}
.wc-match-result:hover { border-color: rgba(0,174,239,.3); transform: translateY(-2px); }
.wc-match-result__team {
  display: flex; align-items: center; gap: 7px;
  flex: 1; font-size: .88rem; font-weight: 600;
}
.wc-match-result__team--away { flex-direction: row-reverse; text-align: right; }
.wc-match-result__score {
  font-size: 1.2rem; font-weight: 800;
  color: var(--c-white); min-width: 48px; text-align: center;
  background: rgba(0,174,239,.12);
  border-radius: 6px; padding: 4px 8px;
}
.wc-jornada-tag {
  font-size: .7rem; color: var(--c-text-muted);
  font-weight: 600; letter-spacing: .05em;
}

/* ── Divider with ball ──────────────────────────────────────────── */
.wc-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 48px 0 32px;
}
.wc-divider::before, .wc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,174,239,.2), transparent);
}
.wc-divider__icon { font-size: 1.4rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wc-points-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wc-point-card  { padding: 16px 10px; }
  .wc-point-card__pts { font-size: 2rem; }
  .wc-stats { flex-direction: column; }
  .wc-stat  { border-right: none; border-bottom: 1px solid rgba(0,174,239,.1); }
  .wc-results-grid { grid-template-columns: 1fr; }
}
