/* LZS Zawada – arkusz stylów */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  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 {
  --night: #06281A;      /* murawa nocą – tło */
  --turf: #0B3B25;       /* panele */
  --turf-2: #115234;     /* obramowania, pasy */
  --green: #12994A;      /* zieleń klubowa */
  --yellow: #FFD60A;     /* żółć klubowa */
  --chalk: #F4F1E1;      /* kreda z linii boiska */
  --ink: #04170F;        /* tekst na jasnym */
  --win: #2FCB6B;
  --draw: #B9C2B4;
  --loss: #F0604D;
  --muted: rgba(244, 241, 225, .66);
  --line: rgba(244, 241, 225, .16);
  --font: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.section--yellow :focus-visible, .section--chalk :focus-visible { outline-color: var(--ink); }
abbr { text-decoration: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- kurtyna na wejście ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; display: flex; pointer-events: none; }
.curtain i {
  flex: 1; margin-inline: -1px; background: var(--green);
  transform-origin: top; animation: curtain .9s var(--ease) forwards;
  animation-delay: calc(var(--n) * 70ms + 150ms);
}
.curtain i:nth-child(even) { background: var(--yellow); transform-origin: bottom; }
.curtain i:nth-child(1) { --n: 0 } .curtain i:nth-child(2) { --n: 1 } .curtain i:nth-child(3) { --n: 2 }
.curtain i:nth-child(4) { --n: 3 } .curtain i:nth-child(5) { --n: 4 } .curtain i:nth-child(6) { --n: 5 }
@keyframes curtain { to { transform: scaleY(0); } }

/* ---------- linia boczna z piłką = postęp przewijania ---------- */
.touchline { position: fixed; z-index: 40; left: 22px; top: 96px; bottom: 28px; width: 3px; background: var(--line); border-radius: 3px; display: none; }
.touchline__fill { position: absolute; inset: 0 0 auto 0; height: calc(var(--p, 0) * 100%); background: var(--yellow); border-radius: 3px; }
.touchline__ball { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 26px; height: 26px; margin: -13px 0 0 -13px; transform: rotate(calc(var(--p, 0) * 1440deg)); filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.touchline__ball svg { display: block; width: 100%; height: 100%; }
@media (min-width: 1320px) { .touchline { display: block; } }

/* ---------- herby ---------- */
.crest {
  --c1: var(--green); --c2: var(--yellow);
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center; overflow: hidden;
  background: linear-gradient(115deg, var(--c1) 0 50%, var(--c2) 50% 100%);
  box-shadow: inset 0 0 0 2px rgba(244,241,225,.9), 0 2px 8px rgba(0,0,0,.25);
  color: #fff; font-weight: 800; font-size: 13px; font-stretch: 75%; letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crest--img { display: inline-block; background: none; box-shadow: none; border-radius: 0; overflow: visible; filter: drop-shadow(0 0 .6px rgba(244, 241, 225, .9)); }
.crest--lg { width: 56px; height: 56px; font-size: 17px; }
.crest--xl { width: 84px; height: 84px; font-size: 25px; }
.crest--sm { width: 28px; height: 28px; font-size: 9.5px; box-shadow: inset 0 0 0 1.5px rgba(244,241,225,.9); }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(16px, 4vw, 44px);
  transition: background .3s, box-shadow .3s, height .3s;
}
.nav.is-stuck { background: rgba(6, 40, 26, .86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); height: 60px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__name { font-weight: 900; font-stretch: 68%; font-size: 24px; text-transform: uppercase; letter-spacing: .01em; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; padding: 9px 11px; text-decoration: none; font-weight: 600; font-size: 15.5px; border-radius: 999px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__links a.is-current { color: var(--yellow); }
.nav__burger { display: none; width: 46px; height: 46px; border: 0; background: none; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 3px; background: var(--chalk); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 27px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav__burger { display: block; z-index: 2; }
  .nav__brand { z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0;
    padding: 84px 28px 36px; background: var(--night); overflow-y: auto;
    clip-path: circle(0 at calc(100% - 39px) 34px); visibility: hidden;
    transition: clip-path .55s var(--ease), visibility 0s .55s;
  }
  .nav__links.is-open { clip-path: circle(150% at calc(100% - 39px) 34px); visibility: visible; transition: clip-path .55s var(--ease), visibility 0s; }
  .nav__links { justify-content: flex-start; }
  .nav__links a { font-size: min(44px, 5.6vh, 11vw); font-weight: 900; font-stretch: 66%; text-transform: uppercase; padding: 3px 0; line-height: 1.15; }
  .nav__links a.nav__cta { margin: 14px 0 0; padding: 6px 22px; font-size: min(30px, 4.4vh); }
  .nav__links a::after { left: 0; right: 0; bottom: 2px; height: 4px; }
}

/* ---------- przyciski ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 17px; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), color .25s;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.btn::before { content: ''; position: absolute; inset: -2px; z-index: -1; transform: translateY(101%); transition: transform .4s var(--ease); }
.btn:hover::before { transform: none; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow::before { background: var(--chalk); }
.btn--ghost { border-color: var(--chalk); color: var(--chalk); }
.btn--ghost::before { background: var(--chalk); }
.btn--ghost:hover { color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--yellow); }
.btn--ink::before { background: var(--green); }
.btn--ink:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 110px 0 56px; overflow: hidden; isolation: isolate; }
.hero__turf { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__stripes {
  position: absolute; right: -6vw; bottom: -1px; width: min(46vw, 620px); aspect-ratio: 1.25; z-index: -1;
  background: repeating-linear-gradient(115deg, var(--yellow) 0 26px, var(--green) 26px 52px);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: .95;
}
.hero__inner { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.hero__title {
  font-weight: 900; text-transform: uppercase; line-height: .8; letter-spacing: -.01em;
  font-size: clamp(84px, 15vw, 232px); margin-left: -.03em; user-select: none;
}
.hero__title-row { display: block; white-space: nowrap; }
.hero__title-row--small { font-size: .34em; line-height: 1; color: var(--yellow); margin-left: .05em; }
.hero__title .ch {
  display: inline-block; font-stretch: 68%;
  font-variation-settings: 'wdth' 68;
  transform: translateY(110%); opacity: 0;
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms + 750ms);
}
.hero__title.is-live .ch { animation: none; transform: none; opacity: 1; transition: font-variation-settings .25s ease-out; }
@keyframes rise { to { transform: none; opacity: 1; } }
@keyframes breathe { 0%, 100% { font-variation-settings: 'wdth' 62; } 50% { font-variation-settings: 'wdth' 84; } }
.hero__crest {
  position: absolute; left: 76%; top: 40%; translate: -50% -50%; z-index: -1;
  height: min(40vh, 30vw, 380px); width: auto;
  filter: drop-shadow(0 0 1.5px rgba(244, 241, 225, .85)) drop-shadow(0 22px 40px rgba(0, 0, 0, .5));
  opacity: 0; scale: .86; animation: crest 1.1s var(--ease) 1.2s forwards;
}
@keyframes crest { to { opacity: 1; scale: 1; } }
@media (max-width: 900px) {
  .hero__title { font-size: clamp(84px, 19vw, 190px); }
  .hero__crest { position: static; translate: none; display: block; height: 124px; margin-bottom: 18px; }
}
.hero__lead { margin-top: 22px; font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--muted); max-width: 46ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* karta najbliższego meczu */
.next {
  position: relative; margin-top: 34px; max-width: 760px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center;
  padding: 22px 26px; border-radius: 22px;
  background: rgba(6, 40, 26, .72); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 24px 60px rgba(0,0,0,.35);
}
.next__label { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 15px; font-weight: 600; color: var(--muted); }
.next__label b { color: var(--yellow); font-weight: 800; font-size: 16px; }
.next__teams { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-weight: 900; font-stretch: 70%; font-size: clamp(24px, 3.4vw, 36px); text-transform: uppercase; line-height: 1; }
.next__team { display: inline-flex; align-items: center; gap: 10px; }
.next__vs { display: none; }
.next__when { grid-column: 1 / -1; font-size: 16px; font-weight: 600; }
.next__when span { color: var(--muted); font-weight: 500; }

.count { display: flex; gap: 8px; }
.count__unit { text-align: center; }
.count__num {
  display: block; min-width: 62px; padding: 8px 6px 6px; border-radius: 12px; overflow: hidden;
  background: var(--yellow); color: var(--ink);
  font-weight: 900; font-stretch: 72%; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums;
}
.count__num span { display: block; }
.count__num.is-tick span { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-80%); opacity: 0; } }
.count__label { display: block; margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding-bottom: 36px; }
  .hero__stripes { opacity: .5; width: 70vw; }
  .next { grid-template-columns: 1fr; padding: 18px; }
  .count__num { min-width: 0; width: 100%; font-size: 32px; }
  .count { display: grid; grid-template-columns: repeat(4, 1fr); }
  .btn { flex: 1 1 auto; }
}

/* ---------- pasek wyników ---------- */
.ticker { background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 12px; padding: 13px 26px; font-weight: 800; font-stretch: 78%; font-size: 19px; text-transform: uppercase; white-space: nowrap; }
.ticker__item::after { content: ''; width: 9px; height: 9px; margin-left: 26px; background: var(--ink); transform: rotate(45deg); }
.ticker__score { padding: 2px 9px; border-radius: 7px; background: var(--ink); color: var(--chalk); font-variant-numeric: tabular-nums; }
.ticker__score[data-r="W"] { color: var(--win); } .ticker__score[data-r="P"] { color: var(--loss); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sekcje ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 132px) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
.section__lead { margin-top: 20px; max-width: 62ch; font-size: 19px; color: var(--muted); }
.heading {
  position: relative; display: inline-block; padding-bottom: 14px;
  font-weight: 900; font-stretch: 64%; text-transform: uppercase; line-height: .9; letter-spacing: -.005em;
  font-size: clamp(54px, 9vw, 116px);
}
.heading::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: var(--yellow); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .25s;
}
.heading.in::after { transform: scaleX(1); }

