/* ============================================================
   WC26 Hub — Home page styles. Every rule scoped under .page-home
   ============================================================ */

/* ---------------- entrance ---------------- */

.page-home > section {
  animation: homeRise .5s ease both;
}
.page-home > section:nth-child(2) { animation-delay: .06s; }
.page-home > section:nth-child(3) { animation-delay: .12s; }
.page-home > section:nth-child(4) { animation-delay: .18s; }
.page-home > section:nth-child(5) { animation-delay: .24s; }
.page-home > section:nth-child(6) { animation-delay: .3s; }
.page-home > section:nth-child(7) { animation-delay: .36s; }
.page-home > section:nth-child(8) { animation-delay: .42s; }
.page-home > section:nth-child(9) { animation-delay: .48s; }

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

@media (prefers-reduced-motion: reduce) {
  .page-home > section { animation: none; }
  .page-home .ez-dot { animation: none; }
  .page-home * { transition-duration: .01ms !important; }
}

/* ---------------- hero ---------------- */

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(900px 420px at 82% -25%, rgba(63, 142, 252, .22), transparent 60%),
    radial-gradient(700px 400px at -12% 115%, rgba(25, 195, 125, .15), transparent 60%),
    radial-gradient(620px 320px at 18% -35%, rgba(230, 57, 70, .18), transparent 60%),
    linear-gradient(160deg, #111935 0%, #0b1124 55%, #0a0e1a 100%);
}
.page-home .home-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-hosts);
  z-index: 2;
}

.page-home .hero-pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .05;
  transform: rotate(-4deg) scale(1.18);
  pointer-events: none;
}
.page-home .hero-ball {
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  bottom: -150px;
  opacity: .05;
  transform: rotate(-14deg);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.page-home .hero-kicker {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.page-home .hero-title {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.8vw, 3.7rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.page-home .hero-grad {
  background: var(--gradient-hosts);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-sub {
  margin: 0 0 26px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* countdown */

.page-home .cd-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.page-home .cd-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-home .cd-card {
  flex: 0 1 auto;
  min-width: 84px;
  padding: 12px 10px 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 201, 77, .35);
  background: linear-gradient(180deg, rgba(255, 201, 77, .14), rgba(255, 201, 77, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .18s, box-shadow .18s;
}
.page-home .cd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 201, 77, .14);
}
.page-home .cd-num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(255, 201, 77, .4);
}
.page-home .cd-label {
  display: block;
  margin-top: 2px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.page-home .cd-on {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 201, 77, .4);
  background: linear-gradient(180deg, rgba(255, 201, 77, .15), rgba(255, 201, 77, .05));
}
.page-home .cd-on-text {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.3px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* CTAs + hosts */

.page-home .hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.page-home .btn-primary.btn-lg { box-shadow: 0 6px 26px rgba(255, 201, 77, .28); }
.page-home .hero-btn-alt {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(4px);
}

.page-home .hero-hosts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.page-home .host-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-weight: 600;
  font-size: .86rem;
  color: var(--text-dim);
  transition: border-color .15s, color .15s, transform .15s;
}
.page-home .host-chip:hover {
  border-color: var(--line-2);
  color: var(--text);
  transform: translateY(-1px);
}
.page-home .host-chip .flag-img { height: 1.2em; }

/* favorite-team hero chip (button variant of .host-chip) */

.page-home .hero-fav-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: .86rem;
  border-color: rgba(255, 201, 77, .45);
  background: rgba(255, 201, 77, .09);
  color: var(--gold);
}
.page-home .hero-fav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 201, 77, .16);
  transform: translateY(-1px);
}

/* ---------------- favorite team: YOUR TEAM card ---------------- */

