:root {
  --bg: #070a10;
  --panel: #101722;
  --panel-2: #151f2d;
  --line: rgba(255,255,255,0.1);
  --text: #f8fafc;
  --muted: #a9b7c9;
  --gold: #f6c453;
  --green: #39d98a;
  --red: #ef4444;
  --blue: #72a7ff;
  --trophy-card-bg: url("../img/copa-trophy-card-bg.svg?v=20260615-new");
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-shell { min-height: 100vh; overflow-x: hidden; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #0b0d12; background: var(--gold); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }

.game-nav {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand b { color: var(--gold); }
.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.landing-hero {
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(7,10,16,.96), rgba(7,10,16,.72), rgba(7,10,16,.42)),
    linear-gradient(0deg, var(--bg), rgba(7,10,16,0) 38%),
    url("https://images.unsplash.com/photo-1522778526097-ce0a22ceb253?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-layout {
  width: min(1200px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 380px);
  gap: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(246,196,83,0.12);
  border: 1px solid rgba(246,196,83,0.3);
  font-size: .8rem;
  font-weight: 1000;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 680px;
  margin: 18px 0 18px;
  font-size: 4.6rem;
  line-height: .96;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.hero-copy-block p {
  max-width: 660px;
  color: #dce7f6;
  font-size: 1.12rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.leaderboard-card, .side-panel, .mini-score, .login-panel {
  background: rgba(16,23,34,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0,0,0,.35);
}

.leaderboard-card { padding: 18px; }
.leaderboard-card { align-self: center; min-height: 260px; }
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.leader-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  transition: transform .22s cubic-bezier(.22,1,.36,1), background .22s, border-color .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}

.leader-row:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .25);
}

.leader-row + .leader-row { margin-top: 8px; }

.leader-rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-weight: 900;
  font-size: .85rem;
  border-radius: 50%;
  color: var(--muted);
}

.leader-rank-badge span {
  opacity: .7;
}

.leader-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: .85rem;
  border: 1px solid rgba(255, 255, 255, .1);
}

.leader-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.leader-name {
  font-weight: 700;
  font-size: .88rem;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-score {
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 2px;
  justify-content: flex-end;
}

.leader-score strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--green);
}

.leader-score small {
  font-size: .65rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

/* Premium styling for top ranks */
.leader-row.is-rank-1 {
  border-color: rgba(246, 196, 83, .45);
  background: linear-gradient(90deg, rgba(246, 196, 83, .08), rgba(246, 196, 83, .02));
  box-shadow: 0 0 12px rgba(246, 196, 83, .05);
}
.leader-row.is-rank-1 .leader-avatar {
  background: rgba(246, 196, 83, .12);
  color: var(--gold);
  border-color: rgba(246, 196, 83, .3);
}
.leader-row.is-rank-1 .leader-name {
  color: #fff;
  font-weight: 800;
}
.leader-row.is-rank-1 .leader-score strong {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(246, 196, 83, .25);
}

.leader-row.is-rank-2 {
  border-color: rgba(203, 213, 225, .3);
  background: linear-gradient(90deg, rgba(203, 213, 225, .05), rgba(203, 213, 225, .01));
}
.leader-row.is-rank-2 .leader-avatar {
  background: rgba(203, 213, 225, .1);
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, .2);
}

.leader-row.is-rank-3 {
  border-color: rgba(180, 83, 9, .3);
  background: linear-gradient(90deg, rgba(180, 83, 9, .05), rgba(180, 83, 9, .01));
}
.leader-row.is-rank-3 .leader-avatar {
  background: rgba(180, 83, 9, .1);
  color: #f59e0b;
  border-color: rgba(180, 83, 9, .2);
}

.hot-teams-grid {
  display: grid;
  gap: 10px;
}

.hot-team-card {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: 32px 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239,68,68,.12), transparent 38%),
    rgba(255,255,255,.045);
}

.hot-team-card.is-leading {
  border-color: rgba(246,196,83,.42);
  background:
    linear-gradient(135deg, rgba(246,196,83,.16), transparent 38%),
    rgba(255,255,255,.05);
}

.hot-team-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #07101c;
  background: var(--gold);
  font-weight: 1000;
}

.hot-team-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246,196,83,.32);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.hot-team-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hot-team-logo i {
  color: var(--gold);
  font-size: 1.25rem;
}

.hot-team-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hot-team-copy strong {
  color: var(--text);
  font-size: .92rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hot-team-copy span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.hot-team-card b {
  grid-column: 2 / -1;
  justify-self: start;
  color: var(--gold);
  font-size: .82rem;
}

.hot-teams-empty {
  padding: 14px 12px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  text-align: center;
  font-size: .84rem;
}

.section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.section-head.compact { margin-bottom: 14px; }
.section-head.compact h2 { font-size: 2rem; }

/* ══ GLOBAL CARD ANIMATIONS ══ */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 8px rgba(246,196,83,.15), 0 8px 30px rgba(0,0,0,.35); }
  50%      { box-shadow: 0 0 22px rgba(246,196,83,.3), 0 12px 40px rgba(0,0,0,.4); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

@keyframes borderShimmer {
  0%   { border-color: rgba(246,196,83,.3); }
  50%  { border-color: rgba(246,196,83,.7); }
  100% { border-color: rgba(246,196,83,.3); }
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  padding: 2px;
}

.mini-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(246,196,83,.35);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,70,30,.35), transparent 40%),
    linear-gradient(225deg, rgba(37,99,235,.12), transparent 40%),
    linear-gradient(180deg, rgba(16,23,34,.95), rgba(8,14,24,.98));
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
  animation: fadeSlideUp .5s cubic-bezier(.22,1,.36,1) both, pulseGold 4s ease-in-out infinite;
  backdrop-filter: blur(6px);
}

/* Shimmer overlay on hover */
.mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(246,196,83,.08) 45%,
    rgba(246,196,83,.14) 50%,
    rgba(246,196,83,.08) 55%,
    transparent 70%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .4s;
}

.mini-card:hover::before {
  opacity: 1;
  animation: shimmer 1.8s ease-in-out;
}

.mini-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 30px rgba(246,196,83,.12);
  border-color: rgba(246,196,83,.65);
}

.mini-card.is-super {
  border-color: rgba(246,196,83,.7);
  animation: fadeSlideUp .5s cubic-bezier(.22,1,.36,1) both, borderShimmer 2s ease-in-out infinite;
}

/* Stagger animation delay */
.mini-card:nth-child(1) { animation-delay: 0s, 0s; }
.mini-card:nth-child(2) { animation-delay: .1s, .5s; }
.mini-card:nth-child(3) { animation-delay: .2s, 1s; }
.mini-card:nth-child(4) { animation-delay: .3s, 1.5s; }

.mini-card > * { position: relative; z-index: 2; }

.mini-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mini-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--gold);
  background: rgba(246,196,83,.1);
  border: 1px solid rgba(246,196,83,.2);
  font-size: .68rem;
  font-weight: 1000;
  text-transform: uppercase;
}
.mini-card__round {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 10px 0;
}
.mini-card__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mini-card__team:last-child { justify-content: flex-end; flex-direction: row-reverse; }
.mini-card__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid rgba(246,196,83,.6);
  background: linear-gradient(135deg, #fff, #e8edf4);
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.3), 0 0 12px rgba(246,196,83,.15);
  transition: transform .25s, box-shadow .25s;
}

.mini-card:hover .mini-card__logo {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 20px rgba(246,196,83,.25);
}

.mini-card__code {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px solid rgba(246,196,83,.6);
  color: #fff;
  font-size: .6rem;
  font-weight: 1000;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.mini-card__team strong {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-card__vs {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 1000;
  text-align: center;
  text-shadow: 0 0 12px rgba(246,196,83,.4);
}

.mini-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(246,196,83,.12);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}
.mini-card__meta i {
  color: var(--gold);
  margin-right: 4px;
  font-size: .62rem;
}

.mini-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f6c453, #e6a817);
  color: #0b0d12;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.mini-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .5s;
}

.mini-card__cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(246,196,83,.3); }
.mini-card__cta:hover::after { transform: translateX(100%); }

.landing-match-card {
  min-height: 100%;
  align-content: start;
}

.landing-match-card .cup-card__teams {
  padding: 6px 0 8px;
}

.landing-match-card .shield-wrapper {
  width: clamp(62px, 7vw, 78px);
  height: clamp(72px, 8vw, 88px);
}

.landing-match-card .cup-team strong {
  font-size: .92rem;
}

.landing-match-card .vs-text {
  font-size: 2.2rem;
}

.landing-match-card .cup-card__details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-match-card .detail-text strong {
  max-width: 112px;
}

.landing-countdown-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(246, 196, 83, .18);
}

.landing-countdown-row .countdown {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-countdown-row.is-closed {
  border-color: rgba(255, 77, 77, .25);
}

.premium-countdown {
  display: grid;
  gap: 14px;
  padding: 16px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(246, 196, 83, .42);
  background:
    radial-gradient(circle at 12% 0%, rgba(246, 196, 83, .16), transparent 36%),
    linear-gradient(135deg, rgba(12, 17, 24, .96), rgba(18, 20, 18, .94));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, .32),
    0 0 0 1px rgba(255, 255, 255, .035) inset,
    0 0 28px rgba(246, 196, 83, .08) inset;
}

.premium-countdown__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.premium-countdown__head .countdown-title {
  color: #f7d36c;
  font-size: .82rem;
  letter-spacing: .03em;
}

.premium-countdown__head small {
  color: #9fb1c9;
  font-size: .68rem;
  font-weight: 800;
  text-align: right;
}

.premium-countdown__grid,
.landing-countdown-row .premium-countdown__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
  width: 100%;
  justify-content: stretch;
}

.premium-countdown__grid span,
.landing-countdown-row .premium-countdown__grid span {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 68px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid rgba(246, 196, 83, .35);
  color: #dbe7f8;
  background:
    linear-gradient(180deg, rgba(16, 27, 46, .98), rgba(8, 12, 19, .98));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .32),
    0 0 18px rgba(246, 196, 83, .08) inset;
  text-transform: uppercase;
}

.premium-countdown__grid b,
.landing-countdown-row .premium-countdown__grid b {
  display: block;
  margin: 0 0 5px;
  color: #ffd45a;
  font-size: 1.52rem;
  line-height: 1;
  font-weight: 1000;
  text-shadow: 0 0 14px rgba(246, 196, 83, .34);
}

.premium-countdown__grid em,
.landing-countdown-row .premium-countdown__grid em {
  display: block;
  color: #b7c5d9;
  font-size: .62rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
}

.landing-match-cta {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  margin-top: 2px;
}

/* ══ DAY TABS ══ */
.featured-games-wrap {
  display: grid;
  gap: 22px;
}

.match-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  padding: 2px;
}

.day-tabs {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(16, 23, 34, .65);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  width: fit-content;
}

.day-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background .25s ease,
    border-color .25s ease,
    color .25s ease,
    transform .2s ease,
    box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.day-tab i {
  font-size: .9rem;
  transition: color .25s, transform .25s;
}

.day-tab__label {
  white-space: nowrap;
}

.day-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: .68rem;
  font-weight: 900;
  color: var(--muted);
  transition: background .25s, color .25s, border-color .25s;
}

.day-tab:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: var(--text);
  transform: translateY(-1px);
}

.day-tab:hover i {
  color: var(--gold);
}

.day-tab.is-active {
  background:
    radial-gradient(circle at 30% 0%, rgba(246, 196, 83, .15), transparent 60%),
    rgba(246, 196, 83, .1);
  border-color: rgba(246, 196, 83, .5);
  color: #fff;
  box-shadow:
    0 4px 18px rgba(246, 196, 83, .12),
    0 0 0 1px rgba(246, 196, 83, .08) inset;
}

.day-tab.is-active i {
  color: var(--gold);
  transform: scale(1.15);
}

.day-tab.is-active .day-tab__count {
  background: rgba(246, 196, 83, .18);
  border-color: rgba(246, 196, 83, .35);
  color: var(--gold);
}

/* Subtle animated underline for active tab */
.day-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: tabGlow 2s ease-in-out infinite;
}

@keyframes tabGlow {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

@media (max-width: 700px) {
  .day-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .day-tab {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: .74rem;
    gap: 6px;
  }

  .day-tab__count {
    display: none;
  }

  .match-grid-cards {
    grid-template-columns: 1fr;
  }
}


.cup-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px;
  width: 100%;
  max-width: 100%;
  border: 1.5px solid rgba(246, 196, 83, 0.45);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(7,10,16,.18), rgba(7,10,16,.78) 54%),
    var(--trophy-card-bg) right -26px bottom -42px / 230px auto no-repeat,
    radial-gradient(circle at 50% 0%, rgba(246, 196, 83, 0.14), transparent 45%),
    linear-gradient(135deg, rgba(8, 28, 21, 0.5) 0%, rgba(4, 15, 31, 0.6) 50%, rgba(10, 16, 26, 0.95) 100%);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.5), 
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 2px 0 rgba(255, 255, 255, 0.05) inset;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
  animation: fadeSlideUp .5s cubic-bezier(.22,1,.36,1) both;
}

/* Stagger arena cards */
.cup-card:nth-child(1) { animation-delay: 0s; }
.cup-card:nth-child(2) { animation-delay: .12s; }
.cup-card:nth-child(3) { animation-delay: .24s; }
.cup-card:nth-child(4) { animation-delay: .36s; }

.cup-card.is-super {
  border-color: rgba(246, 196, 83, 0.7);
  box-shadow: 0 0 0 1px rgba(246, 196, 83, 0.15), 0 30px 90px rgba(246, 196, 83, 0.15), inset 0 0 70px rgba(5, 26, 55, 0.6);
}

.cup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 120%, rgba(246, 196, 83, 0.07), transparent 60%);
  opacity: .6;
  transition: opacity .4s;
}

/* Shimmer sweep on hover */
.cup-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(246, 196, 83, 0.04) 45%,
    rgba(246, 196, 83, 0.1) 50%,
    rgba(246, 196, 83, 0.04) 55%,
    transparent 70%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .4s;
}

.cup-card:hover::after {
  opacity: 1;
  animation: shimmer 2s ease-in-out;
}

.cup-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 30px 75px rgba(0, 0, 0, 0.65), 
    0 0 35px rgba(246, 196, 83, 0.15);
  border-color: rgba(246, 196, 83, 0.85);
}

.cup-card > * { position: relative; z-index: 1; }

.cup-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-transform: uppercase;
}

