/* ==========================================================================
   MetaGold Cup — landing page
   Values transcribed from the approved design; the original carried them as
   inline style attributes, they live in classes here so the page can be
   cached, and so the CSP does not need 'unsafe-inline' for scripts.
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-arabic.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF,
                 U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-latin.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F;
}

:root {
  --fg:        #dfdfda;
  --muted:     #aeb0a3;
  --label:     #9aa08e;
  --brand:     #bb4033;
  --brand-soft:#e4b3ad;
  --green:     #4da06a;
  --green-lit: #8fe6a8;
  --red-lit:   #f2a39a;
  --gold:      #e6c06a;
  --gold-2:    #d9a441;
  --bg:        #2c2c29;
  --bg-alt:    #292e26;
  --hero-bg:   #26261f;
  --surface:   #34342f;

  --line:      rgba(223,223,218,.1);
  --line-2:    rgba(223,223,218,.16);
  --fill:      rgba(223,223,218,.04);
  --fill-2:    rgba(223,223,218,.07);
  --panel:     rgba(44,44,41,.55);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

/* overflow-x must be on the root too: on body alone the html element remains
   the scroll container and the page still shifts sideways on narrow screens. */
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  overflow-x: hidden; max-width: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  /* the mown-pitch stripes */
  background: repeating-linear-gradient(90deg, #2c2c29 0 66px, #292e26 66px 132px);
  color: var(--fg);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- keyframes ----------------------------------------------------------- */
@keyframes mgUp       { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Movement only — never opacity. Content that uses this stays readable even if
   the animation clock is throttled or never starts. */
@keyframes mgRise     { from { transform: translateY(18px); } to { transform: none; } }
@keyframes mgPulse    { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes mgBlink    { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes mgBob      { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mgBallSpin { to { transform: rotate(360deg); } }
@keyframes mgSway     { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes mgFigRun   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mgLeg      { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes mgArm      { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
@keyframes mgTrophy   { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- shared section furniture -------------------------------------------- */
.section      { padding: clamp(56px, 8vw, 96px) 20px 20px; }
.section-tight{ padding: clamp(44px, 7vw, 84px) 20px 8px; }
.wrap         { max-width: 1200px; margin: 0 auto; }
.wrap-md      { max-width: 1160px; margin: 0 auto; }
.wrap-sm      { max-width: 980px;  margin: 0 auto; }
.wrap-xs      { max-width: 860px;  margin: 0 auto; }

/* Section headings are start-aligned, matching the design; only the hero and
   the video title are centred. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; letter-spacing: .12em; font-weight: 700;
  color: var(--brand); margin-bottom: 8px;
}
.eyebrow svg { width: 15px; height: 15px; flex: none; }

.sec-title {
  margin-bottom: 10px; font-size: clamp(26px, 5vw, 44px);
  font-weight: 900; color: var(--fg);
}
.sec-intro {
  margin-bottom: 28px; max-width: 620px;
  font-size: 15px; color: var(--muted); text-wrap: pretty;
}
.sec-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.btn-cta {
  display: inline-block; background: var(--brand); color: var(--fg);
  font-weight: 800; font-size: clamp(16px, 2.4vw, 19px);
  padding: 16px 42px; border-radius: 14px;
  box-shadow: 0 14px 44px rgba(187,64,51,.4);
  transition: transform .2s, filter .2s;
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.12); }

/* ==========================================================================
   "Coming soon" veil — blurs a block and badges it, without collapsing it
   ========================================================================== */
.soon-wrap { position: relative; }
.soon-wrap.is-soon > *:not(.soon-veil) {
  filter: blur(5px) saturate(.65);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}
.soon-veil {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.soon-badge {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 30px; border-radius: 18px; text-align: center;
  background: rgba(36,30,21,.86); backdrop-filter: blur(6px);
  border: 1px solid rgba(230,192,106,.45);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.soon-badge b { font-size: 17px; font-weight: 900; color: var(--gold); }
.soon-badge span { font-size: 12px; color: var(--muted); max-width: 260px; line-height: 1.7; }

/* ==========================================================================
   Maintenance notice + preview bar
   ========================================================================== */
body.maintenance {
  background: radial-gradient(ellipse 120% 70% at 50% -10%, rgba(187,64,51,.2), transparent 62%),
              repeating-linear-gradient(90deg, #2c2c29 0 66px, #292e26 66px 132px);
  min-height: 100vh;
}
.mt-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.mt-card {
  width: 100%; max-width: 460px; text-align: center;
  background: rgba(44,44,41,.82); backdrop-filter: blur(14px);
  border: 1px solid rgba(223,223,218,.1); border-radius: 26px;
  padding: 40px 30px 34px; box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.mt-mark { height: 46px; width: auto; margin: 0 auto 22px; opacity: .95; }
.mt-ball { width: 62px; height: 62px; margin: 0 auto 22px; animation: mgRollBall 3.4s ease-in-out infinite; }
.mt-ball svg { width: 100%; height: 100%; display: block; }
.mt-card h1 {
  font-size: clamp(24px, 5vw, 32px); font-weight: 900;
  color: var(--fg); margin-bottom: 12px; text-wrap: balance;
}
.mt-card p { font-size: 15px; color: var(--muted); line-height: 1.9; text-wrap: pretty; }
.mt-eta {
  margin-top: 22px; padding: 12px 16px; border-radius: 14px;
  background: rgba(223,223,218,.05); border: 1px solid rgba(223,223,218,.09);
}
.mt-eta span { display: block; font-size: 11.5px; color: var(--label); margin-bottom: 3px; }
.mt-eta b { font-size: 14px; font-weight: 800; color: var(--brand-soft); }
.mt-dots { display: flex; gap: 7px; justify-content: center; margin-top: 26px; }
.mt-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  animation: mgDotPulse 1.4s ease-in-out infinite;
}
.mt-dots i:nth-child(2) { animation-delay: .18s; }
.mt-dots i:nth-child(3) { animation-delay: .36s; }

@keyframes mgRollBall {
  0%, 100% { transform: translateX(-14px) rotate(-70deg); }
  50%      { transform: translateX(14px)  rotate(70deg); }
}
@keyframes mgDotPulse {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* Sticky reminder that what you are looking at is not public yet. */
.preview-bar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; flex-wrap: wrap;
  background: #d8be7e; color: #201f1c;
  font-size: 12.5px; font-weight: 800;
}
.preview-bar a { color: #201f1c; text-decoration: underline; font-weight: 800; }
.preview-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #bb4033;
  animation: mgBlink 1.3s infinite; flex: none;
}
@media (max-width: 520px) { .preview-bar .preview-text { flex: 1 1 100%; text-align: center; } }

/* --- pitch divider (halfway line with a ball that travels on scroll) ------ */
.divider {
  position: relative; max-width: 1160px; margin: 30px auto 4px; padding: 0 20px;
}
.divider .dash {
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(223,223,218,.34) 0 11px, transparent 11px 22px);
}
.divider .circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border: 2px solid rgba(223,223,218,.32); border-radius: 50%;
}
.divider .spot {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 50%; background: rgba(187,64,51,.75);
}
.divider .ball {
  position: absolute; top: 50%; left: 0; width: 22px; height: 22px; z-index: 2;
  transform: translate(-50%, -50%); will-change: left, transform;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.5));
}
.divider .ball svg { width: 100%; height: 100%; }

/* The goal stands at the far (left, in RTL flow) end, mouth open toward the
   incoming ball, and the ball comes to rest inside it. */
.divider .goal {
  position: absolute; top: 50%; left: 0; transform: translate(0, -50%);
  width: 52px; height: 38px; opacity: .55; transition: opacity .3s, transform .3s;
  transform-origin: 26px 50%;
}
.divider .goal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.divider.is-scored .goal { opacity: 1; transform: translate(0, -50%) scale(1.12); }
.divider.is-scored .goal .net { animation: mgNetShake .5s ease-out; }
@keyframes mgNetShake {
  0%, 100% { transform: translateX(0); }
  30%      { transform: translateX(-3px); }
  60%      { transform: translateX(2px); }
}

/* Shouts: hidden until the ball trips them. */
.divider .cue {
  position: absolute; top: 50%; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 900;
  opacity: 0; pointer-events: none;
  transform: translate(50%, -50%) scale(.6);
}
.divider .cue b { font-weight: 900; }
.divider .whistle {
  right: 50%; margin-top: -26px;
  background: rgba(36,30,21,.94); border: 1px solid rgba(230,192,106,.5); color: var(--gold);
}
.divider .goal-cue {
  left: 2%; right: auto; margin-top: -30px; transform: translate(0, -50%) scale(.6);
  background: var(--brand); border: 1px solid rgba(187,64,51,.7); color: var(--fg);
  font-size: 14px; letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(187,64,51,.5);
}
.divider .whistle.is-on { animation: mgCueWhistle 1.4s cubic-bezier(.22,1,.36,1) both; }
.divider .goal-cue.is-on { animation: mgCueGoal 1.4s cubic-bezier(.22,1,.36,1) both; }

@keyframes mgCueWhistle {
  0%   { opacity: 0; transform: translate(50%, -50%) scale(.6); }
  18%  { opacity: 1; transform: translate(50%, -50%) scale(1.06); }
  30%  { transform: translate(50%, -50%) scale(1); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translate(50%, -140%) scale(.95); }
}
@keyframes mgCueGoal {
  0%   { opacity: 0; transform: translate(0, -50%) scale(.5) rotate(-8deg); }
  16%  { opacity: 1; transform: translate(0, -50%) scale(1.22) rotate(3deg); }
  28%  { transform: translate(0, -50%) scale(1) rotate(-2deg); }
  40%  { transform: translate(0, -50%) scale(1.08) rotate(2deg); }
  55%  { transform: translate(0, -50%) scale(1) rotate(0); }
  78%  { opacity: 1; }
  100% { opacity: 0; transform: translate(0, -160%) scale(1); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(44,44,41,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(77,160,106,.34);
}
.site-header.is-static { position: relative; }
.site-header .bar {
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand b { font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.brand .pill {
  font-size: 11px; color: var(--muted); white-space: nowrap;
  border: 1px solid rgba(174,176,163,.35); border-radius: 999px; padding: 1px 9px;
}
.site-nav {
  display: flex; align-items: center; gap: 18px;
  margin-inline-start: auto; font-size: 13.5px;
}
.site-nav a { color: var(--muted); transition: color .18s; }
.site-nav a:hover { color: var(--fg); }
.header-cta {
  background: var(--brand); color: var(--fg); font-weight: 700; font-size: 13.5px;
  padding: 9px 18px; border-radius: 10px; white-space: nowrap; transition: filter .2s;
}
.header-cta:hover { filter: brightness(1.12); }

@media (max-width: 620px) {
  .site-nav { gap: 12px; font-size: 12.5px; order: 3; width: 100%;
              margin-inline-start: 0; justify-content: center; padding-top: 4px; }
  .header-cta { margin-inline-start: auto; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; text-align: center;
  padding: clamp(56px, 10vw, 120px) 20px 24px;
  overflow: hidden; background: var(--hero-bg);
}
.hero-ball {
  position: absolute; left: -46px; bottom: -34px; width: 224px; height: 224px;
  opacity: .07; z-index: 1; pointer-events: none;
  animation: mgBallSpin 46s linear infinite;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  filter: saturate(.55) brightness(.6);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(187,64,51,.42), rgba(187,64,51,.08) 55%, transparent 75%),
    linear-gradient(180deg, rgba(44,44,41,.55) 0%, rgba(44,44,41,.72) 55%, #2c2c29 100%);
}
.hero-crowd { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-line  { position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
              background: rgba(223,223,218,.42); pointer-events: none; }
.hero-circle{ position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%);
              pointer-events: none; opacity: .5; }
.hero-inner { position: relative; z-index: 2; max-width: 980px; margin: 0 auto;
              animation: mgRise .7s ease; }

.hero h1 {
  margin-bottom: 18px; font-size: clamp(40px, 9.5vw, 108px);
  font-weight: 900; line-height: 1.25; text-wrap: balance;
  text-shadow: 0 8px 60px rgba(187,64,51,.35);
}
.hero-sub {
  margin: 0 auto 36px; max-width: 620px;
  font-size: clamp(15px, 2.2vw, 19px); color: var(--muted); text-wrap: pretty;
}

/* --- countdown scoreboard ------------------------------------------------ */
.board-wrap { display: flex; justify-content: center; margin-bottom: 46px; }
.board {
  position: relative; display: inline-block; padding: 12px 18px 18px;
  border-radius: 20px; background: linear-gradient(180deg, #23231c 0%, #101010 100%);
  border: 1px solid rgba(0,0,0,.6);
  box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07),
              inset 0 0 0 3px rgba(0,0,0,.45);
}
.board::before {                       /* dot-matrix texture */
  content: ''; position: absolute; inset: 7px; border-radius: 14px; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 6px 6px; pointer-events: none;
}
.board .screw {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #666, #0d0d0d);
  box-shadow: inset 0 0 2px #000;
}
.board .screw.tl { top: 8px; left: 8px; }
.board .screw.tr { top: 8px; right: 8px; }
.board .screw.bl { bottom: 8px; left: 8px; }
.board .screw.br { bottom: 8px; right: 8px; }
.board .foot {
  position: absolute; bottom: -14px; width: 8px; height: 14px;
  background: #0a0a08; border-radius: 0 0 3px 3px;
}
.board .foot.l { left: 22%; }
.board .foot.r { right: 22%; }

.board-badge { position: relative; z-index: 1; text-align: center; margin-bottom: 10px; }
.board-badge span {
  display: inline-block; padding: 3px 16px; border-radius: 6px;
  background: #0a0a08; border: 1px solid rgba(0,0,0,.6);
  font-size: 11.5px; font-weight: 800; letter-spacing: .3em;
  color: var(--gold); text-shadow: 0 0 10px rgba(217,164,65,.65);
}
.board-leds { position: relative; z-index: 1; display: flex; justify-content: center;
              gap: 8px; margin-bottom: 12px; }
.board-leds i {
  width: 6px; height: 6px; border-radius: 50%;
  animation: mgBlink 1.6s infinite;
}
.board-leds i:nth-child(3n+1) { background: var(--green);  box-shadow: 0 0 7px var(--green); }
.board-leds i:nth-child(3n+2) { background: var(--gold-2); box-shadow: 0 0 7px var(--gold-2); }
.board-leds i:nth-child(3n+3) { background: var(--brand);  box-shadow: 0 0 7px var(--brand); }
.board-leds i:nth-child(2) { animation-delay: .2s; }
.board-leds i:nth-child(3) { animation-delay: .4s; }
.board-leds i:nth-child(4) { animation-delay: .6s; }
.board-leds i:nth-child(5) { animation-delay: .8s; }
.board-leds i:nth-child(6) { animation-delay: 1s; }

.board-cells {
  position: relative; z-index: 1; direction: ltr;
  display: flex; justify-content: center; gap: clamp(8px, 2vw, 14px);
}
.cell {
  background: #0c0c08; border: 1px solid rgba(0,0,0,.7);
  border-top: 3px solid var(--green); border-radius: 10px;
  padding: 12px 12px 10px; min-width: clamp(72px, 19vw, 108px);
  box-shadow: inset 0 3px 18px rgba(0,0,0,.8);
}
.cell .digits {
  font-size: clamp(38px, 8.5vw, 66px); font-weight: 900; line-height: 1;
  color: var(--green-lit); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(77,160,106,.85), 0 0 5px rgba(143,230,168,.6);
}
.cell .unit { font-size: 11px; letter-spacing: .12em; color: var(--label); margin-top: 8px; }
.cell.seconds { border-top-color: var(--brand); }
.cell.seconds .digits {
  color: var(--red-lit);
  text-shadow: 0 0 20px rgba(187,64,51,.9), 0 0 5px rgba(242,163,154,.6);
}
.board-done { position: relative; z-index: 1; padding: 18px 30px; font-size: 20px;
              font-weight: 900; color: var(--gold); text-align: center; }

/* Below ~430px the four cells no longer fit at their design width, so the
   board scales down rather than pushing the page sideways. */
@media (max-width: 430px) {
  .board { padding: 10px 12px 14px; }
  .cell  { min-width: 0; flex: 1; padding: 10px 6px 8px; }
  .cell .digits { font-size: clamp(28px, 11vw, 44px); }
  .cell .unit   { font-size: 10px; letter-spacing: .06em; }
  .board-cells  { gap: 6px; width: 100%; }
  .board-wrap   { width: 100%; }
  .board        { display: block; width: 100%; }
}

/* ==========================================================================
   Video

   The play control is a 220x220 composition: candlesticks grow from the floor
   and a dashed shot-arc fades in, both only on hover, exactly as designed.
   ========================================================================== */
.video-title {
  margin-bottom: 22px; font-size: clamp(24px, 4.5vw, 40px);
  font-weight: 900; text-align: center; text-wrap: balance;
}
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5);
  cursor: pointer; display: block; width: 100%;
}
.video-frame .poster {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: saturate(.7) brightness(.5);
}
.video-frame .scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(187,64,51,.22), transparent 70%),
              linear-gradient(180deg, rgba(44,44,41,.3), rgba(44,44,41,.62));
}
.video-frame .center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-stage {
  position: relative; width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}

/* candlesticks */
.video-candles {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 7px; height: 104px; pointer-events: none;
}
.video-candles i {
  display: block; width: 8px; border-radius: 3px;
  transform-origin: bottom; transform: scaleY(0); opacity: 0;
}
.video-frame:hover .video-candles i,
.video-frame:focus-visible .video-candles i { transform: scaleY(1); opacity: .9; }
.video-candles i:nth-child(1) { transition: transform .5s cubic-bezier(.22,1,.36,1) 0s,    opacity .4s 0s; }
.video-candles i:nth-child(2) { transition: transform .5s cubic-bezier(.22,1,.36,1) .05s,  opacity .4s .05s; }
.video-candles i:nth-child(3) { transition: transform .5s cubic-bezier(.22,1,.36,1) .1s,   opacity .4s .1s; }
.video-candles i:nth-child(4) { transition: transform .5s cubic-bezier(.22,1,.36,1) .15s,  opacity .4s .15s; }
.video-candles i:nth-child(5) { transition: transform .5s cubic-bezier(.22,1,.36,1) .2s,   opacity .4s .2s; }
.video-candles i:nth-child(6) { transition: transform .5s cubic-bezier(.22,1,.36,1) .25s,  opacity .4s .25s; }
.video-candles i:nth-child(7) { transition: transform .5s cubic-bezier(.22,1,.36,1) .3s,   opacity .4s .3s; }

/* shot arc + ball */
.video-arc {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
  opacity: 0; transition: opacity .45s ease;
}
.video-frame:hover .video-arc,
.video-frame:focus-visible .video-arc { opacity: 1; }
.video-frame:hover .video-arc circle,
.video-frame:focus-visible .video-arc circle { animation: mgBob 1.4s ease-in-out infinite; }

/* play button */
.play-btn {
  position: relative; z-index: 2;
  width: 86px; height: 86px; border-radius: 50%;
  background: rgba(223,223,218,.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  transition: all .35s cubic-bezier(.22,1,.36,1);
}
.video-frame:hover .play-btn,
.video-frame:focus-visible .play-btn {
  background: var(--brand); transform: scale(1.08);
  box-shadow: 0 0 0 12px rgba(187,64,51,.16), 0 20px 50px rgba(187,64,51,.45);
}
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  border-left: 22px solid var(--fg);
  margin-left: 6px;                 /* deliberate LTR nudge, as designed */
}

.video-embed { position: relative; display: block; width: 100%; max-width: 100%; height: auto;
               aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: #000;
               border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Live bar
   ========================================================================== */
.live-bar { padding: 28px 20px 8px; }
.live-inner {
  max-width: 860px; margin: 0 auto; padding: 18px 22px;
  background: linear-gradient(135deg, rgba(187,64,51,.14), rgba(223,223,218,.04) 55%);
  border: 1px solid rgba(187,64,51,.35); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.live-row { display: flex; align-items: center; justify-content: space-between;
            gap: 14px; flex-wrap: wrap; }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: var(--fg);
  font-weight: 800; font-size: 12px; padding: 4px 12px;
  border-radius: 999px; letter-spacing: .08em;
  animation: mgPulse 1.8s infinite;
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg);
                animation: mgBlink 1.2s infinite; }
.live-stage { font-size: 12.5px; color: var(--muted); }

.live-teams {
  display: flex; align-items: center; gap: clamp(12px, 3vw, 28px);
  flex: 1; justify-content: center; min-width: 260px;
}
.live-team { text-align: center; }
.live-team .nm { font-weight: 800; font-size: clamp(14px, 2.4vw, 17px); color: var(--fg); }
.live-team .score {
  font-weight: 900; font-size: clamp(22px, 4vw, 30px);
  font-variant-numeric: tabular-nums; direction: ltr; color: #6fce8c;
}
.live-team.away .score { color: var(--muted); }
.live-vs { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.live-vs span { font-size: 11px; color: var(--muted); font-weight: 700; }
.live-foot { font-size: 12px; color: var(--muted); }

.live-next { display: flex; align-items: center; justify-content: center;
             gap: 12px; flex-wrap: wrap; }
.live-next .t { font-weight: 900; font-size: 22px; color: var(--fg);
                font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Bracket
   ========================================================================== */
.stage-pills {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 14px; margin-bottom: 26px; scrollbar-width: thin;
}
.stage-pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--fill); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; color: var(--fg);
}
.stage-pill.is-open { background: rgba(187,64,51,.14); border-color: rgba(187,64,51,.55); }
.stage-pill .nm   { font-weight: 800; font-size: 13px; white-space: nowrap; }
.stage-pill .mult { font-size: 12px; color: var(--brand-soft); font-weight: 700; }
.stage-pill .tag {
  font-size: 10.5px; color: var(--muted); white-space: nowrap;
  border: 1px solid rgba(174,176,163,.35); border-radius: 999px; padding: 1px 8px;
}
.stage-pill.is-open .tag {
  color: var(--fg); background: var(--brand); border-color: transparent;
}

/* --- group tables -------------------------------------------------------- */
/* 380px keeps three cards on a 1200px row while giving the team name room:
   the names the teams chose for themselves are longer than the mock-up's. */
.groups-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 380px));
  justify-content: center; gap: 14px; margin-bottom: 40px;
}
.group-card {
  background: var(--fill); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; transition: border-color .25s;
}
.group-card:hover { border-color: rgba(187,64,51,.5); }
.group-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.group-head b { font-weight: 800; font-size: 14px; color: var(--fg); }
.group-head .mult { font-size: 11px; color: var(--muted); }

/* One shared grid for the header row and every team row. The counters only
   ever hold one or two digits, so every pixel saved there goes to the name. */
.standings-head, .team-row {
  display: grid; grid-template-columns: 1fr 22px 22px 30px 22px 36px;
  gap: 3px; align-items: center;
}
.standings-head {
  padding: 0 8px 6px; font-size: 9.5px; color: var(--muted);
}
.standings-head span { text-align: center; }
.standings-head span:first-child { text-align: right; }
.standings-head .pts { color: #7fd39a; font-weight: 700; }

.standings-body { display: flex; flex-direction: column; gap: 6px; }

.team-row {
  width: 100%; text-align: right; color: var(--fg);
  background: rgba(44,44,41,.55); border: 1px solid rgba(223,223,218,.07);
  border-radius: 10px; padding: 6px 8px; cursor: default;
  transition: border-color .2s, background .2s;
}
.team-row.is-picked { background: rgba(187,64,51,.14); border-color: rgba(187,64,51,.65); }
.team-row .who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.team-row .badge {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: rgba(187,64,51,.16); color: var(--brand-soft);
  font-weight: 800; font-size: 12.5px;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.team-row .badge img { width: 100%; height: 100%; object-fit: cover; }
/* A long name shrinks a step before it is ever cut, and the full text stays
   reachable through the title attribute. */
.team-row .nm {
  font-weight: 700; font-size: 12.5px; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.team-row .nm.is-long  { font-size: 11.5px; letter-spacing: -.2px; }
.team-row .nm.is-vlong { font-size: 10.5px; letter-spacing: -.3px; }
.team-row .picked { width: 7px; height: 7px; border-radius: 50%;
                    background: var(--brand); flex: none; }
.team-row .stat {
  text-align: center; font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.team-row .pts {
  text-align: center; font-size: 13px; font-weight: 800; color: #7fd39a;
  background: rgba(77,160,106,.2); border-radius: 8px; padding: 3px 0;
  font-variant-numeric: tabular-nums;
}

/* --- knockout tree ------------------------------------------------------- */
.ko-title { font-weight: 800; font-size: 17px; color: var(--fg); margin-bottom: 4px; }
.ko-intro { margin-bottom: 16px; font-size: 13px; color: var(--muted); }
/* The whole bracket fits the container: columns share the width instead of
   scrolling sideways. Type and padding scale down as the columns narrow. */
.knockout-tree {
  display: grid;
  grid-template-columns: repeat(var(--ko-cols, 9), minmax(0, 1fr));
  gap: clamp(4px, .7vw, 14px);
  align-items: stretch;
  padding-bottom: 8px;
}
.ko-col {
  min-width: 0;
  background: rgba(223,223,218,.03);
  border: 1px solid rgba(223,223,218,.08); border-radius: clamp(9px, 1vw, 16px);
  padding: clamp(5px, .7vw, 12px); display: flex; flex-direction: column;
}
.ko-col.is-final {
  align-self: center;
  background: rgba(187,64,51,.09); border-color: rgba(187,64,51,.55);
  box-shadow: 0 12px 40px rgba(187,64,51,.18);
}
.ko-col h4 {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(5px, .7vw, 10px); gap: 4px; min-width: 0; flex-wrap: wrap;
}
.ko-col h4 .nm {
  font-weight: 800; font-size: clamp(8.5px, .82vw, 13px); color: var(--fg);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ko-col h4 .mult { font-size: clamp(8px, .74vw, 11.5px); color: var(--brand-soft); font-weight: 700; }
.ko-matches { display: flex; flex-direction: column; gap: clamp(4px, .55vw, 8px);
              flex: 1; justify-content: space-around; }
.ko-match {
  background: rgba(44,44,41,.7); border: 1px dashed rgba(174,176,163,.28);
  border-radius: clamp(6px, .7vw, 10px); padding: clamp(4px, .5vw, 7px) clamp(5px, .65vw, 10px);
}
.ko-match .side {
  font-size: clamp(8px, .76vw, 11.5px); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ko-match .side.is-winner { color: var(--green-lit); font-weight: 700; }
.ko-match .sep { display: flex; justify-content: center; margin: 1px 0; }
.ko-match .sep svg { width: clamp(8px, .8vw, 12px); height: auto; }

/* Below ~700px nine columns cannot stay legible; fold into a readable grid. */
@media (max-width: 700px) {
  .knockout-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ko-col { padding: 10px; border-radius: 12px; }
  .ko-col.is-final { grid-column: 1 / -1; align-self: stretch; }
  .ko-col h4 .nm   { font-size: 12px; }
  .ko-col h4 .mult { font-size: 11px; }
  .ko-match .side  { font-size: 11px; }
  .ko-match .sep svg { width: 11px; }
}

/* ==========================================================================
   Schedule
   ========================================================================== */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.day {
  background: var(--fill); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
}
.day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.day-head .wd {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 14px; color: var(--fg);
}
.day-head .dt { font-size: 12px; color: var(--muted); }
.slots { display: flex; flex-direction: column; gap: 6px; }
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(44,44,41,.7); border: 1px solid rgba(223,223,218,.07);
  border-radius: 8px; padding: 6px 10px;
}
.slot .time {
  font-size: 12.5px; color: var(--fg); font-variant-numeric: tabular-nums;
  white-space: nowrap; flex: none;      /* the range must never wrap */
}
.slot .tag {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-bottom: 22px;
}
.step {
  background: var(--fill); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
}
.step .n {
  width: 50px; height: 50px; border-radius: 50%; margin-bottom: 14px;
  border: 2px solid rgba(187,64,51,.6);
  background: radial-gradient(circle at 50% 36%, rgba(187,64,51,.2), transparent 62%);
  color: var(--brand-soft); font-weight: 900; font-size: 23px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-weight: 800; font-size: 17px; color: var(--fg); margin-bottom: 6px; }
.step p  { font-size: 13.5px; color: var(--muted); text-wrap: pretty; }

.callout {
  background: var(--fill); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
}
.callout-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.callout-head .lead { font-weight: 800; font-size: 16px; color: var(--fg); }
.callout-head .max  { font-size: 13px; color: var(--muted); }
.callout-head .max b { color: var(--brand-soft); font-weight: 800; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: rgba(44,44,41,.7); border: 1px solid rgba(223,223,218,.1);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--fg);
}
.chip.is-final { background: rgba(187,64,51,.18); border-color: rgba(187,64,51,.5); }
.chip b { color: var(--brand-soft); }
.callout .note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Prizes
   ========================================================================== */
.prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.prize {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 18px; text-align: center; backdrop-filter: blur(6px);
  transition: transform .25s, border-color .25s;
}
.prize:hover { transform: translateY(-3px); border-color: var(--line-2); }
.prize.is-top {
  border-color: rgba(230,192,106,.42);
  background: linear-gradient(180deg, rgba(230,192,106,.1), rgba(44,44,41,.55));
}
.prize .rank {
  display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 12px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); margin-bottom: 12px;
}
.prize.is-top .rank { color: var(--gold); border-color: rgba(230,192,106,.45); }
.prize img { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 12px; }
.prize h3 { font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.prize .amount { font-size: 19px; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.prize p { font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 15px 18px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 19px; font-weight: 400; color: var(--brand-soft);
  flex: 0 0 auto; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 18px 16px; font-size: 13px; color: var(--muted); line-height: 1.9;
  white-space: pre-line;
}

/* ==========================================================================
   Sponsors
   ========================================================================== */
.sponsors {
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: center;
}
.sponsor img { max-height: 46px; width: auto; opacity: .72; transition: opacity .25s, filter .25s; }
.sponsors.is-gray .sponsor img { filter: grayscale(1); }
.sponsor:hover img { opacity: 1; filter: none; }
.sponsor .nm { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ==========================================================================
   Predict CTA
   ========================================================================== */
.cta-section { padding: clamp(40px, 7vw, 80px) 20px 20px; }
.cta-card {
  position: relative; overflow: hidden; max-width: 1160px; margin: 0 auto;
  border-radius: 28px; border: 1px solid rgba(217,164,65,.35);
  background:
    radial-gradient(ellipse 70% 90% at 82% 18%, rgba(217,164,65,.16), transparent 60%),
    radial-gradient(ellipse 80% 100% at 8% 100%, rgba(77,160,106,.14), transparent 60%),
    linear-gradient(150deg, #241e15 0%, #201f19 45%, #1c1d18 100%);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.cta-pitch { position: absolute; inset: 0; width: 100%; height: 100%;
             opacity: .1; pointer-events: none; }
.cta-inner {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap;
  align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(28px, 5vw, 56px);
}

.cta-copy { flex: 1 1 320px; min-width: 280px; }
.cta-copy .eyebrow { color: var(--gold); letter-spacing: .14em; margin-bottom: 12px; gap: 8px; }
.cta-copy h2 {
  margin-bottom: 14px; font-size: clamp(28px, 5.4vw, 50px);
  font-weight: 900; line-height: 1.15; text-wrap: balance;
}
.cta-copy h2 span { color: var(--gold); }
.cta-copy p {
  margin-bottom: 26px; max-width: 470px;
  font-size: clamp(16px, 2.1vw, 19px); color: var(--fg);
  line-height: 1.75; text-wrap: pretty;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: var(--fg); font-weight: 800;
  font-size: clamp(16px, 2.2vw, 18px); padding: 16px 38px; border-radius: 14px;
  box-shadow: 0 16px 44px rgba(187,64,51,.42);
  animation: mgPulse 2.2s infinite; transition: transform .2s, filter .2s;
}
.cta-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.cta-btn svg { transform: scaleX(-1); flex: none; }

/* The trophy stands in a goal mouth, with confetti drifting around it. */
.cta-art {
  flex: 1 1 300px; min-width: 280px; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: clamp(300px, 38vw, 380px);
}
.cta-glow {
  position: absolute; top: -4%; left: 50%; transform: translateX(-50%);
  width: 78%; height: 108%; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(217,164,65,.32), transparent 68%);
}
.cta-goal {
  position: absolute; top: 3%; left: 50%; transform: translateX(-50%);
  width: min(96%, 350px); pointer-events: none;
}
.cta-art img {
  position: relative; z-index: 2;
  width: clamp(190px, 27vw, 250px); height: clamp(230px, 34vw, 320px);
  object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0,0,0,.55));
}
.confetti { position: absolute; animation: mgBob 2.6s ease-in-out infinite; }
.confetti:nth-of-type(1) { top: 10%; left: 14%;  width: 9px; height: 9px; border-radius: 2px;
                           background: var(--brand); }
.confetti:nth-of-type(2) { top: 20%; right: 12%; width: 8px; height: 8px; border-radius: 50%;
                           background: var(--green); animation-duration: 3.1s; animation-delay: .4s; }
.confetti:nth-of-type(3) { top: 5%;  right: 30%; width: 7px; height: 7px; border-radius: 2px;
                           background: var(--gold-2); animation-duration: 2.9s; animation-delay: .8s; }
.confetti:nth-of-type(4) { top: 30%; left: 22%;  width: 7px; height: 7px; border-radius: 50%;
                           background: var(--brand-soft); animation-duration: 2.4s; animation-delay: .2s; }

/* ==========================================================================
   Footer
   ========================================================================== */
/* --- goal line, corner flags and the players standing on it --------------- */
.pitch-strip {
  position: relative; max-width: 1200px; margin: clamp(56px, 8vw, 96px) auto 0;
  height: 92px; padding: 0 20px;
}
.pitch-strip .goal-net {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 196px; height: 82px; z-index: 0; opacity: .5; pointer-events: none;
}
.pitch-strip .goal-line {
  position: absolute; bottom: 0; left: 20px; right: 20px; height: 3px;
  background: rgba(223,223,218,.3); border-radius: 2px;
}
.pitch-strip .corner-flag {
  position: absolute; bottom: 2px; width: 26px; height: 34px; overflow: visible;
}
.pitch-strip .corner-flag.right { right: 20px; }
.pitch-strip .corner-flag.left  { left: 20px; transform: scaleX(-1); }
.pitch-strip .corner-flag .cloth {
  transform-origin: 5px 7px; animation: mgFlagWave 1.9s ease-in-out infinite;
}
.pitch-strip .corner-flag.left .cloth { animation-delay: .45s; }
@keyframes mgFlagWave {
  0%, 100% { transform: skewY(0) scaleX(1); }
  50%      { transform: skewY(-8deg) scaleX(.84); }
}

.player { position: absolute; bottom: 3px; cursor: pointer; z-index: 1; }
.player:hover { z-index: 3; }
.player .fig { transform-origin: 50% 100%; position: relative; }
.player .fig svg { overflow: visible; display: block; }
.player .label {
  position: absolute; bottom: 58px; left: 50%;
  transform: translate(-50%, 8px); opacity: 0;
  transition: opacity .25s, transform .25s;
  background: #34342f; border: 1px solid rgba(187,64,51,.55); color: var(--fg);
  font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 999px;
  white-space: nowrap; pointer-events: none; z-index: 4;
}
.player:hover .label { opacity: 1; transform: translate(-50%, 0); }
.player.p-shot .label { bottom: 64px; }

/* limbs — the design's own rhythm */
.player .leg-a { animation: mgLeg .45s ease-in-out infinite alternate; }
.player .leg-b { animation: mgLeg .45s ease-in-out infinite alternate-reverse; }
.player .arm   { transform-origin: 15px 16px; }
.player .arm-a { animation: mgArm .5s ease-in-out infinite alternate; }
.player .arm-b { animation: mgArm .5s ease-in-out infinite alternate-reverse; }

.player .ball {
  position: absolute; bottom: 0; left: -11px; width: 9px; height: 9px;
  border-radius: 50%; background: #dfdfda;
  box-shadow: inset -2px -2px 0 rgba(44,44,41,.55);
}
.player .ball-dribble { animation: mgBallDribble .9s ease-in-out infinite; }
.player .ball-shot    { animation: mgBallShot 2.4s ease-in-out infinite; }

.player .trophy {
  position: absolute; z-index: 4; right: -7px; bottom: 13px; width: 12px; height: 12px;
  transition: right .3s ease, bottom .3s ease, width .3s ease, height .3s ease;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
  animation: mgBob 2.4s ease-in-out infinite;
}
.player .trophy svg { width: 100%; height: 100%; display: block; }
.player.p-cheer:hover .trophy {
  right: 1px; bottom: 42px; width: 17px; height: 17px;
  animation: mgTrophyShake .5s ease-in-out infinite;
}

/* --- the seven choreographies, idle then hover ---------------------------- */
.player.p-siu     .fig { animation: mgFigJump 2.6s ease-in-out infinite; }
.player.p-dribble .fig { animation: mgFigRun .9s ease-in-out infinite; }
.player.p-sprint  .fig { animation: mgFigSprint 3.4s linear infinite; }
.player.p-cheer   .fig { animation: mgFigRun 1.4s ease-in-out infinite; }
.player.p-shot    .fig { animation: mgFigKick 2.4s ease-in-out infinite; }
.player.p-tackle  .fig { animation: mgFigSlide 3s ease-in-out infinite; }
.player.p-save    .fig { animation: mgFigDive 2.8s ease-in-out infinite; }

.player.p-cheer  .leg-a,
.player.p-cheer  .leg-b { animation-duration: .9s; }
.player.p-sprint .leg-a,
.player.p-sprint .leg-b { animation-duration: .3s; }
.player.p-shot   .leg-a { animation: mgHalandKick 2.4s ease-in-out infinite; }

.player.p-siu:hover     .fig  { animation: mgSiu 1.6s cubic-bezier(.45,0,.3,1) infinite; }
.player.p-siu:hover     .arm  { animation: mgSiuArms 1.6s ease-in-out infinite; }
.player.p-dribble:hover .fig  { animation: mgTurboFig .55s linear infinite; }
.player.p-dribble:hover .ball { animation: mgTurboBall .55s linear infinite; }
.player.p-dribble:hover .leg-a,
.player.p-dribble:hover .leg-b { animation-duration: .14s; }
.player.p-sprint:hover  .fig  { animation: mgFigSprint 1.1s linear infinite; }
.player.p-sprint:hover  .leg-a,
.player.p-sprint:hover  .leg-b { animation-duration: .16s; }
.player.p-cheer:hover   .fig  { animation: mgFigJump .9s ease-in-out infinite; }
.player.p-cheer:hover   .leg-a,
.player.p-cheer:hover   .leg-b { animation-duration: .5s; }
.player.p-shot:hover    .fig   { animation: mgFigKick 1s ease-in-out infinite; }
.player.p-shot:hover    .leg-a { animation: mgHalandKick 1s ease-in-out infinite; }
.player.p-shot:hover    .ball  { animation: mgBallShot 1s ease-in-out infinite; }
.player.p-tackle:hover  .fig  { animation: mgFigSlide 1.2s ease-in-out infinite; }
.player.p-save:hover    .fig  { animation: mgFigDive 1.1s ease-in-out infinite; }

/* Arms speed up on hover, except where a motion drives them itself. */
.player:hover .arm-a,
.player:hover .arm-b { animation-duration: .18s; }
.player.p-siu:hover   .arm-a,
.player.p-siu:hover   .arm-b { animation-duration: 1.6s; }
.player.p-cheer:hover .arm-a { animation: mgCheerA .7s ease-in-out infinite; }
.player.p-cheer:hover .arm-b { animation: mgCheerB .7s ease-in-out infinite; }

/* keyframes, copied from the approved design */
@keyframes mgFigJump   { 0%,55%,100% { transform: translateY(0) rotate(0); }
                         70% { transform: translateY(-18px) rotate(-10deg); }
                         80% { transform: translateY(-14px) rotate(6deg); } }
@keyframes mgSiu       { 0%   { transform: translateY(0) rotate(0); }
                         22%  { transform: translateY(-26px) rotate(-200deg); }
                         40%  { transform: translateY(-30px) rotate(-360deg); }
                         58%,100% { transform: translateY(0) rotate(-360deg); } }
@keyframes mgSiuArms   { 0%,50% { transform: rotate(0); } 62%,100% { transform: rotate(-115deg); } }
@keyframes mgTurboFig  { 0%,100% { transform: translateX(-16px) rotate(-8deg); }
                         25%  { transform: translateX(0) rotate(8deg); }
                         50%  { transform: translateX(16px) rotate(-8deg); }
                         75%  { transform: translateX(0) rotate(8deg); } }
@keyframes mgTurboBall { 0%,100% { transform: translateX(-24px); } 50% { transform: translateX(24px); } }
@keyframes mgHalandKick{ 0%,55%,100% { transform: rotate(6deg); }
                         68% { transform: rotate(-58deg); } 80% { transform: rotate(24deg); } }
@keyframes mgFigSprint { 0%   { transform: translateX(-34px) scaleX(1); }
                         48%  { transform: translateX(34px) scaleX(1); }
                         52%  { transform: translateX(34px) scaleX(-1); }
                         98%  { transform: translateX(-34px) scaleX(-1); }
                         100% { transform: translateX(-34px) scaleX(1); } }
@keyframes mgFigSlide  { 0%,50%,100% { transform: rotate(0) translate(0,0); }
                         65%,82% { transform: rotate(-58deg) translate(-8px,5px); } }
@keyframes mgFigDive   { 0%,50%,100% { transform: rotate(0) translate(0,0); }
                         65%,82% { transform: rotate(66deg) translate(6px,4px); } }
@keyframes mgFigKick   { 0%,58%,100% { transform: rotate(0); }
                         66% { transform: rotate(-16deg); } 74% { transform: rotate(12deg); } }
@keyframes mgBallShot  { 0%,58% { transform: translate(0,0); opacity: 1; }
                         66% { opacity: 1; }
                         92% { transform: translate(-52px,-44px); opacity: 0; }
                         100% { transform: translate(0,0); opacity: 0; } }
@keyframes mgBallDribble { 0%,100% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
@keyframes mgCheerA    { 0%,100% { transform: rotate(118deg); } 50% { transform: rotate(136deg); } }
@keyframes mgCheerB    { 0%,100% { transform: rotate(-118deg); } 50% { transform: rotate(-136deg); } }
@keyframes mgTrophyShake { 0%,100% { transform: rotate(-11deg); } 50% { transform: rotate(11deg); } }

@media (max-width: 640px) {
  .pitch-strip { height: 76px; }
  .pitch-strip .goal-net { width: 150px; height: 63px; }
  .player .fig svg { width: 24px; }
}

.site-footer { padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
.footer-bar {
  max-width: 1200px; margin: 0 auto; padding-top: 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 54px; width: auto; align-self: flex-start; }
.footer-brand .tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted);
}
.footer-links { display: flex; align-items: center; gap: 18px; font-size: 13.5px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); transition: color .18s; }
.footer-links a:hover { color: var(--fg); }
.footer-live {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(187,64,51,.55); color: var(--brand-soft);
  border-radius: 999px; padding: 7px 16px;
}
.footer-live:hover { color: var(--fg); }
.footer-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
                 display: inline-block; animation: mgBlink 1.4s infinite; }
.copyright {
  max-width: 1200px; margin: 24px auto 0;
  font-size: 11.5px; color: rgba(174,176,163,.6);
}

/* ==========================================================================
   Prediction modal (shared with the panel's sheet styling)
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18,17,15,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 22px; width: 100%; max-width: 440px; padding: 22px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 -20px 80px rgba(0,0,0,.6); animation: mgUp .3s cubic-bezier(.22,1,.36,1);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between;
              gap: 12px; margin-bottom: 16px; }
.modal-head .meta { font-size: 11.5px; color: var(--muted); }
.modal-head h2 { font-size: 18px; font-weight: 900; }
.modal-close { font-size: 21px; line-height: 1; color: var(--muted); padding: 0 4px; }
.modal-close:hover { color: var(--fg); }

.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pick {
  padding: 16px 12px; border-radius: 14px; text-align: center;
  background: rgba(44,44,41,.7); border: 1px solid var(--line-2);
  transition: border-color .18s, background .18s;
}
.pick:hover { border-color: rgba(187,64,51,.5); }
.pick.is-active { border-color: var(--brand); background: rgba(187,64,51,.16); }
.pick .badge {
  width: 42px; height: 42px; margin: 0 auto 9px; border-radius: 13px;
  background: var(--fill-2); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; overflow: hidden;
}
.pick .badge img { width: 100%; height: 100%; object-fit: cover; }
.pick .nm  { font-size: 13.5px; font-weight: 800; }
.pick .cap { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.modal .field { margin-bottom: 14px; }
.modal label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.modal input[type=text], .modal input[type=tel] {
  width: 100%; padding: 12px 14px; font-size: 14px;
  background: rgba(44,44,41,.9); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 12px;
}
.modal input:focus { outline: none; border-color: var(--brand); }
.modal .otp {
  text-align: center; letter-spacing: .5em; font-size: 21px;
  font-weight: 900; direction: ltr; padding-inline-start: .5em;
}
.modal .btn-full {
  display: block; width: 100%; padding: 14px; border-radius: 12px;
  background: var(--brand); color: var(--fg); font-weight: 800; font-size: 14px;
  box-shadow: 0 10px 26px rgba(187,64,51,.32); transition: filter .2s;
}
.modal .btn-full:hover { filter: brightness(1.1); }
.modal .btn-full:disabled { background: rgba(174,176,163,.18); color: rgba(223,223,218,.45);
                            box-shadow: none; cursor: not-allowed; }
.modal .btn-link { display: block; width: 100%; margin-top: 10px; text-align: center;
                   font-size: 12.5px; color: var(--muted); }
.modal .hint  { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.8; }
.modal .err   { font-size: 12.5px; color: var(--brand-soft); font-weight: 700;
                background: rgba(187,64,51,.14); border: 1px solid rgba(187,64,51,.4);
                border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; }
.modal .ok-mark {
  width: 62px; height: 62px; margin: 4px auto 14px; border-radius: 50%;
  background: rgba(77,160,106,.16); border: 1px solid rgba(77,160,106,.5);
  color: var(--green-lit); font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.modal .consent { display: flex; gap: 9px; align-items: flex-start;
                  font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.modal .consent input { margin-top: 4px; accent-color: var(--brand); }

/* --- rules popup --------------------------------------------------------- */
.rules-list { counter-reset: r; }
.rules-list li {
  counter-increment: r; position: relative; padding-inline-start: 34px;
  margin-bottom: 12px; font-size: 13px; color: var(--muted); line-height: 1.9;
}
.rules-list li::before {
  content: counter(r); position: absolute; inset-inline-start: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 8px;
  background: rgba(187,64,51,.18); border: 1px solid rgba(187,64,51,.42);
  color: var(--brand-soft); font-size: 11.5px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* --- toast --------------------------------------------------------------- */
.toast {
  position: fixed; inset-inline: 0; bottom: 22px; z-index: 200;
  display: flex; justify-content: center; padding: 0 20px; pointer-events: none;
}
.toast[hidden] { display: none; }
.toast span {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 10px 20px; font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: mgUp .25s ease;
}
