/* fc27-transze-v3: sekcja #transze = karta transz (lewa) + baner zaufania "Od FIFA 14 do FC 27" (prawa). Tylko widz z przelacznika fc27_transze_v3.
   Dodatki v2 (baner promo, karty platform, boks sprzedawcy) zostaja w fc27-transze.css. Mobile first.
   Animacja paska: Motion Prompt #145 · MIT License (c) 2026 Shohei Ohtaki · https://showheyohtaki.github.io/motion-prompt/#145 (JS) */
.tz, .tz *, .tz *::before, .tz *::after { box-sizing: border-box; }
.tz { font-family: 'Barlow', 'Barlow Fallback', 'Helvetica Neue', Arial, sans-serif; color: #1a2230; margin: 0 0 16px; scroll-margin-top: 90px; }
.tz p, .tz h2, .tz h3, .tz ol { margin: 0; }
.tz ol { padding: 0; list-style: none; }
.tz-nw { white-space: nowrap; }

/* ---- uklad: < 1024 jedna kolumna (karta, pod nia baner, odstep 16), od 1024 dwie kolumny 1.2fr / 1fr, odstep 24, ta sama wysokosc ---- */
.tz-uklad { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) {
  .tz-uklad { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
}

/* ---- lewa: karta transz ---- */
.tz-karta {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 18px; box-shadow: 0 6px 18px rgba(13, 16, 23, 0.05); padding: 20px 16px 18px;
}
.tz-tytul { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-size: 28px; line-height: 1.1; color: #111a24; }
.tz-naglowek { font-size: 17px; line-height: 1.35; font-weight: 600; color: #1a2230; }
.tz-naglowek .tz-nw { font-weight: 800; color: #111a24; }
.tz-przyklad { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.tz-podpis { font-size: 14px; font-weight: 700; color: #4a5568; }

/* pasek transz: segmenty proporcjonalne do ilosci (grid-template-columns z widoku), okno ze stala minimalna szerokoscia */
.tz-pasek { display: grid; width: 100%; height: 46px; border-radius: 10px; overflow: hidden; background: #fff8e6; border: 1px solid #f0cf75; }
.tz-seg { position: relative; display: block; height: 100%; min-width: 0; overflow: hidden; }
.tz-fill { position: absolute; inset: 0; background: #1a2230; transform-origin: left center; will-change: transform; }
.tz-seg--okno .tz-fill { background: none; inset: auto 6px; top: 50%; height: 0; border-top: 2px dashed #b9892a; }
.tz-lab {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-size: 20px; line-height: 1; white-space: nowrap; color: #fff;
}
.tz-seg--okno .tz-lab { color: #5f4600; font-size: 16px; }
.tz-seg--okno .tz-lab span { background: #fff8e6; padding: 0 3px; white-space: nowrap; }
/* animacja #145 (poziomo, JS): bez JS i bez .tz-js wszystko od razu widoczne */
.tz-js:not(.tz-gotowe) .tz-fill { transform: scaleX(0); }
.tz-js:not(.tz-gotowe) .tz-lab { opacity: 0; transform: translateX(16px); }

.tz-limit { margin-top: 6px !important; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; color: #111a24; }
/* dwa kafle jeden pod drugim, identyczny styl i min. wysokosc 66 px */
.tz-kafle { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 8px; }
.tz-kafel {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 66px;
  background: #1a2230; border: 2px solid #3a4558; border-radius: 14px; padding: 14px 16px; color: #fff;
}
.tz-kafel--1 { border-color: #f5a623; padding-top: 20px; }
.tz-etykieta {
  position: absolute; top: -11px; left: 14px; max-width: calc(100% - 28px); padding: 1px 10px; border-radius: 999px; background: #fff; border: 1px solid #f5a623;
  font-size: 12px; line-height: 18px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: #7a4d00; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tz-kafel-tytul { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.15; color: #fff; overflow-wrap: normal; hyphens: manual; }
.tz-kafel-opis { font-size: 15px; line-height: 1.4; color: #d6dce6; overflow-wrap: normal; hyphens: manual; }

/* "Dowiedz sie wiecej": natywne <details>, zwiniete na kazdej szerokosci */
.tz-wiecej { margin-top: 2px; }
.tz-wiecej > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid #d3d9e3; border-radius: 10px; background: #fff;
  font-size: 15px; font-weight: 700; color: #1a2230; cursor: pointer; list-style: none; user-select: none;
}
.tz-wiecej > summary::-webkit-details-marker { display: none; }
.tz-wiecej > summary svg { transition: transform 0.2s; }
.tz-wiecej[open] > summary svg { transform: rotate(180deg); }
.tz-wiecej > summary:focus-visible { outline: 2px solid #f5a623; outline-offset: 2px; }
.tz-wiecej-tresc { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.tz-miedzy, .tz-trzydziesci { font-size: 16px; line-height: 1.5; color: #2d3748; }
.tz-podpowiedz {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: #fff8e6; border: 1px solid #f0cf75; font-size: 15px; line-height: 1.35; font-weight: 600; color: #4a3500;
}
.tz-podpowiedz svg { flex: 0 0 auto; }
.tz-przypis { font-size: 13.5px; line-height: 1.4; color: #5b6676; }

/* ---- prawa: baner zaufania ---- */
.tz-baner {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; overflow: hidden;
  padding: 22px 16px; border-radius: 18px; color: #fff; background-color: #111a24;
  background-image: linear-gradient(180deg, rgba(10, 16, 24, 0.72), rgba(10, 16, 24, 0.92)), linear-gradient(90deg, rgba(10, 16, 24, 0.96) 0%, rgba(10, 16, 24, 0.90) 55%, rgba(10, 16, 24, 0.62) 100%), url('https://images.supercoinsy.com/Coins/fc27-transze-v3/tlo-baner-800.webp?v=1');
  background-size: cover; background-position: right top; background-repeat: no-repeat;
}
@media (min-width: 768px) {
  .tz-baner {
    background-image: linear-gradient(90deg, rgba(10, 16, 24, 0.96) 0%, rgba(10, 16, 24, 0.90) 55%, rgba(10, 16, 24, 0.62) 100%), url('https://images.supercoinsy.com/Coins/fc27-transze-v3/tlo-baner-1200.webp?v=1');
  }
}
.tz-b-etykieta { font-size: 13px; line-height: 1.2; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #f5a623; }
.tz-b-tytul { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-size: 36px; line-height: 1.05; color: #fff; }
.tz-zl { color: #f5a623; }

.tz-edycje { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
.tz-linia { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; line-height: 1.2; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.tz-linia-fifa { color: #c3ccd9; }
.tz-linia-fc { color: #f5a623; text-align: right; }
.tz-belka { display: none; }
.tz-kafle-ed { display: grid; grid-template-columns: repeat(var(--tz-m), minmax(0, 1fr)); gap: 6px; }
.tz-ed {
  display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 8px;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-size: 19px; line-height: 1;
  background: #1f2935; border: 1px solid #2f3b4a; color: #8b97a8;
}
.tz-ed--fc { border: 2px solid #f5a623; color: #f5a623; }
.tz-ed--biezaca { background: #f5a623; border: 2px solid #f5a623; color: #111a24; }

.tz-liczby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.tz-liczba { font-size: 15px; line-height: 1.25; font-weight: 600; color: #eef2f7; }
.tz-liczba-n { word-spacing: -.22em; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-size: 30px; line-height: 1; color: #fff; }
.tz-zdanie { font-size: 17px; line-height: 1.3; font-weight: 700; color: #fff; border-left: 3px solid #f5a623; padding-left: 12px; }
@media (max-width: 359px) {
  .tz-liczby { grid-template-columns: minmax(0, 1fr); }
}

/* desktop: jeden rzad kafli w siatce n kolumn, nad nimi belki "FIFA" i "EA SPORTS FC" w tej samej siatce */
@media (min-width: 1024px) {
  .tz-karta { padding: 26px 26px 22px; }
  .tz-tytul { font-size: 32px; }
  .tz-naglowek { font-size: 19px; }
  .tz-pasek { height: 52px; }
  .tz-baner { padding: 26px 24px; gap: 18px; }
  .tz-b-tytul { font-size: 44px; }
  .tz-edycje { grid-template-columns: repeat(var(--tz-n), minmax(0, 1fr)); column-gap: 4px; row-gap: 8px; }
  .tz-linia { display: none; }
  .tz-belka {
    display: block; grid-row: 1; padding-bottom: 5px; font-size: 12.5px; line-height: 1.2; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
  }
  .tz-belka--fifa { color: #c3ccd9; border-bottom: 1px solid #5a6676; }
  .tz-belka--fc { color: #f5a623; border-bottom: 2px solid #f5a623; }
  .tz-kafle-ed { display: contents; }
  .tz-ed { grid-row: 2; height: 40px; font-size: 16px; border-radius: 6px; }
}

/* animacja baneru (JS dodaje .tz-js na sekcji, .tz-graj po wejsciu w ekran): tylko transform i opacity; bez JS wszystko widoczne */
.tz-js:not(.tz-graj) .tz-ed, .tz-js:not(.tz-graj) .tz-liczba, .tz-js:not(.tz-graj) .tz-zdanie { opacity: 0; }
.tz-js:not(.tz-graj) .tz-ed { transform: translateY(10px); }
.tz-js:not(.tz-graj) .tz-ed--biezaca { transform: scale(0.8); }
.tz-js:not(.tz-graj) .tz-liczba, .tz-js:not(.tz-graj) .tz-zdanie { transform: translateY(8px); }
.tz-js.tz-graj .tz-ed { transition: opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i) * 45ms); }
/* kafel biezacej gry: po ostatnim kaflu + 120 ms (ostatni startuje po (n-2) x 45 ms i trwa 360 ms) */
.tz-js.tz-graj .tz-ed--biezaca { transition: none; animation: tz-wskok 420ms cubic-bezier(0.2, 0.8, 0.2, 1) calc((var(--tz-n) - 2) * 45ms + 480ms) both; }
/* liczby i zdanie: po kaflu biezacej gry (+420 ms), co 120 ms */
.tz-js.tz-graj .tz-liczba, .tz-js.tz-graj .tz-zdanie { transition: opacity 400ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.tz-js.tz-graj .tz-liczba:nth-child(1) { transition-delay: calc((var(--tz-n) - 2) * 45ms + 900ms); }
.tz-js.tz-graj .tz-liczba:nth-child(2) { transition-delay: calc((var(--tz-n) - 2) * 45ms + 1020ms); }
.tz-js.tz-graj .tz-zdanie { transition-delay: calc((var(--tz-n) - 2) * 45ms + 1140ms); }
@keyframes tz-wskok {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tz-js .tz-ed, .tz-js .tz-liczba, .tz-js .tz-zdanie { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .tz-js .tz-fill { transform: none !important; }
  .tz-js .tz-lab { opacity: 1 !important; transform: none !important; }
  .tz-wiecej > summary svg { transition: none; }
}