.cup-card__brand i { color: var(--gold); font-size: 1.25rem; text-shadow: 0 0 12px rgba(246, 196, 83, 0.4); }
.cup-card__brand span {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.cup-card__brand b {
  display: inline-flex;
  padding: 3px 12px;
  color: #07101c;
  background: linear-gradient(180deg, #ffd95e 0%, #d8a411 100%);
  font-size: .82rem;
  line-height: 1.3;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(246,196,83,.3);
  font-weight: 900;
}

.cup-card__phase {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: min(240px, 100%);
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid rgba(246, 196, 83, 0.3);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(16, 27, 46, 0.9), rgba(6, 11, 20, 0.9));
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  letter-spacing: 0.02em;
}

.cup-card__teams {
  display: grid;
  grid-template-columns: minmax(0,1fr) 50px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 0;
}

.cup-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.shield-wrapper {
  position: relative;
  display: inline-block;
  width: clamp(64px, 8vw, 84px);
  height: clamp(74px, 9vw, 94px);
  padding: 3px;
  background: linear-gradient(135deg, var(--gold) 0%, #d8a411 50%, #9a7206 100%);
  clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 100%, 0% 75%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.cup-card:hover .shield-wrapper {
  transform: translateY(-2px) scale(1.04);
}

.cup-team.home-side .shield-wrapper {
  background: linear-gradient(135deg, #18a558 0%, var(--gold) 50%, #118c4f 100%);
}

.cup-team.away-side .shield-wrapper {
  background: linear-gradient(135deg, #2563eb 0%, #f8fafc 50%, #1d4ed8 100%);
}

.shield-wrapper::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #0d131f;
  clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 100%, 0% 75%);
  z-index: 1;
}

.shield-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 100%, 0% 75%);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-badge.shield-logo {
  color: #fff;
  font-size: 1rem;
  font-weight: 1000;
  text-shadow: 0 3px 10px rgba(0,0,0,.55);
  background: linear-gradient(145deg, var(--team), #07101c);
}

.team-logo.shield-logo {
  padding: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(225,232,244,.98));
}

.cup-team strong {
  color: var(--text);
  max-width: 100%;
  font-size: .9rem;
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  font-weight: 800;
}

.cup-vs-glow {
  display: grid;
  place-items: center;
  position: relative;
}

.vs-text {
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(246, 196, 83, 0.65), 0 0 3px rgba(255, 255, 255, 0.8);
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.05em;
  transform: scale(1.05);
  white-space: nowrap;
}

.cup-card__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(16, 23, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px;
}

.detail-col {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.detail-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-col i {
  color: var(--gold);
  font-size: 1.05rem;
}

.detail-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.detail-text span {
  font-size: 0.58rem;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.detail-text strong {
  font-size: 0.76rem;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.countdown-title {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.countdown-title i {
  color: var(--gold);
}

.countdown {
  display: flex;
  gap: 4px;
}

.countdown span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid rgba(246, 196, 83, 0.16);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown b {
  display: inline;
  color: var(--gold);
  font-size: 0.78rem;
  text-shadow: 0 0 6px rgba(246, 196, 83, 0.25);
  margin-right: 1px;
}

.countdown span:last-child b {
  animation: countdownPulse 1s ease-in-out infinite;
}

.cup-card__guess-container {
  background: linear-gradient(180deg, #022c22 0%, #052e16 100%);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.guess-header {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #f8fafc;
}

.guess-header i {
  color: var(--gold);
  font-size: 0.72rem;
}

.guess-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.guess-team-name {
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-name-guess {
  text-align: right;
}

.away-name-guess {
  text-align: left;
}

.guess-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.card-score-input {
  width: 50px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  background: #ffffff;
  color: #0b0d12;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 8px rgba(246, 196, 83, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  -moz-appearance: textfield;
}

.card-score-input::-webkit-outer-spin-button,
.card-score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.card-score-input:focus {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(246, 196, 83, 0.5);
  border-color: #2ecc71;
}

.card-score-input:disabled {
  background: rgba(255, 255, 255, 0.15);
  color: #a9b7c9;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  cursor: not-allowed;
}

.card-score-input::placeholder {
  color: rgba(11, 13, 18, 0.35);
  font-weight: 600;
}

.guess-vs-divider {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 900;
}

.cup-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.save-card-guess-btn {
  background: linear-gradient(135deg, #18a558 0%, #118c4f 100%);
  border: 1px solid #18a558;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.85rem;
  min-height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(24, 165, 88, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.save-card-guess-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 165, 88, 0.4);
  background: linear-gradient(135deg, #1fbe6a 0%, #159b58 100%);
}

.save-card-guess-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.cup-card .btn {
  width: 100%;
  font-size: .85rem;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.cup-card .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .5s;
}

.cup-card .btn:hover::after { transform: translateX(100%); }

/* Arena card closed state — premium */
.arena-card.is-closed {
  filter: grayscale(.4) brightness(.85);
  opacity: .75;
  transition: filter .4s, opacity .4s;
}

.arena-card.is-closed:hover {
  filter: grayscale(.2) brightness(.9);
  opacity: .88;
}

/* ══ CHAMPION BANNER ══ */
@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes trophyRingPulse {
  0%, 100% { transform: scale(1); opacity: .3; }
  50% { transform: scale(1.15); opacity: .6; }
}

@keyframes crownShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translateY(-30px) translateX(10px) scale(1); }
  80% { opacity: .6; }
  100% { transform: translateY(-180px) translateX(-20px) scale(0); opacity: 0; }
}

.champion-section {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.champion-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 44px;
  padding: 44px 48px;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(246, 196, 83, .45);
  background:
    radial-gradient(ellipse at 10% 40%, rgba(246, 196, 83, .12), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(37, 99, 235, .08), transparent 40%),
    linear-gradient(135deg, rgba(8, 18, 32, .98), rgba(6, 12, 22, .99));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    0 0 60px rgba(246, 196, 83, .06) inset;
}

.champion-banner__glow {
  position: absolute;
  top: -60%;
  left: -10%;
  width: 60%;
  height: 220%;
  background: radial-gradient(ellipse, rgba(246, 196, 83, .08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Floating particles */
.champion-banner__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.champion-banner__particles::before,
.champion-banner__particles::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-size: .6rem;
  animation: particleFloat 6s ease-in-out infinite;
}

.champion-banner__particles::before {
  left: 15%;
  bottom: 20%;
  animation-delay: 0s;
}

.champion-banner__particles::after {
  left: 75%;
  bottom: 10%;
  animation-delay: 2.5s;
  font-size: .5rem;
}

/* Trophy area */
.champion-banner__trophy {
  position: relative;
  grid-row: 1 / 3;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  z-index: 1;
  align-self: center;
  border-radius: 50%;
}

.champion-trophy-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(246, 196, 83, .5);
  background:
    radial-gradient(circle at 50% 40%, rgba(246, 196, 83, .12), rgba(12, 18, 28, .98) 70%);
  box-shadow:
    0 0 30px rgba(246, 196, 83, .2),
    0 8px 30px rgba(0, 0, 0, .4),
    inset 0 0 20px rgba(246, 196, 83, .08);
  animation: trophyFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
  padding: 22px;
}

.champion-trophy-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(246, 196, 83, .2);
  animation: trophyRingPulse 3s ease-in-out infinite;
  z-index: 1;
}

.champion-trophy-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(246, 196, 83, .12);
  animation: trophyRingPulse 3s ease-in-out infinite .8s;
}

/* Content */
.champion-banner__content {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  display: grid;
  gap: 16px;
  align-content: center;
}

.champion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffd45a;
  border: 1px solid rgba(246, 196, 83, .4);
  background:
    linear-gradient(90deg, rgba(246, 196, 83, .15), rgba(246, 196, 83, .05));
}

.champion-badge i {
  font-size: 1rem;
  background: linear-gradient(135deg, #ffd45a, #e6a817, #ffd45a);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: crownShimmer 3s ease-in-out infinite;
}

.champion-title {
  font-size: 2.8rem;
  line-height: .95;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 20%, #c9d6e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.champion-subtitle {
  color: var(--muted);
  font-size: .95rem;
  max-width: 500px;
  margin: 0;
  line-height: 1.5;
}

/* Prize card */
.champion-prize-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1.5px solid rgba(246, 196, 83, .5);
  background:
    radial-gradient(circle at 0% 50%, rgba(246, 196, 83, .12), transparent 50%),
    linear-gradient(135deg, rgba(16, 27, 46, .95), rgba(8, 14, 24, .95));
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .3),
    0 0 24px rgba(246, 196, 83, .06) inset;
  max-width: 520px;
}

.champion-prize-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1.5px solid rgba(246, 196, 83, .4);
  background: rgba(246, 196, 83, .08);
  overflow: hidden;
}

.champion-prize-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.champion-prize-card__info {
  display: grid;
  gap: 2px;
}

.champion-prize-card__value {
  font-size: 1.35rem;
  font-weight: 1000;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffd45a, #f6c453, #e6a817);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.champion-prize-card__label {
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
}

.champion-prize-card__desc {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2px;
}

.champion-prize-card__sparkle {
  display: grid;
  place-items: center;
}

.champion-prize-card__sparkle i {
  font-size: 1.4rem;
  color: var(--gold);
  animation: sparkleRotate 4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(246, 196, 83, .4));
}

/* Leader section */
.champion-banner__leader {
  grid-column: 2;
  grid-row: 2;
  z-index: 1;
  padding-top: 20px;
}

.champion-leader-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.champion-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.champion-podium-slot {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  transition: border-color .3s, background .3s;
}

.champion-podium-slot.is-first {
  border-color: rgba(246, 196, 83, .45);
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 196, 83, .12), transparent 60%),
    rgba(246, 196, 83, .04);
  box-shadow: 0 8px 28px rgba(246, 196, 83, .08);
}

.champion-podium-slot.is-second {
  border-color: rgba(192, 192, 192, .35);
  background: rgba(192, 192, 192, .03);
}

.champion-podium-slot.is-third {
  border-color: rgba(205, 127, 50, .3);
  background: rgba(205, 127, 50, .03);
}

.champion-podium-rank {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 1000;
  font-size: .9rem;
}

.is-first .champion-podium-rank {
  background: linear-gradient(135deg, #ffd45a, #e6a817);
  color: #0b0d12;
  box-shadow: 0 4px 16px rgba(246, 196, 83, .3);
}

.is-second .champion-podium-rank {
  background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(192, 192, 192, .2);
}

.is-third .champion-podium-rank {
  background: linear-gradient(135deg, #e8a84c, #cd7f32);
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(205, 127, 50, .2);
}

.champion-podium-name {
  font-weight: 800;
  font-size: .82rem;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-podium-points {
  font-size: .72rem;
  font-weight: 900;
  color: var(--green);
}

.champion-podium-label {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.champion-podium-empty {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

/* CTA */
.champion-banner__cta {
  grid-column: 1 / -1;
  grid-row: 3;
  z-index: 1;
  padding-top: 24px;
  display: flex;
  justify-content: center;
}

.champion-cta-btn {
  min-width: 320px;
  font-size: .92rem;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.champion-cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s;
}

.champion-cta-btn:hover::after {
  transform: translateX(100%);
}

/* Responsive */
@media (max-width: 980px) {
  .champion-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 28px;
    gap: 24px;
  }

  .champion-banner__trophy {
    grid-row: auto;
    grid-column: auto;
    justify-self: center;
    width: 160px;
    height: 160px;
  }

  .champion-trophy-img {
    width: 140px;
    height: 140px;
  }

  .champion-banner__content {
    grid-column: auto;
    grid-row: auto;
    justify-items: center;
  }

  .champion-banner__leader {
    grid-column: auto;
    grid-row: auto;
  }

  .champion-title {
    font-size: 2rem;
  }

  .champion-subtitle {
    max-width: 100%;
  }

  .champion-prize-card {
    max-width: 100%;
  }

  .champion-cta-btn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .champion-banner {
    padding: 28px 18px;
  }

  .champion-banner__trophy {
    width: 130px;
    height: 130px;
  }

  .champion-trophy-img {
    width: 110px;
    height: 110px;
  }

  .champion-title {
    font-size: 1.6rem;
  }

  .champion-prize-card {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .champion-prize-card__icon {
    width: 44px;
    height: 44px;
  }

  .champion-prize-logo {
    width: 32px;
    height: 32px;
  }

  .champion-prize-card__sparkle {
    display: none;
  }

  .champion-prize-card__value {
    font-size: 1.1rem;
  }

  .champion-podium {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .champion-podium-slot {
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto;
    display: grid;
    justify-items: start;
    text-align: left;
    padding: 12px 14px;
  }

  .champion-podium-label {
    display: none;
  }
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-strip article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-strip i { color: var(--gold); font-size: 1.45rem; }
.feature-strip strong { font-size: 1.05rem; }
.feature-strip span { color: var(--muted); font-size: .92rem; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(37,99,235,.18), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(246,196,83,.12), transparent 50%),
    linear-gradient(135deg, rgba(7,10,16,.98), rgba(7,10,16,.85)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.login-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.login-ambient-orb--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.5), transparent 70%);
  top: -100px; left: -100px;
}
.login-ambient-orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(246,196,83,.4), transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -4s;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.15); }
}

.login-panel--premium {
  width: min(520px, 100%);
  display: grid;
  gap: 20px;
  padding: 36px 32px;
  position: relative;
  z-index: 2;
  background: rgba(16,23,34,.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(246,196,83,.22);
  border-radius: 20px;
  box-shadow:
    0 30px 100px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 1px 0 rgba(255,255,255,.06) inset;
  animation: panelEntry .6s cubic-bezier(.22,1,.36,1) both;
}

@keyframes panelEntry {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Steps Indicator ── */
.login-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 4px 0 8px;
}

.login-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}

.login-step__dot {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .95rem;
  transition: all .4s cubic-bezier(.22,1,.36,1);
}

.login-step.active .login-step__dot {
  border-color: var(--gold);
  background: rgba(246,196,83,.15);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(246,196,83,.25);
  transform: scale(1.08);
}

.login-step.done .login-step__dot {
  border-color: var(--green);
  background: rgba(57,217,138,.18);
  color: var(--green);
}

.login-step__label {
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}

.login-step.active .login-step__label { color: var(--gold); }
.login-step.done .login-step__label { color: var(--green); }

.login-step__line {
  width: 50px; height: 2px;
  background: rgba(255,255,255,.1);
  margin: 0 6px;
  margin-bottom: 20px;
  border-radius: 2px;
  transition: background .4s;
}

.login-step__line.done {
  background: linear-gradient(90deg, var(--green), rgba(57,217,138,.3));
}

/* ── Login Stages ── */
.login-stage {
  animation: stageIn .45s cubic-bezier(.22,1,.36,1) both;
}

.login-stage.hidden {
  display: none !important;
}

@keyframes stageIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.login-panel--premium h1 { margin: 0; font-size: 3rem; }
.login-panel--premium p { color: var(--muted); line-height: 1.5; }
.login-panel--premium p strong { color: var(--gold); }
.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 1000; text-transform: uppercase; }
.login-form label.hidden { display: none !important; }

/* ── Input with icon ── */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap > i {
  position: absolute;
  left: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  transition: color .3s;
  pointer-events: none;
  z-index: 2;
}

.input-icon-wrap:focus-within > i { color: var(--gold); }

.input-icon-wrap > input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px 0 54px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: var(--text);
  background: rgba(4,8,12,.7);
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color .3s, box-shadow .3s;
}

.input-icon-wrap > input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246,196,83,.12);
}

.login-form input, .score-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(4,8,12,.84);
  outline: none;
}
.login-form input:focus, .score-input:focus { border-color: var(--gold); }

.login-form .input-icon-wrap > input {
  padding-left: 54px;
}

/* ── WhatsApp Button ── */
.btn-whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  font-size: .95rem;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s;
}

.btn-whatsapp:hover::after { transform: translateX(100%); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.3); }

