/* ============================================================
   OWCA — strona projektu muzycznego
   paleta z okładki „Werter": czerwień + pomarańcz + czerń
   ============================================================ */

:root {
  --czerwien: #a90f28;
  --czerwien-ciemna: #6d0a1b;
  --mrok: #14040a;
  --pomarancz: #f0a03c;
  --pomarancz-jasny: #ffc46e;
  --krem: #ffe9cf;
  --bombel: "Baloo 2", system-ui, sans-serif;
  --tekst: "Space Grotesk", system-ui, sans-serif;
  /* pozycja lampy (ustawiana w JS) */
  --mx: 50%;
  --my: 40%;
  --scroll: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--tekst);
  color: var(--krem);
  background-color: var(--czerwien);
  /* halftone'owe paski jak na okładce — przesuwają się ze scrollem */
  background-image: repeating-linear-gradient(
    0deg,
    rgba(20, 4, 10, 0.38) 0px,
    rgba(20, 4, 10, 0.38) 2px,
    transparent 2px,
    transparent 7px
  );
  overflow-x: hidden;
}

::selection { background: var(--pomarancz); color: var(--mrok); }

img { max-width: 100%; display: block; }

/* ---------- pasek postępu ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 90;
  height: 5px; width: calc(var(--postep, 0) * 100%);
  background: linear-gradient(90deg, var(--pomarancz), var(--pomarancz-jasny));
  border-radius: 0 99px 99px 0;
  transition: width 0.08s linear;
}

/* ============================================================
   HERO — lampa czerwieni
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--mrok);
}

/* zdjęcie w tle (fallback, gdy teledysk się nie załaduje) */
.hero-foto {
  position: absolute; inset: 0;
  background: url("assets/foto-stoi.jpg") center 22% / cover no-repeat;
}

/* teledysk grający w tle */
.hero-wideo {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-wideo iframe {
  position: absolute; top: 50%; left: 50%;
  /* 16:9 rozciągnięte tak, żeby zawsze kryło cały ekran */
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}

/* mrok z „dziurą" lampy — tańsze niż maskowanie wideo */
.hero-mrok {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 420px at var(--mx) var(--my),
      rgba(255, 60, 60, 0.13), transparent 70%),
    radial-gradient(circle 400px at var(--mx) var(--my),
      transparent 0%, rgba(20, 4, 10, 0.62) 42%, rgba(20, 4, 10, 0.97) 75%);
  pointer-events: none;
}

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5vw;
}

.nav-logo {
  border: none; background: none; cursor: pointer;
  width: 62px; height: 62px; border-radius: 18px; overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-logo:hover { transform: scale(1.1) rotate(-6deg); }
.nav-logo:active { transform: scale(0.88); }
.nav-logo img { filter: invert(1) brightness(1.05); mix-blend-mode: screen; }

.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  color: var(--krem); text-decoration: none; font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--pomarancz-jasny); border-color: var(--pomarancz); }
.nav-cta {
  padding: 0.45em 1.1em; border-radius: 99px;
  background: var(--pomarancz); color: var(--mrok) !important;
  font-family: var(--bombel); font-weight: 700;
}
.nav-cta:hover { background: var(--pomarancz-jasny); border-color: transparent !important; }

.hero-tresc {
  position: relative; z-index: 4;
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 0 7vw; max-width: 1200px;
}

.hero-nad {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--pomarancz-jasny); margin-bottom: 0.6rem;
}