.section--chalk { background: var(--chalk); color: var(--ink); --muted: rgba(4, 23, 15, .68); --line: rgba(4, 23, 15, .14); }
.section--chalk .heading::after { background: var(--green); }
.section--yellow { background: var(--yellow); color: var(--ink); --muted: rgba(4, 23, 15, .74); --line: rgba(4, 23, 15, .2); overflow: hidden; }
.section--yellow .heading::after { background: var(--ink); }
.section--yellow::before {
  content: ''; position: absolute; left: -4vw; top: -1px; width: min(34vw, 420px); aspect-ratio: 1.2;
  background: repeating-linear-gradient(115deg, var(--ink) 0 22px, transparent 22px 44px);
  clip-path: polygon(0 0, 100% 0, 0 100%); opacity: .12;
}

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* przełącznik */
.seg { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--line); }
.seg button { position: relative; z-index: 1; min-height: 44px; padding: 0 20px; border: 0; background: none; border-radius: 999px; font-weight: 700; font-size: 16px; transition: color .25s; }
.seg button[aria-selected="true"] { color: var(--ink); }
.section--chalk .seg button[aria-selected="true"] { color: var(--chalk); }
.seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--yellow); transition: transform .45s var(--ease), width .45s var(--ease); }
.section--chalk .seg__thumb { background: var(--ink); }