/* ── OTP PIN Inputs ── */
.otp-pin-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.otp-pin {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(4,8,12,.7);
  outline: none;
  caret-color: var(--gold);
  transition: border-color .3s, box-shadow .3s, transform .2s;
}

.otp-pin:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246,196,83,.15), 0 4px 16px rgba(246,196,83,.1);
  transform: translateY(-2px);
}

.otp-pin-sep {
  color: rgba(255,255,255,.2);
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 2px;
}

/* ── Timer row ── */
.otp-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
}

.otp-timer {
  color: var(--muted);
  font-weight: 700;
}

.otp-timer b { color: var(--gold); }

.btn-link {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color .2s;
}

.btn-link:hover { color: var(--gold); }
.btn-link:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

/* ── Success Animation ── */
.success-anim {
  position: relative;
  width: 100px; height: 100px;
  margin: 10px auto 16px;
}

.success-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--green);
  border-radius: 50%;
  animation: ringPop .5s cubic-bezier(.22,1,.36,1) both;
}

.success-check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  color: var(--green);
  animation: checkPop .4s .25s cubic-bezier(.22,1,.36,1) both;
}

@keyframes ringPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes checkPop {
  from { transform: scale(0) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-loader {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: 12px;
}

.success-loader__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 4px;
  animation: loadBar 2s ease-in-out forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

.form-error { min-height: 20px; margin: 0; color: var(--red) !important; font-weight: 800; }

.arena-page {
  background:
    radial-gradient(circle at top left, rgba(246,196,83,.12), transparent 34%),
    var(--bg);
}

.arena-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.arena-head {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
}

.arena-head h1 {
  max-width: 820px;
  font-size: 3.8rem;
  line-height: .96;
  margin-bottom: 12px;
}
.arena-head p { color: var(--muted); margin: 0; }
.arena-head p strong { color: var(--gold); }

.participant-session-card {
  width: fit-content;
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(246,196,83,.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(246,196,83,.12), transparent 45%),
    linear-gradient(180deg, rgba(16,27,42,.78), rgba(8,13,22,.9));
  box-shadow:
    0 16px 38px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.participant-session-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #07101c;
  background: linear-gradient(135deg, #ffd86b, #f2b316);
  box-shadow: 0 12px 24px rgba(246,196,83,.22);
  font-weight: 1000;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.participant-session-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.participant-session-copy > span {
  color: #9fb1c9;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.participant-session-copy > strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-session-copy small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfe0ff;
  font-weight: 800;
  line-height: 1.2;
  flex-wrap: wrap;
}

.participant-session-copy small i {
  color: #39d98a;
}

.participant-session-copy small b {
  color: #ffd86b;
  font-weight: 950;
}

.mini-score {
  padding: 16px;
  display: grid;
  gap: 2px;
}
.mini-score span, .mini-score small { color: var(--muted); font-weight: 800; }
.mini-score strong { color: var(--green); font-size: 2.3rem; line-height: 1; }

.arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

#tournamentPredHead {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(280px, 1fr);
  gap: 18px;
  align-items: end;
  padding: 18px 20px;
  border: 1px solid rgba(246, 196, 83, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(246, 196, 83, .12), transparent 36%),
    linear-gradient(180deg, rgba(16, 23, 34, .58), rgba(8, 12, 20, .34));
}

#tournamentPredHead h2 {
  margin: 0;
}

#tournamentPredHead p {
  max-width: 650px;
  justify-self: end;
  color: #cfe0ff;
  font-weight: 750;
  line-height: 1.45;
}

.arena-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.arena-card { min-height: auto; }
.arena-card__match { margin-bottom: 18px; }
.arena-center { display: grid; gap: 12px; justify-items: center; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
}

.countdown span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(246,196,83,.24);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(0,0,0,.22);
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown b { display: block; color: var(--gold); font-size: .82rem; }

.score-input { text-align: center; font-weight: 1000; min-height: 36px; padding: 0 6px; }
.card-note, .pick-feedback { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.pick-feedback { min-height: 16px; color: var(--green); font-weight: 900; }
.arena-card.is-closed { filter: grayscale(.7); opacity: .72; }

.api-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 900;
}

.api-notice strong {
  text-transform: uppercase;
}

.api-notice span {
  color: var(--muted);
  font-weight: 700;
}

.api-notice.ok {
  border: 1px solid rgba(57,217,138,.32);
  background: rgba(57,217,138,.12);
}

.api-notice.ok strong {
  color: var(--green);
}

.api-notice.warn {
  border: 1px solid rgba(246,196,83,.34);
  background: rgba(246,196,83,.12);
}

.api-notice.warn strong {
  color: var(--gold);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid rgba(246,196,83,.34);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(246,196,83,.1);
}

.empty-state strong {
  color: var(--gold);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.side-panel { padding: 16px; position: sticky; top: 14px; }
.pick-history { display: grid; gap: 10px; margin-bottom: 18px; }
.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
}
.history-item strong { color: var(--text); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--panel); }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-size: .78rem; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.status-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 1000;
  text-transform: uppercase;
}
.status-pill.open { color: var(--green); background: rgba(57,217,138,.12); border: 1px solid rgba(57,217,138,.28); }
.status-pill.closed { color: var(--red); background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.28); }

@media (max-width: 980px) {
  .hero-layout, .arena-head, .arena-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-grid, .match-grid-cards { grid-template-columns: minmax(0, 1fr); }
  .arena-list { grid-template-columns: minmax(0, 1fr); }
  .side-panel { position: static; min-width: 0; }
}

@media (max-width: 640px) {
  .game-nav { align-items: flex-start; flex-direction: column; }
  .nav-actions, .hero-actions { width: 100%; }
  .btn { width: 100%; }
  .feature-strip { grid-template-columns: 1fr; }
  .match-grid, .match-grid-cards { grid-template-columns: 1fr; }
  .cup-card__teams, .cup-card__info, .cup-card__guess > div { grid-template-columns: 1fr; }
  .cup-card__guess.is-playable .pick-form { grid-template-columns: 1fr 1fr; }
  .cup-card__guess.is-playable .pick-form button { grid-column: 1 / -1; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .match-team img { width: 82px; height: 82px; }
}

/* ==========================================================================
   MODAL DE APOSTAS GAMIFICADAS & INTERFACES ADICIONAIS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
  padding: 18px;
}

.bet-modal-card {
  width: min(94vw, 760px);
  background: linear-gradient(180deg, rgba(20, 25, 33, .98), rgba(13, 16, 22, .98));
  border: 1px solid rgba(246, 196, 83, 0.34);
  border-radius: 8px;
  padding: 0;
  max-height: min(88vh, 820px);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255,255,255,.04) inset;
  display: flex;
  flex-direction: column;
}

.bet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 26px;
  background: rgba(255,255,255,.025);
  flex: 0 0 auto;
}

.bet-modal-header h3 {
  margin: 0;
  font-size: 1.65rem;
  color: #fff;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.btn-close-modal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  font-size: 1.7rem;
  color: #b9c3d3;
  cursor: pointer;
  transition: color 0.2s, border-color .2s, background .2s;
  padding: 0;
  line-height: 1;
  flex: 0 0 auto;
}

.btn-close-modal:hover {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
}

.bet-modal-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 26px 12px;
  margin: 0;
  background: rgba(0,0,0,.12);
  overflow-x: auto;
  scrollbar-width: none;
  flex: 0 0 auto;
}

.bet-modal-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px 18px;
  color: #aeb8c8;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: #10131a;
  background: linear-gradient(135deg, #ffd86b, #f2b316);
  border-color: rgba(246, 196, 83, 0.75);
  box-shadow: 0 8px 22px rgba(246, 196, 83, .14);
}

.bet-modal-form {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-content {
  flex: 1 1 auto;
  padding: 22px 26px 16px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-color: rgba(246, 196, 83, .65) rgba(255,255,255,.08);
  scrollbar-width: thin;
}

.tab-content::-webkit-scrollbar {
  width: 10px;
}

.tab-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.tab-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd86b, #f2b316);
  border-radius: 999px;
  border: 2px solid rgba(15,18,24,.95);
}

.bet-group {
  margin-bottom: 14px;
  padding: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}

.bet-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 950;
  color: #f4f7fb;
  margin-bottom: 12px;
}

.points-worth {
  color: #f6c453;
  font-weight: 950;
  margin-left: 4px;
  white-space: nowrap;
}

.bet-options-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bet-options-row.mini {
  grid-template-columns: repeat(2, 1fr);
}

.bet-options-row.mini-triple {
  grid-template-columns: repeat(3, 1fr);
}

.bet-radio-btn {
  cursor: pointer;
  display: block;
  position: relative;
}

.bet-radio-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bet-radio-btn span {
  display: block;
  min-height: 48px;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  color: #d8deea;
  font-size: 0.92rem;
  font-weight: 900;
  transition: all 0.2s;
  user-select: none;
  align-content: center;
}

.bet-radio-btn:hover span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.bet-radio-btn input:checked + span {
  color: #10131a;
  background: linear-gradient(135deg, #ffd86b, #f2b316);
  border-color: #f6c453;
  box-shadow: 0 8px 18px rgba(246, 196, 83, .18);
}

.exact-score-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: #fff;
  font-weight: 950;
  font-size: 1.25rem;
}

.score-input-mini {
  width: 86px;
  height: 52px;
  padding: 8px 10px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}

.bet-select,
.tab-content select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: #090d12;
  color: #fff;
  font-weight: 750;
  outline: none;
}

.bet-select:focus,
.tab-content select:focus,
.score-input-mini:focus,
.tab-content input[type="number"]:focus {
  border-color: rgba(246, 196, 83, .78);
  box-shadow: 0 0 0 3px rgba(246,196,83,.14);
}

.inline-bet-row,
#tab-game .bet-group > div[style*="display: flex"] {
  display: grid !important;
  grid-template-columns: minmax(150px, 1fr) auto 86px auto;
  align-items: center !important;
  gap: 10px !important;
  color: #dfe6f3;
  font-weight: 800;
}

#tab-game .bet-group > div[style*="display: flex"] select {
  padding: 0 14px !important;
  border-radius: 8px !important;
  background: #090d12 !important;
  min-height: 48px;
}

#tab-game .bet-group > div[style*="display: flex"] input {
  width: 86px !important;
  height: 48px;
  border-radius: 8px !important;
  background: rgba(255,255,255,.06) !important;
}

.bet-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .bet-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Switch Toggle widget */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  flex: 0 0 auto;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider {
  background-color: #18a558;
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(24px);
}

.switch-toggle input:disabled + .slider {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(1);
}

.ability-activation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.turbo-card,
#tab-powerups > div[style*="rgba(246, 196, 83"] {
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.16), rgba(24, 165, 88, 0.08)) !important;
  border: 1px solid rgba(246, 196, 83, 0.32) !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-bottom: 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px;
}

.ability-active-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ability-active-item.is-disabled,
.turbo-card.is-disabled,
#tab-powerups > div.is-disabled {
  opacity: .62;
  border-style: dashed !important;
  filter: grayscale(.25);
}

.ability-active-item.is-disabled .ability-active-info i,
.turbo-card.is-disabled i,
#tab-powerups > div.is-disabled i {
  color: #7f8794 !important;
}

.ability-active-item.is-selected {
  border-color: rgba(46, 204, 113, .42);
  background: linear-gradient(135deg, rgba(24, 165, 88, .14), rgba(246, 196, 83, .08));
}

.ability-active-item.is-selected .activate-ability-btn {
  background: linear-gradient(135deg, #18a558, #2ecc71);
  color: #06120b;
}

.ability-active-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ability-active-info i {
  color: #f6c453;
  width: 28px;
  text-align: center;
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.ability-active-info strong,
#tab-powerups strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.ability-active-info span,
#tab-powerups span {
  display: block;
  color: #c4ccda !important;
  font-size: .88rem !important;
  line-height: 1.45;
  margin-top: 3px;
}

.ability-active-item button {
  min-width: 112px;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 950;
}

.bet-modal-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px;
  padding: 16px 26px !important;
  margin-top: 0 !important;
  border-top: 1px solid rgba(255,255,255,.09) !important;
  background: rgba(9, 12, 17, .96);
  flex: 0 0 auto;
}

#betSaveFeedback {
  min-height: 22px;
  flex: 1;
}

.bet-feedback {
  display: none;
}

.bet-feedback:not(:empty) {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.045);
  color: #dbe3f0 !important;
  font-size: .88rem !important;
  line-height: 1.35;
  font-weight: 750;
}

.bet-feedback strong {
  color: #fff;
  font-size: .9rem;
  font-weight: 950;
}

.bet-feedback span {
  color: inherit !important;
}

.bet-feedback.is-success {
  border-color: rgba(46, 204, 113, .35);
  background: rgba(24, 165, 88, .13);
  color: #86efac !important;
}

.bet-feedback.is-warning {
  border-color: rgba(246, 196, 83, .36);
  background: rgba(246, 196, 83, .13);
  color: #fde68a !important;
}

.bet-feedback.is-error {
  border-color: rgba(239, 68, 68, .38);
  background: rgba(239, 68, 68, .12);
  color: #fecaca !important;
}

#saveBetModalBtn {
  min-width: 190px;
  min-height: 54px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 950;
}

#spyReportArea {
  border-radius: 8px !important;
  border-color: rgba(246,196,83,.25) !important;
  background: rgba(0,0,0,.28) !important;
}

@media (max-width: 760px) {
  .modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .bet-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .bet-modal-header,
  .bet-modal-tabs,
  .tab-content,
  .bet-modal-footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .bet-options-row,
  .bet-options-row.mini,
  .bet-options-row.mini-triple,
  .bet-split-grid {
    grid-template-columns: 1fr;
  }

  .inline-bet-row,
  #tab-game .bet-group > div[style*="display: flex"] {
    grid-template-columns: 1fr;
  }

  .ability-active-item,
  .turbo-card,
  #tab-powerups > div[style*="rgba(246, 196, 83"] {
    align-items: stretch !important;
    flex-direction: column;
  }

  .ability-active-item button,
  #saveBetModalBtn {
    width: 100%;
  }

  .bet-modal-footer {
    display: grid !important;
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GAMIFIED HUD & COMPETITIVE GAMING STYLES (NEW)
   ========================================================================== */

/* 1. HUD Profile Header */
.profile-hero-hud {
  background: radial-gradient(circle at 10% 20%, rgba(21, 31, 45, 0.95) 0%, rgba(10, 16, 26, 0.98) 100%);
  border: 2px solid rgba(246, 196, 83, 0.25);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 20px rgba(246, 196, 83, 0.08);
  position: relative;
  overflow: hidden;
}

.profile-hero-hud::after {
  content: "";
  position: absolute;
  top: 0; left: -50%; width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(246, 196, 83, 0.03), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 6s infinite linear;
}

@keyframes shine-sweep {
  0% { transform: translate(-30%, 0) skewX(-20deg); }
  100% { transform: translate(100%, 0) skewX(-20deg); }
}

.hud-user-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95e 0%, #18a558 100%);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 950;
  color: #070a10;
  border: 3px solid #f6c453;
  box-shadow: 0 0 15px rgba(246, 196, 83, 0.4);
}

.hud-stats-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hud-stat-card {
  background: rgba(4, 8, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 110px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.hud-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 196, 83, 0.4);
}