.page-home .home-fav {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(255, 201, 77, .38);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(560px 280px at 88% -30%, rgba(255, 201, 77, .15), transparent 60%),
    radial-gradient(480px 260px at -8% 120%, rgba(63, 142, 252, .1), transparent 60%),
    linear-gradient(150deg, #20190d 0%, #121a30 55%, #0a0e1a 100%);
  box-shadow: 0 0 40px rgba(255, 201, 77, .1), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.page-home .home-fav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  z-index: 2;
}

.page-home .fav-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.page-home .fav-flag { flex-shrink: 0; }
.page-home .fav-flag .flag-img {
  height: 54px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px rgba(0, 0, 0, .5);
}
.page-home .fav-flag .flag {
  /* emoji fallback */
  font-size: 3rem;
  line-height: 1;
}
.page-home .fav-id { min-width: 0; }
.page-home .fav-kicker {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.page-home .fav-name {
  margin: 2px 0 0;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.5px;
}
.page-home .fav-sub {
  margin-top: 4px;
  font-size: .84rem;
  color: var(--text-dim);
}
.page-home .fav-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.page-home .fav-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
}
.page-home .fav-next { min-width: 0; }

.page-home .fav-next-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.page-home .fav-vs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
  font-weight: 800;
  font-size: 1.05rem;
}
.page-home .fav-vs-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.page-home .fav-vs-team .flag-img { height: 1.3em; }
.page-home .fav-vs-x {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.page-home .fav-meta {
  font-size: .84rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.page-home .fav-cd {
  margin-top: 12px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 201, 77, .35);
}
.page-home .fav-done {
  margin: 8px 0 4px;
  font-size: .9rem;
  color: var(--text-dim);
}

/* live line */

.page-home .fav-live {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}
.page-home .fav-live-badge {
  flex-shrink: 0;
  animation: favPulse 1.3s ease-in-out infinite;
}
.page-home .fav-live-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}
.page-home .fav-live-line .flag-img { height: 1.2em; }
.page-home .fav-live-score {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 201, 77, .4);
}
.page-home .fav-live-clock {
  font-weight: 800;
  color: var(--green);
}
@keyframes favPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230, 57, 70, .45); }
  50%      { opacity: .72; box-shadow: 0 0 0 7px rgba(230, 57, 70, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .fav-live-badge { animation: none; }
}

/* mini group table */

.page-home .fav-standing { overflow: hidden; }
.page-home .fav-table { margin: 0; }
.page-home .fav-table th, .page-home .fav-table td { font-size: .82rem; }
.page-home .fav-table .team-label .flag-img { height: 1.15em; }
.page-home .fav-row-me td { background: rgba(255, 201, 77, .13); }
.page-home .fav-row-me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.page-home .fav-row-me .team-label { color: var(--gold); font-weight: 800; }

.page-home .fav-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* picker modal (modal content is wrapped in .page-home) */

.page-home .fav-picker-title { margin: 0 0 6px; }
.page-home .fav-picker-lead { margin: 0 0 12px; }
.page-home .fav-search {
  width: 100%;
  margin-bottom: 12px;
}
.page-home .fav-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
}
.page-home .fav-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.page-home .fav-pick:hover {
  border-color: rgba(255, 201, 77, .5);
  background: var(--surface-3);
  transform: translateY(-1px);
}
.page-home .fav-pick .flag-img { height: 1.25em; flex-shrink: 0; }
.page-home .fav-pick-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-home .fav-pick-active {
  border-color: var(--gold);
  background: rgba(255, 201, 77, .13);
}
.page-home .fav-pick-none { padding: 10px 2px; }
.page-home .fav-picker-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* trophy photo */

.page-home .hero-photo { min-width: 0; }
.page-home .trophy-frame {
  position: relative;
  max-width: 380px;
  margin-left: auto;
  box-shadow: 0 0 70px rgba(255, 201, 77, .16), var(--shadow);
  transform: rotate(1.5deg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.page-home .trophy-frame:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 0 90px rgba(255, 201, 77, .26), var(--shadow);
}
.page-home .trophy-frame .photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  font-size: 4.5rem;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(255, 201, 77, .18), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.page-home .trophy-frame img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- 8-0 Challenge promo banner ---------------- */

.page-home .home-ez {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(25, 195, 125, .38);
  border-radius: 18px;
  padding: clamp(20px, 3.5vw, 36px);
  background:
    radial-gradient(640px 320px at 92% 115%, rgba(25, 195, 125, .18), transparent 65%),
    radial-gradient(520px 260px at -5% -35%, rgba(255, 201, 77, .1), transparent 60%),
    linear-gradient(150deg, #0e2418 0%, #0c1626 60%, #0a0e1a 100%);
  box-shadow: 0 0 44px rgba(25, 195, 125, .14), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.page-home .home-ez::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), #7ee2b0 45%, var(--gold));
  z-index: 2;
}

.page-home .ez-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
}

/* left: copy */

.page-home .ez-kicker {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.page-home .ez-title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.5px;
}
.page-home .ez-title-grad {
  background: linear-gradient(90deg, #7ee2b0 0%, var(--green) 35%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-home .ez-tagline {
  margin: 0;
  max-width: 480px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.5;
}
.page-home .ez-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}
.page-home .ez-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(25, 195, 125, .35);
  background: rgba(25, 195, 125, .09);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-dim);
}
.page-home .ez-cta.btn-lg {
  box-shadow: 0 6px 26px rgba(255, 201, 77, .3);
}
.page-home .ez-best {
  margin-top: 14px;
  font-size: .84rem;
  color: var(--text-dim);
}

/* right: decorative mini-pitch + podium */