/* ---------- sezon w liczbach ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 46px; border-block: 2px solid var(--line); }
.stat { padding: 26px 22px 24px; border-left: 2px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: block; font-weight: 900; font-stretch: 66%; font-size: clamp(64px, 9vw, 124px); line-height: .85; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .38em; font-weight: 800; color: var(--muted); margin-left: .12em; }
.stat:first-child .stat__num { color: var(--yellow); }
.stat__label { display: block; margin-top: 12px; font-weight: 700; font-size: 17px; }
.stat__sub { display: block; font-size: 15px; color: var(--muted); }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 2px solid var(--line); }
}

.season-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-top: 22px; }
@media (max-width: 960px) { .season-grid { grid-template-columns: 1fr; } }
.panel { position: relative; padding: 28px; border-radius: 22px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); }
.panel__title { font-weight: 800; font-stretch: 80%; font-size: 24px; line-height: 1.15; }
.panel__title--gap { margin-top: 30px; }
.panel__note { margin-top: 6px; font-size: 15px; color: var(--muted); max-width: 52ch; }

/* wykres goli */
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(4px, 1vw, 12px); margin-top: 26px; }
.chart__col { position: relative; display: grid; grid-template-rows: 150px 2px 150px auto; justify-items: center; border: 0; background: none; padding: 0; border-radius: 8px; }
.chart__up, .chart__down { width: 100%; display: flex; justify-content: center; }
.chart__up { align-items: flex-end; } .chart__down { align-items: flex-start; }
.chart__axis { width: 100%; background: var(--line); }
.chart__bar { width: min(100%, 38px); height: calc(var(--v) / var(--max) * 100%); border-radius: 7px 7px 0 0; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms + 150ms); }
.chart__bar--down { border-radius: 0 0 7px 7px; background: rgba(244, 241, 225, .34); transform-origin: top; }
.in .chart__bar { transform: none; }
.chart__col:hover .chart__bar, .chart__col:focus-visible .chart__bar { filter: brightness(1.2); }
.chart__tick { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.chart__dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--draw); }
.chart__dot[data-r="W"] { background: var(--win); } .chart__dot[data-r="P"] { background: var(--loss); }
.chart__tip {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; width: max-content; max-width: 220px; padding: 9px 13px; border-radius: 11px;
  background: var(--chalk); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center;
  opacity: 0; scale: .9; pointer-events: none; transition: opacity .2s, scale .2s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.chart__tip small { display: block; font-weight: 500; }
.chart__col:hover .chart__tip, .chart__col:focus-visible .chart__tip { opacity: 1; scale: 1; }
.chart__col:first-child .chart__tip { left: 0; translate: 0 -50%; }
.chart__col:last-child .chart__tip { left: auto; right: 0; translate: 0 -50%; }

/* dom / wyjazd */
.split { display: grid; gap: 16px; margin-top: 18px; }
.split__row { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; align-items: center; font-weight: 700; }
.split__bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--line); }
.split__bar i { width: 0; transition: width 1.1s var(--ease) .3s; }
.in .split__bar i { width: var(--w); }
.split__bar .w { background: var(--win); } .split__bar .d { background: var(--draw); } .split__bar .l { background: var(--loss); }
.split__val { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* forma */
.form { display: flex; gap: 8px; margin-top: 16px; }
.chip {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--ink); background: var(--draw);
  transform: scale(0) rotate(-25deg); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 90ms + 350ms);
}
.in .chip { transform: none; }
.chip[data-r="W"] { background: var(--win); } .chip[data-r="P"] { background: var(--loss); }
.chip--sm { width: 13px; height: 13px; border-radius: 50%; transform: none; transition: none; font-size: 0; }
.facts { margin-top: 26px; display: grid; gap: 10px; font-size: 16px; }
.facts li { padding-left: 20px; position: relative; color: var(--muted); }
.facts li::before { content: ''; position: absolute; left: 0; top: .52em; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }
.facts b { color: var(--chalk); font-weight: 700; }