.hud-stat-card.ranking {
  border-color: rgba(246, 196, 83, 0.45);
  box-shadow: 0 0 15px rgba(246, 196, 83, 0.1);
}

.hud-stat-card span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.hud-stat-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.hud-stat-card.ranking strong {
  color: #f6c453;
}

.hud-stat-card.wallet strong {
  color: #2ecc71;
}

.hud-stat-card.streak strong {
  color: #e74c3c;
}

/* 2. Seleção do Coração Gamificada */
.heart-team-slot {
  background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.8), rgba(8, 8, 8, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.heart-team-slot.has-team {
  border-color: rgba(231, 76, 60, 0.4);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(231, 76, 60, 0.08);
}

.heart-team-shield-glow {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
}

.heart-team-shield-glow::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--team-color-primary, #e74c3c) 0%, transparent 68%);
  z-index: 0;
  opacity: 0.65;
  animation: heart-pulse 2s infinite ease-in-out;
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.heart-team-flag-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid #fff;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.heart-team-multiplier-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ffd95e 0%, #d8a411 100%);
  color: #070a10;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(246, 196, 83, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.heart-team-slot-title {
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 6px;
}

.heart-team-slot-desc {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  max-width: 460px;
  margin: 0 auto 20px;
  line-height: 1.4;
}

/* FLAGS GRID FOR FRIENDLY CHOOSING */
.flags-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.flag-selection-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.flag-selection-item img {
  width: 48px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flag-selection-item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ddd;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.flag-selection-item:hover {
  background: rgba(246, 196, 83, 0.05);
  border-color: rgba(246, 196, 83, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(246, 196, 83, 0.1);
}

.flag-selection-item.selected {
  background: rgba(24, 165, 88, 0.08);
  border-color: #18a558;
  box-shadow: 0 0 15px rgba(24, 165, 88, 0.2);
}

.flag-selection-item.selected span {
  color: #39d98a;
}

/* 3. Tournament Predictions Panel (Campeão e Artilheiro) */
.tournament-predictions-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 35px;
}

@media (max-width: 1180px) {
  .tournament-predictions-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tournament-predictions-wrapper {
    grid-template-columns: 1fr;
  }

  #tournamentPredHead {
    grid-template-columns: 1fr;
  }

  #tournamentPredHead p {
    justify-self: start;
  }
}

