/* =====================================================================
   PandrionMT2 — portal Metin2 Classic+ · Etap 6 (redesign)
   Grafit, czerń, głęboki brąz, stare złoto, piaskowy beż, akcenty czerwieni.
   ===================================================================== */
:root {
  --black: #070605;
  --graphite: #121110;
  --graphite-2: #1a1816;
  --bronze-d: #2a1b10;
  --bronze: #4a3220;
  --bronze-l: #6e4c2c;
  --gold: #c9a24d;
  --gold-hi: #f1d79a;
  --gold-lo: #7c5a24;
  --sand: #d8c7a3;
  --sand-d: #a99878;
  --text: #e4d6b8;
  --muted: #9d8f76;
  --red: #8f2a1c;
  --red-hi: #c8432e;
  --ok: #8ccf74;
  --bad: #e47a64;
  --wait: #e0b25c;
  --wrap: 1680px;
  --side: 340px;
  --gap: 28px;
  --font-h: "Trajan Pro", "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-b: "Segoe UI", Tahoma, Verdana, system-ui, sans-serif;
  --tex-stone: url("/static/img/art/tex-stone.webp");
  --tex-wood: url("/static/img/art/tex-wood.webp");
  --tex-parch: url("/static/img/art/tex-parchment.webp");
  --c-tl: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><path d='M3 41V12L12 3h29' fill='none' stroke='%23d9b264' stroke-width='2.4'/><path d='M9 36V15l6-6h21' fill='none' stroke='%237c5a24' stroke-width='1.2'/><path d='M3 12L12 3l4 4-9 9z' fill='%23f1d79a'/><circle cx='20' cy='20' r='2.2' fill='%23c9a24d'/></svg>");
  --c-tr: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><g transform='rotate(90 22 22)'><path d='M3 41V12L12 3h29' fill='none' stroke='%23d9b264' stroke-width='2.4'/><path d='M9 36V15l6-6h21' fill='none' stroke='%237c5a24' stroke-width='1.2'/><path d='M3 12L12 3l4 4-9 9z' fill='%23f1d79a'/><circle cx='20' cy='20' r='2.2' fill='%23c9a24d'/></g></svg>");
  --c-br: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><g transform='rotate(180 22 22)'><path d='M3 41V12L12 3h29' fill='none' stroke='%23d9b264' stroke-width='2.4'/><path d='M9 36V15l6-6h21' fill='none' stroke='%237c5a24' stroke-width='1.2'/><path d='M3 12L12 3l4 4-9 9z' fill='%23f1d79a'/><circle cx='20' cy='20' r='2.2' fill='%23c9a24d'/></g></svg>");
  --c-bl: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><g transform='rotate(270 22 22)'><path d='M3 41V12L12 3h29' fill='none' stroke='%23d9b264' stroke-width='2.4'/><path d='M9 36V15l6-6h21' fill='none' stroke='%237c5a24' stroke-width='1.2'/><path d='M3 12L12 3l4 4-9 9z' fill='%23f1d79a'/><circle cx='20' cy='20' r='2.2' fill='%23c9a24d'/></g></svg>");
  --divider: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16'><path d='M0 8h96M144 8h96' stroke='%237c5a24' stroke-width='1.5'/><path d='M104 8l8-6 8 6-8 6z M120 8l8-6 8 6-8 6z' fill='%23c9a24d'/><circle cx='100' cy='8' r='2' fill='%23c9a24d'/><circle cx='140' cy='8' r='2' fill='%23c9a24d'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  font: 16px/1.65 var(--font-b); color: var(--text);
  background: var(--black) url("/static/img/art/bg-page.webp") center top / cover fixed;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: rgba(201,162,77,.45); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 12px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 200; background: var(--gold); color: #000; padding: 10px 16px; }
.hp { position: absolute; left: -9999px; }
.muted, .note { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.on { color: var(--ok) !important; } .off { color: var(--bad) !important; }

/* ============================ NAWIGACJA ============================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(rgba(36,24,15,.97), rgba(14,10,7,.97)), var(--tex-wood);
  border-bottom: 1px solid var(--gold-lo);
  box-shadow: 0 1px 0 #000, 0 3px 0 rgba(201,162,77,.25), 0 10px 30px rgba(0,0,0,.7);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent); opacity: .55; }
.topbar__in { width: min(var(--wrap), 100% - 48px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.8)); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-h); }
.brand__a { font-size: 26px; letter-spacing: .2em; color: var(--gold-hi); text-shadow: 0 2px 0 #000, 0 0 14px rgba(201,162,77,.35); }
.brand__b { font-size: 11px; letter-spacing: .42em; color: var(--red-hi); font-weight: 700; margin-top: 5px; }
.nav { display: flex; align-items: stretch; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; padding: 0 18px; min-height: 48px;
  color: var(--sand); text-decoration: none; font: 700 13px var(--font-h); letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s, background .2s;
}
.nav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hi); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav__cta { margin-left: 10px; color: #fff3df; background: linear-gradient(#a8362a, #6b1a12); border: 1px solid var(--gold); box-shadow: inset 0 1px 0 rgba(255,220,180,.35), 0 3px 10px rgba(0,0,0,.6); }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { color: #fff; filter: brightness(1.15); }
.navtoggle { display: none; }

/* ============================ PRZYCISKI ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; text-align: center;
  min-height: 46px; padding: 0 28px; font: 700 13px var(--font-h); letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand); background: linear-gradient(#4c3422, #24170d); border: 1px solid var(--gold-lo); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(241,215,154,.28), inset 0 -3px 0 rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.55);
  transition: transform .15s, filter .2s, box-shadow .2s;
}
.btn:hover { color: var(--gold-hi); filter: brightness(1.18); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--gold { color: #2a1604; text-shadow: 0 1px 0 rgba(255,236,190,.6); background: linear-gradient(#f6e0a4, #d5aa55 45%, #a2742c 100%); border-color: #f6e0a4; }
.btn--gold:hover { color: #160b01; box-shadow: inset 0 1px 0 #fff3cf, 0 0 22px rgba(241,215,154,.45), 0 4px 12px rgba(0,0,0,.6); }
.btn--red { color: #fff3df; text-shadow: 0 1px 0 #000; background: linear-gradient(#c24a33, #8f2a1c 50%, #5c140c); border-color: var(--gold); }
.btn--red:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255,210,180,.5), 0 0 22px rgba(200,67,46,.5), 0 4px 12px rgba(0,0,0,.6); }
.btn--xl { min-height: 58px; padding: 0 40px; font-size: 15px; }
.btn--small { min-height: 38px; padding: 0 18px; font-size: 12px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.5); transform: none; }

/* ============================ HERO ============================ */
.hero { position: relative; min-height: clamp(600px, 88vh, 1040px); display: grid; place-items: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--gold-lo); }
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__img { object-fit: cover; object-position: 50% 60%; animation: heroZoom 30s ease-out both; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 55% at 50% 48%, rgba(7,6,5,.55), rgba(7,6,5,0) 70%),
  linear-gradient(rgba(7,6,5,.35), rgba(7,6,5,0) 22%, rgba(7,6,5,0) 58%, rgba(7,6,5,.92) 92%, var(--black)); }