/* ---------- tabela ---------- */
.table-scroll { margin-top: 34px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.table th { padding: 6px 10px; font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; }
.table th.t-team { text-align: left; }
.table td { padding: 11px 10px; text-align: center; font-weight: 600; font-size: 17px; background: #fff; white-space: nowrap; }
.table tr td:first-child { border-radius: 14px 0 0 14px; } .table tr td:last-child { border-radius: 0 14px 14px 0; }
.table tbody tr { transition: transform .35s var(--ease); }
.table tbody tr:hover { transform: translateX(6px); }
.table .t-pos { width: 52px; font-weight: 900; font-stretch: 72%; font-size: 24px; }
.table td.t-team { text-align: left; font-weight: 700; }
.t-team__in { display: flex; align-items: center; gap: 12px; }
.table td.t-pts { font-weight: 900; font-stretch: 72%; font-size: 26px; }
.table .t-pts { width: 150px; }
.pts { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.pts__bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(4, 23, 15, .1); overflow: hidden; min-width: 54px; }
.pts__bar i { display: block; height: 100%; width: var(--w); background: var(--green); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + 200ms); }
.in .pts__bar i { transform: none; }
.pts__num { min-width: 1.3em; text-align: right; }
.t-form__in { display: inline-flex; gap: 5px; vertical-align: middle; }
.table tbody tr { opacity: 0; translate: -24px 0; transition: opacity .6s var(--ease), translate .6s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms), 0s; }
.in .table tbody tr { opacity: 1; translate: 0 0; }
.table tr.is-us td { background: var(--ink); color: var(--chalk); }
.table tr.is-us .t-pos, .table tr.is-us .pts__num { color: var(--yellow); }
.table tr.is-us .pts__bar { background: rgba(244, 241, 225, .18); } .table tr.is-us .pts__bar i { background: var(--yellow); }
.table tr.is-flash td { animation: flash .7s ease-out; }
@keyframes flash { from { filter: brightness(1.35); } }
@media (max-width: 760px) {
  .table .t-form, .table .t-diff, .pts__bar { display: none; }
  .table .t-pts { width: auto; }
  .table td, .table th { padding-inline: 4px; font-size: 15px; }
  .table td.t-pts { padding-right: 12px; }
  .table td.t-pos { padding-left: 8px; }
  .table .t-pos { width: 34px; font-size: 20px; } .table td.t-pts { font-size: 22px; }
  .t-team__in { gap: 8px; } .t-team__in .crest { display: none; }
  .table td.t-team { white-space: normal; line-height: 1.2; }
}

/* ---------- mecze ---------- */
.tabpanel { margin-top: 36px; }
.tabpanel.is-active { animation: panel .5s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(16px); } }

.ours { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .ours { grid-template-columns: 1fr; } }
.match {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 18px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2);
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out, box-shadow .25s; overflow: hidden;
}
.match::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--gx) var(--gy), rgba(255, 214, 10, .16), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.match:hover::before { opacity: 1; }
.match:hover { box-shadow: inset 0 0 0 1.5px var(--green), 0 16px 34px rgba(0,0,0,.3); }
.match__round { width: 46px; text-align: center; font-weight: 900; font-stretch: 68%; font-size: 30px; line-height: 1; color: var(--muted); }
.match__round small { display: block; font-size: 12px; font-weight: 600; font-stretch: 100%; margin-top: 3px; }
.match__opp { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; line-height: 1.2; }
.match__meta { margin-top: 3px; font-size: 14px; color: var(--muted); }
.match__meta b { font-weight: 700; color: var(--chalk); }
.score { min-width: 64px; padding: 7px 10px; border-radius: 11px; text-align: center; font-weight: 900; font-stretch: 74%; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; background: var(--draw); color: var(--ink); }
.score[data-r="W"] { background: var(--win); } .score[data-r="P"] { background: var(--loss); }
.score--soon { background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--chalk); font-size: 17px; font-stretch: 90%; font-weight: 700; padding: 9px 10px; }
.match.is-next { box-shadow: inset 0 0 0 2.5px var(--yellow); }
.match.is-next .match__round { color: var(--yellow); }
.match.is-next .score--soon { background: var(--yellow); color: var(--ink); box-shadow: none; }
.ours__divider { grid-column: 1 / -1; margin: 22px 0 4px; font-weight: 800; font-stretch: 80%; font-size: 24px; }
.ours__divider:first-child { margin-top: 0; }
.ours__divider span { font-weight: 500; font-stretch: 100%; font-size: 16px; color: var(--muted); margin-left: 8px; }

.rounds { display: flex; align-items: center; gap: 8px; }
.rounds__pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 8px; scroll-snap-type: x proximity; }
.rounds__pills::-webkit-scrollbar { display: none; }
.rounds__pill, .rounds__arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; transition: background .25s, color .25s, transform .25s var(--ease); scroll-snap-align: center; }
.rounds__arrow { font-size: 26px; line-height: 1; padding-bottom: 4px; }
.rounds__pill:hover, .rounds__arrow:hover { transform: translateY(-3px); }
.rounds__pill.is-played { color: var(--chalk); } .rounds__pill:not(.is-played) { color: var(--muted); }
.rounds__pill[aria-pressed="true"] { background: var(--yellow); color: var(--ink); box-shadow: none; transform: scale(1.12); }
.round__title { margin-top: 26px; font-weight: 800; font-stretch: 80%; font-size: 26px; }
.round__title span { font-weight: 500; font-stretch: 100%; font-size: 17px; color: var(--muted); margin-left: 10px; }
.round { margin-top: 14px; display: grid; gap: 8px; }
.fix { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 12px 18px; border-radius: 16px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); animation: fix .5s var(--ease) backwards; animation-delay: calc(var(--i) * 55ms); }
.round[data-dir="-1"] .fix { --from: -40px; }
@keyframes fix { from { opacity: 0; transform: translateX(var(--from, 40px)); } }
.fix__team { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; line-height: 1.2; min-width: 0; }
.fix__team--home { justify-content: flex-end; text-align: right; }
.fix__team.is-us { color: var(--yellow); }
.fix__mid { text-align: center; }
.fix__mid .score { display: inline-block; background: var(--night); color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--turf-2); }
.fix__mid small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.fix__note { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--muted); }
.fix.is-us { box-shadow: inset 0 0 0 2px var(--green); }
@media (max-width: 620px) {
  .fix { padding: 12px; gap: 8px; } .fix__team { font-size: 15px; gap: 7px; } .fix__team .crest { display: none; }
  .rounds__arrow { display: none; }
}