.hero-tytul {
  font-family: var(--bombel); font-weight: 800;
  font-size: clamp(4.5rem, 17vw, 13rem);
  line-height: 0.9; color: var(--pomarancz);
  text-shadow: 0.04em 0.05em 0 var(--czerwien-ciemna);
  user-select: none; cursor: pointer;
}
.hero-tytul span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s;
}
.hero-tytul span:hover { transform: translateY(-0.12em) rotate(-4deg) scale(1.08); color: var(--pomarancz-jasny); }
.hero-tytul span.bec { animation: becniecie 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes becniecie {
  30% { transform: scale(1.25, 0.7); }
  60% { transform: scale(0.85, 1.2) translateY(-0.15em); }
}

.hero-pod {
  margin-top: 1.2rem; font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 34ch; color: var(--krem);
}
.hero-pod strong { color: var(--pomarancz-jasny); }

.hero-przyciski { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.btn {
  font-family: var(--bombel); font-weight: 700;
  font-size: 1.05rem; text-decoration: none;
  padding: 0.75em 1.6em; border-radius: 99px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn:hover { transform: translateY(-3px) scale(1.04); }
.btn:active { transform: scale(0.95); }
.btn-glowny {
  background: var(--pomarancz); color: var(--mrok);
  box-shadow: 0 6px 0 var(--czerwien-ciemna);
}
.btn-glowny:hover { background: var(--pomarancz-jasny); box-shadow: 0 9px 0 var(--czerwien-ciemna); }
.btn-obrys {
  color: var(--pomarancz); border: 3px solid var(--pomarancz);
}
.btn-obrys:hover { background: rgba(240, 160, 60, 0.12); }

.beee-licznik {
  margin-top: 1.4rem; min-height: 1.4em;
  font-size: 0.95rem; color: var(--pomarancz-jasny); opacity: 0.85;
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 4; width: 30px; height: 50px;
  border: 3px solid var(--pomarancz); border-radius: 99px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 6px; height: 6px; margin-left: -3px;
  background: var(--pomarancz); border-radius: 50%;
  animation: kulka 1.6s ease-in-out infinite;
}
@keyframes kulka { 50% { transform: translateY(22px); opacity: 0.3; } }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--mrok); color: var(--pomarancz);
  overflow: hidden; padding: 0.7rem 0;
  border-top: 3px solid var(--pomarancz);
  border-bottom: 3px solid var(--pomarancz);
}
.ticker-tor {
  display: flex; white-space: nowrap; width: max-content;
  animation: przesuw 22s linear infinite;
  font-family: var(--bombel); font-weight: 700;
  font-size: 1.1rem; letter-spacing: 0.08em;
}
.ticker:hover .ticker-tor { animation-play-state: paused; }
@keyframes przesuw { to { transform: translateX(-50%); } }

/* ============================================================
   SEKCJE — wspólne
   ============================================================ */
.sekcja { padding: clamp(4rem, 9vw, 7.5rem) 5vw; position: relative; }
.sekcja-srodek { max-width: 1150px; margin: 0 auto; }

.uklad-dwa {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.uklad-dwa.odwroc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }

.etykieta {
  font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--pomarancz-jasny); margin-bottom: 0.5rem;
}

.tytul-bombel {
  font-family: var(--bombel); font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1;
  color: var(--pomarancz);
  text-shadow: 0.045em 0.055em 0 var(--mrok);
  margin-bottom: 1.4rem;
}

.opis { font-size: 1.08rem; line-height: 1.75; max-width: 58ch; }
.opis + .opis { margin-top: 1rem; }