.page-home .ez-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.page-home .ez-pitch {
  position: relative;
  width: 180px;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg,
      rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 12.5%,
      transparent 12.5%, transparent 25%),
    linear-gradient(180deg, #1d7d4f 0%, #145a3a 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45), 0 0 32px rgba(25, 195, 125, .28);
}
.page-home .ez-pitch::before {
  /* halfway line */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(255, 255, 255, .5);
}
.page-home .ez-pitch::after {
  /* center circle */
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
}
.page-home .ez-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 56%;
  height: 15%;
  border: 2px solid rgba(255, 255, 255, .5);
}
.page-home .ez-box-top { top: -2px; border-top: 0; }
.page-home .ez-box-bottom { bottom: -2px; border-bottom: 0; }

.page-home .ez-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  animation: ezPulse 2.6s ease-in-out infinite;
}
.page-home .ez-gk { background: #ffd97a; box-shadow: 0 0 9px rgba(255, 201, 77, .95), 0 0 20px rgba(255, 201, 77, .45); }
.page-home .ez-df { background: #7ab5ff; box-shadow: 0 0 9px rgba(63, 142, 252, .95), 0 0 20px rgba(63, 142, 252, .45); }
.page-home .ez-mf { background: #6fe7b3; box-shadow: 0 0 9px rgba(25, 195, 125, .95), 0 0 20px rgba(25, 195, 125, .45); }
.page-home .ez-fw { background: #ff8d96; box-shadow: 0 0 9px rgba(230, 57, 70, .95), 0 0 20px rgba(230, 57, 70, .5); }

@keyframes ezPulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%      { transform: scale(1.3); opacity: 1; }
}

.page-home .ez-podium {
  width: 100%;
  max-width: 240px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}
.page-home .ez-podium-head {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.page-home .ez-podium-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: .86rem;
}
.page-home .ez-medal { flex-shrink: 0; }
.page-home .ez-nick {
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-home .ez-score {
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--gold);
}
.page-home .ez-podium-empty { font-size: .82rem; color: var(--text-dim); }

/* ---------------- fact strip ---------------- */

.page-home .home-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.page-home .fact {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s, border-color .18s;
}
.page-home .fact:hover { transform: translateY(-3px); border-color: var(--line-2); }
.page-home .fact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.page-home .fact:nth-child(1)::before { background: var(--red); }
.page-home .fact:nth-child(2)::before { background: var(--green); }
.page-home .fact:nth-child(3)::before { background: var(--blue); }
.page-home .fact:nth-child(4)::before { background: var(--gradient-gold); }
.page-home .fact-num {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 201, 77, .25);
}
.page-home .fact-label { font-weight: 700; font-size: .94rem; margin-top: 2px; }
.page-home .fact-sub { font-size: .76rem; color: var(--text-faint); margin-top: 2px; }

/* ---------------- today & tomorrow ---------------- */

.page-home .ht-label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.page-home .ht-more { margin-top: 16px; }

.page-home .home-match-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.page-home .home-match {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}
.page-home .hm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.page-home .hm-when { font-size: .8rem; color: var(--text-dim); white-space: nowrap; }
.page-home .hm-team {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-weight: 700;
  min-width: 0;
}
.page-home .hm-team .flag-img { height: 1.25em; }
.page-home .hm-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-home .hm-venue {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--text-faint);
}

/* opener spotlight */

.page-home .spotlight-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.page-home .spotlight-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.page-home .spotlight-side .home-match { flex: 0 0 auto; }

.page-home .opener-card {
  position: relative;
  display: block;
  min-height: 360px;
  text-decoration: none;
  color: var(--text);
}
.page-home .opener-bg {
  position: absolute;
  inset: 0;
  display: block;
  background:
    radial-gradient(700px 320px at 80% -10%, rgba(63, 142, 252, .25), transparent 60%),
    linear-gradient(150deg, #143022 0%, #0d1f3c 70%, #0a0e1a 100%);
}
.page-home .opener-bg::before {
  content: '🏟️';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  opacity: .18;
}
.page-home .opener-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.page-home .opener-card:hover .opener-bg img { transform: scale(1.05); }
.page-home .opener-shade {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(180deg, rgba(7, 10, 20, .3) 0%, rgba(7, 10, 20, .45) 45%, rgba(7, 10, 20, .93) 100%);
}
.page-home .opener-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  min-height: 360px;
  height: 100%;
  padding: 24px;
}
.page-home .opener-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.page-home .opener-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.page-home .opener-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.page-home .opener-team .flag-big { font-size: 1.7rem; }
.page-home .opener-team .flag-img {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 30px rgba(0, 0, 0, .55);
  transition: transform .25s ease;
}
.page-home .opener-card:hover .opener-team .flag-img { transform: translateY(-3px); }
.page-home .opener-tname {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.page-home .opener-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.page-home .opener-time {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(255, 201, 77, .5);
  line-height: 1.1;
}
.page-home .opener-vslabel {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.page-home .opener-meta {
  display: block;
  font-size: .84rem;
  color: var(--text-dim);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

/* poll card */

.page-home .home-poll { flex: 1 1 auto; }
.page-home .hp-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.page-home .hp-link:hover { text-decoration: underline; }

/* ---------------- market favorites ---------------- */

/* Spacing only when the widget rendered something — an empty slot
   (markets disabled / fetch failed) must leave no gap. */
.page-home .home-markets-slot > .card { margin-top: 30px; }

/* ---------------- trade embed (Polymarket, after explore) ---------------- */

/* Same trick: only takes space once the embed actually rendered. */
.page-home .home-trade-slot > .card { margin-top: 30px; }
.page-home .home-trade-slot iframe {
  display: block;
  border: 0;
  border-radius: var(--radius-sm);
}

/* ---------------- explore grid ---------------- */

.page-home .home-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
}
.page-home .hf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  font-size: 1.8rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: transform .18s, border-color .18s;
}
.page-home .home-feature:hover .hf-icon {
  transform: scale(1.08) rotate(-5deg);
  border-color: rgba(255, 201, 77, .45);
}
.page-home .hf-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.page-home .hf-title { font-weight: 800; font-size: .98rem; }
.page-home .hf-desc { font-size: .8rem; color: var(--text-dim); line-height: 1.4; }
.page-home .hf-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-faint);
  font-weight: 700;
  transition: transform .18s, color .18s;
}
.page-home .home-feature:hover .hf-arrow {
  transform: translateX(4px);
  color: var(--gold);
}