.tournament-pred-card {
  background:
    linear-gradient(180deg, rgba(7,10,16,.08), rgba(7,10,16,.78)),
    var(--trophy-card-bg) center 62px / 260px auto no-repeat,
    radial-gradient(circle at top right, rgba(21, 31, 45, 0.85) 0%, rgba(10, 16, 26, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  min-height: 290px;
  justify-content: space-between;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tournament-pred-card:hover {
  border-color: rgba(246, 196, 83, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(246, 196, 83, 0.08);
}

.heart-team-premium-card {
  border-color: rgba(255, 91, 120, .38);
  background:
    linear-gradient(180deg, rgba(7,10,16,.02), rgba(7,10,16,.74)),
    var(--trophy-card-bg) center 58px / 270px auto no-repeat,
    radial-gradient(circle at 50% 0%, rgba(255, 91, 120, .18), transparent 45%),
    radial-gradient(circle at 100% 20%, rgba(246, 196, 83, .16), transparent 34%),
    linear-gradient(180deg, rgba(18, 25, 36, .98), rgba(7, 11, 18, .98));
  box-shadow:
    0 16px 46px rgba(0, 0, 0, .52),
    0 0 0 1px rgba(255, 91, 120, .08) inset,
    0 0 32px rgba(255, 91, 120, .08);
}

.heart-team-premium-card::before {
  content: "2x";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #07101c;
  background: linear-gradient(135deg, #ffd86b, #f2b316);
  font-weight: 1000;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(246, 196, 83, .28);
}

.heart-team-premium-card:hover {
  border-color: rgba(255, 91, 120, .72);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, .62),
    0 0 28px rgba(255, 91, 120, .14),
    0 0 34px rgba(246, 196, 83, .08);
}

.heart-card-aura {
  position: relative;
  display: grid;
  place-items: center;
  margin: 12px 0 8px;
}

.heart-card-aura::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 91, 120, .22), transparent 62%);
  filter: blur(4px);
}

.heart-fut-card {
  background: linear-gradient(135deg, #ff5b78 0%, #ffd86b 42%, #18a558 100%);
}

.heart-fut-card .fut-card-inner {
  background: radial-gradient(circle at 50% 20%, rgba(255, 91, 120, .22), #07101c 68%);
}

.heart-team-shield {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-color: rgba(255, 91, 120, .7);
}

.heart-team-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.heart-team-name {
  color: #ffd86b;
}

.heart-boost-badge {
  position: absolute;
  right: -8px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #07101c;
  background: linear-gradient(135deg, #39d98a, #ffd86b);
  border: 2px solid rgba(255,255,255,.7);
  font-weight: 1000;
  font-size: 1.05rem;
  box-shadow: 0 10px 28px rgba(57, 217, 138, .25);
  z-index: 3;
}

.heart-card-note {
  min-height: 34px;
  color: #cfe0ff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  margin: -2px 0 10px;
}

.heart-saved-pill,
.heart-lock-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 950;
  text-align: center;
}

.heart-saved-pill {
  color: #39d98a;
  background: rgba(57, 217, 138, .12);
  border: 1px solid rgba(57, 217, 138, .24);
}

.heart-lock-pill {
  color: #ffd86b;
  background: rgba(246, 196, 83, .12);
  border: 1px solid rgba(246, 196, 83, .24);
}

.paid-change-note {
  grid-column: 1 / -1;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #ffd86b;
  background: rgba(246, 196, 83, .1);
  border: 1px solid rgba(246, 196, 83, .22);
  font-size: .75rem;
  font-weight: 950;
  text-align: center;
}

.tournament-pred-header {
  text-align: center;
  width: 100%;
}

.tournament-pred-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f6c453;
  text-shadow: 0 0 8px rgba(246, 196, 83, 0.2);
}

.tournament-pred-header span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}

/* FUT ULTIMATE TEAM CARD CUSTOM WIDGET */
.fut-card-container {
  perspective: 1000px;
  margin: 15px 0;
}

.fut-card {
  position: relative;
  width: 125px;
  height: 185px;
  background: linear-gradient(135deg, #f5c037 0%, #f6c453 30%, #e6a817 65%, #9a7206 100%);
  border-radius: 12px;
  clip-path: polygon(0% 12%, 50% 0%, 100% 12%, 100% 82%, 50% 100%, 0% 82%);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(246, 196, 83, 0.2);
  padding: 2px; /* Border outline effect */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.fut-card:hover {
  transform: scale(1.06) rotateY(10deg);
}

.fut-card-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #172130 0%, #070b12 100%);
  clip-path: polygon(0% 12%, 50% 0%, 100% 12%, 100% 82%, 50% 100%, 0% 82%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px 15px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Golden glare shimmer on card */
.fut-card-inner::after {
  content: "";
  position: absolute;
  top: -100%; left: -100%; width: 300%; height: 300%;
  background: linear-gradient(105deg, transparent 40%, rgba(246, 196, 83, 0.15) 50%, transparent 60%);
  animation: card-glare 8s infinite linear;
  pointer-events: none;
}

@keyframes card-glare {
  0% { transform: translate(-30%, -30%) rotate(0deg); }
  100% { transform: translate(30%, 30%) rotate(0deg); }
}

.fut-card-badge-placeholder {
  font-size: 1.9rem;
  color: #f6c453;
  margin-top: 18px;
  text-shadow: 0 0 12px rgba(246, 196, 83, 0.5);
  animation: float-widget 3s infinite ease-in-out;
}

@keyframes float-widget {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.fut-card-player-silhouette {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 196, 83, 0.5);
  background: radial-gradient(circle, rgba(246,196,83,0.1), transparent 80%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-top: 15px;
  position: relative;
}

.team-choice-shield,
.scorer-choice-portrait {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(246,196,83,.2), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.team-choice-img,
.heart-team-shield .team-choice-img,
.scorer-choice-team-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  background: rgba(255, 255, 255, .96);
  border-radius: 50%;
}

.team-choice-shield .fa-flag {
  color: rgba(246, 196, 83, .42);
  font-size: 2.5rem;
}

.team-choice-flag-emoji {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #07101c;
  background:
    linear-gradient(180deg, #ffffff, #dbe7f8);
  border-radius: 50%;
  border: 1px solid rgba(246,196,83,.34);
  box-shadow: 0 0 18px rgba(246,196,83,.14);
  font-size: 1.25rem;
  font-weight: 1000;
  letter-spacing: .02em;
}

.team-choice-name,
.scorer-choice-name {
  white-space: normal;
  line-height: 1.05;
  max-height: 2.3em;
}

.fut-card-player-position {
  margin-top: 3px;
  color: #9fb1c9;
  font-size: .52rem;
  font-weight: 850;
  text-transform: uppercase;
  text-align: center;
  width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fut-card-player-silhouette i {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.2);
  transform: translateY(8px);
}

.fut-card-player-name {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 8px;
  color: #fff;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 90%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.fut-card-team-tag {
  font-size: 0.58rem;
  font-weight: 800;
  color: #f6c453;
  text-transform: uppercase;
  margin-top: 2px;
  background: rgba(246, 196, 83, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(246, 196, 83, 0.2);
}

.fut-card-meta-score {
  font-size: 0.85rem;
  font-weight: 950;
  color: #2ecc71;
  margin-top: 12px;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

/* Empty Prediction State inside FUT Shape */
.fut-card.is-empty {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.fut-card.is-empty .fut-card-inner {
  background: #0d121c;
}

.fut-card.is-empty .fut-card-badge-placeholder {
  color: rgba(255, 255, 255, 0.12);
  text-shadow: none;
  animation: none;
}

.fut-card-empty-msg {
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 15px;
  text-align: center;
  width: 80%;
  line-height: 1.2;
}

/* Action forms for cup predictions */
.cup-pred-form-wrap {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

#scorerFormWrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.cup-pred-form-wrap select {
  flex-grow: 1;
  min-width: 0;
  background: #0d121c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  outline: none;
  font-weight: 600;
  max-width: none;
}

.cup-pred-form-wrap select:focus {
  border-color: #f6c453;
}

.cup-pred-form-wrap button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.prediction-saved-pill,
.prediction-locked-pill {
  padding: 9px 10px;
  font-weight: 850;
  width: 100%;
  text-align: center;
  border-radius: 8px;
}

.prediction-saved-pill {
  color: #2ecc71;
  background: rgba(46, 204, 113, .15);
  border: 1px solid rgba(46, 204, 113, .25);
}

.prediction-locked-pill {
  color: #e74c3c;
  background: rgba(231, 76, 60, .15);
  border: 1px solid rgba(231, 76, 60, .25);
}

/* 4. Tab Navigation Filters (Confrontos) */
.round-filter-tabs-wrapper {
  background: rgba(16, 23, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 24px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.round-filter-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.round-tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.round-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.round-tab-btn.active {
  color: #070a10;
  background: #f6c453;
  box-shadow: 0 4px 12px rgba(246, 196, 83, 0.25);
}

/* 5. Match Card Interactive States */
.card-score-input.saved-state {
  border-color: #18a558 !important;
  background: #eefdf5 !important;
  box-shadow: 0 0 12px rgba(24, 165, 88, 0.25) !important;
}

.card-score-input.unsaved-state {
  border-color: #f39c12 !important;
  background: #fef9eb !important;
  box-shadow: 0 0 12px rgba(243, 156, 18, 0.25) !important;
}

.card-save-tick {
  font-size: 0.75rem;
  color: #18a558;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  justify-content: center;
}

.countdown span.closed-notice {
  grid-column: 1 / -1;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
  border-color: rgba(231, 76, 60, 0.25);
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 6px;
}

/* ==========================================================================
   MOBILE OPTIMIZATION PASS
   ========================================================================== */
@media (max-width: 760px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .site-shell {
    overflow-x: clip;
  }

  .game-nav {
    width: min(100% - 20px, 1200px);
    padding: 10px 0;
    align-items: flex-start;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    min-height: 44px;
    flex: 0 0 auto;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: .82rem;
    line-height: 1.05;
  }

  .nav-actions {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

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

  .nav-actions .btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: .82rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .landing-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(7,10,16,.98), rgba(7,10,16,.84), rgba(7,10,16,.96)),
      url("https://images.unsplash.com/photo-1522778526097-ce0a22ceb253?auto=format&fit=crop&w=1200&q=72") center/cover;
  }

  .hero-layout {
    width: min(100% - 20px, 1200px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0 30px;
  }

  h1 {
    font-size: 2.65rem;
    line-height: .96;
    margin: 14px 0;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy-block p,
  .section-head p,
  .arena-head p {
    font-size: .96rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .landing-match-cta {
    width: 100%;
  }

  .leaderboard-card,
  .side-panel,
  .mini-score,
  .login-panel {
    box-shadow: 0 18px 42px rgba(0,0,0,.32);
  }

  .leaderboard-card {
    min-height: 0;
    padding: 14px;
  }

  .hot-team-card {
    grid-template-columns: 30px 46px minmax(0, 1fr);
    min-height: 76px;
    padding: 10px;
  }

  .hot-team-logo {
    width: 44px;
    height: 44px;
  }

  .section {
    width: min(100% - 20px, 1200px);
    padding: 34px 0;
  }

  .section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
  }

  .match-grid,
  .match-grid-cards,
  .arena-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cup-card {
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
  }

  .landing-match-card .cup-card__teams,
  .cup-card__teams {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 6px;
    padding: 4px 0;
  }

  .landing-match-card .shield-wrapper,
  .shield-wrapper {
    width: 54px;
    height: 62px;
  }

  .team-logo.shield-logo {
    padding: 6px;
  }

  .cup-team strong {
    font-size: .72rem;
    line-height: 1.15;
  }

  .landing-match-card .vs-text,
  .vs-text {
    font-size: 1.45rem;
  }

  .landing-match-card .cup-card__details,
  .cup-card__details {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-col {
    justify-content: flex-start;
    border-right: none !important;
    min-height: 34px;
  }

  .detail-text strong {
    max-width: none;
    white-space: normal;
  }

  .landing-countdown-row,
  .countdown-row {
    display: grid;
    gap: 12px;
    padding: 14px;
    width: 100%;
  }

  .landing-countdown-row.premium-countdown {
    padding: 15px;
    border-radius: 18px;
  }

  .premium-countdown__head {
    display: grid;
    gap: 4px;
    align-items: start;
  }

  .landing-countdown-row .countdown-title,
  .countdown-row .countdown-title {
    justify-content: flex-start;
    font-size: .76rem;
    line-height: 1.2;
    white-space: normal;
  }

  .premium-countdown__head .countdown-title {
    font-size: .9rem;
  }

  .premium-countdown__head small {
    text-align: left;
    font-size: .7rem;
  }

  .landing-countdown-row .countdown,
  .countdown-row .countdown,
  .countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    gap: 9px;
  }

  .landing-countdown-row .premium-countdown__grid {
    gap: 10px;
  }

  .landing-countdown-row .countdown span,
  .countdown-row .countdown span,
  .countdown span {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 56px;
    padding: 8px 4px;
    border-radius: 10px;
    font-size: .72rem;
    line-height: 1;
  }

  .landing-countdown-row .premium-countdown__grid span {
    min-height: 70px;
    padding: 10px 4px;
    border-radius: 14px;
  }

  .landing-countdown-row .countdown b,
  .countdown-row .countdown b,
  .countdown b {
    display: block;
    margin: 0 0 4px;
    font-size: 1.22rem;
    line-height: 1;
  }

  .landing-countdown-row .premium-countdown__grid b {
    font-size: 1.55rem;
  }

  .landing-countdown-row .premium-countdown__grid em {
    font-size: .62rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 720px;
  }

  .arena-layout {
    width: min(100% - 20px, 1200px);
    padding: 18px 0 44px;
  }

  .arena-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .arena-head h1 {
    max-width: 100%;
    font-size: 2.65rem;
    line-height: .98;
  }

  .participant-session-card {
    width: 100%;
    grid-template-columns: 48px minmax(0, 1fr);
    border-radius: 16px;
  }

  .participant-session-avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .participant-session-copy > strong {
    font-size: .96rem;
  }

  .mini-score {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 14px;
  }

  .mini-score strong {
    font-size: 1.8rem;
    text-align: right;
  }

  .mini-score small {
    grid-column: 1 / -1;
  }

  .arena-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .arena-grid > div {
    min-width: 0;
  }

  .side-panel {
    position: static;
    order: -1;
    min-width: 0;
  }

  #tournamentPredHead {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
    border-radius: 12px;
  }

  #tournamentPredHead p {
    justify-self: start;
    font-size: .92rem;
  }

  .tournament-predictions-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 22px;
  }

  .tournament-pred-card {
    min-height: 0;
    padding: 16px;
    border-radius: 14px;
  }

  .tournament-pred-header h3 {
    font-size: .98rem;
  }

  .fut-card-container,
  .heart-card-aura {
    margin: 10px 0;
  }

  .fut-card {
    width: 112px;
    height: 166px;
  }

  .heart-boost-badge {
    right: 12px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }

  .cup-pred-form-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

  #scorerFormWrap {
    grid-template-columns: 1fr;
  }

  .cup-pred-form-wrap select,
  .cup-pred-form-wrap button {
    width: 100%;
    min-height: 44px;
  }

  .round-filter-tabs-wrapper {
    margin-bottom: 18px;
    border-radius: 12px;
    padding: 5px;
  }

  .round-tab-btn {
    padding: 9px 12px;
    font-size: .72rem;
  }

  .modal-backdrop {
    padding: 8px;
  }

  .bet-modal-card {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 8px;
  }

  .bet-modal-header {
    padding-top: 14px !important;
    padding-bottom: 12px !important;
  }

  .bet-modal-header h3 {
    font-size: 1.18rem;
  }

  .tab-btn {
    padding: 9px 12px;
    font-size: .82rem;
  }

  .tab-content {
    padding-top: 14px !important;
    padding-bottom: 12px !important;
  }

  .bet-group {
    padding: 12px;
  }

  .bet-label {
    display: grid;
    gap: 4px;
    font-size: .9rem;
  }

  .bet-radio-btn span,
  .bet-select,
  .tab-content select {
    min-height: 46px;
    font-size: .86rem;
  }

  .exact-score-inputs {
    justify-content: stretch;
  }

  .score-input-mini {
    width: 100%;
  }

  .ability-active-info {
    align-items: flex-start;
  }

  .login-screen {
    min-height: 100dvh;
    padding: 12px;
  }

  .login-panel--premium {
    width: 100%;
    padding: 18px;
  }

  .login-steps {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .login-steps::-webkit-scrollbar {
    display: none;
  }

  .otp-pin-group {
    gap: 5px;
  }

  .otp-pin {
    width: 42px;
    height: 52px;
  }
}

@media (max-width: 420px) {
  .game-nav {
    width: min(100% - 16px, 1200px);
  }

  .brand span {
    max-width: 92px;
  }

  h1,
  .arena-head h1 {
    font-size: 2.2rem;
  }

  .landing-match-card .shield-wrapper,
  .shield-wrapper {
    width: 48px;
    height: 56px;
  }

  .cup-card {
    padding: 14px;
  }

  .cup-card__brand span {
    font-size: .8rem;
  }

  .cup-card__phase {
    min-width: 0;
    width: 100%;
  }

  .mini-score {
    grid-template-columns: 1fr;
  }

  .mini-score strong {
    text-align: left;
  }

  .btn-close-modal {
    width: 38px;
    height: 38px;
  }

  .otp-pin {
    width: 38px;
    height: 50px;
  }
}

/* Final mobile containment: prevents cards and modal content from bleeding off-screen. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .game-nav,
  .hero-layout,
  .section,
  .arena-layout {
    width: calc(100% - 16px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-actions .btn {
    width: auto;
  }

  .cup-card,
  .landing-match-card,
  .tournament-pred-card,
  .heart-team-premium-card,
  .leaderboard-card,
  .side-panel,
  .mini-score,
  .login-panel,
  .arena-card,
  .ability-card,
  .profile-hero,
  .profile-card,
  .shop-header-banner {
    min-width: 0;
    max-width: 100%;
  }

  .cup-card > *,
  .landing-match-card > *,
  .tournament-pred-card > *,
  .heart-team-premium-card > *,
  .leaderboard-card > *,
  .side-panel > *,
  .arena-card > *,
  .ability-card > * {
    min-width: 0;
  }

  .cup-card__brand {
    flex-wrap: wrap;
  }

  .cup-card__phase {
    width: 100%;
    min-width: 0;
  }

  .landing-match-card .cup-card__teams,
  .cup-card__teams {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    align-items: center;
  }

  .landing-match-card .shield-wrapper,
  .shield-wrapper {
    width: 48px;
    height: 56px;
  }

  .landing-match-card .vs-text,
  .vs-text {
    font-size: 1.12rem;
  }

  .cup-team strong,
  .team-name,
  .detail-text strong,
  .hot-team-copy strong,
  .hot-team-copy span,
  .leader-row span,
  .leader-row strong,
  .participant-code,
  .ranking-name,
  .ranking-code {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .leader-row {
    grid-template-columns: 28px 32px 1fr auto;
    gap: 8px;
    overflow: hidden;
  }

  .hot-team-card {
    grid-template-columns: 28px 40px minmax(0, 1fr);
  }

  .hot-team-card b {
    grid-column: 3;
    justify-self: start;
  }

  .guess-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .card-score-input,
  .score-input-mini,
  .bet-select,
  .tab-content select {
    min-width: 0;
  }

  .card-score-input {
    width: 44px;
  }

  .modal-backdrop {
    width: auto;
    max-width: 100%;
    overflow: hidden;
  }

  .bet-modal-card {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .cup-card,
  .landing-match-card,
  .tournament-pred-card,
  .heart-team-premium-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .landing-match-card .cup-card__teams,
  .cup-card__teams {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    gap: 4px;
  }

  .landing-match-card .shield-wrapper,
  .shield-wrapper {
    width: 42px;
    height: 50px;
  }

  .cup-team strong {
    font-size: .66rem;
  }

  .landing-countdown-row .countdown,
  .countdown-row .countdown,
  .countdown {
    gap: 6px;
  }

  .landing-countdown-row.premium-countdown {
    padding: 12px;
  }

  .landing-countdown-row .countdown span,
  .countdown-row .countdown span,
  .countdown span {
    min-height: 50px;
    padding: 7px 2px;
    font-size: .64rem;
  }

  .landing-countdown-row .premium-countdown__grid span {
    min-height: 58px;
    border-radius: 12px;
  }

  .landing-countdown-row .countdown b,
  .countdown-row .countdown b,
  .countdown b {
    font-size: 1.06rem;
  }

  .landing-countdown-row .premium-countdown__grid b {
    font-size: 1.28rem;
  }

  .landing-countdown-row .premium-countdown__grid em {
    font-size: .55rem;
    letter-spacing: .04em;
  }
}

/* Knockout bracket in the games table section */
.knockout-bracket-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(246, 196, 83, .24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(246,196,83,.14), transparent 38%),
    linear-gradient(180deg, rgba(16,23,34,.96), rgba(6,10,17,.98));
  box-shadow: 0 24px 64px rgba(0,0,0,.42);
}

.knockout-bracket-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.knockout-bracket-panel h3 {
  margin: 8px 0 0;
  color: #fff7d6;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.knockout-bracket-panel p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.knockout-bracket-grid {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  padding: 10px 4px 20px;
  align-items: stretch;
  min-height: 600px;
}

.bracket-stage {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  flex: 1 0 220px;
}

.bracket-stage h4 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: .84rem;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid rgba(246, 196, 83, 0.15);
  padding-bottom: 8px;
}

.bracket-stage-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-grow: 1;
  gap: 16px;
}

.bracket-match {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bracket-match:hover {
  border-color: rgba(246, 196, 83, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Bracket connection stubs */
.bracket-stage:not(:last-child) .bracket-match::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: rgba(246, 196, 83, 0.25);
  z-index: 1;
  pointer-events: none;
}

.bracket-stage:not(:first-child) .bracket-match::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: rgba(246, 196, 83, 0.25);
  z-index: 1;
  pointer-events: none;
}

.bracket-match.is-defined {
  border-color: rgba(57,217,138,.24);
  background:
    linear-gradient(135deg, rgba(57,217,138,.08), transparent 52%),
    rgba(255,255,255,.045);
}

.bracket-match.has-placeholder {
  border-style: dashed;
}

.bracket-match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-match-meta span {
  color: #07101c;
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
}

.bracket-team {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  transition: background-color 0.2s, transform 0.2s;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
}

.bracket-team.highlight-team {
  background: rgba(246, 196, 83, 0.18) !important;
  transform: scale(1.03);
  box-shadow: 0 0 8px rgba(246, 196, 83, 0.15);
}

.bracket-team.highlight-team strong {
  color: var(--gold) !important;
}

.bracket-team-flag {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246,196,83,.3);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.bracket-team-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  background: #fff;
}

.bracket-team-flag b {
  color: var(--gold);
  font-size: .64rem;
  font-weight: 1000;
}

.bracket-team strong {
  min-width: 0;
  color: var(--text);
  font-size: .82rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team.is-placeholder strong {
  color: var(--muted);
  font-style: italic;
}

.bracket-versus {
  justify-self: center;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(246,196,83,.1);
  font-size: .74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.bracket-match small {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .knockout-bracket-panel {
    padding: 16px;
  }

  .knockout-bracket-panel > header {
    display: grid;
  }

  .knockout-bracket-grid {
    grid-template-columns: repeat(6, minmax(190px, 82vw));
  }
}

/* Arena emotion pass */
.arena-page {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(7,10,16,.98), rgba(7,10,16,.88) 46%, rgba(7,10,16,.98)),
    url("https://images.unsplash.com/photo-1577223625816-7546f13df25d?auto=format&fit=crop&w=1800&q=78") center top/cover fixed;
}

.arena-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(246,196,83,.08) 50%, transparent 52% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 78px),
    radial-gradient(ellipse at 50% 10%, rgba(246,196,83,.16), transparent 42%),
    linear-gradient(180deg, rgba(7,10,16,.12), #070a10 88%);
  opacity: .95;
}

.arena-page .game-nav,
.arena-page .arena-layout {
  position: relative;
  z-index: 1;
}

.arena-head h1 {
  max-width: 900px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 45%, #ffd86b 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 60px rgba(246,196,83,.12);
}

.arena-head .eyebrow {
  border-color: rgba(246,196,83,.55);
  box-shadow: 0 0 28px rgba(246,196,83,.12);
}

.mini-score {
  border-color: rgba(57,217,138,.24);
  background:
    linear-gradient(180deg, rgba(13,25,42,.96), rgba(7,10,16,.92)),
    radial-gradient(circle at 80% 0%, rgba(57,217,138,.2), transparent 48%);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 26px rgba(57,217,138,.08) inset;
}

#tournamentPredHead {
  border-color: rgba(246,196,83,.34);
  background:
    linear-gradient(135deg, rgba(246,196,83,.14), transparent 36%),
    linear-gradient(180deg, rgba(18,26,38,.86), rgba(7,10,16,.62));
  box-shadow: 0 22px 55px rgba(0,0,0,.34), 0 0 30px rgba(246,196,83,.07) inset;
}

#tournamentPredHead h2 {
  color: #fff;
  text-shadow: 0 0 24px rgba(246,196,83,.18);
}

.tournament-pred-card {
  overflow: hidden;
  border-color: rgba(246,196,83,.16);
  background:
    linear-gradient(180deg, rgba(7,10,16,.06), rgba(7,10,16,.78)),
    var(--trophy-card-bg) center 58px / 270px auto no-repeat,
    radial-gradient(circle at 50% -10%, rgba(246,196,83,.18), transparent 42%),
    linear-gradient(180deg, rgba(15,27,43,.98), rgba(7,11,18,.98));
  box-shadow:
    0 24px 70px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.035) inset;
}

.tournament-pred-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.065) 46%, transparent 64%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}

.tournament-pred-card:hover::after {
  transform: translateX(120%);
}

#predCardChampion {
  border-color: rgba(246,196,83,.34);
}

#predCardScorer {
  border-color: rgba(114,167,255,.24);
}

#predCardScorer .fut-card {
  background: linear-gradient(135deg, #72a7ff 0%, #f6c453 46%, #19263c 100%);
}

.fut-card {
  width: 136px;
  height: 202px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.42));
}

.fut-card-player-silhouette {
  width: 74px;
  height: 74px;
}

.team-choice-img,
.heart-team-shield .team-choice-img,
.scorer-choice-team-logo {
  border: 1px solid rgba(246,196,83,.34);
  box-shadow: 0 0 18px rgba(246,196,83,.14);
}

.btn-primary,
.landing-match-cta {
  background: linear-gradient(180deg, #ffd86b 0%, #f3b313 100%);
  box-shadow: 0 12px 24px rgba(246,196,83,.18);
}

.btn-primary:hover,
.landing-match-cta:hover {
  box-shadow: 0 16px 34px rgba(246,196,83,.26);
}

.leaderboard-card,
.side-panel {
  border-color: rgba(114,167,255,.16);
  background:
    linear-gradient(90deg, rgba(7,10,16,.9), rgba(7,10,16,.54)),
    var(--trophy-card-bg) right -64px bottom -88px / 260px auto no-repeat,
    linear-gradient(180deg, rgba(17,27,43,.96), rgba(10,16,26,.96));
}

.leader-row {
  background:
    linear-gradient(90deg, rgba(246,196,83,.08), transparent 48%),
    rgba(255,255,255,.05);
}

.leader-row.is-first {
  box-shadow: 0 0 24px rgba(246,196,83,.1);
}

@media (max-width: 760px) {
  .arena-page {
    background-attachment: scroll;
  }

  .fut-card {
    width: 124px;
    height: 184px;
  }
}

/* Tournament cards readability pass */
.tournament-predictions-wrapper {
  align-items: stretch;
}

.tournament-pred-card {
  min-height: 430px;
  padding: 22px 22px 20px;
  gap: 16px;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(8,12,19,.7), rgba(8,12,19,.88)),
    var(--trophy-card-bg) center calc(100% + 54px) / 210px auto no-repeat,
    radial-gradient(circle at 50% 26%, rgba(246,196,83,.2), transparent 36%),
    linear-gradient(180deg, rgba(17,29,45,.98), rgba(6,10,17,.98));
}

