/* ============================================================================
   HashureSport — World Cup Experience
   Design system + components. RTL Persian. Self-hosted typography.
   ========================================================================== */

/* ---- Self-hosted typography (IRANSANSX) ---------------------------------- */
@font-face {
  font-family: "IRANSansX";
  src: url("fonts/IRANSANSX-LIGHT.TTF") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("fonts/IRANSANSX-REGULAR.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("fonts/IRANSANSX-MEDIUM.TTF") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("fonts/IRANSANSX-DEMIBOLD.TTF") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("fonts/IRANSANSX-BOLD.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("fonts/IRANSANSX-EXTRABOLD.TTF") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("fonts/IRANSANSX-BLACK.TTF") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Token layer --------------------------------------------------------- */
:root {
  /* Brand */
  --brand: #2f6bff;
  --brand-bright: #4f8cff;
  --brand-soft: #6ea0ff;
  --brand-cyan: #29c5dc;
  --brand-deep: #15306f;
  --gold: #e9c668;
  --gold-soft: #f2d98f;

  /* Backdrop */
  --bg-0: #04060f;
  --bg-1: #070b1c;
  --bg-2: #0a1230;

  /* Surfaces */
  --surface-1: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-3: rgba(255, 255, 255, 0.08);
  --surface-raised: linear-gradient(180deg, rgba(35, 52, 102, 0.30), rgba(12, 20, 48, 0.32));

  /* Lines */
  --border: rgba(140, 165, 230, 0.12);
  --border-soft: rgba(140, 165, 230, 0.08);
  --border-strong: rgba(120, 160, 255, 0.32);

  /* Text */
  --text: #eef3ff;
  --text-dim: #a6b6da;
  --text-faint: #6c7da4;

  /* Status */
  --live: #ff4d63;
  --win: #34d27f;
  --draw: #8aa0c8;
  --loss: #ff5a72;
  --upcoming: var(--brand-soft);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 6px 18px rgba(2, 6, 23, 0.45);
  --shadow-md: 0 20px 45px rgba(2, 6, 23, 0.55);
  --shadow-lg: 0 40px 90px rgba(2, 6, 23, 0.65);
  --glow-brand: 0 0 0 1px rgba(79, 140, 255, 0.18), 0 18px 60px rgba(28, 78, 200, 0.28);
  --glow-gold: 0 0 0 1px rgba(233, 198, 104, 0.30), 0 22px 60px rgba(150, 110, 20, 0.22);

  /* Rhythm */
  --content-width: 1080px;
  --gap: 18px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IRANSansX", system-ui, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(47, 107, 255, 0.22), transparent 60%),
    radial-gradient(900px 560px at 6% 2%, rgba(41, 197, 220, 0.14), transparent 58%),
    radial-gradient(1200px 900px at 50% 120%, rgba(21, 48, 111, 0.40), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Diagonal motion streaks — subtle athletic energy behind content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 0 42%, rgba(79, 140, 255, 0.05) 42% 43%, transparent 43%),
    linear-gradient(115deg, transparent 0 64%, rgba(41, 197, 220, 0.045) 64% 64.6%, transparent 65%),
    linear-gradient(115deg, transparent 0 78%, rgba(79, 140, 255, 0.04) 78% 78.5%, transparent 79%);
  opacity: 0.9;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Numeric runs (scores, clocks) stay LTR even inside RTL flow */
.num {
  unicode-bidi: isolate;
}

/* ---- Layout shell -------------------------------------------------------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px clamp(14px, 3vw, 28px) 60px;
}

.section {
  margin-top: clamp(26px, 4vw, 44px);
}

/* leave room so the sticky nav never covers a jumped-to heading */
#top,
.section {
  scroll-margin-top: 86px;
}

/* ---- Top navigation ------------------------------------------------------ */
.nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(13, 21, 50, 0.86), rgba(7, 11, 28, 0.86));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

/* ---- Embed (iframe) header --------------------------------------------- *
 * Hidden by default; the inline head script adds `is-embed` on <html> when
 * the page is framed, which swaps the full nav for this minimal sticky bar. */
.embed-bar { display: none; }

.is-embed .nav { display: none; }

.is-embed .embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  /* bleed over the shell padding so the bar spans edge-to-edge and pins to
     the very top of the iframe viewport */
  margin: -20px calc(-1 * clamp(14px, 3vw, 28px)) 16px;
  padding: 10px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 21, 50, 0.92), rgba(7, 11, 28, 0.92));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.embed-bar__brand { display: inline-flex; align-items: center; flex: 0 0 auto; }

.embed-bar__brand img {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(47, 107, 255, 0.45));
}

.embed-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.embed-bar__guide {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--gold-soft);
  padding: 8px 13px;
  border: 1px solid rgba(233, 198, 104, 0.34);
  border-radius: var(--r-pill);
  background: rgba(233, 198, 104, 0.08);
  transition: filter 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}

.embed-bar__guide:hover {
  filter: brightness(1.08);
  border-color: rgba(233, 198, 104, 0.52);
}

.embed-bar__action {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--brand), var(--brand-cyan));
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.35);
  transition: filter 0.18s var(--ease);
}

.embed-bar__action:hover { filter: brightness(1.06); }

/* logged-in state: quieter, since it just opens the profile */
.embed-bar__action.is-user {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__logo {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(47, 107, 255, 0.45));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand__tag {
  font-size: 0.66rem;
  color: var(--text-faint);
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 6px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__link--guide {
  color: var(--gold-soft);
  border: 1px solid rgba(233, 198, 104, 0.22);
  background: rgba(233, 198, 104, 0.06);
}

.nav__link--guide:hover {
  color: #fff2bc;
  border-color: rgba(233, 198, 104, 0.44);
  background: rgba(233, 198, 104, 0.12);
}

.nav__spacer {
  flex: 1 1 auto;
}

.nav__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav__live svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--brand-soft); }

.nav__live:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.nav__live[data-live="true"] {
  border-color: rgba(255, 77, 99, 0.4);
  color: #ffd2d8;
  background: rgba(255, 77, 99, 0.12);
}

.nav__live[data-live="true"] svg { color: #ff9aa8; }

/* The status dot only appears while a match is actually live */
.nav__live .live-dot { display: none; }
.nav__live[data-live="true"] .live-dot { display: block; }

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: 0 0 auto;
}

.nav__live[data-live="true"] .live-dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 99, 0.6);
  animation: pulse 1.8s infinite;
}

.season { position: relative; flex: 0 0 auto; }

.nav__season {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.18), rgba(47, 107, 255, 0.06));
  color: #dbe7ff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav__season:hover { background: linear-gradient(180deg, rgba(47, 107, 255, 0.28), rgba(47, 107, 255, 0.10)); }
.nav__season svg { width: 14px; height: 14px; transition: transform 0.22s var(--ease); }
.nav__season[aria-expanded="true"] svg { transform: rotate(180deg); }

.season__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 50;
  min-width: 168px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(7, 11, 28, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  display: none;
}

.season__menu.is-open { display: grid; gap: 4px; }

.season__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: start;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.season__opt:hover { background: var(--surface-2); color: var(--text); }

.season__opt[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.26), rgba(47, 107, 255, 0.1));
}

.season__opt .tick { width: 15px; height: 15px; color: var(--brand-soft); opacity: 0; }
.season__opt[aria-selected="true"] .tick { opacity: 1; }

.nav__toggle {
  display: none;
}

/* ---- Mobile nav action cluster (logo + CTA/avatar) --------------------- *
 * Hidden on desktop; the full link bar / season / live controls handle
 * everything there. Below 900px the header collapses to: logo (right) +
 * this cluster (left). */
.nav__mobile { display: none; }

