/* WoWPoPolsku 2.0 · strona projektu
   Wolne kroje (SIL Open Font License): Grenze na tytuły, Alegreya na tekst, przycięte do
   latin + latin-ext. Fontów z gry (Friz Quadrata, Morpheus) nie wolno rozpowszechniać na
   stronie bez licencji webowej. Tło całej strony jak na platformie: noc, mapa, zorze, iskry. */

@font-face {
  font-family: "Grenze";
  src: url("fonts/grenze-latin-ext-wght-normal.abe5e4b889.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Grenze";
  src: url("fonts/grenze-latin-wght-normal.2f76a162fd.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Alegreya";
  src: url("fonts/alegreya-latin-ext-wght-normal.16b24f84da.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Alegreya";
  src: url("fonts/alegreya-latin-wght-normal.2431eca3ed.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Alegreya";
  src: url("fonts/alegreya-latin-ext-wght-italic.3b6ec2f8e4.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Alegreya";
  src: url("fonts/alegreya-latin-wght-italic.1846c30749.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  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;
}

/* ---------- Tokeny ---------- */
:root {
  /* noc Azeroth (zgodna z platformą: noc-900 #04070F, noc-800 #070C1A, noc-700 #0B1226) */
  --noc-1000: #04070f;
  --noc-950: #070c1a;
  --noc-900: #0a1022;
  --noc-800: #0b1226;
  --noc-700: #111b36;
  --noc-600: #18274a;
  --arkana: #5b8de0;
  --arkana-glab: #7b5fd9;
  --tekst: #ece5d3;
  --tekst-cichy: #aab0c2;
  --tekst-blady: #7f879c;

  /* złoto interfejsu i metal ram */
  --zloto: #ffd100;
  --zloto-jasne: #fff0a0;
  --zloto-stare: #c9a24a;
  --braz: #7a5a2c;
  --braz-ciemny: #3e2c14;
  --zelazo: #5d6475;

  /* pergamin */
  --pergamin: #ecdcb6;
  --pergamin-cien: #d2b783;
  --atrament: #3a2512;
  --atrament-tytul: #1f1206;

  /* jakość przedmiotów (wierne kolory z gry) */
  --q-zwykla: #ffffff;
  --q-niezwykla: #1eff00;
  --q-rzadka: #0070dd;
  --q-epicka: #a335ee;
  --q-legendarna: #ff8000;
  --q-uzyj: #1eff00;

  /* reputacja */
  --rep-nieprzyjazn: #bf4500;
  --rep-neutral: #e6b300;
  --rep-przyjazn: #009919;

  /* typografia: Grenze (tytuły, klimat okna zadania) + Alegreya (interfejs i tekst).
     Jak w grze hierarchię robi rozmiar i kolor, a nie pogrubienie. */
  --f-tytul: "Grenze", "Alegreya", "Palatino Linotype", serif;
  --f-tekst: "Alegreya", "Palatino Linotype", Georgia, serif;
  --t-mini: 0.84rem;
  --t-maly: 0.95rem;
  --t-baza: 1.0625rem;
  --t-l: 1.5rem;
  --t-xl: 1.95rem;
  --t-2xl: 2.6rem;
  --t-3xl: clamp(2.5rem, 4.4vw, 4.1rem);

  --szer: 1180px;
  --bok: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--noc-1000);
  color: var(--tekst);
  font-family: var(--f-tekst);
  font-size: var(--t-baza);
  line-height: 1.6;
  font-synthesis: none; /* bez sztucznego pogrubiania i pochylania */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--zloto); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--zloto-jasne); }
:focus-visible { outline: 2px solid var(--zloto); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-tytul); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: 0.01em; }
b, strong { font-weight: 400; color: var(--zloto-jasne); }
.zadanie__pergamin b, .karczma b, .notatka b { color: var(--atrament-tytul); }
.ukryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kontener { max-width: var(--szer); margin: 0 auto; padding: 0 var(--bok); }

/* ---------- Nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 26, 0.78);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 162, 74, 0.22);
}
.nav__w { display: flex; align-items: center; gap: 28px; height: 68px; }
.znak { display: flex; align-items: center; gap: 11px; color: var(--tekst); text-decoration: none; }
.znak svg, .znak img { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.znak b { font-family: var(--f-tytul); font-size: 1.42rem; color: var(--zloto); letter-spacing: 0.01em; text-shadow: 0 1px 0 #000; }
.znak__wersja {
  font-family: var(--f-tekst); font-size: .78rem; line-height: 1; color: #1a1003; padding: 3px 6px 2px; margin-left: -4px;
  background: linear-gradient(180deg, #fff0a0, #e8b83a 55%, #b07a14); border-radius: 3px; box-shadow: 0 0 0 1px #2a1a04, 0 0 10px rgba(255, 209, 0, .25);
}
/* Dwie grupy rozwijane (<details>, działają bez JS) i zwykłe odnośniki. Panel grupy wygląda jak
   okno z przedmiotami: ikona w ramce jakości, nazwa w jej kolorze, pod nią jedno zdanie. */
.nav__glowne { margin-left: auto; }
.nav__linki { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__linki > li { position: relative; }
.nav__linki > li > a, .nav__rozwin > summary {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--tekst-cichy); text-decoration: none;
  font-size: 1rem; white-space: nowrap; border-radius: 3px; cursor: pointer; list-style: none;
}
.nav__rozwin > summary::-webkit-details-marker { display: none; }
.nav__rozwin > summary::after {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; opacity: .75;
}
.nav__rozwin[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.nav__linki > li > a:hover, .nav__linki > li > a[aria-current="page"], .nav__rozwin > summary:hover,
.nav__rozwin[open] > summary, .nav__rozwin--aktywna > summary { color: var(--zloto-jasne); background: rgba(255, 209, 0, 0.06); }
/* Bieżąca strona: złota kreska pod pozycją, jak zaznaczona zakładka w oknie postaci. */
.nav__linki > li > a[aria-current="page"], .nav__rozwin--aktywna > summary { box-shadow: inset 0 -2px 0 var(--zloto-stare); }
.nav__panel {
  position: absolute; left: 0; top: calc(100% + 15px); z-index: 2; width: 336px; padding: 8px; display: grid; gap: 2px;
  background: linear-gradient(180deg, rgba(13, 20, 46, .98), rgba(4, 7, 22, .98));
  border: 1px solid rgba(201, 162, 74, .6); border-radius: 6px;
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 230, 160, .08), 0 24px 50px rgba(0, 0, 0, .65);
  animation: zjazd .16s ease both;
}
/* Niewidoczny pomost między pozycją a panelem: mysz nie gubi grupy po drodze w dół. */
.nav__rozwin > .nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 17px; }
.nav__poz { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 8px; color: var(--tekst); text-decoration: none; border-radius: 4px; }
.nav__poz:hover, .nav__poz[aria-current="page"] { color: var(--tekst); background: rgba(255, 209, 0, 0.07); }
.nav__poz[aria-current="page"] { box-shadow: inset 2px 0 0 var(--zloto); }
.nav__poz .ikona { width: 40px; height: 40px; }
.nav__poz .ikona svg { width: 24px; height: 24px; }
.nav__poz b { display: block; color: var(--q, var(--tekst)); font-size: 1.04rem; line-height: 1.25; text-shadow: 0 1px 0 #000; }
.nav__poz small { display: block; color: var(--tekst-cichy); font-size: .86rem; line-height: 1.3; }
.nav__naglowek { margin: 8px 10px 2px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zloto-stare); }
.nav__naglowek:first-child { margin-top: 2px; }
.nav__akcje { display: flex; gap: 10px; align-items: center; margin-left: 12px; }
/* Menu na telefonie: ten sam panel, przypięty do prawej krawędzi i przewijany, gdy ekran jest niski. */
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid rgba(201, 162, 74, .45); border-radius: 4px; color: var(--tekst); font-weight: 600; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu .nav__panel { left: auto; right: 0; top: calc(100% + 10px); width: min(336px, calc(100vw - 2 * var(--bok))); max-height: calc(100dvh - 88px); overflow-y: auto; }

/* ---------- Przyciski ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  font-family: var(--f-tekst); font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border-radius: 4px;
  transition: filter .15s ease, transform .08s ease, box-shadow .15s ease;
}
/* czerwony przycisk z interfejsu gry */
.btn--gra {
  color: var(--zloto);
  text-shadow: 0 1px 0 #000, 0 0 8px rgba(0, 0, 0, .6);
  background:
    linear-gradient(180deg, rgba(255, 190, 150, .28) 0, rgba(255, 190, 150, 0) 46%),
    linear-gradient(180deg, #a8241a 0%, #7d140d 52%, #5a0c07 100%);
  border: 1px solid #1d0402;
  box-shadow: 0 0 0 1px var(--zloto-stare), 0 0 0 3px #1d0402, 0 6px 16px rgba(0, 0, 0, .45), inset 0 -2px 6px rgba(0, 0, 0, .35);
}
.btn--gra:hover { color: var(--zloto-jasne); filter: brightness(1.15); box-shadow: 0 0 0 1px var(--zloto), 0 0 0 3px #1d0402, 0 0 22px rgba(255, 140, 40, .35), inset 0 -2px 6px rgba(0, 0, 0, .35); }
.btn--gra:active { transform: translateY(1px); filter: brightness(.95); }
/* np. przerwa po wgraniu pliku (wgraj-dane.js) */
.btn:disabled, .btn:disabled:hover { cursor: not-allowed; filter: grayscale(.85) brightness(.7); transform: none; }
.btn--cichy {
  color: var(--tekst);
  background: rgba(10, 16, 34, .55);
  border: 1px solid rgba(201, 162, 74, .55);
}
.btn--cichy:hover { color: var(--zloto-jasne); border-color: var(--zloto); background: rgba(10, 16, 34, .8); }
/* Wejście do platformy: lekko złote, żeby dało się je znaleźć, ale ciszej niż „Pobierz”. */
.btn--platforma { color: var(--zloto-stare); border-color: var(--zloto-stare); background: rgba(201, 162, 74, .1); }
.btn--platforma svg { color: var(--zloto-stare); }
.btn--platforma:hover { color: var(--zloto-jasne); background: rgba(201, 162, 74, .18); box-shadow: 0 0 14px rgba(201, 162, 74, .25); }
/* Forever: niebieski jak przedmiot „rzadki”, żeby nie konkurował ze złotym „Pobierz”. */
.btn--forever { color: #cfe3ff; background: rgba(15, 29, 64, .7); border: 1px solid #2a8cf0; }
.btn--forever svg { color: var(--zloto); }
.btn--forever:hover { color: #fff; background: rgba(15, 29, 64, .95); box-shadow: 0 0 18px rgba(42, 140, 240, .35); }
.btn--forever .plakietka { vertical-align: 0; }
.btn--maly { --h: 38px; padding: 0 16px; font-size: .92rem; }
.btn--duzy { --h: 54px; padding: 0 28px; font-size: 1.1rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  margin-top: -68px; padding: calc(68px + clamp(40px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px);
  min-height: min(940px, 100vh);
  overflow: hidden;
}
.hero__scena { position: absolute; inset: 0; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
.hero__scena img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__w {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: start; /* górna krawędź tablicy ogłoszeń w jednej linii z oknem zadania */
}
.hero__intro { max-width: 34rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; }
/* Tytuł z przyciskami u góry (w linii z górą okna zadania), tablica ogłoszeń na dole (w linii z jego dołem). */
.hero__intro > .tablica { margin-top: auto; }
.hero__cta { margin-bottom: 32px !important; }
.hero__intro > * { max-width: 100%; }
.hero__kto { color: var(--tekst-cichy); font-size: .98rem; margin-bottom: 14px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.hero__kto svg { width: 18px; height: 18px; }
.hero h1 {
  font-size: var(--t-3xl); line-height: 1; letter-spacing: 0;
  background: linear-gradient(180deg, #fff6c4 0%, #ffd100 46%, #d79a12 78%, #a8700c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2a1a04) drop-shadow(0 8px 24px rgba(0, 0, 0, .55));
  margin-bottom: 22px;
}
.hero h1 { white-space: nowrap; }
.h1__wersja { display: inline-block; font-family: var(--f-tekst); font-size: .42em; vertical-align: .9em; margin-left: .12em; padding: .12em .32em .06em; color: #1a1003; -webkit-text-fill-color: #1a1003; background: linear-gradient(180deg, #fff0a0, #e8b83a 55%, #b07a14); border-radius: .14em; box-shadow: 0 0 0 2px #2a1a04, 0 0 24px rgba(255, 209, 0, .35); }
.hero__lead { font-size: 1.2rem; line-height: 1.5; color: var(--tekst); max-width: 28rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 0; }
.hero__stan { font-size: var(--t-maly); color: var(--tekst-cichy); }
.hero__stan strong { color: var(--tekst); }
.hero__stan a { color: var(--zloto); }

/* ---------- Okno zadania (znak rozpoznawczy strony) ---------- */
.zadanie {
  position: relative;
  border: 3px solid transparent;
  border-image: linear-gradient(160deg, #e3c070, #7a5a2c 30%, #d4ad5a 55%, #5e4220 80%, #c9a24a) 1;
  background: var(--noc-950);
  box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0, 0, 0, .65), 0 0 120px rgba(120, 150, 230, .12);
  animation: rozwin .9s cubic-bezier(.2, .8, .2, 1) .15s both;
}
.zadanie::before, .zadanie::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M1 25V9L9 1h16' fill='none' stroke='%23e8c46a' stroke-width='2.2'/%3E%3Cpath d='M5 25V11l6-6h14' fill='none' stroke='%237a5a2c' stroke-width='1.4'/%3E%3Cpath d='M9 9l3-3 3 3-3 3z' fill='%23ffd100'/%3E%3C/svg%3E") no-repeat;
}
.zadanie::before { top: -6px; left: -6px; }
.zadanie::after { bottom: -6px; right: -6px; transform: rotate(180deg); }
.zadanie__pasek {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 12px;
  background: linear-gradient(180deg, #2a2f3d, #171a24);
  border-bottom: 2px solid #0b0c10;
  color: var(--zloto);
}
.zadanie__pasek .wykrzyknik { width: 28px; height: 28px; flex: none; animation: zjazd .7s cubic-bezier(.3, 1.5, .5, 1) .9s both; }
.zadanie__pasek span { font-size: .96rem; text-shadow: 0 1px 0 #000; }
.przelacznik {
  margin-left: auto; display: inline-flex; padding: 2px;
  background: #0b0c10; border: 1px solid #4a4f5e; border-radius: 4px;
}
.przelacznik button {
  font: .82rem var(--f-tekst); color: var(--tekst-cichy);
  background: none; border: 0; padding: 4px 10px; border-radius: 3px; cursor: pointer;
}
.przelacznik button[aria-pressed="true"] { color: #1a1003; background: linear-gradient(180deg, #ffe066, #d9a800); }
.zadanie__pergamin {
  position: relative;
  padding: 26px clamp(20px, 3.2vw, 34px) 24px;
  color: var(--atrament);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, #f6ead0 0%, var(--pergamin) 45%, var(--pergamin-cien) 100%);
  box-shadow: inset 0 0 50px rgba(110, 66, 18, .45), inset 0 0 8px rgba(80, 45, 10, .5);
}
.zadanie__pergamin h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); color: var(--atrament-tytul); margin-bottom: 14px; }
.zadanie__pergamin h3 { font-size: 1.3rem; color: var(--atrament-tytul); margin: 20px 0 8px; }
.zadanie__pergamin p { font-size: 1.02rem; line-height: 1.55; margin-bottom: .8em; }
.cele { list-style: none; margin: 0; padding: 0; }
.cele li { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; font-size: 1rem; transition: color .3s ease; }
.cele li::before { content: ""; flex: none; width: 7px; height: 7px; transform: rotate(45deg) translateY(-2px); background: var(--atrament); }
.cele li span { margin-left: auto; font-variant-numeric: lining-nums tabular-nums; color: #6b4a22; font-weight: 600; }
.nagrody { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 12px; }
.nagroda { display: flex; align-items: center; gap: 0; min-width: 0; }
.ikona {
  flex: none; width: 46px; height: 46px; border-radius: 5px; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #4a5a7e, #1a2036 75%);
  border: 2px solid var(--q, #888); box-shadow: 0 0 0 1px #000, inset 0 0 10px rgba(0, 0, 0, .6);
}
.ikona svg { width: 28px; height: 28px; }
.nagroda__nazwa {
  flex: 1; min-width: 0; margin-left: -2px; padding: 5px 10px; min-height: 40px; display: flex; align-items: center;
  background: linear-gradient(90deg, #1c1208 0%, rgba(28, 18, 8, .92) 70%, rgba(28, 18, 8, .78));
  color: var(--q, #fff); font-size: .9rem; line-height: 1.2;
  border-radius: 0 4px 4px 0; text-shadow: 0 1px 0 #000;
}
.koszt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.05rem; }
.monety { display: inline-flex; gap: 10px; font-weight: 700; font-variant-numeric: lining-nums; }
.monety i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.monety i::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--m); box-shadow: inset -2px -2px 2px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .4); }
.koszt small { color: #6b4a22; font-size: .98rem; }
.zadanie__stopka {
  display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: 12px 14px;
  background: linear-gradient(180deg, #2a2f3d, #171a24);
  border-top: 2px solid #0b0c10;
}
.zadanie__stopka a:not(.btn) { font-size: 1rem; color: var(--tekst-cichy); }
[data-en] { transition: opacity .18s ease; }
.zadanie.przelacza [data-en] { opacity: 0; }

@keyframes rozwin { from { opacity: 0; transform: translateY(14px) scale(.985); clip-path: inset(0 0 40% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes zjazd { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Sekcje ---------- */
.sekcja { padding: clamp(60px, 7.5vw, 104px) 0; position: relative; }
.hero + .sekcja { padding-top: clamp(32px, 4vw, 56px); }
.sekcja--glebia { background: linear-gradient(180deg, rgba(4, 7, 15, 0), rgba(4, 7, 15, .42) 18%, rgba(4, 7, 15, .42) 82%, rgba(4, 7, 15, 0)); }
:is(.hero, .sekcja) + .sekcja::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: min(560px, 80%); height: 16px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 16' preserveAspectRatio='none'%3E%3ClinearGradient id='l' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c9a24a' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23c9a24a'/%3E%3Cstop offset='1' stop-color='%23c9a24a' stop-opacity='0'/%3E%3C/linearGradient%3E%3Crect y='7.5' width='560' height='1' fill='url(%23l)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
:is(.hero, .sekcja) + .sekcja::after {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  transform: rotate(45deg); background: var(--noc-1000); border: 1px solid var(--zloto-stare); box-shadow: 0 0 0 3px var(--noc-1000), 0 0 12px rgba(255, 196, 107, .35);
}
.sekcja__glowa { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.sekcja__glowa h1, .sekcja__glowa h2 {
  font-size: var(--t-2xl); margin-bottom: 14px;
  background: linear-gradient(180deg, #fff3c0 0%, #ffd100 52%, #c98d10 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .7));
}
.sekcja__glowa p { color: var(--tekst-cichy); font-size: 1.08rem; margin: 0; line-height: 1.65; }

/* ---------- Pobierz: tooltipy przedmiotów ---------- */
.pobierz { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tooltip {
  --q: var(--q-zwykla);
  position: relative;
  background: linear-gradient(180deg, rgba(10, 16, 42, .97), rgba(4, 7, 22, .97));
  border: 1px solid #6d7385;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 255, 255, .04), 0 14px 40px rgba(0, 0, 0, .5);
  padding: 14px 18px 16px;
  font-size: .98rem; line-height: 1.5; color: #fff;
}
.tooltip--epicka { --q: var(--q-epicka); }
.tooltip--legendarna { --q: var(--q-legendarna); }
.tooltip--rzadka { --q: var(--q-rzadka); }
.tooltip--niezwykla { --q: var(--q-niezwykla); }
.tooltip__naglowek { display: flex; gap: 14px; align-items: flex-start; }
.tooltip__naglowek .ikona { width: 52px; height: 52px; }
.tooltip h3 { font-family: var(--f-tekst); font-size: 1.22rem; color: var(--q); line-height: 1.2; margin: 2px 0 2px; }
.tooltip--rzadka h3 { color: #2a8cf0; }
.tooltip .linia { display: flex; justify-content: space-between; gap: 16px; margin: 0; }
.tooltip .linia span:last-child { text-align: right; }
.tooltip .uzyj { color: var(--q-uzyj); margin: 8px 0 0; }
.tooltip .wymaga { color: #fff; }
.tooltip .smak { color: var(--zloto); margin: 8px 0 0; }
.tooltip .szary { color: #9d9d9d; }
.tooltip__akcje { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(109, 115, 133, .35); }
.tooltip__akcje small { color: var(--tekst-cichy); font-size: .95rem; }
.tooltip--duzy { padding: 20px 24px 22px; }
.tooltip--duzy h3 { font-size: 1.55rem; }

.instalacja { margin-top: 32px; }
.instalacja h3 { font-size: var(--t-l); color: var(--tekst); margin-bottom: 14px; }
.instalacja ol { counter-reset: krok; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.instalacja li { counter-increment: krok; position: relative; padding-left: 54px; min-height: 36px; color: var(--tekst); font-size: .98rem; }
.instalacja li::before {
  content: ""; position: absolute; left: 6px; top: 4px; width: 26px; height: 26px;
  border: 1px solid var(--zloto-stare); transform: rotate(45deg); background: var(--noc-700);
}
.instalacja li::after {
  content: counter(krok); position: absolute; left: 0; top: 0; width: 38px; height: 34px; display: grid; place-items: center;
  font-family: var(--f-tekst); font-size: 1rem; color: var(--zloto);
}
.instalacja li > span { display: block; padding-top: 2px; }
.sciezka { display: block; width: fit-content; max-width: 100%; margin-top: 6px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 3px; }

/* ---------- O nas ---------- */
.o-nas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.proza { max-width: 36rem; font-size: 1.08rem; line-height: 1.75; }
.proza > p:first-of-type::first-letter {
  font-family: var(--f-tytul); float: left; font-size: 4.4em; line-height: .78; margin: .1em .12em 0 0;
  color: var(--zloto); text-shadow: 0 3px 0 rgba(0, 0, 0, .5);
}
.zasady { margin: 0; display: grid; gap: 26px; }
.zasady div { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; }
.zasady svg { grid-row: span 2; width: 40px; height: 40px; }
.zasady dt { font-family: var(--f-tytul); font-size: 1.4rem; color: var(--zloto); }
.zasady dd { margin: 0; color: var(--tekst-cichy); }

/* ---------- Wieści ---------- */
.wiesci { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.wpis-glowny {
  display: block; text-decoration: none; color: inherit; position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(163, 53, 238, .18), transparent 60%),
    linear-gradient(180deg, rgba(17, 27, 54, .88), rgba(7, 12, 26, .92));
  border: 1px solid rgba(201, 162, 74, .35); border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.wpis-glowny:hover { border-color: var(--zloto-stare); }
.wpis-glowny h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--tekst); margin: 14px 0 14px; }
.wpis-glowny:hover h3 { color: var(--zloto-jasne); }
.wpis-glowny p { color: var(--tekst-cichy); max-width: 34rem; font-size: 1rem; }
.czytaj { color: var(--zloto); font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--tekst-blady); font-size: .96rem; }
.etykieta { display: inline-block; padding: 2px 9px 1px; border-radius: 3px; font-size: .8rem; letter-spacing: .02em; border: 1px solid currentColor; }
.etykieta--zmiany { color: #4cd964; }
.etykieta--nowosc { color: var(--zloto); }
.etykieta--poradnik { color: #5aa9ff; }
.etykieta--wow { color: #ff9a3d; }
.lista-wpisow { list-style: none; margin: 0; padding: 0; }
.lista-wpisow li + li { border-top: 1px solid rgba(127, 135, 156, .2); }
.lista-wpisow a { display: grid; grid-template-columns: 62px 1fr; gap: 16px; padding: 16px 0; text-decoration: none; color: inherit; }
.lista-wpisow a:hover h4 { color: var(--zloto-jasne); }
.data { text-align: center; line-height: 1; padding-top: 4px; }
.data b { display: block; font-family: var(--f-tytul); font-size: 1.9rem; color: var(--tekst); }
.data span { font-size: .9rem; color: var(--tekst-blady); }
.lista-wpisow h4 { margin: 6px 0 4px; font-family: var(--f-tekst); font-weight: 400; font-size: 1.06rem; line-height: 1.3; color: var(--tekst); }
.lista-wpisow p { margin: 0; color: var(--tekst-cichy); font-size: .92rem; line-height: 1.5; }
.wiesci__wszystkie { display: inline-block; margin-top: 18px; font-weight: 700; }

/* ---------- Społeczność i karczma ---------- */
.spolecznosc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: stretch; }
.kanaly { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.kanal {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; text-decoration: none; color: inherit;
  background: rgba(11, 18, 38, .78); border: 1px solid rgba(127, 135, 156, .3); border-radius: 6px;
}
.kanal:hover { border-color: var(--zloto-stare); background: rgba(31, 44, 78, .8); }
.kanal svg { width: 40px; height: 40px; flex: none; }
.kanal__tekst { display: grid; gap: 2px; }
.kanal b { font-size: 1.1rem; color: var(--tekst); display: inline-flex; align-items: center; gap: 6px; }
.kanal b .zewn { width: 14px; height: 14px; opacity: .7; }
.kanal__tekst span { color: var(--tekst-cichy); font-size: .92rem; line-height: 1.45; }
.kanal--discord { grid-column: 1 / -1; padding: 24px 26px; border-color: rgba(88, 101, 242, .55); background: linear-gradient(120deg, rgba(88, 101, 242, .2), rgba(21, 31, 59, .7) 60%); }
.kanal--discord b { font-size: 1.45rem; }
.kanal--redakcja { grid-column: 1 / -1; border-color: rgba(201, 162, 74, .5); background: linear-gradient(120deg, rgba(201, 162, 74, .14), rgba(11, 18, 38, .78) 60%); }
.kanal--szeroki { grid-column: 1 / -1; }
.karczma {
  position: relative; padding: clamp(24px, 3vw, 34px);
  color: var(--atrament);
  background:
    radial-gradient(ellipse at 30% 20%, #f6ead0 0%, var(--pergamin) 45%, var(--pergamin-cien) 100%);
  box-shadow: inset 0 0 50px rgba(110, 66, 18, .45), 0 0 0 1px #000, 0 0 0 4px #3e2c14, 0 0 0 5px #000, 0 20px 50px rgba(0, 0, 0, .5);
  border-radius: 2px;
}
.karczma h3 { font-size: var(--t-xl); color: var(--atrament-tytul); margin-bottom: 12px; }
.karczma p { font-size: 1rem; line-height: 1.6; }
.karczma ul { font-size: 1rem; }
.karczma ul { margin: 0 0 1.1em; padding-left: 1.1em; }
.karczma li { margin: 2px 0; }
.karczma .btn { margin-top: 6px; }
.karczma small { display: block; margin-top: 14px; color: #6b4a22; font-size: .98rem; }

/* ---------- Stopka ---------- */
.stopka { border-top: 1px solid rgba(201, 162, 74, .2); background: rgba(4, 7, 15, .92); padding: 48px 0 40px; color: var(--tekst-blady); font-size: .98rem; }
.stopka__w { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.stopka__opis { margin-top: 14px; max-width: 26rem; }
.stopka h4 { margin: 0 0 10px; font-family: var(--f-tytul); font-weight: 400; color: var(--tekst); font-size: 1.12rem; }
.stopka ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stopka a { color: var(--tekst-cichy); text-decoration: none; }
.stopka a:hover { color: var(--zloto-jasne); text-decoration: underline; }
.stopka__prawne { grid-column: 1 / -1; margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(127, 135, 156, .15); font-size: .9rem; line-height: 1.55; max-width: 60rem; }

/* ---------- Wpis (szablon artykułu) ---------- */
.artykul__glowa { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 40px); background: radial-gradient(ellipse at 70% -20%, rgba(159, 182, 230, .14), transparent 60%), linear-gradient(180deg, rgba(4, 7, 15, 0), rgba(4, 7, 15, .45)); border-bottom: 1px solid rgba(201, 162, 74, .2); }
.artykul__waski { max-width: 46rem; margin: 0 auto; padding: 0 var(--bok); }
.okruszki { font-size: .98rem; color: var(--tekst-blady); margin-bottom: 26px; }
.okruszki a { color: var(--tekst-cichy); }
.artykul__glowa h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--zloto); line-height: 1.08; margin: 16px 0 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.artykul__lead { font-size: 1.2rem; line-height: 1.55; color: var(--tekst); margin: 0 0 22px; }
.artykul__tresc { padding: clamp(40px, 6vw, 64px) 0 clamp(64px, 8vw, 96px); font-size: 1.06rem; line-height: 1.8; }
.artykul__tresc h2 { font-size: var(--t-xl); color: var(--tekst); margin: 1.8em 0 .6em; }
.artykul__tresc h3 { font-family: var(--f-tekst); font-weight: 400; font-size: 1.3rem; color: var(--zloto); margin: 1.5em 0 .4em; }
.artykul__tresc ul, .artykul__tresc ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.artykul__tresc li { margin: .3em 0; }
.artykul__tresc li::marker { color: var(--zloto-stare); }
.artykul__tresc blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--zloto-stare); font-family: var(--f-tytul); color: var(--zloto-jasne); font-size: 1.45rem; line-height: 1.4; }
/* Markdown zawija treść cytatu w <p>; bez marginesu wygląda jak cytat z makiety. */
.artykul__tresc blockquote > p { margin: 0; }
/* Długie ścieżki (WTF\Account\...) łamią się zamiast rozpychać stronę na telefonie. */
.artykul__tresc code { overflow-wrap: anywhere; }
.artykul__tresc figure { margin: 2em 0; }
.artykul__tresc figcaption { margin-top: 10px; color: var(--tekst-blady); font-size: .98rem; }
.porownanie { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.porownanie .tooltip { font-size: 1rem; }
.porownanie .tooltip small { display: block; color: var(--tekst-blady); font-size: .85rem; margin-bottom: 4px; }
.notatka {
  margin: 2em 0; padding: 18px 22px; color: var(--atrament);
  background: radial-gradient(ellipse at 30% 20%, #f6ead0 0%, var(--pergamin) 50%, var(--pergamin-cien) 100%);
  box-shadow: inset 0 0 30px rgba(110, 66, 18, .4), 0 0 0 1px #000, 0 0 0 3px #3e2c14;
  font-size: 1.12rem;
}
.notatka b { color: var(--atrament-tytul); }
.notatka code { background: rgba(58, 37, 18, .1); border-color: rgba(58, 37, 18, .25); }
/* Ważne ostrzeżenie we wpisie: legendarny pomarańcz, romb z wykrzyknikiem, powolna poświata. */
.alarm {
  position: relative; margin: 2.2em 0; padding: 20px 24px 20px 78px; border: 1px solid var(--q-legendarna); border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 128, 0, .18) 0%, rgba(11, 18, 38, .92) 55%, rgba(255, 128, 0, .08) 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #3e2c14, 0 0 26px rgba(255, 128, 0, .3);
  animation: alarm 3.2s ease-in-out infinite alternate;
}
.alarm::before {
  content: "!"; position: absolute; left: 24px; top: 24px; width: 32px; height: 32px; display: grid; place-items: center;
  font: 1.35rem/1 var(--f-tytul); color: #1d0402; background: var(--q-legendarna);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 8px rgba(255, 128, 0, .8));
}
.alarm > p { margin: 0 0 .6em; font-size: 1.08rem; }
.alarm > p:last-child { margin-bottom: 0; }
.alarm .alarm__tytul { font-family: var(--f-tytul); font-size: 1.4rem; line-height: 1.15; color: var(--q-legendarna); text-shadow: 0 0 12px rgba(255, 128, 0, .45); }
.alarm strong { color: var(--zloto-jasne); }
@keyframes alarm { from { box-shadow: 0 0 0 1px #000, 0 0 0 3px #3e2c14, 0 0 18px rgba(255, 128, 0, .2); } to { box-shadow: 0 0 0 1px #000, 0 0 0 3px #3e2c14, 0 0 34px rgba(255, 128, 0, .45); } }
@media (max-width: 560px) { .alarm { padding: 64px 18px 18px; } .alarm::before { left: 18px; top: 18px; } }
.zmiany { margin: 1.4em 0; border: 1px solid rgba(127, 135, 156, .3); border-radius: 6px; overflow: hidden; }
.zmiany h3 { margin: 0 !important; padding: 10px 18px; background: rgba(21, 31, 59, .9); font-size: 1.12rem !important; }
.zmiany ul { margin: 0; padding: 14px 18px 14px 38px; font-size: 1.08rem; }
.zmiany--nowe h3 { color: #4cd964 !important; }
.zmiany--poprawki h3 { color: #5aa9ff !important; }
.zmiany--znane h3 { color: #ff9a3d !important; }
.ai-znacznik { display: flex; gap: 12px; align-items: flex-start; margin-top: 3em; padding: 16px 18px; border: 1px dashed rgba(127, 135, 156, .45); border-radius: 6px; font-size: 1rem; color: var(--tekst-cichy); line-height: 1.5; }
.ai-znacznik svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.artykul__dalej { border-top: 1px solid rgba(201, 162, 74, .2); padding: 48px 0 72px; background: rgba(4, 7, 15, .5); }
.artykul__dalej h2 { font-size: var(--t-l); color: var(--tekst); margin-bottom: 8px; }

/* ---------- Tło całej strony (jak na platformie) ---------- */
.tlo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #0b1226 0%, #070c1a 50%, #04070f 100%); }
.tlo__mapa { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; opacity: .45; }
.tlo__zorza { position: absolute; border-radius: 50%; }
.tlo__zorza--arkana { left: 70%; top: -16rem; width: 40rem; height: 40rem; background: rgba(91, 141, 224, .09); filter: blur(140px); animation: zorza 14s ease-in-out infinite alternate; }
.tlo__zorza--glab { left: -12rem; top: 6rem; width: 34rem; height: 34rem; background: rgba(123, 95, 217, .07); filter: blur(150px); }
.tlo__iskry { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes zorza { from { opacity: .7; transform: translate3d(0, 0, 0) scale(1); } to { opacity: 1; transform: translate3d(-4rem, 2rem, 0) scale(1.12); } }

.pomin { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--zloto); color: #1a1003; border-radius: 4px; text-decoration: none; }
.pomin:focus { top: 12px; }

/* ---------- Hero: dodatki ---------- */
/* Tablica ogłoszeń: trzy najnowsze wieści nad tytułem, jak tablica zadań w mieście */
.tablica {
  margin: 0; width: 100%; max-width: 34rem;
  background: linear-gradient(180deg, rgba(40, 30, 14, .82), rgba(14, 12, 10, .86));
  border: 1px solid rgba(201, 162, 74, .55); border-radius: 6px;
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 230, 160, .1), 0 18px 40px rgba(0, 0, 0, .45), 0 0 40px rgba(255, 196, 70, .06);
  animation: zjazd .6s cubic-bezier(.2, .8, .2, 1) .1s both;
}
.tablica__glowa { display: flex; align-items: center; gap: 10px; padding: 9px 14px 8px; border-bottom: 1px solid rgba(201, 162, 74, .35); }
.tablica__glowa h2 { font-size: 1.15rem; color: var(--zloto); text-shadow: 0 1px 0 #000; display: flex; align-items: center; gap: 8px; }
.tablica__glowa h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--q-niezwykla); box-shadow: 0 0 8px var(--q-niezwykla); animation: puls 2.4s ease-in-out infinite; }
.tablica__glowa a { margin-left: auto; font-size: .8rem; color: var(--tekst-cichy); }
.tablica__glowa a:hover { color: var(--zloto-jasne); }
.tablica__lista { list-style: none; margin: 0; padding: 4px 0; }
.tablica__lista a { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 14px; color: var(--tekst); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.tablica__lista a:hover { background: rgba(255, 209, 0, .06); color: var(--zloto-jasne); }
.tablica__lista .etykieta { justify-self: start; }
.tablica__tytul { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tablica__lista time { color: var(--tekst-blady); font-size: .78rem; white-space: nowrap; }
@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero__notka { font-size: .86rem; line-height: 1.55; color: var(--tekst-cichy); max-width: 30rem; margin: -6px 0 0; padding-left: 12px; border-left: 2px solid rgba(201, 162, 74, .5); }
.hero__notka a { color: var(--zloto); }
.hero__alt { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -10px 0 22px; font-size: .92rem; }
.hero__alt a { color: var(--tekst-cichy); }
.hero__alt a:hover { color: var(--zloto-jasne); }
.ikona--obraz { padding: 0; overflow: hidden; background: #0b1226; }
.ikona--obraz img { width: 100%; height: 100%; }
.tooltip__akcje .btn svg { width: 22px; height: 22px; }

/* Cele zadania: stan ukończony (jak w dzienniku zadań) */
.cele li.zrobione { color: #7a6a4e; }
.cele li.zrobione b { color: #7a6a4e; }
.cele li.zrobione::before { background: #3f8f22; }
.cele li.zrobione span { color: #3f8f22; }
.zadanie.ukonczone .zadanie__pasek .wykrzyknik { display: none; }
.zadanie__pasek .pytajnik { display: none; width: 28px; height: 28px; flex: none; color: var(--zloto); font: 2.1rem/1 var(--f-tytul); text-shadow: 0 0 10px rgba(255, 209, 0, .7), 0 1px 0 #3a2200; text-align: center; }
.zadanie.ukonczone .zadanie__pasek .pytajnik { display: block; }

/* ---------- Zakładki instalacji ---------- */
.zakladki { display: inline-flex; gap: 4px; padding: 3px; margin-bottom: 16px; background: rgba(4, 7, 15, .7); border: 1px solid rgba(201, 162, 74, .35); border-radius: 5px; }
.zakladki button { font: .9rem var(--f-tekst); color: var(--tekst-cichy); background: none; border: 0; padding: 8px 14px; border-radius: 3px; cursor: pointer; }
.zakladki button small { font-size: .72rem; color: var(--q-niezwykla); margin-left: 4px; }
.zakladki button[aria-selected="true"] { color: #1a1003; background: linear-gradient(180deg, #ffe066, #d9a800); }
.zakladki button[aria-selected="true"] small { color: #1f5a0a; }
.zakladka ol { counter-reset: krok; }

/* ---------- Wgraj dane: łańcuch zadań + okno łupu ---------- */
.wgraj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.lancuch { list-style: none; margin: 0; padding: 0; counter-reset: ogniwo; display: grid; gap: 4px; position: relative; }
.lancuch::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(180deg, var(--zloto-stare), rgba(201, 162, 74, .15)); }
.lancuch li { counter-increment: ogniwo; position: relative; display: grid; gap: 2px; padding: 10px 0 10px 60px; }
.lancuch li::before {
  content: counter(ogniwo); position: absolute; left: 4px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--f-tytul); font-size: 1.15rem; color: #1a1003; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0a0, #e8b83a 55%, #8a5a10); box-shadow: 0 0 0 2px #2a1a04, 0 0 14px rgba(255, 209, 0, .3);
}
.lancuch b { color: var(--zloto); font-size: 1.04rem; }
.lancuch span { color: var(--tekst-cichy); font-size: .95rem; line-height: 1.55; }
.sciezka-pliku { margin-top: 20px; padding: 16px 18px; background: rgba(4, 7, 15, .6); border: 1px solid rgba(127, 135, 156, .25); border-radius: 6px; }
.sciezka-pliku p { margin: 0 0 10px; color: var(--tekst-cichy); font-size: .9rem; }
.sciezka-pliku__w { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sciezka-pliku__w code { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.5; padding: 6px 10px; color: var(--zloto-jasne); }

.lup {
  position: relative; border: 3px solid transparent;
  border-image: linear-gradient(160deg, #e3c070, #7a5a2c 30%, #d4ad5a 55%, #5e4220 80%, #c9a24a) 1;
  background: linear-gradient(180deg, rgba(10, 16, 42, .97), rgba(4, 7, 22, .97));
  box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0, 0, 0, .6), 0 0 100px rgba(255, 160, 60, .06);
}
.lup__pasek { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(180deg, #2a2f3d, #171a24); border-bottom: 2px solid #0b0c10; color: var(--zloto); }
.lup__pasek svg { width: 26px; height: 26px; flex: none; }
.lup__pasek small { margin-left: auto; color: var(--tekst-cichy); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lup__etap { padding: 18px; }
.strefa {
  display: grid; place-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: clamp(28px, 5vw, 48px) 18px; border: 2px dashed rgba(201, 162, 74, .5); border-radius: 6px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 209, 0, .07), transparent 70%); transition: border-color .15s ease, background .15s ease;
}
.strefa:hover, .strefa[data-nad] { border-color: var(--zloto); background: radial-gradient(ellipse at 50% 0%, rgba(255, 209, 0, .16), transparent 70%); }
.strefa:focus-within { outline: 2px solid var(--zloto); outline-offset: 3px; }
.strefa svg { width: 40px; height: 40px; color: var(--zloto); }
.strefa__tytul { font-size: 1.06rem; color: var(--tekst); }
.strefa__opis { font-size: .88rem; color: var(--tekst-cichy); }
.lup__blad { margin: 14px 0 0; padding: 10px 12px; color: #ff6b5a; background: rgba(168, 36, 26, .14); border: 1px solid rgba(255, 107, 90, .35); border-radius: 4px; font-size: .92rem; }
.lup__notka { margin: 12px 0 0; color: var(--tekst-blady); font-size: .86rem; text-align: center; }

/* Pasek rzucania zaklęcia (cast bar) */
.rzucanie { position: relative; height: 26px; margin: 14px auto 0; max-width: 420px; background: #05070d; border: 1px solid #000; box-shadow: 0 0 0 2px #6b5530, 0 0 0 3px #000, inset 0 2px 4px rgba(0, 0, 0, .8); border-radius: 3px; overflow: hidden; }
.rzucanie__wypelnienie { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #fff3a0 0, #ffcc33 40%, #d48a00 100%); box-shadow: 0 0 14px rgba(255, 200, 60, .7); transition: width .12s linear; }
.rzucanie__wypelnienie::after { content: ""; position: absolute; right: -2px; top: -4px; bottom: -4px; width: 8px; background: radial-gradient(ellipse, #fff, rgba(255, 255, 255, 0) 70%); }
.rzucanie__tekst { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; color: #fff; text-shadow: 0 1px 1px #000, 0 0 4px #000; }

.lup__suma { margin: 0 0 12px; font-size: .98rem; color: var(--tekst); }
.lup__suma b { color: var(--q-niezwykla); }
.lup__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; max-height: 360px; overflow: auto; }
.lup__lista li { display: flex; align-items: center; min-width: 0; animation: wypad .35s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 45ms); }
.lup__lista .ikona { width: 40px; height: 40px; }
.lup__lista .ikona svg { width: 24px; height: 24px; }
.lup__nazwa { flex: 1; min-width: 0; margin-left: -2px; padding: 4px 10px; min-height: 36px; display: grid; align-content: center;
  background: linear-gradient(90deg, rgba(28, 22, 12, .95), rgba(28, 22, 12, .6)); border-radius: 0 4px 4px 0; }
.lup__nazwa b { color: var(--q); font-size: .86rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lup__nazwa span { color: var(--tekst-cichy); font-size: .74rem; font-variant-numeric: tabular-nums; }
.lup__lista li.pusty { opacity: .45; }
@keyframes wypad { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
.lup__akcje { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(109, 115, 133, .35); }
.lup__wysylka { margin-top: 14px; padding: 14px 16px; border-radius: 5px; background: rgba(21, 31, 59, .7); border: 1px solid rgba(127, 135, 156, .3); font-size: .92rem; color: var(--tekst-cichy); }
.lup__wysylka p { margin: 0 0 10px; }
.lup__wysylka p:last-child { margin: 0; }
.lup__wysylka .btn { margin: 4px 8px 0 0; }
.lup__wysylka .rzucanie { margin: 6px 0 10px; max-width: none; }
.lup__wysylka[data-stan="ok"] { border-color: rgba(30, 255, 0, .35); background: rgba(30, 255, 0, .06); color: var(--tekst); }

/* ---------- Pobierz: same tłumaczenia, dopisek ---------- */
/* Bez Forever: karta Retail (i tłumaczenia) po lewej, instalacja po prawej.
   Z Forever: dwie karty obok siebie, pod nimi instalacja na środku. */
@media (min-width: 1101px) {
  .pobierz:not(.pobierz--dwa) > .instalacja { grid-column: 2; grid-row: 1 / span 2; }
}
.pobierz--dwa { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.pobierz--dwa > .tooltip--duzy { display: flex; flex-direction: column; }
.pobierz--dwa > .tooltip--duzy .tooltip__akcje { margin-top: auto; }
.pobierz--dwa > .tooltip--duzy > :nth-last-child(2) { margin-bottom: 14px; }
.pobierz--dwa > .tlumaczenia { grid-column: 1 / -1; margin-top: 0; }
.pobierz--dwa > .instalacja { grid-column: 1 / -1; justify-self: center; width: min(100%, 820px); margin-top: 8px; }
.tlumaczenia { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 16px; padding: 12px 14px 12px 12px; }
.tlumaczenia h3 { font-size: 1.1rem; margin: 0; }
.tlumaczenia p { margin: 0; color: var(--tekst-cichy); font-size: .86rem; line-height: 1.45; }
.instalacja { margin-top: 0; }
.instalacja__dopisek { margin: 18px 0 0; padding: 12px 14px; font-size: .9rem; color: var(--tekst-cichy); background: rgba(4, 7, 15, .55); border: 1px solid rgba(127, 135, 156, .25); border-radius: 5px; }
.sekcja__uwaga { margin-top: 14px !important; padding: 10px 14px; font-size: .92rem !important; color: var(--tekst) !important; background: rgba(255, 209, 0, .06); border-left: 2px solid var(--zloto); border-radius: 0 4px 4px 0; }

/* ---------- Postęp: pasek z mapą na platformie ---------- */
.sekcja--waska { padding: clamp(28px, 4vw, 48px) 0; }
.mapa-postepu {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; text-decoration: none; color: inherit;
  background: linear-gradient(110deg, rgba(201, 162, 74, .16), rgba(11, 18, 38, .82) 55%); border: 1px solid rgba(201, 162, 74, .5); border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.mapa-postepu > svg { width: 48px; height: 48px; flex: none; }
.mapa-postepu__tekst { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mapa-postepu__tekst b { font-family: var(--f-tytul); font-size: 1.5rem; color: var(--zloto); }
.mapa-postepu__tekst span { color: var(--tekst-cichy); font-size: .94rem; }
.mapa-postepu:hover { border-color: var(--zloto); }
.mapa-postepu:hover .btn { color: var(--zloto-jasne); border-color: var(--zloto); }

/* ---------- Pytania (wpisy jak w dzienniku zadań) ---------- */
.pytania { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; align-items: start; }
.pytanie { border-bottom: 1px solid rgba(201, 162, 74, .2); }
.pytanie summary {
  list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 14px 4px;
  color: var(--zloto); font-size: 1.02rem; line-height: 1.35;
}
.pytanie summary::-webkit-details-marker { display: none; }
.pytanie summary::before {
  content: "+"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; font-size: 1rem; line-height: 1; color: var(--zloto);
  border: 1px solid var(--zloto-stare); border-radius: 3px; background: linear-gradient(180deg, #2a2f3d, #171a24);
}
.pytanie[open] summary::before { content: "−"; }
.pytanie summary:hover { color: var(--zloto-jasne); }
.pytanie p { margin: 0 0 16px 34px; color: var(--tekst-cichy); font-size: .96rem; line-height: 1.65; }

/* ---------- Komunikaty jak w grze ---------- */
.komunikaty { position: fixed; z-index: 90; top: 92px; left: 50%; transform: translateX(-50%); display: grid; gap: 4px; justify-items: center; pointer-events: none; width: min(92vw, 640px); }
.komunikat { font-size: clamp(1rem, 2.4vw, 1.25rem); color: var(--zloto); text-align: center; text-shadow: 0 2px 0 #000, 0 0 8px #000, 0 0 16px rgba(0, 0, 0, .9); animation: komunikat 3.2s ease both; }
@keyframes komunikat { 0% { opacity: 0; transform: translateY(6px); } 8%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.osiagniecie-toast {
  position: fixed; z-index: 91; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 10px 26px 10px 12px; min-width: min(92vw, 380px);
  background: linear-gradient(180deg, rgba(40, 30, 12, .97), rgba(16, 12, 6, .97));
  border: 2px solid #c9a24a; border-radius: 10px; box-shadow: 0 0 0 1px #000, 0 0 40px rgba(255, 196, 70, .35), 0 16px 40px rgba(0, 0, 0, .6);
  animation: toast 5s cubic-bezier(.2, .8, .2, 1) both;
}
.osiagniecie-toast[hidden] { display: none; }
.osiagniecie-toast__tarcza { position: relative; width: 48px; height: 54px; display: grid; place-items: center; flex: none; }
.osiagniecie-toast__tarcza svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.osiagniecie-toast__tarcza b { position: relative; color: #2a1a04; font-size: .95rem; margin-top: -3px; }
.osiagniecie-toast__tekst { display: grid; }
.osiagniecie-toast__tekst small { color: var(--zloto); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.osiagniecie-toast__tekst b { color: #fff; font-size: 1.12rem; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.9); } 8%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Postęp Retaila: paski reputacji i łańcuch dodatków (strona/postep.py) ---------- */
.reputacja { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
/* Obie karty mają równą wysokość; stopka lewej trzyma się dołu. */
.reputacja > .panel { display: flex; flex-direction: column; }
.reputacja .panel__stopka { margin-top: auto; }
.reputacja .frakcje { margin-bottom: 16px; }
.panel {
  position: relative; padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(17, 27, 54, .9), rgba(7, 12, 26, .94));
  border: 1px solid rgba(201, 162, 74, .4); border-radius: 6px;
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 230, 160, .06), 0 20px 50px rgba(0, 0, 0, .45);
}
.panel__glowa { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(201, 162, 74, .25); }
.panel__glowa h3 { font-size: 1.35rem; color: var(--zloto); }
.panel__glowa .plakietka { align-self: center; margin-left: 0; }
/* Podwójna klasa: bazowa .plakietka stoi niżej w pliku. Fiolet jak epicka jakość karty Retaila. */
.plakietka.plakietka--retail { color: #fff; background: linear-gradient(180deg, #c77dff, #7b2cbf); }
.panel__glowa small { margin-left: auto; color: var(--tekst-blady); font-size: .85rem; }

/* Jednostka postępu nad paskami: znaki oryginału, nie teksty. */
.jednostka { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; color: var(--tekst-cichy); font-size: .88rem; }
.jednostka b { color: var(--zloto); font-weight: 600; }
.jednostka__znak { flex: none; display: grid; place-items: center; width: 34px; height: 24px; border: 1px solid rgba(201, 162, 74, .45); border-radius: 3px; background: linear-gradient(180deg, rgba(201, 162, 74, .18), rgba(201, 162, 74, .04)); color: var(--zloto); font: 400 1rem/1 var(--f-tytul); letter-spacing: .02em; }
.frakcje { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.frakcja { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; align-items: center; }
.frakcja > svg { grid-row: span 2; width: 30px; height: 30px; }
.frakcja__nazwa { display: flex; justify-content: space-between; gap: 12px; font-size: .98rem; line-height: 1.2; }
.frakcja__nazwa span { color: var(--rep, var(--tekst-cichy)); font-size: .88rem; }
/* Pasek jak okno reputacji w grze: ciemna rama, błyszczące wypełnienie, liczby na środku. */
.pasek-rep { --p: 0; position: relative; height: 20px; background: #05070d; border: 1px solid #000; border-radius: 2px; box-shadow: 0 0 0 1px #5e4a2a, inset 0 2px 4px rgba(0, 0, 0, .8); overflow: hidden; }
.pasek-rep::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .35) 0, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .25) 100%), var(--rep);
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}
.pasek-rep span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .76rem; color: #fff; text-shadow: 0 1px 1px #000, 0 0 3px #000; font-variant-numeric: tabular-nums lining-nums; }
.reputacja:not(.widoczna) .pasek-rep::before { width: 0; }
/* Progi reputacji (procent gotowych zdań, strona/postep.py). Kolory jak w grze. */
.rep-neutralny { --rep: #c9a400; }
.rep-przyjazny { --rep: #13a31a; }
.rep-honorowany { --rep: #10b06a; }
.rep-szanowany { --rep: #0fb4a0; }
.rep-wywyzszony { --rep: #18c6d6; }
.panel__stopka { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(201, 162, 74, .2); color: var(--tekst-cichy); font-size: .9rem; }
.panel__stopka .btn { margin-left: auto; }

/* Łańcuch dodatków: od Midnight w dół, jak łańcuch zadań w dzienniku */
.dodatki { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 2px; }
.dodatki::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(180deg, var(--zloto), var(--zloto-stare) 40%, rgba(127, 135, 156, .25) 60%); }
.dodatek { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 10px 9px 0; }
.dodatek__znak {
  position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center;
  font: 1.1rem/1 var(--f-tytul); border-radius: 50%; background: var(--noc-700); border: 1px solid #4a4f5e; color: var(--tekst-blady);
}
.dodatek b { display: block; color: var(--tekst-cichy); font-size: 1.02rem; line-height: 1.25; }
.dodatek small { display: block; color: var(--tekst-blady); font-size: .82rem; }
.dodatek > span:last-child { font-size: .82rem; color: var(--tekst-blady); white-space: nowrap; }
.dodatek--gotowy .dodatek__znak { color: #1a1003; border-color: #2a1a04; background: radial-gradient(circle at 35% 30%, #fff0a0, #e8b83a 55%, #8a5a10); box-shadow: 0 0 12px rgba(255, 209, 0, .3); }
.dodatek--gotowy b { color: var(--tekst); }
.dodatek--gotowy > span:last-child { color: var(--q-niezwykla); }
.dodatek--teraz { margin: 4px 0; padding-left: 0; background: linear-gradient(90deg, rgba(255, 209, 0, .1), transparent 80%); border-radius: 4px; }
.dodatek--teraz .dodatek__znak { color: var(--zloto); border: 2px solid var(--zloto); background: var(--noc-900); box-shadow: 0 0 0 3px rgba(255, 209, 0, .15), 0 0 18px rgba(255, 209, 0, .45); animation: puls-znak 2.4s ease-in-out infinite; }
.dodatek--teraz b { color: var(--zloto-jasne); }
.dodatek--teraz > span:last-child { color: var(--zloto); }
.dodatek--teraz .pasek-rep { height: 8px; margin-top: 6px; }
.dodatek--teraz .pasek-rep span { display: none; }
@keyframes puls-znak { 50% { box-shadow: 0 0 0 5px rgba(255, 209, 0, .08), 0 0 26px rgba(255, 209, 0, .6); } }

/* ---------- Zobacz różnicę: suwak polski / oryginał na oknie zadania ---------- */
/* Uchwyt przy 0% i 100% wystaje o pół koła: dajemy mu miejsce, a resztę przycinamy w poziomie. */
.roznica { overflow-x: clip; padding: 0 22px; margin: 0 -22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: clamp(28px, 4vw, 64px); align-items: center; }
.roznica__opis ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--tekst-cichy); }
.roznica__opis li { display: flex; gap: 10px; }
.roznica__opis li > span { min-width: 0; }
.roznica__opis li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; transform: rotate(45deg); background: var(--zloto-stare); }
.porownywarka { --x: 50; position: relative; user-select: none; touch-action: pan-y; }
/* Krótszy tekst (zwykle angielski) też wypełnia pergaminem całą wysokość okna. */
.porownywarka .zadanie { animation: none; display: flex; flex-direction: column; }
.porownywarka .zadanie__pergamin { flex: 1; padding-bottom: 52px; } /* dół: miejsce na etykiety Polski/Oryginał */
/* Tytuł misji to h3 (sekcja ma h2), ale wygląda jak tytuł okna zadania. */
.zadanie__pergamin .porownywarka__tytul { font-size: clamp(1.7rem, 3vw, 2.15rem); margin: 0 0 14px; }
/* Dwie identyczne warstwy; górna (polska) jest przycinana od prawej. */
.porownywarka__warstwa { display: grid; }
.porownywarka__warstwa > * { grid-area: 1 / 1; }
.porownywarka__pl { clip-path: inset(0 calc(100% - var(--x) * 1%) 0 0); }
.porownywarka__en { filter: saturate(.85); }
/* Pasek z przełącznikiem On/Ona jest wyższy; obie warstwy muszą mieć równe paski. */
.porownywarka .zadanie__pasek { min-height: 50px; }
.porownywarka__kreska {
  position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: 2px; margin-left: -1px; z-index: 3;
  cursor: ew-resize; touch-action: none;
  background: linear-gradient(180deg, transparent, var(--zloto) 12%, var(--zloto) 88%, transparent); box-shadow: 0 0 12px rgba(255, 209, 0, .7);
}
.porownywarka__kreska::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  font: 1.1rem/1 var(--f-tekst); letter-spacing: .1em; color: var(--zloto);
  background: radial-gradient(circle at 35% 30%, #a8241a, #5a0c07); border: 1px solid #1d0402; box-shadow: 0 0 0 2px var(--zloto-stare), 0 4px 14px rgba(0, 0, 0, .6);
}
.porownywarka__etykiety { position: absolute; z-index: 2; bottom: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.porownywarka__etykiety span { padding: 2px 8px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tekst); background: rgba(4, 7, 15, .75); border-radius: 3px; }
/* Szeroki, niewidoczny pas wokół kreski: łatwiej złapać niż 2 px. */
.porownywarka__kreska::before { content: ""; position: absolute; inset: 0 -12px; }
.porownywarka.ciagnie { cursor: ew-resize; }
.porownywarka.ciagnie .porownywarka__warstwa { pointer-events: none; }
/* Klawiatura: ukryty input range; fokus widać na uchwycie. */
.porownywarka:has(input:focus-visible) .porownywarka__kreska::after { outline: 2px solid var(--zloto); outline-offset: 3px; }

/* Słowa kluczowe i odmiana gracza w tekście zadania */
.klucz, .odmiana { cursor: help; border-radius: 2px; text-decoration: underline dotted 1px; text-underline-offset: 3px; }
.klucz { color: #7a1d0c; text-decoration-color: rgba(122, 29, 12, .6); }
.odmiana { color: #23407a; text-decoration-style: dashed; text-decoration-color: rgba(35, 64, 122, .6); }
.klucz:hover, .klucz:focus-visible { background: rgba(122, 29, 12, .1); outline: none; }
.odmiana:hover, .odmiana:focus-visible { background: rgba(35, 64, 122, .12); outline: none; }
/* Próbki w opisie obok, na ciemnym tle: jaśniejsze odcienie tych samych kolorów. */
.klucz--probka { color: #ff9a6b; text-decoration-color: rgba(255, 154, 107, .6); cursor: default; }
.odmiana--probka { color: #8fb4ff; text-decoration-color: rgba(143, 180, 255, .6); cursor: default; }
.porownywarka__plec { position: absolute; z-index: 4; top: 13px; right: 14px; }
.porownywarka__plec button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #4a6fc0, #23407a); }
/* Animacja wejścia wykrzyknika rusza przy ładowaniu strony, a to okno jest daleko w dole. */
.porownywarka .wykrzyknik { animation: none; }

/* Dymek jak tooltip z gry, wspólny dla całego okna (poza przycinanymi warstwami). */
.dymek { position: absolute; z-index: 5; left: var(--lewo, 0); top: var(--gora, 0); width: max-content; max-width: 280px; padding: 9px 12px 10px; pointer-events: none; font-size: .9rem; line-height: 1.4; animation: zjazd .15s ease both; }
.dymek[hidden] { display: none; }
.dymek p { margin: 0; }
.dymek .dymek__tytul { font-size: 1rem; color: #ff9a6b; }
.dymek--odmiana { border-color: #4a6fc0; }
.dymek--odmiana .dymek__tytul { color: #8fb4ff; }
.dymek .dymek__linia { color: #fff; }
.dymek .uzyj { margin-top: 4px; }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  .hero__w { grid-template-columns: 1fr; }
  .hero__intro { max-width: 40rem; }
  .pobierz, .o-nas, .wiesci, .spolecznosc, .wgraj, .reputacja, .roznica { grid-template-columns: 1fr; }
  .pytania { grid-template-columns: 1fr; }
  .stopka__w { grid-template-columns: 1fr 1fr; }
  .stopka__w > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --t-baza: 1.125rem; --t-2xl: 2.1rem; }
  .nav__akcje .btn--gra { display: none; }
  .znak b { font-size: 1.15rem; }
  .hero { min-height: 0; }
  .hero__lead { font-size: 1.18rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .nagrody { grid-template-columns: 1fr; }
  .zadanie__pasek span { display: none; }
  .zadanie__stopka .btn { flex: 1 1 100%; }
  .kanaly { grid-template-columns: 1fr; }
  .tablica__lista a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .tablica__lista .etykieta { grid-column: 1 / -1; }
  .hero__cta { align-self: stretch; }
  .mapa-postepu { flex-wrap: wrap; }
  .tlumaczenia { grid-template-columns: auto minmax(0, 1fr); }
  .tlumaczenia .btn { grid-column: 1 / -1; }
  .lup__lista { grid-template-columns: 1fr; }
  .komunikaty { top: 76px; }
  .zakladki { display: flex; }
  .zakladki button { flex: 1; }
  .porownanie { grid-template-columns: 1fr; }
  .panel { padding: 14px 14px 16px; }
  .stopka__w { grid-template-columns: 1fr 1fr; }
  .stopka__w > div:first-child { grid-column: 1 / -1; }
  .tooltip .linia { flex-wrap: wrap; gap: 0 16px; }
}
@media (max-width: 380px) {
  .nav__w { gap: 10px; }
  .znak { gap: 7px; }
  .znak img { width: 32px; height: 32px; }
  .znak b { font-size: 1.05rem; }
  .nav__menu summary { padding: 7px 10px; }
}
/* ---------- Zamienniki atrybutów style="" z makiety ----------
   CSP strony nie pozwala na style inline, więc kolory jakości, monety
   i jednorazowe odstępy są klasami. Kolory „tekst” to jaśniejsze odcienie
   rzadkiej i epickiej, czytelne na ciemnym tle (tak jak w makiecie). */
.sprite { position: absolute; }
.q-zwykla { --q: var(--q-zwykla); }
.q-niezwykla { --q: var(--q-niezwykla); }
.q-rzadka { --q: var(--q-rzadka); }
.q-epicka { --q: var(--q-epicka); }
.q-legendarna { --q: var(--q-legendarna); }
.q-tekst-slaba { --q: #9d9d9d; }
.q-tekst-zwykla { --q: #ffffff; }
.q-tekst-niezwykla { --q: var(--q-niezwykla); }
.q-tekst-rzadka { --q: #2a8cf0; }
.q-tekst-epicka { --q: #c77dff; }
.q-tekst-legendarna { --q: var(--q-legendarna); }
.moneta-zloto { --m: #f2c230; }
.moneta-srebro { --m: #c9ccd4; }
.moneta-miedz { --m: #c06a32; }
.tooltip .linia--odstep { margin-top: 10px; }
.hero__cta.hero__cta--w-artykule { margin: 0; }

/* ---------- Wybór wersji gry przed pobraniem (okno jak w grze) ---------- */
.wybor { padding: 0; border: 0; background: none; color: inherit; width: min(620px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; }
.wybor::backdrop { background: rgba(2, 4, 10, .78); backdrop-filter: blur(3px); }
.wybor[open] .zadanie { animation: rozwin .45s cubic-bezier(.2, .8, .2, 1) both; }
.wybor__rama { max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.wybor__rama .zadanie__pergamin { overflow-y: auto; }
.wybor .zadanie__pasek span { display: inline; }
.wybor .zadanie__pasek .wykrzyknik { animation-delay: .25s; }
.wybor__zamknij {
  margin-left: auto; width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  font: 1.5rem/1 var(--f-tekst); color: var(--zloto); cursor: pointer;
  background: linear-gradient(180deg, #a8241a, #5a0c07); border: 1px solid #1d0402; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--zloto-stare), inset 0 -2px 4px rgba(0, 0, 0, .4);
}
.wybor__zamknij:hover { filter: brightness(1.2); color: var(--zloto-jasne); }
.wybor__opcje { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 4px; }
.wybor__opcja {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  font: inherit; color: #fff; text-decoration: none; cursor: pointer;
  border-color: var(--q, #6d7385); transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.wybor__opcja:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px #000, 0 0 22px color-mix(in srgb, var(--q) 55%, transparent), 0 14px 40px rgba(0, 0, 0, .5); }
.wybor__opcja .ikona { width: 52px; height: 52px; }
.wybor__opis { display: grid; gap: 2px; min-width: 0; line-height: 1.3; }
.wybor__opis b { font-size: 1.25rem; color: var(--q); }
.wybor__opis > span { font-size: .9rem; color: var(--tekst-cichy); }
.wybor__opis code { font-size: .85em; color: var(--tekst); }
.wybor__opis small { font-size: .88rem; color: var(--q-uzyj); }
.wybor__opcja.tooltip--rzadka .wybor__opis b { color: #2a8cf0; }
.wybor__opcja--wkrotce { --q: #9d9d9d; cursor: default; opacity: .75; }
.wybor__opcja--wkrotce:hover { transform: none; box-shadow: 0 0 0 1px #000, 0 14px 40px rgba(0, 0, 0, .5); }
.wybor__opcja--wkrotce .ikona { filter: grayscale(1); }
.wybor__opcja--wkrotce small { color: var(--zloto); }
.wybor__krok { animation: rozwin .35s cubic-bezier(.2, .8, .2, 1) both; }
.plakietka {
  display: inline-block; vertical-align: .2em; margin-left: 6px; padding: 1px 7px;
  font: 700 .62rem/1.5 var(--f-tekst); letter-spacing: .08em; text-transform: uppercase;
  color: #1b1003; background: linear-gradient(180deg, #ffe27a, #c98d10); border-radius: 3px;
}
.wybor__suma { margin: 12px 0 0; font-size: .82rem; color: #5b4630; overflow-wrap: anywhere; }
.wybor__suma code { font-size: .78rem; }
.wybor__notka { margin: 12px 0 0; }
.wybor__notka a { color: #7a1d0c; }
.wybor__notka a:hover { color: #a8241a; }
.wybor__wstecz {
  margin-top: 14px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .95rem; color: #7a1d0c; text-decoration: underline; text-underline-offset: 3px;
}
.wybor__wstecz::before { content: "‹ "; }
.wybor__wstecz:hover { color: #a8241a; }
.wybor__wkrotce { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(58, 37, 18, .35); }
.zadanie__pergamin .wybor__wkrotce h2 { font-size: clamp(1.8rem, 5vw, 2.3rem); margin-bottom: 8px; }
.wybor__wkrotce a { color: #7a1d0c; }
.wybor__wkrotce a:hover { color: #a8241a; }
@media (max-width: 520px) { .wybor__opcje { grid-template-columns: 1fr; } }

/* Poniżej 1120 px grupy i „Zgłoś problem” przechodzą do „Menu”; „Platforma” zostaje w nagłówku. */
@media (max-width: 1120px) { .nav__glowne, .nav__zglos { display: none; } .nav__akcje { margin-left: auto; } .nav__menu { display: block; } }
@media (max-width: 420px) {
  .nav__w { gap: 12px; }
  .nav__akcje .btn--platforma { padding: 0 10px; }
  .nav__akcje .btn--platforma svg { display: none; }
}
/* 320-360 px: logo, „Platforma” i „Menu” muszą się zmieścić w jednym rzędzie. */
@media (max-width: 360px) {
  .nav__w { gap: 8px; }
  .znak { gap: 6px; }
  .znak img { width: 28px; height: 28px; }
  .znak b { font-size: .98rem; }
  .nav__akcje .btn--platforma { --h: 34px; padding: 0 8px; font-size: .85rem; }
  .nav__menu summary { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tlo__iskry { display: none; }
  .reputacja:not(.widoczna) .pasek-rep::before { width: calc(var(--p) * 1%); }
  html { scroll-behavior: auto; }
}

/* ---------- Integracje z addonami ---------- */

.macierz { max-width: 920px; margin: 0 auto; }
.macierz__tlo {
  padding: clamp(14px, 3vw, 28px) clamp(14px, 3vw, 28px) clamp(14px, 2.4vw, 22px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .55 0 0 0 0 .7 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #0f1730, #080d1c);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .55);
}
.macierz__tabela { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.macierz__tabela th, .macierz__tabela td { padding: 16px 12px; vertical-align: middle; }
.macierz__rog { width: 50%; text-align: left; vertical-align: bottom !important; font-weight: 400; font-family: var(--f-tytul); font-size: 1.3rem; color: var(--zloto-stare); }
.macierz__wersja { --kol: #c77dff; position: relative; text-align: center; font-weight: 400; padding-bottom: 18px !important; }
.macierz__wersja--forever { --kol: #2a8cf0; }
.macierz__wersja .ikona { width: 54px; height: 54px; margin: 0 auto 10px; border-color: var(--kol); box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .6), inset 0 0 10px rgba(0, 0, 0, .6); }
.macierz__wersja .ikona img { width: 100%; height: 100%; border-radius: 3px; }
.macierz__wersja .ikona svg { width: 32px; height: 32px; }
.macierz__wersja b { display: block; font-family: var(--f-tytul); font-size: 1.75rem; line-height: 1; color: var(--kol); text-shadow: 0 1px 0 #000, 0 2px 8px rgba(0, 0, 0, .8); }
.macierz__wersja small { display: block; margin-top: 5px; font-size: .82rem; color: var(--tekst-blady); }
/* Krótka belka w kolorze wersji pod nagłówkiem kolumny, zamiast kolorowego tła całej kolumny. */
.macierz__wersja::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--kol), transparent);
}
/* Linie między wierszami: złote, wygaszone na obu końcach tabeli. */
.macierz__tabela thead th, .macierz__tabela tbody tr:not(:last-child) > * {
  background-image: linear-gradient(90deg, rgba(201, 162, 74, .32), rgba(201, 162, 74, .32));
  background-size: 100% 1px; background-position: bottom; background-repeat: no-repeat;
}
.macierz__tabela tr > :first-child { background-image: linear-gradient(90deg, transparent, rgba(201, 162, 74, .32) 40%) !important; }
.macierz__tabela tbody tr:last-child > :first-child { background-image: none !important; }
.macierz__tabela tbody tr { transition: background-color .15s ease; }
.macierz__tabela tbody tr:hover { background-color: rgba(255, 209, 0, .035); }
.macierz__addon { text-align: left; font-weight: 400; }
.macierz__addon > div { display: flex; gap: 14px; align-items: center; }
.macierz__addon .ikona { border-color: var(--q); }
.macierz__addon .ikona svg { width: 26px; height: 26px; }
.macierz__opis { display: grid; gap: 2px; min-width: 0; }
.macierz__opis b { font-size: 1.3rem; color: var(--q); text-shadow: 0 1px 0 #000; }
.macierz__opis > span { color: var(--tekst-cichy); font-size: .95rem; line-height: 1.4; }
.macierz__pdf { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; width: fit-content; font-size: .92rem; }
.macierz__pdf svg { width: 16px; height: 16px; }
.macierz__stan { text-align: center; }
/* Gniazdo jak oprawa ikony w interfejsie gry: ciemny środek, złoty pierścień. */
.macierz__gniazdo {
  display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #1a2240, #05070d 75%);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #6b5226, 0 0 0 4px #000, inset 0 3px 8px rgba(0, 0, 0, .9), 0 6px 14px rgba(0, 0, 0, .5);
}
.macierz__gniazdo svg { width: 40px; height: 40px; }
.macierz__stan--nie .macierz__gniazdo svg { opacity: .8; filter: saturate(.8); }
.macierz__stan--tak .macierz__gniazdo { box-shadow: 0 0 0 1px #000, 0 0 0 3px #b8912f, 0 0 0 4px #000, inset 0 3px 8px rgba(0, 0, 0, .9), 0 6px 14px rgba(0, 0, 0, .5); }
.macierz__etykieta { display: block; margin-top: 8px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.macierz__stan--tak .macierz__etykieta { color: var(--q-niezwykla); }
.macierz__stan--nie .macierz__etykieta { color: #d0574c; }
.macierz__stopka { margin: 10px 0 0; padding-top: 14px; color: var(--tekst-cichy); font-size: .95rem; text-align: center; }

.integracja { max-width: 920px; margin: clamp(40px, 6vw, 64px) auto 0; }
.integracja__pergamin { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); }
.integracja__pergamin a:not(.btn) { color: #7a1d0c; }
.integracja__pergamin a:not(.btn):hover { color: #a8241a; }
.integracja__uwaga { margin-top: 14px; padding: 10px 14px; font-size: .98rem !important; background: rgba(122, 29, 12, .08); border-left: 3px solid #7a1d0c; border-radius: 0 4px 4px 0; }
.integracja__uwaga b { color: var(--atrament-tytul); }
.integracja__pobierz { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-left: clamp(0px, 3vw, 28px); border-left: 1px solid rgba(58, 37, 18, .3); }
.integracja__pobierz p { font-size: .98rem !important; margin: 0 !important; }
.integracja__pdf { display: flex; gap: 0; align-items: center; text-decoration: none; width: 100%; }
.integracja__pdf > span:last-child {
  flex: 1; min-width: 0; margin-left: -2px; padding: 6px 12px; min-height: 42px; display: grid;
  background: linear-gradient(90deg, #1c1208 0%, rgba(28, 18, 8, .92) 70%, rgba(28, 18, 8, .78));
  border-radius: 0 4px 4px 0; text-shadow: 0 1px 0 #000;
}
.integracja__pdf b { color: var(--q-legendarna); font-size: 1rem; }
.integracja__pdf small { color: var(--tekst-cichy); font-size: .82rem; }
.integracja__pdf:hover b { color: #ffa040; }
.integracja__pobierz .btn { margin-top: 4px; }
.integracja__wpis { font-size: .98rem; }
.integracja__autorzy { color: #6b4a22; font-size: .85rem; line-height: 1.4; }

@media (max-width: 760px) {
  .integracja__pergamin { grid-template-columns: 1fr; }
  .integracja__pobierz { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid rgba(58, 37, 18, .3); }
}
@media (max-width: 560px) {
  .macierz__tabela th, .macierz__tabela td { padding: 12px 6px; }
  .macierz__rog { width: 52%; font-size: 1.1rem; }
  .macierz__addon .ikona { display: none; }
  .macierz__opis b { font-size: 1.15rem; }
  .macierz__wersja .ikona { width: 40px; height: 40px; }
  .macierz__wersja .ikona svg { width: 24px; height: 24px; }
  .macierz__gniazdo { width: 40px; height: 40px; }
  .macierz__gniazdo svg { width: 32px; height: 32px; }
  .macierz__wersja b { font-size: 1.3rem; }
  .macierz__wersja small { display: none; }
}
/* Lista w karcie integracji: link w środku zdania, więc bez flexa z .cele. */
.integracja .cele li { display: block; position: relative; padding-left: 17px; }
.integracja .cele li::before { position: absolute; left: 0; top: .62em; }

/* ---------- Opowiadania: półka z księgami ---------- */
/* Zastrzeżenie przed pierwszym tytułem: chłodna, urzędowa notka, celowo inna niż pergamin. */
.zastrzezenie {
  display: flex; gap: 16px; align-items: flex-start; max-width: 60rem; margin-bottom: clamp(28px, 4vw, 44px); padding: 16px 20px;
  background: linear-gradient(110deg, rgba(127, 135, 156, .14), rgba(11, 18, 38, .8) 60%);
  border: 1px solid rgba(127, 135, 156, .4); border-left: 3px solid var(--zloto-stare); border-radius: 0 6px 6px 0;
}
.zastrzezenie svg { width: 34px; height: 38px; flex: none; margin-top: 2px; }
.zastrzezenie p { margin: 0; color: var(--tekst-cichy); font-size: .98rem; line-height: 1.6; }
.zastrzezenie b { color: var(--tekst); }

.polka { display: grid; gap: clamp(28px, 4vw, 44px); }
.ksiega .zadanie__pasek .wykrzyknik { animation: none; }
.ksiega__kiedy { margin-left: auto; color: var(--tekst-cichy); font-size: .86rem; }
.ksiega__w { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
/* Lewa strona: nocna, z okładką nagrania. */
.ksiega__sluchaj {
  padding: clamp(16px, 2.4vw, 24px);
  background: radial-gradient(ellipse at 50% 0%, rgba(91, 141, 224, .12), transparent 65%), linear-gradient(180deg, #0f1730, #080d1c);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .5);
}
.ksiega__sluchaj h3 { font-size: 1.3rem; color: var(--zloto); margin: 20px 0 8px; }
.ksiega__sluchaj > p { color: var(--tekst-cichy); font-size: .98rem; line-height: 1.55; margin-bottom: 12px; }
.ksiega__okladka {
  position: relative; display: block; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #6b5226, 0 0 0 4px #000, 0 14px 30px rgba(0, 0, 0, .55);
}
.ksiega__okladka img { width: 100%; height: auto; transition: transform .5s ease, filter .3s ease; }
.ksiega__okladka:hover img { transform: scale(1.03); filter: brightness(1.12); }
/* Znak odtwarzania: czerwone koło z interfejsu gry, złoty trójkąt. */
.ksiega__graj {
  position: absolute; left: 50%; top: 62%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c2362a, #5a0c07); border: 1px solid #1d0402;
  box-shadow: 0 0 0 2px var(--zloto-stare), 0 0 0 4px #1d0402, 0 8px 22px rgba(0, 0, 0, .7); transition: box-shadow .2s ease;
}
.ksiega__graj::after { content: ""; position: absolute; left: 25px; top: 19px; border: solid transparent; border-width: 12px 0 12px 19px; border-left-color: var(--zloto); }
.ksiega__okladka:hover .ksiega__graj { box-shadow: 0 0 0 2px var(--zloto), 0 0 0 4px #1d0402, 0 0 26px rgba(255, 160, 60, .6); }
/* Prawa strona: pergamin jak w oknie zadania. */
.ksiega__czytaj { padding-top: clamp(22px, 3vw, 30px); }
.ksiega__autor { margin: 0 0 2px !important; font-size: .9rem !important; letter-spacing: .14em; text-transform: uppercase; color: #6b4a22; }
.zadanie__pergamin.ksiega__czytaj h2 { font-size: clamp(2.2rem, 4.4vw, 3rem); margin-bottom: 6px; }
.ksiega__oryginal { font-style: italic; color: #6b4a22; }
.ksiega__podpowiedz { margin: 12px 0 0 !important; font-size: .95rem !important; color: #6b4a22; }
.ksiega__wariant { margin: 12px 0 0 !important; padding: 10px 14px; font-size: .98rem !important; background: rgba(122, 29, 12, .08); border-left: 3px solid #7a1d0c; border-radius: 0 4px 4px 0; }
.ksiega__wariant a { color: #7a1d0c; }
.ksiega__wariant a:hover { color: #a8241a; }
.ksiega__stopka small { color: var(--tekst-blady); font-size: .86rem; }

/* Wydania i nagrania jak nagrody w oknie zadania: ikona w ramce jakości, obok nazwa i jedno zdanie. */
.formaty { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.format { display: flex; align-items: center; min-width: 0; text-decoration: none; transition: filter .15s ease, transform .08s ease; }
.format:hover { filter: brightness(1.2); }
.format:active { transform: translateY(1px); }
.format .ikona { width: 50px; height: 50px; }
.format .ikona svg { width: 30px; height: 30px; }
.format__opis {
  flex: 1; min-width: 0; margin-left: -2px; padding: 5px 12px; min-height: 44px; display: grid; align-content: center;
  background: linear-gradient(90deg, #1c1208 0%, rgba(28, 18, 8, .92) 70%, rgba(28, 18, 8, .78));
  border-radius: 0 4px 4px 0; text-shadow: 0 1px 0 #000;
}
.format .format__opis b { color: var(--q); font-size: 1.06rem; line-height: 1.2; }
.format__opis small { color: var(--tekst-cichy); font-size: .82rem; line-height: 1.3; }

.polka__wolne {
  display: flex; gap: 16px; align-items: center; padding: 18px 22px;
  border: 2px dashed rgba(201, 162, 74, .4); border-radius: 6px; background: rgba(4, 7, 15, .45);
}
.polka__wolne svg { width: 40px; height: 40px; flex: none; }
.polka__wolne p { margin: 0; color: var(--tekst-cichy); font-size: 1rem; line-height: 1.6; }

@media (max-width: 860px) {
  .ksiega__w { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ksiega .zadanie__pasek span { display: inline; }
  .ksiega__kiedy { display: none; }
}
@media (max-width: 420px) {
  .formaty { grid-template-columns: 1fr; }
  .zastrzezenie svg, .polka__wolne svg { display: none; }
}

/* Link do oryginału na pergaminie, zaraz pod opisem. */
.ksiega__zrodlo { margin: 0 0 4px !important; }
.ksiega__zrodlo a { display: inline-flex; align-items: center; gap: 6px; color: #7a1d0c; }
.ksiega__zrodlo a:hover { color: #a8241a; }
.ksiega__zrodlo svg { width: 15px; height: 15px; }
.ksiega__stopka { justify-content: flex-end; }

/* ---------- Wesprzyj nas ---------- */
.wesprzyj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.karczma h2 { font-size: var(--t-xl); color: var(--atrament-tytul); margin-bottom: 12px; }
/* „Dołącz do nas” bez karczmy: kanały na całą szerokość. */
.spolecznosc--sama { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .wesprzyj { grid-template-columns: 1fr; } }

/* ---------- O grze: poradniki dla Retaila (strona/o_grze.py) ----------
   Kolory klas jak w grze (ramki, nazwy, kropki w tabeli). Herby frakcji są własne,
   bez logotypów Blizzarda. Obrazy są opcjonalne: bez pliku karta ma tło w kolorze.
   --kt i --ft to jaśniejszy odcień koloru klasy i frakcji do małego tekstu: czerwień Rycerza Śmierci
   i fiolet Łowcy Demonów są na ciemnym tle za słabo czytelne (kontrast poniżej 4,5:1). */
.k-wojownik { --k: #c69b6d; }
.k-paladyn { --k: #f48cba; }
.k-lowca { --k: #aad372; }
.k-lotr { --k: #fff468; }
.k-kaplan { --k: #ffffff; }
.k-rycerz-smierci { --k: #c41e3a; --kt: #ee5570; }
.k-szaman { --k: #2a8cf0; }
.k-mag { --k: #3fc7eb; }
.k-czarnoksieznik { --k: #8788ee; }
.k-mnich { --k: #00ff98; }
.k-druid { --k: #ff7c0a; }
.k-lowca-demonow { --k: #a330c9; --kt: #c065e6; }
.k-wywolywacz { --k: #33937f; }
.og-rasa--przymierze, .og-chip--przymierze { --f: #3a78e0; --f-ciemny: #0d2350; }
.og-rasa--horda, .og-chip--horda { --f: #d6382b; --f-ciemny: #3c0805; }
.og-chip--przymierze { --ft: #8fb8ff; }
.og-chip--horda { --ft: #ff8a7a; }
.og-rasa--obie, .og-chip--obie { --f: #d9a830; --f-ciemny: #2c2410; }

/* Nagłówek działu: okruszki, złoty tytuł, plakietka Retaila, zakładki okna postaci. */
.og-glowa { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 0; border-bottom: 1px solid rgba(201, 162, 74, .3);
  background: radial-gradient(ellipse at 80% -10%, rgba(163, 53, 238, .16), transparent 55%), radial-gradient(ellipse at 10% 110%, rgba(91, 141, 224, .14), transparent 60%), linear-gradient(180deg, rgba(4, 7, 15, 0), rgba(4, 7, 15, .55)); }
.og-glowa__tlo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .38;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.og-glowa__w { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 12px clamp(24px, 4vw, 56px); align-items: end; }
.og-glowa .okruszki { grid-column: 1 / -1; margin-bottom: 0; }
.og-glowa h1 {
  grid-column: 1; font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.02;
  background: linear-gradient(180deg, #fff6c4 0%, #ffd100 50%, #c98d10 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2a1a04) drop-shadow(0 8px 24px rgba(0, 0, 0, .55));
}
.og-glowa__lead { grid-column: 1; margin: 0; max-width: 38rem; font-size: 1.16rem; line-height: 1.55; color: var(--tekst); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.og-retail {
  grid-column: 2; grid-row: 2 / span 2; align-self: end; display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(163, 53, 238, .22), rgba(10, 16, 42, .94) 60%); border: 1px solid #a335ee; border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 0 28px rgba(163, 53, 238, .28), 0 14px 40px rgba(0, 0, 0, .45);
}
.og-retail__znak { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 5px; border: 2px solid #a335ee; background: radial-gradient(circle at 35% 30%, #4a3a7e, #160d2a 75%); box-shadow: 0 0 0 1px #000; }
.og-retail__znak svg { width: 26px; height: 26px; }
.og-retail__tekst { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--tekst-cichy); }
.og-retail__tekst b { font-size: 1.08rem; color: #c77dff; }
.og-zakladki { display: flex; gap: 4px; margin-top: clamp(26px, 4vw, 40px); overflow-x: auto; scrollbar-width: none; }
.og-zakladki::-webkit-scrollbar { display: none; }
.og-zakladki a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 9px; color: var(--tekst-cichy); text-decoration: none; font-size: 1rem; white-space: nowrap;
  background: linear-gradient(180deg, #2a2f3d, #12141c); border: 1px solid rgba(201, 162, 74, .4); border-bottom: 0; border-radius: 7px 7px 0 0;
}
.og-zakladki a svg { width: 20px; height: 20px; }
.og-zakladki a:hover { color: var(--zloto-jasne); border-color: var(--zloto-stare); }
.og-zakladki a[aria-current="page"] { color: var(--zloto); background: linear-gradient(180deg, #4a3a1c, #1d160b); border-color: var(--zloto); box-shadow: inset 0 2px 0 rgba(255, 230, 160, .25), 0 -6px 18px rgba(255, 196, 70, .12); }
.og-sekcja { padding-top: clamp(44px, 6vw, 76px); }
.og-glowa + .og-sekcja::before, .og-glowa + .og-sekcja::after { display: none; }
.og-zrodlo { margin: 18px 0 0; font-size: .88rem; color: var(--tekst-blady); }
.og-uwaga { max-width: 52rem; }

/* Strona działu: cztery kafle i „czym jest WoW”. */
.og-kafle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.og-kafel {
  display: grid; grid-template-columns: minmax(0, 1fr); text-decoration: none; color: var(--tekst); overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 16, 42, .96), rgba(4, 7, 22, .96)); border: 1px solid var(--q); border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 18px 46px rgba(0, 0, 0, .5); transition: transform .15s ease, box-shadow .15s ease;
}
.og-kafel:hover { color: var(--tekst); transform: translateY(-3px); box-shadow: 0 0 0 1px #000, 0 0 30px color-mix(in srgb, var(--q) 40%, transparent), 0 22px 50px rgba(0, 0, 0, .55); }
.og-kafel__obraz { display: grid; place-items: center; aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid rgba(0, 0, 0, .6); }
.og-kafel__obraz img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.og-kafel:hover .og-kafel__obraz img { transform: scale(1.04); }
.og-kafel__obraz--pusty { background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--q) 35%, transparent), transparent 70%), radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .05), transparent 60%), #070c1a; }
.og-kafel__obraz--pusty svg { width: 96px; height: 96px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); }
.og-kafel__tekst { display: grid; gap: 4px; padding: 18px 22px 20px; }
.og-kafel__tekst b { font-family: var(--f-tytul); font-size: 1.7rem; line-height: 1.1; color: var(--q); text-shadow: 0 1px 0 #000; }
.og-kafel.q-rzadka .og-kafel__tekst b { color: #2a8cf0; }
.og-kafel.q-epicka .og-kafel__tekst b { color: #c77dff; }
.og-kafel__tekst span { color: var(--tekst-cichy); font-size: 1rem; }
.og-kafel__tekst small { color: var(--zloto-stare); font-size: .88rem; }
.og-czym { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.og-czym__tytul { font-size: var(--t-xl); color: var(--zloto); margin-bottom: 18px; }
.og-fakty { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.og-fakty div { padding: 16px 18px; background: rgba(11, 18, 38, .78); border: 1px solid rgba(201, 162, 74, .35); border-radius: 6px; }
.og-fakty dt { font-family: var(--f-tytul); font-size: 2.4rem; line-height: 1; color: var(--zloto); }
.og-fakty dd { margin: 4px 0 0; color: var(--tekst-cichy); font-size: .95rem; }

/* Jak zacząć: łańcuch zadań z opisami, obok karta zadania. */
.og-dwie { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.og-lancuch { list-style: none; margin: 0; padding: 0; counter-reset: krok; position: relative; display: grid; gap: 6px; }
.og-lancuch::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--zloto-stare), rgba(201, 162, 74, .12)); }
.og-lancuch > li { counter-increment: krok; position: relative; padding: 14px 18px 14px 68px; border-radius: 6px; transition: background .2s ease; }
.og-lancuch > li:hover { background: rgba(255, 209, 0, .04); }
.og-lancuch > li::before {
  content: counter(krok); position: absolute; left: 4px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--f-tytul); font-size: 1.25rem; color: #1a1003; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0a0, #e8b83a 55%, #8a5a10); box-shadow: 0 0 0 2px #2a1a04, 0 0 16px rgba(255, 209, 0, .32);
}
.og-lancuch h3 { font-family: var(--f-tekst); font-size: 1.28rem; color: var(--zloto); margin: 4px 0 8px; }
.og-lancuch p { color: var(--tekst-cichy); font-size: 1rem; line-height: 1.62; margin-bottom: .6em; }
.og-lancuch p:last-child { margin-bottom: 0; }
.og-wskazowka { padding: 10px 14px; background: rgba(30, 255, 0, .05); border-left: 2px solid var(--q-niezwykla); border-radius: 0 4px 4px 0; }
.og-odnosniki { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.og-odnosniki a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.og-odnosniki svg { width: 20px; height: 20px; }
.og-boczna { position: sticky; top: 96px; display: grid; gap: 16px; }
.og-karta-startu { animation: none; }
/* Na telefonie karta stoi nad krokami: pasek ma mieć tytuł (strona główna go tam chowa) i znak bez animacji wejścia. */
.og-karta-startu .zadanie__pasek .wykrzyknik { animation: none; }
.og-karta-startu .zadanie__pasek span { display: inline; }
.og-karta-startu .cele li span { color: #3f8f22; }
.og-boczna__notka { margin: 0; padding: 0 4px; font-size: .95rem; color: var(--tekst-cichy); }
.og-zajecia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.og-zajecie { display: flex; flex-direction: column; border-color: var(--q); transition: transform .15s ease, box-shadow .15s ease; }
.og-zajecie:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #000, 0 0 22px color-mix(in srgb, var(--q) 35%, transparent), 0 14px 40px rgba(0, 0, 0, .5); }
.og-zajecie.tooltip--rzadka { border-color: #2a8cf0; }
.og-zajecie .tooltip__naglowek { margin-bottom: 10px; }
.og-zajecie .tooltip__naglowek .ikona { width: 46px; height: 46px; }
.og-zajecie h3 { font-size: 1.14rem; }
.og-zajecie .szary { margin: 0; font-size: .86rem; }
.og-zajecie > p { font-size: .94rem; color: var(--tekst); margin-bottom: 0; }
.og-zajecie .uzyj { margin-top: auto; padding-top: 10px; }

/* Rasy: karty, chipy klas i tabela (pasy frakcji są w czwartej rundzie). */
.og-grupa { margin-top: clamp(28px, 4vw, 44px); }
.og-grupa[hidden] { display: none; }
.og-grupa__tytul { display: flex; align-items: center; gap: 12px; font-size: var(--t-xl); color: var(--tekst); margin-bottom: 18px; }
.og-grupa__tytul svg { width: 34px; height: 40px; flex: none; }
.og-grupa__tytul--przymierze { color: #8fb8ff; }
.og-grupa__tytul--horda { color: #ff8a7a; }
.og-grupa__tytul--obie { color: var(--zloto); }
.og-rasy { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.og-rasa {
  display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 96px;
  background: linear-gradient(180deg, rgba(13, 20, 46, .96), rgba(4, 7, 22, .96)); border: 1px solid color-mix(in srgb, var(--f) 55%, #333); border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 14px 36px rgba(0, 0, 0, .45);
}
.og-rasa[hidden] { display: none; }
.og-rasa:target { border-color: var(--zloto); box-shadow: 0 0 0 1px #000, 0 0 26px rgba(255, 209, 0, .3); }
.og-rasa__portret { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid #000; }
.og-rasa__portret img:not(.og-herb) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.og-rasa:hover .og-rasa__portret img:not(.og-herb) { transform: scale(1.04); }
.og-rasa__portret::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(4, 7, 22, .85)); pointer-events: none; }
.og-rasa__portret--pusty { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--f) 40%, transparent), transparent 75%), linear-gradient(180deg, var(--f-ciemny), #04070f); }
.og-rasa__inicjal { font-family: var(--f-tytul); font-size: 7.5rem; line-height: 1; color: color-mix(in srgb, var(--f) 45%, #fff); opacity: .28; }
.og-rasa__herb { position: absolute; z-index: 1; left: 12px; bottom: 10px; width: 36px; height: 44px; filter: drop-shadow(0 2px 6px #000); }
.og-rasa__typ { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 2px 8px; text-align: center; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #1b1003; background: linear-gradient(180deg, #ffe27a, #c98d10); border-radius: 3px; }
.og-rasa__tresc { padding: 14px 18px 18px; min-width: 0; }
.og-rasa__tresc h3 { font-size: 1.55rem; color: var(--zloto-jasne); }
.og-rasa__en { margin: 0 0 6px; color: var(--tekst-blady); font-size: .86rem; }
.og-rasa__dom { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .88rem; color: var(--zloto-stare); }
.og-rasa__dom svg { width: 16px; height: 16px; flex: none; }
.og-rasa__tresc > p { font-size: .94rem; line-height: 1.55; color: var(--tekst-cichy); margin-bottom: .6em; }
.og-rasa__uwaga { padding-left: 10px; border-left: 2px solid var(--q-niezwykla); color: var(--tekst) !important; font-size: .88rem !important; }
.og-rasa__klasy-tytul { margin: 10px 0 6px !important; font-size: .8rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-blady) !important; }
.og-chipy { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.og-chip {
  display: inline-block; padding: 2px 8px 1px; font-size: .82rem; line-height: 1.5; text-decoration: none; white-space: nowrap;
  color: var(--kt, var(--k, var(--ft, var(--f, var(--tekst))))); background: color-mix(in srgb, var(--k, var(--f, #888)) 12%, rgba(4, 7, 15, .7)); border: 1px solid color-mix(in srgb, var(--k, var(--f, #888)) 55%, transparent); border-radius: 3px;
}
.og-chip:hover { color: #fff; background: color-mix(in srgb, var(--k, var(--f, #888)) 30%, rgba(4, 7, 15, .7)); }
.og-macierz { overflow-x: auto; border: 1px solid rgba(201, 162, 74, .35); border-radius: 6px; background: rgba(4, 7, 15, .72); box-shadow: 0 18px 46px rgba(0, 0, 0, .45); }
.og-macierz:focus-visible { outline-offset: 2px; }
.og-macierz table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .92rem; }
.og-macierz th, .og-macierz td { padding: 0; border-bottom: 1px solid rgba(127, 135, 156, .14); }
.og-macierz thead th { vertical-align: bottom; padding: 12px 2px 10px; border-bottom: 1px solid rgba(201, 162, 74, .4); }
.og-macierz thead th a { display: block; color: var(--kt, var(--k)); text-decoration: none; }
.og-macierz thead th a:hover { color: #fff; }
.og-macierz thead th span { display: block; margin: 0 auto; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: .9rem; line-height: 1; text-shadow: 0 1px 0 #000; }
.og-macierz__rog { text-align: left; padding-left: 16px !important; font-weight: 400; color: var(--tekst-blady); }
.og-macierz tbody th[scope="row"] { text-align: left; white-space: nowrap; padding: 6px 12px 6px 16px; font-weight: 400; }
/* Przy przewijaniu w bok nazwy ras zostają na miejscu, inaczej nie wiadomo, czyj to wiersz. */
.og-macierz tbody th[scope="row"], .og-macierz__rog { position: sticky; left: -1px; z-index: 1; background: #070b18; }
.og-macierz__frakcja th span { display: inline-block; position: sticky; left: 16px; }
.og-macierz__wskazowka { display: none; margin: 14px 0 0; text-align: center; font-size: .9rem; color: var(--tekst-blady); }
.og-macierz tbody th[scope="row"] a { color: var(--tekst); text-decoration: none; }
.og-macierz tbody th[scope="row"] a:hover { color: var(--zloto-jasne); }
.og-macierz__frakcja th { padding: 10px 16px 6px !important; text-align: left; font-family: var(--f-tytul); font-size: 1.15rem; font-weight: 400; letter-spacing: .02em; }
.og-macierz__grupa--przymierze .og-macierz__frakcja th { color: #8fb8ff; background: linear-gradient(90deg, rgba(58, 120, 224, .2), transparent 60%); }
.og-macierz__grupa--horda .og-macierz__frakcja th { color: #ff8a7a; background: linear-gradient(90deg, rgba(214, 56, 43, .2), transparent 60%); }
.og-macierz__grupa--obie .og-macierz__frakcja th { color: var(--zloto); background: linear-gradient(90deg, rgba(217, 168, 48, .2), transparent 60%); }
.og-macierz td { text-align: center; width: 6.2%; }
.og-macierz tbody tr:not(.og-macierz__frakcja):hover { background: rgba(255, 209, 0, .06); }
.og-kropka { display: inline-block; width: 13px; height: 13px; transform: rotate(45deg); background: var(--k); box-shadow: 0 0 0 1px #000, 0 0 8px color-mix(in srgb, var(--k) 60%, transparent); }

/* Klasy: role, spis, karty z obrazem i specjalizacjami. */
.og-role { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.og-rola { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: rgba(11, 18, 38, .8); border: 1px solid rgba(127, 135, 156, .3); border-radius: 6px; }
.og-rola > svg { flex: none; width: 46px; height: 46px; }
.og-rola h3 { font-family: var(--f-tekst); font-size: 1.2rem; margin: 2px 0 4px; }
.og-rola h3 small { font-size: .8rem; color: var(--tekst-blady); margin-left: 4px; }
.og-rola p { margin: 0; font-size: .93rem; color: var(--tekst-cichy); line-height: 1.5; }
.og-rola--obronca { border-color: rgba(47, 127, 224, .55); } .og-rola--obronca h3 { color: #6fb0ff; }
.og-rola--uzdrowiciel { border-color: rgba(63, 209, 58, .5); } .og-rola--uzdrowiciel h3 { color: #6ee06a; }
.og-rola--obrazenia { border-color: rgba(232, 53, 42, .5); } .og-rola--obrazenia h3 { color: #ff7a70; }
.og-spis { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.og-spis__klasa { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 13px; color: var(--kt, var(--k)); text-decoration: none; font-size: .98rem; background: rgba(4, 7, 15, .7); border: 1px solid color-mix(in srgb, var(--k) 40%, transparent); border-radius: 5px; }
.og-spis__klasa:hover { color: #fff; background: color-mix(in srgb, var(--k) 16%, rgba(4, 7, 15, .8)); border-color: var(--k); }
.og-spis__znak { flex: none; width: 18px; height: 18px; color: var(--k); filter: drop-shadow(0 1px 0 #000); }
.og-klasy { display: grid; gap: 22px; margin-top: 14px; }
.og-klasa {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); overflow: hidden; scroll-margin-top: 96px;
  background: linear-gradient(180deg, rgba(13, 20, 46, .97), rgba(4, 7, 22, .97)); border: 1px solid color-mix(in srgb, var(--k) 60%, #222); border-radius: 6px;
  box-shadow: 0 0 0 1px #000, inset 3px 0 0 var(--k), 0 20px 50px rgba(0, 0, 0, .5);
}
.og-klasa[hidden] { display: none; }
.og-klasa:target { box-shadow: 0 0 0 1px #000, inset 3px 0 0 var(--k), 0 0 34px color-mix(in srgb, var(--k) 40%, transparent); }
.og-klasa__obraz { position: relative; min-height: 340px; overflow: hidden; border-right: 1px solid #000; }
.og-klasa__obraz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og-klasa__obraz--pusty { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--k) 45%, transparent), transparent 70%), radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, .06), transparent 60%), #060a16; }
.og-klasa__inicjal { font-family: var(--f-tytul); font-size: 9rem; line-height: 1; color: var(--k); opacity: .32; text-shadow: 0 0 40px color-mix(in srgb, var(--k) 60%, transparent); }
.og-klasa__role { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; }
.og-klasa__role svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px #000); }
.og-klasa__tresc { padding: clamp(18px, 2.6vw, 28px); min-width: 0; }
.og-klasa__glowa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.og-klasa__glowa h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); color: var(--k); text-shadow: 0 2px 0 #000; }
.og-klasa__en { color: var(--tekst-blady); font-size: .92rem; }
.og-znacznik { align-self: center; padding: 1px 8px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; border: 1px solid currentColor; }
.og-znacznik--bohaterska { color: #c77dff; }
.og-znacznik--start { color: var(--q-niezwykla); }
.og-klasa__opis { font-size: 1.05rem; line-height: 1.6; color: var(--tekst); margin-bottom: .5em; }
.og-klasa__dla { font-style: italic; color: var(--zloto-stare); margin-bottom: 14px; }
.og-cechy { margin: 0 0 4px; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 8px 28px; }
.og-cechy dt { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-blady); }
.og-cechy dd { margin: 0; color: var(--tekst); font-size: .96rem; }
.og-klasa__podtytul { font-family: var(--f-tekst); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tekst-blady); margin: 18px 0 8px; }
.og-specy__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.og-spec { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: rgba(4, 7, 15, .6); border: 1px solid rgba(109, 115, 133, .35); border-radius: 5px; }
.og-spec__ikona { flex: none; width: 30px; height: 30px; margin-top: 2px; }
.og-spec h4 { margin: 0; font-family: var(--f-tekst); font-weight: 400; font-size: 1.08rem; color: #fff; line-height: 1.25; }
.og-spec h4 small { font-size: .78rem; color: var(--tekst-blady); }
.og-spec p { margin: 0 0 4px; font-size: .9rem; line-height: 1.5; color: var(--tekst-cichy); }
.og-spec__rola { font-size: .82rem !important; }
.og-spec--obronca .og-spec__rola { color: #6fb0ff !important; }
.og-spec--uzdrowiciel .og-spec__rola { color: #6ee06a !important; }
.og-spec--obrazenia .og-spec__rola { color: #ff7a70 !important; }
.og-spec__bron { margin-top: 6px !important; font-size: .82rem !important; color: var(--zloto-stare) !important; }
.og-klasa__rasy { margin-top: 14px; }
.og-klasa__rasy summary { cursor: pointer; color: var(--zloto); font-size: .95rem; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.og-klasa__rasy summary::-webkit-details-marker { display: none; }
.og-klasa__rasy summary::before { content: "+"; width: 18px; height: 18px; display: grid; place-items: center; font-size: .85rem; border: 1px solid var(--zloto-stare); border-radius: 3px; background: linear-gradient(180deg, #2a2f3d, #171a24); }
.og-klasa__rasy[open] summary::before { content: "−"; }
.og-klasa__rasy .og-chipy { margin-top: 10px; }

/* Słowniczek: działy jak strony księgi, hasło po angielsku i znaczenie po polsku. */
.og-szukaj { max-width: 520px; margin-bottom: 28px; }
.og-szukaj label { display: block; margin-bottom: 6px; color: var(--tekst-cichy); font-size: .95rem; }
.og-szukaj input { width: 100%; padding: 11px 14px; font: inherit; font-size: 1.05rem; color: var(--tekst); background: rgba(4, 7, 15, .85); border: 1px solid rgba(201, 162, 74, .5); border-radius: 5px; }
.og-szukaj input:focus { outline: none; border-color: var(--zloto); box-shadow: 0 0 0 3px rgba(255, 209, 0, .15); }
.og-szukaj__brak { margin: 10px 0 0; color: var(--tekst-cichy); }
.og-slowniczek { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.og-dzial { padding: 6px 22px 12px; background: rgba(11, 18, 38, .72); border: 1px solid rgba(201, 162, 74, .3); border-radius: 6px; }
.og-dzial[hidden] { display: none; }
.og-dzial__tytul { font-size: var(--t-l); color: var(--zloto); padding: 14px 0 10px; border-bottom: 1px solid rgba(201, 162, 74, .3); }
.og-dzial dl { margin: 0; }
.og-haslo { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid rgba(127, 135, 156, .14); }
.og-haslo:last-child { border-bottom: 0; }
.og-haslo[hidden] { display: none; }
.og-haslo dt { font-family: var(--f-tytul); font-size: 1.2rem; line-height: 1.25; color: var(--zloto-jasne); }
.og-haslo dd { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--tekst-cichy); }

@media (max-width: 1100px) {
  .og-dwie, .og-czym { grid-template-columns: 1fr; }
  .og-boczna { position: static; order: -1; }
  .og-zajecia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .og-klasa { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .og-slowniczek { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .og-glowa__w { grid-template-columns: 1fr; }
  .og-retail { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .og-role { grid-template-columns: 1fr; }
  .og-klasa { grid-template-columns: 1fr; }
  .og-klasa__obraz { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid #000; }
  .og-klasa__inicjal { font-size: 6rem; }
}
@media (max-width: 640px) {
  .og-kafle, .og-zajecia { grid-template-columns: 1fr; }
  .og-lancuch > li { padding: 12px 4px 12px 56px; }
  .og-lancuch::before { left: 19px; }
  .og-lancuch > li::before { width: 32px; height: 32px; left: 3px; font-size: 1.1rem; }
  .og-cechy { grid-template-columns: 1fr 1fr; }
  .og-klasa__obraz { aspect-ratio: 4 / 3; }
  .og-haslo { grid-template-columns: 1fr; }
  .og-dzial { padding: 4px 16px 10px; }
  .og-zakladki a { padding: 9px 12px 8px; }
}

/* ---------- O grze, druga runda: grafiki, filtry, rozdziały i zajęcia na 90 poziomie ---------- */
/* Kadr grafiki (o_grze.KADRY): klasa zamiast style="", bo CSP strony go nie przepuszcza. */
img.og-kadr--gora { object-position: 50% 12%; }
img.og-kadr--wyzej { object-position: 50% 30%; }
img.og-kadr--srodek { object-position: 50% 50%; }
img.og-kadr--nizej { object-position: 50% 66%; }
img.og-kadr--lewo { object-position: 22% 45%; }
img.og-kadr--prawo { object-position: 78% 45%; }
/* Zrzut okna interfejsu: cały, bez przycinania, na ciemnym tle. */
img.og-kadr--caly { object-fit: contain; object-position: 50% 50%; padding: 16px; background: radial-gradient(ellipse at 50% 50%, rgba(201, 162, 74, .1), transparent 70%), #05070e; }
.og-zrodlo-grafiki {
  position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: 1px 6px; font-size: .7rem; line-height: 1.5;
  color: rgba(255, 255, 255, .75); text-decoration: none; background: rgba(4, 7, 15, .6); border-radius: 3px; opacity: .7;
}
.og-zrodlo-grafiki:hover { opacity: 1; color: #fff; }
.og-zrodlo--grafiki { margin-top: 26px; }
.og-zewn { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; }

/* Filtr: wyśrodkowany pasek z herbami, wybrana pozycja świeci jak zaznaczony przedmiot. */
.og-filtr { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 34px auto 10px; text-align: center; }
.og-filtr[hidden] { display: none; }
.og-filtr__etykieta { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--f-tytul); font-size: 1.35rem; color: var(--zloto); }
.og-filtr__etykieta::before, .og-filtr__etykieta::after { content: ""; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--zloto-stare)); }
.og-filtr__etykieta::after { transform: scaleX(-1); }
.og-filtr__przyciski {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px;
  background: linear-gradient(180deg, rgba(20, 24, 38, .95), rgba(6, 8, 16, .95)); border: 1px solid rgba(201, 162, 74, .55); border-radius: 8px;
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 230, 160, .08), 0 14px 34px rgba(0, 0, 0, .45);
}
.og-filtr__przyciski button {
  --b: var(--zloto);
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; font: 1rem var(--f-tekst); color: var(--tekst-cichy);
  background: rgba(255, 255, 255, .02); border: 1px solid transparent; border-radius: 5px; cursor: pointer; transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.og-filtr__przyciski button svg { width: 22px; height: 24px; flex: none; }
.og-filtr__przyciski button:hover { color: var(--tekst); background: rgba(255, 255, 255, .06); }
.og-filtr__przyciski button[aria-pressed="true"] {
  color: #fff; border-color: var(--b);
  background: linear-gradient(180deg, color-mix(in srgb, var(--b) 34%, transparent), color-mix(in srgb, var(--b) 10%, rgba(4, 7, 15, .9)));
  box-shadow: 0 0 0 1px #000, 0 0 18px color-mix(in srgb, var(--b) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.og-filtr__przyciski .og-filtr--przymierze { --b: #3a78e0; }
.og-filtr__przyciski .og-filtr--horda { --b: #d6382b; }
.og-filtr__przyciski .og-filtr--obie { --b: #d9a830; }
.og-filtr__przyciski .og-filtr--obronca { --b: #2f7fe0; }
.og-filtr__przyciski .og-filtr--uzdrowiciel { --b: #3fd13a; }
.og-filtr__przyciski .og-filtr--obrazenia { --b: #e8352a; }
.og-filtr__przyciski .og-filtr--start { --b: #1eff00; }
.og-macierz tbody[hidden] { display: none; }
.og-macierz__wskazowka + .og-macierz { margin-top: 18px; }

/* Jak zacząć: trzy drogi na start. */
.og-drogi { display: grid; gap: 8px; margin: 6px 0 12px; }
.og-droga { padding: 10px 14px 12px; background: rgba(4, 7, 15, .65); border: 1px solid color-mix(in srgb, var(--q) 55%, transparent); border-left: 3px solid var(--q); border-radius: 5px; }
.og-droga b { margin-right: 10px; font-size: 1.08rem; color: var(--q); }
.og-droga.q-rzadka b { color: #2a8cf0; }
.og-droga.q-epicka b { color: #c77dff; }
.og-droga small { font-size: .84rem; color: var(--tekst-blady); }
.og-lancuch .og-droga p { margin: 4px 0 0; font-size: .95rem; line-height: 1.55; }

/* Rady: pytania w jednej kolumnie, szerzej. */
.og-pytania { grid-template-columns: 1fr; max-width: 52rem; }
.og-pytania .pytanie summary { font-size: 1.15rem; }
.og-pytania .pytanie p { font-size: 1.02rem; }

/* Na 90 poziomie: karty wyboru, a pod nimi opis z grafiką po prawej. */
.og-wybor { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.og-wybor__karta {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; text-decoration: none; color: var(--tekst);
  background: linear-gradient(180deg, rgba(13, 20, 46, .95), rgba(4, 7, 22, .95)); border: 1px solid rgba(109, 115, 133, .45); border-radius: 6px;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.og-wybor__karta .ikona { width: 42px; height: 42px; }
.og-wybor__karta .ikona svg { width: 26px; height: 26px; }
.og-wybor__tekst { display: grid; min-width: 0; line-height: 1.25; }
.og-wybor__tekst b { color: var(--q); font-size: 1rem; text-shadow: 0 1px 0 #000; }
.og-wybor__karta.q-rzadka .og-wybor__tekst b { color: #2a8cf0; }
.og-wybor__karta.q-epicka .og-wybor__tekst b { color: #c77dff; }
.og-wybor__tekst small { color: var(--tekst-blady); font-size: .8rem; }
.og-wybor__karta:hover { color: var(--tekst); border-color: var(--q); transform: translateY(-2px); }
.og-wybor__karta--wybrana { border-color: var(--q); background: linear-gradient(180deg, color-mix(in srgb, var(--q) 22%, rgba(13, 20, 46, .95)), rgba(4, 7, 22, .95)); box-shadow: 0 0 0 1px #000, 0 0 22px color-mix(in srgb, var(--q) 40%, transparent); }
.og-wybor__karta--wybrana.q-rzadka { --q: #2a8cf0; }
.og-panele { display: grid; gap: 22px; margin-top: 22px; }
.og-akt {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; scroll-margin-top: 90px;
  background: linear-gradient(180deg, rgba(10, 16, 42, .97), rgba(4, 7, 22, .97)); border: 1px solid var(--q); border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 0 40px color-mix(in srgb, var(--q) 14%, transparent), 0 24px 60px rgba(0, 0, 0, .5);
}
.og-akt.q-rzadka { --q: #2a8cf0; }
.og-akt[hidden] { display: none; }
.og-zestaw--js .og-panele .og-akt:not([hidden]) { animation: rozwin .4s cubic-bezier(.2, .8, .2, 1) both; }
.og-akt__tresc { padding: clamp(20px, 3vw, 34px); }
.og-akt__glowa { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.og-akt__glowa .ikona { width: 56px; height: 56px; }
.og-akt__glowa .ikona svg { width: 34px; height: 34px; }
.og-akt h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--q); text-shadow: 0 2px 0 #000; }
.og-akt.q-epicka h3 { color: #c77dff; }
.og-akt__skala { margin: 2px 0 0; color: var(--tekst-blady); font-size: .92rem; }
.og-akt__tresc > p { font-size: 1.06rem; line-height: 1.7; color: var(--tekst); }
.og-akt__tresc > p.og-akt__uzyj { color: var(--q-uzyj); margin-top: 16px; }
.og-akt__obraz { position: relative; margin: 0; min-height: 320px; overflow: hidden; border-left: 1px solid #000; }
.og-akt__obraz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og-akt__obraz figcaption a { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; font-size: .7rem; color: rgba(255, 255, 255, .75); text-decoration: none; background: rgba(4, 7, 15, .6); border-radius: 3px; }
.og-akt__obraz--pusty { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--q) 40%, transparent), transparent 70%), radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .05), transparent 60%), #060a16; }
.og-akt__obraz--pusty svg { width: 150px; height: 150px; opacity: .85; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); }

/* „A teraz polecamy przeczytać”: następny rozdział jak kolejne zadanie w łańcuchu. */
.og-dalej { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.og-dalej .kontener { display: grid; justify-items: center; }
.og-dalej__zacheta { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--f-tytul); font-size: 1.4rem; color: var(--zloto); }
.og-dalej__zacheta::before, .og-dalej__zacheta::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--zloto-stare)); }
.og-dalej__zacheta::after { transform: scaleX(-1); }
.og-dalej__karta {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; width: min(100%, 760px); overflow: hidden; text-decoration: none; color: var(--tekst);
  background: linear-gradient(180deg, rgba(13, 20, 46, .97), rgba(4, 7, 22, .97)); border: 1px solid var(--q); border-radius: 8px;
  box-shadow: 0 0 0 1px #000, 0 0 34px color-mix(in srgb, var(--q) 22%, transparent), 0 22px 54px rgba(0, 0, 0, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.og-dalej__karta.q-rzadka { --q: #2a8cf0; }
.og-dalej__karta:hover { color: var(--tekst); transform: translateY(-3px); box-shadow: 0 0 0 1px #000, 0 0 46px color-mix(in srgb, var(--q) 38%, transparent), 0 26px 60px rgba(0, 0, 0, .6); }
.og-dalej__obraz { position: relative; align-self: stretch; min-height: 130px; display: grid; place-items: center; overflow: hidden; border-right: 1px solid #000; }
.og-dalej__obraz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og-dalej__obraz--pusty { background: radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--q) 40%, transparent), transparent 70%), #060a16; }
.og-dalej__obraz--pusty svg { width: 72px; height: 72px; }
.og-dalej__tekst { display: grid; gap: 4px; padding: 18px 22px; }
.og-dalej__tekst small { display: flex; align-items: center; gap: 6px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-blady); }
.og-dalej__wykrzyknik { width: 18px; height: 18px; animation: puls 2.4s ease-in-out infinite; }
.og-dalej__tekst b { font-family: var(--f-tytul); font-size: 1.9rem; line-height: 1.1; color: var(--q); text-shadow: 0 2px 0 #000; }
.og-dalej__karta.q-epicka .og-dalej__tekst b { color: #c77dff; }
.og-dalej__tekst > span { color: var(--tekst-cichy); font-size: 1rem; }
.og-dalej__strzalka { padding-right: 24px; color: var(--q); }
.og-dalej__strzalka svg { width: 34px; height: 34px; transition: transform .2s ease; }
.og-dalej__karta:hover .og-dalej__strzalka svg { transform: translateX(5px); }
.og-dalej__wstecz { margin: 14px 0 0; font-size: .95rem; color: var(--tekst-blady); }
.og-dalej__koniec { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; max-width: 760px; padding: 22px 26px; text-align: left; background: rgba(13, 42, 16, .5); border: 1px solid rgba(30, 255, 0, .35); border-radius: 8px; }
.og-dalej__koniec > svg { width: 44px; height: 44px; flex: none; }
.og-dalej__koniec p { flex: 1 1 280px; margin: 0; }

@media (max-width: 1100px) {
  .og-kafle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .og-akt { grid-template-columns: 1fr; }
  .og-akt__obraz { min-height: 0; aspect-ratio: 16 / 9; border-left: 0; border-bottom: 1px solid #000; order: -1; }
}
@media (max-width: 640px) {
  .og-kafle { grid-template-columns: 1fr; }
  .og-wybor { grid-template-columns: 1fr 1fr; }
  .og-wybor__karta .ikona { width: 36px; height: 36px; }
  .og-dalej__karta { grid-template-columns: 1fr auto; }
  .og-dalej__obraz { grid-column: 1 / -1; aspect-ratio: 16 / 7; border-right: 0; border-bottom: 1px solid #000; }
  .og-dalej__tekst b { font-size: 1.55rem; }
  .og-dalej__zacheta { font-size: 1.15rem; }
  .og-dalej__zacheta::before, .og-dalej__zacheta::after { width: 30px; }
  .og-filtr__przyciski button { padding: 8px 12px 8px 10px; font-size: .95rem; }
}

/* ---------- O grze, trzecia runda: nawigacja po długich stronach i strona rad ---------- */
/* Pasek zakładek przewija się w bok na telefonie; wygaszona krawędź podpowiada, że dalej coś jest
   (klasy ustawia main.js, który też przewija pasek do bieżącej zakładki). */
.og-zakladki--dalej { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.og-zakladki--wstecz { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.og-zakladki--wstecz.og-zakladki--dalej { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }

/* Skrót do tabeli ras i klas: tabela stoi na samym dole bardzo długiej strony. */
.og-skrot { display: flex; justify-content: center; margin: 0; }
.og-skrot a {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 14px; text-decoration: none; color: var(--tekst-cichy); text-align: left;
  background: linear-gradient(180deg, rgba(20, 24, 38, .95), rgba(6, 8, 16, .95)); border: 1px solid rgba(201, 162, 74, .55); border-radius: 8px;
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 230, 160, .08), 0 14px 34px rgba(0, 0, 0, .45); transition: border-color .15s ease, box-shadow .15s ease;
}
.og-skrot a > svg { flex: none; width: 30px; height: 30px; }
.og-skrot a span { display: grid; font-size: .92rem; line-height: 1.3; }
.og-skrot a b { font-family: var(--f-tytul); font-weight: 400; font-size: 1.3rem; color: var(--zloto); }
.og-skrot a .og-skrot__strzalka { width: 24px; height: 24px; color: var(--zloto); transform: rotate(90deg); transition: transform .2s ease; }
.og-skrot a:hover { color: var(--tekst); border-color: var(--zloto); box-shadow: 0 0 0 1px #000, 0 0 22px rgba(255, 209, 0, .22), 0 14px 34px rgba(0, 0, 0, .45); }
.og-skrot a:hover .og-skrot__strzalka { transform: rotate(90deg) translateX(4px); }

/* Szeroki ekran: tabela mieści się cała, więc nie potrzebuje własnego przewijania, a nagłówek z klasami
   może się przykleić pod paskiem strony (68 px). Przyklejanie nie działa wewnątrz overflow: auto. */
@media (min-width: 960px) {
  .og-macierz { overflow: visible; }
  .og-macierz thead th { position: sticky; top: 68px; z-index: 2; background: #070b18; box-shadow: inset 0 -1px 0 rgba(201, 162, 74, .4), 0 8px 14px -8px rgba(0, 0, 0, .8); }
  .og-macierz thead th:first-child { border-top-left-radius: 6px; }
  .og-macierz thead th:last-child { border-top-right-radius: 6px; }
}
@media (max-width: 959px) {
  .og-macierz__wskazowka { display: block; }
  .og-macierz tbody th[scope="row"], .og-macierz__rog { box-shadow: 8px 0 10px -8px rgba(0, 0, 0, .9); }
}
@media (max-width: 640px) {
  .og-macierz table { min-width: 760px; }
  .og-macierz tbody th[scope="row"] { white-space: normal; max-width: 7.4rem; padding: 6px 8px 6px 12px; font-size: .88rem; line-height: 1.2; }
  .og-macierz__rog { padding-left: 12px !important; }
  .og-macierz__frakcja th span { left: 12px; }
}

/* Rady: pytania w grupach, obok ilustracja i trzy zasady. */
.og-rady { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.og-rady__grupa + .og-rady__grupa { margin-top: 34px; }
.og-rady__tytul { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; font-size: var(--t-l); color: var(--zloto); border-bottom: 1px solid rgba(201, 162, 74, .45); }
.og-rady__tytul svg { flex: none; width: 26px; height: 26px; }
.og-rady__boczna { position: sticky; top: 96px; display: grid; gap: 16px; }
.og-rady__obraz { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid rgba(201, 162, 74, .5); border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 18px 46px rgba(0, 0, 0, .5); }
.og-rady__obraz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og-rady__obraz figcaption { position: absolute; inset: auto 0 0; padding: 70px 20px 16px; font-family: var(--f-tytul); font-size: 1.4rem; line-height: 1.2; color: var(--zloto-jasne); text-shadow: 0 2px 0 #000; background: linear-gradient(180deg, transparent, rgba(4, 7, 22, .94)); }
.og-rady__obraz .og-zrodlo-grafiki { top: 8px; bottom: auto; }
.og-rady__zasady { padding: 16px 20px 18px; background: rgba(11, 18, 38, .8); border: 1px solid rgba(201, 162, 74, .35); border-radius: 6px; }
.og-rady__zasady h2 { font-size: var(--t-l); color: var(--zloto); margin-bottom: 12px; }
.og-rady__zasady ol { list-style: none; margin: 0; padding: 0; counter-reset: zasada; display: grid; gap: 12px; }
.og-rady__zasady li { counter-increment: zasada; position: relative; padding-left: 42px; font-size: .97rem; line-height: 1.5; color: var(--tekst-cichy); }
.og-rady__zasady li::before {
  content: counter(zasada); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; display: grid; place-items: center;
  font-family: var(--f-tytul); font-size: 1.05rem; color: #1a1003; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0a0, #e8b83a 55%, #8a5a10); box-shadow: 0 0 0 2px #2a1a04, 0 0 12px rgba(255, 209, 0, .25);
}
.og-rady__zasady li b { display: block; color: var(--tekst); }
@media (max-width: 1100px), (max-height: 860px) {
  .og-rady__boczna { position: static; }
}
@media (max-width: 1100px) {
  .og-rady { grid-template-columns: 1fr; }
  .og-rady__boczna { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .og-rady__boczna { grid-template-columns: 1fr; }
}

/* Powrót na górę długiej strony: okrągły przycisk jak w interfejsie gry, widoczny po przewinięciu. */
.og-dogory {
  position: fixed; z-index: 40; right: clamp(12px, 2.4vw, 28px); bottom: clamp(12px, 2.4vw, 28px); width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--zloto-jasne); background: radial-gradient(circle at 35% 30%, #3a3f52, #12141c 75%); border: 1px solid var(--zloto-stare); border-radius: 50%;
  box-shadow: 0 0 0 1px #000, 0 8px 24px rgba(0, 0, 0, .6); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.og-dogory[hidden] { display: none; }
.og-dogory svg { width: 24px; height: 24px; transform: rotate(-90deg); }
.og-dogory:hover { color: #fff; border-color: var(--zloto); transform: translateY(-2px); box-shadow: 0 0 0 1px #000, 0 0 18px rgba(255, 209, 0, .3), 0 8px 24px rgba(0, 0, 0, .6); }

/* ---------- O grze, czwarta runda: świat i frakcje, stolice, herby i znaki klas ---------- */
.og-pas--przymierze, .og-strona--przymierze, .og-stolica--przymierze { --f: #3a78e0; --f-ciemny: #0d2350; --ft: #8fb8ff; }
.og-pas--horda, .og-strona--horda, .og-stolica--horda { --f: #d6382b; --f-ciemny: #3c0805; --ft: #ff8a7a; }
.og-stolica--obie { --f: #d9a830; --f-ciemny: #2c2410; --ft: #ffd870; }

/* Herb frakcji: prawdziwy emblemat (img) albo rysowana tarcza (svg), ten sam rozmiar z klasy miejsca. */
.og-herb { flex: none; object-fit: contain; }
img.og-herb { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .7)); }
.og-grupa__herb { width: 40px; height: 48px; }
.og-grupa__tytul small { font-family: var(--f-tekst); font-size: .92rem; color: var(--tekst-blady); }
.og-grupa__tytul::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: .4; }
.og-filtr__przyciski button .og-filtr__herb { width: 22px; height: 26px; }

/* Który to rozdział: łańcuch czytania widać już w nagłówku. */
.og-glowa__krok { display: inline-block; margin-left: 14px; padding: 0 10px; font-size: .84rem; letter-spacing: .03em; white-space: nowrap; color: var(--zloto); border: 1px solid rgba(201, 162, 74, .5); border-radius: 999px; background: rgba(4, 7, 15, .5); }

/* Rasy: dwie strony naprzeciw siebie zamiast trzech kart. */
.og-pasy { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 18px 40px rgba(0, 0, 0, .45); }
.og-pas { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); padding: clamp(16px, 2.2vw, 24px) clamp(18px, 3.4vw, 44px); text-decoration: none; color: var(--tekst); border: 1px solid var(--f); transition: filter .15s ease; }
.og-pas--przymierze { background: linear-gradient(100deg, color-mix(in srgb, var(--f) 38%, #050914), var(--f-ciemny) 80%); border-right: 0; border-radius: 8px 0 0 8px; }
.og-pas--horda { flex-direction: row-reverse; text-align: right; background: linear-gradient(260deg, color-mix(in srgb, var(--f) 38%, #050914), var(--f-ciemny) 80%); border-left: 0; border-radius: 0 8px 8px 0; }
.og-pas:hover { color: var(--tekst); filter: brightness(1.2); }
.og-pas__herb { width: clamp(54px, 6vw, 78px); height: clamp(68px, 7.6vw, 98px); }
.og-pas__tekst { display: grid; gap: 4px; }
.og-pas__tekst b { font-family: var(--f-tytul); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; color: #fff; text-shadow: 0 2px 0 #000; }
.og-pas__tekst span { font-size: 1rem; line-height: 1.45; color: var(--tekst); }
.og-pas__tekst small { font-size: .88rem; color: var(--zloto); }
.og-kontra { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); display: grid; place-items: center; width: 54px; height: 54px; color: #2a1800; background: radial-gradient(circle at 50% 28%, #fff0a8, #e0a520 55%, #a8720a); border: 2px solid #3a2200; border-radius: 50%; box-shadow: 0 0 0 1px #000, 0 0 22px rgba(255, 196, 70, .35), 0 6px 18px rgba(0, 0, 0, .6); }
.og-kontra svg { width: 28px; height: 28px; }
.og-dopowiedz { margin: 0 0 24px; text-align: center; font-size: .96rem; color: var(--tekst-blady); }

/* Chip klasy ze znakiem klasy: ten sam znak co w spisie klas i w tabeli. */
.og-chip--klasa { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 2px 7px; font-size: .86rem; border-left-width: 3px; border-left-color: var(--k); }
.og-chip--klasa svg { flex: none; width: 14px; height: 14px; }
.og-rasa .og-chipy { gap: 6px; }
.og-macierz thead th a svg { display: block; width: 17px; height: 17px; margin: 9px auto 0; }
.og-klasa__znak { display: inline-block; width: .78em; height: .78em; margin-right: .28em; vertical-align: -.05em; }

/* Świat: Azeroth w pigułce. */
.og-glowa-srodek { margin-left: auto; margin-right: auto; text-align: center; }
.og-azeroth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.og-azeroth__dopisek { padding-left: 14px; border-left: 2px solid var(--zloto); color: var(--tekst); }
.og-krainy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.og-krainy li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: rgba(11, 18, 38, .78); border: 1px solid rgba(201, 162, 74, .3); border-radius: 6px; }
.og-krainy svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.og-krainy span { font-size: .92rem; line-height: 1.45; color: var(--tekst-cichy); }
.og-krainy b { display: block; font-family: var(--f-tytul); font-weight: 400; font-size: 1.22rem; line-height: 1.2; color: var(--zloto-jasne); }

/* Świat: dwie frakcje obok siebie. Ilustracja w tle, na niej herb. */
.og-pojedynek { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.6vw, 34px); }
.og-pojedynek .og-kontra { top: clamp(90px, 13vw, 170px); }
.og-strona { display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--f) 20%, #070c1a), #04070f 55%); border: 1px solid var(--f); border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 20px 48px rgba(0, 0, 0, .5); }
.og-strona:target { box-shadow: 0 0 0 1px #000, 0 0 34px color-mix(in srgb, var(--f) 55%, transparent), 0 20px 48px rgba(0, 0, 0, .5); }
.og-strona__obraz { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid #000; background: radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--f) 55%, transparent), transparent 70%), linear-gradient(180deg, var(--f-ciemny), #04070f); }
.og-strona__obraz img:not(.og-herb) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.og-strona__obraz::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(4, 7, 15, .55)), linear-gradient(180deg, color-mix(in srgb, var(--f) 30%, transparent), transparent 45%, rgba(4, 7, 15, .9)); pointer-events: none; }
.og-strona__herb { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: auto; height: 74%; max-width: 60%; }
svg.og-strona__herb { aspect-ratio: 48 / 56; }
.og-strona__tresc { padding: 20px clamp(18px, 2.4vw, 28px) 26px; }
.og-strona__tresc h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: var(--ft); text-shadow: 0 2px 0 #000; }
.og-strona__okrzyk { margin: 6px 0 14px; font-style: italic; font-size: 1.08rem; color: var(--zloto); }
.og-strona__tresc > p:not([class]) { margin: 0 0 .7em; line-height: 1.6; color: var(--tekst-cichy); }
.og-strona__fakty { margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.og-strona__fakty div { padding: 8px 12px; background: rgba(4, 7, 15, .6); border: 1px solid color-mix(in srgb, var(--f) 40%, transparent); border-radius: 4px; }
.og-strona__fakty dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-blady); }
.og-strona__fakty dd { margin: 0; font-size: .95rem; line-height: 1.4; color: var(--tekst); }
.og-strona__tresc h4, .og-stolica__tresc h4 { margin: 18px 0 9px; font-family: var(--f-tekst); font-weight: 400; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-blady); }
.og-strona__tresc h4 small { margin-left: 4px; font-size: 1em; color: var(--ft); }
.og-ciekawostki { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.og-ciekawostki li { position: relative; padding-left: 20px; font-size: .94rem; line-height: 1.5; color: var(--tekst-cichy); }
.og-ciekawostki li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--f, var(--zloto)); box-shadow: 0 0 0 1px #000; }

/* Świat: dzieje frakcji. Oś dodatków pośrodku, Przymierze z lewej, Horda z prawej, wspólne w poprzek. */
.og-dzieje { max-width: 62rem; margin: 0 auto; }
.og-dzieje__strony, .og-dzieje__wpis { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); column-gap: 20px; align-items: center; }
.og-dzieje__strony { margin: 0 0 10px; font-family: var(--f-tytul); font-size: 1.6rem; line-height: 1; }
.og-dzieje__strona { display: flex; align-items: center; gap: 10px; }
.og-dzieje__strona--przymierze { grid-column: 1; flex-direction: row-reverse; color: #8fb8ff; }
.og-dzieje__strona--horda { grid-column: 3; color: #ff8a7a; }
.og-dzieje__herb { width: 30px; height: 38px; }
.og-dzieje__lista { position: relative; list-style: none; margin: 0; padding: 10px 0; display: grid; gap: 12px; }
.og-dzieje__lista::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, var(--zloto-stare) 5%, var(--zloto-stare) 95%, transparent); opacity: .6; }
.og-dzieje__wpis p { margin: 0; }
.og-dzieje__dodatek { grid-column: 2; grid-row: 1; position: relative; z-index: 1; display: grid; justify-items: center; padding: 7px 10px 6px; text-align: center; background: linear-gradient(180deg, #1a2440, #0a1022); border: 1px solid var(--zloto-stare); border-radius: 5px; box-shadow: 0 0 0 1px #000, 0 6px 16px rgba(0, 0, 0, .45); }
.og-dzieje__dodatek b { font-family: var(--f-tytul); font-weight: 400; font-size: 1.08rem; line-height: 1.15; color: var(--zloto-jasne); }
.og-dzieje__dodatek small { font-size: .8rem; color: var(--tekst-blady); }
.og-dzieje__p, .og-dzieje__h { grid-row: 1; padding: 10px 14px; font-size: .95rem; line-height: 1.45; color: var(--tekst); }
.og-dzieje__p { grid-column: 1; text-align: right; background: linear-gradient(270deg, rgba(58, 120, 224, .24), transparent); border-right: 2px solid #3a78e0; border-radius: 0 5px 5px 0; }
.og-dzieje__h { grid-column: 3; background: linear-gradient(90deg, rgba(214, 56, 43, .24), transparent); border-left: 2px solid #d6382b; border-radius: 5px 0 0 5px; }
.og-dzieje__wspolne { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1; justify-self: center; max-width: 36rem; margin-top: 8px !important; padding: 9px 18px; text-align: center; font-size: .95rem; line-height: 1.45; color: var(--tekst); background: linear-gradient(rgba(255, 209, 0, .08), rgba(255, 209, 0, .08)), #0a1022; border: 1px solid rgba(201, 162, 74, .5); border-radius: 5px; }
.og-dzieje__razem { display: inline-block; margin-right: 9px; padding: 0 8px; font-size: .74rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; color: #2a1800; background: linear-gradient(180deg, #ffe27a, #c98d10); border-radius: 3px; }
/* Na szerokim ekranie stronę widać po kolumnie, więc podpis „Przymierze:” jest tylko dla czytników. */
.og-dzieje__kto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Świat: stolice. Dwie główne na pół szerokości, pozostałe miasta w mniejszych kartach. */
.og-stolice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.og-stolica { display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, rgba(10, 16, 42, .96), rgba(4, 7, 22, .96)); border: 1px solid color-mix(in srgb, var(--f) 70%, transparent); border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 18px 40px rgba(0, 0, 0, .45); }
.og-stolica--glowna { grid-column: span 2; }
.og-stolica:target { border-color: var(--zloto); box-shadow: 0 0 0 1px #000, 0 0 26px rgba(255, 209, 0, .3); }
.og-stolica__obraz { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid #000; }
.og-stolica--glowna .og-stolica__obraz { aspect-ratio: 16 / 9; }
.og-stolica__obraz img:not(.og-herb) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.og-stolica:hover .og-stolica__obraz img:not(.og-herb) { transform: scale(1.04); }
.og-stolica__obraz--pusty { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--f) 45%, transparent), transparent 72%), linear-gradient(180deg, var(--f-ciemny), #04070f); }
.og-stolica__znak { width: 30%; max-width: 110px; aspect-ratio: 1; opacity: .5; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); }
.og-stolica__frakcja { position: absolute; z-index: 1; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 7px; font-size: .8rem; letter-spacing: .04em; color: #fff; background: rgba(4, 7, 15, .8); border: 1px solid color-mix(in srgb, var(--f) 70%, transparent); border-radius: 999px; }
.og-stolica__herb { width: 18px; height: 22px; }
.og-stolica__tresc { padding: 14px 18px 20px; min-width: 0; }
.og-stolica__tresc h3 { font-size: 1.55rem; color: var(--zloto-jasne); }
.og-stolica--glowna .og-stolica__tresc { padding: 18px 24px 24px; }
.og-stolica--glowna .og-stolica__tresc h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.og-stolica__kto { margin: 0 0 8px; font-size: .9rem; color: var(--ft); }
.og-stolica__tresc > p:not([class]) { margin: 0 0 .6em; font-size: .94rem; line-height: 1.55; color: var(--tekst-cichy); }
.og-stolica--glowna .og-stolica__tresc > p:not([class]) { font-size: 1rem; }
.og-stolica__ciekawostka { margin: 16px 0 0; padding: 9px 12px; font-size: .92rem; line-height: 1.5; color: var(--tekst); background: rgba(255, 209, 0, .06); border-left: 2px solid var(--zloto); border-radius: 0 4px 4px 0; }

/* Strona działu: pierwszy rozdział jako szeroki kafel „zacznij tutaj”, pod nim sześć pozostałych. */
.og-kafel:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.og-kafel:first-child .og-kafel__obraz { aspect-ratio: auto; height: 250px; border-bottom: 0; border-right: 1px solid rgba(0, 0, 0, .6); }
.og-kafel:first-child .og-kafel__tekst { align-content: center; gap: 8px; padding: 26px clamp(22px, 3vw, 40px); }
.og-kafel:first-child .og-kafel__tekst b { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.og-kafel:first-child .og-kafel__tekst span { font-size: 1.08rem; }

@media (max-width: 1100px) {
  .og-stolice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .og-stolica--glowna { grid-column: span 1; }
}
@media (max-width: 900px) {
  .og-azeroth, .og-pojedynek { grid-template-columns: 1fr; }
  .og-pojedynek .og-kontra { display: none; }
}
@media (max-width: 760px) {
  .og-pasy { grid-template-columns: 1fr; }
  .og-pas--przymierze { border-right: 1px solid var(--f); border-bottom: 0; border-radius: 8px 8px 0 0; }
  .og-pas--horda { flex-direction: row; text-align: left; border-left: 1px solid var(--f); border-radius: 0 0 8px 8px; }
  .og-pasy .og-kontra { left: auto; right: 16px; width: 44px; height: 44px; }
  .og-pasy .og-kontra svg { width: 22px; height: 22px; }
  /* Oś dodatków w jednej kolumnie: linia z lewej, strony podpisane słowem. */
  .og-dzieje__strony { display: none; }
  .og-dzieje__wpis { grid-template-columns: 1fr; row-gap: 6px; padding-left: 22px; }
  .og-dzieje__lista::before { left: 6px; }
  .og-dzieje__dodatek { grid-column: 1; grid-row: auto; justify-self: start; justify-items: start; text-align: left; }
  .og-dzieje__dodatek::before { content: ""; position: absolute; left: -21px; top: 50%; width: 9px; height: 9px; transform: translateY(-50%) rotate(45deg); background: var(--zloto); box-shadow: 0 0 0 1px #000; }
  .og-dzieje__p, .og-dzieje__h, .og-dzieje__wspolne { grid-column: 1; grid-row: auto; justify-self: stretch; max-width: none; text-align: left; margin-top: 0 !important; }
  .og-dzieje__p { background: linear-gradient(90deg, rgba(58, 120, 224, .24), transparent); border-right: 0; border-left: 2px solid #3a78e0; border-radius: 5px 0 0 5px; }
  .og-dzieje__kto { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-right: 4px; font-weight: 400; }
  .og-dzieje__p .og-dzieje__kto { color: #8fb8ff; }
  .og-dzieje__h .og-dzieje__kto { color: #ff8a7a; }
}
@media (max-width: 640px) {
  .og-krainy, .og-stolice, .og-strona__fakty { grid-template-columns: 1fr; }
  .og-kafel:first-child { grid-template-columns: 1fr; }
  .og-kafel:first-child .og-kafel__obraz { aspect-ratio: 16 / 7; height: auto; border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, .6); }
  .og-kafel:first-child .og-kafel__tekst { padding: 18px 22px 20px; }
  .og-glowa__krok { margin-left: 8px; }
}

/* ---------- O grze, piąta runda: mapa Azeroth, medaliony ras, scena stolic, atuty klas, opowieść „Jak zacząć” i finał ---------- */
.og-medalion--przymierze { --f: #3a78e0; --f-ciemny: #0d2350; }
.og-medalion--horda { --f: #d6382b; --f-ciemny: #3c0805; }
.og-medalion--obie { --f: #d9a830; --f-ciemny: #2c2410; }
.og-spec--obronca { --r: #6fb0ff; }
.og-spec--uzdrowiciel { --r: #6ee06a; }
.og-spec--obrazenia { --r: #ff7a70; }

/* Pasek doświadczenia działu: przyklejony do dołu ekranu jak w grze, po jednym odcinku na rozdział. */
.og-xp {
  position: fixed; z-index: 39; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 9px; padding: 2px 2px 1px;
  background: linear-gradient(180deg, #23262f, #0a0b10); border-top: 1px solid var(--zloto-stare); box-shadow: 0 -4px 14px rgba(0, 0, 0, .6); pointer-events: none;
}
.og-xp__seg { overflow: hidden; background: #05060b; border-radius: 1px; }
.og-xp__seg i { display: block; height: 100%; transform-origin: left; background: linear-gradient(180deg, #c98bff, #8a2be2 55%, #5a169c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.og-xp__seg--biezacy i { transform: scaleX(var(--p, 0)); }
.og-xp__seg--biezacy ~ .og-xp__seg i { transform: scaleX(0); }

/* Świat: stół z mapą. Obraz to mapa z tła strony, rozjaśniona filtrem; znaczniki stoją w procentach
   jej szerokości i wysokości, dlatego ramka trzyma proporcje pliku (1672 × 941). */
.og-azeroth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: start; }
.og-mapa { display: grid; gap: 12px; min-width: 0; }
.og-mapa__stol {
  position: relative; aspect-ratio: 1672 / 941; overflow: hidden; background: #050a1c; border: 1px solid rgba(201, 162, 74, .6); border-radius: 8px;
  box-shadow: 0 0 0 1px #000, 0 20px 48px rgba(0, 0, 0, .5);
}
.og-mapa__stol::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 230, 160, .12); border-radius: 8px; }
.og-mapa__obraz { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(3) saturate(1.15); }
.og-mapa__piny { position: absolute; inset: 0; z-index: 1; }
.og-pin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; text-decoration: none; color: var(--tekst); }
.og-pin__znak {
  width: 15px; height: 15px; transform: rotate(45deg); background: radial-gradient(circle at 35% 30%, #fff0a0, #e8b83a 55%, #8a5a10); border: 1px solid #2a1a04;
  box-shadow: 0 0 0 1px #000, 0 0 12px rgba(255, 209, 0, .6); transition: transform .15s ease, box-shadow .15s ease;
}
.og-pin__nazwa {
  position: absolute; top: 34px; left: 50%; transform: translateX(-50%); padding: 0 7px; white-space: nowrap; pointer-events: none;
  font-family: var(--f-tytul); font-size: .98rem; line-height: 1.5; color: var(--tekst); text-shadow: 0 1px 0 #000; background: rgba(4, 7, 15, .74); border-radius: 3px;
}
.og-pin:hover { color: #fff; }
.og-pin:hover .og-pin__znak, .og-pin[aria-current] .og-pin__znak { transform: rotate(45deg) scale(1.4); box-shadow: 0 0 0 1px #000, 0 0 22px rgba(255, 209, 0, .95); }
.og-pin[aria-current] { z-index: 2; }
.og-pin[aria-current] .og-pin__nazwa { color: #1b1003; text-shadow: none; background: linear-gradient(180deg, #ffe27a, #c98d10); }
.og-pin--teraz .og-pin__znak { background: radial-gradient(circle at 35% 30%, #f1dcff, #a335ee 55%, #4a1280); box-shadow: 0 0 0 1px #000, 0 0 14px rgba(163, 53, 238, .9); }
.og-pin--teraz:hover .og-pin__znak, .og-pin--teraz[aria-current] .og-pin__znak { box-shadow: 0 0 0 1px #000, 0 0 24px rgba(199, 125, 255, 1); }
.og-pin--teraz::before { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid #c77dff; border-radius: 50%; animation: og-fala 2.4s ease-out infinite; }
@keyframes og-fala { from { transform: scale(.8); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.og-pin--kalimdor { left: 22%; top: 50%; }
.og-pin--wschodnie-krolestwa { left: 80%; top: 62%; }
.og-pin--polnocna-gran { left: 51%; top: 24%; }
.og-pin--pandaria { left: 54.7%; top: 70%; }
.og-pin--quel-thalas { left: 84.5%; top: 29%; }
.og-pin--smocze-wyspy { left: 68%; top: 15%; }
.og-pin--khaz-algar { left: 36%; top: 82%; }
/* Znaczniki przy dolnej krawędzi mają podpis nad sobą, żeby nie wyszedł poza mapę. */
.og-pin--khaz-algar .og-pin__nazwa, .og-pin--pandaria .og-pin__nazwa { top: auto; bottom: 34px; }
.og-mapa__opisy { display: grid; gap: 10px; }
.og-zestaw--js > .og-mapa__opisy { min-height: 148px; align-content: start; }
.og-kraina {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 26px; align-items: center; padding: 14px 20px 16px; scroll-margin-top: 96px;
  background: rgba(11, 18, 38, .84); border: 1px solid rgba(201, 162, 74, .42); border-radius: 6px;
}
.og-kraina[hidden] { display: none; }
.og-zestaw--js .og-kraina:not([hidden]) { animation: og-wejscie .3s ease-out both; }
@keyframes og-wejscie { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.og-kraina--teraz { border-color: #a335ee; box-shadow: 0 0 26px rgba(163, 53, 238, .22); }
.og-kraina h3 { font-size: 1.75rem; color: var(--zloto-jasne); margin-bottom: 6px; }
.og-kraina__kiedy, .og-kraina__skad { margin: 0 0 4px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-blady); }
.og-kraina__teraz { display: inline-block; margin-right: 9px; padding: 0 8px; color: #fff; background: linear-gradient(180deg, #b455f5, #6a1fb0); border-radius: 3px; }
.og-kraina__tekst > p:last-child { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--tekst-cichy); }
.og-kraina__skad { margin-bottom: 8px; }

/* Medalion rasy: okrągły portret w barwie frakcji, pod nim nazwa. */
.og-medaliony { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 14px 6px; }
.og-medalion { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; text-decoration: none; color: var(--tekst-cichy); }
.og-medalion__portret {
  width: 60px; height: 60px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--f-ciemny); border: 2px solid var(--f);
  box-shadow: 0 0 0 1px #000, 0 0 0 4px rgba(0, 0, 0, .3), 0 5px 12px rgba(0, 0, 0, .55); transition: transform .15s ease, box-shadow .15s ease;
}
.og-medalion__portret img { width: 100%; height: 100%; object-fit: cover; }
.og-medalion__portret > span { font-family: var(--f-tytul); font-size: 1.7rem; color: color-mix(in srgb, var(--f) 50%, #fff); }
.og-medalion__nazwa { font-size: .8rem; line-height: 1.2; }
.og-medalion:hover { color: #fff; }
.og-medalion:hover .og-medalion__portret { transform: translateY(-2px) scale(1.07); box-shadow: 0 0 0 1px #000, 0 0 18px color-mix(in srgb, var(--f) 80%, transparent), 0 5px 12px rgba(0, 0, 0, .55); }
.og-medaliony--male { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.og-medaliony--male .og-medalion { max-width: 78px; }
.og-medaliony--male .og-medalion__portret { width: 48px; height: 48px; }
.og-medaliony--male .og-medalion__nazwa { font-size: .74rem; }

/* Fakty o frakcji jak tabliczki z godłem: znak w złotym pierścieniu, obok etykieta i wartość. */
.og-tabliczki { margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.og-tabliczka {
  position: relative; min-height: 60px; padding: 9px 12px 9px 62px; border-radius: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--f) 18%, rgba(4, 7, 15, .7)), rgba(4, 7, 15, .6)); border: 1px solid color-mix(in srgb, var(--f) 45%, transparent);
}
.og-tabliczka dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-blady); }
.og-tabliczka dd { margin: 0; font-size: .98rem; line-height: 1.35; color: var(--tekst); }
.og-tabliczka dd a { color: var(--zloto-jasne); }
.og-tabliczka__znak {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2c3550, #0b1020 75%); border: 1px solid var(--zloto-stare); box-shadow: 0 0 0 1px #000, 0 0 10px rgba(0, 0, 0, .5);
}
.og-tabliczka__znak svg { width: 24px; height: 24px; }
.og-tabliczka__herb { width: 22px; height: 28px; }
.og-barwy { grid-auto-flow: column; gap: 2px; }
.og-barwy i { width: 11px; height: 20px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8); }
.og-strona--przymierze .og-barwy i:first-child { background: #2f6fe0; }
.og-strona--przymierze .og-barwy i:last-child { background: #ffd100; }
.og-strona--horda .og-barwy i:first-child { background: #c92a1e; }
.og-strona--horda .og-barwy i:last-child { background: #17110f; box-shadow: 0 0 0 1px #6b6b6b; }

/* Ciekawostki na pergaminie: jedyny jasny element karty, więc od razu widać, że to coś ekstra. */
.og-czywiesz {
  margin: 18px 0 0; padding: 14px 18px 16px; color: var(--atrament); border-radius: 3px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, #f6ead0 0%, var(--pergamin) 45%, var(--pergamin-cien) 100%);
  box-shadow: 0 0 0 1px #000, inset 0 0 30px rgba(110, 66, 18, .4), 0 10px 24px rgba(0, 0, 0, .45);
}
.og-czywiesz h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--f-tytul); font-size: 1.32rem; letter-spacing: 0; text-transform: none; color: var(--atrament-tytul); }
.og-czywiesz h4 svg { flex: none; width: 22px; height: 22px; }
.og-czywiesz ul { list-style: none; margin: 0; padding: 0; }
.og-czywiesz li { position: relative; padding: 7px 0 7px 18px; font-size: .97rem; line-height: 1.5; }
.og-czywiesz li + li { border-top: 1px solid rgba(110, 66, 18, .28); }
.og-czywiesz li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; transform: rotate(45deg); background: #8a5a10; }
.og-czywiesz p { margin: 0; font-size: .97rem; line-height: 1.5; color: var(--atrament); }
.og-czywiesz b { color: var(--atrament-tytul); }

/* Dwie karty frakcji mają równą wysokość, więc pergamin rozciąga się na wolne miejsce: w krótszej karcie
   jest dłuższy, a nagłówki „Rasy…” i medaliony stoją w obu kartach na tej samej wysokości. W kolumnie
   flex marginesy się nie zlewają, stąd mniejszy odstęp nad tabliczkami. */
.og-strona__tresc { flex: 1; display: flex; flex-direction: column; }
.og-strona__tresc > .og-tabliczki { margin-top: 4px; }
.og-strona__tresc > .og-czywiesz { flex: 1 0 auto; }

/* Scena stolic: miniatury jak zakładki, pod nimi jedno miasto na całą szerokość. */
.og-miasta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.og-miasta[hidden] { display: none; }
.og-miasto {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; color: #fff; opacity: .7;
  background: var(--f-ciemny); border: 1px solid color-mix(in srgb, var(--f) 60%, #222); border-radius: 6px; box-shadow: 0 0 0 1px #000; transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
}
.og-miasto__obraz, .og-miasto__obraz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og-miasto__tekst { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 6px; padding: 24px 8px 6px; background: linear-gradient(180deg, transparent, rgba(4, 7, 15, .94)); }
.og-miasto__tekst b { font-family: var(--f-tytul); font-size: 1.04rem; line-height: 1.1; color: #fff; text-shadow: 0 1px 0 #000; }
.og-miasto__herb { width: 16px; height: 20px; }
.og-miasto:hover { color: #fff; opacity: 1; transform: translateY(-2px); }
.og-miasto[aria-current] { opacity: 1; border-color: var(--zloto); box-shadow: 0 0 0 1px #000, 0 0 20px rgba(255, 209, 0, .38); }
.og-stolica__kto { margin: 0 0 4px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.og-zestaw--js > .og-stolice { display: block; }
.og-zestaw--js .og-stolica { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 500px; border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 0 44px color-mix(in srgb, var(--f) 22%, transparent), 0 24px 60px rgba(0, 0, 0, .55); }
.og-zestaw--js .og-stolica[hidden] { display: none; }
.og-zestaw--js .og-stolica:not([hidden]) { animation: og-wejscie .35s ease-out both; }
.og-zestaw--js .og-stolica__obraz { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid #000; }
/* Kadr powoli się oddala, a pod nim przebiega złoty pasek jak na ekranie wczytywania. */
.og-zestaw--js .og-stolica:not([hidden]) .og-stolica__obraz img:not(.og-herb) { animation: og-kadr 14s ease-out both; }
.og-zestaw--js .og-stolica__obraz::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 4px; transform-origin: left; background: linear-gradient(90deg, #8a5a10, #ffd100, #fff0a0); box-shadow: 0 0 12px rgba(255, 209, 0, .6); }
.og-zestaw--js .og-stolica:not([hidden]) .og-stolica__obraz::after { animation: og-wczytaj .8s ease-out both; }
@keyframes og-kadr { from { transform: scale(1.1); } to { transform: none; } }
@keyframes og-wczytaj { from { transform: scaleX(0); } to { transform: none; } }
.og-zestaw--js .og-stolica__tresc, .og-zestaw--js .og-stolica--glowna .og-stolica__tresc { align-self: center; padding: clamp(20px, 3vw, 36px); }
.og-zestaw--js .og-stolica__tresc h3, .og-zestaw--js .og-stolica--glowna .og-stolica__tresc h3 {
  font-size: clamp(2.3rem, 4.2vw, 3.2rem); line-height: 1.02; margin-bottom: 4px;
  background: linear-gradient(180deg, #fff6c4 0%, #ffd100 50%, #c98d10 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #2a1a04);
}
.og-zestaw--js .og-stolica__tresc > p:not([class]) { font-size: 1.02rem; line-height: 1.6; }

/* Klasy: jedno zdanie „dla kogo” na górze, atuty w pasku, opis z gry ciszej, specjalizacje w zakładkach. */
.og-klasa__haslo { margin: 0 0 14px; padding: 2px 0 2px 16px; font-family: var(--f-tytul); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; color: var(--zloto-jasne); border-left: 3px solid var(--k); }
.og-atuty { margin: 0 0 14px; padding: 12px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 10px 28px; background: rgba(4, 7, 15, .5); border: 1px solid rgba(109, 115, 133, .3); border-radius: 6px; }
.og-atuty dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-blady); }
.og-atuty dd { margin: 3px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .98rem; color: var(--tekst); }
.og-atut-rola { display: inline-flex; align-items: center; gap: 5px; }
.og-atut-rola svg { flex: none; width: 22px; height: 22px; }
.og-atut-rola--obronca { color: #6fb0ff; }
.og-atut-rola--uzdrowiciel { color: #6ee06a; }
.og-atut-rola--obrazenia { color: #ff7a70; }
.og-atut-rola--brak svg { filter: grayscale(1); opacity: .25; }
.og-pancerz { display: inline-flex; gap: 3px; }
.og-pancerz i { width: 8px; height: 14px; border-radius: 2px; background: rgba(127, 135, 156, .22); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.og-pancerz i.jest { background: linear-gradient(180deg, #eef2fb, #8d97ad); }
.og-klasa .og-klasa__opis { margin-bottom: 4px; font-size: .98rem; color: var(--tekst-cichy); }
.og-specy__zakladki { display: flex; flex-wrap: wrap; gap: 6px; }
.og-specy__zakladki[hidden] { display: none; }
.og-specy__zakladka {
  flex: 1 1 150px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; text-align: left; font: inherit; color: var(--tekst-cichy); cursor: pointer;
  background: linear-gradient(180deg, #1b2032, #0c0f1a); border: 1px solid rgba(109, 115, 133, .45); border-radius: 6px 6px 0 0; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.og-specy__zakladka svg { flex: none; width: 28px; height: 28px; }
.og-specy__zakladka span { display: grid; line-height: 1.2; }
.og-specy__zakladka b { font-size: 1.04rem; color: var(--tekst); }
.og-specy__zakladka small { font-size: .78rem; color: var(--r); }
.og-specy__zakladka:hover { border-color: var(--r); }
.og-specy__zakladka[aria-selected="true"] { border-color: var(--r); border-bottom-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--r) 28%, #10131f), rgba(4, 7, 15, .6)); box-shadow: inset 0 2px 0 var(--r); }
.og-specy__zakladka[aria-selected="true"] b { color: #fff; }
.og-specy--js .og-specy__lista { display: block; }
.og-specy--js .og-spec { min-height: 124px; padding: 16px 18px; border-color: color-mix(in srgb, var(--r) 55%, transparent); border-top: 0; border-radius: 0 0 6px 6px; }
.og-specy--js .og-spec[hidden] { display: none; }
.og-specy--js .og-spec:not([hidden]) { animation: og-wejscie .25s ease-out both; }
/* Rolę i zasięg widać już na zakładce, więc w opisie zostaje nazwa (z angielską) i tekst z gry. */
.og-specy--js .og-spec__ikona, .og-specy--js .og-spec__rola { display: none; }
.og-specy--js .og-spec .og-spec__opis { font-size: 1rem; line-height: 1.55; color: var(--tekst); }
.og-spec__bron { display: flex; align-items: flex-start; gap: 7px; }
.og-spec__bron svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* Jak zacząć: opowieść w trzech aktach. Numeracja kroków biegnie przez wszystkie trzy listy. */
.og-story { counter-reset: krok; }
.og-story .og-lancuch { counter-reset: none; }
.og-akt-tytul { display: flex; align-items: center; gap: 12px; margin: 34px 0 8px; font-family: var(--f-tytul); font-size: 1.55rem; line-height: 1.1; color: var(--tekst); }
.og-akt-tytul span { padding: 2px 10px 1px; font-family: var(--f-tekst); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #1b1003; background: linear-gradient(180deg, #ffe27a, #c98d10); border-radius: 3px; }
.og-akt-tytul::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--zloto-stare), transparent); opacity: .5; }
.og-story .sekcja__glowa + .og-akt-tytul { margin-top: 6px; }
.og-krok { scroll-margin-top: 96px; }
.og-lancuch > .og-krok--biezacy { background: rgba(255, 209, 0, .045); }
.og-lancuch > .og-krok--biezacy::before { box-shadow: 0 0 0 2px #2a1a04, 0 0 26px rgba(255, 209, 0, .75); }
.og-lancuch > .og-krok--nasz { background: linear-gradient(135deg, rgba(255, 209, 0, .08), rgba(11, 18, 38, .55)); box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .45); }
.og-lancuch .og-krok__lead { font-size: 1.08rem; color: var(--tekst); }
.og-znaczki { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.og-znaczek { padding: 1px 11px; font-size: .84rem; line-height: 1.6; color: var(--tekst); background: rgba(4, 7, 15, .6); border: 1px solid rgba(127, 135, 156, .45); border-radius: 999px; }
.og-znaczek--zielony { color: var(--q-niezwykla); border-color: rgba(30, 255, 0, .45); }
.og-znaczek--zloty { color: var(--zloto); border-color: rgba(201, 162, 74, .6); }
.og-wskazowka--tarcza { display: flex; align-items: flex-start; gap: 10px; }
.og-wskazowka--tarcza svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.og-wiecej { margin-top: 8px; }
.og-wiecej summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: .96rem; color: var(--zloto); }
.og-wiecej summary::-webkit-details-marker { display: none; }
.og-wiecej summary::before { content: "+"; width: 18px; height: 18px; display: grid; place-items: center; font-size: .85rem; border: 1px solid var(--zloto-stare); border-radius: 3px; background: linear-gradient(180deg, #2a2f3d, #171a24); }
.og-wiecej[open] summary::before { content: "−"; }
.og-wiecej[open] summary { margin-bottom: 10px; }
.og-wiecej summary:hover { color: var(--zloto-jasne); }
/* Pasek poziomów 1–90: trzy odcinki o szerokości proporcjonalnej do liczby poziomów. */
.og-poziomy { margin: 4px 0 12px; }
.og-poziomy__pasek { display: grid; grid-template-columns: 20fr 60fr 10fr; gap: 2px; height: 18px; padding: 2px; background: #05070e; border: 1px solid var(--zloto-stare); border-radius: 4px; box-shadow: 0 0 0 1px #000; }
.og-poziomy__pasek i { border-radius: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--q) 80%, #fff), color-mix(in srgb, var(--q) 70%, #000)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.og-poziomy__skala { position: relative; height: 22px; font-size: .82rem; font-variant-numeric: lining-nums; color: var(--tekst-blady); }
.og-poziomy__skala span { position: absolute; top: 3px; transform: translateX(-50%); }
.og-poziomy__skala span:nth-child(1) { left: 0; transform: none; }
.og-poziomy__skala span:nth-child(2) { left: 22.2%; }
.og-poziomy__skala span:nth-child(3) { left: 88.9%; }
.og-poziomy__skala span:nth-child(4) { left: auto; right: 0; transform: none; }
.og-drogi--trzy { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.og-drogi--trzy .og-droga b { display: block; margin: 0; }
.og-drogi--trzy .og-droga small { display: block; line-height: 1.3; }
.og-rownanie { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 6px 0 12px; }
.og-rownanie__klocek { flex: 1 1 120px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 12px 10px; text-align: center; background: rgba(4, 7, 15, .65); border: 1px solid rgba(127, 135, 156, .4); border-radius: 6px; }
.og-rownanie__klocek svg { width: 30px; height: 30px; margin-bottom: 4px; }
.og-rownanie__klocek b { font-size: 1.05rem; line-height: 1.2; color: #fff; }
.og-rownanie__klocek small { font-size: .82rem; line-height: 1.25; color: var(--tekst-blady); }
.og-rownanie__klocek--wynik { border-color: var(--zloto); background: linear-gradient(180deg, rgba(255, 209, 0, .15), rgba(4, 7, 15, .65)); box-shadow: 0 0 18px rgba(255, 209, 0, .16); }
.og-rownanie__klocek--wynik b { color: var(--zloto); }
.og-rownanie__znak { align-self: center; font-family: var(--f-tytul); font-size: 1.8rem; line-height: 1; color: var(--zloto-stare); }
.og-wybory { display: flex; align-items: stretch; gap: 6px; margin: 6px 0 10px; }
.og-wybory__kafel {
  flex: 1 1 0; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 14px 10px; text-align: center; text-decoration: none; color: var(--tekst);
  background: linear-gradient(180deg, rgba(13, 20, 46, .95), rgba(4, 7, 22, .95)); border: 1px solid rgba(201, 162, 74, .45); border-radius: 6px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.og-wybory__kafel svg { width: 32px; height: 32px; margin-bottom: 2px; }
.og-wybory__kafel b { font-family: var(--f-tytul); font-size: 1.35rem; line-height: 1.1; color: var(--zloto); }
.og-wybory__kafel small { font-size: .82rem; line-height: 1.25; color: var(--tekst-blady); }
.og-wybory__kafel:hover { color: var(--tekst); border-color: var(--zloto); transform: translateY(-2px); box-shadow: 0 0 18px rgba(255, 209, 0, .2); }
.og-wybory__strzalka { flex: none; align-self: center; width: 22px; height: 22px; color: var(--zloto-stare); }
/* Dziennik zadania: cele to odnośniki do kroków; bieżący jest ciemniejszy, zrobione dostają zielony znaczek. */
.og-cele a { color: inherit; text-decoration: none; }
.og-cele a:hover { text-decoration: underline; }
.og-cele .og-cel--biezacy { color: var(--atrament-tytul); font-weight: 600; }
.og-karta-startu .zadanie__pasek .pytajnik { display: none; }
.og-karta-startu.ukonczone .zadanie__pasek .pytajnik { display: block; }
.og-karta-startu.ukonczone { box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0, 0, 0, .65), 0 0 60px rgba(255, 209, 0, .28); }

/* Na 90 poziomie: komunikat o osiągnięciu, cztery ścieżki, rytm tygodnia i ukończone zadanie na koniec. */
.og-osiagniecie {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; width: min(100%, 640px); margin: 0 auto clamp(30px, 4vw, 48px); padding: 14px 20px 14px 14px;
  background: linear-gradient(180deg, #2b2416, #0f0c06); border: 2px solid transparent; border-image: linear-gradient(160deg, #e3c070, #7a5a2c 30%, #d4ad5a 55%, #5e4220 80%, #c9a24a) 1;
  box-shadow: 0 0 0 1px #000, 0 0 50px rgba(255, 196, 70, .22), 0 18px 46px rgba(0, 0, 0, .55); animation: og-toast .8s cubic-bezier(.2, .8, .2, 1) both;
}
.og-osiagniecie::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 240, 160, .24) 50%, transparent 60%); transform: translateX(-100%); animation: og-blysk 1.6s ease-out .7s both; }
@keyframes og-toast { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes og-blysk { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.og-osiagniecie__tarcza { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a5a7e, #141a2e 75%); border: 2px solid var(--zloto); box-shadow: 0 0 0 1px #000, 0 0 18px rgba(255, 209, 0, .4); }
.og-osiagniecie__tarcza svg { width: 38px; height: 38px; }
.og-osiagniecie__tekst { flex: 1; min-width: 0; margin: 0; display: grid; gap: 1px; }
.og-osiagniecie__tekst small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zloto-stare); }
.og-osiagniecie__tekst b { font-family: var(--f-tytul); font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.05; color: var(--zloto); text-shadow: 0 2px 0 #000; }
.og-osiagniecie__tekst span { font-size: .98rem; line-height: 1.4; color: var(--tekst-cichy); }
.og-osiagniecie__punkty { flex: none; width: 54px; height: 62px; display: grid; place-items: center; padding-bottom: 8px; font-family: var(--f-tytul); font-size: 1.55rem; color: #fff0a0; text-shadow: 0 1px 0 #000; background: linear-gradient(180deg, #a8720a, #3e2c14); clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); }
.og-sciezki { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.og-sciezka {
  --s: var(--zloto); display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 12px; border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--s) 13%, rgba(11, 18, 38, .86)), rgba(4, 7, 15, .6) 72%); border: 1px solid color-mix(in srgb, var(--s) 45%, transparent); border-top: 3px solid var(--s);
}
.og-sciezka--druzyna { --s: #e8352a; }
.og-sciezka--solo { --s: #3fd13a; }
.og-sciezka--swiat { --s: #2a8cf0; }
.og-sciezka--zbior { --s: #c77dff; }
.og-sciezka__glowa { margin: 0 0 4px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
.og-sciezka__glowa svg { grid-row: span 2; width: 34px; height: 34px; }
.og-sciezka__glowa b { font-family: var(--f-tytul); font-size: 1.45rem; line-height: 1.1; color: #fff; text-shadow: 0 1px 0 #000; }
.og-sciezka__glowa span { font-size: .88rem; line-height: 1.3; color: var(--tekst-cichy); }
.og-tydzien { list-style: none; margin: 0 auto; padding: 0; max-width: 62rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 46px; }
.og-tydzien li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 22px 18px; text-align: center; background: rgba(11, 18, 38, .82); border: 1px solid rgba(201, 162, 74, .35); border-radius: 8px; }
.og-tydzien li + li::before { content: ""; position: absolute; left: -31px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-top: 2px solid var(--zloto-stare); border-right: 2px solid var(--zloto-stare); transform: rotate(45deg); }
.og-tydzien li:last-child { border-color: var(--q-legendarna); box-shadow: 0 0 34px rgba(255, 128, 0, .18); }
.og-tydzien .ikona { width: 56px; height: 56px; }
.og-tydzien .ikona svg { width: 34px; height: 34px; }
.og-tydzien h3 { font-size: 1.45rem; color: var(--zloto-jasne); }
.og-tydzien p { margin: 0; font-size: .96rem; line-height: 1.5; color: var(--tekst-cichy); }
.og-final { width: min(100%, 720px); text-align: left; box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0, 0, 0, .65), 0 0 90px rgba(255, 209, 0, .16); }
.og-final__cele { columns: 2; column-gap: 30px; }
.og-final__cele li { break-inside: avoid; }
.og-final .zadanie__pasek span:not(.pytajnik) { display: inline; }

@media (max-width: 1100px) {
  .og-sciezki { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .og-atuty { grid-template-columns: repeat(2, minmax(0, auto)); }
}
@media (max-width: 900px) {
  .og-azeroth { grid-template-columns: 1fr; }
  .og-miasta { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .og-zestaw--js .og-stolica { grid-template-columns: 1fr; min-height: 0; }
  .og-zestaw--js .og-stolica__obraz { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid #000; }
}
@media (max-width: 760px) {
  .og-tydzien { grid-template-columns: 1fr; gap: 40px; }
  .og-tydzien li + li::before { left: 50%; top: -27px; margin: 0 0 0 -7px; transform: rotate(135deg); }
}
@media (max-width: 640px) {
  .og-tabliczki, .og-drogi--trzy, .og-sciezki { grid-template-columns: 1fr; }
  .og-kraina { grid-template-columns: 1fr; }
  /* Na wąskiej mapie podpisy nachodziłyby na siebie: zostaje podpis wybranej krainy, reszta jest w opisie pod mapą. */
  .og-zestaw--js .og-pin:not([aria-current]) .og-pin__nazwa { display: none; }
  .og-wybory { flex-direction: column; }
  .og-wybory__strzalka { transform: rotate(90deg); }
  .og-rownanie__znak { flex: 1 1 100%; text-align: center; }
  .og-final__cele { columns: 1; }
  .og-osiagniecie__punkty { display: none; }
}

/* ---------- O grze, szósta runda: dymki ze słowniczka, znak rozpoznawczy rasy, rady jak rozmowa z NPC ---------- */
/* Słowo ze słowniczka w tekście rozdziału: kropkowane podkreślenie, po najechaniu dymek jak podpowiedź
   przedmiotu w grze (rysuje go main.js), kliknięcie prowadzi do hasła. */
.og-termin { color: inherit; text-decoration: underline dotted var(--zloto-stare); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; }
.og-termin:hover, .og-termin:focus-visible { color: var(--zloto-jasne); text-decoration-color: var(--zloto); }
b > .og-termin { color: var(--zloto-jasne); }
.og-dymek { position: absolute; z-index: 60; left: 0; top: 0; width: max-content; max-width: min(300px, calc(100vw - 24px)); padding: 10px 13px 11px; pointer-events: none; font-size: .92rem; line-height: 1.45; animation: zjazd .15s ease both; }
.og-dymek[hidden] { display: none; }
.og-dymek p { margin: 0; }
.og-dymek .og-dymek__haslo { font-family: var(--f-tytul); font-size: 1.2rem; line-height: 1.2; color: var(--zloto); }
.og-dymek .og-dymek__opis { color: #fff; }
.og-dymek .uzyj { margin-top: 5px; font-size: .86rem; }
/* Hasło, do którego prowadzi dymek, świeci po wejściu na stronę słowniczka. */
.og-haslo { scroll-margin-top: 96px; }
.og-haslo:target { margin: 0 -12px; padding-left: 12px; padding-right: 12px; background: rgba(255, 209, 0, .08); border-radius: 5px; box-shadow: inset 0 0 0 1px var(--zloto-stare); }

/* Znak rozpoznawczy rasy: ten sam pergamin co przy frakcjach, tylko mniejszy. */
/* Karty w rzędzie mają równą wysokość, a opisy różną długość: lista klas trzyma się dołu karty,
   żeby chipy w całym rzędzie stały na jednej linii. */
.og-rasa__tresc { flex: 1; display: flex; flex-direction: column; }
.og-rasa__tresc > .og-rasa__klasy-tytul { margin-top: auto !important; padding-top: 12px; }
.og-rasa__tresc > .og-czywiesz { margin: 6px 0 2px; padding: 11px 14px 12px; }
.og-rasa__tresc > .og-czywiesz h4 { margin-bottom: 4px; font-size: 1.14rem; }
/* Wspólne rzędy dla kart w jednym wierszu siatki (subgrid): nazwa, nazwa angielska, dom, opis,
   uwaga, pergamin, nagłówek klas i chipy. Każdy z tych elementów zaczyna się w całym wierszu na tej
   samej wysokości, a pergamin jest wszędzie tak samo wysoki, bez względu na długość opisu i ciekawostki.
   Przeglądarka bez subgrid zostaje przy układzie wyżej (kolumna flex, lista klas przy dole karty). */
@supports (grid-template-rows: subgrid) {
  .og-rasa { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0; }
  .og-rasa__tresc { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .og-rasa__tresc > h3 { grid-row: 1; }
  .og-rasa__tresc > .og-rasa__en { grid-row: 2; }
  .og-rasa__tresc > .og-rasa__dom { grid-row: 3; }
  .og-rasa__tresc > p:not([class]) { grid-row: 4; }
  .og-rasa__tresc > .og-rasa__uwaga { grid-row: 5; align-self: start; }
  .og-rasa__tresc > .og-czywiesz { grid-row: 6; }
  .og-rasa__tresc > .og-rasa__klasy-tytul { grid-row: 7; }
  .og-rasa__tresc > .og-chipy { grid-row: 8; align-self: start; }
}
.og-rasa__tresc > .og-czywiesz h4 svg { width: 19px; height: 19px; }
.og-rasa__tresc > .og-czywiesz p { font-size: .92rem; line-height: 1.5; }

/* Rady jak rozmowa z postacią w grze: pytanie ma dymek rozmowy (jak opcja dialogu),
   a odpowiedź stoi w ramce, z ogonkiem wskazującym pytanie. */
.og-pytania .pytanie summary::before {
  content: ""; width: 24px; height: 24px; border: 0; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4.5h16a1.5 1.5 0 0 1 1.5 1.5v9a1.5 1.5 0 0 1-1.5 1.5h-8.2L7 20.5v-4H4A1.5 1.5 0 0 1 2.5 15V6A1.5 1.5 0 0 1 4 4.5z' fill='%231d2233' stroke='%23c9a24a' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M7 9h10M7 12h6' stroke='%23c9a24a' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.og-pytania .pytanie[open] summary::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4.5h16a1.5 1.5 0 0 1 1.5 1.5v9a1.5 1.5 0 0 1-1.5 1.5h-8.2L7 20.5v-4H4A1.5 1.5 0 0 1 2.5 15V6A1.5 1.5 0 0 1 4 4.5z' fill='%23ffd100' stroke='%233a2200' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M7 9h10M7 12h6' stroke='%233a2200' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.og-pytania .pytanie[open] summary { color: var(--zloto-jasne); }
.og-pytania .pytanie p {
  position: relative; margin: 2px 0 18px 36px; padding: 12px 16px 13px; color: var(--tekst);
  background: linear-gradient(180deg, rgba(20, 26, 46, .92), rgba(8, 11, 22, .92)); border: 1px solid rgba(201, 162, 74, .45); border-radius: 0 8px 8px 8px; box-shadow: 0 0 0 1px #000, 0 8px 20px rgba(0, 0, 0, .35);
}
.og-pytania .pytanie p::before { content: ""; position: absolute; left: -1px; top: -9px; width: 14px; height: 9px; background: rgba(201, 162, 74, .7); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.og-pytania .pytanie[open] p { animation: og-wejscie .25s ease-out both; }