/* ---------------- groups at a glance ---------------- */

.page-home .home-glance {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.page-home .gg-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 14px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}
.page-home .gg-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 201, 77, .13);
  border: 1px solid rgba(255, 201, 77, .35);
  color: var(--gold);
  font-weight: 900;
  font-size: 1.05rem;
}
.page-home .gg-flags {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 7px 9px;
  justify-items: center;
}
.page-home .gg-flag { display: inline-flex; }
.page-home .gg-flag .flag-img { height: 1.35em; }
.page-home .gg-names {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 6px;
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dim);
  background: rgba(19, 26, 46, .96);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.page-home .gg-names strong {
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.page-home .gg-cell:hover .gg-names,
.page-home .gg-cell:focus-visible .gg-names { opacity: 1; }

/* ---------------- responsive ---------------- */

@media (max-width: 1000px) {
  .page-home .home-glance { grid-template-columns: repeat(4, 1fr); }
  .page-home .spotlight-grid { grid-template-columns: 1fr; }
  .page-home .home-facts { grid-template-columns: repeat(2, 1fr); }
  .page-home .fav-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .page-home .hero-grid { grid-template-columns: 1fr; }
  .page-home .ez-grid { grid-template-columns: 1fr; }
  .page-home .ez-side {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .page-home .hero-photo { order: 2; }
  .page-home .trophy-frame {
    margin: 4px auto 0;
    max-width: 320px;
  }
  .page-home .hero-ball { left: auto; right: -120px; bottom: auto; top: -120px; }
}

@media (max-width: 640px) {
  .page-home .home-glance { grid-template-columns: repeat(3, 1fr); }
  .page-home .cd-grid { gap: 8px; }
  .page-home .cd-card { min-width: 0; flex: 1 1 0; padding: 10px 4px 8px; }
  .page-home .cd-label { letter-spacing: 1.5px; }
  .page-home .opener-card, .page-home .opener-content { min-height: 300px; }
  .page-home .opener-content { padding: 16px; gap: 14px; }
  .page-home .opener-team .flag-big { font-size: 1.15rem; }
  .page-home .hero-ctas .btn-lg { padding: 11px 20px; font-size: .95rem; }
  .page-home .ez-pitch { width: 160px; }
  .page-home .ez-cta.btn-lg { padding: 11px 20px; font-size: .95rem; }
  .page-home .fav-head { gap: 12px; }
  .page-home .fav-flag .flag-img { height: 44px; }
  .page-home .fav-actions { margin-left: 0; width: 100%; }
  .page-home .fav-table th, .page-home .fav-table td { font-size: .76rem; }
  .page-home .fav-table th:nth-child(4), .page-home .fav-table td:nth-child(4),
  .page-home .fav-table th:nth-child(5), .page-home .fav-table td:nth-child(5),
  .page-home .fav-table th:nth-child(6), .page-home .fav-table td:nth-child(6) { display: none; }
  .page-home .fav-pick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .page-home .home-glance { grid-template-columns: repeat(2, 1fr); }
  .page-home .home-facts { gap: 10px; }
  .page-home .fact { padding: 14px 8px 12px; }
}