.nav__guide-mobile {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(233, 198, 104, 0.34);
  background: rgba(233, 198, 104, 0.08);
  color: var(--gold-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav__guide-mobile:hover {
  border-color: rgba(233, 198, 104, 0.52);
  background: rgba(233, 198, 104, 0.13);
}

.nav__guide-mobile svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* Neon quick-predict styling — matches the desktop .predict-fab button. */
.nav__cta {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  font-size: 0.86rem;
  line-height: 1;
  color: #d6ffe9;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 2px solid #39ff9c;
  background: linear-gradient(180deg, rgba(6, 38, 24, 0.92), rgba(4, 26, 17, 0.94));
  text-shadow: 0 0 5px rgba(57, 255, 156, 0.55);
  box-shadow:
    0 0 0 1px rgba(57, 255, 156, 0.4),
    0 0 10px rgba(57, 255, 156, 0.32),
    0 8px 20px rgba(0, 0, 0, 0.4);
  animation: predict-fab-blink 1.2s ease-in-out infinite;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.nav__cta:hover { transform: translateY(-1px); animation-play-state: paused; }
.nav__cta:active { transform: translateY(0); }
.nav__cta:focus-visible { outline: 2px solid #b6ffd6; outline-offset: 3px; }

.nav__avatar {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav__avatar:hover { border-color: var(--brand-soft); background: var(--surface-1); }
.nav__avatar svg { width: 20px; height: 20px; }
/* an author display value would otherwise beat the [hidden] UA rule */
.nav__avatar[hidden] { display: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 99, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 77, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 99, 0); }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  padding: clamp(14px, 2vw, 22px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 400px at 92% 0%, rgba(47, 107, 255, 0.28), transparent 60%),
    radial-gradient(560px 360px at 0% 100%, rgba(41, 197, 220, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(16, 27, 64, 0.92), rgba(7, 11, 28, 0.94));
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 0 56%, rgba(255, 255, 255, 0.05) 56% 56.5%, transparent 57%),
    linear-gradient(120deg, transparent 0 72%, rgba(79, 140, 255, 0.10) 72% 72.7%, transparent 73%),
    linear-gradient(120deg, transparent 0 84%, rgba(41, 197, 220, 0.08) 84% 84.5%, transparent 85%);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 700;
  color: #cfe0ff;
}

.eyebrow__star {
  color: var(--gold);
}

.hero__title {
  margin: 18px 0 14px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__title .accent {
  background: linear-gradient(120deg, var(--brand-soft), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 22px;
  max-width: 40ch;
  color: var(--text-dim);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.95;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.meta-pill svg {
  width: 15px;
  height: 15px;
  color: var(--brand-soft);
  flex: 0 0 auto;
}

/* ---- Featured match card ------------------------------------------------- */
/* ---- Hero day slider ----------------------------------------------------- */
.hero-feature { position: relative; z-index: 1; }

.live-hero {
  position: relative;
  z-index: 1;
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  gap: clamp(16px, 2.5vw, 26px);
  min-height: clamp(430px, 52vw, 560px);
}

.live-hero__player,
.live-hero__content {
  direction: rtl;
  min-width: 0;
}

.live-player {
  position: relative;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(170, 194, 255, 0.22);
  background:
    radial-gradient(520px 320px at 50% 0%, rgba(47, 107, 255, 0.22), transparent 62%),
    linear-gradient(180deg, #050816, #080d21 62%, #03050d);
  box-shadow: var(--glow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-player::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 76%);
  transition: opacity 520ms ease;
}

.live-player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #03050d;
}

.live-player__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 13, 0.72), transparent 30%, transparent 58%, rgba(3, 5, 13, 0.82)),
    radial-gradient(420px 280px at 50% 48%, transparent, rgba(3, 5, 13, 0.44));
  transition: opacity 520ms ease;
}

.live-player.is-countdown-compact::before,
.live-player.is-countdown-compact .live-player__shade {
  opacity: 0;
}

.live-player__top {
  position: absolute;
  top: 14px;
  inset-inline: 14px;
  z-index: 4;
  direction: ltr;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.live-player.is-countdown-compact .live-player__top {
  align-items: flex-start;
}

.live-player__controls {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

/* Custom live-player dropdowns (channel + quality) */
.live-menu {
  position: relative;
  direction: rtl;
  pointer-events: auto;
  flex: 0 0 auto;
}

.live-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  max-width: min(230px, 52vw);
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(11, 15, 31, 0.78);
  backdrop-filter: blur(12px);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition: border-color 160ms ease, background 160ms ease;
}

.live-menu__btn:hover,
.live-menu.is-open .live-menu__btn {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(16, 20, 38, 0.9);
}

.live-menu__tag {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.live-menu__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-menu__caret {
  width: 11px;
  height: 8px;
  margin-inline-start: auto;
  color: rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.live-menu.is-open .live-menu__caret {
  transform: rotate(180deg);
}

.live-menu__list {
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  background: rgba(9, 13, 28, 0.97);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  max-height: 240px;
  overflow-y: auto;
  animation: live-menu-in 140ms ease;
}

@keyframes live-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-menu__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 130ms ease;
}

.live-menu__opt + .live-menu__opt {
  margin-top: 2px;
}

.live-menu__opt:hover {
  background: rgba(255, 255, 255, 0.08);
}

.live-menu__opt.is-selected {
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.32), rgba(47, 107, 255, 0.14));
  color: #fff;
}

.live-menu__opt.is-selected::after {
  content: "✓";
  margin-inline-start: auto;
  font-size: 0.78rem;
  color: var(--accent, #6ea8ff);
}

.live-board__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 12px;
}

.live-player__select {
  position: relative;
  direction: rtl;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  flex: 0 0 auto;
  height: 38px;
  min-height: 38px;
  max-width: min(230px, 52vw);
  padding: 5px 30px 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(11, 15, 31, 0.78);
  backdrop-filter: blur(12px);
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.live-player__select::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 0;
  height: 0;
  border-inline: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.88);
  pointer-events: none;
  transform: translateY(-35%);
}

.live-player__select:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(16, 20, 38, 0.88);
}

.live-player__select select {
  min-width: 0;
  max-width: 150px;
  border: 0;
  appearance: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.live-player__select option {
  color: #081024;
}

.live-player__countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(640px, calc(100% - 32px));
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 16px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: top center;
  transition:
    top 760ms cubic-bezier(0.2, 0.82, 0.22, 1),
    width 760ms cubic-bezier(0.2, 0.82, 0.22, 1),
    gap 760ms cubic-bezier(0.2, 0.82, 0.22, 1),
    transform 760ms cubic-bezier(0.2, 0.82, 0.22, 1);
}

.live-player__countdown > span {
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: rgba(5, 8, 22, 0.82);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: clamp(1rem, 2.3vw, 1.42rem);
  font-weight: 800;
  transition: opacity 260ms ease, transform 260ms ease;
}

.live-player__countdown .countdown {
  margin-top: 0;
}

.live-player.is-countdown-compact .live-player__countdown {
  position: static;
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  gap: 0;
  transform: none;
  z-index: auto;
}

.live-player.is-countdown-compact .live-player__countdown > span {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  height: 0;
  padding: 0;
  overflow: hidden;
}

.live-player.is-countdown-compact .live-player__countdown .countdown {
  display: flex;
  align-items: stretch;
  min-height: 56px;
  padding: 8px 10px;
  gap: 4px;
}

.live-player.is-countdown-compact .live-player__countdown .countdown__cell {
  min-width: 46px;
  padding: 4px 4px;
}

.live-player.is-countdown-compact .live-player__countdown .countdown__val {
  font-size: 1.28rem;
}

.live-player.is-countdown-compact .live-player__countdown .countdown__unit {
  font-size: 0.54rem;
}

.live-player.is-countdown-compact .live-player__countdown .countdown__sep {
  font-size: 1.1rem;
  transform: translateY(-5px);
}

.live-player__message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  background: rgba(5, 8, 22, 0.82);
  color: #ffd2d8;
  font-size: 0.82rem;
}

.live-board {
  height: 100%;
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 280px at 90% 0%, rgba(255, 77, 99, 0.15), transparent 65%),
    linear-gradient(180deg, rgba(20, 32, 74, 0.72), rgba(8, 13, 33, 0.78));
  box-shadow: var(--glow-brand);
}

.live-board--upcoming {
  background:
    radial-gradient(420px 280px at 0% 0%, rgba(233, 198, 104, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(20, 32, 74, 0.72), rgba(8, 13, 33, 0.78));
}

.live-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-board__eyebrow {
  color: #ffd2d8;
  background: rgba(255, 77, 99, 0.12);
}

.live-board--upcoming .live-board__eyebrow {
  color: var(--gold-soft);
  background: rgba(233, 198, 104, 0.10);
}

.live-board__eyebrow svg { width: 16px; height: 16px; }

.live-board__details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-1);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.live-board__details svg { width: 16px; height: 16px; color: var(--brand-soft); }

.live-board__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  line-height: 1.35;
  font-weight: 900;
}

.live-board__lead {
  margin: -6px 0 0;
  color: var(--text-dim);
  line-height: 1.9;
}

.live-board__next {
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 700;
}

.live-board__scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.live-board__team {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  text-align: center;
  cursor: pointer;
}

.live-board__team img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
}

.live-board__team span {
  max-width: 100%;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.live-board__score {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: rgba(5, 8, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-board__score b {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  font-weight: 900;
}

.live-board__score span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffd2d8;
  font-size: 0.78rem;
  font-weight: 800;
}

.live-board__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-board__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  color: var(--text-dim);
  font-size: 0.76rem;
}

.live-board__meta svg { width: 14px; height: 14px; color: var(--brand-soft); }

.live-goals {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: rgba(5, 8, 22, 0.34);
}

.live-goals__title {
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 800;
}

.live-goals__empty {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.live-goals__empty svg { width: 15px; height: 15px; color: var(--text-faint); flex: 0 0 auto; opacity: 0.8; }

.live-goal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.live-goal--away { justify-content: flex-end; }
.live-goal__min { color: var(--gold-soft); font-weight: 900; }
.live-goal__ball svg { width: 15px; height: 15px; color: var(--brand-cyan); }

.hero-match-list {
  display: grid;
  gap: 10px;
}

.hero-match {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: rgba(5, 8, 22, 0.38);
  color: var(--text);
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.hero-match:hover,
.hero-match.is-active {
  border-color: var(--border-strong);
  background: rgba(47, 107, 255, 0.12);
}

.hero-match__time {
  grid-row: span 2;
  justify-self: start;
  color: #fff;
  font-weight: 900;
}

.hero-match__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.hero-match__teams img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero-match__teams b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.hero-match__teams em {
  color: var(--text-faint);
  font-size: 0.7rem;
  font-style: normal;
  text-transform: uppercase;
}

.hero-match__round {
  color: var(--text-faint);
  font-size: 0.72rem;
  text-align: center;
}

.hero-match__live {
  grid-row: span 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--live);
  font-weight: 900;
}
.hero-match__live b { color: #fff; }

.hero-match.is-live {
  border-color: rgba(255, 77, 99, 0.4);
  background: rgba(255, 77, 99, 0.08);
}

.hero-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(120deg, rgba(47, 107, 255, 0.18), rgba(41, 197, 220, 0.10));
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.15s var(--ease), transform 0.15s var(--ease);
}
.hero-jump:hover { filter: brightness(1.1); transform: translateY(-1px); }
.hero-jump svg { width: 16px; height: 16px; }

.hero-slider { position: relative; border-radius: var(--r-lg); box-shadow: var(--glow-brand); }

.hero-slider__viewport { overflow: hidden; border-radius: var(--r-lg); }

.hero-slider__track {
  display: grid;
}

.hero-slide { min-width: 0; direction: rtl; display: none; grid-template-columns: minmax(0, 1fr); }
.hero-slide.is-active { display: grid; }
.hero-slide .featured { height: 100%; align-content: center; box-shadow: none; }

.featured {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 220px at 50% -10%, rgba(233, 198, 104, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(20, 32, 74, 0.72), rgba(8, 13, 33, 0.78));
  box-shadow: var(--glow-brand);
}

/* Live slide: red pulsing dot + warmer title */
.featured__label .live-dot {
  display: block;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 99, 0.6);
  animation: pulse 1.8s infinite;
}
.featured.is-live .featured__label { color: #ffd2d8; }

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

.featured__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.featured__label svg { width: 16px; height: 16px; }

.featured__round {
  font-size: 0.76rem;
  color: var(--text-faint);
  font-weight: 600;
}

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

.featured__team {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  min-width: 0;
}

.featured__crest {
  width: clamp(54px, 7vw, 72px);
  height: clamp(54px, 7vw, 72px);
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
}

.featured__name {
  font-size: clamp(0.92rem, 1.4vw, 1.06rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.featured__center {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 6px;
}

.featured__score {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.featured__kick {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.featured__vs {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-faint);
}

.featured__date {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-align: center;
}

/* Countdown */
/* Countdown — digital scoreboard, reads left→right: روز : ساعت : دقیقه : ثانیه */
.countdown {
  display: inline-flex;
  direction: ltr;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  margin: 8px auto 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(47, 107, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(9, 14, 36, 0.92), rgba(13, 21, 50, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(2, 6, 23, 0.5);
}

.countdown__cell {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 56px;
  padding: 6px 6px 4px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px rgba(140, 165, 230, 0.08);
}

.countdown__val {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(79, 140, 255, 0.55);
}

.countdown__unit {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-faint);
}

.countdown__sep {
  align-self: center;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-soft);
  opacity: 0.65;
  transform: translateY(-6px);
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0.18; } }

.featured__venue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 2px;
  border-top: 1px solid var(--border-soft);
  margin-top: 2px;
  padding-top: 12px;
}

.featured__venue svg { width: 14px; height: 14px; color: var(--brand-soft); }

/* ---- Panels -------------------------------------------------------------- */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(12, 19, 44, 0.66), rgba(7, 11, 28, 0.70));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 24px);
  border-bottom: 1px solid var(--border-soft);
}

.panel__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 800;
}

.panel__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.28), rgba(47, 107, 255, 0.10));
  border: 1px solid var(--border-strong);
  color: var(--brand-soft);
}

.panel__icon svg { width: 18px; height: 18px; }

.count-chip {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.30), rgba(47, 107, 255, 0.12));
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 800;
  color: #dbe7ff;
}

.panel__body {
  padding: clamp(14px, 2vw, 20px) clamp(14px, 2.4vw, 22px) clamp(18px, 2.4vw, 24px);
}

/* ---- Matches control bar ------------------------------------------------- */
.controls {
  display: grid;
  /* minmax(0,1fr): without it the implicit auto column grows to the tabs'
     min-content width and overflows the padding, dragging every row left. */
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.4vw, 24px);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search__icon {
  position: absolute;
  inset-inline-start: 15px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  pointer-events: none;
}

.search__icon svg { width: 18px; height: 18px; }

.search__input {
  width: 100%;
  padding: 12px 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search__input::placeholder { color: var(--text-faint); }

.search__input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-2);
  box-shadow: var(--glow-brand);
}