/* ---------- puchar ---------- */
.cup { position: relative; margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .cup { grid-template-columns: 1fr; } }
.tie { display: grid; grid-template-columns: 1fr 34px auto; align-items: center; padding: 18px; border-radius: 22px; background: rgba(4, 23, 15, .07); box-shadow: inset 0 0 0 1.5px var(--line); }
.tie__games { display: grid; gap: 8px; }
.cupm { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--chalk); }
.cupm__teams { font-weight: 700; font-size: 16px; line-height: 1.3; }
.cupm__teams .is-win { font-weight: 900; } .cupm__teams .is-out { opacity: .55; }
.cupm__when { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.cupm .score { background: var(--ink); color: var(--chalk); font-size: 20px; min-width: 56px; }
.cupm .score--soon { box-shadow: inset 0 0 0 1.5px var(--line); background: none; color: var(--ink); font-size: 15px; }
.cupm.is-us { background: var(--ink); color: var(--chalk); --muted: rgba(244, 241, 225, .7); }
.cupm.is-us .score--soon { background: var(--yellow); color: var(--ink); box-shadow: none; }
.tie__link { height: calc(50% + 10px); border: 2.5px solid var(--ink); border-left: 0; border-radius: 0 12px 12px 0; position: relative; margin-left: 8px; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .4s; }
.tie__link::after { content: ''; position: absolute; left: 100%; top: 50%; width: 12px; border-top: 2.5px solid var(--ink); }
.in .tie__link { transform: none; }
.tie__next { margin-left: 20px; width: 118px; padding: 12px; border-radius: 14px; background: var(--ink); color: var(--chalk); text-align: center; font-weight: 800; font-stretch: 80%; font-size: 17px; line-height: 1.15; }
.tie__next small { display: block; margin-top: 4px; font-weight: 500; font-stretch: 100%; font-size: 13px; color: rgba(244, 241, 225, .7); }
.tie.is-us { background: rgba(4, 23, 15, .14); box-shadow: inset 0 0 0 2.5px var(--ink); }
@media (max-width: 520px) { .tie { grid-template-columns: 1fr; } .tie__link { display: none; } .tie__next { width: auto; margin: 8px 0 0; } }

/* ---------- stopka ---------- */
.footer { position: relative; padding: 72px 0 28px; background: var(--ink); overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 14px; background: repeating-linear-gradient(115deg, var(--yellow) 0 22px, var(--green) 22px 44px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.footer__brand { display: flex; align-items: center; gap: 14px; font-weight: 900; font-stretch: 66%; font-size: 44px; text-transform: uppercase; line-height: 1; }
.footer__title { font-weight: 800; font-stretch: 80%; font-size: 20px; }
.footer__text { margin-top: 10px; color: var(--muted); max-width: 40ch; }
.footer__text a:not(.btn) { color: var(--yellow); font-weight: 700; }
.footer__text .btn { margin-top: 12px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1.5px solid var(--line); font-size: 15px; color: var(--muted); }

/* ---------- mniej ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .curtain { display: none; }
  [data-reveal], .hero__title .ch, .table tbody tr, .hero__crest { opacity: 1; transform: none; translate: 0 0; scale: 1; }
  .hero__crest { translate: -50% -50%; }
  @media (max-width: 900px) { .hero__crest { translate: none; } }
  .chart__bar, .pts__bar i, .chip, .tie__link, .heading::after { transform: none; }
  .split__bar i { width: var(--w); }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* =====================================================================
   ROZSZERZENIA: sekcje klubowe, formularze, strefa piłkarza, panel klubu
   ===================================================================== */
[hidden] { display: none !important; }
html, body { max-width: 100%; }
img { max-width: 100%; }

/* ---------- nawigacja: przycisk „Dołącz” ---------- */
.nav__links { align-items: center; }
.nav__links a.nav__cta { margin-left: 8px; padding: 9px 18px; background: var(--yellow); color: var(--ink); font-weight: 800; transition: background .25s, transform .25s var(--ease); }
.nav__links a.nav__cta::after { display: none; }
.nav__links a.nav__cta:hover { background: var(--chalk); transform: translateY(-2px); }
@media (min-width: 1181px) { .nav__only-menu { display: none; } }

/* ---------- telefon: herb i tytuł na środku ---------- */
@media (max-width: 760px) {
  .hero { align-items: center; padding: 92px 0 40px; }
  .hero__inner { text-align: center; }
  .hero__crest { height: min(46vw, 190px); margin: 0 auto 20px; }
  .hero__title { margin-left: 0; font-size: clamp(64px, 23vw, 150px); }
  .hero__title-row--small { margin-left: 0; }
  .hero__lead { margin-inline: auto; }
  .next { margin-inline: auto; text-align: center; }
  .next__label { justify-content: center; }
  .next__teams { align-items: center; }
  .next__team { justify-content: center; }
  .hero__actions { justify-content: center; }
  .section__head { align-items: flex-start; }
  .heading { font-size: clamp(44px, 13.5vw, 96px); }
}
@media (max-width: 380px) { .hero__title { font-size: 21vw; } .count__label { font-size: 12px; } }

/* ---------- przyciski: wariant mały ---------- */
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
button.btn { cursor: pointer; }
.btn:disabled { opacity: .55; pointer-events: none; }

/* ---------- ciemniejsza sekcja (galeria) ---------- */
.section--deep { background: var(--ink); }

/* ---------- aktualności ---------- */
.news { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px; }
.post { display: flex; flex-direction: column; border-radius: 22px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.post:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--green), 0 18px 36px rgba(0,0,0,.3); }
.post { flex: 1 1 330px; min-width: 0; }
.post--lead { flex-basis: 100%; }
@media (min-width: 860px) {
  .post--lead.has-img { flex-direction: row; }
  .post--lead.has-img .post__img { flex: 0 0 48%; aspect-ratio: auto; min-height: 300px; }
  .post--lead .post__title { font-size: clamp(30px, 3.4vw, 44px); }
}
.post__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.post__date { align-self: flex-start; padding: 4px 11px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 800; font-stretch: 80%; font-size: 14px; }
.post__title { font-weight: 800; font-stretch: 76%; font-size: 26px; line-height: 1.1; }
.post__text { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.post__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.post__more { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.more { margin-top: 26px; text-align: center; }

/* ---------- drużyna ---------- */
.squad { margin-top: 36px; }
.squad__group { margin-top: 30px; }
.squad__group:first-child { margin-top: 0; }
.squad__pos { display: flex; align-items: baseline; gap: 12px; font-weight: 800; font-stretch: 78%; font-size: 26px; }
.squad__pos span { font-weight: 600; font-stretch: 100%; font-size: 15px; color: var(--muted); }
.squad__grid { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.player { position: relative; display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px 12px 10px; border-radius: 16px; background: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.player:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(4, 23, 15, .16); }
.player__num { font-weight: 900; font-stretch: 64%; font-size: 48px; line-height: 1; text-align: center; color: var(--green); font-variant-numeric: tabular-nums; }
.player__name { font-weight: 800; font-stretch: 86%; font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.player__meta { font-size: 14px; color: var(--muted); }
.player__stats { text-align: right; font-size: 13px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.player__stats b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.squad__staff { margin-top: 30px; padding: 20px 24px; border-radius: 18px; background: var(--ink); color: var(--chalk); display: flex; flex-wrap: wrap; gap: 8px 36px; }
.squad__staff div { font-size: 15px; color: rgba(244, 241, 225, .7); }
.squad__staff b { display: block; font-size: 19px; color: var(--chalk); font-stretch: 86%; }

/* ---------- treningi ---------- */
.trainings { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.training { position: relative; padding: 24px 24px 22px; border-radius: 22px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.training::before { content: ''; position: absolute; right: -34px; top: -34px; width: 120px; aspect-ratio: 1; background: repeating-linear-gradient(115deg, var(--yellow) 0 10px, var(--green) 10px 20px); clip-path: polygon(100% 0, 100% 100%, 0 0); opacity: .9; }
.training:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--green), 0 16px 34px rgba(0,0,0,.3); }
.training__day { font-weight: 800; font-stretch: 80%; font-size: 22px; color: var(--yellow); }
.training__time { margin-top: 2px; font-weight: 900; font-stretch: 66%; font-size: 72px; line-height: .95; font-variant-numeric: tabular-nums; }
.training__meta { margin-top: 12px; font-weight: 700; }
.training__meta span { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }
.training__note { margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--line); font-size: 15px; color: var(--muted); }

/* ---------- galeria ---------- */
.gallery { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.shot { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--turf); border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.07); }
.shot span { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(4, 23, 15, .92)); color: var(--chalk); font-weight: 700; font-size: 15px; text-align: left; }
@media (min-width: 700px) { .shot:first-child { grid-column: span 2; grid-row: span 2; } }

/* ---------- sponsorzy ---------- */
.sponsors { margin-top: 36px; }
.sponsors__tier { margin-top: 28px; font-weight: 800; font-stretch: 78%; font-size: 24px; }
.sponsors__tier:first-child { margin-top: 0; }
.sponsors__grid { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.sponsors__grid--main { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.sponsor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 170px; padding: 22px 18px; border-radius: 20px; background: #fff; text-align: center; text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s; }
a.sponsor:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(4, 23, 15, .16); }
.sponsor img { max-width: 100%; max-height: 92px; width: auto; object-fit: contain; }
.sponsors__grid--main .sponsor { min-height: 230px; }
.sponsors__grid--main .sponsor img { max-height: 140px; }
.sponsor__mono { font-weight: 900; font-stretch: 70%; font-size: 30px; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.sponsor__name { font-weight: 700; font-size: 16px; }
.sponsor__note { font-size: 14px; color: var(--muted); }
.sponcta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding: 28px 30px; border-radius: 22px; background: var(--ink); color: var(--chalk); }
.sponcta__title { font-weight: 900; font-stretch: 68%; font-size: clamp(30px, 4vw, 44px); line-height: 1; text-transform: uppercase; color: var(--yellow); }
.sponcta p { margin-top: 8px; max-width: 56ch; color: rgba(244, 241, 225, .72); }
.sponcta .btn--ink { background: var(--yellow); color: var(--ink); }
.sponcta .btn--ink::before { background: var(--chalk); }
.sponcta .btn--ink:hover { color: var(--ink); }

/* ---------- dołącz ---------- */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }
.steps { margin: 34px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; }
.steps li::before { content: counter(s); grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-weight: 900; font-stretch: 70%; font-size: 30px; }
.steps b { font-weight: 800; font-size: 19px; line-height: 1.2; align-self: end; }
.steps span { color: var(--muted); align-self: start; }
.joinform { padding: clamp(22px, 4vw, 34px); border-radius: 26px; background: var(--ink); color: var(--chalk); --muted: rgba(244, 241, 225, .66); --line: rgba(244, 241, 225, .18); box-shadow: 0 30px 60px rgba(4, 23, 15, .3); }
.joinform__title { font-weight: 900; font-stretch: 68%; font-size: 38px; line-height: 1; text-transform: uppercase; margin-bottom: 18px; }
.joinform .btn { width: 100%; margin-top: 4px; }
.joinform__ok { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--win); color: var(--ink); font-weight: 700; }
.section--yellow .joinform :focus-visible { outline-color: var(--yellow); }

/* ---------- pola formularzy ---------- */
.fld { margin-bottom: 14px; min-width: 0; }
.fld label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 14px; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 13px; border: 1.5px solid var(--line);
  background: rgba(244, 241, 225, .06); color: inherit; font: inherit; font-size: 16px; transition: border-color .2s, background .2s;
}
.fld textarea { min-height: 110px; resize: vertical; }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FFD60A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.fld option { background: var(--ink); color: var(--chalk); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--yellow); background: rgba(244, 241, 225, .1); }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(244, 241, 225, .4); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .frow { grid-template-columns: 1fr; } }
.hint { font-size: 14px; color: var(--muted); }

