/* TMPL Season 10 · flyer look: a floodlit night stadium, Holi paint splashes
   (magenta, orange, yellow, blue, purple), chrome TMPL, a fiery ball, "Save the Date" script,
   a crimson date band. Gents wear orange/black, Ladies black/pink, as on the flyer.
   Effects ported from the BCL 10.0 forms. */
:root {
  --night: #060d24; --night2: #0d1638; --navy: #181848; --ink: #fff8ec; --muted: #c8d0e4;
  --pink: #c01830; --orange: #f04830; --yellow: #f0d890; --blue: #183068; --purple: #901818; --crimson: #a81818;
  --gold: #e6b84c; --gold2: #f0d890; --line: rgba(240, 216, 144, .36); --ok: #7be38b; --bad: #ff8a8a;
  --men: #f04830; --women: #d81830;
  --sport: "Russo One", "Arial Black", system-ui, sans-serif;
  --num: "Teko", "Russo One", sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --hindi: "Yatra One", "Hind", serif;
  --body: "Hind", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html:has(body:not(.reveal-on)), body:not(.reveal-on) { height: 100dvh; overflow: hidden; }
body { margin: 0; color: var(--ink); font: 17px/1.55 var(--body); overflow-x: hidden;
  background:
    radial-gradient(90% 55% at 50% 8%, rgba(224, 48, 48, .55) 0%, transparent 65%),
    radial-gradient(70% 50% at 85% 95%, rgba(0, 24, 72, .55) 0%, transparent 70%),
    linear-gradient(175deg, #b81818 0%, #8a1414 38%, #470812 76%, #180616 100%) fixed, #180616; }
a { color: var(--yellow); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- flash, burst canvas, toast ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }
.flashcard { position: fixed; inset: 0; background: #fff; z-index: 95; pointer-events: none; opacity: 0; }
.flashcard.pop { animation: camflash .72s ease-out forwards; }
@keyframes camflash { 0% { opacity: 0 } 6% { opacity: .92 } 100% { opacity: 0 } }
.toast { position: fixed; left: 50%; top: 22%; z-index: 85; pointer-events: none; opacity: 0; transform: translate(-50%, -12px) scale(.7);
  padding: 14px 28px; border-radius: 999px; text-align: center; white-space: nowrap; color: #fff;
  background: linear-gradient(135deg, #a81818, #f04830); font: 400 clamp(24px, 6vw, 44px)/1 var(--sport); box-shadow: 0 22px 60px rgba(168, 24, 24, .55); }
.toast small { display: block; font: 18px var(--script); margin-top: 4px; }
.toast.go { animation: toastpop 2.2s cubic-bezier(.2, 1.6, .3, 1) forwards; }
@keyframes toastpop { 14% { opacity: 1; transform: translate(-50%, 0) scale(1.07) } 28% { transform: translate(-50%, 0) scale(1) } 78% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, -30px) scale(1) } }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; text-align: center; padding: 16px; overflow: hidden;
  background:
    radial-gradient(65% 48% at 50% 24%, rgba(232, 48, 42, .62) 0%, rgba(168, 24, 24, .22) 52%, transparent 78%),
    radial-gradient(75% 55% at 12% 92%, rgba(0, 24, 72, .55) 0%, transparent 68%),
    radial-gradient(70% 55% at 90% 88%, rgba(45, 5, 16, .85) 0%, transparent 70%),
    linear-gradient(160deg, #b81818 0%, #781216 48%, #2e050e 85%, #120618 100%);
  transition: opacity .6s, visibility .6s; }
.gate.off { opacity: 0; visibility: hidden; }
.gate-in { max-width: 380px; }
.gate-logo { width: 190px; height: auto; }
.gate-tm { margin: 8px 0 0; line-height: .9; }
.gate-tm span { display: block; font: 400 84px/.9 var(--sport); font-style: italic; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 0%, #d9dde6 45%, #8e95a6 52%, #fff 70%, #c8ccd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #6b0f23) drop-shadow(0 6px 0 #2a0610); }
.gate-tm em { display: inline-block; font: 400 30px var(--sport); font-style: italic; color: var(--yellow); -webkit-text-stroke: 1px #3a1500; transform: rotate(-4deg); }
.gate-hi { font: 40px/1.1 var(--script); color: var(--gold2); margin: 18px 0 4px; }
.gate-st { color: var(--muted); margin: 0 0 22px; }
.gate .link { margin-top: 10px; }

/* ---------- ribbon + top bar ---------- */
.ribbon { position: sticky; top: 0; z-index: 30; margin: 0; padding: 6px 12px; text-align: center;
  background: repeating-linear-gradient(45deg, #5a1238, #5a1238 12px, #6b1843 12px, #6b1843 24px);
  color: #ffd9ea; font: 600 12px/1.3 var(--body); letter-spacing: .04em; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; max-width: 560px; margin: 0 auto; }
.logos { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top .org { height: 42px; width: auto; flex: none; }
/* the TMPL badge from the flyer (maroon plate, gold rule, white TMPL), recreated rather than cropped */
.tbadge { position: relative; flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto auto; column-gap: 3px; align-items: center;
  padding: 3px 7px 3px 4px; border-radius: 4px; line-height: 1; text-align: left;
  background: linear-gradient(160deg, #6a1838, #3a0a20 60%, #2a0718); border: 1.5px solid #d9a53a; box-shadow: 0 0 0 1px #3a0a20, 0 4px 12px rgba(0, 0, 0, .5); }
.tbadge .tb-bat { grid-row: 1 / 3; width: 22px; height: 22px; overflow: visible; }
.tb-bat circle { fill: #f3f0ea; } .tb-bat path { fill: none; stroke: #f3f0ea; stroke-width: 3; stroke-linecap: round; }
.tb-bat .blade { stroke: #ffd23f; stroke-width: 3.6; } .tb-bat .tb-ball { fill: #d6ec3a; }
.tbadge b { font: 400 19px/.95 var(--sport); color: #fff; letter-spacing: .02em; text-shadow: 0 2px 0 #2a0718; }
.tbadge i { font: 600 11px/1 var(--num); font-style: normal; color: var(--yellow); letter-spacing: .04em; grid-column: 2; }
.tbadge em { grid-column: 1 / -1; font: 9px/1.2 var(--script); color: #f3d9a8; white-space: nowrap; margin-top: 1px; }
.snd { display: flex; gap: 5px; flex: none; }
.music { background: rgba(255, 210, 63, .1); color: var(--yellow); border: 1px solid var(--line); border-radius: 99px;
  padding: 7px 11px; font: 600 14px var(--body); cursor: pointer; white-space: nowrap; min-height: 38px; }
.music[aria-pressed="true"] { background: var(--yellow); color: var(--night); }
.music.tune { padding: 7px 10px; }

main, .result { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---------- hero: the flyer ---------- */
.hero { position: relative; margin: 0 -16px; padding: 30px 16px 26px; text-align: center; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #b81818 0%, #781216 55%, #2a0610 100%); }
.hero::before { content: ""; position: absolute; inset: -4%; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(192, 24, 24, .28) 0%, rgba(90, 12, 18, .58) 65%, rgba(28, 5, 16, .88) 100%),
    url("../art/hero-bg.png") center 28% / cover no-repeat;
  animation: heroPulse 10s ease-in-out infinite alternate; }
@keyframes heroPulse {
  0% { transform: scale(1) translateY(0); filter: brightness(1); }
  100% { transform: scale(1.06) translateY(-1.5%); filter: brightness(1.12); }
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; opacity: .9;
  background:
    radial-gradient(3px 3px at 10% 40%, #ffd23f 50%, transparent 51%), radial-gradient(3px 3px at 30% 60%, #e6247e 50%, transparent 51%),
    radial-gradient(3px 3px at 55% 35%, #2f6bd8 50%, transparent 51%), radial-gradient(3px 3px at 78% 55%, #ff7a1a 50%, transparent 51%),
    radial-gradient(3px 3px at 92% 30%, #fff 50%, transparent 51%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath fill='%2305060d' d='M0 90V52c8-10 16-10 22 0 6-14 18-14 24 0 6-10 16-10 22 0 6-16 20-16 26 0 6-10 16-10 22 0 6-12 18-12 24 0 8-14 20-14 26 0 6-10 16-10 22 0 6-14 18-14 24 0 6-10 16-10 22 0 6-16 20-16 26 0 6-10 16-10 22 0 6-12 18-12 24 0 8-14 20-14 26 0 6-10 16-10 22 0 6-14 18-14 24 0 6-10 14-10 20 0v38z'/%3E%3C/svg%3E") bottom / 100% 70px no-repeat; }
.paint { position: absolute; left: 0; top: 40px; width: 100%; height: 420px; z-index: -1; pointer-events: none; opacity: .28; mix-blend-mode: screen; }
/* gold batter and bowler flanking the tagline (flyer's top corners); they glide in with the lights */
/* the gold batter and bowler: one canvas (js/players.js) across the top of the hero, behind the text */
.players { position: absolute; left: 0; top: 56px; width: 100%; height: 184px; z-index: 3; pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 210, 63, .45)) drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); transition: opacity .9s .3s; }
body:not(.reveal-on) .players { opacity: 0; }
@media (min-width: 480px) { .players { height: 220px; top: 40px; } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
/* stadium floodlight towers: lattice mast, tilted 12-LED bank, anamorphic flare, and volumetric sweeping beams */
.tower { position: absolute; top: 4px; width: 72px; height: 240px; z-index: 0; pointer-events: none; }
.tower.l { left: 4px; } .tower.r { right: 4px; transform: scaleX(-1); }
.tower .pole { position: absolute; left: 29px; top: 36px; width: 14px; height: 204px; clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(175, 190, 225, .6) 5px 6.5px),
              repeating-linear-gradient(-45deg, transparent 0 5px, rgba(175, 190, 225, .6) 5px 6.5px),
              linear-gradient(90deg, rgba(70, 78, 108, .95), rgba(30, 34, 52, .65) 30%, transparent 32% 68%, rgba(30, 34, 52, .65) 70%, rgba(70, 78, 108, .95)); }
.tower .rig { position: absolute; left: 4px; top: 6px; width: 62px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 5px;
  background: linear-gradient(160deg, #3a405c, #131624); border: 2px solid #5c6484; border-radius: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: perspective(220px) rotateY(22deg) rotate(11deg); transform-origin: 50% 100%; }
.tower.r .rig { transform: perspective(220px) rotateY(18deg) rotate(8deg); }
.tower .rig i { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fff 0 28%, #fff6d8 52%, #f4c95d 85%);
  box-shadow: 0 0 8px 2px rgba(255, 246, 216, .95), 0 0 18px 5px rgba(255, 215, 120, .5); }
.tower.r .rig i:nth-child(even) { background: radial-gradient(circle at 38% 35%, #fff 0 28%, #e4f4ff 52%, #9ad4ff 85%);
  box-shadow: 0 0 8px 2px rgba(220, 242, 255, .95), 0 0 18px 5px rgba(120, 200, 255, .45); }
.hero:not(.lit) .tower .rig i:not(.on) { background: radial-gradient(circle at 40% 35%, #5a5a4e, #2a2a22); box-shadow: inset 0 0 2px #000; }
.tower .rig i.on { animation: lamp .55s steps(1); }
@keyframes lamp { 0% { opacity: .15 } 20% { opacity: 1 } 35% { opacity: .25 } 55% { opacity: 1 } 70% { opacity: .45 } 100% { opacity: 1 } }
.tower .flare { position: absolute; left: -44px; top: -38px; width: 164px; height: 130px; opacity: 0; transition: opacity .6s; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 232, 165, .45) 36%, rgba(255, 210, 120, 0) 100%); }
.tower.r .flare { background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(185, 228, 255, .42) 36%, rgba(230, 36, 126, 0) 100%); }
.tower .flare::before, .tower .flare::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tower .flare::before { width: 260px; height: 3px; background: linear-gradient(90deg, transparent, rgba(255, 235, 180, .95) 50%, transparent); filter: blur(.5px); }
.tower.r .flare::before { background: linear-gradient(90deg, transparent, rgba(180, 230, 255, .95) 50%, transparent); }
.tower .flare::after { width: 3px; height: 100px; background: linear-gradient(transparent, rgba(255, 255, 255, .75), transparent); }
.hero.lit .tower.l .flare { opacity: 1; animation: glare 4.6s ease-in-out infinite alternate; }
.hero.lit .tower.r .flare { opacity: 1; animation: glare 5.8s ease-in-out infinite alternate-reverse; }
@keyframes glare { 0% { opacity: .82; transform: scale(.94); } 100% { opacity: 1; transform: scale(1.06); } }
.beam { position: absolute; top: 32px; width: 66%; height: 560px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .7s;
  filter: blur(10px); mix-blend-mode: screen; transform-origin: 8% 0%;
  background: linear-gradient(162deg, rgba(255, 244, 198, .44), rgba(255, 212, 110, .14) 44%, rgba(255, 200, 90, 0) 82%);
  clip-path: polygon(0 0, 14% 0, 100% 100%, 44% 100%); }
.beam::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(162deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 58%);
  clip-path: polygon(2% 0, 9% 0, 74% 100%, 56% 100%); }
.beam.l { left: 26px; }
.beam.r { right: 26px; transform: scaleX(-1);
  background: linear-gradient(162deg, rgba(225, 245, 255, .42), rgba(230, 36, 126, .12) 44%, rgba(120, 180, 255, 0) 82%); }
.hero.lit .beam.l { opacity: 1; animation: beamSweepL 7.5s ease-in-out infinite alternate; }
.hero.lit .beam.r { opacity: 1; animation: beamSweepR 9.2s ease-in-out infinite alternate; }
@keyframes beamSweepL { 0% { transform: rotate(-2deg) scaleY(1); filter: blur(10px) brightness(1); } 100% { transform: rotate(2.5deg) scaleY(1.04); filter: blur(9px) brightness(1.35); } }
@keyframes beamSweepR { 0% { transform: scaleX(-1) rotate(-2.5deg) scaleY(1.03); filter: blur(10px) brightness(1.05); } 100% { transform: scaleX(-1) rotate(2deg) scaleY(1); filter: blur(9px) brightness(1.35); } }
.hero-in { position: relative; z-index: 2; }
.hero-in > * { transition: opacity .7s, transform .7s cubic-bezier(.2, 1.3, .4, 1); }
body:not(.reveal-on) .hero-in > * { opacity: 0; transform: translateY(18px) scale(.96); }
.reveal-on .hero-in > :nth-child(2) { transition-delay: .05s } .reveal-on .hero-in > :nth-child(3) { transition-delay: .12s }
.reveal-on .hero-in > :nth-child(5) { transition-delay: .3s } .reveal-on .hero-in > :nth-child(6) { transition-delay: .4s }
.reveal-on .hero-in > :nth-child(7) { transition-delay: .5s } .reveal-on .hero-in > :nth-child(8) { transition-delay: .6s }
.hi-line { display: grid; justify-items: center; gap: 2px; margin: 26px 0 6px; }
/* the brush strip is a ::before layer, so its slanted clip never cuts the matras and anusvaras of the text */
.hi-line span { position: relative; z-index: 0; font: clamp(20px, 6.2vw, 32px)/1.3 var(--hindi); padding: 8px 18px 6px; transform: rotate(-3deg); color: #fff; max-width: 100%; }
.hi-line span::before { content: ""; position: absolute; inset: 4px 0 0; z-index: -1;
  background: linear-gradient(90deg, transparent, #0a0a0a 8%, #0a0a0a 92%, transparent); clip-path: polygon(2% 10%, 98% 0, 100% 90%, 0 100%); }
.hi-line .b2 { font-size: clamp(16px, 4.6vw, 24px); transform: rotate(-2deg); }
.hi-line .b2::before { background: linear-gradient(90deg, transparent, #2a0a1a 8%, #2a0a1a 92%, transparent); }
.hi-line em { font-style: normal; color: var(--yellow); }
.hi-line .b2 em { color: var(--orange); } .hi-line .b2 { color: #fff; }
.crown { width: 58px; height: auto; display: block; margin: 8px auto -10px; fill: var(--gold); stroke: #3a1500; stroke-width: 2; paint-order: stroke; filter: drop-shadow(0 2px 0 #3a1500) drop-shadow(0 0 12px rgba(255, 210, 63, .8)); }
.tmpl { display: inline-block; margin: 0; line-height: .9; position: relative; }
.tm { position: relative; display: inline-block; font: 400 clamp(92px, 30vw, 150px)/.9 var(--sport); font-style: italic; letter-spacing: -.03em;
  background: linear-gradient(180deg, #ffffff 0%, #e5e8ee 38%, #8f97a8 50%, #ffffff 62%, #c4c9d4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #7a0f27) drop-shadow(0 4px 0 #5a0b1d) drop-shadow(0 7px 0 #2a0610) drop-shadow(0 14px 24px rgba(0, 0, 0, .7)); }
.reveal-on .tm { animation: slam .6s cubic-bezier(.2, 1.6, .4, 1) both .1s; }
@keyframes slam { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } }
.tm::after { content: attr(data-text); position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: chrome 4s ease-in-out infinite 1.5s; }
@keyframes chrome { from { background-position: 120% 0 } 40%, to { background-position: -50% 0 } }
.season { display: block; margin-top: 4px; font: 400 clamp(28px, 8.5vw, 40px)/1 var(--sport); font-style: italic; color: var(--yellow);
  -webkit-text-stroke: 1.5px #3a1500; text-shadow: 0 4px 0 #7a2c00, 0 0 20px rgba(255, 210, 63, .45); transform: rotate(-3deg); }
.ball { position: absolute; z-index: 3; right: -26px; top: -22px; width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f6ff9a, #d6ec3a 40%, #9fb515 75%); box-shadow: 0 0 22px rgba(255, 210, 63, .7);
  animation: orbit 3.2s ease-in-out infinite alternate; }
.ball::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); border-left-color: transparent; border-right-color: transparent; transform: rotate(30deg); }
.ball::after { content: ""; position: absolute; right: 30px; top: 8px; width: 120px; height: 30px; border-radius: 50%; z-index: -1; transform: rotate(-18deg); transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, .25) 30%, rgba(255, 210, 63, .8) 85%, #fff); filter: blur(3px); }
@keyframes orbit { to { transform: translate(-8px, 10px) rotate(25deg); } }
.std { font: clamp(46px, 14vw, 64px)/1 var(--script); color: var(--yellow); margin: 22px 0 6px; text-shadow: 0 3px 0 #7a2c00, 0 0 24px rgba(255, 210, 63, .4); transform: rotate(-4deg); }
.dateband { display: inline-flex; flex-direction: column; align-items: center; padding: 10px 34px 12px; margin: 4px 0 10px;
  background: linear-gradient(100deg, transparent 0, var(--crimson) 6%, #8a0c25 94%, transparent 100%); clip-path: polygon(3% 8%, 97% 0, 100% 92%, 0 100%); }
.dateband b { font: 700 clamp(58px, 18vw, 80px)/.85 var(--num); color: var(--yellow); text-shadow: 0 4px 0 #5a1300; letter-spacing: .02em; }
.dateband span { font: 400 clamp(24px, 7vw, 32px)/1 var(--sport); color: #fff; letter-spacing: .06em; }
.venue { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px 16px; border-radius: 99px; text-decoration: none;
  background: rgba(7, 8, 22, .7); border: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.venue small { color: var(--yellow); font-size: 14px; }
.hero .en { margin: 12px 0 0; color: var(--muted); font: 20px var(--script); }

/* ---------- stats + flip clock ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0 14px; }
.stat { text-align: center; padding: 12px 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.stat b { display: block; font: 700 38px/1 var(--num); color: var(--yellow); }
.stat.men b { color: var(--men); } .stat.women b { color: var(--women); }
.stat span { font-size: 12px; color: var(--muted); }
.clocks { text-align: center; margin-bottom: 22px; }
.clock { display: inline-block; padding: 14px 14px 12px; border-radius: 20px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid rgba(230, 36, 126, .45); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.clk-h { font: 400 14px var(--sport); font-style: italic; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 12px #ff3b5c; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25 } }
.tiles { display: flex; gap: 8px; justify-content: center; }
.unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.unit small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fl { position: relative; display: inline-block; width: 1.3em; height: 1.4em; line-height: 1.45em; text-align: center; font: 600 clamp(40px, 12vw, 58px)/1.45 var(--num);
  color: var(--yellow); border-radius: .14em; background: linear-gradient(#24183f 0 50%, #1a1130 50%); perspective: 320px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .45), 0 10px 22px rgba(0, 0, 0, .45); }
.fl::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: rgba(0, 0, 0, .6); z-index: 3; }
.fl .h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; }
.fl .h i { position: absolute; left: 0; right: 0; height: 200%; font-style: normal; }
.fl .st, .fl .t { top: 0; background: #24183f; border-radius: .14em .14em 0 0; }
.fl .sb, .fl .b { bottom: 0; background: #1a1130; border-radius: 0 0 .14em .14em; }
.fl .st i, .fl .t i { top: 0 } .fl .sb i, .fl .b i { bottom: 0 }
.fl .t { z-index: 2; transform-origin: 50% 100%; animation: foldT .3s ease-in forwards; }
.fl .b { z-index: 2; transform-origin: 50% 0; transform: rotateX(90deg); animation: foldB .3s .28s ease-out forwards; }
@keyframes foldT { to { transform: rotateX(-90deg) } }
@keyframes foldB { to { transform: rotateX(0) } }
.clock.closed .fl { color: #6b6460; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font: 700 17px/1.2 var(--body); color: #2a1300;
  background: linear-gradient(180deg, #ffe58a, var(--yellow) 50%, #f0a81c); box-shadow: 0 1px 0 #fff6 inset, 0 6px 20px rgba(255, 210, 63, .3); overflow: hidden; }
.btn.big { width: 100%; min-height: 56px; font-size: 18px; }
.btn.hot { color: #fff; background: linear-gradient(100deg, var(--pink), var(--orange)); box-shadow: 0 8px 26px rgba(230, 36, 126, .45); font-family: var(--sport); font-weight: 400; letter-spacing: .02em; }
.btn.hot::after, body.all-lit .submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  background-size: 250% 100%; animation: btnShine 2.4s linear infinite; }
@keyframes btnShine { from { background-position: 150% 0 } to { background-position: -100% 0 } }
.btn.sec { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); box-shadow: none; }
.btn.pink { color: #fff; background: linear-gradient(180deg, #ff4f9a, var(--pink)); box-shadow: 0 6px 20px rgba(230, 36, 126, .35); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, .cat:focus-visible, .music:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.link { background: none; border: 0; color: var(--yellow); text-decoration: underline; font: 600 15px var(--body); cursor: pointer; padding: 6px; }

/* ---------- two live tickers ---------- */
.tickers { display: grid; gap: 6px; margin: 4px -16px 28px; }
.ticker { position: relative; display: flex; align-items: stretch; height: 38px; overflow: hidden; background: rgba(4, 5, 14, .85);
  border-block: 1px solid rgba(255, 255, 255, .12); }
.ticker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .14), transparent);
  background-size: 40% 100%; background-repeat: no-repeat; animation: tkShine 3.5s linear infinite; }
@keyframes tkShine { from { background-position: -40% 0 } to { background-position: 140% 0 } }
.ticker .tab { flex: none; display: grid; place-items: center; padding: 0 16px 0 12px; font: 400 14px var(--sport); font-style: italic; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); z-index: 1; }
.ticker.men .tab { background: linear-gradient(90deg, var(--orange), #ffb020); color: #1a0a00; }
.ticker.women .tab { background: linear-gradient(90deg, var(--pink), #ff4f9a); color: #fff; }
.lane { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.run { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; white-space: nowrap; gap: 26px; padding-left: 100%;
  animation: crawl var(--dur, 30s) linear infinite; font-size: 15px; }
.run span b { color: var(--orange); font: 600 20px var(--num); margin-right: 4px; }
.ticker.women .run span b { color: var(--pink); }
.run span::after { content: "◆"; color: rgba(255, 210, 63, .5); margin-left: 26px; font-size: 10px; }
@keyframes crawl { to { transform: translateX(-100%); } }

/* ---------- headings that wave in ---------- */
h2 { font: 400 26px/1.15 var(--sport); font-style: italic; color: var(--yellow); margin: 0 0 4px; text-align: center; text-shadow: 0 3px 0 #5a1300; }
.sub { text-align: center; color: var(--muted); margin: 0 0 16px; font-size: 15px; }
h2.poster .word { display: inline-block; white-space: nowrap; }
h2.poster .ch { display: inline-block; transform: translateY(.7em) rotate(10deg); opacity: 0; filter: blur(4px); }
h2.poster .ch.sp { width: .25em; }
h2.poster.waved .ch { animation: wave .7s cubic-bezier(.2, 1.5, .4, 1) forwards; animation-delay: calc(var(--i) * 28ms); }
@keyframes wave { to { transform: none; opacity: 1; filter: none; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity .8s cubic-bezier(.22, .8, .3, 1), transform .8s cubic-bezier(.22, .8, .3, 1), filter .8s; }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- category cards: team kits ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat { position: relative; overflow: hidden; text-align: center; padding: 16px 10px 14px; border-radius: 18px; cursor: pointer; color: var(--ink); font: inherit;
  background: linear-gradient(170deg, rgba(20, 26, 58, .95), rgba(7, 8, 22, .98)); border: 1.5px solid rgba(255, 255, 255, .12); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat::before { content: ""; position: absolute; inset: -30% -30% auto auto; width: 120px; height: 120px; border-radius: 50%; background: var(--c); filter: blur(40px); opacity: .35; }
.cat.men { --c: var(--men); } .cat.women { --c: var(--women); }
.cat svg { width: 64px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.cat .nm { display: block; font: 400 22px/1.1 var(--sport); font-style: italic; color: var(--c); margin-top: 6px; }
.cat .fee { display: block; font: 700 34px/1 var(--num); margin-top: 6px; }
.cat .fn { display: block; font-size: 12px; color: var(--muted); }
.cat .left { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.cat .bar { display: block; height: 6px; margin: 6px 8px 0; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cat .bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--c); border-radius: 9px; transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.cat .go { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; border: 1px solid var(--c); color: var(--c); }
.cat[aria-checked="true"] { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), 0 12px 34px rgba(0, 0, 0, .5); transform: translateY(-3px); }
.cat[aria-checked="true"] .go { background: var(--c); color: #fff; }
.cat:active { transform: scale(.97); }
.cat.full { opacity: .5; cursor: not-allowed; }

/* ---------- the form ---------- */
.reg { margin-top: 22px; padding: 16px 14px 18px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(20, 26, 58, .85), rgba(7, 8, 22, .95)); scroll-margin-top: 12px; }
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 12px; }
.form-head h2 { text-align: left; font-size: 22px; }
fieldset.step { position: relative; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; margin: 14px 0 0; padding: 12px 12px 14px; background: rgba(0, 0, 0, .25);
  transform-origin: 50% 0; }
fieldset.step.reveal { transform: perspective(900px) rotateX(14deg) translateY(40px); }
fieldset.step.reveal.in { transform: none; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
fieldset.step.done { border-color: transparent; background: linear-gradient(rgba(10, 10, 26, .92), rgba(10, 10, 26, .92)) padding-box,
  conic-gradient(from var(--ang), var(--pink), var(--orange), var(--yellow), var(--blue), var(--purple), var(--pink)) border-box; animation: runBorder 4s linear infinite; }
@keyframes runBorder { to { --ang: 360deg; } }
legend { display: flex; align-items: center; gap: 8px; font: 400 16px var(--sport); font-style: italic; color: var(--yellow); padding: 2px 12px 2px 2px; border-radius: 99px; background: #0b0d22; }
legend .sn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 18px/1 var(--num); font-style: normal;
  background: radial-gradient(circle at 35% 30%, #f6ff9a, #d6ec3a 50%, #9fb515); color: #222; }
.step.done legend .sn { background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--yellow) 60%); box-shadow: 0 0 10px var(--yellow); }
.fs-sub { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.fld { display: block; margin: 10px 0 0; }
.fld > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.fld > span small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=search] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; font: 17px var(--body); color: var(--ink);
  background: rgba(4, 5, 14, .7); border: 1px solid rgba(201, 195, 220, .3); transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 210, 63, .2); outline: none; }
input::placeholder { color: rgba(201, 195, 220, .5); }
input[aria-invalid="true"] { border-color: var(--bad); }
.field-err { display: block; color: var(--bad); font-size: 14px; margin-top: 4px; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; align-items: end; }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-in label { position: relative; }
.chips-in input { position: absolute; opacity: 0; inset: 0; }
.chips-in span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(201, 195, 220, .3); background: rgba(4, 5, 14, .6); font-weight: 600; font-size: 15px; transition: transform .15s; }
.chips-in input:checked + span { background: linear-gradient(100deg, var(--orange), #ffb020); color: #1a0a00; border-color: transparent; animation: pick .35s cubic-bezier(.2, 1.8, .4, 1); }
.reg.women .chips-in input:checked + span { background: linear-gradient(100deg, var(--pink), #ff4f9a); color: #fff; }
@keyframes pick { from { transform: scale(.8) } }
.chips-in input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.live-card { margin: 14px auto 0; text-align: center; }
.live-card img { width: 62%; max-width: 240px; height: auto; border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); transform: rotate(-2deg); transition: transform .3s; }
.live-card p { margin: 6px 0 0; font: 18px var(--script); color: var(--gold2); }

/* photo */
.photo { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.ph-prev { position: relative; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: rgba(4, 5, 14, .6); border: 2px dashed var(--line); font-size: 34px; }
.ph-prev.has { border: 3px solid var(--yellow); box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.ph-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-prev.busy { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.ph-btns { display: grid; gap: 8px; }
.ph-btns label, .ph-btns button { min-height: 44px; font-size: 15px; padding: 8px 12px; }
.ph-btns input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ph-info { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.ph-info b { color: var(--bad); font-weight: 600; }

.agree { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-size: 15px; color: var(--muted); }
.agree input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--yellow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { color: var(--bad); min-height: 1.2em; margin: 10px 0 0; font-weight: 600; }
.help { font-size: 14px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.help a { font-weight: 700; white-space: nowrap; }
body.all-lit .submit { animation: paypulse 1.6s ease-in-out infinite; }
@keyframes paypulse { 50% { box-shadow: 0 0 0 8px rgba(255, 210, 63, .2), 0 8px 26px rgba(255, 210, 63, .4); } }

/* ---------- broadcast scorebug: one ball per finished section ---------- */
.bug { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 10px; padding: 10px 14px 12px; border-radius: 12px;
  background: linear-gradient(90deg, var(--crimson) 0 26%, #05060f 26%); box-shadow: inset 0 -3px 0 var(--yellow); font: 400 13px/1 var(--sport); letter-spacing: .05em; }
.bug-live { color: #fff; animation: blink 1.4s steps(2) infinite; white-space: nowrap; }
.bug-team { padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bug-over { color: var(--yellow); white-space: nowrap; }
.bug .balls { grid-column: 1 / -1; display: flex; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.bug .balls li { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); transition: background .4s, border-color .4s, box-shadow .4s; }
.bug .balls li.on { background: radial-gradient(circle at 32% 30%, #f6ff9a, #d6ec3a 45%, #9fb515); border-color: #f6ff9a; box-shadow: 0 0 12px rgba(214, 236, 58, .8); }
.bug .balls li.hit { animation: ballhit .6s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes ballhit { 0% { transform: scale(.4) } 100% { transform: scale(1) } }
.bug.complete { box-shadow: inset 0 -3px 0 var(--yellow), 0 0 40px rgba(255, 210, 63, .45); }
.mini-bug { position: fixed; left: 50%; bottom: 10px; z-index: 60; width: min(340px, calc(100vw - 32px)); transform: translate(-50%, 160%);
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.mini-bug.show { transform: translate(-50%, 0); }
.mini-bug.bump { animation: bump .6s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes bump { 40% { transform: translate(-50%, 0) scale(1.06) } }

/* ---------- jersey wall ---------- */
.wall { margin: 36px 0 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(4, 5, 14, .7); border: 1px solid rgba(255, 255, 255, .12); }
.seg button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 15px var(--body); cursor: pointer; }
.seg button[aria-selected="true"].men { background: linear-gradient(100deg, var(--orange), #ffb020); color: #1a0a00; }
.seg button[aria-selected="true"].women { background: linear-gradient(100deg, var(--pink), #ff4f9a); color: #fff; }
.search { display: block; margin: 12px 0 4px; position: relative; }
.search input { padding-left: 42px; }
.search::before { content: "🔍"; position: absolute; left: 14px; top: 13px; font-size: 16px; opacity: .8; }
.found { font-size: 14px; min-height: 1.3em; margin: 4px 0 8px; color: var(--muted); }
.found.hit { color: var(--ok); font-weight: 600; }
/* dressing room: a lit locker wall with a chrome rail; each shirt hangs on its hanger and turns round
   (tap) to a mini gold card. New shirts swing in. */
.jerseys { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 6px; padding: 26px 10px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 0 40px rgba(0, 0, 0, .7);
  background:
    radial-gradient(60% 40px at 25% 0, rgba(255, 246, 216, .35), transparent 100%),
    radial-gradient(60% 40px at 75% 0, rgba(255, 246, 216, .35), transparent 100%),
    repeating-linear-gradient(90deg, #1d2233 0 46px, #161a28 46px 47px, #232941 47px 48px),
    #161a28; }
.jerseys::before { content: ""; position: absolute; left: 8%; right: 8%; top: 6px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 246, 216, .2), #fff6d8, rgba(255, 246, 216, .2)); box-shadow: 0 0 18px 4px rgba(255, 246, 216, .35); }
.jsy { position: relative; display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: center;
  perspective: 500px; transition: opacity .25s, transform .25s; }
.jsy::before { content: ""; position: absolute; left: -4px; right: -4px; top: 1px; height: 3px; border-radius: 2px;
  background: linear-gradient(#f1f3f7, #8b93a5); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.jsy .hanger { position: relative; display: block; width: 62%; margin: 0 auto -4px; overflow: visible; }
.jsy .hanger path { fill: none; stroke: #c9ced8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jsy .flip { position: relative; display: block; transform-style: preserve-3d; transform-origin: 50% 0; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.jsy.open .flip { transform: rotateY(180deg); }
.jsy .fr, .jsy .bk { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.jsy .bk { position: absolute; inset: 0 0 auto; aspect-ratio: 60 / 80; transform: rotateY(180deg); display: grid; place-content: center; gap: 1px; padding: 4px 2px;
  border-radius: 8px; color: #3a1d00; background: linear-gradient(135deg, #fff3c0, #f5c43a 35%, #c98a00 60%, #ffe27a); box-shadow: 0 6px 14px rgba(0, 0, 0, .6); }
.jerseys.women .jsy .bk { background: linear-gradient(135deg, #fff0ec, #f4b6b0 35%, #c97a78 60%, #ffd6cf); }
.jsy .bk b { font: 700 26px/1 var(--num); }
.jsy .bk i { font-style: normal; font-size: 16px; line-height: 1; }
.jsy .bk em { font: 600 11px/1.15 var(--body); font-style: normal; }
.jsy .bk small { font: 600 8.5px/1.1 var(--body); letter-spacing: .03em; opacity: .85; }
.jsy svg:not(.hanger) { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .55)); }
.jsy .body { fill: var(--k1); } .jsy .slv { fill: var(--k2); }
.jsy .edge { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.jsy.men { --k1: #ff7a1a; --k2: #141414; --t: #141414; } .jsy.women { --k1: #141414; --k2: #e6247e; --t: #ff4f9a; }
.jsy .no { fill: var(--t); font: 700 24px var(--num); text-anchor: middle; }
.jsy .nm { display: block; font-size: 11px; line-height: 1.2; margin-top: 2px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jsy.rest { cursor: default; }
.jsy.rest .cnt { display: grid; place-items: center; aspect-ratio: 60 / 66; margin: 0 6%; border: 2px dashed rgba(201, 195, 220, .4); border-radius: 10px 10px 6px 6px;
  font: 700 26px var(--num); color: var(--yellow); }
.jsy.rest .nm { color: var(--muted); }
.jsy.new .flip { animation: hangSwing 1.4s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes hangSwing { 0% { transform: translateY(-30px) rotate(-22deg); opacity: 0 } 25% { opacity: 1 } 45% { transform: rotate(14deg) } 65% { transform: rotate(-7deg) } 82% { transform: rotate(3deg) } 100% { transform: none } }
.jsy:hover .flip:not(:is(.jsy.open .flip)) { animation: sway 1s ease-in-out; }
@keyframes sway { 30% { transform: rotate(5deg) } 65% { transform: rotate(-3deg) } }
.jerseys.searching .jsy { opacity: .22; }
.jerseys.searching .jsy.hit { opacity: 1; transform: scale(1.12); z-index: 1; }
.jsy.hit .fr svg { filter: drop-shadow(0 0 10px var(--yellow)); }
.wall-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; text-align: center; font: 400 16px var(--sport); font-style: italic; color: #fff;
  background: linear-gradient(100deg, var(--pink), var(--orange)); box-shadow: 0 6px 18px rgba(230, 36, 126, .35); animation: notePulse 2.4s ease-in-out infinite; }
@keyframes notePulse { 50% { transform: scale(1.03); } }

.foot { text-align: center; padding: 30px 16px 130px; color: var(--muted); font-size: 14px; }
.foot img { width: 170px; height: auto; }
.foot .small { font-size: 12px; opacity: .8; }

/* ---------- magic ---------- */
.dust { position: fixed; inset: 0; z-index: 84; pointer-events: none; overflow: hidden; }
.dust i { position: absolute; width: 7px; height: 7px; margin: -3px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--c) 55%, transparent 72%);
  box-shadow: 0 0 8px var(--c); animation: dust .9s ease-out forwards; transform: scale(var(--s)); }
@keyframes dust { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
.comet { position: fixed; left: 0; top: 0; z-index: 86; width: 18px; height: 18px; margin: -9px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, #fff, #d6ec3a 45%, #9fb515); box-shadow: 0 0 18px 6px rgba(255, 210, 63, .8), 0 0 50px 14px rgba(255, 122, 26, .5); }
.comet-pop { position: fixed; z-index: 86; width: 80px; height: 80px; margin: -40px; border-radius: 50%; pointer-events: none;
  border: 3px solid var(--yellow); box-shadow: 0 0 30px var(--yellow); animation: cpop .7s ease-out forwards; }
@keyframes cpop { from { transform: scale(.1); opacity: 1 } to { transform: scale(1.4); opacity: 0 } }
.confetti { position: fixed; inset: 0; z-index: 83; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -30px; width: var(--w, 5px); height: calc(var(--w, 5px) * 2.6); border-radius: 1px; opacity: .95;
  animation-name: petalFall, petalSway; animation-timing-function: linear, ease-in-out; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-fill-mode: forwards; }
@keyframes petalFall { to { transform: translateY(110vh) rotate(540deg) } }
@keyframes petalSway { from { margin-left: -24px } to { margin-left: 24px } }

/* ---------- crop dialog (from the BCL forms) ---------- */
.cropper { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 14, .9); }
.crop-card { width: min(100%, 380px); background: var(--night2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.crop-h { font: 400 18px var(--sport); font-style: italic; color: var(--yellow); margin: 0 0 10px; }
.crop-view { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; touch-action: none; cursor: grab; }
.crop-view canvas { display: block; }
.crop-ring { position: absolute; inset: 8%; border-radius: 50%; box-shadow: 0 0 0 999px rgba(4, 5, 14, .45); border: 2px dashed var(--yellow); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.crop-zoom input { flex: 1; accent-color: var(--yellow); }
.crop-hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- pay gate ---------- */
body.solo #page, body.solo .tickers, body.solo .mini-bug, body.solo .snd { display: none; }
.paygate { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 30px 16px; }
.paygate .eyebrow { color: var(--yellow); font: 400 14px var(--sport); letter-spacing: .1em; }
.paygate h2 { margin: 6px 0; }
.paygate .st { color: var(--muted); max-width: 34ch; margin: 0 auto 18px; }
.paygate .acts { display: grid; gap: 10px; max-width: 320px; margin: 0 auto; }

/* ---------- finale: floodlights → ball → SIX! ---------- */
.finale { position: fixed; inset: 0; z-index: 75; background: #000; overflow: hidden; display: grid; place-items: center; align-content: center; text-align: center; padding-bottom: 12vh; }
.finale .skip { position: absolute; top: 16px; right: 16px; z-index: 5; min-height: 44px; }
.finale .stad { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 80%, #16244a 0, #000 65%); }
.finale .light { position: absolute; top: 5%; width: 22%; height: 9%; border-radius: 40%; background: radial-gradient(#fff 0, rgba(255, 246, 216, .6) 35%, transparent 70%); opacity: 0; transition: opacity .08s; }
.finale .l1 { left: 3% } .finale .l2 { left: 27%; transition-delay: .25s } .finale .l3 { right: 27%; transition-delay: .5s } .finale .l4 { right: 3%; transition-delay: .75s }
.finale .tline { position: absolute; bottom: 14%; left: 16px; right: 16px; margin: 0; font: 26px var(--script); color: var(--gold2); opacity: 0; transition: opacity .4s; }
.finale.s1 .light, .finale.s1 .tline { opacity: 1; }
.finale.s3 .tline { opacity: 0; }
.finale .fball { position: absolute; left: -60px; top: 70%; width: 54px; height: 54px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, #f6ff9a, #d6ec3a 40%, #9fb515 75%); box-shadow: 0 0 30px rgba(255, 210, 63, .9); }
.finale .fball::after { content: ""; position: absolute; right: 36px; top: 10px; width: 180px; height: 34px; border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, .3) 30%, rgba(255, 210, 63, .9) 85%, #fff); filter: blur(4px); }
.finale.s2 .fball { animation: fly 1s cubic-bezier(.3, .1, .4, 1) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translate(0, 0) } 100% { opacity: 1; transform: translate(calc(50vw + 30px), -42vh) scale(.6) } }
.finale .six { position: relative; z-index: 3; font: 400 clamp(68px, 20vw, 150px)/.95 var(--sport); font-style: italic; color: var(--yellow);
  -webkit-text-stroke: 3px #3a1500; text-shadow: 0 8px 0 #7a2c00, 0 0 60px rgba(255, 122, 26, .8); transform: scale(0) rotate(-12deg); opacity: 0; }
.finale.s3 .six { animation: sixIn .6s cubic-bezier(.2, 1.7, .4, 1) forwards; }
@keyframes sixIn { to { transform: rotate(-6deg); opacity: 1; } }
.finale .who { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18%; padding: 12px 18px; text-align: left;
  background: linear-gradient(90deg, var(--crimson), #6a0a1f); border-top: 4px solid var(--yellow); transform: translateX(-105%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.finale .who b { display: block; font: 400 28px/1 var(--sport); font-style: italic; text-transform: uppercase; }
.finale .who span { font: 600 16px var(--body); color: var(--gold2); }
.finale.s4 .who { transform: none; }
.finale .fsub { position: relative; z-index: 3; margin: 8px 16px 0; font: clamp(22px, 6vw, 34px)/1.15 var(--script); color: #fff; opacity: 0; transition: opacity .5s; }
.finale.s4 .fsub { opacity: 1; }

/* ---------- result: jersey reveal + golden card ---------- */
.result { text-align: center; padding-top: 10px; padding-bottom: 30px; overflow-x: hidden; }
.result .eyebrow { color: var(--yellow); font: 400 14px var(--sport); letter-spacing: .08em; margin: 6px 0; }
.result h2 { font-size: 30px; }
.result .lead { color: var(--muted); }
.note { padding: 10px 14px; border-radius: 10px; background: rgba(230, 36, 126, .15); border: 1px solid rgba(230, 36, 126, .45); font-size: 15px; }
.jr-stage { position: relative; margin: 4px auto 0; perspective: 1100px; min-height: 470px; overflow: hidden; padding-bottom: 6px; }
body.jr-shake .result { animation: jrshake .45s; }
@keyframes jrshake { 15% { transform: translate(-10px, 6px) } 35% { transform: translate(9px, -7px) } 55% { transform: translate(-7px, 4px) } 75% { transform: translate(5px, -3px) } }
.pillar { position: absolute; left: 50%; bottom: 120px; width: min(64vw, 260px); height: 0; transform: translateX(-50%); z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 246, 216, .85), rgba(255, 210, 63, .45) 40%, rgba(230, 36, 126, .2) 75%, transparent); filter: blur(14px);
  border-radius: 50% 50% 0 0; transition: height 1.1s cubic-bezier(.2, .9, .3, 1); }
.jr-stage.lit .pillar { height: 430px; animation: pillar 2.4s ease-in-out 1.2s infinite alternate; }
@keyframes pillar { to { opacity: .65; filter: blur(20px) } }
.jr-aura { position: absolute; left: 50%; top: 230px; width: min(96vw, 440px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(.4); opacity: 0; z-index: 0;
  transition: opacity 1.2s ease .3s, transform 1.4s cubic-bezier(.2, 1.3, .4, 1) .3s; pointer-events: none; }
.jr-stage.lit .jr-aura { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.jr-aura i { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 63, .5) 0 2deg, transparent 2deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, #000 62%, transparent 64%); mask: radial-gradient(circle, transparent 38%, #000 40%, #000 62%, transparent 64%);
  animation: auraSpin 22s linear infinite; }
.jr-aura i + i { inset: 12%; background: radial-gradient(circle, rgba(255, 226, 140, .4), rgba(230, 36, 126, .2) 50%, transparent 70%);
  -webkit-mask: none; mask: none; filter: blur(8px); animation: auraPulse 3s ease-in-out infinite; }
@keyframes auraSpin { to { transform: rotate(360deg) } }
@keyframes auraPulse { 50% { transform: scale(1.08); opacity: .7 } }
.jw { position: relative; z-index: 2; width: min(70vw, 280px); margin: 40px auto 0; font-size: min(7vw, 28px); transform-style: preserve-3d; }
.jw.rise { animation: jrise 1.75s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes jrise { 0% { transform: translateY(120%) rotateY(-1080deg) scale(.5); opacity: 0; filter: brightness(3) } 12% { opacity: 1 } 70% { filter: brightness(1.4) } 100% { transform: none; opacity: 1; filter: none } }
.jcard { position: relative; width: 100%; aspect-ratio: 300/320; transform-style: preserve-3d; cursor: pointer; transition: transform .9s cubic-bezier(.3, 1.35, .5, 1); }
.jcard.back { transform: rotateY(180deg); }
.jface { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.jface.jback { transform: rotateY(180deg); }
.jface svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .65)); }
.jt { position: absolute; left: 22%; right: 22%; text-align: center; white-space: nowrap; overflow: hidden; line-height: 1; color: #fff; }
.jt.nm { top: 21%; font: 400 1.1em var(--sport); letter-spacing: .04em; color: var(--jt); }
.jt.no { top: 32%; font: 700 5.2em/1 var(--num); color: var(--jt); text-shadow: 0 5px 0 rgba(0, 0, 0, .35); }
.jt.ft { bottom: 14%; font: 400 .44em var(--sport); font-style: italic; letter-spacing: .12em; opacity: .95; color: var(--jt); }
.jt.crest { top: 24%; }
.jt.crest img { width: 2.6em; height: auto; }
.jt.team { top: 52%; font: 400 1em var(--sport); font-style: italic; letter-spacing: .04em; color: var(--jt); }
.sold { position: absolute; left: 50%; top: 36px; z-index: 5; padding: 6px 24px; border-radius: 12px; font: 400 clamp(46px, 13vw, 76px)/1 var(--sport); font-style: italic;
  color: #fff; background: linear-gradient(100deg, var(--pink), var(--orange)); border: 4px double var(--yellow);
  transform: translate(-50%, 0) rotate(-9deg) scale(3); opacity: 0; pointer-events: none; box-shadow: 0 0 50px rgba(230, 36, 126, .7); }
.sold.hit { animation: stamp .42s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.sold.gone { transition: opacity .4s, transform .4s; opacity: 0 !important; transform: translate(-50%, -30px) rotate(-9deg) scale(.8) !important; }
@keyframes stamp { to { transform: translate(-50%, 0) rotate(-9deg) scale(1); opacity: 1 } }
.chant { position: relative; z-index: 2; margin: 18px -16px 0; overflow: hidden; white-space: nowrap; background: #05060f; border-block: 1px solid rgba(255, 210, 63, .4); opacity: 0; transition: opacity .5s; }
.chant.on { opacity: 1; }
.chant div { display: inline-block; padding: 10px 0; font: 600 24px var(--num); letter-spacing: .06em; color: var(--yellow); animation: crawl2 9s linear infinite; }
@keyframes crawl2 { to { transform: translateX(-50%) } }
.chant span { margin: 0 16px; }
.jr-hint { position: relative; z-index: 2; margin: 12px 0 0; font: 19px var(--script); color: var(--gold2); opacity: 0; transition: opacity .5s; }
.jr-hint.on { opacity: 1; }

.cards-h { margin-top: 26px; }
.spin-wrap { perspective: 1000px; margin: 8px auto 4px; width: min(100%, 400px); }
.spin-card { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1); cursor: pointer; }
.spin-card.flip { transform: rotateY(180deg) !important; }
.sface { backface-visibility: hidden; border-radius: 18px; overflow: hidden; }
.sface img { display: block; width: 100%; height: auto; }
.sback { position: absolute; inset: 0; transform: rotateY(180deg); display: grid; place-content: center; gap: 8px; padding: 20px;
  background: radial-gradient(80% 60% at 50% 30%, #22205a, #070816); border: 2px solid var(--yellow); }
.sback img { width: 70%; margin: 0 auto; }
.sback b { font: 400 54px var(--sport); font-style: italic; color: #fff; }
.sback em { font-style: normal; font: 600 26px var(--num); letter-spacing: .1em; color: var(--yellow); }
.sback span { color: var(--muted); }
.holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 48%, transparent 60%); background-size: 250% 100%; animation: holo 3.2s ease-in-out infinite; }
@keyframes holo { from { background-position: 120% 0 } to { background-position: -40% 0 } }
.spin-hint { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.sharebar { display: grid; gap: 10px; max-width: 400px; margin: 0 auto; }
.sharebar .row { display: flex; justify-content: center; gap: 10px; }
.story { width: min(70%, 260px); border-radius: 14px; margin: 18px auto 0; display: block; border: 1px solid var(--line); }
.shot { color: var(--muted); font-size: 14px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .run, .ball, .tm::after, .holo, .jsy.new .flip, .wall-note, .chant div, .ticker::after, .btn.hot::after { animation: none !important; }
  .run { position: static; padding-left: 12px; overflow-x: auto; }
  .embers, .dust, .confetti, .comet { display: none; }
  h2.poster .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
  .jw.rise { animation: none; } .pillar, .jr-aura { display: none; }
}
@media (min-width: 520px) { .jerseys { grid-template-columns: repeat(5, 1fr); } }
.crown path, .crown circle { fill: var(--gold); }

/* organiser closed registrations by hand */
.closed-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; text-align: center; font: 400 17px var(--sport); font-style: italic;
  color: #fff; background: linear-gradient(100deg, var(--crimson), #6a0a1f); border: 1px solid var(--yellow); }

/* PWA Install button & Preserved Session Bar (mobile-first) */
.install-btn { background: linear-gradient(135deg, #f0d890, #e6b84c); color: #060d24 !important; border-color: rgba(240, 216, 144, .85) !important; font-weight: 700; font-size: 12px !important; line-height: 1; min-height: 36px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.install-btn[hidden] { display: none !important; }
.session-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; max-width: 720px; margin: 12px auto 4px; padding: 12px 16px; border-radius: 14px; background: rgba(13, 22, 56, .92); border: 1px solid rgba(240, 216, 144, .42); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.session-bar[hidden] { display: none !important; }
.session-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.session-badge { font-size: 11px; letter-spacing: .12em; color: #3df59b; font-weight: 700; }
.session-info strong { font-size: 16px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-info small { font-size: 13px; color: var(--muted, #b8b2d4); }
.session-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.session-btn { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.session-logout { min-height: 44px; padding: 8px 10px; font-size: 14px; }
@media (max-width: 520px) {
  input, select, textarea { font-size: 16px !important; }
  .session-bar { margin: 10px 12px 4px; }
  .session-actions { width: 100%; justify-content: space-between; }
}
.gate-install { margin: 28px auto 0; display: flex; width: fit-content; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; font-size: 13px !important; cursor: pointer; }

/* Live camera capture modal */
.cam-modal { position: fixed; inset: 0; z-index: 120; background: rgba(5, 6, 15, .94); display: grid; place-items: center; padding: 16px; }
.cam-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.cam-box video { width: 100%; max-height: 68dvh; border-radius: 16px; background: #000; border: 2px solid rgba(255, 210, 63, .45); object-fit: cover; }
.cam-actions { display: flex; gap: 10px; width: 100%; justify-content: center; flex-wrap: wrap; }
.cam-actions .btn { min-height: 44px; }

/* Clean rounded emblem framing for MPL logo */
.gate-logo, .org, .foot img { border-radius: 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); }

/* Midnight Navy border on all buttons and stat cards */
.btn, .btn.hot, .btn.sec, .music, .install-btn, .ph-btns label, .ph-btns button, .chips-in span, .stat {
  border: 4px solid #001848 !important;
  box-shadow: 0 4px 16px rgba(0, 24, 72, .45);
}

/* Disabled state for submit button until all required fields + declaration are filled */
.btn.submit:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.4); animation: none !important; box-shadow: none !important; }

/* Finale MPL full logo */
.finale-logo { position: relative; z-index: 2; width: min(190px, 46vw); height: auto; border-radius: 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, .6); margin-bottom: 10px; opacity: 0; transform: scale(.7); transition: opacity .6s, transform .6s cubic-bezier(.2, 1.5, .4, 1); }
.finale.s3 .finale-logo { opacity: 1; transform: scale(1); }