/* hide the browser's native search clear — we render our own */
.search__input::-webkit-search-decoration,
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.search__clear {
  position: absolute;
  inset-inline-end: 11px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-dim);
  background: var(--surface-3);
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.search__clear:hover { color: var(--text); background: var(--surface-2); }
.search__clear svg { width: 15px; height: 15px; }

.controls__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0; /* shrink to the controls column instead of overflowing it */
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-inline-start: auto;
}

/* ---- Filter tabs --------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tab[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.35);
}

.tab__badge {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 0.72rem;
  font-weight: 700;
}

.tab[aria-pressed="true"] .tab__badge {
  background: rgba(255, 255, 255, 0.22);
}

/* ---- Filter dropdowns (stage / team / date) ----------------------------- */
.round-filter { position: relative; }

.round-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.round-btn:hover,
.round-btn[aria-expanded="true"] { color: var(--text); border-color: var(--border-strong); }
.round-btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
.round-btn svg:first-child { color: var(--brand-soft); }
.round-btn .chev { transition: transform 0.22s var(--ease); }
.round-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.round-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  min-width: 210px;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(7, 11, 28, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  display: none;
}

.round-menu.is-open { display: grid; gap: 4px; }

.round-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.round-opt:hover { background: var(--surface-2); color: var(--text); }

.round-opt[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.26), rgba(47, 107, 255, 0.1));
}

.round-opt__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-opt .count-chip { background: var(--surface-2); border-color: var(--border); color: var(--text-dim); min-width: 24px; height: 22px; font-size: 0.72rem; }
.round-opt[aria-selected="true"] .count-chip { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* team option: crest + (search-only) Persian hint */
.round-opt--team { justify-content: flex-start; gap: 9px; }
.round-opt--team .round-opt__name { flex: 1 1 auto; }
.round-opt__crest { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.round-opt__fa { color: var(--text-faint); font-size: 0.78rem; font-weight: 500; margin-inline-start: 5px; }

/* ---- Active filter chips ------------------------------------------------- */
.active-filters { display: none; flex-wrap: wrap; align-items: center; gap: 8px; }
.active-filters.is-visible { display: flex; }

.chip-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.18), rgba(47, 107, 255, 0.06));
  color: #dbe7ff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.chip-filter:hover { background: linear-gradient(180deg, rgba(47, 107, 255, 0.3), rgba(47, 107, 255, 0.12)); }
.chip-filter__x { display: grid; place-items: center; opacity: 0.85; }
.chip-filter__x svg { width: 13px; height: 13px; }

.chip-clear {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.chip-clear:hover { color: var(--text); text-decoration: underline; }

/* ---- Match groups + rows ------------------------------------------------- */
.match-groups {
  display: grid;
  gap: 22px;
}

.match-group__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 12px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: none;
  color: var(--brand-soft);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.match-group__head:hover { background: var(--surface-1); border-color: var(--border-soft); }

.match-group__chev {
  display: inline-grid;
  place-items: center;
  color: var(--text-dim);
  transition: transform 0.22s var(--ease);
}

.match-group__chev svg { width: 18px; height: 18px; display: block; }
.match-group.is-collapsed .match-group__chev { transform: rotate(-90deg); }

.match-group__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.match-group__head .count-chip {
  margin-inline-start: auto;
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-dim);
  min-width: 24px;
  height: 24px;
  font-size: 0.74rem;
}

.match-list {
  display: grid;
  grid-auto-rows: auto;
  gap: 8px;
}

.match-group.is-collapsed .match-list { display: none; }

/* Desktop: lay each stage's matches in two columns to cut down scrolling */
@media (min-width: 900px) {
  .match-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
}

.match {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: minmax(46px, auto) auto;
  align-items: center;
  align-content: center;
  gap: 6px clamp(8px, 2vw, 18px);
  min-height: 125px;
  padding: 10px clamp(12px, 2vw, 18px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.match::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 55%, rgba(79, 140, 255, 0.10) 100%);
  opacity: 0;
  transition: opacity 0.18s var(--ease);
  pointer-events: none;
}

.match:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.match:hover::before { opacity: 1; }

.match.is-active {
  border-color: var(--border-strong);
  box-shadow: var(--glow-brand);
}

.match.is-live {
  border-color: rgba(255, 77, 99, 0.32);
  min-height: 146px;
}

.match__side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  direction: ltr; /* lay flag/name physically, independent of RTL flow */
}

/* Right team: name toward centre, flag pinned to the far right edge */
.match__side--home { justify-content: flex-end; text-align: right; }
/* Left team: flag pinned to the far left edge, name toward centre.
   (row-reverse flips the main axis, so flex-end packs to the physical left) */
.match__side--away { justify-content: flex-end; flex-direction: row-reverse; text-align: left; }

.match__crest {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}

.match__team {
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match__side.is-winner .match__team {
  color: var(--gold-soft);
  font-weight: 900;
}

.match__center {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 72px;
}

.match__time {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.match__score {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.match__pen {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(233, 198, 104, 0.10);
  color: var(--gold-soft);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.55;
}

.match__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-dim);
}

.match__status.is-live {
  background: rgba(255, 77, 99, 0.15);
  color: #ffb8c1;
}

.match__status.is-live .live-dot {
  width: 6px; height: 6px;
  background: var(--live);
  animation: pulse 1.8s infinite;
}

.match__status.is-finished {
  background: rgba(52, 210, 127, 0.14);
  color: #93e7bd;
}

.match__date {
  font-size: 0.68rem;
  color: var(--text-faint);
}

.match__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #ff5a6e, #e23048);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 77, 99, 0.35);
  transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}

.match__live svg { width: 13px; height: 13px; }
.match__live:hover { filter: brightness(1.08); transform: translateY(-1px); }

@media (min-width: 760px) {
  .match.is-live {
    min-height: 132px;
  }
  .match.is-live .predict {
    flex-wrap: nowrap;
  }
  .match.is-live .match__live,
  .match.is-live .predict__btn {
    padding-inline: 12px;
  }
}

/* ---- Standings ----------------------------------------------------------- */
.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.4vw, 24px) 4px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.legend-item { display: inline-flex; align-items: center; gap: 7px; }

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.legend-swatch--qualify { background: linear-gradient(180deg, var(--brand-bright), var(--brand)); }
.legend-swatch--playoff { background: linear-gradient(180deg, var(--gold), #c79a32); }

.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(660px, 100%), 1fr));
  gap: 16px;
}

.group {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
}

.group__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.10), transparent);
}

.group__title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-soft);
}

.table {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.thead,
.trow {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1fr) 48px 58px 52px 64px 74px 62px 64px;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  min-width: 660px;
}

.thead {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

.trow {
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.trow:last-child { border-bottom: 0; }

.trow.is-qualify::before,
.trow.is-playoff::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.trow.is-qualify::before { background: linear-gradient(180deg, var(--brand-bright), var(--brand)); }
.trow.is-playoff::before { background: linear-gradient(180deg, var(--gold), #c79a32); }

.th-num,
.td-num {
  text-align: center;
  color: var(--text-dim);
}

.td-pts {
  font-weight: 800;
  color: var(--text);
}

.td-rank {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
}

.td-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.td-team__crest {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.td-team__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form {
  display: inline-flex;
  gap: 3px;
  justify-content: flex-end;
}

.form__cell {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #06121a;
}

.form__cell--W { background: var(--win); }
.form__cell--D { background: var(--draw); }
.form__cell--L { background: var(--loss); color: #fff; }

.form__empty { color: var(--text-faint); font-size: 0.72rem; }

/* ---- Tournament leaders ("برترین‌ها") ----------------------------------- */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.leader-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  overflow: hidden;
}

.leader-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-soft);
}

.leader-card__icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.28), rgba(47, 107, 255, 0.10));
  border: 1px solid var(--border-strong);
  color: var(--brand-soft);
  flex: 0 0 auto;
}
.leader-card__icon svg { width: 17px; height: 17px; }

.leader-card__title { font-weight: 800; font-size: 0.98rem; }

.leader-card__empty {
  padding: 22px 15px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* #1 — highlighted */
.leader-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin: 13px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(233, 198, 104, 0.16), rgba(233, 198, 104, 0.04));
  border: 1px solid rgba(233, 198, 104, 0.32);
  box-shadow: var(--glow-gold);
}

.leader-hero__medal {
  position: absolute;
  inset-inline-start: -7px;
  top: -9px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #3a2c05;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(150, 110, 20, 0.4);
}

.leader-hero__avatar {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(2, 6, 23, 0.5));
}
.leader-hero__avatar--photo {
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 2px solid rgba(233, 198, 104, 0.5);
}

.leader-hero__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.leader-hero__name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-hero__sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.leader-hero__sub img { width: 16px; height: 16px; object-fit: contain; }

.leader-hero__val {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  flex: 0 0 auto;
}
.leader-hero__val b { font-size: 1.55rem; font-weight: 900; color: var(--gold-soft); }
.leader-hero__val small { font-size: 0.68rem; color: var(--text-faint); }

/* ranks 2–4 */
.leader-list {
  list-style: none;
  margin: 0 13px 13px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leader-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
}

.leader-row__rank {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  flex: 0 0 auto;
}

.leader-row__avatar {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface-2);
  flex: 0 0 auto;
}

.leader-row__name {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-row__sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-faint);
}
.leader-row__sub img { width: 14px; height: 14px; object-fit: contain; }

.leader-row__val {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .leaders-grid { grid-template-columns: 1fr; }
}

/* ---- Special award predictions ("پیش‌بینی‌های ویژه") -------------------- */
.awards-intro {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.9;
}

.awards-lock[hidden] { display: none; }
.awards-lock {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 90, 114, 0.12);
  border: 1px solid rgba(255, 90, 114, 0.3);
  color: #ffc2cb;
  font-size: 0.74rem;
  font-weight: 700;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.award-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  overflow: hidden;
}

.award-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--border-soft);
}

.award-card__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(233, 198, 104, 0.26), rgba(233, 198, 104, 0.08));
  border: 1px solid rgba(233, 198, 104, 0.3);
  color: var(--gold-soft);
  flex: 0 0 auto;
}
.award-card__icon svg { width: 18px; height: 18px; }

.award-card__titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.award-card__titles b { font-weight: 800; font-size: 0.98rem; }
.award-card__titles small { font-size: 0.74rem; color: var(--text-faint); }

.award-slots {
  list-style: none;
  margin: 0;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
}

.award-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid transparent;
}
.award-slot.is-filled { border-color: var(--border); }
.award-slot:first-child.is-filled {
  background: linear-gradient(120deg, rgba(233, 198, 104, 0.14), rgba(233, 198, 104, 0.03));
  border-color: rgba(233, 198, 104, 0.3);
}

.award-slot__rank {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  flex: 0 0 auto;
}
.award-slot:first-child .award-slot__rank {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #3a2c05;
}

.award-slot__label {
  font-size: 0.72rem;
  color: var(--text-faint);
  flex: 0 0 auto;
  min-width: 58px;
}

.award-slot__avatar {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface-2);
  flex: 0 0 auto;
}
.award-slot__avatar--empty { opacity: 0.4; }

.award-slot__name {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.award-slot__name--empty { color: var(--text-faint); font-weight: 600; }
.award-slot__sub { font-size: 0.68rem; color: var(--text-faint); font-weight: 500; }

.award-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
}

.award-note { font-size: 0.74rem; color: var(--text-faint); }
.award-note--free { color: var(--win); }
.award-result { font-size: 0.85rem; color: var(--text-dim); }
.award-result b { color: var(--gold-soft); }
.award-locked { font-size: 0.8rem; color: var(--text-faint); }

