/* Statystyki meczu na stronę — karta 4:5. Wszystkie wymiary w cqw (procent szerokości karty),
   więc układ jest identyczny na telefonie 320 px i w artykule 480 px. Animacje tylko transform
   i opacity; stany początkowe działają wyłącznie z klasą .js (bez skryptu widać wartości). */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/anton-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/anton-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hubot Sans'; font-style: normal; font-weight: 400 900; font-stretch: 75% 125%; font-display: swap;
  src: url(fonts/hubot-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hubot Sans'; font-style: normal; font-weight: 400 900; font-stretch: 75% 125%; font-display: swap;
  src: url(fonts/hubot-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #12235A; --navy-deep: #050A1F; --blue: #1F3C98; --red: #E40728; --red-deep: #14030A;
  --ink: #0B163F; --paper: #F4F5F9;
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Hubot Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --emblem: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='11.8945%2030.8148%205.2911%204.3597'%3E%3Cpath%20fill='%23FFFFFF'%20fill-opacity='.07'%20d='M12.741%2033.1428L11.8945%2032.2116L13.3759%2030.8148L14.2226%2031.6613L13.757%2032.1692L14.7305%2033.1428L15.6618%2032.1692L15.1538%2031.7036L16.0004%2030.8571L17.1856%2031.9153L16.8893%2033.4391L16.085%2032.6349L15.1538%2033.5661L16.2543%2034.6666L15.8734%2035.1322L14.7305%2033.9894L13.5029%2035.1745L13.122%2034.7089L14.2649%2033.5661L13.3336%2032.5925L12.741%2033.1428Z'/%3E%3C/svg%3E");
  --emblem-dark: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='11.8945%2030.8148%205.2911%204.3597'%3E%3Cpath%20fill='%2312235A'%20fill-opacity='.06'%20d='M12.741%2033.1428L11.8945%2032.2116L13.3759%2030.8148L14.2226%2031.6613L13.757%2032.1692L14.7305%2033.1428L15.6618%2032.1692L15.1538%2031.7036L16.0004%2030.8571L17.1856%2031.9153L16.8893%2033.4391L16.085%2032.6349L15.1538%2033.5661L16.2543%2034.6666L15.8734%2035.1322L14.7305%2033.9894L13.5029%2035.1745L13.122%2034.7089L14.2649%2033.5661L13.3336%2032.5925L12.741%2033.1428Z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--navy-deep); }
body { display: grid; place-items: center; overflow: hidden; font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

/* Karta: w ramce 4:5 wypełnia ją całą; otwarta osobno — największa 4:5 mieszcząca się w oknie. */
.stage { position: relative; width: min(100vw, 80vh); width: min(100vw, 80svh); aspect-ratio: 4 / 5; container-type: inline-size; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; outline: none; color: #fff; --fg: #fff; }
.stage:focus-visible { box-shadow: inset 0 0 0 3px #fff; }

/* Tło slajdu: zdjęcie i/lub wideo (YouTube, bez kontrolek) z kadrem, pod przyciemnieniem
   w barwie motywu (--dim). Slajd z tłem nie ma własnego gradientu. */
.bg { position: absolute; inset: 0; overflow: hidden; background: var(--navy-deep); }
.bg__move { position: absolute; inset: 0; }
.bg__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Film wyłania się dopiero, gdy YouTube schowa swoje przyciski startowe (stats.js). */
.bg__video { position: absolute; border: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease-out; }
.bg__video.is-ready { opacity: 1; }
.bg__shade { position: absolute; inset: 0; }

/* Slajdy — motywy jak drukowany program: granat, biel, czerwień. */
.slides, .slide { position: absolute; inset: 0; }
.slide { display: flex; flex-direction: column; padding: 15cqw 7cqw 17cqw; overflow: hidden; color: var(--fg); --muted: rgba(255, 255, 255, .72); --track: rgba(255, 255, 255, .16); --dot: rgba(255, 255, 255, .22); }
.slide::after { content: ''; position: absolute; right: -14cqw; bottom: -10cqw; width: 78cqw; aspect-ratio: 5.2911 / 4.3597; background: var(--emblem) no-repeat center / contain; pointer-events: none; }
/* Barwy zależne od motywu — slajd może trafić na każdy, gdy klub odznaczy inne. */
.slide[data-theme='navy'] { background: linear-gradient(160deg, var(--blue) -20%, var(--navy) 42%, var(--navy-deep) 100%); --fg: #fff; --accent: #FF4D63; --women: var(--red); --men: #fff; --stamp: #FF3B55; }
.slide[data-theme='red'] { background: linear-gradient(160deg, #F2213E -20%, #A1051F 45%, var(--red-deep) 100%); --fg: #fff; --accent: #fff; --women: #fff; --men: var(--navy-deep); --stamp: #fff; }
.slide[data-theme='white'] { background: linear-gradient(170deg, #fff 30%, var(--paper) 100%); --fg: var(--ink); --accent: var(--red); --women: var(--red); --men: var(--blue); --stamp: var(--red); --muted: rgba(11, 22, 63, .66); --track: rgba(11, 22, 63, .1); --dot: rgba(11, 22, 63, .12); }
.slide[data-theme='white']::after { background-image: var(--emblem-dark); }
/* Mocniej niż motyw slajdu — inaczej gradient motywu zasłania zdjęcie albo film. */
.stage .slide.has-bg { background: transparent; }
.slide[data-theme='navy'] .bg__shade { background: linear-gradient(180deg, rgba(5, 10, 31, calc(var(--dim) * .5)) 0%, rgba(5, 10, 31, calc(var(--dim) * .85)) 35%, rgba(5, 10, 31, var(--dim)) 60%, rgba(5, 10, 31, calc(var(--dim) * 1.2)) 100%); }
.slide[data-theme='red'] .bg__shade { background: linear-gradient(180deg, rgba(150, 4, 30, calc(var(--dim) * .7)) 0%, rgba(110, 3, 22, var(--dim)) 55%, rgba(20, 3, 10, calc(var(--dim) * 1.2)) 100%); }
.slide[data-theme='white'] .bg__shade { background: rgba(255, 255, 255, calc(var(--dim) + .12)); }
/* Ukryte slajdy przezroczyste, nie „visibility: hidden” — przeglądarki nie odtwarzają
   wyciszonego wideo w niewidocznym elemencie, a film następnego slajdu ma grać już przed nim. */
.js .slide { opacity: 0; pointer-events: none; }
.js .slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
/* Przed startem (karta jeszcze poza ekranem) — tło okładki zamiast pustej ramki. */
.js .stage:not(.is-started) .slide:first-child { opacity: 1; }
html:not(.js) .slide ~ .slide { display: none; }

.s-head { position: absolute; left: 7cqw; right: 7cqw; display: flex; justify-content: space-between; gap: 3cqw; font-weight: 700; font-stretch: 85%; font-size: 2.9cqw; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.s-head { top: 7.5cqw; align-items: center; }
.s-head__teams { display: flex; align-items: center; gap: 1.4cqw; }
.s-head img { width: 4.6cqw; height: 4.6cqw; object-fit: contain; }
.s-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; flex: 1; gap: 4cqw; }

.kicker { font-weight: 800; font-stretch: 85%; font-size: 3.4cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.title { font-family: var(--display); font-weight: 400; font-size: 9.4cqw; line-height: 1.05; text-transform: uppercase; letter-spacing: .005em; }
.teams-wrap { position: relative; }
.teams { display: flex; flex-direction: column; gap: 1.6cqw; font-family: var(--display); font-weight: 400; font-size: 10.6cqw; line-height: 1; text-transform: uppercase; }
.team { display: flex; align-items: center; gap: 3cqw; }
.crest { width: 11cqw; height: 11cqw; object-fit: contain; flex: none; }
.kicker--logo { display: flex; align-items: center; gap: 3cqw; }
.league-logo { height: 10cqw; width: auto; max-width: 40cqw; object-fit: contain; }
/* Logo rozgrywek bywa białe (pod ciemne tło) — na jasnym slajdzie jednolicie ciemne. */
.slide[data-theme='white'] .league-logo { filter: brightness(0); opacity: .85; }
.kicker--logo span { padding-left: 3cqw; border-left: 2px solid currentColor; font-size: 3.8cqw; }
.hero { position: relative; }
/* Pieczątka „SOLD OUT” — tusz z filtra #stamp-ink, przekrzywiona jak przybita ręką. */
.stamp { position: absolute; width: 36cqw; height: auto; overflow: visible; color: var(--stamp); opacity: .93; transform: rotate(-4deg); pointer-events: none; }
.stamp--cover { right: 1cqw; top: 50%; margin-top: -13cqw; width: 30cqw; }
.stamp--fill { right: 0; top: -7cqw; }
.stamp__big { font-family: var(--display); font-size: 48px; letter-spacing: 3px; text-anchor: middle; fill: currentColor; }
.stamp__arc { font-family: var(--display); font-size: 30px; letter-spacing: 4px; text-anchor: middle; fill: currentColor; }
.stamp__stars { fill: currentColor; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.badges li { padding: 1.2cqw 2.2cqw; background: var(--accent); color: #fff; font-weight: 800; font-stretch: 88%; font-size: 3.1cqw; letter-spacing: .03em; text-transform: uppercase; }
.slide[data-theme='red'] .badges li { color: var(--red); }
.date { font-weight: 600; font-size: 3.6cqw; color: var(--muted); }
.num { font-family: var(--display); font-weight: 400; font-variant-numeric: tabular-nums; line-height: .95; display: inline-block; }
.num--hero { font-size: 23cqw; letter-spacing: -.01em; }
.num--big { font-size: 21cqw; }
.hero { display: flex; flex-direction: column; gap: 1.6cqw; }
.hero__cap { font-weight: 700; font-stretch: 90%; font-size: 4.3cqw; line-height: 1.25; max-width: 70cqw; }
/* Krótka liczba z opisem obok (2–3 wiersze), np. „56 | osób świętowało urodziny w dniu meczu”. */
.hero--side { flex-direction: row; align-items: center; gap: 4.4cqw; }
.hero--side .hero__cap { max-width: 38cqw; font-size: 4.6cqw; line-height: 1.2; }
.note { font-size: 3.3cqw; line-height: 1.35; color: var(--muted); }
.s-body--cover { justify-content: flex-end; gap: 2.8cqw; }
/* Okładka mieści do dwóch plakietek nad przyciskami — trochę mniejsze elementy niż na slajdach. */
.s-body--cover .teams { font-size: 9.6cqw; }
.s-body--cover .crest { width: 10cqw; height: 10cqw; }
.s-body--cover .num--hero { font-size: 20cqw; }
.s-body--cover .hero__cap { font-size: 4cqw; max-width: none; }
/* Rozgrywki na okładce u samej góry (pod paskiem postępu), mniejsze. */
.s-body--cover > .kicker { position: absolute; top: -4.2cqw; left: 0; right: 0; }
.s-body--cover .league-logo { height: 6.5cqw; }
.s-body--cover .kicker--logo span { font-size: 3.2cqw; padding-left: 2.4cqw; }
.s-body--cover .kicker--logo { gap: 2.4cqw; }
.badges li { font-size: 2.8cqw; padding: 1cqw 2cqw; }
.slide--frekwencja { padding-top: 11cqw; }

/* Zapełnienie — trybuna z krzesełkami zapalanymi od dołu. */
.stand { display: grid; grid-template-columns: repeat(24, 1fr); gap: .9cqw .7cqw; transform: perspective(70cqw) rotateX(24deg); transform-origin: 50% 100%; }
.stand i { display: block; aspect-ratio: 1.2; border-radius: .6cqw .6cqw .2cqw .2cqw; background: var(--dot); }
.stand i.is-on { background: var(--accent); }

/* Wiek: jeden słupek na grupę (długość = udział), w środku panie i panowie. */
.gender-key { display: flex; gap: 5cqw; font-weight: 700; font-size: 3.3cqw; color: var(--muted); }
.gender-key__note { margin-left: auto; font-weight: 500; }
.gender-key__w::before, .gender-key__m::before { content: ''; display: inline-block; width: 2.6cqw; height: 2.6cqw; margin-right: 1.4cqw; vertical-align: -.2cqw; }
.gender-key__w::before { background: var(--women); }
.gender-key__m::before { background: var(--men); }
.bars--ages { gap: 1.5cqw; }
.bars--ages .bars__label { font-size: 3.4cqw; }
.bars--ages .num { font-size: 4.6cqw; }
.bars--ages .bars__track { height: 1.8cqw; }
.bars__fill { display: flex; height: 100%; width: var(--w); background: var(--dot); transform-origin: left; }
.bars__fill i { display: block; height: 100%; }
.bars__w { background: var(--women); }
.bars__m { background: var(--men); }

/* Źródło danych gmin — widoczne, bo to nie wszyscy kibice. */
.source { padding: 1.8cqw 2.4cqw 1.8cqw 3cqw; border-left: 1cqw solid var(--accent); background: var(--track); font-weight: 700; font-size: 3.7cqw; line-height: 1.3; }

/* Następny mecz i bilety. */
.s-body--next { gap: 3.2cqw; }
.next-teams { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
.next-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; text-align: center; }
.next-crest { width: 16cqw; height: 16cqw; object-fit: contain; }
.next-team b { font-family: var(--display); font-weight: 400; font-size: 7.6cqw; line-height: 1; text-transform: uppercase; }
.next-vs { font-weight: 800; font-stretch: 85%; font-size: 3.4cqw; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.cta { align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 3.4cqw 6cqw; background: var(--red); color: #fff; font-family: var(--display); font-size: 6.4cqw; line-height: 1; text-transform: uppercase; text-decoration: none; transition: transform .22s var(--ease), filter .2s; touch-action: manipulation; }
.slide[data-theme='red'] .cta { background: #fff; color: var(--red); }
.cta:active { transform: scale(.96); transition-duration: .09s; }
.cta:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }


/* Bilety / karnety. */
.split { display: flex; flex-direction: column; gap: 2cqw; max-width: 74cqw; }
.split__bar { height: 2.4cqw; background: var(--dot); overflow: hidden; }
.split__bar i { display: block; height: 100%; width: var(--w); background: var(--women); transform-origin: left; }
.split__legend { display: flex; justify-content: space-between; gap: 3cqw; font-size: 3.3cqw; color: var(--muted); }
.split__legend b { color: var(--fg); font-weight: 800; margin-left: 1cqw; }
.split__a::before, .split__b::before { content: ''; display: inline-block; width: 2.2cqw; height: 2.2cqw; margin-right: 1.4cqw; background: var(--women); vertical-align: -.2cqw; }
.split__b::before { background: var(--dot); }

/* Kobiety i mężczyźni — pierścień. */
.donut { position: relative; width: 62cqw; align-self: center; }
.donut svg { display: block; width: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 6.4; }
.donut__track { stroke: var(--track); }
.donut__arc { stroke-dasharray: var(--p) 100; stroke-dashoffset: 0; transform: rotate(calc(var(--o) * 3.6deg)); transform-origin: 21px 21px; }
.donut__arc--men { stroke: var(--men); }
.donut__arc--women { stroke: var(--women); }
.donut__mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; }
.donut__mid .num { font-size: 11cqw; }
.donut__mid span { font-weight: 700; font-size: 3.4cqw; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.legend { display: flex; justify-content: center; gap: 7cqw; font-size: 3.6cqw; font-weight: 600; }
.legend li::before { content: ''; display: inline-block; width: 2.6cqw; height: 2.6cqw; margin-right: 1.6cqw; vertical-align: -.2cqw; }
.legend__women::before { background: var(--women); }
.legend__men::before { background: var(--men); }
.legend b { font-weight: 800; }

/* Debiutanci — 100 kropek = wszyscy na trybunach, zapalone = debiutanci. */
.dots-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1cqw 3cqw; font-size: 3.3cqw; font-weight: 600; color: var(--muted); }
.dots-key__on { color: var(--fg); font-weight: 800; }
.dots-key__on::before { content: ''; display: inline-block; width: 2.6cqw; height: 2.6cqw; margin-right: 1.4cqw; border-radius: 50%; background: var(--accent); vertical-align: -.2cqw; }
.dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 1.3cqw; width: 100%; }
.dots i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--dot); }
.dots i.is-on { background: var(--accent); }

/* Grupy wiekowe i gminy — paski względem największej wartości. */
.bars { display: flex; flex-direction: column; gap: 2.6cqw; }
.bars__row { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 1cqw; }
.bars__label { font-weight: 700; font-stretch: 90%; font-size: 3.7cqw; }
.bars__row .num { font-size: 5.4cqw; }
.bars__track { grid-column: 1 / -1; height: 2cqw; background: var(--track); }
.bars__track > i { display: block; height: 100%; width: var(--w); background: var(--accent); transform-origin: left; }
.slide[data-theme='navy'] .bars__track > i { background: linear-gradient(90deg, var(--red), #FF4D63); }

/* Rekordziści. */
.records { display: flex; flex-direction: column; }
.record { display: grid; grid-template-columns: 30cqw 1fr; align-items: center; gap: 4cqw; padding: 3.4cqw 0; border-top: 2px solid var(--track); }
.record:last-child { border-bottom: 2px solid var(--track); }
.record .num { color: var(--accent); justify-self: end; }
.record__text { display: flex; flex-direction: column; gap: .8cqw; }
.record__label { font-weight: 800; font-stretch: 85%; font-size: 3.2cqw; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.record__unit { font-family: var(--display); font-size: 7.4cqw; line-height: 1; text-transform: uppercase; }
.record__name { font-weight: 700; font-size: 4.2cqw; }

/* Urodziny. */
.mini { display: flex; flex-direction: column; gap: 2.2cqw; }
.mini li { display: flex; justify-content: space-between; align-items: baseline; gap: 3cqw; padding-top: 2.2cqw; border-top: 1px solid var(--track); font-size: 3.6cqw; }
.mini span { color: var(--muted); }
.mini b { font-weight: 800; text-align: right; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* Konfetti w barwach klubu: biel, niebieski, czerwień; paski, kwadraty, kółka. */
.confetti i { position: absolute; top: -8cqw; left: calc(var(--x) * 1%); width: 1.8cqw; height: 3.4cqw; background: #fff; opacity: 0; }
.confetti i:nth-child(3n + 2) { background: #2348C8; }
.confetti i:nth-child(3n) { background: #FF1F3D; box-shadow: 0 0 0 .25cqw rgba(255, 255, 255, .25); }
.confetti i:nth-child(4n) { width: 2.4cqw; height: 2.4cqw; }
.confetti i:nth-child(5n) { width: 1cqw; height: 4.6cqw; }
.confetti i:nth-child(7n) { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; }

/* Imiona. */
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 6cqw; }
.names h3 { font-weight: 800; font-stretch: 85%; font-size: 3.3cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 2cqw; margin-bottom: 2.6cqw; border-bottom: 2px solid var(--accent); }
.names ol { display: flex; flex-direction: column; gap: 2.4cqw; }
.names li { display: flex; align-items: baseline; gap: 2cqw; font-family: var(--display); font-size: 6.4cqw; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.names li:first-child { font-size: 9cqw; }
.names__rank { font-family: var(--sans); font-weight: 800; font-size: 3.2cqw; color: var(--accent); min-width: 3cqw; }

/* Podsumowanie. */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw 6cqw; }
.summary__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 1.4cqw; padding-top: 2.6cqw; border-top: 2px solid var(--accent); }
.summary dd { font-size: 12cqw; }
.summary dt { font-weight: 600; font-size: 3.4cqw; line-height: 1.25; color: var(--muted); }
.thanks { font-family: var(--display); font-size: 7cqw; text-transform: uppercase; color: var(--accent); }

/* Pasek postępu i przyciski — kolor wg motywu bieżącego slajdu. */
.bar { position: absolute; z-index: 3; top: 3.2cqw; left: 4cqw; right: 4cqw; display: flex; gap: 1cqw; }
.bar__seg { flex: 1; height: max(2px, .7cqw); background: rgba(255, 255, 255, .32); overflow: hidden; }
.bar__seg i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.bar__seg.is-done i { transform: scaleX(1); }
.bar__seg.is-active i { animation: fill var(--dur, 7s) linear forwards; }
.is-paused .bar__seg.is-active i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.controls { position: absolute; z-index: 3; right: 4cqw; bottom: 4cqw; display: flex; gap: 1.6cqw; }
.ctl { display: grid; place-items: center; width: max(40px, 10.5cqw); height: max(40px, 10.5cqw); padding: 0; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(5, 10, 31, .18); color: #fff; cursor: pointer; transition: transform .22s var(--ease), background-color .2s; touch-action: manipulation; }
.ctl:active { transform: scale(.94); transition-duration: .09s; }
.ctl:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ctl svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }
.ctl .i-play path { fill: currentColor; stroke: none; }
.ctl .i-play, .ctl .i-replay, .is-paused .ctl .i-pause, .is-ended .ctl .i-pause, .is-ended .ctl .i-play { display: none; }
.is-paused .ctl .i-play, .is-ended .ctl .i-replay { display: block; }
.stage[data-theme='white'] .bar__seg { background: rgba(11, 22, 63, .16); }
.stage[data-theme='white'] .bar__seg i { background: var(--ink); }
.stage[data-theme='white'] .ctl { color: var(--ink); border-color: rgba(11, 22, 63, .35); background: rgba(255, 255, 255, .6); }
.stage[data-theme='white'] .ctl:focus-visible { outline-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .cta:hover { filter: brightness(1.1); }
  .ctl:hover { background: rgba(255, 255, 255, .16); }
  .stage[data-theme='white'] .ctl:hover { background: rgba(11, 22, 63, .08); }
}

/* Wejście slajdu: elementy [data-a] po kolei (--i), paski, pierścień, kropki, konfetti. */
.js [data-a] { opacity: 0; transform: translateY(5cqw); }
.js .is-active [data-a] { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .75s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.js .teams .team { clip-path: inset(0 0 100% 0); transform: translateY(60%); }
.js .is-active .teams .team { clip-path: inset(-10% 0 -10% 0); transform: none; transition: clip-path .8s var(--ease) .3s, transform .8s var(--ease) .3s; }
.js .is-active .teams .team + .team { transition-delay: .45s; }
.js .is-active .bg__move { animation: kenburns 16s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } }
/* Przybicie pieczątki po odliczeniu liczb: spada, uderza, odbija się i zostaje krzywo. */
.js .stamp { opacity: 0; }
.js .is-active .stamp { animation: stamp-hit .6s cubic-bezier(.2, .9, .3, 1) 2.1s both; }
.js .is-active .hero--stamped .num--hero { animation: thud .34s ease-out 2.42s; }
@keyframes stamp-hit {
  0% { opacity: 0; transform: translateY(-16cqw) rotate(6deg) scale(2.3); }
  55% { opacity: 1; transform: translateY(0) rotate(-7deg) scale(.93); }
  74% { transform: rotate(-3deg) scale(1.03); }
  100% { opacity: .93; transform: rotate(-4deg) scale(1); }
}
@keyframes thud { 30% { transform: translateY(.9cqw) scaleY(.95); } }
.js .stand i.is-on { background: var(--dot); }
.js .is-active .stand i.is-on { background: var(--accent); transition: background-color .25s; transition-delay: calc(var(--i) * 7ms + 500ms); }

.js .split__bar i, .js .bars__track > i, .js .bars__fill { transform: scaleX(0); }
.js .is-active .split__bar i { transform: scaleX(1); transition: transform 1.2s var(--ease) .9s; }
.js .is-active .bars__track > i, .js .is-active .bars__fill { transform: scaleX(1); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 350ms); }
.js .donut__arc { stroke-dashoffset: var(--p); }
.js .is-active .donut__arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) .45s; }
.js .is-active .donut__arc--women { transition-delay: 1.15s; }
.js .dots i { transform: scale(.3); opacity: .4; }
.js .is-active .dots i { transform: none; opacity: 1; transition: transform .45s var(--ease), opacity .45s; transition-delay: calc(var(--i) * 6ms + 300ms); }
.js .is-active .dots i.is-on { transition-delay: calc(var(--i) * 70ms + 1s); }
.js .is-active .confetti i { animation: confetti calc(var(--t) * 1ms) cubic-bezier(.25, .55, .45, 1) calc(var(--d) * 1ms + 250ms) 1 both; }
@keyframes confetti {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate3d(1, .4, .2, 0deg); }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc(var(--s) * 1cqw), 145cqw, 0) rotate3d(1, .4, .2, calc(var(--s) * 60deg + 900deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-a], .js .teams .team, .js .split__bar i, .js .bars__track > i, .js .bars__fill, .js .dots i { opacity: 1; transform: none; clip-path: none; transition: none !important; }
  .js .stamp { opacity: .93; animation: none !important; }
  .js .num--hero { animation: none !important; }
  .js .stand i.is-on { background: var(--accent); transition: none !important; }
  .js .bg__move { animation: none !important; }
  .js .donut__arc { stroke-dashoffset: 0; transition: none !important; }
  .js .confetti { display: none; }
}