/* ---------- stopka: social, linki ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.socials a { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(244, 241, 225, .1); transition: background .25s, color .25s, transform .3s var(--ease); }
.socials a:hover { background: var(--yellow); color: var(--ink); transform: translateY(-3px) rotate(-5deg); }
.socials svg { width: 21px; height: 21px; fill: currentColor; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__bottom a:hover { color: var(--yellow); }
.footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* ---------- arkusze: strefa piłkarza, panel klubu ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; background: var(--night); overflow-y: auto; overscroll-behavior: contain; animation: sheet .45s var(--ease); }
@keyframes sheet { from { opacity: 0; transform: translateY(28px); } }
.sheet::before { content: ''; position: fixed; inset: 0 0 auto 0; height: 6px; z-index: 2; background: repeating-linear-gradient(115deg, var(--yellow) 0 22px, var(--green) 22px 44px); }
.sheet__bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 4vw, 44px) 12px; background: rgba(6, 40, 26, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.sheet__title { font-weight: 900; font-stretch: 66%; font-size: clamp(26px, 5vw, 38px); line-height: 1; text-transform: uppercase; }
.sheet__tools { display: flex; align-items: center; gap: 8px; }
.sheet__x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--line); font-size: 18px; transition: background .2s, color .2s, transform .3s var(--ease); }
.sheet__x:hover { background: var(--yellow); color: var(--ink); transform: rotate(90deg); }
.sheet__body { padding: 30px 0 80px; }
.sheet__h { font-weight: 800; font-stretch: 78%; font-size: 26px; margin-bottom: 14px; }
@media (max-width: 620px) { .sheet__tools .btn { padding: 0 12px; font-size: 14px; } }

.gate { max-width: 440px; margin: 6vh auto 0; padding: clamp(22px, 5vw, 34px); border-radius: 26px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); }
.gate__title { font-weight: 900; font-stretch: 68%; font-size: 36px; line-height: 1; text-transform: uppercase; }
.gate p { margin: 10px 0 18px; color: var(--muted); }
.gate .btn { width: 100%; }
.gate .gate__err { margin: 14px 0 0; color: var(--loss); font-weight: 700; }

.zone { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }
.zone__posts { display: grid; gap: 12px; }
.note { padding: 20px 22px; border-radius: 18px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); }
.note__date { font-weight: 800; font-size: 14px; color: var(--yellow); }
.note__title { margin-top: 4px; font-weight: 800; font-stretch: 84%; font-size: 21px; line-height: 1.2; }
.note__text { margin-top: 6px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.empty { padding: 26px; border-radius: 18px; border: 1.5px dashed var(--line); color: var(--muted); text-align: center; }
.banner { margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 214, 10, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 10, .5); font-size: 15px; }
.banner code { font-size: 14px; color: var(--yellow); }

/* panel klubu */
.atabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.atabs button { flex: none; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
.atabs button:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.atabs button.on { background: var(--yellow); color: var(--ink); box-shadow: none; }
.atabs .badge { display: inline-block; margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--loss); color: #fff; font-size: 12px; line-height: 20px; }
.ahead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; }
.ahead h3 { font-weight: 800; font-stretch: 78%; font-size: 26px; }
.dt-wrap { border-radius: 18px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dt { width: 100%; border-collapse: collapse; font-size: 15px; }
.dt th { padding: 12px 14px; text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 1.5px solid var(--turf-2); }
.dt td { padding: 10px 14px; border-bottom: 1px solid var(--turf-2); vertical-align: middle; }
.dt tr:last-child td { border-bottom: 0; }
.dt td.dt__acts { white-space: nowrap; text-align: right; }
.dt__thumb { width: 64px; height: 44px; border-radius: 8px; object-fit: contain; background: rgba(244, 241, 225, .9); display: block; }
.ib { width: 38px; height: 38px; border-radius: 11px; border: 0; background: var(--line); font-size: 15px; transition: background .2s, color .2s; }
.ib:hover { background: var(--yellow); color: var(--ink); }
.ib--del:hover { background: var(--loss); color: #fff; }
.acard { max-width: 760px; padding: clamp(18px, 4vw, 28px); border-radius: 20px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); margin-bottom: 16px; }
.acard h4 { font-weight: 800; font-stretch: 80%; font-size: 20px; margin: 6px 0 14px; }
.acard h4:first-child { margin-top: 0; }

/* edytor wyników */
.rpick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.rpick button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.rpick button.is-played { color: var(--win); }
.rpick button.on { background: var(--yellow); color: var(--ink); box-shadow: none; }
.redit { display: grid; gap: 8px; }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) 54px 12px 54px minmax(0, 1fr); gap: 8px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2); }
.rrow.is-us { box-shadow: inset 0 0 0 2px var(--green); }
.rrow__team { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.rrow__team:first-child { text-align: right; }
.rrow__sep { text-align: center; font-weight: 900; }
.rrow input { width: 100%; min-height: 44px; padding: 6px 8px; border-radius: 11px; border: 1.5px solid var(--line); background: rgba(244, 241, 225, .06); color: inherit; font: inherit; font-size: 16px; min-width: 0; }
.rrow input:focus { outline: none; border-color: var(--yellow); }
.rrow input.sc { text-align: center; font-weight: 900; font-size: 20px; padding: 6px 2px; -moz-appearance: textfield; }
.rrow input.sc::-webkit-outer-spin-button, .rrow input.sc::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rrow__extra { grid-column: 1 / -1; display: grid; grid-template-columns: 150px 110px 1fr; gap: 8px; }
.rrow--cup { grid-template-columns: minmax(0, 1fr) 54px 12px 54px minmax(0, 1fr) 38px; }
.rrow--cup .rrow__extra { grid-template-columns: 150px 110px; }
@media (max-width: 620px) {
  .rrow { grid-template-columns: minmax(0, 1fr) 48px 8px 48px minmax(0, 1fr); padding: 10px; gap: 6px; }
  .rrow__team { font-size: 14px; }
  .rrow__extra { grid-template-columns: 1fr 1fr; }
  .rrow__extra input:nth-child(3) { grid-column: 1 / -1; }
}

/* okno edycji, powiększenie, komunikat */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center; padding: clamp(10px, 4vh, 48px) 12px; background: rgba(4, 23, 15, .78); backdrop-filter: blur(5px); overflow-y: auto; }
.modal__box { width: min(600px, 100%); border-radius: 24px; background: var(--turf); box-shadow: inset 0 0 0 1.5px var(--turf-2), 0 40px 80px rgba(0,0,0,.5); animation: sheet .35s var(--ease); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px 24px; }
.modal__head h3 { font-weight: 800; font-stretch: 78%; font-size: 24px; }
.modal__body { padding: 12px 24px 6px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px 22px; }
.imgfld__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.imgfld__row img { height: 46px; width: auto; border-radius: 8px; background: rgba(244, 241, 225, .9); object-fit: contain; }
.imgfld__row label.btn { cursor: pointer; }