.award-btn {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--brand), var(--brand-cyan));
  color: #04060f;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.award-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.award-btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

@media (max-width: 860px) {
  .awards-grid { grid-template-columns: 1fr; }
}

/* Award picker modal */
.award-picks {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.award-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px dashed var(--border);
}
.award-pick.is-filled { border-style: solid; }
.award-pick__rank {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-dim);
  flex: 0 0 auto;
}
.award-pick:first-child .award-pick__rank {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #3a2c05;
}
.award-pick__avatar { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; background: var(--surface-2); flex: 0 0 auto; }
.award-pick__name { font-weight: 700; font-size: 0.9rem; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-pick__placeholder { color: var(--text-faint); font-size: 0.85rem; flex: 1 1 auto; }
.award-pick__clear {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  flex: 0 0 auto;
}
.award-pick__clear svg { width: 14px; height: 14px; }
.award-pick__clear:hover { color: var(--loss); border-color: rgba(255, 90, 114, 0.4); }

.award-modal__warn {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(233, 198, 104, 0.08);
  border: 1px solid rgba(233, 198, 104, 0.22);
  color: var(--gold-soft);
  font-size: 0.78rem;
  line-height: 1.8;
}
.award-modal__warn--free { background: rgba(52, 210, 127, 0.08); border-color: rgba(52, 210, 127, 0.22); color: #8ee9b6; }

.award-cands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
  margin-bottom: 14px;
}
.award-cand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  text-align: start;
  position: relative;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.award-cand:hover { border-color: var(--border-strong); }
.award-cand.is-selected {
  background: linear-gradient(120deg, rgba(47, 107, 255, 0.18), rgba(41, 197, 220, 0.08));
  border-color: var(--border-strong);
}
.award-cand__rank {
  position: absolute;
  inset-inline-start: 6px;
  top: 6px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--brand-bright), var(--brand-cyan));
  color: #04060f;
  font-size: 0.66rem;
  font-weight: 900;
}
.award-cand__avatar { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; background: var(--surface-2); flex: 0 0 auto; }
.award-cand__name { display: flex; flex-direction: column; font-weight: 700; font-size: 0.84rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-cand__sub { font-size: 0.68rem; color: var(--text-faint); font-weight: 500; }
.award-modal__save { width: 100%; }

.award-avatar--photo { object-fit: cover; }

@media (max-width: 520px) {
  .award-cands { grid-template-columns: 1fr; }
}

/* Knockout-stage points multiplier chip on the predict bar */
.predict__mult {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, rgba(233, 198, 104, 0.18), rgba(233, 198, 104, 0.05));
  border: 1px solid rgba(233, 198, 104, 0.3);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Transient toast */
.wc-toast {
  position: fixed;
  inset-inline: 0;
  bottom: 26px;
  margin-inline: auto;
  width: max-content;
  max-width: 90vw;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--brand-deep), var(--bg-2));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.wc-toast.is-on { opacity: 1; transform: translateY(0); }

/* ---- States -------------------------------------------------------------- */
.state {
  padding: 26px 18px;
  text-align: center;
  border-radius: var(--r-md);
  border: 1px dashed var(--border);
  background: var(--surface-1);
  color: var(--text-dim);
  line-height: 1.9;
}

.state--error {
  border-color: rgba(255, 90, 114, 0.3);
  background: rgba(255, 90, 114, 0.06);
  color: #ffc2cb;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-1);
  border-radius: var(--r-md);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}

.skeleton--row { height: 60px; margin-bottom: 10px; }
.skeleton--group { height: 220px; }
.skeleton--hero { height: 220px; width: 100%; }

/* Accessible skip link */
.skip-link {
  position: absolute;
  right: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.noscript {
  max-width: var(--content-width);
  margin: 16px auto;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-1);
  color: var(--text-dim);
  text-align: center;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* ---- Footer -------------------------------------------------------------- */
/* ---- About / SEO prose -------------------------------------------------- */
.seo-prose p {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 2.05;
}
.seo-prose p:last-child { margin-bottom: 0; }
.seo-en {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  font-size: 0.86rem;
  line-height: 1.8;
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq__item {
  margin-bottom: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface-1);
  overflow: hidden;
}
.faq__item:last-child { margin-bottom: 0; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.18s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--surface-2); }
.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--brand-soft);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__a {
  padding: 0 16px 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 2;
}

/* ---- Footer (minimal, compact) ------------------------------------------ */
.footer {
  margin-top: clamp(22px, 3.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(12, 19, 44, 0.5), rgba(7, 11, 28, 0.6));
  box-shadow: var(--shadow-sm);
}

.footer .brand__logo { height: 28px; }

.footer__copy { font-size: 0.78rem; color: var(--text-faint); }

/* ---- Responsive ---------------------------------------------------------- */
/* keep the footer clear of the bottom-docked quick-nav */
@media (max-width: 980px) {
  .hero {
    /* minmax(0,1fr) — not 1fr — so the slider track's min-content can't blow
       the column out past the viewport on phones. */
    grid-template-columns: minmax(0, 1fr);
  }
  .live-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .live-player,
  .live-board {
    min-height: 340px;
  }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__meta { justify-content: center; }
  .standings-grid { grid-template-columns: 1fr; }
  .footer { justify-content: center; text-align: center; }
}

/* Collapse the nav to a hamburger early enough that the link bar (which now
   also carries پیش‌بینی + ورود) never overflows on tablets — an overflowing
   nav widens the whole page and shifts every box off the right edge. */
@media (max-width: 980px) {
  /* Keep the collapsed header floating/sticky at the top on mobile. (The old
     `position: relative` was only needed back when the link bar could overflow;
     those controls are hidden below 900px now, so sticky is safe.) */
  .nav { position: sticky; top: 8px; z-index: 50; }
  /* Minimal mobile header: only the logo (right) and the CTA/avatar cluster
     (left). The link bar, season switcher, live button and hamburger are all
     dropped below 900px. */
  .nav__links,
  .nav__live,
  .season,
  .nav__toggle { display: none; }
  .nav__mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }
  .brand__tag { display: none; }
}

@media (max-width: 760px) {
  .hero { padding: 10px; }
  .live-player,
  .live-board {
    min-height: 310px;
    border-radius: var(--r-md);
  }
  .live-player__top {
    top: 10px;
    inset-inline: 10px;
    z-index: 4;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    pointer-events: none;
  }
  .live-player__select {
    pointer-events: auto;
    justify-content: space-between;
    flex: 0 1 auto;
    max-width: min(58%, 184px);
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 5px 30px 5px 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }
  .live-player__select span { display: none; }
  .live-player__select select {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .live-menu__btn {
    height: 36px;
    max-width: min(46vw, 168px);
    padding: 0 11px;
    gap: 5px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }
  .live-menu__tag { display: none; }
  .live-menu__list { padding: 5px; }
  .live-menu__opt { padding: 10px 11px; }
  .live-player__message {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .live-player__countdown {
    width: calc(100% - 22px);
    gap: 10px;
  }
  .live-player.is-countdown-compact .live-player__countdown {
    position: static;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100% - 122px);
    transform: none;
    transform-origin: top left;
  }
  .live-player.is-countdown-compact .live-player__countdown .countdown {
    width: auto;
    min-height: 42px;
    padding: 5px 6px;
    gap: 1px;
  }
  .live-player.is-countdown-compact .live-player__countdown .countdown__cell {
    flex: 0 0 37px;
    min-width: 37px;
    padding: 3px 1px;
  }
  .live-player.is-countdown-compact .live-player__countdown .countdown__val {
    font-size: 0.82rem;
  }
  .live-player.is-countdown-compact .live-player__countdown .countdown__unit {
    font-size: 0.4rem;
  }
  .live-player.is-countdown-compact .live-player__countdown .countdown__sep {
    font-size: 0.68rem;
    transform: translateY(-4px);
  }
  .live-board {
    gap: 14px;
    padding: 16px;
  }
  /* Keep the badge + details on one tidy row. */
  .live-board__head {
    flex-direction: row;
    align-items: center;
  }
  .live-board__details { padding: 7px 11px; font-size: 0.74rem; }
  .live-board__title { font-size: clamp(1.1rem, 5.2vw, 1.5rem); line-height: 1.3; }
  /* Keep the scoreboard HORIZONTAL on phones (home · score · away). Stacking it
     into one column pushed a big empty score box to the top and made the panel
     needlessly tall and unbalanced. */
  .live-board__scoreline { gap: 8px; }
  .live-board__team img { width: 44px; height: 44px; }
  .live-board__team span { font-size: 0.8rem; gap: 6px; }
  .live-board__score { padding: 8px 12px; gap: 5px; }
  .live-board__score b { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .live-board__score span { font-size: 0.72rem; }
  .hero-match__teams {
    flex-wrap: wrap;
  }
  /* Matches controls: stack the rows so tabs + filters never wrap into a
     stagger. Tabs stay on one swipeable line; filters become full-width rows
     (their dropdown menus anchor to the full width, so nothing overflows). */
  .controls__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .tabs {
    width: 100%; /* pin to the column; nowrap content scrolls inside */
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs { gap: 5px; }
  .tabs > .tab { flex: 0 0 auto; padding: 7px 9px; gap: 4px; font-size: 0.8rem; }
  .tabs .tab__badge { min-width: 16px; padding: 1px 5px; font-size: 0.68rem; }

  /* filters: one compact row of three; the dropdown menus drop full-width
     below the row (anchored to .filters) so nothing overflows the screen. */
  .filters {
    width: 100%;
    margin-inline-start: 0;
    position: relative;
    display: grid;
    /* minmax(0,1fr) — not 1fr — so the buttons shrink to fit instead of
       overflowing the controls (and dragging the full-width menu off-screen). */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .filters > .round-filter { position: static; }
  .round-btn {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    padding: 9px 9px;
    font-size: 0.8rem;
  }
  .round-btn > svg:first-child { display: none; } /* drop the leading icon to save width */
  .round-btn .chev { width: 12px; height: 12px; }
  .round-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .round-menu { inset-inline: 0; min-width: 0; }
}

@media (max-width: 560px) {
  .nav__live span:not(.live-dot) { display: none; }

  /* Keep the whole header inside the bar: tighter gaps + sizes so the
     hamburger doesn't get pushed past the left edge. */
  .nav { gap: 8px; padding: 8px 10px; }
  .brand__logo { height: 24px; }
  .nav__mobile { gap: 7px; }
  .nav__guide-mobile {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.74rem;
  }
  .nav__guide-mobile svg { width: 16px; height: 16px; }
  .nav__cta {
    padding: 8px 13px;
    font-size: 0.78rem;
  }
  .nav__live { padding: 8px 10px; }
  .nav__season { padding: 6px 10px; font-size: 0.76rem; }
  .nav__toggle { width: 36px; height: 36px; }

  .countdown__cell { min-width: 46px; }

  .form__cell { width: 14px; height: 14px; }
}

@media (max-width: 420px) {
  .brand__logo { height: 22px; }
  .nav__guide-mobile {
    width: auto;
    min-width: 54px;
    min-height: 36px;
    padding: 0 10px;
  }
  .nav__guide-mobile svg { display: none; }
  .nav__guide-mobile span { display: inline; }
  .nav__cta {
    padding-inline: 11px;
    font-size: 0.74rem;
  }
  .match {
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    min-height: 132px;
    padding: 12px 10px;
  }
  .match.is-live { min-height: 158px; }
  .match__team { font-size: 0.84rem; }
  .match__crest { width: 26px; height: 26px; }
  .match__center { min-width: 58px; gap: 4px; }
  .match__live { margin-top: 1px; padding: 4px 10px; }
  .predict {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
  }
  .predict__chip {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: 10px;
    font-size: 0.74rem;
  }
  .predict__btn {
    flex: 0 0 auto;
    padding-inline: 12px;
    font-size: 0.74rem;
  }
}

/* Very narrow phones (~320px): shrink the header further so every control
   still fits inside the bar. */
@media (max-width: 360px) {
  .nav { gap: 6px; padding: 7px 8px; }
  .brand__logo { height: 20px; }
  .nav__mobile { gap: 5px; }
  .nav__guide-mobile {
    width: auto;
    min-width: 50px;
    min-height: 34px;
    padding-inline: 9px;
  }
  .nav__cta {
    padding-inline: 9px;
    font-size: 0.7rem;
  }
  .nav__season { padding: 5px 8px; font-size: 0.72rem; }
  .nav__live { padding: 7px 9px; }
}

/* ---- Modal / drill-downs ------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(2, 5, 15, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.modal-overlay.is-open { opacity: 1; }

.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 90% -5%, rgba(47, 107, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(13, 21, 50, 0.98), rgba(7, 11, 28, 0.98));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(14px) scale(0.99);
  transition: transform 0.22s var(--ease);
}

.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  border-bottom: 1px solid var(--border-soft);
}

.modal__crest {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface-2);
  padding: 6px;
  flex: 0 0 auto;
}

.modal__titles { min-width: 0; flex: 1; }

.modal__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal__sub {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.modal__close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-dim);
  flex: 0 0 auto;
  transition: all 0.2s var(--ease);
}

.modal__close:hover { color: #fff; border-color: var(--border-strong); background: var(--surface-2); }
.modal__close svg { width: 18px; height: 18px; }

.modal__tabs {
  display: flex;
  gap: 6px;
  padding: 10px clamp(16px, 2.4vw, 22px);
  border-bottom: 1px solid var(--border-soft);
}

.modal__tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
  transition: all 0.18s var(--ease);
}

.modal__tab svg { width: 16px; height: 16px; }
.modal__tab:hover { color: var(--text); background: var(--surface-1); }

.modal__tab[aria-selected="true"] {
  color: #fff;
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.22), rgba(47, 107, 255, 0.08));
}

.modal__body {
  padding: clamp(14px, 2.4vw, 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
}

.modal__back:hover { color: var(--text); border-color: var(--border-strong); }
.modal__back svg { width: 15px; height: 15px; }

/* Competition list (team statistics tab) */
.comp-list { display: grid; gap: 8px; }

.comp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface-1);
  text-align: start;
  width: 100%;
  transition: all 0.16s var(--ease);
}

.comp-row:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.comp-row__logo { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; background: #fff; border-radius: 6px; padding: 2px; }
.comp-row__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-row__year { font-size: 0.8rem; color: var(--text-faint); font-weight: 700; }
.comp-row__chev { color: var(--text-faint); }
.comp-row__chev svg { width: 16px; height: 16px; }

/* Stat grid (team statistics detail) */
.stat-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}

.stat-banner__title { font-weight: 800; }
.stat-banner__form { display: inline-flex; gap: 4px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.stat-box {
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}

.stat-box__label { font-size: 0.76rem; color: var(--text-faint); }
.stat-box__value { margin-top: 6px; font-size: 1.5rem; font-weight: 900; }
.stat-box__split { margin-top: 4px; font-size: 0.72rem; color: var(--text-dim); }

/* Squad */
.squad-group { margin-bottom: 18px; }
.squad-group:last-child { margin-bottom: 0; }

.squad-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand-soft);
}

.squad-group__title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-soft); }