.hero__in { text-align: center; padding: 60px 24px 140px; width: min(1760px, 100%); }
.hero__eyebrow { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 18px; font: 700 13px var(--font-h); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 2px 6px #000; }
.hero__eyebrow span + span::before { content: "◆"; margin-right: 22px; color: var(--red-hi); font-size: 10px; vertical-align: 2px; }
.hero__title { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .18em; font-size: clamp(50px, 8vw, 176px); letter-spacing: .08em; line-height: .95; }
.hero__a { background: linear-gradient(#fff6d8 10%, #f1d79a 38%, #c9a24d 62%, #7c5a24 96%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 30px rgba(201,162,77,.45)); }
.hero__b { color: var(--red-hi); text-shadow: 0 4px 0 #000, 0 0 34px rgba(200,67,46,.65); }
.hero__lead { margin: 22px auto 34px; max-width: 760px; font: italic 400 clamp(19px, 1.9vw, 27px)/1.4 var(--font-h); color: var(--sand); text-shadow: 0 2px 8px #000, 0 0 2px #000; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.hero__meta { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 38px 0 0; padding: 0; }
.hero__meta li { display: flex; flex-direction: column; min-width: 170px; padding: 10px 20px; background: rgba(10,8,6,.72); border: 1px solid var(--gold-lo); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.hero__meta b { font: 700 11px var(--font-h); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.hero__meta span { color: var(--sand); font-size: 15px; }
.hero__scroll { position: absolute; bottom: 92px; left: 50%; width: 30px; height: 46px; margin-left: -15px; border: 2px solid var(--gold); border-radius: 16px; opacity: .8; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; background: var(--gold-hi); border-radius: 2px; animation: scrollDot 2s infinite; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ============================ RAMKI (panele) ============================ */
.frame {
  position: relative; margin: 0 0 var(--gap);
  background: linear-gradient(rgba(26,22,19,.93), rgba(13,11,9,.96)), var(--tex-stone);
  border: 1px solid var(--bronze-l);
  box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--gold-lo), 0 18px 40px rgba(0,0,0,.65), inset 0 0 60px rgba(0,0,0,.6);
}
.frame::before { content: ""; position: absolute; inset: -9px; pointer-events: none; z-index: 2;
  background: var(--c-tl) top left / 44px no-repeat, var(--c-tr) top right / 44px no-repeat, var(--c-br) bottom right / 44px no-repeat, var(--c-bl) bottom left / 44px no-repeat; }
.frame__head { position: relative; padding: 16px 24px 14px; text-align: center;
  background: linear-gradient(rgba(74,50,32,.88), rgba(36,23,13,.94)), var(--tex-wood);
  border-bottom: 1px solid var(--gold-lo); box-shadow: inset 0 1px 0 rgba(241,215,154,.22), 0 2px 0 rgba(0,0,0,.6); }
.frame__title { font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 2px 0 #000; }
.frame__head::after { content: ""; display: block; height: 12px; margin: 8px auto -4px; width: 160px; background: var(--divider) center / contain no-repeat; opacity: .85; }
.frame__body { padding: 22px 24px 24px; }
.frame--big .frame__body { padding: 30px 34px 34px; }
.frame__foot { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.frame__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.frame__link { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(124,90,36,.4); text-align: center; font: 700 12px var(--font-h); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.frame__link::after { content: " ›"; }

/* nagłówki sekcji */
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--gold-lo); position: relative; }
.sechead::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 180px; height: 13px; background: var(--divider) left center / contain no-repeat; }
.sechead__title { font-size: clamp(26px, 2.4vw, 40px); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 3px 0 #000, 0 0 24px rgba(201,162,77,.25); }
.sechead__more { font: 700 13px var(--font-h); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.sechead__more::after { content: " ›"; }
.sechead--center { flex-direction: column; align-items: center; text-align: center; border: 0; }
.sechead--center::after { left: 50%; margin-left: -90px; bottom: -4px; }
.sechead__sub { color: var(--sand-d); margin: 4px 0 0; font-size: 17px; }

/* ============================ PORTAL (3 kolumny) ============================ */
.portal { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--side); gap: var(--gap) 34px; margin-top: -70px; position: relative; z-index: 3; padding-bottom: 40px; align-items: start; }
.portal--two { grid-template-columns: minmax(0, 1fr) var(--side); margin-top: 40px; }
.portal__main { min-width: 0; }
.portal__main > .sechead { padding-top: 6px; }
.is-home .portal__main { background: linear-gradient(rgba(13,11,9,.88), rgba(13,11,9,.94)); padding: 28px 30px 30px; border: 1px solid var(--bronze-l); box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--gold-lo), 0 18px 40px rgba(0,0,0,.65); }

/* statusy */
.status { list-style: none; margin: 0; padding: 0; }
.status li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(124,90,36,.45); }
.status li span { color: var(--muted); }
.status li b { color: var(--sand); text-align: right; }
.led { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.led::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.led--on { color: var(--ok) !important; } .led--off { color: var(--bad) !important; }
.led--wait { color: var(--wait) !important; } .led--wait::before { animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.notice { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--red-hi); background: rgba(143,42,28,.18); }
.welcome { text-align: center; font-size: 17px; }

/* oczekiwanie na integrację */
.pending { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border: 1px solid var(--gold-lo); background: linear-gradient(rgba(42,27,16,.6), rgba(10,8,6,.7)); box-shadow: inset 0 0 30px rgba(0,0,0,.5); }
.pending__icon { flex: 0 0 44px; height: 44px; border: 2px solid var(--gold); transform: rotate(45deg); position: relative; box-shadow: 0 0 14px rgba(201,162,77,.35); }
.pending__icon::after { content: ""; position: absolute; inset: 9px; background: var(--gold); animation: pulse 2.2s infinite; }
.pending strong { display: block; color: var(--gold-hi); font-family: var(--font-h); letter-spacing: .06em; font-size: 16px; margin-bottom: 2px; }
.pending p { color: var(--muted); font-size: 14px; margin: 0; }
.pending--compact { padding: 14px; gap: 12px; }
.pending--compact .pending__icon { flex-basis: 26px; height: 26px; }
.pending--compact .pending__icon::after { inset: 6px; }
.pending--compact strong { font-size: 14px; }
.pending--compact p { font-size: 12.5px; }

/* mini ranking */
.mini { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.mini li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(124,90,36,.3); }
.mini__pos { display: grid; place-items: center; width: 30px; height: 30px; font: 700 13px var(--font-h); color: var(--sand); background: var(--bronze-d); border: 1px solid var(--gold-lo); transform: rotate(45deg); }
.mini__pos { transform: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.mini--1 .mini__pos { background: linear-gradient(#ffe48a, #c99a2e); color: #2a1604; }
.mini--2 .mini__pos { background: linear-gradient(#f0f2f4, #9aa3ab); color: #1a1a1a; }
.mini--3 .mini__pos { background: linear-gradient(#f0a868, #9a5a26); color: #2a1004; }
.mini__name { color: var(--sand); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__val { color: var(--gold); font-size: 13px; }

/* ============================ KARTY AKTUALNOŚCI ============================ */
.tag { display: inline-block; padding: 3px 10px; font: 700 11px var(--font-h); letter-spacing: .18em; text-transform: uppercase; color: #2a1604; background: linear-gradient(#f1d79a, #c9a24d); }
.tag--red { color: #fff3df; background: linear-gradient(#c24a33, #8f2a1c); }
.ncard { position: relative; display: flex; flex-direction: column; background: linear-gradient(rgba(26,22,19,.95), rgba(13,11,9,.98)); border: 1px solid var(--bronze-l); box-shadow: 0 0 0 3px rgba(7,6,5,.9), 0 0 0 4px rgba(124,90,36,.7), 0 14px 30px rgba(0,0,0,.55); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.ncard:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px rgba(7,6,5,.9), 0 0 0 4px var(--gold), 0 18px 38px rgba(0,0,0,.65), 0 0 30px rgba(201,162,77,.18); }
.ncard__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-bottom: 2px solid var(--gold-lo); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ncard:hover .ncard__media img { transform: scale(1.06); }
.ncard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ncard__body .btn { align-self: flex-start; margin-top: auto; }
.ncard__meta { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.ncard__meta time::before { content: "◈ "; color: var(--gold-lo); }
.ncard__title { font-size: 22px; letter-spacing: .03em; margin-bottom: 8px; }
.ncard__title a { color: var(--gold-hi); text-decoration: none; }
.ncard__title a:hover { color: #fff; }
.ncard--lead { margin-bottom: var(--gap); }
.ncard--lead .ncard__media { aspect-ratio: 21 / 9; }
.ncard--lead .ncard__title { font-size: clamp(26px, 2.4vw, 38px); }
.ncard--lead .ncard__body { padding: 26px 32px 32px; font-size: 17px; }
.ncard--row { flex-direction: row; margin-bottom: var(--gap); }
.ncard--row .ncard__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: 2px solid var(--gold-lo); }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }

/* ============================ PASY SEKCJI ============================ */
.band { position: relative; padding: 90px 0; isolation: isolate; }
.band--classes { background: linear-gradient(var(--black), rgba(18,13,10,.9) 18%, rgba(18,13,10,.9) 82%, var(--black)), var(--tex-stone); }
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 38px; }
.ccard { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--gold-lo); box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--bronze-l), 0 20px 44px rgba(0,0,0,.7); transition: transform .35s, box-shadow .35s; }
.ccard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; filter: saturate(.9); }
.ccard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(7,6,5,.75) 70%, rgba(7,6,5,.97)); }
.ccard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px 26px 28px; text-align: center; }
.ccard h3 { font-size: clamp(24px, 2.2vw, 36px); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 3px 0 #000; margin-bottom: 8px; }
.ccard p { color: var(--sand); font-size: 15px; margin: 0; }
.ccard:hover { transform: translateY(-6px); }
.ccard:hover img { transform: scale(1.06); filter: saturate(1.15); }
.ccard--warrior:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #d24a32, 0 0 40px rgba(210,74,50,.45); }
.ccard--ninja:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #4fb46c, 0 0 40px rgba(79,180,108,.4); }
.ccard--sura:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #a04ad2, 0 0 40px rgba(160,74,210,.45); }
.ccard--shaman:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #4a9ae0, 0 0 40px rgba(74,154,224,.45); }

.band--features { background: linear-gradient(rgba(7,6,5,.86), rgba(7,6,5,.94)), var(--tex-wood); border-block: 1px solid var(--gold-lo); }
.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 60px; align-items: center; }
.features__intro p { font-size: 18px; color: var(--sand); margin-top: 18px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 14px 24px; background: linear-gradient(rgba(26,22,19,.9), rgba(10,8,6,.95)); border: 1px solid var(--bronze-l); position: relative; }
.feat::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(124,90,36,.4); pointer-events: none; }
.feat__num { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 10px; font: 700 30px var(--font-h); color: var(--gold-hi); text-shadow: 0 2px 0 #000;
  background: radial-gradient(circle at 50% 35%, #5a3b22, #1e130b 70%); border: 2px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px rgba(7,6,5,.9), 0 0 0 6px var(--gold-lo), 0 0 26px rgba(201,162,77,.3); }
.feat b { font-family: var(--font-h); color: var(--gold-hi); letter-spacing: .1em; text-transform: uppercase; font-size: 15px; }
.feat span:last-child { color: var(--muted); font-size: 14px; }

.band--events { min-height: 480px; display: flex; align-items: center; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,6,5,.92), rgba(7,6,5,.55) 55%, rgba(7,6,5,.25)), linear-gradient(var(--black), transparent 18%, transparent 82%, var(--black)); }
.band__in { position: relative; }
.band--events .sechead { max-width: 760px; }
.events-empty { max-width: 680px; padding: 28px 32px; background: rgba(7,6,5,.72); border: 1px solid var(--gold-lo); border-left: 4px solid var(--red-hi); }
.events-empty__title { font: 700 24px var(--font-h); color: var(--gold-hi); letter-spacing: .08em; margin-bottom: 8px; }
.events-empty p:last-child { color: var(--sand); margin: 0; }
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--gap); }
.ecard { background: rgba(13,11,9,.94); border: 1px solid var(--gold-lo); }
.ecard img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ecard__body { padding: 18px 20px 22px; }
.ecard h3 { color: var(--gold-hi); font-size: 20px; margin-bottom: 6px; }

.band--download { padding-top: 70px; }
.dlbox { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; background: linear-gradient(rgba(26,22,19,.95), rgba(10,8,6,.97)), var(--tex-stone); border: 1px solid var(--bronze-l); box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--gold-lo), 0 20px 50px rgba(0,0,0,.7); position: relative; }
.dlbox::before { content: ""; position: absolute; inset: -9px; pointer-events: none; z-index: 2; background: var(--c-tl) top left / 44px no-repeat, var(--c-tr) top right / 44px no-repeat, var(--c-br) bottom right / 44px no-repeat, var(--c-bl) bottom left / 44px no-repeat; }
.dlbox__art { overflow: hidden; border-right: 2px solid var(--gold-lo); min-height: 340px; }
.dlbox__art img { width: 100%; height: 100%; object-fit: cover; }
.dlbox__body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.dlbox__body p { font-size: 17px; color: var(--sand); }

/* ============================ BANER PODSTRON ============================ */
.pbanner { position: relative; min-height: clamp(280px, 36vh, 440px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--gold-lo); }
.pbanner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pbanner__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(7,6,5,.2), rgba(7,6,5,.35) 40%, rgba(7,6,5,.95)), linear-gradient(90deg, rgba(7,6,5,.75), transparent 70%); }
.pbanner__in { padding: 40px 0 46px; }
.pbanner__title { font-size: clamp(34px, 4.6vw, 72px); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 4px 0 #000, 0 0 30px rgba(201,162,77,.3); overflow-wrap: anywhere; }
.pbanner__sub { margin: 10px 0 0; font: italic 20px var(--font-h); color: var(--sand); text-shadow: 0 2px 6px #000; }
.crumbs { margin-bottom: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--sand-d); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs [aria-current] { color: var(--gold); }

/* ============================ ARTYKUŁ / PERGAMIN ============================ */
.article-wrap { max-width: 1100px; padding: 48px 0 70px; }
.article__fig { margin: 0 0 -1px; border: 1px solid var(--gold-lo); box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--bronze-l); }
.article__fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.parchment { position: relative; padding: 44px 56px; color: #2b1d10; font-size: 18px; line-height: 1.75;
  background: radial-gradient(ellipse at center, rgba(255,250,235,.25), rgba(120,84,40,.25)), var(--tex-parch);
  border: 1px solid #8a6a3a; box-shadow: inset 0 0 70px rgba(110,70,20,.45), 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--gold-lo), 0 20px 50px rgba(0,0,0,.7); }
.parchment a { color: #7a2a14; }
.parchment .ncard__meta { color: #6a5034; }
.parchment .ncard__meta time::before { color: #8a6a3a; }
.parchment h2 { color: #5a1d10; font-size: 22px; letter-spacing: .06em; margin: 26px 0 8px; }
.parchment .btn--gold { color: #2a1604; }
.note-draft { padding: 10px 14px; border-left: 4px solid #8f2a1c; background: rgba(143,42,28,.12); font-size: 15px; }
.article__back { margin-top: 28px; }
.article__more { margin-top: 56px; }

/* ============================ POBIERANIE ============================ */
.dlpage { padding: 48px 0 70px; max-width: 1280px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.step { position: relative; padding: 50px 26px 26px; text-align: center; background: linear-gradient(rgba(26,22,19,.92), rgba(10,8,6,.96)), var(--tex-stone); border: 1px solid var(--bronze-l); }
.step__n { position: absolute; top: -30px; left: 50%; margin-left: -30px; display: grid; place-items: center; width: 60px; height: 60px; font: 700 26px var(--font-h); color: #2a1604; background: linear-gradient(#f6e0a4, #c9a24d 50%, #8c6226); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.step h2 { color: var(--gold-hi); font-size: 20px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--sand); margin: 0; }

/* ============================ AUTH ============================ */
.authscreen { position: relative; min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 60px 24px; isolation: isolate; overflow: hidden; }
.authscreen__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 60%; z-index: -2; }
.authscreen__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,6,5,.35), rgba(7,6,5,.85) 60%), linear-gradient(transparent 60%, var(--black)); }
.authscreen__in { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 60px; align-items: center; }
.authscreen__aside { text-align: center; color: var(--sand); font-size: 18px; text-shadow: 0 2px 6px #000; }
.authscreen__aside img { margin: 0 auto 12px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.9)); }
.authscreen__brand { font: 700 clamp(40px, 5vw, 76px)/1 var(--font-h); letter-spacing: .1em; color: var(--gold-hi); text-shadow: 0 4px 0 #000, 0 0 30px rgba(201,162,77,.35); margin-bottom: 16px; }
.authscreen__brand span { color: var(--red-hi); margin-left: .12em; }
.frame--auth { margin: 0; }
.frame--auth .frame__title { font-size: 22px; }
.frame--auth .frame__body { padding: 28px 34px 32px; }

/* ============================ FORMULARZE ============================ */
.form label { display: block; margin: 16px 0 6px; font: 700 12px var(--font-h); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.form small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.form--side label:first-of-type { margin-top: 0; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, input:not([type]) {
  width: 100%; min-height: 46px; padding: 10px 14px; font: 15px var(--font-b); color: var(--sand);
  background: linear-gradient(#060504, #110d0a); border: 1px solid var(--bronze-l); border-radius: 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.85), 0 1px 0 rgba(241,215,154,.08);
  transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%), linear-gradient(#060504, #110d0a);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 0 0; background-size: 6px 6px, 6px 6px, 100% 100%; background-repeat: no-repeat; }
input:focus, select:focus { border-color: var(--gold); outline: none; box-shadow: inset 0 2px 8px rgba(0,0,0,.85), 0 0 0 3px rgba(201,162,77,.25); }
.form .check { display: flex; gap: 12px; align-items: center; margin: 22px 0 6px; color: var(--text); font: 15px var(--font-b); letter-spacing: 0; text-transform: none; }
.form .check input { width: 22px; height: 22px; accent-color: var(--gold); flex-shrink: 0; }
.form .btn { margin-top: 22px; }
.err { color: var(--bad); font-size: 13.5px; margin: 6px 0 0 !important; }
.alert { padding: 12px 16px; border: 1px solid var(--red); border-left: 4px solid var(--red-hi); background: rgba(143,42,28,.25); color: #ffd2c8; }
.flash { margin: 18px 0 0; padding: 12px 18px; border: 1px solid var(--gold-lo); border-left: 4px solid var(--gold); background: rgba(201,162,77,.12); color: var(--gold-hi); }

/* ============================ PANEL KONTA ============================ */
.acct { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 34px; padding: 44px 0 70px; align-items: start; }
.acct__side { position: sticky; top: 104px; }
.acct__id { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(124,90,36,.45); }
.acct__user { margin: 0; font: 700 22px var(--font-h); color: var(--gold-hi); word-break: break-all; }
.acct__since { margin: 0; color: var(--muted); font-size: 13px; }
.acct__nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.acct__nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; color: var(--sand); text-decoration: none; border: 1px solid transparent; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.acct__nav a:hover, .acct__nav a[aria-current="page"] { color: var(--gold-hi); background: linear-gradient(90deg, rgba(201,162,77,.16), transparent); border-color: var(--gold-lo); }
.acct__nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
.ico { width: 20px; height: 20px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico--home { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2L1 11h3v11h6v-7h4v7h6V11h3z'/></svg>"); }
.ico--sword { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 2h2v2L10 16l-2-2zM6 14l4 4-2 2-1-1-3 3-2-2 3-3-1-1z'/></svg>"); }
.ico--key { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 9a5 5 0 1 1 4.6 5H10v3H7v3H3v-4l4.6-4.6A5 5 0 0 1 7 9zm5-1a2 2 0 1 0 4 0 2 2 0 0 0-4 0z'/></svg>"); }
.ico--door { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 22V3l11-1v20zm8-10a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM17 4h3v18h-3z'/></svg>"); }
.ico--scroll { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V6H2a2 2 0 0 1 3-3zm3 5v2h8V8zm0 4v2h8v-2z'/></svg>"); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: var(--gap); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: linear-gradient(rgba(42,27,16,.85), rgba(13,11,9,.95)), var(--tex-stone); border: 1px solid var(--bronze-l); box-shadow: inset 0 1px 0 rgba(241,215,154,.12), 0 10px 24px rgba(0,0,0,.5); border-top: 3px solid var(--gold); }
.tile__k { font: 700 11px var(--font-h); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tile__v { font: 700 21px var(--font-h); color: var(--gold-hi); overflow-wrap: anywhere; }
.acct__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.log { list-style: none; padding: 0; margin: 0; }
.log li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-bottom: 1px dashed rgba(124,90,36,.4); font-size: 14.5px; }
.log time { color: var(--muted); min-width: 132px; }
.log b { margin-left: auto; }
.log--big li { font-size: 16px; }

/* ============================ RANKINGI ============================ */
.ranks { padding: 40px 0 70px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tabs a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; text-decoration: none; font: 700 13px var(--font-h); letter-spacing: .16em; text-transform: uppercase; color: var(--sand);
  background: linear-gradient(#3a271a, #1a110a); border: 1px solid var(--bronze-l); box-shadow: inset 0 1px 0 rgba(241,215,154,.15); transition: color .2s, border-color .2s; }
.tabs a:hover { color: var(--gold-hi); border-color: var(--gold); }
.tabs a[aria-current="page"] { color: #2a1604; background: linear-gradient(#f6e0a4, #c9a24d 55%, #a2742c); border-color: #f6e0a4; }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; align-items: end; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(124,90,36,.45); }
.filters label { display: block; margin-bottom: 6px; font: 700 11px var(--font-h); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.filters__btn .btn { width: 100%; }
.podium { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: end; }
.podium__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px 22px; text-align: center; background: linear-gradient(rgba(42,27,16,.85), rgba(10,8,6,.95)); border: 1px solid var(--bronze-l); }
.podium__item--1 { order: 2; padding-top: 38px; border-color: #e8c25a; box-shadow: 0 0 34px rgba(232,194,90,.25); }
.podium__item--2 { order: 1; } .podium__item--3 { order: 3; }
.podium__medal { display: grid; place-items: center; width: 56px; height: 56px; font: 700 24px var(--font-h); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.podium__item--1 .podium__medal { background: linear-gradient(#fff0a8, #d9a72e); color: #2a1604; width: 70px; height: 70px; font-size: 30px; }
.podium__item--2 .podium__medal { background: linear-gradient(#ffffff, #9aa3ab); color: #1a1a1a; }
.podium__item--3 .podium__medal { background: linear-gradient(#f6b878, #9a5a26); color: #2a1004; }
.podium__name { font: 700 20px var(--font-h); color: var(--gold-hi); }
.podium__sub { font-size: 13px; color: var(--muted); }
.tablewrap { overflow-x: auto; border: 1px solid var(--bronze-l); box-shadow: 0 0 0 3px rgba(7,6,5,.9); }
table.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank th { position: sticky; top: 0; background: linear-gradient(#4c3422, #24170d); color: var(--gold-hi); font: 700 12px var(--font-h); letter-spacing: .16em; text-transform: uppercase; text-align: left; padding: 14px 16px; border-bottom: 2px solid var(--gold); white-space: nowrap; }
.rank td { padding: 12px 16px; border-bottom: 1px solid rgba(110,76,44,.35); }
.rank tbody tr { background: rgba(13,11,9,.85); transition: background .15s; }
.rank tbody tr:nth-child(even) { background: rgba(30,22,16,.85); }
.rank tbody tr:hover { background: rgba(201,162,77,.12); }
.rank td.name { color: var(--gold-hi); font-weight: 700; }
.rank .num { width: 76px; text-align: center; }
.pos { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; font: 700 15px var(--font-h); color: var(--sand); background: rgba(74,50,32,.6); border: 1px solid var(--gold-lo); }
.top--1 .pos { background: linear-gradient(#fff0a8, #d9a72e); color: #2a1604; border-color: #fff0a8; box-shadow: 0 0 14px rgba(232,194,90,.6); }
.top--2 .pos { background: linear-gradient(#ffffff, #9aa3ab); color: #1a1a1a; border-color: #fff; }
.top--3 .pos { background: linear-gradient(#f6b878, #9a5a26); color: #2a1004; border-color: #f6b878; }
.top--1 { box-shadow: inset 4px 0 0 #e8c25a; } .top--2 { box-shadow: inset 4px 0 0 #c3cad0; } .top--3 { box-shadow: inset 4px 0 0 #c7804a; }
.kd { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; border: 1px solid; }
.kd--shinsoo { color: #ff9b86; border-color: #8a2b20; background: rgba(156,42,30,.28); }
.kd--chunjo { color: #ffe27a; border-color: #8a6e1c; background: rgba(200,160,40,.2); }
.kd--jinno { color: #9cc2ff; border-color: #2c4f8a; background: rgba(50,90,170,.28); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; color: var(--muted); }
.pager b { color: var(--gold-hi); }

/* ============================ STOPKA ============================ */
.footer { position: relative; margin-top: 60px; background: linear-gradient(rgba(14,10,7,.94), rgba(5,4,3,.98)), var(--tex-wood); border-top: 1px solid var(--gold-lo); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent); opacity: .55; }
.footer__art { height: 160px; background: linear-gradient(rgba(7,6,5,.2), rgba(14,10,7,1)), url("/static/img/art/banner-rankings-1280.webp") center 70% / cover; opacity: .7; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px 50px; padding: 10px 0 34px; margin-top: -60px; position: relative; }
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__brand strong { font: 700 22px var(--font-h); letter-spacing: .2em; color: var(--gold-hi); }
.footer__brand p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__col h2 { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer__col a { color: var(--sand-d); text-decoration: none; font-size: 15px; }
.footer__col a:hover { color: var(--gold-hi); }
.footer__col p { color: var(--muted); font-size: 14px; }
.footer__legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(124,90,36,.4); font-size: 12.5px; color: var(--muted); margin: 0; }

/* ============================ RESPONSYWNOŚĆ ============================ */
@media (min-width: 2200px) {
  :root { --wrap: 1980px; --side: 380px; }
  body { font-size: 17px; }
}
@media (max-width: 1400px) {
  :root { --side: 300px; --gap: 24px; }
  .features { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 1200px) {
  .portal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: -50px; }
  .portal > .portal__main { grid-column: 1 / -1; order: -1; }
  .portal--two { grid-template-columns: 1fr; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .acct { grid-template-columns: 1fr; }
  .acct__side { position: static; }
  .authscreen__in { grid-template-columns: 1fr; gap: 26px; max-width: 620px; }
  .authscreen__aside p:last-child { display: none; }
}
@media (max-width: 980px) {
  .topbar__in { min-height: 66px; }
  .navtoggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 50px; height: 46px; background: linear-gradient(#3a271a, #1a110a); border: 1px solid var(--gold-lo); cursor: pointer; }
  .navtoggle span { width: 24px; height: 2px; background: var(--gold-hi); transition: transform .2s, opacity .2s; }
  .navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 10px 16px 18px; background: linear-gradient(rgba(26,18,12,.99), rgba(10,7,5,.99)); border-bottom: 2px solid var(--gold-lo); box-shadow: 0 20px 40px rgba(0,0,0,.8); }
  .nav.open { display: flex; }
  .nav a { min-height: 52px; padding: 0 12px; border-bottom: 1px solid rgba(124,90,36,.3); }
  .nav a::after { display: none; }
  .nav .nav__cta { margin: 12px 0 0; justify-content: center; }
  .dlbox { grid-template-columns: 1fr; }
  .dlbox__art { border-right: 0; border-bottom: 2px solid var(--gold-lo); min-height: 220px; }
  .steps { grid-template-columns: 1fr; gap: 46px; }
  .acct__cols { grid-template-columns: 1fr; }
  .ncard--row { flex-direction: column; }
  .ncard--row .ncard__media { flex-basis: auto; aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 2px solid var(--gold-lo); }
}
@media (max-width: 760px) {
  :root { --gap: 20px; }
  body { font-size: 15.5px; background-attachment: scroll; }
  .wrap, .topbar__in { width: calc(100% - 32px); }
  .brand__a { font-size: 21px; } .brand img { width: 42px; height: 42px; }
  .hero { min-height: clamp(560px, 92vh, 860px); }
  .hero__img { object-position: 50% 50%; }
  .hero__in { padding: 40px 16px 120px; }
  .hero__eyebrow { letter-spacing: .2em; font-size: 11px; gap: 4px 12px; }
  .hero__eyebrow span + span::before { margin-right: 12px; }
  .hero__cta .btn { width: 100%; }
  .hero__meta li { min-width: 0; flex: 1 1 140px; }
  .hero__scroll { display: none; }
  .sechead { flex-wrap: wrap; align-items: baseline; }
  .sechead__title { font-size: 26px; letter-spacing: .1em; }
  .sechead__more { font-size: 12px; }
  .tabs { gap: 6px; }
  .tabs a { flex: 1 1 calc(50% - 6px); letter-spacing: .08em; }
  .portal { grid-template-columns: 1fr; margin-top: -60px; }
  .is-home .portal__main { padding: 20px 16px 22px; }
  .classes { grid-template-columns: 1fr; gap: 22px; }
  .ccard { aspect-ratio: 4 / 3; }
  .ccard img { object-position: 50% 35%; }
  .feats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feat__num { width: 74px; height: 74px; font-size: 24px; }
  .band { padding: 60px 0; }
  .dlbox__body { padding: 28px 22px; }
  .frame__body, .frame--big .frame__body, .frame--auth .frame__body { padding: 20px 16px 22px; }
  .parchment { padding: 26px 20px; font-size: 16.5px; }
  .form__grid { grid-template-columns: 1fr; }
  .authscreen { padding: 36px 16px; }
  .authscreen__aside img { width: 72px; height: 72px; }
  .footer__in { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium__item--1, .podium__item--2, .podium__item--3 { order: 0; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters__q, .filters__btn { grid-column: 1 / -1; }
  .tabs a { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 0 10px; min-height: 48px; font-size: 12px; }
  /* tabele jako karty */
  .tablewrap { border: 0; box-shadow: none; overflow: visible; }
  .rank thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rank, .rank tbody, .rank tr, .rank td { display: block; width: 100%; }
  .rank tr { margin-bottom: 12px; border: 1px solid var(--bronze-l); }
  .rank td { display: flex; justify-content: space-between; gap: 14px; border: 0; padding: 7px 14px; text-align: right; }
  .rank td::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: 13px; }
  .rank td.num { justify-content: flex-start; padding-top: 12px; }
  .rank td.num::before { content: none; }
}
@media (max-width: 420px) {
  .feats { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .tabs a { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   ETAP 7 — branding PandrionMT2 + animacje „Classic+ Modern"
   Animowane są wyłącznie transform/opacity (+ box-shadow na hover).
   ===================================================================== */
:root { --ease-out: cubic-bezier(.22,.8,.28,1); --ease-soft: cubic-bezier(.4,0,.2,1); }

/* --- logo w nawigacji --- */
.brand__logo { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(201,162,77,.45), 0 4px 14px rgba(0,0,0,.8); transition: transform .5s var(--ease-out), box-shadow .4s; }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(241,215,154,.45); }
.brand__txt { transition: transform .4s var(--ease-out); }
.brand:hover .brand__txt { transform: translateX(2px); }
.footer__brand img { border-radius: 50%; }
.acct__id img { border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-lo); }

/* --- HERO z ilustracją promocyjną --- */
.hero--promo { display: block; place-items: normal; min-height: 0; border-bottom: 0; background: var(--black); }
.hero__stage { position: relative; height: min(calc(100vh - 78px), 56.28vw); min-height: 420px; overflow: hidden; isolation: isolate; }
.hero--promo .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; z-index: -2;
  animation: heroIn 2.4s var(--ease-out) both; }
.hero--promo .hero__shade { z-index: -1; background:
  linear-gradient(rgba(7,6,5,.25), rgba(7,6,5,0) 14%, rgba(7,6,5,0) 72%, rgba(7,6,5,.88) 96%, var(--black)),
  radial-gradient(ellipse 120% 80% at 50% 40%, transparent 55%, rgba(7,6,5,.55)); }
.hero__glow { position: absolute; left: 50%; top: 58%; width: 70%; height: 60%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,214,130,.20), rgba(255,170,70,.06) 45%, transparent 70%); mix-blend-mode: screen;
  animation: glowBreath 6s ease-in-out 1.2s infinite both; }
.hero--promo .hero__cta { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3.4%, 40px); display: flex; justify-content: center; gap: 18px; padding: 0 16px; }
.hero--promo .hero__cta .btn { animation: riseIn .9s var(--ease-out) both; }
.hero--promo .hero__cta .btn:nth-child(1) { animation-delay: .35s; }
.hero--promo .hero__cta .btn:nth-child(2) { animation-delay: .5s; }
.hero--promo .hero__scroll { bottom: auto; top: 18px; display: none; }
.hero__bar { position: relative; z-index: 2; text-align: center; padding: 26px 24px 110px; background: linear-gradient(var(--black), rgba(7,6,5,.0) 100%); }
.hero__bar .hero__eyebrow { animation: fadeIn 1s .7s both; }
.hero__bar .hero__lead { margin: 6px auto 22px; animation: fadeIn 1s .85s both; }
.hero__bar .hero__meta { margin-top: 0; }
.hero__bar .hero__meta li { animation: riseIn .8s var(--ease-out) both; }
.hero__bar .hero__meta li:nth-child(1) { animation-delay: .95s; } .hero__bar .hero__meta li:nth-child(2) { animation-delay: 1.05s; } .hero__bar .hero__meta li:nth-child(3) { animation-delay: 1.15s; }
.is-home .portal { margin-top: -80px; }

/* cząsteczki żaru (tylko desktop, kilkanaście elementów, transform+opacity) */
.hero__embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__embers span { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffcf7a; box-shadow: 0 0 8px 2px rgba(255,140,40,.7); opacity: 0; animation: ember 11s linear infinite; will-change: transform, opacity; }
.hero__embers span:nth-child(1) { left: 6%; animation-delay: .2s; animation-duration: 12s; }
.hero__embers span:nth-child(2) { left: 14%; animation-delay: 3.1s; animation-duration: 10s; width: 3px; height: 3px; }
.hero__embers span:nth-child(3) { left: 22%; animation-delay: 6.4s; animation-duration: 13s; }
.hero__embers span:nth-child(4) { left: 31%; animation-delay: 1.7s; animation-duration: 11s; width: 2px; height: 2px; }
.hero__embers span:nth-child(5) { left: 40%; animation-delay: 8.2s; animation-duration: 12s; }
.hero__embers span:nth-child(6) { left: 48%; animation-delay: 4.6s; animation-duration: 14s; width: 3px; height: 3px; }
.hero__embers span:nth-child(7) { left: 57%; animation-delay: 2.4s; animation-duration: 10.5s; }
.hero__embers span:nth-child(8) { left: 65%; animation-delay: 7.1s; animation-duration: 12.5s; width: 2px; height: 2px; }
.hero__embers span:nth-child(9) { left: 73%; animation-delay: .9s; animation-duration: 11.5s; }
.hero__embers span:nth-child(10) { left: 81%; animation-delay: 5.3s; animation-duration: 13.5s; width: 3px; height: 3px; }
.hero__embers span:nth-child(11) { left: 89%; animation-delay: 9.4s; animation-duration: 10s; }
.hero__embers span:nth-child(12) { left: 95%; animation-delay: 3.8s; animation-duration: 12s; width: 2px; height: 2px; }

@keyframes heroIn { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes glowBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes ember { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); } 10% { opacity: .9; } 70% { opacity: .55; } 100% { opacity: 0; transform: translate3d(28px, -62vh, 0) scale(.4); } }

/* ultrawide: ilustracja w całości, boki dopełnione rozmytym tłem */
@media (min-aspect-ratio: 2/1) and (min-width: 1200px) {
  .hero__stage { height: calc(100vh - 78px); }
  .hero__stage::before { content: ""; position: absolute; inset: -40px; z-index: -3; background: url("/static/img/brand/promo-960.webp") center / cover; filter: blur(30px) brightness(.32) saturate(1.2); }
  .hero--promo .hero__img { object-fit: contain; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
}
/* tablet pionowo / telefon: pełny kadr ilustracji, przyciski pod nią */
@media (max-width: 760px), (max-aspect-ratio: 4/3) {
  .hero__stage { height: auto; min-height: 0; }
  .hero--promo .hero__img { position: relative; height: auto; aspect-ratio: 1672 / 941; z-index: 0; }
  .hero--promo .hero__shade { z-index: 1; background: linear-gradient(transparent 70%, var(--black)); }
  .hero__glow, .hero__embers { display: none; }
  .hero--promo .hero__cta { position: relative; z-index: 2; padding: 18px 16px 0; }
  .hero--promo .hero__shade { bottom: auto; height: calc(100vw * 941 / 1672); }
  .hero__bar { padding-top: 18px; }
}
@media (max-width: 760px) {
  .hero--promo .hero__cta { flex-direction: column; }
  .hero--promo .hero__cta .btn { width: 100%; }
  .hero__bar { padding: 14px 16px 90px; }
  .hero__bar .hero__lead { font-size: 18px; }
  .is-home .portal { margin-top: -60px; }
}
/* słabsze urządzenia / ekrany dotykowe: bez cząsteczek i oddychającej poświaty */
@media (hover: none), (max-width: 1100px) {
  .hero__embers { display: none; }
  .hero__glow { animation: none; opacity: .7; }
}

/* --- połysk złotych przycisków --- */
.btn { position: relative; overflow: hidden; transition: transform .25s var(--ease-out), filter .25s, box-shadow .3s, color .2s; }
.btn::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,250,225,.45), transparent); transform: translateX(0) skewX(-18deg); opacity: 0; }
.btn:hover::after { animation: sheen .8s var(--ease-soft); }
.btn--shine::after { animation: sheen 1.1s var(--ease-soft) 2.2s, sheenIdle 9s var(--ease-soft) 4s infinite; }
@keyframes sheen { 0% { opacity: 0; transform: translateX(0) skewX(-18deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(420%) skewX(-18deg); } }
@keyframes sheenIdle { 0%, 88% { opacity: 0; transform: translateX(0) skewX(-18deg); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(420%) skewX(-18deg); } }

/* --- linki i nawigacja --- */
.nav a::after { transition: transform .35s var(--ease-out); transform-origin: center; }
.frame__link, .sechead__more { transition: color .2s, letter-spacing .3s var(--ease-out); }
.frame__link:hover, .sechead__more:hover { letter-spacing: .22em; }

/* menu mobilne: płynne otwieranie zamiast display:none */
@media (max-width: 980px) {
  .nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .28s var(--ease-soft), transform .32s var(--ease-out), visibility 0s linear .32s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .28s var(--ease-soft), transform .32s var(--ease-out), visibility 0s; }
  .nav a { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--ease-out), color .2s; }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(2) { transition-delay: .03s; } .nav.open a:nth-child(3) { transition-delay: .06s; }
  .nav.open a:nth-child(4) { transition-delay: .09s; } .nav.open a:nth-child(5) { transition-delay: .12s; } .nav.open a:nth-child(6) { transition-delay: .15s; }
}

/* --- pojawianie się sekcji przy przewijaniu (klasa .anim dodawana przez JS) --- */
.anim [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-soft) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s); }
.anim [data-reveal].is-in { opacity: 1; transform: none; }

/* --- podświetlenie złotych ramek i kart --- */
.frame, .tile, .feat, .step, .podium__item { transition: box-shadow .4s var(--ease-soft), transform .4s var(--ease-out), border-color .3s; }
.portal__side .frame:hover, .acct__cols .frame:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--gold), 0 18px 40px rgba(0,0,0,.65), 0 0 28px rgba(201,162,77,.16), inset 0 0 60px rgba(0,0,0,.6); }
.tile:hover, .feat:hover, .step:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--gold-lo), 0 14px 30px rgba(0,0,0,.6), 0 0 22px rgba(201,162,77,.14); }
.feat__num { transition: transform .5s var(--ease-out), box-shadow .4s; }
.feat:hover .feat__num { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(7,6,5,.9), 0 0 0 6px var(--gold), 0 0 34px rgba(241,215,154,.4); }
.ncard { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-soft); }
.ncard__media img { transition: transform .9s var(--ease-out), filter .5s; }
.ncard:hover .ncard__media img { filter: brightness(1.08); }
.mini li { transition: background .2s, transform .25s var(--ease-out); }
.mini li:hover { background: rgba(201,162,77,.08); transform: translateX(3px); }

/* --- rankingi: wejście podium, płynne wiersze --- */
.podium__item { animation: podiumIn .55s var(--ease-out) both; }
.podium__item--1 { animation-delay: .05s; } .podium__item--2 { animation-delay: .12s; } .podium__item--3 { animation-delay: .18s; }
.podium__item--1 .podium__medal { animation: medalGlow 3.5s ease-in-out .8s infinite; }
@keyframes podiumIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes medalGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255,220,120,0)); } 50% { filter: drop-shadow(0 0 8px rgba(255,220,120,.7)); } }
.rank tbody tr { transition: background .2s, box-shadow .25s; }
.tabs a { transition: color .2s, border-color .25s, background .3s, transform .25s var(--ease-out); }
.tabs a:hover { transform: translateY(-1px); }

/* --- panel konta --- */
.tiles .tile { animation: riseIn .55s var(--ease-out) both; }
.tiles .tile:nth-child(2) { animation-delay: .05s; } .tiles .tile:nth-child(3) { animation-delay: .1s; }
.tiles .tile:nth-child(4) { animation-delay: .15s; } .tiles .tile:nth-child(5) { animation-delay: .2s; }
.acct__nav a { transition: background .25s, border-color .25s, color .2s, transform .25s var(--ease-out); }
.acct__nav a:hover { transform: translateX(3px); }
.acct__nav .ico { transition: transform .3s var(--ease-out); }
.acct__nav a:hover .ico { transform: scale(1.12); }

/* --- formularze --- */
.form label { transition: color .2s; }
.form div:focus-within > label, .form label:has(+ input:focus) { color: var(--gold-hi); }
input:focus, select:focus { box-shadow: inset 0 2px 8px rgba(0,0,0,.85), 0 0 0 3px rgba(201,162,77,.22), 0 0 18px rgba(201,162,77,.18); }
.err, .alert, .flash { animation: msgIn .4s var(--ease-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- logo na ekranie logowania/rejestracji --- */
.authscreen__logo { width: clamp(150px, 16vw, 230px); height: auto; margin: 0 auto 16px; border-radius: 50%; filter: drop-shadow(0 10px 30px rgba(0,0,0,.9)); animation: riseIn 1s var(--ease-out) both, logoFloat 7s ease-in-out 1.2s infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 760px) { .authscreen__logo { width: 120px; animation: riseIn .8s var(--ease-out) both; } }

/* --- grafika promocyjna na podstronach --- */
.promo-card { position: relative; display: block; margin-bottom: var(--gap); overflow: hidden; text-decoration: none; border: 1px solid var(--gold-lo); box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--bronze-l), 0 16px 34px rgba(0,0,0,.6); transition: box-shadow .4s, transform .4s var(--ease-out); }
.promo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s var(--ease-out); }
.promo-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(7,6,5,.94) 55%); display: flex; flex-direction: column; gap: 2px; }
.promo-card__body b { font: 700 17px var(--font-h); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); }
.promo-card__body span { color: var(--sand); font-size: 14px; }
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--gold), 0 20px 40px rgba(0,0,0,.7), 0 0 26px rgba(201,162,77,.2); }
.promo-card:hover img { transform: scale(1.05); }
.promo-figure { margin: 0 0 var(--gap); border: 1px solid var(--gold-lo); box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--bronze-l), 0 20px 44px rgba(0,0,0,.7); overflow: hidden; }
.promo-figure img { width: 100%; }
.dlbox__art img { object-position: 50% 45%; transition: transform 1.2s var(--ease-out); }
.dlbox:hover .dlbox__art img { transform: scale(1.03); }

/* --- ograniczenie ruchu --- */
@media (prefers-reduced-motion: reduce) {
  .hero__embers, .hero__glow { display: none !important; }
  .anim [data-reveal] { opacity: 1 !important; transform: none !important; }
}
/* =====================================================================
   ETAP 7b — Classic+ Premium: Cinzel, nowe tło portalu, panel administracyjny
   ===================================================================== */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/cinzel/cinzel-latin-400-normal.woff2") format("woff2");
  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: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/cinzel/cinzel-latin-700-normal.woff2") format("woff2");
  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: "Cinzel"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/cinzel/cinzel-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/cinzel/cinzel-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --font-h: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; }
/* Cinzel tylko nagłówki/etykiety — długie teksty, tabele i pola zostają w foncie tekstowym */
.parchment, .ncard__body p, .rank td, input, select, textarea { font-family: var(--font-b); }

/* --- nowe tło portalu: nieruchoma warstwa (działa też na iOS), przyciemniona dla czytelności --- */
body { background: var(--black); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(7,6,5,0) 0%, rgba(7,6,5,.35) 70%),
    linear-gradient(rgba(7,6,5,.12), rgba(7,6,5,.46) 40%, rgba(7,6,5,.8) 75%, rgba(7,6,5,.92)),
    url("/static/img/brand/bg-portal.webp") center top / cover no-repeat; }
@media (max-width: 760px) {
  body::before { background:
    linear-gradient(rgba(7,6,5,.45), rgba(7,6,5,.78) 45%, rgba(7,6,5,.94)),
    url("/static/img/brand/bg-portal-960.webp") 50% top / cover no-repeat; }
}
.band--classes { background: linear-gradient(rgba(7,6,5,.55), rgba(18,13,10,.82) 18%, rgba(18,13,10,.82) 82%, rgba(7,6,5,.55)); }
.band--features { background: linear-gradient(rgba(7,6,5,.78), rgba(7,6,5,.9)); }
.footer { background: linear-gradient(rgba(14,10,7,.9), rgba(5,4,3,.98)); }

/* --- nawigacja: zmiana tła po przewinięciu --- */
.topbar { transition: background .35s, box-shadow .35s; }
.topbar.is-scrolled { background: linear-gradient(rgba(16,11,7,.985), rgba(9,7,5,.985)); box-shadow: 0 1px 0 #000, 0 3px 0 rgba(201,162,77,.3), 0 14px 34px rgba(0,0,0,.85); }
.nav .nav__admin { color: var(--gold-hi); border: 1px solid var(--gold-lo); margin-left: 6px; background: rgba(201,162,77,.08); }

/* --- pasek komunikatu, podgląd, powiadomienia --- */
.sitebar { padding: 10px 0; font-size: 14px; text-align: center; color: var(--sand); background: linear-gradient(90deg, rgba(42,27,16,.95), rgba(74,50,32,.95), rgba(42,27,16,.95)); border-bottom: 1px solid var(--gold-lo); animation: msgIn .5s var(--ease-out) both; }
.sitebar b { color: var(--gold-hi); font-family: var(--font-h); letter-spacing: .06em; }
.sitebar--warning { background: linear-gradient(90deg, rgba(92,20,12,.95), rgba(143,42,28,.95), rgba(92,20,12,.95)); }
.notice--warning { border-left-color: #f0a050; background: rgba(160,80,20,.2); }
.preview-bar { position: sticky; top: 78px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px 16px; background: rgba(143,42,28,.95); color: #fff3df; border-bottom: 1px solid var(--gold); font-size: 14px; }
.toast { position: relative; overflow: hidden; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; animation: toastBar 6s linear forwards; }
.toast.is-hiding { opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }
@keyframes toastBar { to { transform: scaleX(0); } }

/* --- stany ładowania (formularze z data-loading) --- */
.is-loading { pointer-events: none; opacity: .75; }
.is-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== PANEL ADMINISTRACYJNY =================== */
.is-admin .footer__art { display: none; }
.adm { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; width: min(1780px, 100% - 48px); margin: 30px auto 60px; align-items: start; }
.adm__side { position: sticky; top: 100px; padding: 18px; background: linear-gradient(rgba(26,22,19,.96), rgba(10,8,6,.98)), var(--tex-stone); border: 1px solid var(--bronze-l); box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--gold-lo), 0 18px 40px rgba(0,0,0,.65); }
.adm__brand { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid rgba(124,90,36,.45); }
.adm__brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-lo); }
.adm__brand b { display: block; font: 700 15px var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); }
.adm__brand span { font-size: 13px; color: var(--muted); word-break: break-all; }
.adm__nav { display: flex; flex-direction: column; gap: 3px; }
.adm__nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; color: var(--sand); text-decoration: none; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; transition: background .25s, border-color .25s, color .2s, transform .25s var(--ease-out); }
.adm__nav a::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; background: var(--gold); transform: scaleY(0); transition: transform .3s var(--ease-out); }
.adm__nav a:hover { color: var(--gold-hi); background: rgba(201,162,77,.08); transform: translateX(2px); }
.adm__nav a[aria-current="page"] { color: var(--gold-hi); background: linear-gradient(90deg, rgba(201,162,77,.18), transparent); border-color: var(--gold-lo); }
.adm__nav a[aria-current="page"]::before { transform: scaleY(1); }
.adm__sidefoot { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(124,90,36,.45); }
.adm__sidefoot .btn { margin: 0; }
.aico { width: 20px; height: 20px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.aico--dash { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 3h8v10H3zm10 0h8v6h-8zM3 15h8v6H3zm10-4h8v10h-8z'/></svg>"); }
.aico--news { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h13v14a2 2 0 0 0 2 2H6a2 2 0 0 1-2-2zm3 3v3h7V7zm0 5v2h7v-2zm0 4v2h5v-2zM19 8h2v10a2 2 0 0 1-2 2z'/></svg>"); }
.aico--event { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2h2v2h6V2h2v2h3v17H4V4h3zm-1 7v10h12V9zm2 2h3v3H8z'/></svg>"); }
.aico--users { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm8 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM1 20c0-4 4-6 8-6s8 2 8 6zm16.5 0c0-2-.8-3.6-2.2-4.8 3.4.2 6.7 1.8 6.7 4.8z'/></svg>"); }
.aico--rank { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 3h6v18H9zM2 10h6v11H2zm14 4h6v7h-6z'/></svg>"); }
.aico--cog { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10.5 2h3l.5 2.6 2 .9 2.2-1.5 2.1 2.1-1.5 2.2.9 2 2.6.5v3l-2.6.5-.9 2 1.5 2.2-2.1 2.1-2.2-1.5-2 .9-.5 2.6h-3l-.5-2.6-2-.9-2.2 1.5-2.1-2.1 1.5-2.2-.9-2L2 13.5v-3l2.6-.5.9-2L4 5.8l2.1-2.1L8.3 5.2l2-.9zM12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/></svg>"); }
.aico--image { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 4h18v16H3zm2 2v9l4-4 4 4 3-3 3 3V6zm11 1a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/></svg>"); }
.aico--log { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 3h12l4 4v14H4zm3 6v2h10V9zm0 4v2h10v-2zm0 4v2h7v-2z'/></svg>"); }
.aico--user { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm-9 9c0-5 4-7 9-7s9 2 9 7z'/></svg>"); }

.adm__main { min-width: 0; animation: admIn .45s var(--ease-out) both; }
@keyframes admIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.adm__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--gold-lo); position: relative; }
.adm__head::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 180px; height: 13px; background: var(--divider) left center / contain no-repeat; }
.adm__crumb { margin: 0 0 4px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.adm__title { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 3px 0 #000; }
.adm__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; overflow: hidden;
  background: linear-gradient(145deg, rgba(58,39,24,.9), rgba(13,11,9,.96)); border: 1px solid var(--bronze-l); border-top: 3px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(241,215,154,.14), 0 12px 26px rgba(0,0,0,.5); animation: riseIn .55s var(--ease-out) both; transition: transform .3s var(--ease-out), box-shadow .3s; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(241,215,154,.14), transparent 70%); }
.stat:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(241,215,154,.2), 0 16px 32px rgba(0,0,0,.6), 0 0 22px rgba(201,162,77,.15); }
.stat:nth-child(2) { animation-delay: .04s; } .stat:nth-child(3) { animation-delay: .08s; } .stat:nth-child(4) { animation-delay: .12s; } .stat:nth-child(5) { animation-delay: .16s; } .stat:nth-child(6) { animation-delay: .2s; }
.stat__k { font: 700 11px var(--font-h); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stat__v { font: 700 34px/1.1 var(--font-h); color: var(--gold-hi); text-shadow: 0 2px 0 #000; }
.stat__s { font-size: 13px; color: var(--sand-d); }

.apanel { position: relative; margin-bottom: 22px; padding: 20px 22px; background: linear-gradient(rgba(26,22,19,.94), rgba(12,10,8,.97)); border: 1px solid var(--bronze-l);
  box-shadow: 0 0 0 3px rgba(7,6,5,.9), 0 0 0 4px rgba(124,90,36,.6), 0 14px 30px rgba(0,0,0,.55); }
.adm__grid .apanel { margin-bottom: 0; }
.apanel--danger { box-shadow: 0 0 0 3px rgba(7,6,5,.9), 0 0 0 4px rgba(143,42,28,.8), 0 14px 30px rgba(0,0,0,.55); }
.apanel__h { margin: 0 0 14px; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.apanel__sub { margin: 20px 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgba(124,90,36,.4); }
.kv span { color: var(--muted); } .kv b { color: var(--sand); text-align: right; overflow-wrap: anywhere; }
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msg { padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(201,162,77,.08); font-size: 14px; }
.msg--warn { border-left-color: #f0a050; background: rgba(160,80,20,.16); }
.atable-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.atable th { text-align: left; padding: 10px 12px; font: 700 11px var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-bottom: 2px solid var(--gold-lo); white-space: nowrap; }
.atable td { padding: 10px 12px; border-bottom: 1px solid rgba(110,76,44,.35); vertical-align: middle; }
.atable tbody tr { transition: background .2s; }
.atable tbody tr:hover { background: rgba(201,162,77,.07); }
.atable .right { text-align: right; }
.atable .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.atable .actions form { margin: 0; }
.row--warn td { background: rgba(160,60,20,.12); }
.pill { display: inline-block; padding: 2px 9px; font-size: 12px; font-weight: 700; border: 1px solid var(--bronze-l); color: var(--sand-d); background: rgba(0,0,0,.3); white-space: nowrap; }
.pill--ok { color: var(--ok); border-color: rgba(140,207,116,.45); }
.pill--red { color: var(--bad); border-color: rgba(228,122,100,.5); }
.pill--gold { color: var(--gold-hi); border-color: var(--gold-lo); }
.alog { list-style: none; margin: 0; padding: 0; }
.alog li { display: grid; grid-template-columns: 130px 1fr; gap: 2px 12px; padding: 8px 0; border-bottom: 1px dashed rgba(124,90,36,.35); font-size: 14px; }
.alog time { color: var(--muted); grid-row: span 2; }
.alog b { color: var(--sand); }
.alog span { color: var(--muted); overflow-wrap: anywhere; }
.btn--danger { color: #ffd2c8; border-color: rgba(200,67,46,.6); background: linear-gradient(#4a1d14, #2a0f0a); }
.btn--danger:hover { color: #fff; }

.aform textarea { width: 100%; min-height: 120px; padding: 12px 14px; font: 15px/1.6 var(--font-b); color: var(--sand); background: linear-gradient(#060504, #110d0a); border: 1px solid var(--bronze-l); box-shadow: inset 0 2px 8px rgba(0,0,0,.85); resize: vertical; }
.aform textarea:focus { border-color: var(--gold); outline: none; box-shadow: inset 0 2px 8px rgba(0,0,0,.85), 0 0 0 3px rgba(201,162,77,.22); }
.aform input[type=date], .aform input[type=datetime-local], .aform input[type=url], .aform input[type=file] { width: 100%; min-height: 46px; padding: 10px 14px; font: 15px var(--font-b); color: var(--sand); background: linear-gradient(#060504, #110d0a); border: 1px solid var(--bronze-l); color-scheme: dark; }
.form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-wrap { display: flex; align-items: flex-end; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.aform small { display: inline; margin-left: 4px; text-transform: none; letter-spacing: 0; font-family: var(--font-b); }
.aform__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 22px; }
.aform__bar .btn, .aform__bar form { margin: 0; }
.asearch { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.asearch input { flex: 1 1 260px; width: auto; }
.picker { border: 0; padding: 0; margin: 0; }
.picker legend { font: 700 12px var(--font-h); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.picker__item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; cursor: pointer; border: 1px solid var(--bronze-l); background: rgba(0,0,0,.3); transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out); margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font: 12.5px var(--font-b) !important; color: var(--sand-d) !important; }
.picker__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.picker__item input { position: absolute; opacity: 0; pointer-events: none; }
.picker__item:hover { transform: translateY(-2px); border-color: var(--gold-lo); }
.picker__item:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,162,77,.45), 0 0 18px rgba(201,162,77,.25); color: var(--gold-hi) !important; }
.picker__item:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mitem { margin: 0; border: 1px solid var(--bronze-l); background: rgba(0,0,0,.3); transition: transform .25s var(--ease-out), border-color .2s; }
.mitem:hover { transform: translateY(-2px); border-color: var(--gold-lo); }
.mitem img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mitem figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; font-size: 12.5px; color: var(--muted); }
.mitem code { color: var(--gold-hi); font-size: 12px; }
.mitem form { margin-left: auto; }
.upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.upload label { flex-basis: 100%; }
.upload input[type=file] { flex: 1 1 320px; }
.upload .btn { margin: 0; }
.confirm { text-align: center; max-width: 640px; }
.confirm__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; font: 700 34px var(--font-h); color: #fff3df; background: linear-gradient(#c24a33, #6b1a12); border: 2px solid var(--gold); border-radius: 50%; animation: riseIn .5s var(--ease-out) both; }
.confirm__what { font: 700 20px var(--font-h); color: var(--gold-hi); overflow-wrap: anywhere; }
.confirm__form { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.confirm__form .btn { margin: 0; }
/* zakładki konfiguracji (JS przełącza; bez JS wszystkie sekcje są widoczne) */
.tabsbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabsbar__tab { min-height: 44px; padding: 0 18px; cursor: pointer; font: 700 12px var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); background: linear-gradient(#3a271a, #1a110a); border: 1px solid var(--bronze-l); transition: color .2s, border-color .25s, background .3s; }
.tabsbar__tab:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.tabsbar__tab[aria-selected="true"] { color: #2a1604; background: linear-gradient(#f6e0a4, #c9a24d 55%, #a2742c); border-color: #f6e0a4; }
.js-tabs .tabpanel[hidden] { display: none; }
.js-tabs .tabpanel { animation: fadeIn .35s ease both; }
.adm .flash { margin-top: 0; }

@media (max-width: 1100px) {
  .adm { grid-template-columns: 1fr; }
  .adm__side { position: static; }
  .adm__nav { flex-direction: row; flex-wrap: wrap; }
  .adm__nav a { flex: 1 1 auto; min-height: 42px; }
  .adm__nav a::before { display: none; }
  .adm__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .adm { width: calc(100% - 24px); margin-top: 18px; gap: 18px; }
  .adm__nav a { flex: 1 1 calc(50% - 4px); font-size: 13.5px; padding: 0 10px; }
  .apanel { padding: 16px 14px; }
  .form__grid--3 { grid-template-columns: 1fr; }
  .stat__v { font-size: 28px; }
  .alog li { grid-template-columns: 1fr; }
  .alog time { grid-row: auto; }
  .atable--rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .atable--rows, .atable--rows tbody, .atable--rows tr, .atable--rows td { display: block; width: 100%; }
  .atable--rows tr { margin-bottom: 10px; border: 1px solid var(--bronze-l); }
  .atable--rows td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border: 0; text-align: right; }
  .atable--rows td::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: 12.5px; }
  .atable--rows td.actions { justify-content: flex-start; }
  .atable--rows td.actions::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast::after { display: none; }
}
/* poprawka: układ dwukolumnowy podstron nie nachodzi na baner na telefonie */
@media (max-width: 760px) {
  .portal--two { margin-top: 26px; }
  .pbanner__sub { font-size: 16px; }
}

/* =====================================================================
   ETAP 8 — CINEMATIC EDITION
   ===================================================================== */
:root { --sect-pad: clamp(72px, 7.5vw, 136px); --gold-grad: linear-gradient(180deg, #fff3cf 0%, #f1d79a 30%, #c9a24d 62%, #8c6226 100%); }

/* ---------- typografia sekcji ---------- */
.sect { position: relative; padding: var(--sect-pad) 0 0; }
.sect.wrap { padding-left: 0; padding-right: 0; }
.sect__head { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px; margin-bottom: clamp(28px, 3vw, 44px); }
.sect__head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sect__kicker { grid-column: 1 / -1; margin: 0; display: inline-flex; align-items: center; gap: 14px; font: 700 12px var(--font-h); letter-spacing: .38em; text-transform: uppercase; color: var(--red-hi); }
.sect__kicker::before, .sect__head--center .sect__kicker::after { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sect__head--center .sect__kicker::after { transform: scaleX(-1); }
.sect__title { margin: 0; font-size: clamp(32px, 3.6vw, 60px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.05;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0,0,0,.9)) drop-shadow(0 0 26px rgba(201,162,77,.18)); }
.sect__lead { margin: 6px 0 0; max-width: 720px; color: var(--sand); font-size: 18px; }
.sect__more { align-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; font: 700 12px var(--font-h); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--gold-lo); background: rgba(7,6,5,.5); transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease-out); }
.sect__more::after { content: "›"; font-size: 16px; transition: transform .3s var(--ease-out); }
.sect__more:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(201,162,77,.1); }
.sect__more:hover::after { transform: translateX(4px); }

/* ---------- A. KINOWE HERO ---------- */
.is-cine main { overflow-x: clip; }
.cine { position: relative; isolation: isolate; background: #050403; }
.cine__stage { position: relative; height: max(560px, calc(100svh - 78px)); max-height: max(1180px, calc(56.3vw + 40px)); overflow: hidden; --fade: 1; }
.cine__layer { position: absolute; inset: -34px; will-change: transform; }
.cine__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: cineIn 2.6s var(--ease-out) both; }
@keyframes cineIn { from { transform: scale(1.08); filter: brightness(.55) saturate(.8); } to { transform: scale(1); filter: none; } }
.cine__rays { position: absolute; left: 50%; top: -30%; width: 140%; height: 120%; transform: translateX(-50%); z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(255,214,140,.10) 8deg, transparent 16deg, transparent 26deg, rgba(255,200,120,.08) 33deg, transparent 42deg, transparent 318deg, rgba(255,200,120,.08) 326deg, transparent 334deg, rgba(255,214,140,.10) 344deg, transparent 352deg);
  animation: raysSway 18s ease-in-out infinite alternate; }
@keyframes raysSway { from { transform: translateX(-50%) rotate(-3deg); } to { transform: translateX(-50%) rotate(3deg); } }
.cine__glow { position: absolute; left: 50%; top: 56%; width: 62%; height: 48%; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse at center, rgba(255,214,130,.24), rgba(255,160,60,.08) 45%, transparent 70%); animation: glowBreath 5.5s ease-in-out 1.6s infinite both; }
.cine__fog { position: absolute; left: -20%; right: -20%; height: 46%; z-index: 2; pointer-events: none; opacity: .55; will-change: transform; }
.cine__fog--a { bottom: 6%; background: radial-gradient(ellipse 30% 55% at 20% 60%, rgba(214,190,170,.20), transparent 70%), radial-gradient(ellipse 34% 50% at 70% 70%, rgba(200,170,150,.16), transparent 70%); animation: fogDrift 38s ease-in-out infinite alternate; }
.cine__fog--b { bottom: -8%; background: radial-gradient(ellipse 40% 60% at 40% 70%, rgba(30,20,16,.75), transparent 70%), radial-gradient(ellipse 36% 55% at 85% 60%, rgba(220,190,160,.12), transparent 70%); animation: fogDrift 54s ease-in-out infinite alternate-reverse; }
@keyframes fogDrift { from { translate: -4% 0; } to { translate: 4% 0; } }
.cine__sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.cine__vignette { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 42%, transparent 55%, rgba(5,4,3,.6) 100%),
              linear-gradient(rgba(5,4,3,.35), transparent 16%, transparent 60%, rgba(5,4,3,.82) 88%, #050403); }
.cine__content { position: absolute; left: 0; right: 0; bottom: clamp(40px, 6vh, 86px); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 20px; opacity: var(--fade); }
.cine__slogan { margin: 0; max-width: 900px; text-align: center; font: 400 clamp(17px, 1.5vw, 23px)/1.45 var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: #f6e7c4;
  text-shadow: 0 2px 4px #000, 0 0 24px rgba(0,0,0,.9); animation: riseIn 1s var(--ease-out) .5s both; }
.cine__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.cine__cta .btn { animation: riseIn .9s var(--ease-out) both; }
.cine__cta .btn:nth-child(1) { animation-delay: .7s; } .cine__cta .btn:nth-child(2) { animation-delay: .85s; }
.btn--cine { min-width: 230px; box-shadow: inset 0 1px 0 rgba(255,236,200,.4), 0 10px 30px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.6); }
.cine__scroll { position: absolute; left: 50%; bottom: 14px; z-index: 5; width: 26px; height: 40px; margin-left: -13px; border: 2px solid rgba(241,215,154,.7); border-radius: 14px; opacity: var(--fade); }
.cine__scroll::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); animation: scrollDot 2s infinite; }
@media (min-aspect-ratio: 2/1) and (min-width: 1200px) {
  .cine__stage::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: url("/static/img/brand/promo-960.webp") center / cover; filter: blur(32px) brightness(.32) saturate(1.15); }
  .cine__img { object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
}
@media (max-width: 760px), (max-aspect-ratio: 4/3) {
  .cine__stage { height: auto; max-height: none; overflow: visible; }
  .cine__layer { position: relative; inset: auto; }
  .cine__img { height: auto; aspect-ratio: 1672 / 941; }
  .cine__vignette { bottom: auto; height: calc(100vw * 941 / 1672); background: linear-gradient(transparent 62%, #050403); }
  .cine__rays, .cine__fog--b, .cine__glow { display: none; }
  .cine__fog--a { bottom: auto; top: 30vw; height: 30vw; }
  .cine__sparks { height: calc(100vw * 941 / 1672); }
  .cine__content { position: relative; bottom: auto; padding: 18px 16px 8px; opacity: 1; }
  .cine__scroll { display: none; }
}
@media (max-width: 760px) {
  .cine__cta { flex-direction: column; width: 100%; }
  .cine__cta .btn { width: 100%; min-width: 0; }
  .cine__slogan { font-size: 15px; letter-spacing: .08em; }
}

/* ---------- B. PANEL SERWERA (szkło tylko tutaj) ---------- */
.srv { position: relative; z-index: 6; margin-top: -44px; }
.srv__bar { display: flex; flex-wrap: wrap; align-items: stretch; background: linear-gradient(rgba(30,22,15,.72), rgba(10,8,6,.82)); border: 1px solid rgba(201,162,77,.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 24px 50px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,236,190,.15); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); animation: riseIn .8s var(--ease-out) 1s both; }
.srv__item { flex: 1 1 150px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 22px; border-right: 1px solid rgba(124,90,36,.35); min-width: 0; }
.srv__item:last-child { border-right: 0; }
.srv__k { font: 700 11px var(--font-h); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.srv__v { font: 700 19px var(--font-h); color: var(--gold-hi); letter-spacing: .04em; }
.srv__v--muted { color: var(--sand-d); font-size: 15px; }
.srv__item--status { flex-basis: 230px; }
.srv__item--acc { flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex-basis: 260px; }
.srv__note, .srv__notice { margin: 14px 4px 0; font-size: 14px; color: var(--muted); }
.srv__notice { padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(201,162,77,.08); color: var(--sand); }
.srv__notice--warning { border-left-color: #f0a050; background: rgba(160,80,20,.18); }

/* ---------- C. AKTUALNOŚCI ---------- */
.newsx { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.newsx--solo { grid-template-columns: 1fr; }
.nlead { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: linear-gradient(rgba(20,16,12,.96), rgba(9,7,5,.98)); border: 1px solid var(--bronze-l);
  box-shadow: 0 0 0 4px rgba(7,6,5,.9), 0 0 0 5px rgba(124,90,36,.8), 0 26px 50px rgba(0,0,0,.6); transition: box-shadow .4s, transform .4s var(--ease-out); }
.newsx--solo .nlead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: none; }
.nlead:hover { transform: translateY(-4px); box-shadow: 0 0 0 4px rgba(7,6,5,.9), 0 0 0 5px var(--gold), 0 32px 60px rgba(0,0,0,.7), 0 0 40px rgba(201,162,77,.18); }
.nlead__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.newsx--solo .nlead__media { aspect-ratio: auto; min-height: 380px; }
.nlead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.nlead:hover .nlead__media img { transform: scale(1.06); filter: brightness(1.1); }
.nlead__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 3vw, 46px); }
.nlead__title { margin: 0; font-size: clamp(26px, 2.6vw, 44px); line-height: 1.1; letter-spacing: .02em; }
.nlead__title a { color: var(--gold-hi); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out), color .3s; }
.nlead__title a:hover { color: #fff; background-size: 100% 2px; }
.nlead__sum { color: var(--sand); font-size: 17px; line-height: 1.7; margin: 0; }
.nlead .btn { align-self: flex-start; margin-top: 6px; }
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.nlist { display: flex; flex-direction: column; gap: 16px; }
.nitem { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px; background: rgba(13,11,9,.88); border: 1px solid var(--bronze-l); transition: border-color .3s, transform .3s var(--ease-out), background .3s; }
.nitem:hover { border-color: var(--gold); transform: translateX(4px); background: rgba(30,22,15,.9); }
.nitem__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.nitem__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.nitem:hover .nitem__media img { transform: scale(1.08); }
.nitem__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nitem__title { margin: 0; font-size: 17px; line-height: 1.25; }
.nitem__title a { color: var(--gold-hi); text-decoration: none; }
.nitem__more { margin-top: auto; font: 700 11px var(--font-h); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }

/* ---------- D. KARTY BOHATERÓW ---------- */
.sect--classes { margin-top: var(--sect-pad); padding-bottom: var(--sect-pad); background: linear-gradient(rgba(5,4,3,0), rgba(14,10,8,.86) 14%, rgba(14,10,8,.86) 86%, rgba(5,4,3,0)); }
.heroes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); perspective: 1200px; }
.herocard { --rx: 0deg; --ry: 0deg; --gx: 50%; position: relative; aspect-ratio: 3 / 4.4; overflow: hidden; border: 1px solid var(--gold-lo); background: #0a0806;
  box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--bronze-l), 0 30px 60px rgba(0,0,0,.7);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .5s; }
.herocard:hover { transition: transform .12s linear, box-shadow .5s; }
.herocard__art { position: absolute; inset: 0; }
.herocard__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.02); transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.9) brightness(.92); }
.herocard:hover .herocard__art img { transform: scale(1.09) translateY(-1.5%); filter: saturate(1.1) brightness(1.04); }
.herocard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 38%, rgba(7,6,5,.7) 66%, rgba(7,6,5,.97)); }
.herocard__shine { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle at var(--gx) 20%, rgba(255,230,170,.28), transparent 45%); transition: opacity .4s; }
.herocard:hover .herocard__shine { opacity: 1; }
.herocard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 2vw, 30px); transform: translateZ(30px); }
.herocard__num { margin: 0 0 4px; font: 700 13px var(--font-h); letter-spacing: .3em; color: var(--red-hi); }
.herocard__name { margin: 0 0 10px; font-size: clamp(26px, 2.4vw, 42px); letter-spacing: .14em; text-transform: uppercase; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #000); }
.herocard__desc { margin: 0; color: var(--sand); font-size: 15px; line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s; }
.herocard:hover .herocard__desc, .herocard:focus-within .herocard__desc { max-height: 160px; opacity: 1; }
@media (hover: none) { .herocard__desc { max-height: none; opacity: 1; } }
.herocard--warrior:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #d24a32, 0 30px 60px rgba(0,0,0,.7), 0 0 50px rgba(210,74,50,.35); }
.herocard--ninja:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #4fb46c, 0 30px 60px rgba(0,0,0,.7), 0 0 50px rgba(79,180,108,.3); }
.herocard--sura:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #a04ad2, 0 30px 60px rgba(0,0,0,.7), 0 0 50px rgba(160,74,210,.35); }
.herocard--shaman:hover { box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #4a9ae0, 0 30px 60px rgba(0,0,0,.7), 0 0 50px rgba(74,154,224,.35); }

/* ---------- E. ŚWIAT ---------- */
.world { overflow: hidden; padding-bottom: var(--sect-pad); }
.world__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,4,3,.95) 0%, rgba(5,4,3,.72) 45%, rgba(5,4,3,.35) 100%), linear-gradient(#050403, transparent 18%, transparent 80%, #050403), url("/static/img/brand/bg-portal.webp") 70% 30% / cover no-repeat; }
.world__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 90px); align-items: center; padding-top: 10px; }
.world__about { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.75; color: var(--sand); margin: 18px 0 12px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pillar { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; background: linear-gradient(145deg, rgba(40,28,18,.78), rgba(10,8,6,.86)); border: 1px solid var(--bronze-l); border-top: 2px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0,0,0,.5); backdrop-filter: blur(4px); transition: transform .4s var(--ease-out), box-shadow .4s, border-color .3s; }
.pillar:hover { transform: translateY(-6px); border-color: var(--gold-lo); box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 30px rgba(201,162,77,.14); }
.pillar__num { font: 700 46px/1 var(--font-h); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #000); }
.pillar b { font-family: var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); }
.pillar span:last-child { color: var(--sand-d); font-size: 15px; }

/* ---------- F. RANKINGI ---------- */
.rankx { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.rcard { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 24px 20px; background: linear-gradient(rgba(26,20,15,.94), rgba(9,7,5,.97)); border: 1px solid var(--bronze-l);
  box-shadow: 0 0 0 4px rgba(7,6,5,.9), 0 0 0 5px rgba(124,90,36,.7), 0 22px 44px rgba(0,0,0,.55); transition: transform .4s var(--ease-out), box-shadow .4s; }
.rcard::before { content: ""; position: absolute; inset: -9px; pointer-events: none; background: var(--c-tl) top left / 40px no-repeat, var(--c-tr) top right / 40px no-repeat, var(--c-br) bottom right / 40px no-repeat, var(--c-bl) bottom left / 40px no-repeat; }
.rcard:hover { transform: translateY(-5px); box-shadow: 0 0 0 4px rgba(7,6,5,.9), 0 0 0 5px var(--gold), 0 28px 54px rgba(0,0,0,.65); }
.rcard__title { margin: 0; text-align: center; font-size: 20px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); }
.rcard__wait { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px dashed var(--gold-lo); background: rgba(0,0,0,.3); }
.rcard__wait p { margin: 0; font-size: 14px; color: var(--muted); }
.rcard__wait b { display: block; color: var(--gold-hi); font-family: var(--font-h); letter-spacing: .06em; margin-bottom: 2px; }
.rcard__wait .pending__icon { flex: 0 0 26px; height: 26px; margin-top: 4px; }
.rcard__wait .pending__icon::after { inset: 6px; }
.rcard__link { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(124,90,36,.4); text-align: center; font: 700 12px var(--font-h); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.rpod { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.rpod__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; text-align: center; background: rgba(0,0,0,.35); border: 1px solid var(--bronze-l); animation: podiumIn .55s var(--ease-out) both; }
.rpod__item--1 { order: 2; padding-top: 22px; border-color: #e8c25a; }
.rpod__item--2 { order: 1; animation-delay: .08s; } .rpod__item--3 { order: 3; animation-delay: .14s; }
.rpod__medal { display: grid; place-items: center; width: 40px; height: 40px; font: 700 17px var(--font-h); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rpod__item--1 .rpod__medal { background: linear-gradient(#fff0a8, #d9a72e); color: #2a1604; }
.rpod__item--2 .rpod__medal { background: linear-gradient(#fff, #9aa3ab); color: #1a1a1a; }
.rpod__item--3 .rpod__medal { background: linear-gradient(#f6b878, #9a5a26); color: #2a1004; }
.rpod__name { font-size: 14px; color: var(--gold-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rpod__val { font-size: 12px; color: var(--muted); }

/* ---------- G. WYDARZENIA ---------- */
.evx { margin-top: var(--sect-pad); padding: var(--sect-pad) 0; overflow: hidden; isolation: isolate; }
.evx__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.evx__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,4,3,.94), rgba(5,4,3,.6) 55%, rgba(5,4,3,.3)), linear-gradient(#050403, transparent 22%, transparent 78%, #050403); }
.evx__empty { max-width: 700px; padding: 30px 34px; background: rgba(7,6,5,.72); border: 1px solid var(--gold-lo); border-left: 4px solid var(--red-hi); backdrop-filter: blur(6px); }
.evx__empty-title { margin: 0 0 8px; font: 700 26px var(--font-h); color: var(--gold-hi); letter-spacing: .06em; }
.evx__empty p:last-child { margin: 0; color: var(--sand); }
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.evcard { position: relative; background: rgba(10,8,6,.92); border: 1px solid var(--gold-lo); overflow: hidden; transition: transform .4s var(--ease-out), border-color .3s; }
.evcard:hover { transform: translateY(-5px); border-color: var(--gold); }
.evcard__date { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 12px; background: linear-gradient(#c24a33, #6b1a12); border: 1px solid var(--gold); box-shadow: 0 8px 18px rgba(0,0,0,.6); }
.evcard__date b { font: 700 26px/1 var(--font-h); color: #fff3df; }
.evcard__date span { font-size: 11px; color: #ffd9c8; letter-spacing: .08em; }
.evcard__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.evcard__body { padding: 18px 20px 22px; }
.evcard__body h3 { margin: 8px 0 6px; font-size: 21px; color: var(--gold-hi); }
.evcard__body p:last-child { margin: 0; color: var(--sand); font-size: 15px; }

/* ---------- H. POBIERANIE ---------- */
.dlx { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: linear-gradient(rgba(22,17,12,.95), rgba(8,6,4,.98)); border: 1px solid var(--bronze-l); position: relative;
  box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px var(--gold-lo), 0 30px 64px rgba(0,0,0,.7); }
.dlx::before { content: ""; position: absolute; inset: -9px; pointer-events: none; z-index: 2; background: var(--c-tl) top left / 44px no-repeat, var(--c-tr) top right / 44px no-repeat, var(--c-br) bottom right / 44px no-repeat, var(--c-bl) bottom left / 44px no-repeat; }
.dlx__art { position: relative; overflow: hidden; min-height: 420px; }
.dlx__art > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.75); transition: transform 1.4s var(--ease-out); }
.dlx:hover .dlx__art > img:first-child { transform: scale(1.04); }
.dlx__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(8,6,4,.98)); }
.dlx__emblem { position: absolute; left: 50%; top: 50%; z-index: 1; width: clamp(140px, 14vw, 210px); height: auto; transform: translate(-50%, -50%); border-radius: 50%; filter: drop-shadow(0 16px 30px rgba(0,0,0,.9)); animation: logoFloat 7s ease-in-out infinite; }
.dlx__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 60px); }
.dlx__facts { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dlx__facts li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(124,90,36,.5); }
.dlx__facts span { font: 700 10.5px var(--font-h); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dlx__facts b { color: var(--sand); font-size: 15px; }
.dlx__sub { margin: 6px 0 0; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dlx__req { margin: 0; padding-left: 20px; color: var(--sand); }
.dlx__soon { margin: 0; padding: 12px 16px; border: 1px dashed var(--gold-lo); color: var(--sand-d); background: rgba(0,0,0,.3); }
.dlx .btn { align-self: flex-start; }
.is-cine .footer { margin-top: var(--sect-pad); }

/* ---------- spójność podstron ---------- */
.pbanner { min-height: clamp(300px, 40vh, 480px); }
.pbanner__title { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 0 rgba(0,0,0,.95)) drop-shadow(0 0 30px rgba(201,162,77,.25)); animation: riseIn .8s var(--ease-out) both; }
.pbanner__sub, .crumbs { animation: fadeIn .9s .2s both; }
.pbanner__img { animation: cineIn 2s var(--ease-out) both; }
.frame { transition: box-shadow .4s var(--ease-soft), transform .4s var(--ease-out); }
.tiles .tile { position: relative; overflow: hidden; }
.tiles .tile::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(241,215,154,.12), transparent 70%); }
.authscreen__bg { animation: cineIn 2.4s var(--ease-out) both; }

/* ---------- responsywność sekcji ---------- */
@media (max-width: 1200px) {
  .newsx { grid-template-columns: 1fr; }
  .newsx--solo .nlead { grid-template-columns: 1fr; }
  .newsx--solo .nlead__media { min-height: 0; aspect-ratio: 16 / 9; }
  .heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world__in { grid-template-columns: 1fr; }
  .dlx { grid-template-columns: 1fr; }
  .dlx__art { min-height: 300px; }
  .dlx__art::after { background: linear-gradient(transparent 50%, rgba(8,6,4,.98)); }
}
@media (max-width: 760px) {
  :root { --sect-pad: 64px; }
  .srv { margin-top: 18px; }
  .srv__item { flex: 1 1 45%; padding: 14px 14px; border-right: 0; border-bottom: 1px solid rgba(124,90,36,.3); }
  .srv__item--acc { flex-basis: 100%; justify-content: flex-start; border-bottom: 0; }
  .srv__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16,12,9,.95); }
  .sect__head { grid-template-columns: 1fr; }
  .sect__more { justify-self: start; }
  .nitem { grid-template-columns: 110px 1fr; }
  .heroes { grid-template-columns: 1fr; }
  .herocard { aspect-ratio: 4 / 4.6; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pillar { padding: 18px 14px; }
  .pillar__num { font-size: 34px; }
  .rpod__name { font-size: 12.5px; }
  .dlx__facts { grid-template-columns: 1fr; }
  .dlx .btn { align-self: stretch; }
  .evx__empty { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .pillars { grid-template-columns: 1fr; }
  .srv__item { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cine__rays, .cine__fog, .cine__glow, .cine__sparks { display: none !important; }
  .herocard { transform: none !important; }
  .herocard__desc { max-height: none; opacity: 1; }
}
/* karty klas: nowe ilustracje broni w spójnej czerwono-złotej palecie — jedna poświata dla wszystkich klas */
.herocard--warrior:hover, .herocard--ninja:hover, .herocard--sura:hover, .herocard--shaman:hover {
  box-shadow: 0 0 0 4px rgba(7,6,5,.95), 0 0 0 5px #e0503a, 0 30px 60px rgba(0,0,0,.7), 0 0 54px rgba(220,70,40,.38), 0 0 18px rgba(241,215,154,.25); }
.herocard__art img { object-position: 50% 40%; }
/* =====================================================================
   ETAP 11 — platforma graczy: forum, wiadomości, rangi, moderacja
   ===================================================================== */
.ico--bell { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a6 6 0 0 0-6 6v4l-2 4h16l-2-4V8a6 6 0 0 0-6-6zm-2 17a2 2 0 0 0 4 0z'/></svg>"); }
.ico--mail { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7l-8 5z'/></svg>"); }
.ico--quill { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 2C11 3 6 9 4 18l-2 4 2-1 2-4c4 0 8-2 10-6h-4l5-3c1-2 3-4 4-6z'/></svg>"); }
.ico--crown { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 7l5 4 5-7 5 7 5-4-2 12H4zm2 14h16v2H4z'/></svg>"); }
.ico--gem { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 3h12l4 6-10 12L2 9zm1.2 2L4.6 9h4.9l1.3-4zm5.9 0l1.3 4h4.9l-2.6-4zM9.7 9h4.6L12 5.6zM4.9 11l6.1 7.3L8.6 11zm6.1 0l1 7 2.6-7zm5.6 0l-2.4 7.3L19.1 11z'/></svg>"); }
.ico--user { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 12c5 0 9 2.5 9 6v2H3v-2c0-3.5 4-6 9-6z'/></svg>"); }
.ico--flag { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 2h2v20H4zm3 1h13l-3 5 3 5H7z'/></svg>"); }

.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; font: 700 11px var(--font-b); letter-spacing: 0; color: #fff3df; background: linear-gradient(#c8432e, #8f2a1c); box-shadow: 0 0 0 1px rgba(241,215,154,.5); }
.nav .nav__ico { gap: 8px; padding: 0 12px; }
.nav .nav__ico .ico { width: 20px; height: 20px; }
.nav .nav__ico .count { position: absolute; top: 4px; right: 0; margin: 0; }
@media (min-width: 981px) { .nav .nav__ico .nav__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 981px) and (max-width: 1500px) { .nav a { padding: 0 11px; letter-spacing: .08em; font-size: 12px; } .nav .nav__cta { margin-left: 6px; } }
@media (max-width: 980px) { .nav .nav__ico .count { position: static; margin-left: auto; } }

.inline { display: inline-flex; margin: 0; }
.inline .btn { margin-top: 0 !important; }
.form--row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form--row input, .form--row select { width: auto; flex: 1 1 180px; min-width: 0; }
.form--row .btn { margin-top: 0; }
.form--row .w-num, .w-num { flex: 0 1 120px; max-width: 140px; }
.form--row input[type=color] { flex: 0 0 52px; padding: 2px; min-height: 44px; }
.narrow { max-width: 860px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.h3 { font: 700 15px var(--font-h); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
.is-new { box-shadow: inset 3px 0 0 var(--gold); }

/* CAPTCHA */
.captcha { margin-top: 18px; }
.captcha__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.captcha__img { display: block; width: 210px; height: 70px; border: 1px solid var(--gold-lo); box-shadow: 0 0 0 3px rgba(0,0,0,.6); image-rendering: auto; }
.captcha__row input { flex: 1 1 140px; max-width: 220px; text-transform: uppercase; letter-spacing: .3em; font-weight: 700; }
.note { margin: 14px 0 0; }

/* rangi, emblematy, oznaczenia */
.rk { --c: #c9a24d; display: inline-block; padding: 2px 10px; font: 700 11px var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--c); border: 1px solid var(--c); background: rgba(0,0,0,.45); box-shadow: 0 0 10px rgba(0,0,0,.4) inset; }
.rk--big { font-size: 18px; padding: 6px 16px; }
.emblems { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.emb { --c: #c9a24d; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 6px; font-size: 11.5px; font-weight: 700; color: var(--c); border: 1px solid var(--c); border-radius: 2px; background: rgba(0,0,0,.5); }
.emb::before { content: ""; width: 9px; height: 9px; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 6px var(--c); }
.who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; }
.who a { color: var(--gold-hi); text-decoration: none; }
.who a:hover { text-decoration: underline; }
.who--admin a { color: #ff9a80; } .who--moderator a { color: #8cc4ff; }
.role { padding: 1px 7px; font: 700 10px var(--font-b); letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.role--admin { color: #ff9a80; border-color: rgba(255,154,128,.6); background: rgba(143,42,28,.35); }
.role--mod { color: #8cc4ff; border-color: rgba(140,196,255,.55); background: rgba(30,70,120,.35); }
.ava { display: block; width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--gold-lo); box-shadow: 0 0 0 3px rgba(0,0,0,.7), 0 6px 14px rgba(0,0,0,.6); background: #0b0907; }
.acct__id .ava { width: 64px; height: 64px; }
.ava--xl, .profile__head .ava { width: 128px; height: 128px; }
.progress { height: 14px; border: 1px solid var(--gold-lo); background: rgba(0,0,0,.6); box-shadow: inset 0 2px 6px rgba(0,0,0,.8); overflow: hidden; }
.progress__bar { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #7c5a24, #c9a24d 60%, #f1d79a); box-shadow: 0 0 12px rgba(241,215,154,.5); transition: width .8s var(--ease-out, ease); }
.bigrank { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 16px; }
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-bottom: 1px dashed rgba(124,90,36,.4); }
.ladder li.is-me { background: linear-gradient(90deg, rgba(201,162,77,.14), transparent); box-shadow: inset 3px 0 0 var(--gold); }
.bullets { margin: 0; padding-left: 20px; } .bullets li { margin: 6px 0; }
.emblist { list-style: none; margin: 0; padding: 0; }
.emblist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-bottom: 1px dashed rgba(124,90,36,.4); opacity: .6; }
.emblist li.is-owned { opacity: 1; }
.emblist b { margin-left: auto; }
.avaedit { display: flex; justify-content: center; margin-bottom: 12px; }

/* powiadomienia, listy postów */
.notifs, .plist, .side-list, .side-stats, .convs, .chat, .archive__list { list-style: none; margin: 0; padding: 0; }
.notif { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 12px 12px; border-bottom: 1px dashed rgba(124,90,36,.4); }
.notif__kind { font: 700 11px var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.notif__time { color: var(--muted); font-size: 13px; }
.plist li { padding: 12px 0; border-bottom: 1px dashed rgba(124,90,36,.4); display: flex; flex-direction: column; gap: 4px; }
.plist a { color: var(--gold-hi); text-decoration: none; } .plist a:hover { text-decoration: underline; }
.plist p { margin: 4px 0 0; color: var(--sand); overflow-wrap: anywhere; }
.side-list li { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px dashed rgba(124,90,36,.4); }
.side-list a { color: var(--gold-hi); text-decoration: none; overflow-wrap: anywhere; }
.side-list span { color: var(--muted); font-size: 12.5px; }
.side-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; }
.side-stats b { color: var(--gold-hi); }

/* forum */
.forum { padding: 40px 0 70px; }
.fsearch { display: flex; gap: 10px; margin: 0 0 24px; }
.fsearch input { flex: 1 1 auto; min-width: 0; }
.fsearch .btn { margin: 0; }
.forum__cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--gap); align-items: start; }
.forum__main { display: flex; flex-direction: column; gap: var(--gap); }
.forum__side { display: flex; flex-direction: column; gap: var(--gap); }
.flist, .tlist { list-style: none; margin: 0; padding: 0; }
.frow { display: grid; grid-template-columns: 46px minmax(0, 1fr) 120px 240px; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid rgba(124,90,36,.35); }
.frow:first-child { border-top: 0; }
.frow:hover { background: linear-gradient(90deg, rgba(201,162,77,.07), transparent); }
.frow__ico { width: 42px; height: 42px; background: radial-gradient(circle at 50% 35%, #f1d79a, #c9a24d 40%, #5a3d1c 75%); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 4h18v12H8l-5 4z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 4h18v12H8l-5 4z'/></svg>") center / contain no-repeat; }
.frow__ico--staff { background: radial-gradient(circle at 50% 35%, #ffb59f, #c8432e 45%, #5a1a10 80%); }
.frow__title { margin: 0; font: 700 17px var(--font-h); letter-spacing: .04em; }
.frow__title a { color: var(--gold-hi); text-decoration: none; } .frow__title a:hover { text-decoration: underline; }
.frow__desc { margin: 4px 0 0; color: var(--sand-d); font-size: 14px; }
.frow__subs { margin: 6px 0 0; font-size: 13px; color: var(--muted); } .frow__subs a { color: var(--gold); }
.frow__stats { font-size: 13px; color: var(--muted); text-align: right; } .frow__stats b { color: var(--sand); }
.frow__last { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.frow__last a { color: var(--gold); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__last span { color: var(--muted); }
.fbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.fbar__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px; gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid rgba(124,90,36,.35); }
.trow--pin { background: linear-gradient(90deg, rgba(201,162,77,.1), transparent 70%); }
.trow__title { margin: 0; font: 600 16px var(--font-b); overflow-wrap: anywhere; }
.trow__title a { color: var(--gold-hi); text-decoration: none; } .trow__title a:hover { text-decoration: underline; }
.trow__meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); } .trow__meta a { color: var(--gold); }
.trow__stats, .trow__last { font-size: 13px; color: var(--muted); } .trow__stats b { color: var(--sand); }
.modbox { margin: 0 0 18px; padding: 12px 16px; border: 1px dashed rgba(140,196,255,.5); background: rgba(30,70,120,.12); }
.modbox summary { cursor: pointer; font: 700 12px var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: #8cc4ff; }
.modbox form { margin-top: 12px; }
.posts { display: flex; flex-direction: column; gap: 18px; margin: 18px 0; }
.post { display: grid; grid-template-columns: 200px minmax(0, 1fr); border: 1px solid rgba(124,90,36,.6); background: linear-gradient(rgba(26,18,12,.92), rgba(10,8,6,.96)), var(--tex-stone); box-shadow: 0 10px 24px rgba(0,0,0,.5); scroll-margin-top: 110px; }
.post:target { box-shadow: 0 0 0 2px var(--gold), 0 10px 24px rgba(0,0,0,.5); }
.post__author { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 14px; text-align: center; border-right: 1px solid rgba(124,90,36,.45); background: rgba(0,0,0,.25); }
.post__author .ava { width: 72px; height: 72px; }
.post__author .emblems { justify-content: center; }
.post__stats { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.post__main { display: flex; flex-direction: column; min-width: 0; }
.post__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 20px; border-bottom: 1px solid rgba(124,90,36,.35); font-size: 13px; }
.post__time { color: var(--muted); text-decoration: none; }
.post__body { padding: 18px 20px; flex: 1; }
.post__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 20px 14px; border-top: 1px dashed rgba(124,90,36,.35); }
.post__reacts { margin-right: auto; color: var(--gold); font-weight: 700; }
.post__foot .btn { min-height: 34px; padding: 0 12px; }
.btn.is-on { color: #2a1604; background: linear-gradient(#f6e0a4, #c9a24d 55%, #a2742c); }
.prose { line-height: 1.65; overflow-wrap: anywhere; }
.prose p { margin: 0 0 12px; } .prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--gold-hi); }
.prose blockquote { margin: 10px 0 14px; padding: 10px 16px; border-left: 3px solid var(--gold); background: rgba(0,0,0,.35); color: var(--sand); }
.prose blockquote cite { display: block; margin-bottom: 6px; font-style: normal; font-weight: 700; color: var(--gold); font-size: 13px; }
.quotebox { padding: 14px 18px; border: 1px solid rgba(124,90,36,.5); background: rgba(0,0,0,.35); }
.editor__help { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.editor textarea { width: 100%; min-height: 180px; }
.archive__list li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(124,90,36,.4); }
.archive__list time { color: var(--muted); min-width: 92px; } .archive__list a { color: var(--gold-hi); }
.archive + .archive { margin-top: var(--gap); }
.evlink { margin-top: 18px; padding: 12px 16px; border: 1px solid var(--gold-lo); background: rgba(0,0,0,.25); }
.pager { justify-content: center; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; color: var(--sand); text-decoration: none; border: 1px solid rgba(124,90,36,.55); background: rgba(0,0,0,.35); }
.pager a:hover { color: var(--gold-hi); border-color: var(--gold); }
.pager a[aria-current="page"] { color: #2a1604; background: linear-gradient(#f6e0a4, #c9a24d 55%, #a2742c); border-color: #f6e0a4; }
.pager span { border-color: transparent; background: none; }

/* wiadomości prywatne */
.conv a { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 14px 12px; color: var(--sand); text-decoration: none; border-bottom: 1px dashed rgba(124,90,36,.4); }
.conv a:hover { background: rgba(201,162,77,.07); }
.conv b { color: var(--gold-hi); }
.conv__ex { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv time { color: var(--muted); font-size: 13px; }
.chat { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.msg { max-width: min(680px, 88%); padding: 12px 16px; border: 1px solid rgba(124,90,36,.55); background: rgba(0,0,0,.4); }
.msg--me { align-self: flex-end; border-color: var(--gold-lo); background: linear-gradient(rgba(74,50,32,.55), rgba(26,18,12,.7)); }
.msg__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.msg__head time { color: var(--muted); }
.msg__report { font-size: 12px; color: var(--muted); }

/* profil publiczny, sklep */
.profile { display: flex; flex-direction: column; gap: var(--gap); padding: 40px 0 70px; }
.profile__head { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-bottom: 18px; }
.profile__name { margin: 0 0 8px; font: 700 30px var(--font-h); }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.sitem { padding: 18px; border: 1px solid rgba(124,90,36,.6); background: rgba(0,0,0,.35); }
.sitem__name { margin: 0 0 4px; font: 700 16px var(--font-h); color: var(--gold-hi); }
.sitem__price { font: 700 20px var(--font-h); color: var(--gold); }

@media (max-width: 1200px) {
  .forum__cols { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 42px minmax(0, 1fr) 110px; }
  .frow__last { display: none; }
}
@media (max-width: 760px) {
  .forum, .profile { padding: 26px 0 50px; }
  .frow { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 14px; gap: 12px; }
  .frow__ico { width: 34px; height: 34px; }
  .frow__stats { grid-column: 2; text-align: left; }
  .trow { grid-template-columns: 1fr; gap: 6px; padding: 14px; }
  .trow__last br { display: none; }
  .post { grid-template-columns: 1fr; }
  .post__author { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; border-right: 0; border-bottom: 1px solid rgba(124,90,36,.45); padding: 12px 14px; }
  .post__author .ava { width: 48px; height: 48px; }
  .post__stats { width: 100%; }
  .post__head, .post__body, .post__foot { padding-left: 14px; padding-right: 14px; }
  .notif { grid-template-columns: 1fr; gap: 4px; }
  .conv a { grid-template-columns: 1fr; gap: 2px; }
  .msg { max-width: 100%; }
  .fsearch { flex-wrap: wrap; } .fsearch .btn { flex: 1 1 100%; }
  .form--row input, .form--row select { flex-basis: 100%; }
  .form--row .w-num { max-width: none; }
  .captcha__row input { max-width: none; }
  .profile__name { font-size: 24px; }
}.nav a { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1280px) { .nav a { padding: 0 8px; letter-spacing: .04em; font-size: 11.5px; } .brand__b { display: none; } }@media (min-width: 981px) and (max-width: 1380px) { .nav .nav__who { display: none; } }
@media (min-width: 981px) and (max-width: 1500px) { .nav .nav__home { display: none; } }
/* =====================================================================
   ETAP 12 — Centrum Pomocy, Encyklopedia, Pobieranie, Kalendarz, Gildie, Osiągnięcia
   ===================================================================== */
.portal.hub, .portal.wiki, .portal.calpage, .portal.guilds { display: block; padding: 40px 0 70px; margin-top: 0; }
.portal.hub > * + *, .portal.wiki > * + *, .portal.calpage > * + *, .portal.guilds > * + * { margin-top: var(--gap); }
.medal { display: inline-flex; align-items: center; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font-size: 13px; color: var(--sand); text-decoration: none; border: 1px solid rgba(124,90,36,.6); background: rgba(0,0,0,.35); }
.chip:hover, .chip.is-on { color: #2a1604; background: linear-gradient(#f6e0a4, #c9a24d 55%, #a2742c); border-color: #f6e0a4; }
.pin { color: var(--gold-hi); }

/* Centrum Pomocy */
.hub__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.hcard { display: flex; flex-direction: column; gap: 6px; padding: 20px; min-height: 120px; text-decoration: none; color: var(--sand);
  border: 1px solid rgba(124,90,36,.6); background: linear-gradient(rgba(42,27,16,.85), rgba(13,11,9,.95)), var(--tex-stone);
  transition: transform .25s var(--ease-out, ease), border-color .25s, box-shadow .3s; }
.hcard:hover, .hcard:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 26px rgba(0,0,0,.55); }
.hcard b { font: 700 16px var(--font-h); color: var(--gold-hi); letter-spacing: .04em; }
.hcard span:last-child { color: var(--muted); font-size: 13px; margin-top: auto; }
.hcard__ico { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f1d79a, #c9a24d 45%, #5a3d1c 80%); box-shadow: 0 0 12px rgba(201,162,77,.35); }
.hcard__ico--players, .hcard__ico--game_bug { background: radial-gradient(circle at 40% 35%, #ffb59f, #c8432e 50%, #5a1a10 85%); }
.hub__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.tlist2 { list-style: none; margin: 0; padding: 0; }
.tlist2 li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 11px 0; border-bottom: 1px dashed rgba(124,90,36,.4); }
.tlist2 a { color: var(--gold-hi); text-decoration: none; flex: 1 1 100%; } .tlist2 a:hover { text-decoration: underline; }
.tmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.pill--st-new, .pill--st-waiting { color: var(--wait); border-color: rgba(224,178,92,.55); }
.pill--st-in_progress { color: #8cc4ff; border-color: rgba(140,196,255,.5); }
.pill--st-waiting_player { color: #f1d79a; border-color: var(--gold-lo); }
.pill--st-resolved { color: var(--ok); border-color: rgba(140,207,116,.45); }
.pill--st-closed { color: var(--muted); }
.pill--pr-high { color: #ffb28a; border-color: rgba(255,178,138,.5); } .pill--pr-urgent { color: #fff; background: #8f2a1c; border-color: #c8432e; }
.tthread { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tmsg { padding: 14px 18px; border: 1px solid rgba(124,90,36,.55); background: rgba(0,0,0,.35); }
.tmsg--staff { border-color: var(--gold-lo); background: linear-gradient(rgba(74,50,32,.45), rgba(26,18,12,.65)); }
.tmsg--internal { border-style: dashed; border-color: rgba(140,196,255,.5); background: rgba(30,70,120,.14); }
.tmsg__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; font-size: 13.5px; }
.tmsg__head time { color: var(--muted); margin-left: auto; }
.tfiles { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.tfiles a { color: var(--gold); }

/* Encyklopedia */
.wiki--cols { display: grid !important; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--gap); align-items: start; }
.wiki--cols > * + * { margin-top: 0 !important; }
.wmain { min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.wnav { display: flex; flex-direction: column; gap: 2px; }
.wnav a { padding: 8px 10px; color: var(--sand); text-decoration: none; border-left: 2px solid transparent; font-size: 14.5px; }
.wnav a:hover, .wnav a[aria-current="page"] { color: var(--gold-hi); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(201,162,77,.12), transparent); }
.wprog__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.wprog__step { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 200px; padding: 14px 20px; text-decoration: none; text-align: center;
  border: 1px solid var(--gold-lo); background: radial-gradient(ellipse at top, rgba(200,67,46,.25), rgba(0,0,0,.5)); }
.wprog__step b { font: 700 16px var(--font-h); color: var(--gold-hi); letter-spacing: .05em; }
.wprog__step span { color: var(--sand-d); font-size: 13px; }
a.wprog__step:hover { border-color: var(--gold); }
.wprog__step--max { background: radial-gradient(ellipse at top, rgba(201,162,77,.3), rgba(0,0,0,.5)); }
.wprog__arrow { color: var(--gold); font-size: 22px; }
.wcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wcard { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 14px; row-gap: 4px; padding: 18px; text-decoration: none;
  border: 1px solid rgba(124,90,36,.6); background: linear-gradient(rgba(42,27,16,.85), rgba(13,11,9,.95)), var(--tex-stone); transition: transform .25s, border-color .25s; }
.wcard:hover, .wcard:focus-visible { transform: translateY(-3px); border-color: var(--gold); }
.wcard__ico { grid-row: 1 / 4; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; font: 700 22px var(--font-h); color: #2a1604;
  background: radial-gradient(circle at 40% 35%, #fff0b0, #c9a24d 50%, #7c5a24 85%); box-shadow: 0 0 0 2px #3a2614, 0 0 14px rgba(201,162,77,.4); }
.wcard__t { font: 700 16px var(--font-h); color: var(--gold-hi); letter-spacing: .03em; }
.wcard__d { color: var(--sand-d); font-size: 13.5px; line-height: 1.45; }
.wcard__n { color: var(--muted); font-size: 12px; }
.wlist { display: flex; flex-direction: column; gap: 10px; }
.witem { display: flex; gap: 14px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--sand); border: 1px solid rgba(124,90,36,.5); background: rgba(0,0,0,.35); }
.witem:hover { border-color: var(--gold); }
.witem__img { width: 120px; height: 68px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--gold-lo); }
.witem__ico { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; font: 700 20px var(--font-h); color: #2a1604;
  background: radial-gradient(circle at 40% 35%, #fff0b0, #c9a24d 50%, #7c5a24 85%); }
.witem__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.witem__body b { color: var(--gold-hi); }
.witem__sum { font-size: 14px; overflow-wrap: anywhere; }
.wlead { font-size: 17px; color: var(--text); margin-top: 0; }
.wparams { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.wparams th, .wparams td { padding: 10px 14px; border: 1px solid rgba(124,90,36,.45); text-align: left; vertical-align: top; }
.wparams th { width: 38%; color: var(--gold); font-weight: 600; background: rgba(0,0,0,.35); }
.wverify { margin-top: 18px; font-size: 13px; color: var(--muted); }
.wlink { color: var(--gold-hi); border-bottom: 1px dotted var(--gold); text-decoration: none; }
.wlink--missing { color: var(--muted); border-bottom-color: var(--muted); }
.aparams { display: flex; flex-direction: column; gap: 6px; }

/* Pobieranie */
.dlcur { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.dlcur__ver { margin: 0 0 8px; font: 700 20px var(--font-h); color: var(--gold-hi); }
.dlmeta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.dlmeta li { display: flex; flex-direction: column; } .dlmeta span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.dlmeta code, .dlhist code, .note code { font-size: 12.5px; overflow-wrap: anywhere; color: var(--sand); }
.dlmeta__sha { flex-basis: 100%; }
.dlchanges { margin-top: 16px; } .dlchanges summary, .faq summary, .dlhist summary { cursor: pointer; color: var(--gold-hi); }
.dlgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
#faq, #historia { margin-top: var(--gap); }
.faq details, .dlhist li { padding: 12px 0; border-bottom: 1px dashed rgba(124,90,36,.4); }
.faq .prose { margin-top: 8px; }
.dlhist { list-style: none; margin: 0; padding: 0; }

/* Kalendarz */
.calnav { margin-bottom: 14px; }
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; position: relative; z-index: 1; }
.calhead .frame__title { flex: 1; text-align: center; }
.calhead .btn { margin: 0; min-width: 44px; }
.calgrid { display: flex; flex-direction: column; border: 1px solid rgba(124,90,36,.5); }
.calgrid__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calgrid__row--head span { padding: 8px; text-align: center; font: 700 11px var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: rgba(0,0,0,.45); }
.calday { min-height: 108px; padding: 6px; border-top: 1px solid rgba(124,90,36,.35); border-left: 1px solid rgba(124,90,36,.25); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calday:first-child { border-left: 0; }
.calday--out { opacity: .4; }
.calday--today { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(201,162,77,.08); }
.calday__n { font-weight: 700; color: var(--sand); font-size: 13px; }
.calev { display: block; padding: 2px 6px; font-size: 12px; line-height: 1.35; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid var(--gold); background: rgba(201,162,77,.14); }
.calev--imp { border-left-color: var(--red-hi); background: rgba(200,67,46,.22); color: #fff3df; }
.calev--more { color: var(--muted); background: none; border: 0; }
.calweek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.calweek__day { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid rgba(124,90,36,.35); }
.calweek__h { margin: 0; font: 700 13px var(--font-h); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.calweek__h span { color: var(--muted); font-family: var(--font-b); letter-spacing: 0; }
.evlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.calweek .evlist, .calweek__day .evcard { grid-template-columns: 1fr; }
.evcard { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; text-decoration: none; color: var(--sand);
  border: 1px solid rgba(124,90,36,.5); background: rgba(0,0,0,.35); }
.evcard:hover { border-color: var(--gold); }
.evcard--imp { border-color: rgba(200,67,46,.7); box-shadow: inset 3px 0 0 var(--red-hi); }
.evcard__date { display: flex; flex-direction: column; align-items: center; padding: 6px 0; font-size: 11px; color: var(--muted); border: 1px solid var(--gold-lo); background: rgba(0,0,0,.4); }
.evcard__date b { font: 700 22px var(--font-h); color: var(--gold-hi); line-height: 1; }
.evcard__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evcard__body b { color: var(--gold-hi); overflow-wrap: anywhere; }
.evcard__body .tag { align-self: flex-start; }
.calweek .evcard { grid-template-columns: 1fr; } .calweek .evcard__date { display: none; }

/* Gildie */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gcard { display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; color: var(--sand); border: 1px solid rgba(124,90,36,.55);
  background: linear-gradient(rgba(42,27,16,.8), rgba(13,11,9,.95)); transition: border-color .25s, transform .25s; }
.gcard:hover { border-color: var(--gold); transform: translateY(-2px); }
.gcard__emb { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--gold-lo); flex-shrink: 0; }
.gcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gcard__body b { font: 700 17px var(--font-h); color: var(--gold-hi); overflow-wrap: anywhere; }
.gapp { padding: 12px 0; border-bottom: 1px dashed rgba(124,90,36,.4); }
.gfilter { margin: 0; }

/* Osiągnięcia */
.achgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.achgrid--mini { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ach { display: flex; gap: 14px; padding: 14px; border: 1px solid rgba(124,90,36,.45); background: rgba(0,0,0,.3); opacity: .72; }
.ach--on { opacity: 1; border-color: var(--gold-lo); background: linear-gradient(rgba(74,50,32,.35), rgba(13,11,9,.6)); }
.ach__medal { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; font: 700 22px var(--font-h);
  color: #6b5a40; background: radial-gradient(circle at 40% 35%, #5a4a34, #2a2016 70%); box-shadow: 0 0 0 2px #3a2a1a; }
.ach__medal--t1 { color: #2a1604; background: radial-gradient(circle at 40% 35%, #f0c9a0, #b87333 55%, #5a3417 90%); }
.ach__medal--t2 { color: #222; background: radial-gradient(circle at 40% 35%, #ffffff, #c0c0c8 55%, #5a5a66 90%); }
.ach__medal--t3, .ach__medal--t4, .ach__medal--t5, .ach__medal--t6 { color: #2a1604; background: radial-gradient(circle at 40% 35%, #fff0b0, #e2b341 55%, #7c5a24 90%); box-shadow: 0 0 0 2px #7c5a24, 0 0 16px rgba(241,215,154,.45); }
.ach__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ach__body b { color: var(--gold-hi); }
.ach__body p { margin: 0; }
.ach__tiers { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.ach__tiers span { padding: 1px 7px; border: 1px solid rgba(124,90,36,.5); color: var(--muted); }
.ach__tiers span.on { color: var(--gold-hi); border-color: var(--gold); }

@media (max-width: 1200px) {
  .wiki--cols { grid-template-columns: 1fr; }
  .wside { order: 2; }
  .hub__cols { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .calweek { grid-template-columns: 1fr; }
  .dlgrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .portal.hub, .portal.wiki, .portal.calpage, .portal.guilds { padding: 26px 0 50px; }
  .calday { min-height: 58px; padding: 3px; }
  .calev { font-size: 0; height: 6px; padding: 0; border-left: 0; background: var(--gold); border-radius: 3px; }
  .calev--imp { background: var(--red-hi); }
  .calev--more { font-size: 10px; height: auto; background: none; }
  .calgrid__row--head span { padding: 6px 0; letter-spacing: .04em; font-size: 10px; }
  .wprog__step { min-width: 0; flex: 1 1 100%; }
  .wprog__arrow { transform: rotate(90deg); }
  .witem__img { width: 80px; height: 45px; }
  .achgrid, .achgrid--mini, .ggrid, .evlist { grid-template-columns: 1fr; }
  .tmsg__head time { margin-left: 0; }
}
.article .ncard__meta { flex-wrap: wrap; row-gap: 6px; }
.article .ncard__meta time { white-space: normal; }
.portal.profile { align-items: stretch; }
.nav__adm .ico { display: none; }
@media (min-width: 981px) and (max-width: 1200px) {
  .nav .nav__adm { padding: 0 10px; }
  .nav__adm .ico { display: block; }
  .nav__adm .nav__lbl2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.adm__grid > * { min-width: 0; }
.form--row .check { flex: 1 1 220px; min-width: 0; margin: 0; }
.check span { min-width: 0; overflow-wrap: anywhere; }/* automatyczne dopasowanie nagłówka (site.js) — gdy pozycje menu się nie mieszczą */
@media (min-width: 981px) {
  .nav.is-tight a { padding: 0 9px; letter-spacing: .05em; font-size: 12px; }
  .nav.is-tight .nav__home, .nav.is-tight .nav__who { display: none; }
  .nav.is-tighter a { padding: 0 6px; letter-spacing: .02em; font-size: 11px; }
  .nav.is-tighter .nav__adm .ico { display: block; }
  .nav.is-tighter .nav__adm .nav__lbl2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar.is-tighter .brand__b { display: none; }
}/* pola formularzy poza panelem /admin (textarea, liczby, daty, pliki) — spójnie z polami tekstowymi */
textarea, input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=file] {
  width: 100%; min-height: 46px; padding: 10px 14px; font: 15px/1.6 var(--font-b); color: var(--sand);
  background: linear-gradient(#060504, #110d0a); border: 1px solid var(--bronze-l); border-radius: 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.85), 0 1px 0 rgba(241,215,154,.08); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
input[type=file] { padding: 9px 12px; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 14px; font: 700 12px var(--font-h); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-hi); background: linear-gradient(#3a271a, #1a110a); border: 1px solid var(--gold-lo); cursor: pointer; }
textarea:focus, input[type=number]:focus, input[type=date]:focus, input[type=datetime-local]:focus, input[type=url]:focus, input[type=file]:focus {
  border-color: var(--gold); outline: none; box-shadow: inset 0 2px 8px rgba(0,0,0,.85), 0 0 0 3px rgba(201,162,77,.25); }
input[type=color] { min-height: 40px; background: #0b0907; border: 1px solid var(--bronze-l); }
/* wąskie strony (formularze, zgłoszenia) — jedna kolumna zamiast siatki portalu */
.portal.narrow { display: block; margin-top: 0; padding: 40px 0 70px; margin-inline: auto; }
.portal.narrow > * + * { margin-top: var(--gap); }
@media (max-width: 760px) { .portal.narrow { padding: 26px 0 50px; } }/* nagłówek mobilny: długi podtytuł (wersja serwera z panelu) nie może wypchnąć przycisku menu */
@media (max-width: 980px) {
  .topbar__in { gap: 12px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand__txt { min-width: 0; }
  .brand__b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .22em; }
  .navtoggle { flex-shrink: 0; }
}
@media (max-width: 420px) {
  .brand { gap: 10px; }
  .brand__a { letter-spacing: .14em; }
  .brand__b { font-size: 9.5px; letter-spacing: .12em; }
}

/* === poprawka kalendarza (2026-11-19): karty wydarzeń na /kalendarz ===
   Starsza reguła .evcard__date (karty na stronie głównej) ustawia position:absolute — w kalendarzu data
   wypadała z siatki karty, a treść trafiała do kolumny 62 px (tytuł łamał się na litery). Zakres: tylko .calpage. */
.calpage .evcard__date { position: static; top: auto; left: auto; z-index: auto; box-shadow: none; }
.calpage .evlist { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.calpage .evcard__body b { overflow-wrap: break-word; line-height: 1.3; }
.calpage .evcard__body .muted { line-height: 1.45; }
@media (max-width: 980px) { .nav.open a:nth-child(7) { transition-delay: .18s; } }

.witem__icon { width: 32px; max-height: 96px; object-fit: contain; flex-shrink: 0; }
.wicon { float: right; max-width: 48px; max-height: 96px; margin: 0 0 .5rem 1rem; object-fit: contain; }

/* PANDRION_WEB_ETAP1 */
.wcard--soon { opacity: .62; cursor: default; }
.wcard--soon .wcard__n { font-style: italic; letter-spacing: .08em; }
.rank-since { margin: 14px 0 0; font-size: .9rem; }
.srvsum { margin: 0 0 14px; }
.evcard__cd { margin-left: 8px; font-size: .85rem; color: var(--gold-hi, #e6c36a); }
.dlx__facts code { font-size: .85em; }
.pwtoggle { margin: 6px 0 0; padding: 4px 12px; background: transparent; border: 1px solid var(--line, #3a2a1a); color: var(--gold-hi, #e6c36a); border-radius: 4px; font-size: .85rem; cursor: pointer; }
.pwtoggle:hover, .pwtoggle:focus-visible { border-color: var(--gold-hi, #e6c36a); }
.small { font-size: .85rem; }

/* PANDRION_WEB_ETAP3 — tylko transform/opacity; bez JS treść jest widoczna */
.fx-on .fx { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease-soft, ease) var(--fxd, 0s), translate .7s var(--ease-soft, ease) var(--fxd, 0s); will-change: opacity, translate; }   /* translate nie koliduje z transform kart (pochylanie) */
.fx-on .fx.fx-in { opacity: 1; translate: 0 0; will-change: auto; }
/* pulsująca kropka statusu „Online” (pierścień skalowany transformem) */
.led--on::before { position: relative; }
.srv__item--status .led--on { position: relative; }
.srv__item--status .led--on::after { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ledRing 2.4s ease-out infinite; pointer-events: none; }
@keyframes ledRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
/* połysk logo w nagłówku */
.brand { position: relative; overflow: hidden; }
.brand::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,226,150,.28), transparent); transform: translate3d(0, 0, 0) skewX(-18deg); opacity: 0; animation: brandShine 9s ease-in-out 3s infinite; pointer-events: none; }
@keyframes brandShine { 0%, 82% { transform: translate3d(0, 0, 0) skewX(-18deg); opacity: 0; } 86% { opacity: 1; } 100% { transform: translate3d(520%, 0, 0) skewX(-18deg); opacity: 0; } }
/* karty klas: wyraźny hover (transform) — dodatkowo do pochylania z JS */
@media (hover: hover) and (pointer: fine) { .herocard.fx-in:hover, .herocard:hover { translate: 0 -6px; } }
.evcard__cd { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .fx-on .fx { opacity: 1 !important; translate: none !important; transition: none !important; }
  .srv__item--status .led--on::after, .brand::after { animation: none !important; opacity: 0 !important; }
  .herocard:hover { translate: none !important; }
}
.srv__v--long { font-size: .78rem; line-height: 1.25; letter-spacing: .02em; }
