/* Strona główna KARELDIA: wejście w świat gry. Sekcje na pełną szerokość, tła z kadrów filmów, karty z pergaminu z menu gry.
   Wszystkie tabliczki i ramki to grafiki z gry wycięte bez podkładki (obrazy/ui) albo kształty rysowane w CSS – bez prostokątnych teł. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.glowna { background: #120c09; }
.glowna main { max-width: none; padding: 0; display: block; }
.glowna .wew { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* ---------- wspólne elementy sekcji ---------- */
.sekcja { position: relative; padding: clamp(60px, 8vw, 104px) 0; }
.sekcja::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(900px, 90%); height: 1px; background: linear-gradient(90deg, transparent, #a07a44, transparent); }
.sekcja-gl { text-align: center; max-width: 780px; margin: 0 auto clamp(30px, 4vw, 46px); }
.kicker { margin: 0 0 10px; font: 400 16px/1.25 var(--piksel); letter-spacing: .04em; color: #eab55a; text-shadow: 0 2px 0 #000; }
.kicker.ciemny { color: #93401c; text-shadow: none; }
h2.tyt { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 14px; font-size: clamp(30px, 4vw, 46px); color: var(--zloto2); text-shadow: 0 3px 0 #000, 0 0 22px #000; }
h2.tyt::before, h2.tyt::after { content: ""; flex: 0 1 120px; height: 16px; background: url(/ui/k/orn_naglowek.webp) center/100% 100% no-repeat; }
h2.tyt::after { scale: -1 1; }
.wstep { margin: 0 auto; max-width: 62ch; color: #e8d6b2; font-size: 18px; }
.drobny { margin: 6px 0 0; font-size: 14px; color: var(--brazowy); }
.przypis { margin: 18px auto 0; max-width: 70ch; text-align: center; font-size: 14px; font-style: italic; color: #b39a72; }
/* ramka obrazka: brzeg slotu z gry (bez wypełnienia – sam obramowany obraz) */
.ramka { position: relative; display: block; line-height: 0; border-style: solid; border-color: transparent; border-width: 9px; border-image: url(/ui/k/slot.webp) 30 / 9px stretch; background: #0b0806; background-clip: padding-box; box-shadow: 0 10px 22px #0009; }
.ramka img, .ramka video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0b0806; }
/* karta z pergaminu (wiersz z menu gry, poszarpane brzegi przezroczyste) */
.karta-perg { position: relative; padding: 22px 20px 18px; border-style: solid; border-color: transparent; border-width: 14px; border-image: url(/ui/k/wiersz.webp) 30 fill / 14px stretch; color: var(--atrament); }
.karta-perg h3 { margin: 0 0 6px; color: #5a1c10; font-size: 21px; }
.karta-perg p { margin: 0 0 .7em; font-size: 15.5px; }
.karta-perg p:last-child { margin-bottom: 0; }
.przyciski { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kafel { margin: 0; }
.kafel figcaption { padding: 9px 2px 0; font-size: 15px; line-height: 1.35; color: #d9c49c; }
.kafel figcaption b { color: var(--zloto2); }

/* ---------- 1. wejście (hero) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(calc(100svh - 66px), 880px); padding: 28px 0 92px; }
.hero-tlo { position: absolute; inset: 0; z-index: -3; background: #0b0710 url(/media/k_igris.webp) 70% 40% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #08060ce8 0%, #08060cc4 30%, #08060c55 56%, transparent 76%), linear-gradient(180deg, #08060c66 0%, transparent 20%, transparent 70%, #140d09 100%); }
.hero-wew { width: 100%; }
.hero-wew > * { max-width: 640px; }
.hero-logo { display: block; width: clamp(200px, 21vw, 290px); height: auto; margin: 0 0 6px -10px; filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 30px #ff7a1a33); }
.hero-tyt { margin: 0 0 16px; font-size: clamp(34px, 4.1vw, 54px); line-height: 1.08; color: #fff3d8; text-shadow: 0 3px 0 #000, 0 0 26px #000; max-width: 19ch; }
.hero-lead { margin: 0 0 26px; font-size: clamp(17px, 1.45vw, 19.5px); color: #ecdcbc; text-shadow: 0 2px 0 #000, 0 0 14px #000; max-width: 52ch; }
.hero-pod { margin: 18px 0 0; font-size: 16px; color: #ecdab4; text-shadow: 0 2px 0 #000; }
.hero-pod a { color: var(--zloto2); }
.dalej { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: grid; justify-items: center; gap: 4px; color: var(--zloto2); text-decoration: none; font: 400 15px/1 var(--piksel); letter-spacing: .04em; text-shadow: 0 2px 0 #000; }
.dalej img { width: 30px; height: auto; animation: podskok 1.6s steps(6) infinite; filter: drop-shadow(0 2px 0 #000); }
@keyframes podskok { 50% { transform: translateY(6px); } }
/* iskry: kwadratowe piksele lecące w górę */
.iskry { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.iskry i { position: absolute; bottom: -10px; width: 4px; height: 4px; background: #ffcf5a; box-shadow: 0 0 6px 2px #ff8a1a99; animation: iskra 9s linear infinite; opacity: 0; }
.iskry i:nth-child(3n) { width: 3px; height: 3px; background: #ff9a3a; }
.iskry i:nth-child(4n) { width: 5px; height: 5px; background: #fff0a0; }
.iskry i:nth-child(1) { left: 6%; animation-delay: 0s; } .iskry i:nth-child(2) { left: 14%; animation-delay: 2.4s; animation-duration: 11s; }
.iskry i:nth-child(3) { left: 22%; animation-delay: 5s; } .iskry i:nth-child(4) { left: 31%; animation-delay: 1.2s; animation-duration: 12s; }
.iskry i:nth-child(5) { left: 39%; animation-delay: 6.5s; } .iskry i:nth-child(6) { left: 47%; animation-delay: 3.3s; animation-duration: 10s; }
.iskry i:nth-child(7) { left: 55%; animation-delay: .6s; } .iskry i:nth-child(8) { left: 62%; animation-delay: 4.4s; animation-duration: 13s; }
.iskry i:nth-child(9) { left: 70%; animation-delay: 7.2s; } .iskry i:nth-child(10) { left: 77%; animation-delay: 2s; animation-duration: 10.5s; }
.iskry i:nth-child(11) { left: 84%; animation-delay: 5.8s; } .iskry i:nth-child(12) { left: 91%; animation-delay: 3.9s; animation-duration: 12.5s; }
.iskry i:nth-child(13) { left: 96%; animation-delay: 8s; } .iskry i:nth-child(14) { left: 27%; animation-delay: 9s; animation-duration: 14s; }
@keyframes iskra { 0% { opacity: 0; transform: translate(0, 0); } 8% { opacity: 1; } 50% { transform: translate(18px, -45vh); } 85% { opacity: .8; } 100% { opacity: 0; transform: translate(-12px, -92vh); } }

/* ---------- 2. opowieść ---------- */
.opowiesc { background: radial-gradient(900px 420px at 50% 0, #3a1f1266, transparent 70%), #140d09; }
.rozdzialy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rozdzial { display: flex; flex-direction: column; }
.rozdzial .kadr { margin: 0; position: relative; z-index: 1; }
.rozdzial .kadr img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-style: solid; border-color: transparent; border-width: 9px; border-image: url(/ui/k/slot.webp) 30 / 9px stretch; background: #0b0806; background-clip: padding-box; box-shadow: 0 10px 22px #0009; }
.rozdzial .karta-perg { flex: 1; margin-top: -4px; padding-top: 28px; }
.pieczec { position: absolute; top: -40px; right: 10px; z-index: 2; display: grid; place-items: center; width: 54px; height: 54px; background: url(/ui/k/okr.webp) center/contain no-repeat; color: var(--zloto2); font: 400 18px/1 var(--piksel); text-shadow: 0 2px 0 #000; filter: drop-shadow(0 3px 2px #0009); }

/* ---------- 3. bohaterowie ---------- */
.bohaterowie { background: radial-gradient(760px 520px at 30% 62%, #7a2c0e55, transparent 70%), linear-gradient(#1a100b, #110b08); }
.wybor-boh { display: flex; justify-content: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 auto 30px; }
.medalion { display: grid; justify-items: center; gap: 7px; width: 96px; padding: 0; background: none; border: 0; color: #dcc8a2; font: 700 15px/1.1 var(--szeryf); text-shadow: 0 2px 0 #000; cursor: pointer; }
.medalion .krag { position: relative; width: 84px; height: 84px; border-radius: 50%; background: url(/ui/k/okr.webp) center/contain no-repeat; filter: drop-shadow(0 4px 4px #000a); transition: transform .12s; }
.medalion .krag img { position: absolute; max-width: none; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: radial-gradient(circle at 50% 35%, #6a3a1c, #2a160c); }
.medalion:hover .krag { transform: translateY(-3px); }
.medalion[aria-selected="true"] { color: var(--zloto2); }
.medalion[aria-selected="true"] .krag { box-shadow: 0 0 0 3px #f2c25a, 0 0 22px 4px #e8902c88; }
.scena-boh { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 34px; max-width: 1060px; margin: 0 auto; }
.popiersie { position: relative; margin: 0; display: grid; place-items: end center; min-height: 430px; }
.popiersie::before { content: ""; position: absolute; left: 50%; bottom: 18px; width: 380px; height: 380px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, #ffb24a44 0%, #c8541a22 45%, transparent 70%); }
.popiersie::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 22px; background: url(/ui/k/orn_dol.webp) center/auto 100% no-repeat; filter: sepia(1) saturate(3) brightness(1.4); opacity: .55; }
.popiersie img { position: relative; width: min(430px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 18px #000c); -webkit-mask-image: linear-gradient(#000 84%, transparent 99%); mask-image: linear-gradient(#000 84%, transparent 99%); }
.popiersie img.zmiana { animation: wejscie .28s steps(5); }
@keyframes wejscie { from { opacity: 0; transform: translateY(10px); } }
.karta-boh { position: relative; padding: 26px 30px 24px; border-style: solid; border-color: transparent; border-width: 18px; border-image: url(/ui/k/wiersz.webp) 30 fill / 18px stretch; color: var(--atrament); filter: drop-shadow(0 10px 20px #0009); }
.karta-boh h3 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 36px); color: #4a1c10; }
.karta-boh p { margin: 0 0 14px; font-size: 17px; }
.wiek { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.wiek:empty { display: none; }
.wiek .opis-wieku { flex-basis: 100%; margin: 0 0 2px; font-weight: 700; font-size: 14.5px; color: #6a3a1a; }
.miny { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 2px; margin-top: 14px; padding-top: 12px; border-top: 1px dotted #b89a6a; font-size: 14.5px; color: var(--brazowy); }
.miny:empty { display: none; }
.miny > span { flex-basis: 100%; margin: 0 0 2px; font-weight: 700; color: #6a3a1a; }
.mina { padding: 3px 9px; border: 1px solid #a07a44; background: #f3e2b8; color: #5a2a14; font: inherit; font-weight: 700; box-shadow: 0 1px 0 #0002; cursor: pointer; }
.mina:hover { color: #8e2a1e; border-color: #6a3a1a; }
.mina[aria-pressed="true"] { color: #fff3d6; background: #6a2a14; text-decoration: none; box-shadow: inset 3px 0 0 #e07028; }

/* ---------- 4. głosy: okno rozmowy jak w grze (popiersie nad pergaminem, tabliczka z imieniem) ---------- */
.glosy { background: radial-gradient(1px 1px at 12% 18%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 30%, #ffeab0aa 50%, transparent 51%), radial-gradient(1px 1px at 88% 40%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 26% 70%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 62% 82%, #fff6 50%, transparent 51%), linear-gradient(#0d1120, #151c33 55%, #0d1120); }
.glosy h2.tyt { color: #ffe9b0; }
.dialogi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 30px; }
.dialog { position: relative; margin: 0; padding-top: 140px; }
.dialog blockquote { position: relative; z-index: 1; margin: 0; min-height: 96px; padding: 24px 24px 16px 24px; border-style: solid; border-color: transparent; border-width: 16px; border-image: url(/ui/k/wiersz.webp) 30 fill / 16px stretch; color: var(--atrament); filter: drop-shadow(0 8px 14px #000b); }
.dialog blockquote p { margin: 0; font-size: 19px; line-height: 1.4; }
.d-imie { position: absolute; top: -30px; left: 188px; display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px 2px; border-style: solid; border-color: transparent; border-width: 10px 13px; border-image: url(/obrazy/ui/prz.webp) 42 48 fill / 10px 13px stretch; color: #fbeccb; font: 700 16px/1 var(--szeryf); text-shadow: 0 2px 0 #000; filter: drop-shadow(0 2px 2px #0009); }
.d-twarz { position: absolute; z-index: 0; left: 4px; top: 0; width: 178px; height: 178px; pointer-events: none; filter: drop-shadow(0 4px 8px #000c); }
.d-twarz.igris, .popiersie img.igris { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.dialog figcaption { margin: 6px 0 0 24px; font-size: 15px; color: #e9edf8; }

/* ---------- 5. filmy ---------- */
.filmy { background: radial-gradient(900px 400px at 50% 0, #2a1a1066, transparent 70%), #0b0806; }
.kino { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ekran video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.graj-film { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 0; border: 0; background: radial-gradient(circle at 50% 46%, #0000 18%, #0007 70%); cursor: pointer; }
.graj-film .kolo { position: relative; width: 96px; height: 96px; background: url(/ui/k/okr.webp) center/contain no-repeat; filter: drop-shadow(0 6px 6px #000a); transition: transform .12s; }
.graj-film .kolo::after { content: ""; position: absolute; left: 39px; top: 30px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fce484; }
.graj-film:hover .kolo { transform: scale(1.06); filter: brightness(1.2) drop-shadow(0 0 14px #e8902c99); }
.graj-tytul { padding: 6px 14px; color: #fff3d6; font: 700 18px/1.2 var(--szeryf); text-shadow: 0 2px 0 #000, 0 0 10px #000; }
.lista-filmow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.film-poz { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 8px; text-align: left; color: #e6d2ac; background: #1a110c; border: 1px solid #4a3020; box-shadow: inset 0 1px 0 #ffffff0a; cursor: pointer; font: inherit; }
.film-poz:hover { background: #24170f; border-color: #8a6a3a; }
.film-poz.akt { background: #2c1b10; border-color: #e8b23c; box-shadow: inset 4px 0 0 #e07028; }
.film-poz img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid #000; }
.film-poz b { display: block; color: var(--zloto2); font-size: 18px; margin-bottom: 3px; }
.film-poz small { display: block; font-size: 14px; line-height: 1.35; color: #c8b088; }

/* ---------- 6. walka ---------- */
.walka { background: radial-gradient(800px 380px at 80% 20%, #4a2a1444, transparent 70%), linear-gradient(#17100b, #120c09); }
.cechy-walki { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 18px 0 0; padding: 0; }
.cechy-walki li { display: flex; align-items: center; gap: 10px; color: #e8d6b2; font-size: 16px; }
.cechy-walki img { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 #000); }
.galeria-walki { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.galeria-walki .kafel.duzy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px 26px; align-items: center; }
.galeria-walki .kafel.duzy figcaption { padding: 0; font-size: 17px; line-height: 1.5; }
.galeria-walki .kafel.duzy figcaption b { display: block; margin-bottom: 6px; font-size: 24px; }

/* ---------- 7. świat ---------- */
.swiat { background: radial-gradient(900px 420px at 20% 10%, #1e3a2a44, transparent 70%), linear-gradient(#0f1410, #120c09); }
.mozaika { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mozaika .szeroki { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.mozaika .szeroki .ramka { flex: 1; }
.mozaika .szeroki video { height: 100%; aspect-ratio: auto; min-height: 260px; }
.encyklopedia-link { display: flex; align-items: center; gap: 18px; max-width: 820px; margin: 34px auto 0; padding: 12px 18px; border-style: solid; border-color: transparent; border-width: 14px; border-image: url(/ui/k/wiersz.webp) 30 fill / 14px stretch; color: var(--atrament); text-decoration: none; filter: drop-shadow(0 8px 14px #0009); }
.encyklopedia-link > img { width: 48px; height: 48px; flex: none; }
.encyklopedia-link > span:not(.prz) { flex: 1; display: grid; gap: 2px; }
.encyklopedia-link b { color: #5a1c10; font-size: 20px; }
.encyklopedia-link small { font-size: 15px; color: var(--brazowy); }
.encyklopedia-link:hover .prz { filter: brightness(1.22) drop-shadow(0 3px 3px #0009); }

/* ---------- 8. wydarzenia ---------- */
.wydarzenia { background: radial-gradient(700px 420px at 15% 30%, #c8641a2e, transparent 70%), linear-gradient(#150e0a, #110b08); }
.wyd-uklad { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: stretch; }
.swieto { display: flex; flex-direction: column; }
.swieto .ramka img { aspect-ratio: 16 / 6; }
.swieto .karta-perg { flex: 1; margin-top: -4px; padding: 22px 24px 22px; }
.swieto .karta-perg h3 { font-size: 26px; }
.swieto .karta-perg p { font-size: 16.5px; margin-bottom: 14px; }
/* tablica ogłoszeń: deski z drewna rysowane w CSS */
.tablica { display: flex; flex-direction: column; height: 100%; padding: 26px 26px 22px; color: #efdfbf; background: repeating-linear-gradient(180deg, #3d2617 0 58px, #2e1c11 58px 61px), #3d2617; border: 3px solid #8a6a3a; outline: 3px solid #1a0f08; box-shadow: inset 0 0 40px #0009, 0 12px 26px #000a; }
.tablica h3 { margin: 0 0 16px; color: var(--zloto2); font-size: 26px; text-shadow: 0 2px 0 #000; }
.tablica .kicker { display: flex; align-items: center; gap: 8px; }
.kropka { width: 10px; height: 10px; background: #ff6a3a; box-shadow: 0 0 0 2px #000, 0 0 10px #ff6a3a; animation: mig 1.4s steps(2) infinite; }
@keyframes mig { 50% { opacity: .35; } }
.zywo-lista { display: grid; gap: 12px; margin-bottom: 18px; }
.zywo-wpis, .zywo-pusto { position: relative; margin: 0; padding: 14px 16px 12px; border-style: solid; border-color: transparent; border-width: 12px; border-image: url(/ui/k/wiersz.webp) 30 fill / 12px stretch; color: var(--atrament); font-size: 15.5px; rotate: -.4deg; filter: drop-shadow(0 4px 4px #0009); }
.zywo-wpis:nth-child(2n), .zywo-wpis.stale { rotate: .5deg; }
.zywo-wpis.stale { margin-bottom: 18px; }
.zywo-wpis::before, .zywo-pusto::before { content: ""; position: absolute; top: -14px; left: 50%; width: 12px; height: 12px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a6a, #8e1c10); box-shadow: 0 2px 0 #0008; }
.zywo-wpis b, .zywo-pusto b { display: block; color: #5a1c10; font-size: 17px; }
.zywo-wpis .kiedy { font-size: 14px; color: var(--brazowy); }
.zywo-wpis .mn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.zywo-wpis .mn span { padding: 1px 8px; background: #5a2a14; color: #fbe6b8; font-size: 13.5px; font-weight: 700; }
.zywo-jak { list-style: none; margin: auto 0 0; padding-top: 16px; border-top: 1px dashed #8a6a3a88; padding: 0; display: grid; gap: 10px; }
.zywo-jak li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.45; text-shadow: 0 1px 0 #000; }
.zywo-jak img { width: 28px; height: 28px; filter: drop-shadow(0 2px 0 #000); }
.zywo-jak b { color: var(--zloto2); }

/* ---------- 9. zagraj ---------- */
.zagraj { background: radial-gradient(900px 400px at 50% 100%, #4a2a1444, transparent 70%), #140d09; }
.platformy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-top: 36px; }
.platforma { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 22px 20px; border-style: solid; border-color: transparent; border-width: 18px; border-image: url(/ui/k/wiersz.webp) 30 fill / 18px stretch; color: var(--atrament); filter: drop-shadow(0 10px 18px #000a); }
.platforma.polecana { filter: drop-shadow(0 0 16px #e8902c55) drop-shadow(0 10px 18px #000a); }
.platforma .medal { position: absolute; top: -62px; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 84px; height: 84px; background: url(/ui/k/okr.webp) center/contain no-repeat; filter: drop-shadow(0 4px 3px #0009); }
.platforma .medal img { width: 44px; height: 44px; }
.platforma h3 { margin: 0; color: #5a1c10; font-size: 23px; }
.platforma p { margin: 0; font-size: 15.5px; }
.platforma > p:not(.drobny) { flex: 1; }
.platforma .prz { margin-top: 6px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }   /* „App Store od początku 2027” bez łamania poszerzał stronę na telefonie o ~50 px (menu i pasek wychodziły poza ekran) */

/* ---------- 10. konto ---------- */
.konto-sek { background: linear-gradient(#140d09, #0f0a07); }
.konto-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; padding: 22px 28px; border-style: solid; border-color: transparent; border-width: 22px; border-image: url(/ui/k/wiersz.webp) 30 fill / 22px stretch; color: var(--atrament); filter: drop-shadow(0 14px 26px #000b); }
.konto-panel h2 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 34px); color: #4a1c10; }
.konto-panel .zalety { margin-bottom: 20px; }
.konto-panel .zalety li { grid-template-columns: 34px minmax(0, 1fr); font-size: 16.5px; }
.konto-panel .zalety img { width: 34px; height: 34px; padding: 0; border: 0; border-image: none; }
.konto-panel .drobny a { color: #8e2a1e; font-weight: 700; }
.konto-podglad { margin: 0; }
.konto-podglad .ramka img { aspect-ratio: 1000 / 799; object-fit: cover; }
.konto-podglad figcaption { margin-top: 8px; text-align: center; font-size: 14px; font-style: italic; color: var(--brazowy); }

/* ---------- stopka ---------- */
.glowna .stopka { border-top: 2px solid #3a2618; background: #0d0806; padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px)); }
.stopka .wew { display: grid; justify-items: center; gap: 12px; }
.stopka-logo { width: 120px; height: auto; opacity: .9; }
.stopka p { margin: 0; color: #a8916c; font-size: 14px; }

/* ---------- okno z filmem ---------- */
.kino-okno { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.kino-okno::backdrop { background: #050302e0; }
.kino-okno .zamknij { position: absolute; top: -60px; right: 0; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; background: url(/ui/k/okr.webp) center/contain no-repeat; cursor: pointer; filter: drop-shadow(0 3px 3px #000a); }
.kino-okno .zamknij img { width: 24px; height: 24px; }
.kino-okno .zamknij:hover { filter: brightness(1.25) drop-shadow(0 0 10px #e8902c99); }

.przesun { display: none; margin: 4px 0 0; text-align: center; font: 400 14px/1 var(--piksel); letter-spacing: .04em; color: #c8b088; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .rozdzialy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 20px; }
  .kino { grid-template-columns: 1fr; }
  .lista-filmow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wyd-uklad, .konto-panel { grid-template-columns: 1fr; }
  .platformy { grid-template-columns: 1fr; gap: 64px; max-width: 520px; margin: 0 auto; }
  .dialogi { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 66px; }
  .sekcja { padding: 56px 0; }
  h2.tyt { font-size: 29px; gap: 10px; } h2.tyt::before, h2.tyt::after { flex-basis: 40px; height: 12px; }
  .kicker { font-size: 12.5px; }
  .wstep { font-size: 16.5px; }
  /* wejście: smok u góry, tekst niżej na ciemnym */
  .hero { align-items: end; min-height: calc(100svh - 60px); padding: 0 0 78px; }
  .hero-tlo { background: #0b0710 url(/media/k_igris_m.webp) 68% 0 / auto 60svh no-repeat; }
  .hero-tlo { background-size: auto 52svh; }
  .hero::after { background: linear-gradient(180deg, transparent 0%, transparent 18%, #0b0710c4 28%, #0b0710f2 37%, #0b0710 48%); }
  .hero-wew > * { max-width: none; }
  .hero-logo { display: none; }
  .hero-tyt { font-size: 31px; margin-bottom: 12px; }
  .hero-lead { font-size: 16.5px; margin-bottom: 20px; }
  .hero .przyciski { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero .prz.duzy { width: 100%; }
  .hero-pod { font-size: 14px; margin-top: 14px; }
  .dalej { bottom: 14px; }
  /* przewijane w bok rzędy kart (widać brzeg następnej) */
  .rozdzialy, .galeria-walki, .mozaika { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 90%; grid-template-rows: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 44px 16px 14px; scrollbar-width: thin; scrollbar-color: #8a6a3a transparent; }
  .galeria-walki, .mozaika { padding-top: 0; }
  .rozdzialy > *, .galeria-walki > *, .mozaika > * { scroll-snap-align: center; }
  .galeria-walki .kafel.duzy, .mozaika .szeroki { grid-column: auto; grid-row: auto; display: block; }
  .galeria-walki .kafel.duzy figcaption { padding-top: 9px; font-size: 15px; } .galeria-walki .kafel.duzy figcaption b { display: inline; font-size: inherit; }
  .galeria-walki .kafel.duzy img, .mozaika .szeroki video { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .przesun { display: block; }
  .cechy-walki { flex-direction: column; align-items: flex-start; gap: 8px; max-width: 370px; margin: 16px auto 0; text-align: left; }
  .cechy-walki li { font-size: 15.5px; }
  /* bohaterowie */
  .wybor-boh { gap: 10px 4px; max-width: 340px; margin: 0 auto 14px; }
  .medalion { flex: none; width: 78px; font-size: 14px; }
  .medalion .krag { width: 64px; height: 64px; }
  .medalion .krag img { inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); }
  .scena-boh { grid-template-columns: 1fr; gap: 0; }
  .popiersie { min-height: 0; }
  .popiersie img { width: 260px; }
  .popiersie::before { width: 260px; height: 260px; }
  .karta-boh { margin-top: -10px; padding: 18px 16px 16px; border-width: 14px; border-image-width: 14px; }
  .karta-boh p { font-size: 16px; }
  .wiek .prz.maly { font-size: 14px; padding: 0 2px 2px; }
  /* głosy: przewijane w bok */
  .dialogi { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 90%; max-width: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 14px; scrollbar-width: thin; scrollbar-color: #8a6a3a transparent; }
  .dialogi > * { scroll-snap-align: center; }
  .dialog { padding-top: 110px; }
  .dialog blockquote { min-height: 84px; padding: 22px 14px 12px; border-width: 13px; border-image-width: 13px; }
  .dialog blockquote p { font-size: 17px; }
  .d-twarz { width: 140px; height: 140px; left: 0; }
  .d-imie { left: 140px; top: -30px; font-size: 15px; min-height: 38px; }
  .dialog figcaption { margin-left: 14px; font-size: 13.5px; }
  /* filmy */
  .lista-filmow { grid-template-columns: 1fr; }
  .film-poz { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .film-poz b { font-size: 17px; }
  .graj-film .kolo { width: 72px; height: 72px; } .graj-film .kolo::after { left: 29px; top: 22px; border-width: 14px 0 14px 22px; }
  .graj-tytul { font-size: 16px; }
  /* reszta */
  .encyklopedia-link { flex-wrap: wrap; gap: 12px; padding: 8px 6px; }
  .encyklopedia-link > img { width: 40px; height: 40px; }
  .encyklopedia-link > span:not(.prz) { flex: 1 1 200px; }
  .encyklopedia-link .prz { width: 100%; }
  .tablica { padding: 20px 16px 18px; }
  .swieto .karta-perg { padding: 18px 14px; }
  .konto-panel { padding: 8px 6px; border-width: 16px; border-image-width: 16px; gap: 22px; }
  .konto-panel .przyciski .prz { flex: 1 1 140px; }
  .konto-podglad .ramka img { aspect-ratio: 570 / 810; }
  .kino-okno .zamknij { top: -62px; right: 0; }
}
@media (prefers-reduced-motion: reduce) { .iskry { display: none; } .dalej img { animation: none; } }
.galeria-walki .kafel.duzy img { aspect-ratio: 1688 / 780; }

/* ---------- v3.2: cena, premiera, jedno konto, pytania ---------- */
.hero-fakty { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; max-width: 600px; }
.hero-fakty li { display: grid; gap: 2px; padding: 10px 12px; background: linear-gradient(#2b1b12e6, #1a100be6); border: 1px solid #8a6230; border-radius: 6px; box-shadow: inset 0 1px 0 #fce48422, 0 4px 10px #0008; }
.hero-fakty b { font: 400 18px/1.15 var(--piksel); color: var(--zloto2); text-shadow: 0 2px 0 #000; }
.hero-fakty span { font-size: 13.5px; line-height: 1.3; color: #dcc8a2; }
.hero-pod b { color: var(--zloto2); font-weight: 700; }

.oferta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; max-width: 980px; margin: 0 auto; }
.oferta-karta { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 22px; border-style: solid; border-color: transparent; border-width: 20px; border-image: url(/ui/k/wiersz.webp) 30 fill / 20px stretch; color: var(--atrament); filter: drop-shadow(0 12px 22px #000b); }
.oferta-karta h3 { margin: 0; color: #4a1c10; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.oferta-karta h3 small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--brazowy); }
.oferta-karta > p { margin: 0; font-size: 16.5px; }
.oferta-karta .prz { align-self: flex-start; margin-top: auto; }
.oferta-karta.pelna { filter: drop-shadow(0 0 18px #e8a83a66) drop-shadow(0 12px 22px #000b); }
.oferta-karta.pelna .cena-pelna { color: #8e2a1e; font-size: 1.25em; }
.wstega { position: absolute; top: -26px; right: 18px; padding: 6px 14px 7px; background: linear-gradient(#b8402c, #7e2316); border: 1px solid #f2c25a; border-radius: 4px; color: #fff3d6; font: 400 14px/1 var(--piksel); text-shadow: 0 1px 0 #000; box-shadow: 0 4px 8px #0009; }
.lista-zalet { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 7px; }
.lista-zalet li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.4; }
.lista-zalet li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: url(/ui/k/ik/gwiazda.webp) center/contain no-repeat; }

.pod-tyt { margin: clamp(44px, 5vw, 64px) 0 22px; text-align: center; color: var(--zloto2); font-size: clamp(22px, 2.2vw, 28px); text-shadow: 0 2px 0 #000; }
.kalendarz { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 auto; padding: 0; max-width: 1060px; }
.kalendarz::before { content: ""; position: absolute; left: 6%; right: 6%; top: 15px; height: 4px; background: linear-gradient(90deg, #f2c25a, #8a6230 30%, #5a3a22); border-radius: 2px; }
.kalendarz li { position: relative; display: grid; justify-items: center; gap: 3px; padding-top: 40px; text-align: center; }
.kalendarz li::before { content: ""; position: absolute; top: 4px; left: 50%; translate: -50% 0; width: 26px; height: 26px; border-radius: 50%; background: #2b1b12; border: 3px solid #8a6230; box-shadow: 0 0 0 3px #120c09; }
.kalendarz li.jest::before { background: radial-gradient(circle, #fff3c0 0 25%, #f2c25a 26% 60%, #b07a28 61%); border-color: #fce484; box-shadow: 0 0 0 3px #120c09, 0 0 16px 4px #f2c25a88; }
.kalendarz b { font-size: 19px; color: var(--jasny); }
.kalendarz .kiedy { font: 400 16px/1.2 var(--piksel); color: var(--zloto2); }
.kalendarz li.jest .kiedy { color: #9ee07a; }
.kalendarz small { max-width: 24ch; font-size: 14px; line-height: 1.35; color: var(--cichy); }
.zagraj .platformy { padding-top: 48px; }

.jedno-konto { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 auto 40px; padding: 0; max-width: 1000px; counter-reset: krok; }
.jedno-konto li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; padding: 16px 18px; background: linear-gradient(#2b1b12, #1e130d); border: 1px solid #5a3a22; border-radius: 8px; box-shadow: inset 0 1px 0 #fce48418, 0 8px 18px #0009; }
.jedno-konto li:not(:last-child)::after { content: "›"; position: absolute; right: -16px; top: 50%; translate: 0 -50%; z-index: 1; font: 700 30px/1 var(--szeryf); color: var(--zloto); text-shadow: 0 2px 0 #000; }
.jedno-konto img { grid-row: span 2; width: 52px; height: 52px; padding: 8px; background: url(/ui/k/okr.webp) center/contain no-repeat; }
.jedno-konto b { color: var(--zloto2); font-size: 18px; }
.jedno-konto span { font-size: 15px; line-height: 1.4; color: #dcc8a2; }

.pytania { background: radial-gradient(900px 400px at 50% 0%, #4a2a1433, transparent 70%); }
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border-style: solid; border-color: transparent; border-width: 12px; border-image: url(/ui/k/wiersz.webp) 30 fill / 12px stretch; color: var(--atrament); filter: drop-shadow(0 6px 10px #0009); }
.faq summary { position: relative; padding: 8px 40px 8px 12px; cursor: pointer; list-style: none; font: 700 18px/1.3 var(--szeryf); color: #4a1c10; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #5a1c10; color: #fce484; font: 700 18px/1 var(--szeryf); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid #b8402c; outline-offset: 2px; }
.faq details p { margin: 0; padding: 0 12px 12px; font-size: 16.5px; }
kbd { display: inline-block; min-width: 1.6em; margin: 0 2px; padding: 1px 5px; border: 1px solid #8a6230; border-bottom-width: 3px; border-radius: 4px; background: #f6e6c0; color: #3e2418; font: 700 13px/1.4 var(--szeryf); text-align: center; }
.faq-dalej { margin: 30px 0 0; text-align: center; }

@media (max-width: 900px) {
  .oferta { grid-template-columns: 1fr; max-width: 560px; gap: 40px; }
  .kalendarz { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
  .kalendarz::before { left: 13px; right: auto; top: 14px; bottom: 30px; width: 4px; height: auto; background: linear-gradient(#f2c25a, #8a6230 30%, #5a3a22); }
  .kalendarz li { justify-items: start; text-align: left; padding: 0 0 18px 46px; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
  .kalendarz li::before { left: 2px; top: 1px; translate: 0 0; }
  .kalendarz small { grid-column: 1 / -1; max-width: none; }
  .jedno-konto { grid-template-columns: 1fr; max-width: 560px; gap: 22px; }
  .jedno-konto li:not(:last-child)::after { content: "⌄"; right: auto; left: 50%; top: auto; bottom: -24px; translate: -50% 0; }
}
@media (max-width: 760px) {
  .hero-fakty { grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 16px; }
  .hero-fakty li { padding: 8px 8px; }
  .hero-fakty b { font-size: 15px; }
  .hero-fakty span { font-size: 12px; }
  .oferta-karta { padding: 18px 14px 16px; border-width: 16px; }
  .oferta-karta .prz { align-self: stretch; }
  .faq summary { font-size: 16.5px; }
  .faq details p { font-size: 15.5px; }
}
@media (max-width: 420px) {
  .hero-fakty { grid-template-columns: 1fr; }
  .hero-fakty li { grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; }
}

/* pasek „Tak wygląda gra” zaraz pod wejściem */
.rozgrywka { position: relative; z-index: 1; padding: 26px 0 34px; background: linear-gradient(#0b0806, #140d09); border-top: 1px solid #5a3a22; border-bottom: 1px solid #3a2618; }
.rozgrywka .kicker { text-align: center; margin-bottom: 14px; }
.rozgrywka-pas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rozgrywka .ramka img, .rozgrywka .ramka video { aspect-ratio: 16 / 9; image-rendering: pixelated; }
@media (max-width: 760px) {
  .rozgrywka { padding: 20px 0 24px; }
  .rozgrywka-pas { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .rozgrywka-pas .kafel { flex: 0 0 78%; scroll-snap-align: center; }
}
.oferta-karta .wstega { top: 2px; right: 6px; }
.oferta-karta.pelna .kicker { padding-right: 120px; }
.link-apk { margin-top: 6px; color: #5a1c10; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-apk[aria-disabled="true"] { color: var(--brazowy); text-decoration: none; }
.platforma .link-apk + .drobny { max-width: 34ch; }

/* v3.2 runda 2: powiadomienie o premierze, czytelne daty, pasek rozgrywki na telefonie */
.kup-kiedy { margin: 2px 0 0 !important; font-size: 15.5px !important; color: var(--brazowy); }
.kup-kiedy b { color: #5a1c10; }
.pas-oferty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; }
.link-oferty { color: #5a1c10; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.powiadom { display: grid; gap: 6px; margin-top: 4px; }
.powiadom label[for] { font-weight: 700; color: #4a1c10; font-size: 15px; }
.powiadom input[type=email] { font: 17px var(--szeryf); color: var(--atrament); padding: 9px 10px; background: linear-gradient(#e6cd98, #f1e0b6 30%); border: 0; border-bottom: 2px solid #7a5530; box-shadow: inset 0 0 0 1px #b08c5a; border-radius: 3px; }
.powiadom input[type=email]:focus { outline: none; box-shadow: 0 0 0 3px #d4a63c88; }
.powiadom .zgoda { margin: 4px 0 2px; font-size: 14.5px; }
.powiadom .blad { margin: 0; }
.powiadom .prz { justify-self: start; }
.powiadom-ok { margin: 8px 0 0 !important; padding: 8px 10px; border-left: 4px solid var(--ziel); background: #3f6e2618; font-weight: 700; color: #2e5418; }
.kalendarz .kiedy { font: 700 17px/1.2 var(--szeryf); letter-spacing: .01em; }
.oferta-karta .wstega { background: linear-gradient(#f2c25a, #b07a28); color: #3a1e10; border-color: #fce484; text-shadow: 0 1px 0 #fff4; }
.jedno-konto li { background: linear-gradient(#3b2416, #2b1b12); border-color: #8a6230; }
.jedno-konto span { color: #ecdcbc; }
.dalej { font-size: 17px; bottom: 30px; }
@media (max-width: 900px) {
  .kalendarz li { grid-template-columns: 1fr; padding-bottom: 20px; row-gap: 2px; }
  .kalendarz b { font-size: 18px; }
}
@media (max-width: 760px) {
  .rozgrywka-pas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; overflow: visible; }
  .rozgrywka-pas .kafel { flex: none; }
  .rozgrywka-pas .kafel:first-child { grid-column: 1 / -1; }
  .rozgrywka-pas .kafel figcaption { font-size: 13.5px; }
  .pas-oferty .prz { flex: 1 1 100%; }
  .powiadom .prz { justify-self: stretch; }
}
@media (max-width: 900px) { .oferta { grid-template-columns: minmax(0, 1fr); } }
.oferta-karta .prz { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 420px) { .oferta-karta .prz { font-size: 16px; padding-left: 14px; padding-right: 14px; } }
@media (max-width: 760px) {
  /* „Gdzie zagrasz” na telefonie: zwarte karty z medalem po lewej */
  .zagraj .platformy { gap: 14px; padding-top: 0; }
  .platforma { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; text-align: left; gap: 4px 12px; padding: 14px 12px; border-width: 14px; }
  .platforma .medal { position: static; translate: none; grid-row: span 3; width: 56px; height: 56px; align-self: start; }
  .platforma .medal img { width: 30px; height: 30px; }
  .platforma h3 { font-size: 20px; }
  .platforma > p:not(.drobny) { font-size: 15px; }
  .platforma .prz, .platforma .link-apk { justify-self: start; margin-top: 4px; }
  .platforma .drobny { grid-column: 1 / -1; font-size: 13.5px; }
}
/* runda 3: czytelne nadtytuły (pikselowe „Z” wyglądało jak „2”), mocniejszy tekst na smoku, pasek rozgrywki jeden pod drugim */
.kicker { font: 700 13.5px/1.3 var(--szeryf); letter-spacing: .12em; text-transform: uppercase; }
.hero .kicker { display: inline-block; padding: 4px 10px; background: #120c09cc; border-radius: 3px; text-shadow: none; }
.hero-tyt, .hero-lead { text-shadow: 0 2px 0 #000, 0 0 18px #000, 0 0 34px #000c; }
.hero-pod { font-size: 17px; }
@media (max-width: 760px) {
  .kicker { font-size: 12px; }
  .hero-wew { background: linear-gradient(transparent, #120c0999 22%, #120c09d9 55%); padding-top: 40px; }
  .rozgrywka-pas { grid-template-columns: 1fr; gap: 16px; }
  .konto-podglad { display: none; }
  .hero-pod { font-size: 15px; }
}
/* runda 4 */
.kal-wstep { margin: -10px auto 26px; max-width: 60ch; text-align: center; color: #e8d6b2; }
.dla-testerow { margin-top: 6px; font-size: 14.5px; }
.dla-testerow summary { cursor: pointer; color: var(--brazowy); font-weight: 700; }
.dla-testerow[open] summary { margin-bottom: 4px; }
.oferta-karta.pelna .kicker { padding-right: 0; }
@media (max-width: 760px) {
  .konto-podglad { display: block; max-width: 300px; margin: 0 auto; }
  .hero .kicker { background: none; padding: 0; text-shadow: 0 2px 0 #000, 0 0 10px #000; }
  .platforma .dla-testerow { grid-column: 1 / -1; }
}
/* runda 5 */
.hero-fakty b { font: 700 17px/1.15 var(--szeryf); }
.tabliczka-wkrotce { margin: 6px 0 0 !important; padding: 6px 12px; border: 1px dashed #8a6230; border-radius: 4px; color: #5a1c10; font-weight: 700; }
@media (max-width: 760px) { .hero-fakty b { font-size: 15px; } .platforma .tabliczka-wkrotce { justify-self: start; } }
/* runda 6 */
.rozgrywka { background: radial-gradient(900px 260px at 50% 0%, #3a241466, transparent 70%), linear-gradient(#1a110bf0, #140d09f2); }
.menu a[href="/#pobierz"] { color: var(--zloto2); }
.prz.wylaczona { opacity: .75; filter: grayscale(.5); cursor: default; pointer-events: none; }
@media (max-width: 420px) { .glowna .akcje .zloty span { font-size: 15px; } }

/* ---------- 6b. zbroje i skarby (sekcja_skarby.py) ---------- */
.skarby { background: radial-gradient(900px 420px at 50% 0%, #5a3a1a44, transparent 70%), linear-gradient(#120c09, #17100b); }
.cechy-skarbow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 clamp(30px, 4vw, 44px); padding: 0; }
.cechy-skarbow li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #1e130dcc; border: 2px solid var(--linia); border-radius: 6px; color: #d9c49c; font-size: 15px; line-height: 1.4; }
.cechy-skarbow img { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 0 #000); }
.cechy-skarbow b { display: block; color: var(--zloto2); font-size: 17px; margin-bottom: 4px; }
.pod-tyt { text-align: center; margin: 0 0 18px; font: 400 clamp(22px, 2.6vw, 30px)/1.2 var(--piksel); color: #eab55a; text-shadow: 0 2px 0 #000; }
.legendy { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px 16px; }
.legenda { margin: 0; padding: 12px 12px 14px; background: linear-gradient(#2b1b12, #1e130d); border: 2px solid var(--zloto3); border-radius: 8px; box-shadow: inset 0 0 0 1px #000, 0 6px 18px #0008; outline: none; transition: transform .15s, border-color .15s; }
.legenda:hover, .legenda:focus-visible { transform: translateY(-3px); border-color: var(--zloto); }
.leg-obraz { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, #4a3020, #1a110b 70%); border-radius: 6px; overflow: hidden; }
.leg-obraz img { position: absolute; image-rendering: pixelated; transition: opacity .25s, transform .25s; }
.leg-zbroja { inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.leg-boss { left: 50%; bottom: 4%; width: 92%; height: auto; max-height: 80%; object-fit: contain; transform: translateX(-50%) scale(.96); opacity: 0; }
.legenda:hover .leg-zbroja, .legenda:focus-visible .leg-zbroja { opacity: 0; }
.legenda:hover .leg-boss, .legenda:focus-visible .leg-boss { opacity: 1; transform: translateX(-50%) scale(1); }
.legenda h3 { margin: 10px 0 2px; font-size: 18px; color: var(--zloto2); }
.leg-klasa { margin: 0 0 6px; font-size: 13.5px; color: #eab55a; }
.leg-hist { margin: 0; font-size: 14.5px; line-height: 1.4; color: #d9c49c; }
@media (max-width: 1000px) { .cechy-skarbow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cechy-skarbow { grid-template-columns: 1fr; } .legendy { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .legenda { flex: 0 0 78%; scroll-snap-align: center; } }
@media (hover: none) { .leg-boss { opacity: 1; width: 46%; left: auto; right: 2%; transform: none; bottom: 2%; } .legenda:hover .leg-zbroja { opacity: 1; } }
.leg-postac { width: auto; height: 78%; max-height: 78%; bottom: 8%; }
@media (hover: none) { .leg-postac { width: auto; height: 40%; right: 4%; bottom: 4%; } }