.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface-1);
  text-align: start;
  width: 100%;
  transition: all 0.16s var(--ease);
}

.player:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }

.player__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
  flex: 0 0 auto;
}

.player__name { font-weight: 700; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__meta { font-size: 0.74rem; color: var(--text-faint); }

/* Player detail */
.player-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}

.player-hero__photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: 0 0 auto; }
.player-hero__name { margin: 0; font-size: 1.2rem; font-weight: 800; }
.player-hero__sub { margin: 4px 0 0; font-size: 0.84rem; color: var(--text-dim); }

/* Stadium */
.venue-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  margin-bottom: 16px;
}

.venue-list { display: grid; gap: 8px; }

.venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}

.venue-row__label { color: var(--text-dim); font-size: 0.84rem; }
.venue-row__value { font-weight: 700; text-align: end; }

/* Fixture detail */
.fx-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.fx-detail__board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}

.fx-team { display: grid; justify-items: center; gap: 10px; text-align: center; }
.fx-team__crest { width: 64px; height: 64px; object-fit: contain; }
.fx-team__name { font-weight: 700; }
.fx-team[role="button"]:hover .fx-team__name { color: var(--brand-soft); }

.fx-center { display: grid; justify-items: center; gap: 6px; }
.fx-center__score { font-size: 2.2rem; font-weight: 900; letter-spacing: 0.05em; }
.fx-center__time { font-size: 1.6rem; font-weight: 900; }
.fx-center__pen {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(233, 198, 104, 0.11);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}
.fx-center__status { font-size: 0.74rem; font-weight: 700; color: var(--brand-soft); }

.fx-meta { margin-top: 14px; display: grid; gap: 8px; }

.modal-clickable { cursor: pointer; }

.fx-board__date {
  margin-top: 10px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Fixture tabs share .modal__tabs / .modal__tab; add spacing */
.fx-detail__board + .modal__tabs,
.fx-board__date + .modal__tabs { margin-top: 16px; }
#fxTabBody { margin-top: 14px; }

/* Prediction analytics */
.pa {
  display: grid;
  gap: 14px;
}

.pa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(34, 197, 94, 0.08)),
    var(--surface-1);
}

.pa-kicker {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--brand-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.pa-hero h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.7;
}

.pa-hero p {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.8;
}

.pa-ring {
  --pct: 0;
  position: relative;
  width: 94px;
  height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  overflow: hidden;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.pa-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.25), transparent 34%),
    linear-gradient(145deg, #6c8fff, #4f8cff 54%, #65e1a3);
}

.pa-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(20, 26, 56, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 0 0 24px rgba(95,133,255,0.24);
}

.pa-ring b {
  position: relative;
  z-index: 1;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
  direction: ltr;
  unicode-bidi: plaintext;
}

.pa-ring span {
  position: relative;
  z-index: 1;
  max-width: 66px;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.pa-metric {
  min-width: 0;
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}

.pa-metric span,
.pa-metric small {
  display: block;
  color: var(--text-faint);
  font-size: 0.72rem;
  line-height: 1.6;
}

.pa-metric b {
  display: block;
  margin: 4px 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.pa-accuracy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pa-accuracy > div {
  padding: 11px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(237, 211, 128, 0.32);
  background: rgba(237, 211, 128, 0.08);
}

.pa-accuracy span { display: block; color: #eadfae; font-size: 0.72rem; font-weight: 800; }
.pa-accuracy b { display: block; margin-top: 4px; font-size: 1.15rem; font-weight: 900; }

.pa-section {
  display: grid;
  gap: 9px;
}

.pa-section h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
}

.pa-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
}

.pa-panel {
  min-width: 0;
  padding: 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    var(--surface-1);
}

.pa-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pa-panel__head h4 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 900;
}

.pa-panel__head span {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 800;
}

.pa-pie-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pa-pie {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 14px 32px rgba(0,0,0,0.2);
}

.pa-pie svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pa-pie circle {
  fill: none;
  stroke-width: 6.6;
}

.pa-pie__base { stroke: rgba(255,255,255,0.09); }
.pa-pie__seg { transition: stroke-dasharray 0.45s var(--ease); }
.pa-pie__seg--home { stroke: #5f85ff; }
.pa-pie__seg--draw { stroke: #edd380; }
.pa-pie__seg--away { stroke: #65e1a3; }

.pa-pie span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
}

.pa-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pa-legend__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.74rem;
}

.pa-legend__item span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5f85ff;
}

.pa-legend__item--draw span { background: #edd380; }
.pa-legend__item--away span { background: #65e1a3; }
.pa-legend__item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-legend__item strong { color: var(--text); }

.pa-outcomes,
.pa-scores {
  display: grid;
  gap: 8px;
}

.pa-outcome,
.pa-score {
  display: grid;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}

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

.pa-outcome b,
.pa-score b {
  display: block;
  font-weight: 900;
}

.pa-outcome span {
  color: var(--text-faint);
  font-size: 0.72rem;
}

.pa-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
}

.pa-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-bright), #65e1a3);
  transition: width 0.55s var(--ease);
}

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

.pa-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  min-height: 154px;
  margin-bottom: 12px;
  padding: 10px 8px 4px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.035);
}

.pa-bar {
  flex: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.pa-bar__col {
  position: relative;
  width: 100%;
  max-width: 38px;
  height: 108px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
}

.pa-bar__fill {
  display: block;
  width: 100%;
  height: 0;
  min-height: 8px;
  border-radius: inherit;
  background: linear-gradient(180deg, #edd380, #5f85ff 65%, #65e1a3);
  box-shadow: 0 8px 18px rgba(95, 133, 255, 0.28);
}

.pa-bar b {
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.pa-bar small {
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 800;
}

.pa-score__rank {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-soft);
  font-weight: 900;
}

.pa-empty {
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px dashed var(--border-strong);
  background: var(--surface-1);
  text-align: center;
}

.pa-empty h3 { margin: 0 0 8px; font-size: 1rem; }
.pa-empty p { margin: 0; color: var(--text-dim); font-size: 0.82rem; line-height: 1.9; }

/* Events */
.ev-half {
  margin: 14px 0 8px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dim);
}

.ev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}

.ev__min { text-align: center; font-weight: 800; font-size: 0.8rem; color: var(--text-faint); }

.ev__cell { display: flex; align-items: center; gap: 8px; min-width: 0; direction: ltr; }
.ev__cell--home { justify-content: flex-end; text-align: right; }
.ev__cell--away { justify-content: flex-start; text-align: left; }

.ev__txt { display: grid; gap: 1px; min-width: 0; }
.ev__pl { font-weight: 700; font-size: 0.86rem; }
.ev__sub { font-size: 0.72rem; color: var(--text-faint); }

.ev__ic { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; }
.ev__ic svg { width: 16px; height: 16px; }
.ev__ic--goal { color: var(--win); }
.ev__ic--own { color: var(--loss); }
.ev__ic--sub { color: var(--brand-soft); }
.ev__ic--var { font-size: 0.55rem; font-weight: 800; color: var(--text-faint); border: 1px solid var(--border); border-radius: 4px; }