.heart-team-premium-card {
  background:
    linear-gradient(180deg, rgba(10,10,16,.66), rgba(9,12,20,.9)),
    var(--trophy-card-bg) center calc(100% + 48px) / 215px auto no-repeat,
    radial-gradient(circle at 50% 26%, rgba(255,91,120,.26), transparent 34%),
    radial-gradient(circle at 74% 2%, rgba(246,196,83,.18), transparent 30%),
    linear-gradient(180deg, rgba(23,28,42,.98), rgba(7,11,18,.98));
}

.tournament-pred-header {
  min-height: 58px;
  display: grid;
  align-content: start;
  gap: 5px;
}

.tournament-pred-header h3 {
  font-size: clamp(.96rem, 1.45vw, 1.16rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.tournament-pred-header span {
  font-size: .68rem;
  line-height: 1.2;
}

.fut-card-container,
.heart-card-aura {
  width: 100%;
  min-height: 218px;
  display: grid;
  place-items: center;
  margin: 0;
}

.heart-card-aura::before {
  width: 194px;
  height: 194px;
}

.fut-card {
  width: 154px;
  height: 218px;
}

.fut-card-inner {
  padding: 14px 10px 18px;
  justify-content: flex-start;
  gap: 7px;
}

.fut-card-badge-placeholder {
  font-size: 1.7rem;
  margin-top: 11px;
  min-height: 32px;
  display: grid;
  place-items: center;
}

.fut-card-player-silhouette {
  width: 94px;
  height: 72px;
  margin-top: 5px;
  border-radius: 18px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(232,238,247,.98));
  box-shadow:
    0 12px 22px rgba(0,0,0,.28),
    0 0 0 1px rgba(246,196,83,.34) inset;
}

.team-choice-img,
.heart-team-shield .team-choice-img,
.scorer-choice-team-logo {
  width: 100%;
  height: 100%;
  padding: 8px;
  border-radius: 16px;
  background: transparent;
  border: 0;
  object-fit: contain;
}

.team-choice-flag-emoji {
  border-radius: 16px;
}

.fut-card-player-name,
.team-choice-name,
.scorer-choice-name,
.heart-team-name {
  width: 100%;
  min-height: 34px;
  max-height: none;
  margin-top: 4px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .78rem;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.fut-card-team-tag,
.fut-card-player-position {
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 3px 7px;
  font-size: .56rem;
  line-height: 1;
  white-space: nowrap;
}

.fut-card-meta-score {
  margin-top: 2px;
  font-size: .9rem;
  line-height: 1;
}

.fut-card-empty-msg {
  margin: 12px auto 0;
  color: #9fb1c9;
  font-size: .68rem;
  line-height: 1.18;
}

.heart-boost-badge {
  right: calc(50% - 98px);
  bottom: 24px;
  width: 50px;
  height: 50px;
}

.heart-team-premium-card::before {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 34px;
  font-size: .96rem;
}

.heart-card-note {
  min-height: 38px;
  margin: -6px 0 0;
  padding: 0 8px;
  display: grid;
  place-items: center;
}

.cup-pred-form-wrap {
  margin-top: auto;
  min-height: 48px;
}

#scorerFormWrap {
  grid-template-columns: minmax(0, 1fr);
}

.cup-pred-form-wrap select,
.cup-pred-form-wrap button {
  min-height: 42px;
}

.prediction-saved-pill,
.prediction-locked-pill,
.heart-saved-pill,
.heart-lock-pill {
  min-height: 46px;
  font-size: .78rem;
  line-height: 1.15;
}

#predCardChampion .prediction-saved-pill,
#predCardScorer .prediction-saved-pill {
  max-width: 100%;
  display: inline-flex;
}

.side-panel .hot-team-card img,
.side-panel .team-choice-flag-emoji {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.hot-vote-row {
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  padding: 10px !important;
  align-items: center;
}

.hot-vote-flag {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(232,238,247,.96));
  box-shadow: 0 0 0 1px rgba(246,196,83,.22) inset;
}

.hot-vote-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

@media (min-width: 1181px) {
  .arena-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  }
}

@media (max-width: 1180px) {
  .tournament-pred-card {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .tournament-pred-card {
    min-height: 0;
    padding: 18px;
  }

  .tournament-pred-header {
    min-height: 0;
  }

  .fut-card-container,
  .heart-card-aura {
    min-height: 210px;
  }

  .fut-card {
    width: 148px;
    height: 210px;
  }

  .cup-pred-form-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Premium mobile sidebar and team dossier modal */
.mobile-menu-trigger,
.mobile-sidebar,
.mobile-sidebar-backdrop {
  display: none;
}

.mobile-menu-trigger {
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(246,196,83,.28);
  border-radius: 12px;
  color: var(--gold);
  background:
    linear-gradient(180deg, rgba(246,196,83,.12), rgba(255,255,255,.05)),
    rgba(16,23,34,.92);
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
}

.mobile-sidebar-backdrop.is-open {
  display: block;
}

.mobile-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 340px);
  z-index: 10040;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11,17,28,.96), rgba(5,8,14,.98)),
    var(--trophy-card-bg) right -72px bottom -90px / 230px auto no-repeat;
  border-right: 1px solid rgba(246,196,83,.28);
  box-shadow: 28px 0 80px rgba(0,0,0,.55);
  transform: translateX(-105%);
  transition: transform .22s ease;
}

.mobile-sidebar.is-open {
  transform: translateX(0);
}

.mobile-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10030;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .18s ease;
}

.mobile-sidebar-backdrop.is-open {
  opacity: 1;
}

.mobile-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mobile-sidebar__top .brand img {
  width: 38px;
  height: 38px;
}

.mobile-sidebar__top .brand span {
  display: inline;
  font-size: .92rem;
}

.mobile-sidebar__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.06);
}

.mobile-sidebar__score {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(57,217,138,.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 0%, rgba(57,217,138,.18), transparent 42%),
    rgba(255,255,255,.055);
}

.mobile-sidebar__score span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mobile-sidebar__score strong {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.mobile-sidebar__nav {
  display: grid;
  gap: 10px;
}

.mobile-sidebar__nav a,
.mobile-sidebar__nav button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #f8fafc;
  background: rgba(255,255,255,.055);
  font: inherit;
  font-weight: 950;
  text-align: left;
}

.mobile-sidebar__nav i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--gold);
  background: rgba(246,196,83,.12);
}

.mobile-sidebar__nav .active {
  border-color: rgba(246,196,83,.42);
  background:
    linear-gradient(90deg, rgba(246,196,83,.18), rgba(255,255,255,.06));
}

.team-info-modal[hidden] {
  display: none;
}

.team-info-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 20px;
}

.team-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(8px);
}

.team-info-modal__card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid rgba(246,196,83,.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14,22,35,.96), rgba(6,10,17,.98)),
    var(--trophy-card-bg) right -54px bottom -74px / 250px auto no-repeat;
  box-shadow: 0 34px 110px rgba(0,0,0,.62);
}

.team-info-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.08);
}

.team-info-hero {
  min-height: 210px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 32px 62px 24px 28px;
  background:
    radial-gradient(circle at 18% 42%, rgba(246,196,83,.2), transparent 42%),
    linear-gradient(135deg, rgba(246,196,83,.14), transparent 45%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.team-info-flag-wrap {
  width: 142px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #e7edf7);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 0 1px rgba(246,196,83,.24) inset;
}

.team-info-flag {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  border: 0;
  background: transparent;
  border-radius: 20px;
}

.team-info-kicker {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.team-info-hero h2 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: .95;
}

.team-info-hero p {
  margin: 0;
  color: var(--green);
  font-weight: 950;
}

.team-info-grid,
.team-info-squad,
.team-info-next {
  margin: 18px;
}

.team-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.team-info-stat,
.team-info-next,
.team-info-squad {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}

.team-info-stat {
  min-height: 102px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.team-info-stat i {
  color: var(--gold);
}

.team-info-stat span,
.team-info-next span,
.team-info-section-title span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-info-stat strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.team-info-squad,
.team-info-next {
  padding: 16px;
}

.team-info-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.team-info-section-title strong {
  color: var(--green);
}

.team-info-position-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-info-position-grid div {
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
}

.team-info-position-grid span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
}

.team-info-position-grid strong {
  display: block;
  color: var(--gold);
  font-size: 1.3rem;
}

.team-info-next {
  display: grid;
  gap: 4px;
}

.team-info-next strong {
  font-size: 1.05rem;
}

.team-info-next small {
  color: var(--muted);
  line-height: 1.35;
}

.fut-card-player-silhouette {
  border: 0;
  cursor: pointer;
}

button.shield-wrapper {
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

button.shield-wrapper > * {
  pointer-events: none;
}

.fut-card-player-silhouette:focus-visible,
.mobile-menu-trigger:focus-visible,
.team-info-modal__close:focus-visible,
.mobile-sidebar__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.mobile-sidebar-open,
body.team-info-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .game-nav {
    width: calc(100% - 24px);
    min-height: 70px;
    padding: 12px 0;
    flex-direction: row;
    align-items: center;
  }

  .game-nav > .brand span {
    display: inline;
    font-size: .86rem;
  }

  .game-nav > .brand img {
    width: 38px;
    height: 38px;
  }

  .game-nav > .nav-actions {
    display: none;
  }

  .mobile-menu-trigger {
    display: grid;
  }

  .mobile-sidebar {
    display: block;
  }

  .team-info-modal {
    padding: 12px;
  }

  .team-info-modal__card {
    max-height: 88vh;
    border-radius: 16px;
  }

  .team-info-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 58px 18px 22px;
  }

  .team-info-flag-wrap {
    width: 148px;
    height: 110px;
  }

  .team-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px;
  }

  .team-info-squad,
  .team-info-next {
    margin: 12px;
  }

  .team-info-position-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Team prediction card: flag as the golden-card background, name in white plaque */
.team-choice-card-inner {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 24%, rgba(246,196,83,.14), transparent 42%),
    linear-gradient(180deg, rgba(8,13,22,.84), rgba(5,8,13,.96));
}

.team-choice-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,8,13,.18), rgba(5,8,13,.55) 68%, rgba(5,8,13,.78)),
    radial-gradient(circle at 50% 46%, transparent 0 42%, rgba(5,8,13,.4) 74%);
}

.team-choice-card-inner > :not(.team-choice-card-flag-bg) {
  position: relative;
  z-index: 2;
}

.team-choice-card-flag-bg {
  position: absolute;
  inset: 18px 5px 34px;
  z-index: 0;
  width: calc(100% - 10px);
  height: calc(100% - 52px);
  object-fit: cover;
  opacity: .62;
  filter: saturate(1.2) contrast(1.06);
  transform: scale(1.08);
  clip-path: polygon(0% 12%, 50% 0%, 100% 12%, 100% 82%, 50% 100%, 0% 82%);
}

.team-choice-card-flag-fallback {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.13);
  font-size: 3.3rem;
  font-weight: 1000;
  letter-spacing: .06em;
  background: linear-gradient(135deg, rgba(246,196,83,.22), rgba(114,167,255,.12));
}

.team-choice-card-inner .fut-card-badge-placeholder {
  margin-top: 18px;
  min-height: 34px;
  color: #ffd86b;
  text-shadow: 0 0 18px rgba(246,196,83,.55), 0 3px 12px rgba(0,0,0,.55);
}

.team-choice-name-pill {
  width: min(122px, calc(100% - 20px));
  min-height: 42px;
  margin-top: 42px;
  display: grid;
  place-items: center;
  padding: 7px 13px;
  border: 2px solid rgba(246,196,83,.72);
  border-radius: 999px;
  color: #07101c;
  background: linear-gradient(180deg, #ffffff, #e8eef7);
  box-shadow:
    0 14px 26px rgba(0,0,0,.34),
    0 0 18px rgba(246,196,83,.22);
  cursor: pointer;
}

.team-choice-name-pill span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #07101c;
  font-size: .76rem;
  line-height: 1.05;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

.team-choice-card-inner .fut-card-team-tag {
  margin-top: 9px;
  color: #ffd86b;
  background: rgba(7,10,16,.62);
  border-color: rgba(246,196,83,.42);
}

.team-choice-card-inner .fut-card-meta-score {
  margin-top: 7px;
  color: #39d98a;
  text-shadow: 0 0 16px rgba(57,217,138,.42), 0 3px 10px rgba(0,0,0,.55);
}

.heart-fut-card .team-choice-card-flag-bg {
  opacity: .58;
}

.heart-fut-card .team-choice-name-pill {
  border-color: rgba(255,91,120,.72);
  box-shadow:
    0 14px 26px rgba(0,0,0,.34),
    0 0 18px rgba(255,91,120,.22);
}

.group-winners-panel {
  margin: 0 0 34px;
  padding: 20px;
  border: 1px solid rgba(246, 196, 83, .28);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(246,196,83,.12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(57,217,138,.12), transparent 34%),
    linear-gradient(180deg, rgba(13,22,34,.96), rgba(6,10,17,.98));
  box-shadow: 0 20px 50px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}

.group-winners-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.group-winners-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd86b;
  font-size: .78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.group-winners-head h3 {
  margin: 6px 0 4px;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.group-winners-head p {
  margin: 0;
  max-width: 620px;
  color: #cfe0ff;
  font-weight: 700;
  line-height: 1.35;
}

.group-winners-head > strong {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: #07101c;
  background: linear-gradient(135deg, #ffd86b, #f2b316);
  box-shadow: 0 12px 28px rgba(246,196,83,.24);
  font-weight: 1000;
  white-space: nowrap;
}

.group-winners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.group-winner-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(246,196,83,.12), transparent 45%),
    linear-gradient(180deg, rgba(16,27,42,.96), rgba(8,13,22,.98));
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.group-winner-card:hover,
.group-winner-card.is-picked {
  border-color: rgba(246,196,83,.42);
  box-shadow: 0 14px 34px rgba(0,0,0,.32), 0 0 22px rgba(246,196,83,.08);
}

.group-winner-card.is-picked {
  background:
    radial-gradient(circle at 50% 0%, rgba(57,217,138,.15), transparent 42%),
    linear-gradient(180deg, rgba(18,33,47,.98), rgba(8,13,22,.98));
}

.group-winner-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.group-winner-topline span {
  color: #ffd86b;
  font-weight: 1000;
  text-transform: uppercase;
}

.group-winner-topline strong {
  color: #9fb1c9;
  font-size: .7rem;
  text-transform: uppercase;
}

.group-winner-preview {
  width: 86px;
  height: 58px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #e8eef7);
  border: 2px solid rgba(246,196,83,.7);
  box-shadow: 0 12px 24px rgba(0,0,0,.3);
}

.group-winner-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.group-winner-preview span {
  color: rgba(7,16,28,.58);
  font-size: 1.45rem;
  font-weight: 1000;
}

.group-winner-choice-name {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.group-winner-select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  background: rgba(4,8,12,.88);
  font-weight: 800;
}

.group-winners-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.group-winners-actions span {
  color: #cfe0ff;
  font-weight: 800;
}

.group-winners-actions .btn {
  min-height: 48px;
  min-width: 190px;
}

.group-winners-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed rgba(246,196,83,.28);
  border-radius: 14px;
  color: #ffd86b;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1180px) {
  .group-winners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .group-winners-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .group-winners-head,
  .group-winners-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .group-winners-head > strong,
  .group-winners-actions .btn {
    width: 100%;
    text-align: center;
  }

  .group-winners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-winner-card {
    min-height: 176px;
    padding: 12px;
  }
}

@media (max-width: 420px) {
  .group-winners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .team-choice-name-pill {
    margin-top: 40px;
  }
}

/* Premium card background refresh: remove the distorted trophy image */
.cup-card,
.tournament-pred-card,
.heart-team-premium-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 17%),
    radial-gradient(circle at 18% 0%, rgba(246,196,83,.26), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(57,217,138,.15), transparent 30%),
    radial-gradient(circle at 50% 110%, rgba(114,167,255,.12), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.026) 0 1px, transparent 1px 58px),
    linear-gradient(135deg, rgba(10,23,28,.96), rgba(8,14,25,.98) 48%, rgba(5,8,14,.99));
  background-blend-mode: screen, screen, screen, screen, normal, normal, normal;
}