/* wjazd elementów przy scrollu */
.odslon {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.odslon.widac { opacity: 1; transform: none; }

/* ============================================================
   SINGIEL
   ============================================================ */
.okladka-rama {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.okladka-rama:hover { transform: rotate(0deg) scale(1.02); }
.okladka-rama figcaption {
  position: absolute; bottom: 1rem; left: 1rem;
  background: var(--mrok); color: var(--pomarancz);
  font-family: var(--bombel); font-weight: 700;
  padding: 0.35em 1em; border-radius: 99px; font-size: 0.9rem;
}
.okladka-mala { transform: rotate(2deg); }

.cytat {
  margin: 1.4rem 0; padding: 1.1rem 1.4rem;
  border-left: 5px solid var(--pomarancz);
  background: rgba(20, 4, 10, 0.35);
  border-radius: 0 18px 18px 0;
  font-style: italic; line-height: 1.6;
}
.cytat cite { display: block; margin-top: 0.6rem; font-style: normal; color: var(--pomarancz-jasny); font-size: 0.9rem; }

.sluchaj-rzad { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.spotify-embed { margin-top: 1.5rem; }
.spotify-embed iframe { border-radius: 16px; width: 100%; }

/* ============================================================
   TELEDYSK — rama TV
   ============================================================ */
.teledysk { background: rgba(20, 4, 10, 0.45); }
.teledysk .sekcja-srodek { text-align: center; }
.teledysk .tytul-bombel { margin-bottom: 2.2rem; }

.tv-rama {
  max-width: 900px; margin: 0 auto;
  background: var(--mrok); border-radius: 30px;
  padding: 1.2rem 1.2rem 0.9rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 3px rgba(240, 160, 60, 0.35);
}
.tv-ekran {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16 / 9;
}
.tv-ekran img { width: 100%; height: 100%; object-fit: cover; }
.tv-ekran iframe { width: 100%; height: 100%; border: 0; display: block; }

.tv-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at center, rgba(20,4,10,0.15), rgba(20,4,10,0.55));
  transition: background 0.25s;
}
.tv-play:hover { background: radial-gradient(circle at center, rgba(20,4,10,0), rgba(20,4,10,0.35)); }
.tv-play-trojkat {
  width: 0; height: 0;
  border-left: 42px solid var(--mrok);
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  margin-left: 8px;
}
.tv-play::before {
  content: ""; position: absolute;
  width: 110px; height: 110px; border-radius: 40% 45% 42% 47%;
  background: var(--pomarancz);
  animation: pulsowanie 2.2s ease-in-out infinite;
}
.tv-play-trojkat { position: relative; z-index: 1; }
@keyframes pulsowanie { 50% { transform: scale(1.12); border-radius: 46% 41% 48% 42%; } }

/* pasek „szumu" przelatujący po ekranie */
.tv-szum {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.tv-podpis {
  text-align: center; padding: 0.8rem 0 0.3rem;
  font-family: var(--bombel); font-weight: 600; color: var(--pomarancz);
}
.tv-licznik {
  text-align: center; padding: 0.1rem 0 0.5rem;
  color: var(--krem); font-size: 0.98rem; opacity: 0.9;
}
.tv-licznik-liczba {
  font-family: var(--bombel); font-weight: 800;
  font-size: 1.5rem; color: var(--pomarancz-jasny);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   KARTKÓWKA Z WERTERA
   ============================================================ */
.kartkowka .tytul-bombel { margin-bottom: 0.6rem; }
.kartkowka > .sekcja-srodek > .opis { margin-bottom: 2.4rem; }

.lawka {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  margin-top: 1rem;
}

/* telefon z reelsem kartkówki */
.telefon {
  background: var(--mrok); border-radius: 34px;
  padding: 0.85rem; max-width: 330px; margin: 0 auto;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(240, 160, 60, 0.3);
  transform: rotate(-2.5deg);
  position: sticky; top: 2rem;
}
.telefon video {
  width: 100%; border-radius: 24px; display: block;
  aspect-ratio: 9 / 16; object-fit: cover;
}

/* kartkówka bez telefonu — kartka wyśrodkowana */
.test-solo { max-width: 780px; margin: 1.5rem auto 0; }

/* kartka testu — szkolny papier */
.test-kartka {
  background: #f7edd8;
  color: #2b2118;
  border-radius: 6px;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.2rem);
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transform: rotate(0.6deg);
  position: relative;
  /* linie zeszytu */
  background-image:
    linear-gradient(90deg, transparent 0 2.4rem, rgba(169, 15, 40, 0.35) 2.4rem calc(2.4rem + 2px), transparent calc(2.4rem + 2px)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(43, 33, 24, 0.12) 27px 28px);
}

.test-naglowek {
  padding-left: 2.2rem; margin-bottom: 1.4rem;
  font-size: 1.02rem; line-height: 28px;
}
.test-linia { border-bottom: 1.5px dotted #2b2118; font-family: "Caveat", cursive; font-size: 1.25rem; padding: 0 0.4em; }

.test-polecenie {
  padding-left: 2.6rem; margin-bottom: 1rem;
  font-weight: 700; line-height: 28px;
}

.test-tekst { padding-left: 2.6rem; margin-bottom: 1.6rem; }
.zwrotka + .zwrotka { margin-top: 28px; }
.wers { font-size: 1.02rem; line-height: 28px; }

/* luka do uzupełnienia */
.luka {
  font-family: "Caveat", cursive; font-size: 1.3rem; line-height: 1;
  color: #2b54a0; font-weight: 700;
  background: rgba(43, 84, 160, 0.07);
  border: none; border-bottom: 2px dotted #2b2118;
  border-radius: 3px 3px 0 0;
  padding: 0 0.5ch; min-width: 9ch;
  cursor: pointer; vertical-align: baseline;
  transition: background 0.15s;
}
.luka:hover { background: rgba(43, 84, 160, 0.16); }
.luka.wypelniona { letter-spacing: 0.02em; }

/* chipsy z opcjami pod wersem */
.luka-opcje {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 4px 0 8px 1.4rem;
}
.luka-opcje[hidden] { display: none; }
.luka-opcje button {
  font-family: "Caveat", cursive; font-size: 1.25rem; font-weight: 700;
  color: #2b54a0; background: #fff;
  border: 2px solid rgba(43, 84, 160, 0.5); border-radius: 99px;
  padding: 0.05em 0.9em; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.luka-opcje button:hover { background: rgba(43, 84, 160, 0.12); transform: translateY(-1px); }

/* po oddaniu: zielony zakreślacz jak w teledysku + czerwony długopis */
.luka-dobra { background: #79e05c !important; border-bottom-color: transparent; color: #1c3311; }
.luka-zla {
  background: transparent !important;
  text-decoration: line-through; text-decoration-color: #d92525; text-decoration-thickness: 2.5px;
}
.poprawka {
  font-family: "Caveat", cursive; font-size: 1.3rem; font-weight: 700;
  color: #d92525; margin-left: 0.5ch;
  transform: rotate(-2deg); display: inline-block;
}

.test-oddaj { margin-left: 2.6rem; }
.test-oddaj:disabled {
  opacity: 0.45; cursor: not-allowed;
  transform: none !important; box-shadow: 0 6px 0 var(--czerwien-ciemna);
}

.test-ocena { margin: 1.8rem 0 0 2.2rem; position: relative; }
.pieczatka {
  display: inline-block;
  font-family: "Caveat", cursive; font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: #d92525;
  border: 4px solid #d92525; border-radius: 10px;
  padding: 0.05em 0.5em;
  transform: rotate(-7deg);
  animation: przybicie 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes przybicie {
  0% { transform: rotate(-7deg) scale(2.2); opacity: 0; }
  100% { transform: rotate(-7deg) scale(1); opacity: 1; }
}
.ocena-komentarz {
  font-family: "Caveat", cursive; font-size: 1.5rem; color: #d92525;
  margin: 0.8rem 0 1.2rem; line-height: 1.3;
}

/* pole na imię i stoper */
.test-imie {
  font-family: "Caveat", cursive; font-size: 1.35rem; font-weight: 700;
  color: #2b54a0; background: transparent;
  border: none; border-bottom: 1.5px dotted #2b2118;
  padding: 0 0.4em; width: 15ch; outline: none;
}
.test-imie::placeholder { color: rgba(43, 33, 24, 0.4); font-weight: 500; }
.test-imie:focus { background: rgba(43, 84, 160, 0.07); }
.stoper { font-variant-numeric: tabular-nums; color: #d92525; }

/* pole ksywy na ekranach startowych gier */
.ksywa-pole {
  font-family: var(--bombel); font-weight: 700; font-size: 1.05rem;
  color: var(--pomarancz-jasny); background: rgba(255, 233, 207, 0.08);
  border: 2px solid rgba(240, 160, 60, 0.55); border-radius: 99px;
  padding: 0.5em 1.2em; text-align: center; outline: none;
  width: min(260px, 70vw);
}
.ksywa-pole::placeholder { color: rgba(255, 233, 207, 0.45); font-weight: 500; }
.ksywa-pole:focus { border-color: var(--pomarancz); background: rgba(255, 233, 207, 0.13); }

/* tablica z rankingiem — kreda na szkolnej tablicy */
.tablica {
  max-width: 640px; margin: 3.5rem auto 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.045), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.035), transparent 50%),
    #2c463a;
  border: 12px solid #7a4a26;
  border-radius: 10px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(0, 0, 0, 0.35);
  padding: 1.8rem 2rem 1.6rem;
  transform: rotate(-0.6deg);
  color: #f2f6ee;
  font-family: "Caveat", cursive;
}
.tablica-tytul {
  font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700;
  text-align: center; line-height: 1.1;
  text-decoration: underline wavy rgba(242, 246, 238, 0.5) 2px;
  text-underline-offset: 8px;
  margin-bottom: 0.7rem;
}
.tablica-podtytul { text-align: center; font-size: 1.25rem; opacity: 0.8; margin-bottom: 1.1rem; }

.ranking-lista { list-style: none; max-width: 420px; margin: 0 auto; }
.ranking-lista li {
  display: flex; align-items: baseline; gap: 0.7rem;
  font-size: 1.45rem; font-weight: 700;
  padding: 0.28em 0.2em;
  border-bottom: 1.5px dashed rgba(242, 246, 238, 0.25);
}
.ranking-miejsce { width: 2.2ch; flex-shrink: 0; }
.ranking-imie { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-czas { font-variant-numeric: tabular-nums; color: #ffd98a; }
.ranking-lista .nowy-wpis { background: rgba(255, 217, 138, 0.14); border-radius: 8px; animation: kreda 0.8s ease; }
@keyframes kreda { 0% { opacity: 0; transform: scale(0.9); } }

.tablica-pusta { text-align: center; font-size: 1.35rem; opacity: 0.75; }
.tablica-pusta[hidden] { display: none; }

/* zaproszenie do gry */
.gra-zaproszenie {
  margin: 3rem auto 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-family: var(--bombel); font-weight: 600; font-size: 1.15rem;
  color: var(--krem);
}

/* ściąga z tekstem */
.sciaga { margin-top: 3rem; }
.sciaga summary {
  cursor: pointer; list-style: none;
  display: inline-block;
  font-family: var(--bombel); font-weight: 700; font-size: 1.15rem;
  color: var(--mrok); background: var(--pomarancz);
  padding: 0.7em 1.5em; border-radius: 99px;
  box-shadow: 0 6px 0 var(--czerwien-ciemna);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.sciaga summary::-webkit-details-marker { display: none; }
.sciaga summary:hover { transform: translateY(-3px); background: var(--pomarancz-jasny); }
.sciaga[open] summary { transform: none; opacity: 0.75; }

.sciaga-kartka {
  margin-top: 1.4rem; max-width: 640px;
  background: #f7edd8; color: #2b2118;
  font-family: "Caveat", cursive; font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.45;
  padding: 2rem 2.4rem; border-radius: 4px 22px 6px 18px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.2deg);
  white-space: pre-line;
}
.sciaga-kartka p + p { margin-top: 1.1em; }
.sciaga-kartka em { font-style: normal; background: rgba(121, 224, 92, 0.5); padding: 0 0.15em; }

/* ============================================================
   ROLKI Z INSTAGRAMA
   ============================================================ */
.rolki .tytul-bombel { margin-bottom: 0.6rem; }
.rolki .opis { margin-bottom: 2.2rem; }
.rolki-link { color: var(--pomarancz-jasny); font-weight: 700; }

/* rolki rozłożone jak talia kart — nachodzą na siebie wachlarzem */
.rolki-siatka {
  display: grid; place-items: center;
  padding: 1.5rem 0 0.5rem;
}
.rolka {
  grid-area: 1 / 1;
  width: min(330px, 88vw);
  border-radius: 24px; overflow: hidden;
  background: var(--mrok);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(240, 160, 60, 0.35);
  padding: 8px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s;
}
.rolka:nth-child(1) { transform: translateX(-52%) rotate(-8deg); z-index: 1; }
.rolka:nth-child(2) { transform: translateY(-14px) rotate(0.5deg); z-index: 2; }
.rolka:nth-child(3) { transform: translateX(52%) rotate(8deg); z-index: 1; }
/* najechana karta wysuwa się z talii na wierzch */
.rolka:nth-child(1):hover, .rolka:nth-child(1):focus-within { transform: translateX(-52%) translateY(-18px) rotate(-3deg) scale(1.03); z-index: 5; }
.rolka:nth-child(2):hover, .rolka:nth-child(2):focus-within { transform: translateY(-30px) rotate(0deg) scale(1.03); z-index: 5; }
.rolka:nth-child(3):hover, .rolka:nth-child(3):focus-within { transform: translateX(52%) translateY(-18px) rotate(3deg) scale(1.03); z-index: 5; }
.rolka:hover, .rolka:focus-within { box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 3px var(--pomarancz); }
.rolka .instagram-media { border-radius: 18px !important; min-width: 0 !important; width: 100% !important; margin: 0 !important; }

/* na wąskich ekranach talia zmienia się w przesuwany rządek */
@media (max-width: 760px) {
  .rolki-siatka {
    display: flex; overflow-x: auto; gap: 1rem;
    padding: 1rem 1rem 1.4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .rolka, .rolka:hover {
    grid-area: auto; flex: 0 0 auto;
    transform: rotate(-1deg) !important; z-index: auto;
    scroll-snap-align: center;
  }
  .rolka:nth-child(even), .rolka:nth-child(even):hover { transform: rotate(1.2deg) !important; }
}

.rolka-zajawka {
  display: block; text-align: center; text-decoration: none;
  background: var(--mrok); color: var(--krem);
  border-radius: 24px; padding: 2.4rem 2.6rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(240, 160, 60, 0.35);
  font-family: var(--bombel); font-weight: 600; font-size: 1.15rem;
  line-height: 1.6; transform: rotate(-1deg);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rolka-zajawka:hover { transform: rotate(0deg) scale(1.03); }
.rolka-zajawka span { display: block; font-size: 2.4rem; margin-bottom: 0.4rem; }
.rolka-zajawka strong { color: var(--pomarancz-jasny); }

/* ============================================================
   POKÓJ GIER — kafelki (gry.html)
   ============================================================ */
.gry-kafle {
  display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center;
}
.gra-kafel {
  width: min(420px, 92vw);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center; text-decoration: none;
  background: var(--mrok); color: var(--krem);
  border-radius: 26px; padding: 1.8rem 1.6rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(240, 160, 60, 0.35);
  transform: rotate(-0.8deg);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.gra-kafel:nth-child(even) { transform: rotate(0.9deg); }
.gra-kafel:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.02);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5), inset 0 0 0 3px var(--pomarancz);
}
.gra-kafel img { width: 84px; animation: czlapanie 0.9s ease-in-out infinite; }
.gra-kafel b { font-family: var(--bombel); font-weight: 800; font-size: 1.35rem; color: var(--pomarancz); }
.gra-kafel span { font-size: 0.95rem; line-height: 1.55; opacity: 0.9; }
.gra-kafel em {
  font-style: normal; font-family: var(--bombel); font-weight: 700;
  color: var(--mrok); background: var(--pomarancz);
  padding: 0.35em 1.2em; border-radius: 99px; margin-top: 0.4rem;
}
.gra-kafel:hover em { background: var(--pomarancz-jasny); }

/* ============================================================
   O PROJEKCIE
   ============================================================ */
.oprojekcie { background: rgba(20, 4, 10, 0.45); }

.ekipa { list-style: none; margin-top: 1.6rem; }
.ekipa li {
  padding: 0.7rem 0; border-bottom: 2px dashed rgba(240, 160, 60, 0.35);
  font-size: 1.02rem;
}
.ekipa li span { font-family: var(--bombel); font-weight: 700; color: var(--pomarancz-jasny); }

/* ============================================================
   SOCJALE — owcze bąble
   ============================================================ */
.socjale { padding-bottom: 0; }
.socjale .sekcja-srodek { text-align: center; }

.zagroda {
  position: relative; height: clamp(400px, 58vh, 540px);
  margin-top: 1.5rem; overflow: hidden;
  border-top: 3px solid var(--mrok);
  background: linear-gradient(180deg,
    rgba(20, 4, 10, 0.30) 0%,
    rgba(20, 4, 10, 0.48) 55%,
    #2b120c 88%,
    #241009 100%);
  touch-action: pan-y;
}

/* księżyc i bąbelkowe chmurki nad wybiegiem */
.zagroda::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 44px at 84% 16%, rgba(255, 196, 110, 0.55), rgba(255, 196, 110, 0.16) 62%, transparent 72%),
    radial-gradient(ellipse 110px 42px at 16% 20%, rgba(255, 233, 207, 0.09), transparent 70%),
    radial-gradient(ellipse 70px 30px at 26% 15%, rgba(255, 233, 207, 0.08), transparent 70%),
    radial-gradient(ellipse 130px 46px at 52% 10%, rgba(255, 233, 207, 0.07), transparent 70%);
}

/* drewniany płot zagrody */
.zagroda::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 88px; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='88' viewBox='0 0 130 88'%3E%3Crect x='10' y='8' width='16' height='80' rx='7' fill='%236b3f1d'/%3E%3Crect x='62' y='0' width='16' height='88' rx='7' fill='%237a4a26'/%3E%3Crect x='114' y='8' width='16' height='80' rx='7' fill='%236b3f1d'/%3E%3Crect x='0' y='26' width='130' height='12' rx='6' fill='%23935c2f'/%3E%3Crect x='0' y='56' width='130' height='12' rx='6' fill='%238a5228'/%3E%3C/svg%3E") repeat-x bottom / auto 88px;
  filter: drop-shadow(0 -4px 10px rgba(0, 0, 0, 0.3));
}

.babel {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem;
  width: 128px; height: 128px;
  color: var(--mrok); text-decoration: none;
  font-family: var(--bombel); font-weight: 800; font-size: 1.02rem;
  background: radial-gradient(circle at 32% 28%,
    var(--pomarancz-jasny) 0%, var(--pomarancz) 55%, #d88a26 100%);
  border: 3px solid var(--mrok);
  border-radius: 46% 54% 51% 49% / 52% 47% 53% 48%;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.45),
    inset -8px -10px 0 rgba(109, 10, 27, 0.16),
    inset 7px 9px 0 rgba(255, 255, 255, 0.25);
  will-change: transform;
  animation: bujanie 5.5s ease-in-out infinite;
}
.babel svg { width: 34px; height: 34px; }
.babel:hover {
  background: radial-gradient(circle at 32% 28%,
    #ffd98a 0%, var(--pomarancz-jasny) 60%, var(--pomarancz) 100%);
  border-radius: 50%;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 196, 110, 0.35),
    inset -8px -10px 0 rgba(109, 10, 27, 0.12),
    inset 7px 9px 0 rgba(255, 255, 255, 0.3);
}
.babel-youtube { animation-delay: -1.3s; }
.babel-instagram { animation-delay: -2.7s; }
.babel-tiktok { animation-delay: -3.4s; }
.babel-facebook { animation-delay: -4.1s; }
@keyframes bujanie {
  0%, 100% { border-radius: 46% 54% 51% 49% / 52% 47% 53% 48%; }
  33% { border-radius: 54% 46% 47% 53% / 48% 55% 45% 52%; }
  66% { border-radius: 49% 51% 55% 45% / 53% 46% 54% 47%; }
}

/* owieczki spacerujące po zagrodzie */
.owca-spacer {
  position: absolute; bottom: 10px; left: 0; z-index: 2;
  cursor: pointer; user-select: none;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.45));
  transition: filter 0.2s;
  animation: czlapanie 0.9s ease-in-out infinite;
}
.owca-spacer:hover { filter: drop-shadow(0 4px 12px rgba(255, 196, 110, 0.6)); }
@keyframes czlapanie { 50% { translate: 0 -3px; } }

/* ============================================================
   STOPKA
   ============================================================ */
.stopka {
  background: var(--mrok); text-align: center;
  padding: 3rem 5vw 2.4rem;
}
.stopka-logo {
  width: 64px; margin: 0 auto 1rem;
  filter: invert(1); mix-blend-mode: screen; opacity: 0.9;
  border-radius: 16px;
}
.stopka p { color: var(--krem); opacity: 0.85; font-size: 0.95rem; }
.stopka-kontakt { margin-top: 0.5rem; }
.stopka a { color: var(--pomarancz); }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 900px) {
  .uklad-dwa, .uklad-dwa.odwroc { grid-template-columns: 1fr; }
  .uklad-dwa.odwroc figure { order: -1; }
  .lawka { grid-template-columns: 1fr; }
  .telefon { position: static; max-width: 260px; }
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .nav-links a:not(.nav-cta):not(.nav-gra) { display: none; }
  .nav-gra {
    padding: 0.45em 1em; border-radius: 99px;
    border: 2px solid var(--pomarancz) !important;
    font-family: var(--bombel); font-weight: 700;
  }
  .babel { width: 104px; height: 104px; font-size: 0.9rem; }
  .babel svg { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .odslon { opacity: 1; transform: none; }
  .hero-foto { opacity: 0.5; }
  .hero-wideo { display: none; }
}