.ev__card { flex: 0 0 auto; width: 12px; height: 16px; border-radius: 3px; }
.ev__card--Y { background: #f4c430; }
.ev__card--R { background: var(--loss); }

/* Statistics bars */
.statbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.statbar__h { text-align: right; font-weight: 800; font-size: 0.96rem; }
.statbar__a { text-align: left; font-weight: 800; font-size: 0.96rem; }
.statbar__mid { display: grid; gap: 6px; justify-items: center; }
.statbar__label { font-size: 0.78rem; color: var(--text-dim); }

/* direction: ltr so away lands on the left half and home on the right half;
   each fill is anchored at the centre and grows outward toward its own edge. */
.statbar__track { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; direction: ltr; }
.statbar__side { position: relative; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.statbar__side .f { position: absolute; top: 0; bottom: 0; width: 0; border-radius: 999px; transition: width 0.4s var(--ease); }
/* away = left half → anchor at centre (right edge), grow left */
.statbar__side--away .f { right: 0; background: linear-gradient(270deg, var(--gold), #c79a32); }
/* home = right half → anchor at centre (left edge), grow right */
.statbar__side--home .f { left: 0; background: linear-gradient(90deg, var(--brand-bright), var(--brand)); }

/* Lineups */
.lu-forms { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 0.84rem; color: var(--text-dim); }
.lu-form b { color: var(--text); }

.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 8%, transparent 8% 16%),
    linear-gradient(180deg, #1f7a4d, #14603c);
  overflow: hidden;
}
.pitch__mid { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,0.35); }
.pitch__circle { position: absolute; top: 50%; left: 50%; width: 88px; height: 88px; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; }

.pitch__pl { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; width: 56px; text-align: center; }
.pitch__shirt { width: 40px; height: 38px; display: block; filter: drop-shadow(0 4px 7px rgba(0,0,0,0.5)); }
.pitch__shirt .jersey { width: 100%; height: 100%; display: block; }
.pitch__name {
  font-size: 0.6rem; font-weight: 700; color: #fff;
  max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.lu-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.lu-subcol__t { margin: 0 0 8px; font-size: 0.82rem; font-weight: 800; color: var(--brand-soft); }
.lu-sub { display: block; font-size: 0.8rem; color: var(--text-dim); padding: 3px 0; }
.lu-subs .num { color: var(--text-faint); font-weight: 700; }

/* Players table */
.pl-block { margin-bottom: 18px; }
.pl-team { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-weight: 800; }
.pl-team img { width: 22px; height: 22px; object-fit: contain; }
.pl-scroll { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--r-md); }
.pl-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; white-space: nowrap; }
.pl-table th, .pl-table td { padding: 8px 9px; text-align: center; border-bottom: 1px solid var(--border-soft); }
.pl-table thead th { color: var(--text-faint); font-size: 0.7rem; font-weight: 700; position: sticky; top: 0; background: rgba(10, 16, 40, 0.96); }
.pl-table th[scope="row"], .pl-table thead th:first-child { text-align: start; position: sticky; inset-inline-start: 0; background: rgba(10, 16, 40, 0.96); z-index: 1; font-weight: 700; }
.pl-table tbody tr:hover td, .pl-table tbody tr:hover th { background: var(--surface-1); }

.is-loading-block {
  display: grid;
  place-items: center;
  padding: 40px 12px;
  color: var(--text-dim);
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--brand-bright);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

body.modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .modal__tab span { display: none; }
  .modal__tab { flex: 1; }
  .profile-tab { gap: 5px; padding: 8px 5px; font-size: 0.68rem; }
  .profile-tab span { display: inline; white-space: normal; line-height: 1.45; }
  .invite-card { padding: 14px; }
  .invite-card__codebox { min-height: 72px; padding: 10px 12px; }
  .invite-card__code { font-size: 1.65rem; letter-spacing: 0.22em; padding-inline-start: 0.22em; }
  .invite-card__copy { min-width: 64px; }
  .profile-points { padding: 12px; }
  .profile-points__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-points__row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px;
  }
  .profile-points__meta b {
    white-space: normal;
  }
  .profile-points__score {
    justify-self: start;
  }
  .share { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-hero { grid-template-columns: 1fr; }
  .pa-ring { width: 86px; height: 86px; justify-self: center; }
  .pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-accuracy { grid-template-columns: 1fr; }
  .pa-chart-grid { grid-template-columns: 1fr; }
  .pa-pie-wrap { grid-template-columns: 1fr; justify-items: center; }
  .pa-legend { width: 100%; }
  .pa-bars { gap: 6px; }
  .pa-bar__col { height: 92px; max-width: 32px; }
  .pa-score { grid-template-columns: auto auto minmax(0, 1fr); }
  .pa-score strong { grid-column: 2 / -1; }
  .push-card { padding: 13px; }
  .push-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .push-actions { display: grid; grid-template-columns: 1fr; }
  .push-btn { width: 100%; }
  .fx-team__crest { width: 48px; height: 48px; }

  /* Pitch: numbers only (names collide at this width); taller for spacing */
  .pitch { aspect-ratio: 3 / 4; }
  .pitch__name { display: none; }
  .pitch__pl { width: 36px; }
  .pitch__shirt { width: 34px; height: 32px; }
  .statbar { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; }
  .statbar__h, .statbar__a { font-size: 0.86rem; }
  .ev { grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); }
}

/* ============================================================================
   Prediction game: leaderboard, predict bars, auth (OTP) modal, profile
   ========================================================================== */

/* ---- Nav auth entry -------------------------------------------------------- */
.nav__link--auth {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--brand-soft);
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__link--auth.is-user { color: var(--gold-soft); }

/* ---- Prediction intro banner ----------------------------------------------- */
.pred-banner {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-1);
  box-shadow: var(--glow-brand);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pred-banner:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(2, 6, 23, 0.55), var(--glow-brand); }
.pred-banner:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }

.pred-banner__img {
  display: block;
  width: 100%;
  aspect-ratio: 601 / 348;
  max-height: 340px;
  object-fit: cover;
  object-position: center 30%;
}

/* very faint blue theme tint on top + a soft navy scrim at the bottom so the
   white caption stays readable over the busy artwork */
.pred-banner__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(10, 24, 66, 0.86) 0%, rgba(12, 28, 78, 0.18) 45%, rgba(12, 28, 78, 0) 60%),
    linear-gradient(180deg, rgba(47, 107, 255, 0.07) 0%, rgba(47, 107, 255, 0.02) 100%);
}

.pred-banner__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(14px, 3vw, 28px);
  color: #eaf2ff;
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  text-align: center;
  -webkit-text-stroke: 0.6px rgba(180, 210, 255, 0.7);
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(79, 140, 255, 0.95),
    0 0 22px rgba(47, 107, 255, 0.85),
    0 0 40px rgba(47, 107, 255, 0.6);
}

/* ---- Prediction scoring guide modal ---------------------------------------- */
.score-guide {
  display: grid;
  gap: 14px;
}

.score-guide__hero {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(233, 198, 104, 0.28);
  border-radius: var(--r-md);
  background:
    radial-gradient(360px 180px at 90% -30%, rgba(233, 198, 104, 0.15), transparent 70%),
    linear-gradient(135deg, rgba(47, 107, 255, 0.16), rgba(255, 255, 255, 0.035));
}

.score-guide__badge {
  justify-self: start;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(233, 198, 104, 0.42);
  background: rgba(233, 198, 104, 0.09);
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.score-guide__hero p,
.score-prize p,
.score-example p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.9;
}

.score-prize {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(233, 198, 104, 0.42);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(180px 110px at 18% 10%, rgba(255, 255, 255, 0.16), transparent 68%),
    radial-gradient(260px 170px at 85% 25%, rgba(233, 198, 104, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(18, 31, 78, 0.92), rgba(9, 14, 35, 0.96));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.score-prize__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.score-prize__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(233, 198, 104, 0.46);
  background: rgba(233, 198, 104, 0.11);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.score-prize__tag svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.score-prize h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 3.6vw, 1.85rem);
  line-height: 1.45;
}

.score-prize__media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 50% 55%, rgba(233, 198, 104, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.045);
}

.score-prize__media img {
  display: block;
  width: min(100%, 190px);
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45));
}

.score-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background:
    radial-gradient(320px 160px at 85% -30%, rgba(79, 140, 255, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.025);
}

.score-section--roadmap {
  background:
    radial-gradient(320px 160px at 15% -30%, rgba(52, 210, 127, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.025);
}

.score-section__head {
  display: grid;
  gap: 5px;
}

.score-section__head h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}

.score-section__head p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.85;
}

.score-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-path {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(140, 165, 230, 0.14);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.score-path__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.score-path__tag {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(233, 198, 104, 0.28);
  background: rgba(233, 198, 104, 0.08);
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 900;
}

.score-path h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.score-path p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.75;
}

.score-path ul {
  display: grid;
  gap: 5px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.score-path li {
  position: relative;
  padding-inline-start: 14px;
  color: var(--text-faint);
  font-size: 0.74rem;
  line-height: 1.7;
}

.score-path li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 12px rgba(79, 140, 255, 0.7);
}

.score-roadmap {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: score-roadmap;
}

.score-roadmap__step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(52, 210, 127, 0.16);
  border-radius: var(--r-md);
  background: rgba(52, 210, 127, 0.045);
}

.score-roadmap__step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 23px;
  top: calc(100% - 1px);
  width: 2px;
  height: 10px;
  background: linear-gradient(180deg, rgba(52, 210, 127, 0.45), transparent);
}

.score-roadmap__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(52, 210, 127, 0.32), rgba(52, 210, 127, 0.12));
  color: #bdf2d4;
  font-weight: 900;
}

.score-roadmap__step b {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
}

.score-roadmap__step p {
  margin: 4px 0 0;
  color: var(--text-faint);
  font-size: 0.75rem;
  line-height: 1.75;
}

.score-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface-1);
}

.score-rule:first-child {
  grid-column: 1 / -1;
  min-height: 0;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.16), rgba(255, 255, 255, 0.035));
}

.score-rule__points {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--glow-brand);
}

.score-rule b {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.score-rule p {
  margin: 5px 0 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.75;
}

.score-example {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(52, 210, 127, 0.28);
  background: rgba(52, 210, 127, 0.07);
}

.score-example__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #bdf2d4;
  font-weight: 800;
}

.score-example__head b {
  color: var(--gold-soft);
  font-size: 1.15rem;
}

.score-example__board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.score-example__board span {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.score-note {
  padding: 11px 13px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.025);
}

.score-cta {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
  box-shadow: var(--glow-brand);
}

/* ---- Leaderboard ----------------------------------------------------------- */
.lb-lead { margin: 0 0 16px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.9; }

.lb { display: grid; gap: 16px; }

.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.lb-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 16px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 32, 74, 0.6), rgba(8, 13, 33, 0.7));
  text-align: center;
  min-width: 0;
}

.lb-card--1 {
  border-color: rgba(233, 198, 104, 0.45);
  background:
    radial-gradient(320px 160px at 50% -20%, rgba(233, 198, 104, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(20, 32, 74, 0.7), rgba(8, 13, 33, 0.78));
  padding-top: 22px;
  padding-bottom: 20px;
}
.lb-card--2 { border-color: rgba(206, 216, 240, 0.3); }
.lb-card--3 { border-color: rgba(205, 137, 80, 0.35); }

.lb-medal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 900;
  color: #0a1024;
  background: linear-gradient(180deg, #cdd7f0, #98a6c8);
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.45);
}
.lb-card--1 .lb-medal { width: 40px; height: 40px; background: linear-gradient(180deg, #f4d98c, var(--gold)); }
.lb-card--3 .lb-medal { background: linear-gradient(180deg, #d9a06b, #b97a45); }

.lb-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.92rem;
}

.lb-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(47, 107, 255, 0.14);
  color: #cfe0ff;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-points { font-size: 0.8rem; color: var(--text-dim); }
.lb-points b { font-size: 1.3rem; color: var(--text); }
.lb-card--1 .lb-points b { color: var(--gold-soft); }
.lb-sub { font-size: 0.7rem; color: var(--text-faint); }

.lb-rows { display: grid; gap: 8px; }

.lb-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.lb-row.is-me,
.lb-card.is-me { border-color: var(--border-strong); box-shadow: var(--glow-brand); }

.lb-row__rank { font-weight: 800; color: var(--text-dim); }
.lb-row__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
}
.lb-row__stat { font-size: 0.76rem; color: var(--text-faint); }
.lb-row__pts { font-weight: 900; font-size: 1.05rem; color: var(--brand-soft); }

.lb-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--text-dim);
}
.lb-empty p { margin: 0; }
.lb-cta { display: flex; justify-content: center; }

