/* ============================================================
   World Cup 2026 Sweepstake
   ============================================================ */

:root {
  --bg:           #000000;
  --bg-2:         #0B0B0C;
  --bg-card:      #141416;
  --bg-card-2:    #1C1C1F;

  --mint:         #7CF5CE;
  --mint-dim:     rgba(124,245,206,0.14);
  --lime:         #C6FF3A;

  --yellow-card:  #FFD000;
  --red-card:     #FF3B5C;

  --text:         #FFFFFF;
  --text-muted:   #8A8A90;
  --text-dim:     #3A3A3F;

  --border:       rgba(255,255,255,0.08);

  --fifa-grad: linear-gradient(90deg,#5B5BFF 0%,#FF3B3B 22%,#FF8A2B 44%,#C6FF3A 68%,#7CF5CE 88%,#9B5BFF 100%);

  --radius-card:  20px;
  --radius-sm:    14px;
  --radius-pill:  999px;
  --radius-flag:  9px;   /* used for TR + BL only */

  --font-head: 'Anton', 'Arial Black', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font:      'Inter', system-ui, sans-serif;

  --maxw: 860px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(124,245,206,0.06), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(155,91,255,0.05), transparent 70%);
}
img { display: block; }
a { color: inherit; text-decoration: none; }

/* ── Pill Nav ── */
.pill-nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 200;
}
.pill-nav-track {
  display: flex; align-items: center; gap: 4px;
  background: rgba(18,18,20,0.88);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.pill-tab {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--text-muted);
  transition: background .18s, color .18s, transform .14s;
}
.pill-tab:hover { color: #fff; background: rgba(255,255,255,0.07); }
.pill-tab.active { background: var(--mint); color: #04140F; }
.tab-icon {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Sections ── */
.section { position: relative; z-index: 1; padding: 48px 0; }
.first-section { padding-top: 96px; }
.section-alt { background: rgba(255,255,255,0.015); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

.section-header { margin-bottom: 24px; }
.section-eyebrow {
  font-family: var(--font-cond); font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 2px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(44px, 10vw, 88px); line-height: 0.9;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.loading-msg, .no-data {
  font-family: var(--font-cond); font-size: 17px;
  color: var(--text-muted); text-align: center; padding: 40px 16px;
}

/* ── Flags — rounded top-right + bottom-left only ── */
.flag-img, .flag-img-sm, .flag-img-lg {
  object-fit: cover;
  border-radius: 0 var(--radius-flag) 0 var(--radius-flag);
  border: 1px solid rgba(255,255,255,0.22);
  flex-shrink: 0;
}
.flag-img    { width: 46px; height: 31px; }
.flag-img-sm { width: 30px; height: 20px; }
.flag-img-lg { width: 62px; height: 42px; }
.flag-placeholder {
  display: inline-block;
  border-radius: 0 var(--radius-flag) 0 var(--radius-flag);
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-card-2);
  width: 46px; height: 31px; flex-shrink: 0;
}

/* ── Prize Cards ── */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.prize-card {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--fifa-grad) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.prize-header {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 8px;
}
.prize-name {
  font-family: var(--font-cond); font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.prize-amount {
  font-family: var(--font-head); font-size: 30px; line-height: 1;
  color: var(--lime); flex-shrink: 0;
}
.prize-scope {
  font-family: var(--font-cond); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.prize-leader { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.prize-current {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.prize-current-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prize-current-info { display: flex; flex-direction: column; min-width: 0; }
.leader-name {
  font-family: var(--font-cond); font-size: 16px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.leader-metric {
  font-family: var(--font-cond); font-size: 16px; font-weight: 700;
  color: var(--lime); letter-spacing: 0.04em;
}
.leader-participant {
  font-family: var(--font-cond); font-size: 15px; font-weight: 700;
  color: var(--mint); flex-shrink: 0; text-align: right;
}
.prize-tbd { display: flex; align-items: center; }
.prize-tbd-text {
  font-family: var(--font-cond); font-size: 15px; font-weight: 600;
  color: var(--text-muted);
}

/* skeleton */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; grid-column: 1/-1; }
.skeleton-card { height: 120px; border-radius: var(--radius-card); background: linear-gradient(100deg, var(--bg-card) 30%, var(--bg-card-2) 50%, var(--bg-card) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── List Rows — scorers + discipline ── */
.list-rows { display: flex; flex-direction: column; gap: 10px; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--fifa-grad) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  padding: 12px 16px 12px 12px;
}
.list-row.top-row {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--fifa-grad) border-box;
  border-width: 2px;
}
.list-rank {
  font-family: var(--font-head); font-size: 20px;
  color: var(--text-dim); width: 28px; text-align: center; flex-shrink: 0;
}
.list-row.top-row .list-rank { color: var(--mint); }

/* flag + team column (scorers) */
.list-flag-col {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0;
}
.list-flag-col .list-team {
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  color: var(--text-muted); text-align: center; letter-spacing: 0.04em;
  max-width: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.list-name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.list-name-first {
  font-family: var(--font-cond); font-size: 12px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.02em;
}
.list-name-last {
  font-family: var(--font-cond); font-size: 19px; font-weight: 800;
  letter-spacing: 0.01em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-participant { font-size: 12px; color: var(--mint); font-weight: 600; }

.card-chips { display: flex; gap: 5px; flex-shrink: 0; }
.card-chip {
  font-family: var(--font-head); font-size: 15px;
  width: 28px; height: 36px; border-radius: 5px;
  display: grid; place-items: center;
}
.card-chip.yellow { background: var(--yellow-card); color: #1a0f00; }
.card-chip.red    { background: var(--red-card);    color: #fff; }

.list-stat {
  font-family: var(--font-head); font-size: 24px; color: #04140F;
  background: #fff; border-radius: var(--radius-pill);
  padding: 6px 18px; min-width: 56px; text-align: center; flex-shrink: 0;
}
.list-row.top-row .list-stat { background: var(--mint); }

/* ── Group Tables ── */
.groups-list { display: flex; flex-direction: column; gap: 20px; }
.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.group-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--group-accent, var(--mint));
}
.group-letter {
  font-family: var(--font-head); font-size: 28px; line-height: 1; color: #04140F;
}
.group-label {
  font-family: var(--font-cond); font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #04140F;
}
.group-table { width: 100%; border-collapse: collapse; }
.group-table thead th {
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase;
  padding: 8px 6px; text-align: center;
}
.group-table thead th:first-child { text-align: left; padding-left: 14px; }
.group-table tbody td {
  font-family: var(--font-cond); font-size: 14px; font-weight: 600;
  padding: 9px 6px; text-align: center;
  border-top: 1px solid var(--border);
}
.group-table tbody tr:nth-child(-n+2) td { background: rgba(124,245,206,0.04); }
.group-team-cell { text-align: left !important; padding-left: 14px !important; }
.group-team-row { display: flex; align-items: center; gap: 9px; }
.group-team-names { display: flex; flex-direction: column; min-width: 0; }
.group-team-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-team-participant { font-size: 11px; color: var(--mint); font-weight: 600; }
.group-table td.pts { font-family: var(--font-head); font-size: 17px; }
.group-table td.gd.positive { color: var(--mint); }
.group-table td.gd.negative { color: var(--red-card); }

/* ── Fixtures / Results ── */
.round-section { margin-bottom: 32px; }
.round-title {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-cond); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px;
}
.round-count { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted); }
.round-date-group { margin-bottom: 16px; }
.round-date-label {
  font-family: var(--font-cond); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 10px;
}
.matches-list { display: flex; flex-direction: column; gap: 14px; }

.match-inner {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--fifa-grad) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.match-card.live .match-inner {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(90deg,#FF3B5C,#FF3B5C) border-box;
}

.match-meta { display: flex; align-items: center; gap: 7px; }

.team-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
}
.participant-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
}
.participant-row .team-participant { font-size: 12px; color: var(--mint); font-weight: 600; }
.participant-row .away { text-align: right; }
.group-badge {
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.07); color: var(--text);
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.match-date-str { font-family: var(--font-cond); font-size: 12px; color: var(--text-muted); }
.status-badge {
  margin-left: auto;
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.status-badge.ft       { background: rgba(255,255,255,0.07); color: var(--text-muted); }
.status-badge.live     { background: var(--red-card); color: #fff; animation: livepulse 1.6s infinite; }
.status-badge.upcoming { background: var(--mint-dim); color: var(--mint); }
@keyframes livepulse { 50% { opacity: 0.5; } }

.team-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-side.away { flex-direction: row-reverse; }

.flag-box {
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: grid; place-items: center; flex-shrink: 0;
}
.team-name {
  font-family: var(--font-cond); font-size: 16px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.team-side.away .team-name { text-align: right; }

.match-score-block { display: grid; place-items: center; }
.score-panel {
  display: flex; align-items: stretch;
  background: var(--mint); border-radius: var(--radius-sm); overflow: hidden;
}
.score-panel .s {
  font-family: var(--font-head); font-size: 32px; line-height: 1;
  color: #04140F; padding: 6px 16px; min-width: 46px; text-align: center;
}
.score-panel .s + .s { border-left: 2px solid rgba(0,0,0,0.18); }
.score-clock {
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  color: var(--red-card); text-align: center; margin-top: 4px; letter-spacing: 0.06em;
}
.score-vs {
  font-family: var(--font-head); font-size: 26px; color: #04140F;
  background: #fff; border-radius: var(--radius-sm);
  width: 46px; height: 46px; display: grid; place-items: center;
}

@media (max-width: 480px) {
  .match-inner { padding: 10px; gap: 6px; }
  .team-name { font-size: 14px; }
  .flag-box { padding: 7px 8px; }
  .score-panel .s { font-size: 26px; padding: 5px 12px; min-width: 38px; }
  .score-vs { width: 40px; height: 40px; font-size: 22px; }
}