.cup-card::before,
.tournament-pred-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.09) 48%, transparent 62%),
    radial-gradient(ellipse at 50% 0%, rgba(246,196,83,.18), transparent 56%),
    linear-gradient(180deg, transparent 54%, rgba(0,0,0,.28));
  opacity: .72;
  mix-blend-mode: screen;
}

.cup-card > *,
.tournament-pred-card > * {
  position: relative;
  z-index: 1;
}

#predCardChampion {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 18%),
    radial-gradient(circle at 50% 6%, rgba(255,216,107,.34), transparent 34%),
    radial-gradient(circle at 8% 20%, rgba(246,196,83,.2), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255,216,107,.045) 0 1px, transparent 1px 62px),
    linear-gradient(145deg, rgba(25,22,12,.98), rgba(8,13,22,.98) 50%, rgba(5,8,14,.99));
}

.heart-team-premium-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 18%),
    radial-gradient(circle at 50% 8%, rgba(255,91,120,.34), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(246,196,83,.22), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,91,120,.04) 0 1px, transparent 1px 62px),
    linear-gradient(145deg, rgba(28,15,26,.98), rgba(8,13,22,.98) 52%, rgba(5,8,14,.99));
}

#predCardScorer {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 18%),
    radial-gradient(circle at 50% 8%, rgba(114,167,255,.26), transparent 34%),
    radial-gradient(circle at 12% 16%, rgba(246,196,83,.2), transparent 28%),
    repeating-linear-gradient(90deg, rgba(114,167,255,.04) 0 1px, transparent 1px 62px),
    linear-gradient(145deg, rgba(12,22,38,.98), rgba(8,13,22,.98) 52%, rgba(5,8,14,.99));
}

.cup-card {
  border-color: rgba(246,196,83,.42);
  box-shadow:
    0 24px 64px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 34px rgba(246,196,83,.08);
}

.tournament-pred-card {
  border-color: rgba(246,196,83,.22);
  box-shadow:
    0 26px 74px rgba(0,0,0,.52),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 34px rgba(246,196,83,.08);
}

.tournament-pred-card:hover,
.cup-card:hover {
  border-color: rgba(246,196,83,.54);
  box-shadow:
    0 30px 84px rgba(0,0,0,.58),
    0 0 0 1px rgba(255,255,255,.055) inset,
    0 0 46px rgba(246,196,83,.14);
}

.team-choice-card-inner {
  background:
    radial-gradient(circle at 50% 22%, rgba(246,196,83,.22), transparent 38%),
    linear-gradient(180deg, rgba(10,19,32,.9), rgba(5,8,13,.98));
}

.team-choice-card-inner::before {
  background:
    linear-gradient(180deg, rgba(5,8,13,.05), rgba(5,8,13,.42) 64%, rgba(5,8,13,.76)),
    radial-gradient(circle at 50% 46%, transparent 0 45%, rgba(5,8,13,.36) 76%);
}

/* Mobile match cards final pass */
@media (max-width: 760px) {
  .cup-card,
  .landing-match-card,
  .tournament-pred-card,
  .heart-team-premium-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .cup-card__teams,
  .landing-match-card .cup-card__teams {
    grid-template-columns: minmax(0, 1fr) minmax(40px, 52px) minmax(0, 1fr);
    align-items: end;
  }

  .shield-wrapper,
  .landing-match-card .shield-wrapper {
    width: 56px;
    height: 64px;
  }

  .cup-team strong,
  .landing-match-card .cup-team strong {
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .countdown-row,
  .landing-countdown-row {
    width: 100%;
    min-width: 0;
  }

  .countdown,
  .landing-countdown-row .countdown {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .arena-page .arena-layout {
    width: min(100% - 18px, 1200px);
    padding-left: 0;
    padding-right: 0;
  }

  .arena-page .arena-list,
  .match-grid,
  .match-grid-cards {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .arena-page .cup-card.arena-card,
  .landing-match-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: clamp(16px, 4.2vw, 22px);
    border-radius: 20px;
    gap: 16px;
  }

  .arena-page .cup-card__brand {
    justify-content: center;
    gap: 8px;
  }

  .arena-page .cup-card__brand span {
    white-space: nowrap;
  }

  .arena-page .cup-card__phase {
    width: 100%;
    min-height: 42px;
    display: flex;
    justify-content: center;
    border-radius: 999px;
  }

  .arena-page .cup-card__teams,
  .landing-match-card .cup-card__teams {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(6px, 2.6vw, 14px);
    align-items: end;
  }

  .arena-page .cup-team {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .arena-page .shield-wrapper,
  .landing-match-card .shield-wrapper {
    width: clamp(50px, 14vw, 78px);
    height: clamp(58px, 16vw, 88px);
    flex: none;
  }

  .arena-page .team-logo.shield-logo,
  .landing-match-card .team-logo.shield-logo {
    padding: 7px;
  }

  .arena-page .cup-team strong,
  .landing-match-card .cup-team strong {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    font-size: clamp(.8rem, 3.2vw, .98rem);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .arena-page .cup-vs-glow {
    min-width: 42px;
    align-self: center;
  }

  .arena-page .vs-text,
  .landing-match-card .vs-text {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .arena-page .cup-card__details,
  .landing-match-card .cup-card__details {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px;
    border-radius: 16px;
  }

  .arena-page .detail-col,
  .landing-match-card .detail-col {
    min-height: 38px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-content: start;
  }

  .arena-page .detail-text strong,
  .landing-match-card .detail-text strong {
    max-width: none;
    white-space: normal;
    line-height: 1.18;
  }

  .arena-page .countdown-row,
  .landing-countdown-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 12% 0%, rgba(246,196,83,.2), transparent 42%),
      linear-gradient(180deg, rgba(12,18,27,.94), rgba(6,9,15,.96));
    border: 1px solid rgba(246,196,83,.28);
  }

  .arena-page .countdown-title,
  .landing-countdown-row .countdown-title {
    justify-content: flex-start;
    font-size: .82rem;
    letter-spacing: 0;
  }

  .arena-page .countdown,
  .landing-countdown-row .countdown {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    gap: 8px;
  }

  .arena-page .countdown span,
  .landing-countdown-row .countdown span {
    min-width: 0;
    min-height: 58px;
    padding: 8px 4px;
    display: grid;
    place-items: center;
    border-radius: 12px;
  }

  .arena-page .countdown b,
  .landing-countdown-row .countdown b {
    font-size: clamp(1.18rem, 5.2vw, 1.45rem);
    margin: 0 0 3px;
  }

  .arena-page .cup-card__guess-container {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .arena-page .guess-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .arena-page .guess-team-name {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.12;
  }

  .arena-page .guess-inputs {
    width: min(100%, 210px);
    margin: 0 auto;
  }

  .arena-page .card-score-input {
    width: 58px;
    height: 44px;
    flex: 0 0 58px;
  }

  .arena-page .cup-card__actions {
    width: 100%;
  }

  .arena-page .cup-card .btn,
  .landing-match-card .btn {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    white-space: normal;
    line-height: 1.15;
  }

  .arena-page .card-note {
    text-align: center;
    line-height: 1.25;
  }
}

@media (max-width: 390px) {
  .arena-page .arena-layout {
    width: calc(100% - 12px);
  }

  .arena-page .cup-card.arena-card,
  .landing-match-card {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .arena-page .cup-card__teams,
  .landing-match-card .cup-card__teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }

  .arena-page .shield-wrapper,
  .landing-match-card .shield-wrapper {
    width: 44px;
    height: 52px;
  }

  .arena-page .countdown,
  .landing-countdown-row .countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .arena-page .countdown span,
  .landing-countdown-row .countdown span {
    min-height: 46px;
    border-radius: 8px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE CONTAINMENT — FINAL DEFINITIVE PASS
   Fixes ALL card overflow / clipping on mobile Chrome.
   Root cause: CSS Grid `1fr` = `minmax(auto, 1fr)` which lets content
   stretch columns wider than the viewport. Fixed elements (shields,
   countdown, detail text, fut-cards) also refuse to shrink.
   This block uses high-specificity selectors so it wins over all earlier
   rules without needing !important.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Global containment ── */
  html.arena-mobile-fix,
  html,
  body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .site-shell.arena-page,
  .arena-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .arena-page .arena-layout {
    width: calc(100% - 16px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  /* ── Arena grid & list: force children to shrink ── */
  .arena-page .arena-grid,
  .arena-page .arena-grid > div,
  .arena-page .arena-list {
    min-width: 0;
    max-width: 100%;
  }

  .arena-page .arena-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* ── Cup cards (game cards) ── */
  .arena-page .cup-card.arena-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: clamp(14px, 3.8vw, 22px);
    box-sizing: border-box;
  }

  /* Every direct child of cup-card must shrink */
  .arena-page .cup-card.arena-card > * {
    min-width: 0;
    max-width: 100%;
  }

  /* ── Brand row ── */
  .arena-page .cup-card__brand {
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
  }

  .arena-page .cup-card__brand span {
    white-space: nowrap;
    min-width: 0;
  }

  /* ── Phase pill ── */
  .arena-page .cup-card__phase {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  /* ── Teams grid: the most critical fix ── */
  .arena-page .cup-card__teams {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(4px, 2vw, 12px);
  }

  .arena-page .cup-team {
    min-width: 0;
    overflow: hidden;
  }

  .arena-page .cup-team strong {
    min-width: 0;
    width: 100%;
    font-size: clamp(0.72rem, 3vw, 0.95rem);
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Shield wrapper: scale with viewport ── */
  .arena-page .shield-wrapper {
    width: clamp(44px, 13vw, 78px);
    height: clamp(52px, 15vw, 88px);
    flex: none;
  }

  .arena-page .team-logo.shield-logo {
    padding: clamp(5px, 1.5vw, 8px);
  }

  /* ── VS glow ── */
  .arena-page .cup-vs-glow {
    min-width: 36px;
    max-width: 52px;
  }

  .arena-page .vs-text {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  /* ── Details row (date/time/venue) ── */
  .arena-page .cup-card__details {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 10px;
  }

  .arena-page .detail-col {
    justify-content: flex-start;
    border-right: none !important;
    min-width: 0;
  }

  .arena-page .detail-text {
    min-width: 0;
    flex: 1;
  }

  .arena-page .detail-text strong {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
  }

  /* ── Countdown row ── */
  .arena-page .countdown-row {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .arena-page .countdown-title {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .arena-page .countdown {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(3px, 1vw, 6px);
  }

  .arena-page .countdown span {
    min-width: 0;
    min-height: clamp(40px, 10vw, 58px);
    padding: 6px 2px;
    font-size: clamp(0.5rem, 2.2vw, 0.62rem);
  }

  .arena-page .countdown b {
    font-size: clamp(0.85rem, 3.8vw, 1.2rem);
  }

  /* ── Guess container (score input area) ── */
  .arena-page .cup-card__guess-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: clamp(10px, 3vw, 16px);
    box-sizing: border-box;
  }

  .arena-page .guess-header {
    font-size: clamp(0.65rem, 2.8vw, 0.82rem);
    flex-wrap: wrap;
    justify-content: center;
  }

  .arena-page .guess-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }

  .arena-page .guess-team-name {
    min-width: 0;
    font-size: clamp(0.68rem, 2.8vw, 0.86rem);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.1;
  }

  .arena-page .guess-inputs {
    min-width: 0;
    gap: 4px;
    flex-shrink: 0;
  }

  .arena-page .card-score-input {
    width: clamp(40px, 11vw, 54px);
    height: clamp(36px, 10vw, 44px);
    font-size: clamp(1rem, 4vw, 1.35rem);
    padding: 0 2px;
    flex: none;
  }

  .arena-page .guess-vs-divider {
    font-size: clamp(0.85rem, 3.5vw, 1.15rem);
    min-width: 0;
    padding: 0 2px;
  }

  /* ── Action buttons ── */
  .arena-page .cup-card__actions {
    width: 100%;
    min-width: 0;
  }

  .arena-page .cup-card__actions .btn,
  .arena-page .cup-card .btn,
  .arena-page .save-card-guess-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    font-size: clamp(0.75rem, 3vw, 0.88rem);
    padding: 10px 12px;
    min-height: 46px;
  }

  /* ── Card note ── */
  .arena-page .card-note {
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
  }

  .arena-page .card-save-tick {
    font-size: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ── Tournament prediction cards ── */
  .arena-page .tournament-predictions-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    max-width: 100%;
  }

  .arena-page .tournament-pred-card,
  .arena-page .heart-team-premium-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: clamp(14px, 3.5vw, 22px);
    box-sizing: border-box;
  }

  .arena-page .tournament-pred-card > *,
  .arena-page .heart-team-premium-card > * {
    min-width: 0;
    max-width: 100%;
  }

  .arena-page .tournament-pred-header {
    min-width: 0;
  }

  .arena-page .tournament-pred-header h3 {
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    overflow-wrap: anywhere;
  }

  .arena-page .fut-card-container,
  .arena-page .heart-card-aura {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .arena-page .fut-card {
    width: clamp(110px, 32vw, 160px);
    height: clamp(158px, 46vw, 224px);
    max-width: 100%;
  }

  .arena-page .cup-pred-form-wrap {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .arena-page .cup-pred-form-wrap select,
  .arena-page .cup-pred-form-wrap button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }

  .arena-page .prediction-saved-pill,
  .arena-page .prediction-locked-pill,
  .arena-page .heart-saved-pill,
  .arena-page .heart-lock-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* ── #tournamentPredHead ── */
  .arena-page #tournamentPredHead {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
    padding: 14px;
  }

  .arena-page #tournamentPredHead h2 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    overflow-wrap: anywhere;
  }

  .arena-page #tournamentPredHead p {
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
    overflow-wrap: anywhere;
  }

  /* ── Group Winners Panel ── */
  .arena-page .group-winners-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: clamp(12px, 3vw, 20px);
    box-sizing: border-box;
  }

  .arena-page .group-winners-panel > * {
    min-width: 0;
    max-width: 100%;
  }

  .arena-page .group-winners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .arena-page .group-winner-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .arena-page .group-winner-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .arena-page .group-winners-head {
    flex-direction: column;
    min-width: 0;
  }

  .arena-page .group-winners-actions {
    flex-direction: column;
    min-width: 0;
    align-items: stretch;
  }

  .arena-page .group-winners-actions .btn {
    width: 100%;
  }

  /* ── Side panel ── */
  .arena-page .side-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .arena-page .side-panel > * {
    min-width: 0;
    max-width: 100%;
  }

  /* ── Round filter tabs ── */
  .arena-page .round-filter-tabs-wrapper {
    min-width: 0;
    max-width: 100%;
  }

  /* ── Leaderboard card ── */
  .arena-page .leaderboard-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .arena-page .leader-row {
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 28px 32px 1fr auto;
    gap: 8px;
  }

  /* ── Mini score ── */
  .arena-page .mini-score {
    min-width: 0;
    max-width: 100%;
  }

  /* ── Hot team card ── */
  .arena-page .hot-team-card {
    min-width: 0;
    max-width: 100%;
  }

  /* ── API notice ── */
  .arena-page .api-notice {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* ── Game nav on mobile ── */
  .arena-page .game-nav {
    width: calc(100% - 16px);
    max-width: 1200px;
    min-width: 0;
  }
}

/* ── Extra small screens (≤ 380px) ── */
@media (max-width: 380px) {
  .arena-page .arena-layout {
    width: calc(100% - 10px);
  }

  .arena-page .cup-card.arena-card {
    padding: 12px 10px;
    border-radius: 16px;
  }

  .arena-page .shield-wrapper {
    width: 40px;
    height: 48px;
  }

  .arena-page .cup-card__teams {
    gap: 4px;
  }

  .arena-page .vs-text {
    font-size: 1.1rem;
  }

  .arena-page .card-score-input {
    width: 38px;
    height: 34px;
    font-size: 0.95rem;
  }

  .arena-page .countdown {
    gap: 3px;
  }

  .arena-page .countdown span {
    min-height: 38px;
    font-size: 0.48rem;
    padding: 4px 1px;
  }

  .arena-page .countdown b {
    font-size: 0.8rem;
  }

  .arena-page .group-winners-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .arena-page .fut-card {
    width: 100px;
    height: 144px;
  }
}

/* ==========================================================================
   QUIZ FEATURE STYLES (PREMIUM & GAMIFIED)
   ========================================================================== */

/* Global Utility for Visibility */
.hidden {
  display: none !important;
}

.quiz-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 30px auto;
  border: 1px solid rgba(246, 196, 83, 0.25);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(246, 196, 83, 0.15), transparent 60%),
              linear-gradient(180deg, rgba(16, 23, 34, 0.88), rgba(6, 10, 17, 0.96));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(246, 196, 83, 0.05);
  padding: 40px 35px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-card.shake {
  animation: quizShake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.quiz-card.pop {
  animation: quizPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes quizShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes quizPop {
  0% { transform: scale(0.96); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.quiz-progress-section {
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-progress-meta b {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(246, 196, 83, 0.2);
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #ffd45a);
  border-radius: 999px;
  width: 0%;
  box-shadow: 0 0 10px rgba(246, 196, 83, 0.5);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-question-box {
  margin-bottom: 30px;
  text-align: center;
}

.quiz-question-box h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.quiz-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: #e2e8f0;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.quiz-option-letter {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.25s;
}

.quiz-option:hover:not(:disabled) {
  border-color: rgba(246, 196, 83, 0.45);
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.08), rgba(246, 196, 83, 0.02));
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 8px 20px rgba(246, 196, 83, 0.08);
}

.quiz-option:hover:not(:disabled) .quiz-option-letter {
  background: rgba(246, 196, 83, 0.2);
  border-color: rgba(246, 196, 83, 0.5);
  color: var(--gold);
  transform: scale(1.05);
}

.quiz-option:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.quiz-option.is-selected {
  border-color: var(--gold) !important;
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.18), rgba(246, 196, 83, 0.04)) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(246, 196, 83, 0.15) !important;
  transform: scale(1.01) !important;
}

.quiz-option.is-selected .quiz-option-letter {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #0c121c !important;
  box-shadow: 0 0 10px rgba(246, 196, 83, 0.4);
}

.quiz-option.is-correct {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.04)) !important;
  color: #fff !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3) !important;
  animation: pulseSuccess 1.5s infinite;
}

.quiz-option.is-correct .quiz-option-letter {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #fff !important;
}

.quiz-option.is-incorrect {
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.04)) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2) !important;
}