/* ---- Predict bar (inside match cards) -------------------------------------- */
.predict {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px dashed var(--border-soft);
}

.predict__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.predict__chip.is-wait { color: var(--text-faint); }
.predict__chip.is-zero { opacity: 0.75; }
.predict__chip.is-ok { border-color: var(--border-strong); color: var(--text); }
.predict__chip.is-good { border-color: rgba(47, 107, 255, 0.45); background: rgba(47, 107, 255, 0.1); color: #cfe0ff; }
.predict__chip.is-gold { border-color: rgba(233, 198, 104, 0.5); background: rgba(233, 198, 104, 0.08); color: var(--gold-soft); }

.predict__btn {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}
.predict__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.predict__btn--ghost { background: var(--surface-1); border-color: var(--border); color: var(--text-dim); }
.predict__btn--ghost:hover { color: var(--text); border-color: var(--border-strong); filter: none; }
.predict__btn--details {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
  color: var(--text-dim);
}
.predict__btn--details:hover {
  color: var(--text);
  border-color: var(--border-strong);
  filter: none;
}
.predict__btn--disabled,
.predict__btn:disabled {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
  color: var(--text-faint);
  cursor: not-allowed;
  opacity: 0.82;
}
.predict__btn--disabled:hover,
.predict__btn:disabled:hover {
  filter: none;
  transform: none;
  color: var(--text-faint);
  border-color: var(--border);
}

.predict__editor { display: flex; align-items: center; gap: 10px; direction: ltr; }
.predict__sep { color: var(--text-faint); font-weight: 800; }

.step { display: grid; justify-items: center; gap: 3px; }
.step__row { display: flex; align-items: center; gap: 7px; }

.step__btn {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.step__btn:hover { background: var(--surface-3); border-color: var(--border-strong); }

.step__val { min-width: 20px; text-align: center; font-size: 1.05rem; font-weight: 900; }

.step__team {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-faint);
}

.predict__err { width: 100%; text-align: center; color: #ffb3bd; font-size: 0.74rem; }

/* ---- Hero predict CTA (inside the featured card) --------------------------- */
.hero-predict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero-predict__btn {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--glow-brand);
  transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}
.hero-predict__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hero-predict__btn--ghost {
  padding: 9px 16px;
  background: var(--surface-1);
  border-color: var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  box-shadow: none;
}
.hero-predict__btn--ghost:hover { color: var(--text); border-color: var(--border-strong); filter: none; }
.hero-stats__btn { display: inline-flex; align-items: center; gap: 8px; }
.hero-stats__btn svg { width: 16px; height: 16px; }
.hero-predict__chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(47, 107, 255, 0.1);
  color: #cfe0ff;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---- Predict modal — scoreboard ------------------------------------------- */
.pm { display: grid; gap: 18px; padding: 6px 2px 2px; }

.pm__board {
  padding: clamp(16px, 3vw, 24px) clamp(8px, 2vw, 16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(440px 200px at 50% -16%, rgba(47, 107, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(20, 32, 74, 0.55), rgba(8, 13, 33, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* teams row and scores row share the same 3-column grid so each crest sits
   directly above its stepper, with the dash in the fixed centre column */
.pm__teams,
.pm__scores {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(28px, 7vw, 44px) minmax(0, 1fr);
  gap: clamp(6px, 2vw, 16px);
}
.pm__teams { align-items: end; margin-bottom: clamp(12px, 2.4vw, 18px); }
.pm__scores { align-items: center; }

.pm__team { display: grid; justify-items: center; gap: 9px; min-width: 0; }
.pm__crestwrap {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(140, 165, 230, 0.12), 0 10px 24px rgba(2, 6, 23, 0.45);
}
.pm__crest { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(2, 6, 23, 0.5)); }
.pm__name {
  max-width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm__step { display: grid; justify-items: center; gap: 10px; }

.pm__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease), filter 0.16s var(--ease);
}
.pm__btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.pm__btn:active { transform: scale(0.9); }
.pm__btn--inc {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
}
.pm__btn--inc:hover { filter: brightness(1.1); background: linear-gradient(180deg, var(--brand-bright), var(--brand)); }

.pm__num {
  min-width: 1.4em;
  text-align: center;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(79, 140, 255, 0.5);
}

.pm__dash {
  align-self: center;
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--brand-soft);
  opacity: 0.6;
}

.pm__save { width: 100%; }

/* Knockout rules note + penalty-qualifier picker inside the predict modal. */
.pm__note {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(80, 140, 255, 0.3);
  background: rgba(40, 110, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.95;
}
.pm__note b { color: var(--text); font-weight: 800; }

.pm__advance {
  margin: 14px 0 4px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px dashed var(--brand);
  background: rgba(40, 110, 255, 0.06);
}
.pm__advance-q { margin-bottom: 10px; font-size: 0.86rem; font-weight: 800; color: var(--text); text-align: center; }
.pm__advance-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm__adv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), transform 0.16s var(--ease);
}
.pm__adv:hover { transform: translateY(-1px); }
.pm__adv.is-on {
  border-color: var(--brand);
  background: rgba(40, 110, 255, 0.16);
  box-shadow: var(--glow-brand);
}
.pm__adv-crest { border-radius: 4px; object-fit: contain; }

.ph-pen { color: var(--text-faint); font-size: 0.82em; white-space: nowrap; }

/* Back-to-list link shown when the predict modal is opened from the list */
.pm__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  padding: 6px 12px 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-dim);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.pm__back:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
/* The chevron icon points the natural "forward" way; flip it for RTL "back" */
.pm__back svg { width: 16px; height: 16px; transform: scaleX(-1); }

/* ---- Desktop neon quick-predict button -------------------------------------- *
 * Hidden on mobile (the nav already has a CTA there); on desktop it floats and
 * blinks to pull the eye toward quick predictions. */
.predict-fab { display: none; }

@media (min-width: 900px) {
  .predict-fab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    position: fixed;
    inset-block-end: 26px;
    inset-inline-start: 26px;
    z-index: 60;
    padding: 14px 26px;
    border-radius: 999px;
    border: 2px solid #39ff9c;
    background: linear-gradient(180deg, rgba(6, 38, 24, 0.92), rgba(4, 26, 17, 0.94));
    color: #d6ffe9;
    font-family: inherit;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(57, 255, 156, 0.55);
    box-shadow:
      0 0 0 1px rgba(57, 255, 156, 0.4),
      0 0 10px rgba(57, 255, 156, 0.32),
      0 12px 30px rgba(0, 0, 0, 0.45);
    animation: predict-fab-blink 1.2s ease-in-out infinite;
    transition: transform 0.15s ease;
  }
  .predict-fab[hidden] { display: none; }
  .predict-fab:hover {
    transform: translateY(-2px) scale(1.04);
    animation-play-state: paused;
    box-shadow:
      0 0 0 1px rgba(57, 255, 156, 0.65),
      0 0 18px rgba(57, 255, 156, 0.55),
      0 0 32px rgba(57, 255, 156, 0.35),
      0 12px 30px rgba(0, 0, 0, 0.45);
  }
  .predict-fab:focus-visible { outline: 2px solid #b6ffd6; outline-offset: 3px; }
  .predict-fab__spark { font-size: 1.15em; filter: drop-shadow(0 0 4px rgba(57, 255, 156, 0.7)); }
}

@keyframes predict-fab-blink {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(57, 255, 156, 0.35),
      0 0 8px rgba(57, 255, 156, 0.25),
      0 12px 30px rgba(0, 0, 0, 0.45);
    opacity: 0.92;
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(57, 255, 156, 0.6),
      0 0 16px rgba(57, 255, 156, 0.5),
      0 0 28px rgba(57, 255, 156, 0.3),
      0 12px 30px rgba(0, 0, 0, 0.45);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .predict-fab,
  .nav__cta { animation: none; }
}

/* ---- Predictable-matches list modal ----------------------------------------- */
.pl { display: grid; gap: 10px; padding: 4px 2px 2px; }

.pl-row {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 32, 74, 0.4), rgba(8, 13, 33, 0.5));
}

.pl-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pl-row__when { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); }
.pl-row__live {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffd2d8;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 77, 99, 0.14);
  border: 1px solid rgba(255, 77, 99, 0.4);
}
.pl-row__pred { font-size: 0.78rem; color: var(--text-faint); }
.pl-row__pred.is-set { color: var(--gold-soft); font-weight: 700; }
.pl-row__pred .num { font-variant-numeric: tabular-nums; }