.lb { position: fixed; inset: 0; z-index: 140; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; background: rgba(4, 23, 15, .95); cursor: zoom-out; animation: lb .25s; }
@keyframes lb { from { opacity: 0; } }
.lb img { max-width: min(1200px, 100%); max-height: 84vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb p { color: var(--chalk); font-weight: 600; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 160; max-width: calc(100vw - 32px); padding: 13px 22px; border-radius: 999px; background: var(--chalk); color: var(--ink); font-weight: 700; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.45); transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s; }

@media (prefers-reduced-motion: reduce) { .sheet, .modal__box, .lb { animation: none !important; } }

/* herby w pucharze i na telefonie */
.cupm__teams span { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.cupm__teams .crest { flex: none; width: 26px; height: 26px; }
.cupm.is-us .crest:not(.crest--img) { box-shadow: inset 0 0 0 1.5px rgba(244, 241, 225, .5); }
@media (max-width: 760px) {
  .t-team__in .crest { display: inline-flex; width: 22px; height: 22px; font-size: 8px; }
  .fix__team .crest { display: inline-flex; width: 22px; height: 22px; font-size: 8px; }
}
@media (max-width: 620px) {
  .rrow--cup { grid-template-columns: minmax(0, 1fr) 48px 8px 48px 38px; }
  .rrow--cup > input[data-f="h"] { grid-column: 1 / -1; grid-row: 1; }
  .rrow--cup > input[data-f="a"] { grid-column: 1 / -1; grid-row: 2; }
  .rrow--cup > input[data-f="hg"] { grid-column: 2; grid-row: 3; }
  .rrow--cup > .rrow__sep { grid-column: 3; grid-row: 3; }
  .rrow--cup > input[data-f="ag"] { grid-column: 4; grid-row: 3; }
  .rrow--cup > .ib { grid-column: 5; grid-row: 3; justify-self: end; }
  .rrow--cup > .rrow__extra { grid-column: 1 / -1; grid-row: 4; grid-template-columns: 1fr 1fr; }
}
button.btn--ghost { background: transparent; color: inherit; }
button.btn { font-family: inherit; }
label.btn > span { display: contents; }
.fld label.btn { display: inline-flex; margin: 0; font-size: 15px; font-weight: 800; color: inherit; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
