/* Hasło klubu (slogan.mjs): herb, litery wbijane po kolei, pasek barw, szachownica — wspólne dla
   strony kibica (intro, koniec pokazu) i telebimu (koniec pokazu). Wielkości w zmiennych: strona
   kibica w pikselach, telebim w jednostkach ekranu (telebim.css). Ruch tylko transform i opacity;
   przy „ogranicz ruch” zostaje sama treść. */

.slogan-scene {
  --slogan-gap: 16px;
  --slogan-crest-w: 60px;
  --slogan-crest-h: 96px;
  --slogan-size: clamp(78px, 27vw, 156px);
  --slogan-tri-w: min(68vw, 300px);
  --slogan-tri-h: 6px;
  --slogan-cell: 13px;
  display: grid; justify-items: center; gap: var(--slogan-gap); text-align: center;
}
.slogan-crest { width: var(--slogan-crest-w); height: var(--slogan-crest-h); animation: crest-in 640ms var(--reveal) both; }
/* Dwie klasy: wygrywa z nagłówkiem ekranu (.screen h1) na scenie końcowej. */
.slogan-scene .slogan {
  display: grid; font-family: var(--display); font-weight: 400; font-size: var(--slogan-size);
  line-height: 0.88; letter-spacing: 0.01em; text-transform: uppercase;
}
.slogan-word { display: block; white-space: nowrap; }
.slogan-word + .slogan-word { color: var(--red); }
.slogan-char {
  display: inline-block;
  animation: slam 560ms calc(240ms + var(--c) * 62ms) cubic-bezier(0.2, 0.9, 0.25, 1.12) both;
}
.slogan-scene .tri {
  width: var(--slogan-tri-w); height: var(--slogan-tri-h); margin: 2px 0 0; transform-origin: left;
  animation: slogan-grow 560ms 1020ms var(--reveal) both;
}
.checker { display: grid; grid-template-columns: repeat(8, var(--slogan-cell)); }
.checker i { height: var(--slogan-cell); background: #fff; animation: square-in 320ms calc(1180ms + var(--c) * 18ms) var(--reveal) both; }
.checker i[data-color="1"] { background: var(--blue); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.checker i[data-color="2"] { background: var(--red); }
@keyframes slam {
  from { opacity: 0; transform: translateY(-0.12em) scale(2.6); }
  55% { opacity: 1; transform: scale(0.94); }
}
@keyframes crest-in { from { opacity: 0; transform: translateY(-18px) scale(0.8); } }
@keyframes square-in { from { opacity: 0; transform: scale(0.2); } }
@keyframes slogan-grow { from { transform: scaleX(0); } }
/* Koniec pokazu (telefon i telebim): hasło zostaje na ekranie, herb oddycha. */
@keyframes breathe { 50% { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .slogan-char, .slogan-crest, .slogan-scene .tri, .checker i { animation: none; }
}