.pl-row__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.pl-row__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pl-row__team--away { flex-direction: row-reverse; text-align: left; }
.pl-row__crest { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.pl-row__name {
  font-weight: 700;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-row__vs { font-weight: 800; color: var(--brand-soft); opacity: 0.6; }

.pl-row__btn {
  grid-column: 1 / -1;
  margin-top: 10px;
  width: 100%;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-cyan));
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.3);
  cursor: pointer;
  transition: filter 0.16s var(--ease);
}
.pl-row__btn:hover { filter: brightness(1.06); }
.pl-row__btn--edit {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.pl-row__btn--edit:hover { filter: none; background: var(--surface-3); }

.pl-empty { padding: 28px 16px; text-align: center; color: var(--text-dim); }
.pl-empty p { margin: 0 0 6px; }
.pl-empty__hint { font-size: 0.8rem; color: var(--text-faint); }

/* ---- Auth (OTP) modal -------------------------------------------------------- */
.auth { display: grid; gap: 13px; padding: 4px 2px 2px; }
.auth__lead { margin: 0; color: var(--text-dim); font-size: 0.88rem; line-height: 1.9; }
.auth__lead b { color: var(--text); }
.auth__phone {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
}

.auth__input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: center;
  direction: ltr;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth__input::placeholder { color: var(--text-faint); }
.auth__input:focus { outline: none; border-color: var(--brand); box-shadow: var(--glow-brand); }
.auth__input--code { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.4em; }

.auth__btn {
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 0;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}
.auth__btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.auth__btn[disabled] { opacity: 0.55; cursor: default; filter: none; transform: none; }
.auth__btn--danger { margin-top: 12px; background: linear-gradient(180deg, #ff5d70, #d23a4e); }

.auth__row { display: flex; justify-content: space-between; gap: 10px; }

.auth__link {
  padding: 4px 2px;
  background: none;
  border: 0;
  color: var(--brand-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.auth__link:hover { color: #cfe0ff; text-decoration: underline; }
.auth__link[disabled] { color: var(--text-faint); cursor: default; text-decoration: none; }

.auth__err {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 77, 99, 0.35);
  background: rgba(255, 77, 99, 0.1);
  color: #ffd2d8;
  font-size: 0.8rem;
  text-align: center;
}

/* ---- Invite codes ------------------------------------------------------------ */
.auth__opt {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  text-align: right;
}
.auth__hint { margin: 0; font-size: 0.74rem; line-height: 1.8; color: var(--text-faint); text-align: right; }
.auth__hint--dev {
  padding: 8px 10px;
  border: 1px solid rgba(101, 225, 163, 0.28);
  border-radius: var(--r-sm);
  background: rgba(101, 225, 163, 0.08);
  color: #b9f7d2;
}
.auth__hint--dev b { color: #fff; letter-spacing: 0.12em; }

.auth__invite {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
}

.auth__input--invite {
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-weight: 800;
  font-size: 1.2rem;
  /* the trailing letter-spacing pushes glyphs left of center; nudge back */
  padding-inline-start: calc(16px + 0.45em);
}

.invite-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--surface-1);
}
.invite-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.invite-card__label { font-size: 0.98rem; font-weight: 900; color: var(--text); }
.invite-card__meta { font-size: 0.82rem; color: var(--text-dim); font-weight: 800; }
.invite-card__lead {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.9;
}
.invite-card__lead b { color: var(--text); font-weight: 900; }

.invite-card__codebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 2px dashed var(--brand);
  background: rgba(47, 107, 255, 0.10);
}
.invite-card__code {
  direction: ltr;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  letter-spacing: 0.32em;
  color: var(--text);
  padding-inline-start: 0.32em;
}
.invite-card__copy {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 46px;
  font-weight: 900;
}
.invite-card__share-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.8;
  text-align: center;
}

.invite-card__redeem {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.invite-card__row { display: flex; align-items: stretch; gap: 8px; }
.invite-card__row .auth__input--invite { flex: 1 1 auto; }
.invite-card__apply { flex: 0 0 auto; padding-inline: 18px; }
.invite-card__done {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(70, 200, 130, 0.35);
  background: rgba(70, 200, 130, 0.1);
  color: #b6f0cf;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

/* A code carried in from an invite link — highlight that it's already set. */
.auth__invite.is-prefilled { border-top-color: var(--brand); }
.auth__invite.is-prefilled .auth__input--invite {
  border-color: var(--brand);
  box-shadow: var(--glow-brand);
}

/* ---- Share buttons (welcome screen) ----------------------------------------- */
.share {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.share__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), filter 0.16s var(--ease), border-color 0.16s var(--ease);
}
.share__btn svg { display: block; }
.share__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.share__btn--tg { color: #2aabee; border-color: rgba(42, 171, 238, 0.4); }
.share__btn--wa { color: #25d366; border-color: rgba(37, 211, 102, 0.4); }
.share__btn--ig { color: #e1306c; border-color: rgba(225, 48, 108, 0.4); }
.share__btn--sms { color: var(--brand-soft); border-color: rgba(80, 140, 255, 0.4); }
.share__copy { display: block; width: 100%; margin-top: 2px; text-align: center; }

/* ---- Profile ----------------------------------------------------------------- */
.profile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.profile__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 800;
}
.profile__phone {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font);
  letter-spacing: 0;
}

.profile__edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}
.profile__edit .auth__btn { padding: 10px 16px; }

.profile-tabs {
  flex: 0 0 auto;
}

.profile-tab {
  min-width: 0;
}

.profile-modal__body {
  flex: 1 1 auto;
  min-height: 0;
}

.profile-panel {
  display: grid;
  gap: 14px;
}

.profile-panel .stat-grid {
  margin-bottom: 2px;
}

.profile-points {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(95, 133, 255, 0.24);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.11), rgba(101, 225, 163, 0.05)),
    var(--surface-1);
}

.profile-points__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-points__head .squad-group__title {
  margin: 0;
}

.profile-points__total {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(241, 209, 122, 0.32);
  border-radius: var(--r-pill);
  color: var(--gold);
  background: rgba(241, 209, 122, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.profile-points__list {
  display: grid;
  gap: 8px;
}

.profile-points__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
}

.profile-points__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-points__meta b {
  overflow: hidden;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-points__meta span {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.7;
}

.profile-points__score {
  color: var(--brand-soft);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.profile-points__bar {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
}

.profile-points__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand-cyan));
}

.profile-points__row.is-negative .profile-points__score {
  color: var(--danger);
}

.profile-points__row.is-negative .profile-points__bar i {
  background: linear-gradient(90deg, var(--danger), #ff9a9a);
}

.profile-modal__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex: 0 0 auto;
  padding: 12px clamp(14px, 2.4vw, 20px);
  border-top: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(7, 11, 28, 0.86), rgba(7, 11, 28, 0.98)),
    rgba(7, 11, 28, 0.98);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.18);
}

.profile-modal__logout {
  width: 100%;
  margin: 0;
}

.push-card {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(95, 133, 255, 0.32);
  border-radius: var(--r-md);
  background:
    radial-gradient(220px 120px at 15% 0%, rgba(255, 77, 99, 0.20), transparent 70%),
    linear-gradient(135deg, rgba(47, 107, 255, 0.16), rgba(101, 225, 163, 0.07)),
    var(--surface-1);
  box-shadow: 0 16px 40px rgba(3, 8, 24, 0.28);
}
.push-card.is-on {
  border-color: rgba(101, 225, 163, 0.48);
  box-shadow: 0 18px 46px rgba(47, 107, 255, 0.18);
}
.push-card.is-disabled { opacity: 0.82; }
.push-card__glow {
  position: absolute;
  inset-inline-end: -42px;
  top: -48px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 225, 163, 0.28), transparent 68%);
  pointer-events: none;
}
.push-card__head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.push-card__head h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
}
.push-card__head p {
  margin: 3px 0 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.8;
}
.push-orb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #ff5369, #4f8cff 70%, #65e1a3);
  box-shadow: 0 12px 28px rgba(255, 77, 99, 0.25);
}
.push-orb svg { width: 20px; height: 20px; }
.push-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.push-btn {
  min-height: 38px;
  padding: 8px 15px;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #65e1a3, #2f9f6a);
  color: #06121a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.push-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.push-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}
.push-btn--ghost,
.push-btn--soft {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}
.push-btn--soft { color: #cfe0ff; }
.push-msg {
  position: relative;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.76rem;
}
.push-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.push-toggle {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.push-toggle input { accent-color: var(--brand-bright); }
.push-toggle span { font-size: 1rem; line-height: 1; }
.push-toggle:has(input:checked) {
  border-color: rgba(101, 225, 163, 0.46);
  background: rgba(101, 225, 163, 0.09);
  color: var(--text);
}
.push-scope {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.76rem;
}
.push-scope label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.045);
}
.push-scope input { accent-color: var(--brand-bright); }
.push-preview {
  position: relative;
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.push-preview__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
}
.push-preview__head b {
  font-size: 0.78rem;
  font-weight: 900;
}
.push-preview__head span {
  color: var(--text-faint);
  font-size: 0.66rem;
}
.push-preview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 14, 34, 0.72);
  color: var(--text);
  font: inherit;
  text-align: start;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.push-preview-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.18);
  color: #cfe0ff;
  font-weight: 900;
}
.push-preview-card--goal .push-preview-card__icon {
  background: rgba(255, 77, 99, 0.20);
  color: #ffd2d8;
}
.push-preview-card--halftime .push-preview-card__icon {
  background: rgba(237, 211, 128, 0.16);
  color: #f4e6a5;
}
.push-preview-card--fulltime .push-preview-card__icon {
  background: rgba(101, 225, 163, 0.15);
  color: #b9f7d2;
}
.push-preview-card__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.push-preview-card__copy b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 900;
}
.push-preview-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
  font-size: 0.68rem;
}
.push-preview-card__time {
  align-self: start;
  color: var(--text-faint);
  font-size: 0.62rem;
  white-space: nowrap;
}

.ph-list { display: grid; gap: 7px; margin-top: 10px; margin-bottom: 4px; }

.ph-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: var(--surface-1);
  font-size: 0.82rem;
}
.ph-teams { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-weight: 600; }
.ph-pick { font-weight: 800; }
.ph-res { color: var(--text-faint); }

.pts-pill {
  display: inline-block;
  min-width: 34px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(47, 107, 255, 0.16);
  color: #cfe0ff;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}
.pts-pill.is-gold { background: rgba(233, 198, 104, 0.12); border-color: rgba(233, 198, 104, 0.45); color: var(--gold-soft); }
.pts-pill.is-good { background: rgba(47, 107, 255, 0.24); }
.pts-pill.is-zero { background: var(--surface-2); border-color: var(--border); color: var(--text-faint); }
.pts-pill.is-wait { background: var(--surface-2); border-color: var(--border); color: var(--text-dim); }

.ph-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
}

.ph-pager__btn {
  min-width: 74px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.ph-pager__btn:hover:not(:disabled) { border-color: rgba(95, 133, 255, 0.5); background: rgba(47, 107, 255, 0.16); }
.ph-pager__btn:disabled { cursor: default; opacity: 0.42; }
.ph-pager__meta {
  min-width: 86px;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

/* ---- Push notification nudge ----------------------------------------------- */
.push-nudge {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
  padding: 12px 46px 12px 12px;
  border: 1px solid rgba(101, 225, 163, 0.32);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.22), rgba(101, 225, 163, 0.12)),
    rgba(9, 16, 38, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.push-nudge.is-visible { opacity: 1; transform: translateY(0); }
.push-nudge__close {
  position: absolute;
  right: 10px;
  top: 7px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.push-nudge__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.push-nudge__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(233, 198, 104, 0.22), rgba(47, 107, 255, 0.22));
  font-size: 1.15rem;
}
.push-nudge__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-inline-start: 12px;
}
.push-nudge__copy b { color: var(--text); font-size: 0.88rem; font-weight: 900; }
.push-nudge__copy span,
.push-nudge__copy small {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.75;
}
.push-nudge__cta {
  align-self: end;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-cyan));
  color: #06112b;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

/* ---- Prediction game: mobile tweaks ----------------------------------------- */
@media (max-width: 560px) {
  .lb-podium { gap: 7px; }
  .lb-card { padding: 12px 6px; gap: 6px; }
  .lb-badge { padding: 2px 7px; font-size: 0.6rem; }
  .lb-points b { font-size: 1.1rem; }
  .lb-row { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 9px 11px; }
  .lb-row__stat { display: none; }
  .score-prize { grid-template-columns: 1fr; }
  .score-prize__media { min-height: 130px; }
  .score-prize__media img { max-height: 150px; }
  .score-section { padding: 12px; border-radius: var(--r-md); }
  .score-section__head h3 { font-size: 0.98rem; }
  .score-paths,
  .score-rules,
  .score-example__board { grid-template-columns: 1fr; }
  .score-path { padding: 12px; }
  .score-path__head { align-items: flex-start; }
  .score-rule { min-height: 0; }
  .score-rule__points { min-width: 38px; height: 32px; }
  .score-roadmap__step { padding: 10px; }
  .step__team { max-width: 64px; }
  .predict { gap: 6px; }
  .ph-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .ph-res { display: none; }
  .ph-pager { gap: 7px; }
  .ph-pager__btn { min-width: 62px; padding-inline: 10px; }
  .push-nudge {
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    width: auto;
    padding: 10px 40px 10px 10px;
  }
  .push-nudge__icon { width: 32px; height: 32px; border-radius: 12px; font-size: 1rem; }
  .push-nudge__copy { padding-inline-start: 0; }
  .push-nudge__copy b { font-size: 0.8rem; }
  .push-nudge__copy span,
  .push-nudge__copy small { font-size: 0.68rem; line-height: 1.65; }
  .push-nudge__cta {
    grid-column: 2;
    justify-self: start;
    min-height: 30px;
    padding: 6px 11px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