.quiz-option.is-incorrect .quiz-option-letter {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

@keyframes pulseSuccess {
  0% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 28px rgba(16, 185, 129, 0.45); }
  100% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.2); }
}

.quiz-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  gap: 15px;
  flex-direction: column;
}

.quiz-feedback-box {
  width: 100%;
  padding: 18px 24px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: slideInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-feedback-box.correct {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.quiz-feedback-box.incorrect {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}

@keyframes slideInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.quiz-welcome-screen {
  text-align: center;
  padding: 20px 10px;
  animation: slideInUp 0.4s ease-out;
}

.quiz-welcome-screen i.hero-icon {
  color: var(--gold);
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(246, 196, 83, 0.45);
  animation: pulseGold 2.5s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(246, 196, 83, 0.2)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 25px rgba(246, 196, 83, 0.5)); }
}

.quiz-welcome-screen h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quiz-welcome-screen p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.quiz-rules-list {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  max-width: 480px;
  margin: 0 auto 35px;
  text-align: left;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.quiz-rules-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quiz-rules-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.quiz-rules-list li:last-child {
  margin-bottom: 0;
}

.quiz-rules-list li i {
  color: var(--gold);
  margin-top: 3px;
  font-size: 1.05rem;
}

.quiz-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(246, 196, 83, 0.12);
  border: 1px solid rgba(246, 196, 83, 0.25);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(246, 196, 83, 0.1);
}

/* ─── SHOWCASE SECTION & CAROUSEL (ABILITIES & MISSIONS) ─── */
.showcase-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(21, 31, 45, 0.25) 0%, transparent 70%);
  border-bottom: 1px solid var(--line);
}

.showcase-track-wrap {
  position: relative;
  width: 100%;
}

.showcase-track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
}

.showcase-track-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.showcase-track-label i {
  color: var(--gold);
}

.showcase-track-arrows {
  display: flex;
  gap: 8px;
}

.showcase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.05);
}

.showcase-arrow:active {
  transform: scale(0.95);
}

.showcase-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding: 12px 6px 24px;
  margin: 0 -6px;
}

.showcase-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Card base */
.showcase-card {
  position: relative;
  width: 280px;
  min-height: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(21, 31, 45, 0.7) 0%, rgba(16, 23, 34, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease,
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: default;
}

.showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color, var(--gold));
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.6),
              0 0 25px 0 var(--accent-color-glow, rgba(246, 196, 83, 0.15));
}

.showcase-card__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-color-glow, rgba(255,255,255,0.1)) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.showcase-card:hover .showcase-card__glow {
  opacity: 1;
}

.showcase-card__icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
  color: var(--accent-color, #ffffff);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.showcase-card:hover .showcase-card__icon {
  background: var(--accent-color-glow, rgba(255,255,255,0.15));
  border-color: var(--accent-color, #ffffff);
  transform: scale(1.1);
}

.showcase-card h3 {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.showcase-card p {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
  flex-grow: 1;
}

.showcase-card__meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 700;
}

.showcase-card__cost,
.showcase-card__reward {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase-card__uses,
.showcase-card__target {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  padding: 0 16px;
}

.showcase-cta {
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(246, 196, 83, 0.15);
}

.showcase-cta:hover {
  box-shadow: 0 8px 30px rgba(246, 196, 83, 0.3);
}

/* ══ RANKING TABS STYLE ══ */
.ranking-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 196, 83, 0.25) transparent;
}

/* Custom scrollbar for webkit browsers */
.ranking-tabs::-webkit-scrollbar {
  height: 4px;
}

.ranking-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.ranking-tabs::-webkit-scrollbar-thumb {
  background: rgba(246, 196, 83, 0.25);
  border-radius: 10px;
}

.ranking-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(246, 196, 83, 0.45);
}

.rank-tab-btn {
  flex: 0 0 auto; /* Prevent button from squeezing and cutting text */
  min-height: 28px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rank-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: translateY(-1px);
}

.rank-tab-btn.active {
  border-color: rgba(246, 196, 83, 0.4);
  background: rgba(246, 196, 83, 0.12);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(246, 196, 83, 0.05);
}

/* ==========================================================================
   DEDICATED RANKING PAGE & PODIUM STYLES (PREMIUM & COMPETITIVE)
   ========================================================================== */

.ranking-page-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  animation: fadeSlideUp .5s cubic-bezier(.22,1,.36,1) both;
}

/* --- PODIUM STYLES --- */
.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 44px;
  align-items: flex-end;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: rgba(16, 23, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 20px 24px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.podium-place:hover {
  transform: translateY(-5px);
}

/* Heights & order for desktop positioning: 2nd, 1st, 3rd */
.podium-place.is-second {
  order: 1;
  min-height: 240px;
  border-color: rgba(203, 213, 225, 0.3);
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.08), rgba(16, 23, 34, 0.8));
}

.podium-place.is-first {
  order: 2;
  min-height: 290px;
  border-color: rgba(246, 196, 83, 0.5);
  background: linear-gradient(180deg, rgba(246, 196, 83, 0.12), rgba(16, 23, 34, 0.8));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(246, 196, 83, 0.12);
  transform: scale(1.05);
}

.podium-place.is-first:hover {
  transform: translateY(-5px) scale(1.06);
}

.podium-place.is-third {
  order: 3;
  min-height: 210px;
  border-color: rgba(180, 83, 9, 0.3);
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.08), rgba(16, 23, 34, 0.8));
}

/* Medals/Crown top indicators */
.podium-badge {
  position: absolute;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: pulseGold 3s infinite ease-in-out;
}

.is-first .podium-badge {
  background: linear-gradient(135deg, #ffd45a, #e6a817);
  color: #070a10;
  border: 2px solid #fff;
}

.is-second .podium-badge {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #070a10;
  border: 2px solid #fff;
}

.is-third .podium-badge {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  border: 2px solid #fff;
}

.podium-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--muted);
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.is-first .podium-avatar {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(246, 196, 83, 0.1);
  width: 78px;
  height: 78px;
  font-size: 2.1rem;
}

.is-second .podium-avatar {
  border-color: #cbd5e1;
  color: #cbd5e1;
  background: rgba(203, 213, 225, 0.06);
}

.is-third .podium-avatar {
  border-color: #b45309;
  color: #f59e0b;
  background: rgba(180, 83, 9, 0.06);
}

.podium-name {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.is-first .podium-name {
  font-size: 1.25rem;
}

.podium-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.podium-score strong {
  font-size: 1.5rem;
  font-weight: 950;
  color: var(--green);
  text-shadow: 0 0 10px rgba(57, 217, 138, 0.2);
}

.is-first .podium-score strong {
  font-size: 1.8rem;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(246, 196, 83, 0.35);
}

.podium-score span {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.podium-heart-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  max-width: 90%;
}

.podium-heart-team img {
  width: 16px;
  height: 12px;
  object-fit: contain;
  border-radius: 2px;
}

/* --- COMPETITIVE SPOTLIGHT CARD --- */
.ranking-spotlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.16) 0%, rgba(16, 23, 34, 0.95) 45%, rgba(16, 23, 34, 0.98) 100%);
  border: 1.5px solid rgba(246, 196, 83, 0.35);
  border-radius: 20px;
  padding: 22px 28px;
  margin-bottom: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 20px rgba(246, 196, 83, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}

.ranking-spotlight-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 10% 20%, rgba(246, 196, 83, 0.06), transparent 35%);
  pointer-events: none;
}

.spotlight-info-side {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.spotlight-trophy-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(246, 196, 83, 0.12);
  border: 1px solid rgba(246, 196, 83, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulseGold 2.5s infinite ease-in-out;
}

.spotlight-msg-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotlight-msg-title {
  font-weight: 850;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.spotlight-msg-desc {
  font-size: 0.95rem;
  color: #d2e1f5;
  line-height: 1.4;
}

.spotlight-msg-desc b {
  color: var(--gold);
}

.spotlight-msg-desc span.rival-highlight {
  color: var(--blue);
  font-weight: 800;
}

.spotlight-stats-side {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.spotlight-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-stat-box span {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.spotlight-stat-box strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}

.spotlight-stat-box.highlight strong {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(246,196,83,0.3);
}

/* --- SEARCH BAR --- */
.ranking-search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-bottom: 0px;
}

.ranking-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
  pointer-events: none;
}

.ranking-search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px 10px 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 23, 34, 0.6);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  backdrop-filter: blur(8px);
}

.ranking-search-input:focus {
  border-color: rgba(246, 196, 83, 0.55);
  background: rgba(16, 23, 34, 0.85);
  box-shadow: 0 0 15px rgba(246, 196, 83, 0.12);
}

.ranking-search-input:focus + i {
  color: var(--gold);
}

/* --- FILTER HEADER BAR --- */
.ranking-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ranking-controls-row .ranking-tabs {
  margin-bottom: 0;
  padding: 4px;
  border-radius: 12px;
}

/* --- LEADERBOARD GRID/LIST & TABLE --- */
.ranking-header-labels {
  display: grid;
  grid-template-columns: 50px 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.ranking-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Styling override for page ranking table rows */
.ranking-list-container .leader-row {
  grid-template-columns: 50px 44px 1fr auto;
  padding: 12px 18px;
  border-radius: 14px;
}

.ranking-list-container .leader-row.highlight-self {
  border-color: rgba(246, 196, 83, 0.55) !important;
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.15), rgba(255, 255, 255, 0.04)) !important;
  box-shadow: 0 8px 25px rgba(246, 196, 83, 0.15) !important;
}

.ranking-list-container .leader-row.highlight-self::after {
  content: 'VOCÊ';
  position: absolute;
  right: 18px;
  top: 2px;
  font-size: 0.58rem;
  font-weight: 1000;
  color: var(--gold);
  letter-spacing: 0.05em;
  background: rgba(246, 196, 83, 0.12);
  border: 1px solid rgba(246, 196, 83, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Empty search filter state */
.ranking-empty-search {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(16, 23, 34, 0.4);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ranking-empty-search i {
  font-size: 2.2rem;
  color: var(--gold);
  opacity: 0.65;
}

.ranking-empty-search strong {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ranking-podium {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 44px 0 32px;
  }
  
  .podium-place {
    order: unset !important;
    min-height: auto !important;
    padding-top: 36px;
  }
  
  .podium-place.is-first {
    transform: none !important;
  }
  
  .ranking-spotlight-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    text-align: center;
  }
  
  .spotlight-info-side {
    flex-direction: column;
    gap: 14px;
  }
  
  .spotlight-stats-side {
    justify-content: center;
  }
  
  .ranking-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ranking-search-wrap {
    max-width: none;
  }
  
  .ranking-controls-row .ranking-tabs {
    overflow-x: auto;
  }
}


