/* [PL] Królestwo Polskie – wersja 3: nowoczesna strona gry w stylu KCD II.
   Ciemny, ciepły węgiel i brąz na przemian z kremowym pergaminem; karmazyn jako jedyny akcent, stal jako neutralny;
   złoto tylko w herbie. Nagłówki: Eczar (ostry szeryf z klinowymi zakończeniami), interfejs i tekst: Archivo.
   Ruch: powolne przybliżenie grafiki w hero, hover, karuzela fachów, akordeon. Przy prefers-reduced-motion – bez ruchu. */

:root {
  --bg: #120e0b;
  --bg-2: #1a1410;
  --bg-3: #221a14;
  --bg-4: #2c231c;
  --on: #efe6d6;
  --on-2: #cdc1ad;
  --on-3: #a89b87;
  --line: rgba(239, 230, 214, 0.12);
  --line-2: rgba(239, 230, 214, 0.22);
  --cream: #efe6d4;
  --cream-2: #e7dcc6;
  --paper: #fbf6ec;
  --ink: #1c1611;
  --ink-2: #3f3428;
  --ink-3: #64553f;
  --line-ink: rgba(28, 22, 17, 0.15);
  --red: #a61f1a;
  --red-hi: #c0281f;
  --red-dk: #7c1612;
  --red-lt: #dc4a3d;
  --red-txt: #e8695b;
  --steel: #8d959d;
  --steel-2: #59616a;
  --ok: #3f7a3a;
  --f-d: "Eczar", Georgia, "Times New Roman", serif;
  --f-ui: "Archivo", system-ui, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --g: clamp(16px, 4vw, 56px);
  --bar-h: 68px;
  --max: 1320px;
  --leather: radial-gradient(120% 90% at 15% 0%, #3b2d22 0%, #261c15 55%, #1b140f 100%);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --diaper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 0L64 32L32 64L0 32Z' fill='none' stroke='%23efe6d6' stroke-opacity='.05'/%3E%3Cg fill='%23efe6d6' fill-opacity='.07'%3E%3Ccircle cx='32' cy='29.5' r='2'/%3E%3Ccircle cx='32' cy='34.5' r='2'/%3E%3Ccircle cx='29.5' cy='32' r='2'/%3E%3Ccircle cx='34.5' cy='32' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --diaper-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M36 0L72 36L36 72L0 36Z' fill='none' stroke='%23fff' stroke-opacity='.075'/%3E%3Cg fill='%23fff' fill-opacity='.08'%3E%3Ccircle cx='36' cy='33' r='2.3'/%3E%3Ccircle cx='36' cy='39' r='2.3'/%3E%3Ccircle cx='33' cy='36' r='2.3'/%3E%3Ccircle cx='39' cy='36' r='2.3'/%3E%3C/g%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 6px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--on); font: 400 17px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, kbd { font-family: var(--f-mono); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--on); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--red); }
::selection { background: var(--red); color: #fff; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--cream); color: var(--ink); font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * var(--g)); margin-inline: auto; }

/* ================================================================ typografia */
.h2 { font: 700 clamp(40px, 5.3vw, 84px)/0.95 var(--f-d); letter-spacing: -0.022em; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--red-lt); }
.light .h2 em { color: var(--red); }
.h3 { font: 700 clamp(24px, 2.1vw, 31px)/1.1 var(--f-d); letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.55; color: var(--on-2); max-width: 46ch; }
.light { color: var(--ink); }
.light .lead { color: var(--ink-2); }
.cmd { padding: 0.08em 0.42em; border-radius: 4px; font: 500 0.88em/1.4 var(--f-mono); white-space: nowrap; background: rgba(239, 230, 214, 0.08); border: 1px solid var(--line-2); }
.light .cmd { background: rgba(28, 22, 17, 0.05); border-color: var(--line-ink); color: var(--red-dk); }
kbd { display: inline-block; min-width: 1.9em; padding: 0.34em 0.5em 0.3em; border-radius: 5px; font: 650 0.78em/1 var(--f-ui); text-align: center; white-space: nowrap; color: var(--on); background: #2a221b; border: 1px solid #4b3e32; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.45); vertical-align: 0.08em; }
.light kbd { color: var(--ink); background: var(--paper); border-color: #bfae92; box-shadow: inset 0 -2px 0 #dccdb2; }

/* ================================================================ przyciski */
.btn { --notch: 9px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 7px; font: 650 15px/1 var(--f-ui); font-stretch: 86%; letter-spacing: 0.035em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.btn .i { width: 19px; height: 19px; }
.btn.red, .btn.cream { border-radius: 0; clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch)); }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-hi); }
.btn.red:active { transform: translateY(1px); }
.btn.cream { background: var(--cream); color: var(--ink); }
.btn.cream:hover { background: #fff; }
.btn.ghost { color: var(--on); background: rgba(16, 12, 10, 0.35); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.32); }
.btn.ghost:hover { background: rgba(239, 230, 214, 0.1); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.55); }
.btn.dark { color: var(--on); background: #2a211b; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.dark:hover { background: #362a21; }
.btn.sm { --notch: 7px; height: 38px; padding: 0 15px; font-size: 13.5px; }
.btn.lg { --notch: 11px; height: 56px; padding: 0 28px; font-size: 16px; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.btn.cream:focus-visible { outline-color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
[data-copy] .ic-ok { display: none; }
[data-copy].done .ic-copy { display: none; }
[data-copy].done .ic-ok { display: block; }

/* ================================================================ pasek górny */
.bar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar-h); color: var(--on); }
.bar::before { content: ""; position: absolute; inset: 0; background: rgba(15, 11, 9, 0.97); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 0.3s; }
.bar.stuck::before, .menu-open .bar::before { opacity: 1; }
.bar-in { position: relative; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); height: 100%; width: min(1440px, 100% - 2 * var(--g)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-width: 0; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.brand-name { padding-top: 2px; font: 700 19px/1 var(--f-d); letter-spacing: -0.005em; white-space: nowrap; }
.brand-pl { display: inline-block; margin-right: 3px; padding: 4px 5px 3px; border-radius: 3px; font: 700 11px/1 var(--f-ui); font-stretch: 85%; letter-spacing: 0.05em; color: #fff; background: var(--red); vertical-align: 3px; }
.bar-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.bar-nav a { position: relative; padding: 10px 11px; border-radius: 6px; font: 500 15px/1 var(--f-ui); color: var(--on-2); text-decoration: none; transition: color 0.2s; }
.bar-nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; background: var(--red-hi); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.bar-nav a:hover, .bar-nav a[aria-current="true"] { color: #fff; }
.bar-nav a:hover::after, .bar-nav a[aria-current="true"]::after { transform: scaleX(1); }
.bar-act { display: flex; align-items: center; gap: 10px; }
.bar-panel { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font: 500 14.5px/1 var(--f-ui); color: var(--on); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.2s, box-shadow 0.2s; }
.bar-panel:hover { background: rgba(239, 230, 214, 0.08); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.45); }
.bar-panel .i { width: 18px; height: 18px; }
.burger { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: rgba(15, 11, 9, 0.45); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.burger .i { width: 22px; height: 22px; }
.burger .ic-close, .burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }

.menu { position: fixed; inset: var(--bar-h) 0 0; z-index: 55; display: flex; flex-direction: column; gap: 28px; padding: 12px var(--g) 32px; overflow-y: auto; overscroll-behavior: contain; background: #0f0c0a; }
.menu-nav { display: grid; }
.menu-nav a { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font: 700 27px/1.1 var(--f-d); color: var(--on); text-decoration: none; }
.menu-nav a span { width: 22px; font: 500 13px var(--f-ui); color: var(--on-3); font-variant-numeric: tabular-nums; }
.menu-nav a[aria-current="true"] { color: var(--red-lt); }
.menu-foot { display: grid; gap: 10px; }
.menu-foot .btn { width: 100%; }

/* ================================================================ hero */
.hero { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: max(700px, 100svh); overflow: hidden; isolation: isolate; background: #0e0b09; }
.hero-art { position: absolute; inset: -2% 0 0; z-index: -2; will-change: transform; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 38%; transform-origin: 18% 40%; }
.motion .hero-art img { animation: hero-zoom 38s ease-in-out infinite alternate; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1.13); } }
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(10, 8, 6, 0.78) 0, rgba(10, 8, 6, 0) 170px),
  linear-gradient(90deg, rgba(12, 9, 7, 0.9) 0%, rgba(12, 9, 7, 0.62) 30%, rgba(12, 9, 7, 0) 56%),
  linear-gradient(0deg, #120e0b 0%, rgba(18, 14, 11, 0.86) 16%, rgba(18, 14, 11, 0) 50%); }
.hero-in { align-self: end; padding: calc(var(--bar-h) + 64px) 0 clamp(36px, 5vh, 60px); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vh, 34px); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font: 500 14px/1 var(--f-ui); color: var(--on); background: rgba(14, 11, 9, 0.62); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.22); white-space: nowrap; }
.pill.live { padding-left: 12px; }
.pill.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.pill.live.on i { background: #67c35f; }
.pill.live.off i { background: var(--red-lt); }
.motion .pill.live.on i { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { opacity: 0.45; } }
.hero-id { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.hero-crest { flex: none; width: clamp(84px, 11.5vw, 196px); height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); }
.hero-title { font: 700 clamp(52px, 7.4vw, 132px)/0.86 var(--f-d); letter-spacing: -0.03em; color: #f6efe3; }
.hero-pl { display: block; width: max-content; margin-bottom: 0.3em; padding: 6px 8px 5px; border-radius: 3px; font: 700 clamp(13px, 1.05vw, 16px)/1 var(--f-ui); font-stretch: 82%; letter-spacing: 0.06em; color: #fff; background: var(--red); }
.hero-name { display: block; }
.hero-name > span { display: block; }
.hero-lead { max-width: 37em; margin-top: clamp(22px, 3vh, 32px); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: #e9e0d0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: clamp(26px, 3.4vh, 38px); }
.addr { display: flex; align-items: stretch; min-height: 56px; overflow: hidden; border-radius: 9px; background: rgba(14, 11, 9, 0.66); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.28); }
.addr-txt { display: grid; align-content: center; gap: 2px; padding: 7px 16px; }
.addr-label { font-size: 12.5px; line-height: 1.2; color: var(--on-3); }
.addr-code { font: 600 15.5px/1.25 var(--f-mono); color: #fff; overflow-wrap: anywhere; }
.copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; border-left: 1px solid rgba(239, 230, 214, 0.2); font: 600 14.5px/1 var(--f-ui); color: var(--on); background: rgba(239, 230, 214, 0.07); cursor: pointer; transition: background-color 0.2s; }
.copy:hover { background: rgba(239, 230, 214, 0.15); }
.copy.done, .btn.done { background: var(--ok); color: #fff; }
.copy .i { width: 18px; height: 18px; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 26px; border-top: 1px solid var(--line-2); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 4vw, 60px); }
.hero-facts li { display: grid; gap: 1px; }
.hero-facts b { font: 700 18px/1.15 var(--f-d); }
.hero-facts span { font-size: 14px; color: var(--on-3); }
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--f-ui); color: var(--on-2); text-decoration: none; white-space: nowrap; }
.hero-scroll .i { transform: rotate(90deg); transition: transform 0.3s; }
.hero-scroll:hover { color: #fff; }
.hero-scroll:hover .i { transform: rotate(90deg) translateX(4px); }

/* ================================================================ liczby */
.numbers { background: var(--bg); border-bottom: 1px solid var(--line); }
.num-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.num-list li { display: grid; align-content: start; gap: 8px; padding: 30px 18px 32px; border-left: 1px solid var(--line); }
.num-list li:first-child { padding-left: 0; border-left: 0; }
.num-list b { font: 700 clamp(40px, 4.3vw, 64px)/0.9 var(--f-d); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.num-list span { font-size: 14.5px; line-height: 1.3; color: var(--on-3); }

/* ================================================================ sekcje */
.sec { position: relative; padding-block: clamp(84px, 10vw, 150px); }
.sec.dark { background: var(--bg); }
.sec.light { background: var(--noise), radial-gradient(90% 60% at 50% 0%, #f4ecdc 0%, var(--cream) 70%); }
.split-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); align-items: end; gap: 22px 56px; margin-bottom: clamp(36px, 4vw, 56px); }

/* ================================================================ świat */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.3fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.about .h2 { max-width: 15ch; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(32px, 4vw, 48px); }
.big-p { font: 500 clamp(19px, 1.55vw, 23px)/1.42 var(--f-d); color: var(--ink); }
.about-cols p:not(.big-p) { color: var(--ink-2); }
.about-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-ink); font-size: 15.5px; color: var(--ink-2); }
.about-note .i { margin-top: 3px; color: var(--red); stroke-width: 2.2; }
.charter { position: relative; padding: 26px 28px 18px; border-radius: 14px; color: var(--on); background: var(--noise), var(--leather); box-shadow: 0 34px 60px -26px rgba(50, 28, 10, 0.6); }
.charter::before, .stitch::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(239, 230, 214, 0.17); border-radius: 9px; pointer-events: none; }
.charter-hd { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.charter-hd img { width: 54px; height: auto; }
.charter-title { font: 700 27px/1.05 var(--f-d); }
.charter-hd p { margin-top: 3px; font-size: 14px; color: var(--on-3); }
.kv > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--on-3); }
.kv dd { font-weight: 500; }
.kv a { text-decoration-color: var(--red-lt); text-underline-offset: 3px; overflow-wrap: anywhere; }

.keep { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(64px, 8vw, 110px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line-ink); }
.keep-hd p { margin-top: 14px; color: var(--ink-2); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.slots li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-content: center; column-gap: 14px; padding: 14px; border-radius: 12px; background: rgba(255, 252, 245, 0.55); box-shadow: inset 0 0 0 1px var(--line-ink); }
.slots .slot { grid-row: span 2; }
.slots b { align-self: end; font: 700 17.5px/1.15 var(--f-d); }
.slots small { align-self: start; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--ink-3); }
.slot { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 9px; color: #eadfc9; background: linear-gradient(180deg, #2d241c, #18120e); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.16), inset 0 0 0 4px #18120e, inset 0 0 0 5px rgba(239, 230, 214, 0.07); }
.slot .i { width: 26px; height: 26px; stroke-width: 1.5; }

/* ================================================================ mozaika systemów */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 19.5vw, 292px); gap: 14px;
  grid-template-areas: "town town forge voice" "town town forge letter" "trade trade trade horse" "tree rp npc horse"; }
.t-town { grid-area: town; } .t-forge { grid-area: forge; } .t-voice { grid-area: voice; } .t-letter { grid-area: letter; }
.t-trade { grid-area: trade; } .t-horse { grid-area: horse; } .t-tree { grid-area: tree; } .t-rp { grid-area: rp; } .t-npc { grid-area: npc; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; border-radius: 16px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.tile-body { position: relative; z-index: 2; display: grid; justify-items: start; gap: 9px; padding: clamp(18px, 1.7vw, 26px); }
.tile-title { font: 700 clamp(24px, 1.95vw, 31px)/1.05 var(--f-d); letter-spacing: -0.01em; }
.t-town .tile-title { font-size: clamp(34px, 3.5vw, 56px); }
.tile p { max-width: 54ch; font-size: 15.5px; line-height: 1.5; color: var(--on-2); }
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.stretch:focus-visible { outline: 0; }
.tile:has(.stretch:focus-visible) { outline: 2px solid var(--on); outline-offset: 3px; }
.tile-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font: 600 14.5px/1 var(--f-ui); color: var(--on); }
.tile-go .i { transition: transform 0.25s; }
.tile:hover .tile-go .i { transform: translateX(5px); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font: 500 13px/1.15 var(--f-ui); color: var(--on); background: rgba(14, 11, 9, 0.6); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip code { font: 500 13px/1 var(--f-mono); }
.chip kbd { font-size: 11px; }
.pic .tile-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--x, 50%) var(--y, 50%); transform: scale(var(--z, 1)); transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pic:hover .tile-img { transform: scale(calc(var(--z, 1) * 1.05)); }
.pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 11, 9, 0.95) 0%, rgba(14, 11, 9, 0.72) 36%, rgba(14, 11, 9, 0) 70%); }
.t-town { --x: 0%; --y: 40%; --z: 1.42; --ox: 6%; --oy: 44%; }
.t-forge { --x: 50%; --y: 30%; --z: 1.08; --ox: 52%; --oy: 26%; }
.t-trade { --x: 100%; --y: 47%; --z: 2.6; --ox: 99%; --oy: 48%; }
.t-trade::before { background: linear-gradient(90deg, rgba(14, 11, 9, 0.94) 0%, rgba(14, 11, 9, 0.78) 42%, rgba(14, 11, 9, 0) 78%); }
.t-trade .tile-body { max-width: 640px; height: 100%; align-content: end; }
.t-horse { --x: 78%; --y: 50%; --z: 1.6; --ox: 78%; --oy: 100%; justify-content: flex-start; }
.t-horse::before { background: linear-gradient(180deg, rgba(14, 11, 9, 0.95) 0%, rgba(14, 11, 9, 0.74) 40%, rgba(14, 11, 9, 0) 68%); }
.comp { background: radial-gradient(110% 90% at 85% 10%, #2f251d 0%, #1d1611 70%); }
.comp-art { position: absolute; z-index: -1; pointer-events: none; }
.voice-art { right: -14%; top: -18%; width: 82%; }
.va-area { fill: rgba(192, 40, 31, 0.24); stroke: var(--red-hi); stroke-width: 1.3; transition: r 0.6s; }
.va-rings circle { fill: none; stroke: rgba(200, 206, 211, 0.24); stroke-width: 0.8; stroke-dasharray: 2 3; }
.va-me { fill: var(--red); }
.va-mic { fill: none; stroke: #fff; stroke-width: 1.8; }
.va-dots circle { fill: #8d959d; }
.tile:hover .va-area { r: 54px; }
.letter-art { right: 2%; top: 3%; width: 50%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover .letter-art { transform: rotate(-3deg) translateY(-4px); }
.la-paper { fill: #e9dcc2; }
.la-fold { fill: none; stroke: rgba(60, 40, 20, 0.35); stroke-width: 1.2; }
.la-line { fill: none; stroke: rgba(60, 40, 20, 0.45); stroke-width: 2; stroke-linecap: round; }
.la-wax, .wax path { fill: url(#waxg); }
.la-ring, .wax circle { fill: none; stroke: rgba(40, 0, 0, 0.35); stroke-width: 1.4; }
.la-crown, .wax use { fill: none; stroke: #f4d9cc; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tree-art { right: 6%; top: 5%; width: 28%; }
.ta-links path { fill: none; stroke: rgba(200, 206, 211, 0.32); stroke-width: 1.6; }
.ta-node rect { fill: #1b1511; stroke: rgba(200, 206, 211, 0.55); stroke-width: 1.6; }
.ta-node.on rect { fill: var(--red); stroke: #f0c9bf; }
.ta-lv text { font: 600 12px var(--f-ui); fill: var(--on-3); }
.t-rp { color: var(--ink); background: var(--noise), var(--cream); box-shadow: none; }
.t-rp p { color: var(--ink-2); }
.t-rp .tile-body { height: 100%; align-content: space-between; }
.rp-cmds { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 700 clamp(19px, 1.7vw, 24px)/1.2 var(--f-mono); color: var(--red); }
.rp-cmds code { font: inherit; }
.t-rp .stretch::after { border-radius: 16px; }
.t-npc { background: radial-gradient(100% 80% at 100% 0%, #3a1a15 0%, #1d1511 70%); }
.t-npc .tile-body { height: 100%; align-content: space-between; }
.keycap { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 12px; border-radius: 10px; font: 700 21px/1 var(--f-ui); color: var(--on); background: linear-gradient(180deg, #3a2f26, #251d17); box-shadow: inset 0 0 0 1px #5a4a3c, inset 0 -4px 0 rgba(0, 0, 0, 0.45), 0 2px 0 #0b0806; }

/* ================================================================ moje miasto */
.sec.herald { background: var(--diaper), linear-gradient(180deg, #1c1511 0%, #130f0c 100%); }
.town-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: end; gap: 22px 56px; }
.court { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(44px, 5vw, 68px); }
.court li { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 32px 18px 28px; border-radius: 16px; text-align: center; background: rgba(239, 230, 214, 0.035); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s, transform 0.3s; }
.court li:hover { background: rgba(239, 230, 214, 0.06); transform: translateY(-3px); }
.court b { font: 700 clamp(22px, 1.9vw, 27px)/1.1 var(--f-d); }
.court small { max-width: 22ch; font-size: 14.5px; line-height: 1.4; color: var(--on-3); }
.arms { width: clamp(78px, 7.2vw, 108px); height: auto; margin-bottom: 14px; overflow: visible; }
.arms .f, .job-arms .f { fill: var(--red); }
.arms .d { fill: #4d555d; }
.a-castle .f { fill: #4d555d; }
.a-castle .d { fill: var(--red); }
.arms .c, .job-arms .c { fill: none; stroke: #f3e8d4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arms .o { fill: none; stroke: #d9ccb4; stroke-width: 3; }
.town-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 80px); align-items: start; margin-top: clamp(56px, 6vw, 92px); }
.ranks > p { max-width: 54ch; margin-top: 12px; color: var(--on-2); }
.stair { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 8px; margin-top: 30px; }
.stair li { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-width: 0; }
.stair li::before { content: ""; order: 1; height: calc(var(--h) * 24px + 10px); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #4a4038, #2b231d); box-shadow: inset 0 1px 0 rgba(239, 230, 214, 0.18); }
.stair li.top::before { background: linear-gradient(180deg, var(--red-hi), var(--red-dk)); }
.stair i { order: 0; font: 700 18px/1 var(--f-d); font-style: normal; color: var(--on-3); }
.stair li.top i { color: var(--red-txt); }
.stair b { order: 2; font: 600 14px/1.2 var(--f-ui); overflow-wrap: anywhere; }
.town-side { display: grid; gap: 22px; }
.deed { position: relative; display: flex; align-items: center; gap: 20px; padding: 26px 26px 24px; border-radius: 4px; color: var(--ink); background: var(--noise), var(--cream); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.75); }
.deed::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(28, 22, 17, 0.2); pointer-events: none; }
.deed-txt { flex: 1; min-width: 0; }
.deed-title { font: 700 24px/1.1 var(--f-d); }
.deed-price { margin: 6px 0 8px; font: 700 clamp(24px, 2.2vw, 30px)/1.1 var(--f-d); color: var(--red); }
.deed-price span { color: var(--ink-3); }
.deed p:last-child { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.wax { flex: none; width: 82px; height: 82px; filter: drop-shadow(0 4px 5px rgba(60, 10, 0, 0.35)); }
.wax use { stroke-width: 1.4; }
.town-rows li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.town-rows li:first-child { border-top: 1px solid var(--line); }
.town-rows .i { width: 22px; height: 22px; margin-top: 4px; color: var(--red-lt); }
.town-rows b { font: 700 19px/1.2 var(--f-d); }
.town-rows small { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--on-3); }
.keys-line { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--on-3); }
.keys-line kbd { margin-right: 6px; }

/* ================================================================ fachy: karuzela */
.rail-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 3.5vw, 48px); }
.rail-hd .lead { margin-top: 20px; }
.rail-ctl { display: flex; gap: 10px; flex: none; }
.rail-btn { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 10px; color: var(--on); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.rail-btn:hover:not([disabled]) { background: var(--red); box-shadow: none; }
.rail-btn[disabled] { opacity: 0.3; cursor: default; }
.rail-btn .i { width: 22px; height: 22px; }
.rail { --pad: max(var(--g), calc((100% - var(--max)) / 2)); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: rgba(239, 230, 214, 0.25) transparent; }
.rail:focus-visible { outline-offset: -2px; }
.rail.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.jobs { display: flex; gap: 16px; width: max-content; padding: 6px var(--pad) 26px; }
.job { position: relative; display: flex; flex-direction: column; width: clamp(256px, 21vw, 296px); min-height: 352px; padding: 24px 24px 22px; border-radius: 16px; scroll-snap-align: start; background: linear-gradient(180deg, #2a2019 0%, #1c1510 100%); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s; }
.job::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(239, 230, 214, 0.1); border-radius: 10px; pointer-events: none; }
.job:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(192, 40, 31, 0.75); }
.job-n { position: absolute; right: 24px; top: 24px; font: 600 14px/1 var(--f-ui); color: var(--on-3); font-variant-numeric: tabular-nums; }
.job-arms { width: 62px; height: auto; margin: 2px 0 30px; }
.job h3 { font: 700 31px/1 var(--f-d); letter-spacing: -0.01em; }
.job p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--on-2); }
.job .job-tool { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--on-3); }
.job-tool b { font-weight: 600; color: var(--on); }
.guild { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px 40px; align-items: center; margin-top: clamp(32px, 4vw, 52px); }
.guild-t { font: 700 21px/1.2 var(--f-d); }
.guild-bar { display: flex; gap: 4px; }
.guild-bar li { flex: var(--w) 1 0; min-width: 0; padding: 12px 14px 11px; background: rgba(239, 230, 214, 0.045); border-top: 3px solid var(--steel-2); }
.guild-bar li:nth-child(2) { border-top-color: #7d6f63; }
.guild-bar li:nth-child(3) { border-top-color: #9b5b4a; }
.guild-bar li.top { border-top-color: var(--red-hi); background: rgba(166, 31, 26, 0.16); }
.guild-bar li:first-child { border-radius: 0 0 0 8px; }
.guild-bar li:last-child { border-radius: 0 0 8px 0; }
.guild-bar b { display: block; font: 700 17px/1.2 var(--f-d); }
.guild-bar small { font-size: 13.5px; color: var(--on-3); }
.guild-note { grid-column: 2; font-size: 15px; color: var(--on-2); }

/* ================================================================ rzemiosła: kuźnia */
.forge { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 780px; background: var(--bg-2); }
.forge-art { position: relative; min-height: 520px; overflow: hidden; isolation: isolate; }
.forge-art > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 46% 30%; }
.forge-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 9, 7, 0.92) 0%, rgba(12, 9, 7, 0.4) 34%, rgba(12, 9, 7, 0) 56%), linear-gradient(270deg, var(--bg-2) 0%, rgba(26, 20, 16, 0) 22%); }
.lvl-show { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 16px; padding: 0 var(--g) clamp(24px, 3vw, 40px); }
.hud-lvl { position: relative; width: min(620px, 100%); padding: 18px 40px 16px; text-align: center; background: linear-gradient(90deg, rgba(10, 8, 6, 0) 0%, rgba(10, 8, 6, 0.9) 16%, rgba(10, 8, 6, 0.9) 84%, rgba(10, 8, 6, 0) 100%); }
.hud-lvl::before, .hud-lvl::after { content: ""; position: absolute; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, rgba(220, 74, 61, 0), rgba(220, 74, 61, 0.85) 30%, rgba(220, 74, 61, 0.85) 70%, rgba(220, 74, 61, 0)); }
.hud-lvl::before { top: 0; }
.hud-lvl::after { bottom: 0; }
.lvl-kicker { display: block; font-size: 13.5px; color: var(--on-3); }
.lvl-name { margin-top: 4px; font: 700 clamp(24px, 2.2vw, 32px)/1.1 var(--f-d); color: #fff; }
.lvl-rank { display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 4px; font: 650 14px/1.2 var(--f-ui); color: var(--on); background: rgba(239, 230, 214, 0.1); }
.lvl-rank.new { color: #fff; background: var(--red); }
.lvl-perks { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--on-2); }
.motion .hud-lvl.in { animation: lvl-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes lvl-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.lvl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.lvl-cap { font-size: 14px; color: var(--on-2); text-align: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(10, 8, 6, 0.8); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 6px; font: 600 14px/1 var(--f-ui); color: var(--on-2); background: transparent; cursor: pointer; }
.seg button[aria-pressed="true"] { color: #fff; background: var(--red); }
.forge-txt { align-self: center; max-width: 720px; padding: clamp(64px, 7vw, 110px) var(--g) clamp(64px, 7vw, 110px) clamp(36px, 4.5vw, 76px); }
.forge-txt .lead { margin-top: 20px; }
.crafts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 34px; }
.crafts li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.crafts .i { grid-row: span 2; width: 24px; height: 24px; color: var(--red-lt); stroke-width: 1.6; }
.crafts b { font: 700 18px/1.2 var(--f-d); }
.crafts small { font-size: 14px; color: var(--on-3); }
.ruler { margin-top: 40px; }
.ruler-track { position: relative; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(239, 230, 214, 0.26) 0 1px, transparent 1px calc(100% / 19)), #2b231d; }
.ruler-track i { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, rgba(89, 97, 106, 0.85), rgba(192, 40, 31, 0.9)); mix-blend-mode: screen; opacity: 0.7; }
.ruler-marks { position: relative; height: 72px; margin-top: 4px; }
.ruler-marks li { position: absolute; left: calc(var(--p) / 19 * 100%); top: 0; display: grid; justify-items: center; width: max-content; max-width: 5.3em; transform: translateX(-50%); padding-top: 12px; text-align: center; }
.ruler-marks li::before { content: ""; position: absolute; top: -12px; left: 50%; width: 2px; height: 18px; margin-left: -1px; background: var(--on); }
.ruler-marks li:first-child { justify-items: start; transform: none; text-align: left; }
.ruler-marks li:first-child::before { left: 0; margin-left: 0; }
.ruler-marks li:last-child { justify-items: end; transform: translateX(-100%); text-align: right; }
.ruler-marks li:last-child::before { left: auto; right: 0; }
.ruler-marks b { font: 700 15.5px/1.15 var(--f-d); }
.ruler-marks small { font-size: 13px; color: var(--on-3); }
.ruler-marks li.top b { color: var(--red-txt); }

/* ================================================================ narzędzia */
.tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.tools-hd .lead { margin-top: 20px; }
.tool-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.tool-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: center; column-gap: 12px; padding: 10px; border-radius: 12px; background: rgba(255, 252, 245, 0.55); box-shadow: inset 0 0 0 1px var(--line-ink); }
.tool-list .slot { grid-row: span 2; width: 48px; height: 48px; }
.tool-list .slot .i { width: 22px; height: 22px; }
.tool-list b { align-self: end; font: 700 16.5px/1.15 var(--f-d); }
.tool-list small { font-size: 13.5px; color: var(--ink-3); }
.upg { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: 18px; color: var(--on); background: var(--noise), var(--leather); box-shadow: 0 40px 70px -30px rgba(50, 28, 10, 0.65); }
.upg::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed rgba(239, 230, 214, 0.15); border-radius: 11px; pointer-events: none; }
.upg-hd { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 18px; }
.slot.big { width: 76px; height: 76px; border-radius: 12px; }
.slot.big .i { width: 36px; height: 36px; }
.upg-for { font-size: 14px; color: var(--on-3); }
.upg-title { font: 700 clamp(30px, 3vw, 42px)/1 var(--f-d); letter-spacing: -0.015em; }
.upg-perk { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: rgba(166, 31, 26, 0.2); box-shadow: inset 0 0 0 1px rgba(220, 74, 61, 0.4); }
.upg-perk b { font: 800 36px/1 var(--f-d); color: #fff; }
.upg-perk span { font-size: 15px; line-height: 1.4; color: var(--on-2); }
.tiers { position: relative; display: grid; gap: 6px; margin-top: 22px; }
.tiers li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px 13px 12px; border-radius: 10px; background: rgba(239, 230, 214, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.tiers li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--steel-2); }
.tiers li:nth-child(2)::before { background: #7d6f63; }
.tiers li:nth-child(3)::before { background: #9b5b4a; }
.tiers li:nth-child(4)::before { background: var(--red-hi); }
.tiers li.on { background: rgba(239, 230, 214, 0.1); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.28); }
.tiers i { font: 700 22px/1 var(--f-d); font-style: normal; text-align: center; color: var(--on-3); }
.tiers li.on i { color: var(--on); }
.tiers b { font: 700 18px/1.2 var(--f-d); }
.tiers small { font-size: 14px; line-height: 1.35; text-align: right; color: var(--on-2); white-space: nowrap; }
.upg-note { margin-top: 20px; font-size: 14.5px; line-height: 1.55; color: var(--on-3); }

/* ================================================================ głos */
.sec.steel { background: radial-gradient(70% 70% at 22% 50%, #22201e 0%, #141210 72%); }
.voice { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.dial { margin: 0; }
.dial-plate { padding: 4%; border-radius: 50%; aspect-ratio: 1; background: radial-gradient(circle, #23201d 0%, #171513 72%); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.dial svg { width: 100%; height: auto; overflow: visible; }
.dial .area { fill: rgba(192, 40, 31, 0.24); stroke: var(--red-lt); stroke-width: 2; transition: r 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.dial .rings circle { fill: none; stroke: rgba(200, 206, 211, 0.2); stroke-width: 1.2; stroke-dasharray: 3 6; transition: stroke 0.3s; }
.dial .rings circle.in { stroke: rgba(200, 206, 211, 0.34); }
.dial .rings circle.on { stroke: transparent; }
.dial .cross { stroke: rgba(200, 206, 211, 0.07); stroke-width: 1; }
.dial .person circle, .dial .person path { fill: none; stroke: #6f777f; stroke-width: 2.2; transition: stroke 0.3s; }
.dial .person.hear circle, .dial .person.hear path { stroke: var(--on); }
.dial .labels rect { fill: #1b1816; stroke: rgba(200, 206, 211, 0.22); }
.dial .labels text { font: 600 11px var(--f-ui); fill: var(--on-3); text-anchor: middle; }
.dial .labels g.on rect { fill: var(--red); stroke: none; }
.dial .labels g.on text { fill: #fff; }
.dial .me circle { fill: var(--red); }
.dial .me use { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.dial figcaption { display: grid; justify-items: center; gap: 2px; margin-top: 18px; text-align: center; }
.dial-read { font-weight: 600; }
.dial-note { font-size: 13.5px; color: var(--on-3); }
.voice-side .lead { margin-top: 20px; }
.ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
.range { display: grid; gap: 3px; padding: 14px 16px 13px; border: 0; border-radius: 10px; text-align: left; background: rgba(239, 230, 214, 0.045); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s; }
.range:hover { background: rgba(239, 230, 214, 0.08); }
.range b { font: 700 22px/1 var(--f-d); }
.range span { font-weight: 600; font-size: 15px; line-height: 1.2; }
.range small { font-size: 13px; line-height: 1.2; color: var(--on-3); }
.range[aria-pressed="true"] { background: var(--red); box-shadow: none; color: #fff; }
.range[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.85); }
.hud-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-top: 14px; }
.hs-screen { position: relative; display: grid; place-items: center; min-height: 150px; overflow: hidden; border-radius: 12px; background: linear-gradient(rgba(10, 8, 6, 0.35), rgba(10, 8, 6, 0.6)), url(img/tlo-kcd.jpg) 28% 92% / 300% auto no-repeat, #1b1612; box-shadow: inset 0 0 0 1px var(--line); }
.hs-idle { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px 24px 34px; font-size: 14px; text-align: center; color: var(--on-2); opacity: 0; transition: opacity 0.3s; }
.hs-screen:has(.voice-ind.away) .hs-idle { opacity: 1; }
.voice-ind { transition: opacity 0.35s, transform 0.35s; margin-bottom: 14px; }
.voice-ind.away { opacity: 0; transform: translateY(6px); }
.plaque { display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; background: rgba(10, 8, 6, 0.82); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.2); transition: box-shadow 0.3s; }
.plaque.flash { box-shadow: inset 0 0 0 1.5px var(--red-lt); }
.v-medal { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; }
.v-medal .i { width: 19px; height: 19px; }
.wave { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(220, 74, 61, 0.7); opacity: 0; }
.motion .voice-ind.talking .wave { animation: wave 1.6s ease-out infinite; }
.motion .voice-ind.talking .w2 { animation-delay: 0.8s; }
@keyframes wave { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.v-txt b { display: block; font: 700 17px/1.15 var(--f-d); }
.v-txt small { display: block; font-size: 13px; color: var(--on-2); }
.hs-health { position: absolute; left: 50%; bottom: 16px; width: 44%; height: 6px; transform: translateX(-50%); border-radius: 3px; background: rgba(10, 8, 6, 0.7); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, 0.2); }
.hs-health i { position: absolute; inset: 1px 18% 1px 1px; border-radius: 2px; background: var(--red-hi); }
.hs-keys { display: grid; align-content: start; gap: 8px; width: 210px; }
.kbd-btn { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px; text-align: left; background: rgba(239, 230, 214, 0.045); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; transition: background-color 0.2s; }
.kbd-btn:hover { background: rgba(239, 230, 214, 0.09); }
.kbd-btn kbd { font-size: 13px; transition: transform 0.1s; }
.kbd-btn span { font-size: 13.5px; color: var(--on-2); }
.kbd-btn[aria-pressed="true"] { background: var(--red); }
.kbd-btn[aria-pressed="true"] span { color: #fff; }
.kbd-btn.pressed kbd, .kbd-btn[aria-pressed="true"] kbd { transform: translateY(2px); box-shadow: none; }
.hs-cap { font-size: 13px; line-height: 1.4; color: var(--on-3); }

/* ================================================================ odgrywanie */
.rp-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 22px 56px; margin-bottom: clamp(36px, 4vw, 56px); }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.chat-show { margin: 0; }
.chat-screen { display: flex; flex-direction: column; min-height: 380px; padding: 16px; border-radius: 16px; background: linear-gradient(rgba(10, 8, 6, 0.42), rgba(10, 8, 6, 0.7)), url(img/kuznia-kcd.jpg) 22% 55% / cover no-repeat, #201812; box-shadow: 0 34px 60px -28px rgba(50, 28, 10, 0.6); }
.views { display: flex; flex-wrap: wrap; gap: 4px; }
.views button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 6px; font: 600 13.5px/1 var(--f-ui); color: #d8cebd; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); cursor: pointer; }
.views button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.views button[aria-selected="true"] { color: #fff; background: rgba(0, 0, 0, 0.82); box-shadow: inset 0 0 0 1px var(--c); }
.lines { flex: 1; display: grid; align-content: end; gap: 5px; margin-top: 10px; padding: 14px 16px; border-radius: 10px; font: 500 15px/1.45 var(--f-ui); color: #f2ebdc; background: rgba(0, 0, 0, 0.58); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.line .author { margin-right: 5px; font-weight: 700; }
.line .author::after { content: ":"; }
.chat-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 13px; color: #d4cab8; }
.chat-show figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cmds { display: grid; }
.cmd-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line-ink); }
.cmd-row:first-child { border-top: 1px solid var(--line-ink); }
.cmd-row dt code { font: 700 21px/1.2 var(--f-mono); color: var(--red); }
.cmd-row.ooc dt code { color: #2b5a82; }
.cmd-row dd b { display: block; font-weight: 600; }
.cmd-row dd span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.cmd-row dd span code { font-size: 0.94em; color: var(--ink-2); }
.rp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.key-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 22px; padding: clamp(22px, 2.4vw, 32px); border-radius: 16px; background: rgba(255, 252, 245, 0.6); box-shadow: inset 0 0 0 1px var(--line-ink); }
.key-card > div > p { margin-top: 10px; color: var(--ink-2); }
.keycap.big { min-width: 76px; height: 76px; border-radius: 13px; font-size: 25px; color: var(--ink); background: linear-gradient(180deg, #fffdf8, #efe5d3); box-shadow: inset 0 0 0 1px #bfae92, inset 0 -6px 0 #d9c9ad, 0 3px 0 #a8977b; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-ink); }
.tags .i { width: 16px; height: 16px; color: var(--red); }

/* ================================================================ jak zagrać */
.sec.join { overflow: hidden; isolation: isolate; background: #0f0c0a; }
.join-bg { position: absolute; inset: 0 0 auto; z-index: -1; height: min(1100px, 100%); background: linear-gradient(180deg, rgba(18, 13, 10, 0.68) 0%, rgba(18, 13, 10, 0.82) 45%, #0f0c0a 100%), url(img/tlo-kcd.jpg) 100% 38% / max(260%, 2400px) auto no-repeat; }
.join-hd { display: grid; justify-items: center; gap: 18px; margin-bottom: clamp(44px, 5vw, 72px); text-align: center; }
.join-hd .lead { text-align: center; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 37px; height: 1px; background: linear-gradient(90deg, rgba(239, 230, 214, 0), var(--line-2) 12%, var(--line-2) 88%, rgba(239, 230, 214, 0)); }
.step { position: relative; padding: 0 clamp(14px, 2.4vw, 40px); text-align: center; }
.step-n { position: relative; display: inline-grid; place-items: center; width: 64px; height: 76px; padding-bottom: 8px; font: 700 24px/1 var(--f-d); color: #fff; background: var(--red); clip-path: path("M0 0H64V38C64 59 49 71 32 76C15 71 0 59 0 38Z"); }
.step h3 { margin-top: 22px; font: 700 clamp(22px, 1.9vw, 27px)/1.15 var(--f-d); }
.step p { max-width: 36ch; margin: 10px auto 0; font-size: 16px; color: var(--on-2); }
.connect { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; margin-top: clamp(48px, 6vw, 80px); padding: clamp(26px, 3vw, 38px) clamp(24px, 3.4vw, 46px); border-radius: 18px; background: var(--noise), linear-gradient(135deg, #2c1e16 0%, #1a130f 100%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.connect::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(239, 230, 214, 0.13); border-radius: 11px; pointer-events: none; }
.connect-addr { position: relative; min-width: 0; }
.connect-label { display: block; font-size: 14px; color: var(--on-3); }
.connect-code { display: block; margin: 6px 0 14px; font: 600 clamp(19px, 2.5vw, 34px)/1.2 var(--f-mono); color: #fff; overflow-wrap: anywhere; }
.connect-act { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.arrive { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(56px, 6vw, 88px); }
.arrive-txt p { margin-top: 12px; color: var(--on-2); }
.arrive-more a { color: var(--on); text-decoration-color: var(--red-lt); text-underline-offset: 3px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.keys > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; background: rgba(239, 230, 214, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.keys dt kbd { min-width: 60px; padding: 12px 10px 11px; border-radius: 8px; font-size: 14.5px; }
.keys dd b { display: block; font-weight: 600; line-height: 1.3; }
.keys dd small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--on-3); }
.keys dd small kbd { font-size: 10.5px; }

/* ================================================================ zasady */
.laws-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.laws-hd .lead { margin-top: 20px; }
.sealed { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.sealed .wax { width: 74px; height: 74px; }
.sealed p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.sealed span { font-style: italic; color: var(--ink-3); }
.laws { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; counter-reset: law; }
.laws li { counter-increment: law; display: grid; align-content: start; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding: 26px 0 24px; border-top: 1px solid var(--line-ink); font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.laws li::before { content: counter(law); grid-row: span 2; font: 800 50px/0.85 var(--f-d); color: var(--red); }
.laws b { display: block; margin-bottom: 6px; font: 700 20px/1.25 var(--f-d); color: var(--ink); }

/* ================================================================ pytania */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-hd { position: sticky; top: calc(var(--bar-h) + 36px); display: grid; justify-items: start; gap: 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; font: 700 clamp(19px, 1.6vw, 23px)/1.25 var(--f-d); transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.q-ico { width: 30px; height: 30px; padding: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s; }
.faq details[open] .q-ico { transform: rotate(45deg); background: var(--red); box-shadow: none; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), content-visibility 0.38s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.ans { padding: 0 52px 24px 0; color: var(--on-2); }
.ans a { color: var(--on); text-decoration-color: var(--red-lt); text-underline-offset: 3px; }

/* ================================================================ discord */
.band { position: relative; overflow: hidden; padding-block: clamp(70px, 8vw, 116px); color: #fff; background: var(--diaper-red), linear-gradient(115deg, #8a1915 0%, #a61f1a 48%, #741411 100%); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.band-title { max-width: 13ch; font: 800 clamp(42px, 5.6vw, 90px)/0.93 var(--f-d); letter-spacing: -0.025em; }
.band-txt p { max-width: 50ch; margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); color: rgba(255, 255, 255, 0.9); }
.band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.band-link { font: 500 15px var(--f-mono); color: rgba(255, 255, 255, 0.88); }
.band-crest { width: clamp(180px, 21vw, 300px); height: auto; filter: drop-shadow(0 26px 30px rgba(40, 0, 0, 0.45)); }

/* ================================================================ stopka */
.foot { padding: 64px 0 28px; font-size: 15px; color: var(--on-2); background: #0c0a08; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot-brand p { max-width: 40ch; margin-top: 16px; color: var(--on-3); }
.foot-h { margin-bottom: 14px; font: 700 18px/1.2 var(--f-d); color: var(--on); }
.foot-nav ul { columns: 2; column-gap: 24px; }
.foot-nav li { padding: 4px 0; break-inside: avoid; }
.foot-nav a { color: var(--on-2); text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.foot-srv { display: grid; align-content: start; gap: 12px; }
.foot-addr { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.foot-addr code { font-size: 14px; color: var(--on); overflow-wrap: anywhere; }
.copy.mini { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.foot-dc { display: inline-flex; align-items: center; gap: 8px; color: var(--on); text-decoration: none; }
.foot-dc:hover { text-decoration: underline; text-decoration-color: var(--red-lt); text-underline-offset: 3px; }
.foot-ver { color: var(--on-3); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--on-3); }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; color: var(--on); background: rgba(15, 11, 9, 0.9); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.3s, transform 0.3s, background-color 0.2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--cream); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================================================================ RWD */
@media (max-width: 1240px) {
  .bar-nav a { padding-inline: 8px; font-size: 14.5px; }
  .bar-nav a::after { left: 8px; right: 8px; }
}
/* dziewięć odnośników z „Sklep” (sklep.html): bez zawijania, a na 1181–1300 px ciaśniejsze odstępy */
.bar-nav a { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1300px) {
  .bar-nav a { padding-inline: 6.5px; }
  .bar-nav a::after { left: 6.5px; right: 6.5px; }
}
@media (max-width: 1180px) {
  .bar-nav { display: none; }
  .bar-act { margin-left: auto; }
  .burger { display: grid; }
}
@media (min-width: 1181px) { .menu { display: none !important; } }
@media (max-width: 1100px) {
  .about, .keep, .town-grid, .tools, .voice, .rp-grid, .arrive, .laws-wrap, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .split-hd, .town-hd, .rp-hd { grid-template-columns: minmax(0, 1fr); }
  .charter { max-width: 600px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 250px;
    grid-template-areas: "town town" "town town" "forge voice" "forge letter" "trade trade" "horse tree" "horse rp" "npc npc"; }
  .t-npc .tile-body { grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: center; column-gap: 20px; }
  .t-npc .keycap { grid-row: span 2; }
  .forge { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .forge-art { min-height: clamp(440px, 62vw, 640px); }
  .forge-art::after { background: linear-gradient(0deg, rgba(12, 9, 7, 0.92) 0%, rgba(12, 9, 7, 0.4) 36%, rgba(12, 9, 7, 0) 58%), linear-gradient(0deg, var(--bg-2) 0%, rgba(26, 20, 16, 0) 6%); }
  .forge-txt { max-width: none; padding: clamp(48px, 7vw, 80px) var(--g); width: min(var(--max), 100%); justify-self: center; }
  .voice-side { order: -1; }
  .dial { width: min(560px, 100%); justify-self: center; }
  .faq-hd { position: static; }
  .band-crest { width: clamp(140px, 22vw, 220px); }
}
@media (max-width: 860px) {
  .num-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .num-list li:nth-child(4) { padding-left: 0; border-left: 0; }
  .num-list li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .about-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .court { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-ctl { display: none; }
  .guild { grid-template-columns: minmax(0, 1fr); }
  .guild-note { grid-column: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps::before { left: 31px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; background: var(--line-2); }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 22px; padding: 0; text-align: left; }
  .step-n { grid-row: span 2; }
  .step h3 { margin-top: 4px; }
  .step p { margin: 8px 0 0; }
  .laws { grid-template-columns: minmax(0, 1fr); }
  .rp-cards { grid-template-columns: minmax(0, 1fr); }
  .hud-strip { grid-template-columns: minmax(0, 1fr); }
  .hs-keys { width: auto; grid-template-columns: 1fr 1fr; }
  .hs-cap { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .band-in { grid-template-columns: minmax(0, 1fr); }
  .band-crest { grid-row: 1; width: 120px; }
  .hero-facts li:nth-child(n + 3) { display: none; }
}
@media (max-width: 720px) {
  :root { --bar-h: 62px; }
  .bar-panel { display: none; }
  .brand-name { font-size: 17px; }
  .brand img { width: 34px; }
  .hero { min-height: max(640px, 100svh); }
  .hero-art img { object-position: 53% 30%; transform-origin: 52% 36%; }
  .hero-scrim { background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.75) 0, rgba(10, 8, 6, 0) 140px),
    linear-gradient(0deg, #120e0b 0%, rgba(18, 14, 11, 0.94) 34%, rgba(18, 14, 11, 0.5) 58%, rgba(18, 14, 11, 0) 76%); }
  .hero-in { padding-top: 46vh; }
  .hero-title { font-size: 11.4vw; line-height: 0.9; }
  .hero-crest { width: 21vw; }
  .hero-lead { font-size: 16.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .addr { flex-direction: column; }
  .addr-txt { padding: 10px 14px; }
  .copy { min-height: 46px; border-left: 0; border-top: 1px solid rgba(239, 230, 214, 0.2); }
  .hero-foot { padding: 14px 0 20px; }
  .hero-scroll { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; grid-template-areas: none; }
  .bento > .tile { grid-area: auto; min-height: 250px; }
  .bento > .pic { min-height: 340px; }
  .bento > .t-town { min-height: 420px; }
  .bento > .t-trade { min-height: 420px; }
  .t-trade::before { background: linear-gradient(0deg, rgba(14, 11, 9, 0.96) 0%, rgba(14, 11, 9, 0.8) 50%, rgba(14, 11, 9, 0) 85%); }
  .t-trade { --x: 82%; --y: 50%; --z: 1.6; --ox: 82%; --oy: 48%; }
  .t-town { --x: 10%; --y: 40%; --z: 1.15; --ox: 10%; --oy: 40%; }
  .t-horse { --x: 77%; --y: 78%; --z: 1.5; --ox: 76%; --oy: 72%; }
  .bento > .comp { min-height: 0; justify-content: flex-start; }
  .comp-art { position: relative; z-index: 0; align-self: flex-end; }
  .voice-art { right: auto; top: auto; width: 56%; margin: -34px -26px -40px 0; }
  .letter-art { right: auto; top: auto; width: 54%; margin: 14px 16px -18px 0; }
  .tree-art { right: auto; top: auto; width: 38%; margin: 18px 24px -12px 0; }
  .bento > .t-rp, .bento > .t-npc { min-height: 0; }
  .guild-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .guild-bar li, .guild-bar li:first-child, .guild-bar li:last-child { border-radius: 0 0 6px 6px; }
  .connect { padding: 24px 20px; }
  .connect-code { font-size: min(4vw, 34px); }
  .t-rp .tile-body { gap: 14px; }
  .stair { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stair li { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .stair li::before { order: 1; flex: none; width: calc(var(--h) * 7%); height: 30px; border-radius: 0 4px 4px 0; }
  .stair i { width: 34px; text-align: right; }
  .stair b { order: 2; font-size: 15px; }
  .deed { flex-direction: column; align-items: flex-start; }
  .deed .wax { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; }
  .deed-title { padding-right: 70px; }
  .crafts { grid-template-columns: minmax(0, 1fr); }
  .ruler-track, .ruler-marks { display: none; }
  .ruler { margin-top: 28px; }
  .ruler::before { content: "Uczeń 1 · Czeladnik 5 · Mistrz 10 · Starszy cechu 15 · Arcymistrz 20"; display: block; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; color: var(--on-2); background: rgba(239, 230, 214, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
  .tool-list { grid-template-columns: minmax(0, 1fr); }
  .tiers li { grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; }
  .tiers i { grid-row: span 2; }
  .tiers small { text-align: left; white-space: normal; }
  .upg-hd { grid-template-columns: auto minmax(0, 1fr); }
  .upg-perk { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .connect-act { width: 100%; }
  .connect-act .btn { flex: 1 1 160px; }
  .lvl-show { position: static; padding: 0 var(--g); margin-top: -96px; }
  .forge-art { overflow: visible; }
  .forge-art > img { height: clamp(320px, 80vw, 480px); position: relative; inset: auto; }
  .forge-art::after { height: clamp(320px, 80vw, 480px); }
  .forge-art { min-height: 0; }
  .hud-lvl { padding: 16px 18px 14px; background: rgba(10, 8, 6, 0.92); border-radius: 4px; }
  .ans { padding-right: 0; }
  .key-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .keycap.big { justify-self: start; min-width: 64px; height: 64px; font-size: 22px; }
  .cmd-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .cmd-row dt code { font-size: 18px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .num-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-list li { padding: 22px 14px 24px; }
  .num-list li:nth-child(4) { padding-left: 14px; border-left: 1px solid var(--line); }
  .num-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .num-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .slots { grid-template-columns: minmax(0, 1fr); }
  .court li { padding: 24px 12px 20px; }
  .kv > div { grid-template-columns: 96px minmax(0, 1fr); }
  .charter { padding: 22px 20px 14px; }
  .job { width: min(78vw, 290px); min-height: 360px; }
  .hs-keys { grid-template-columns: minmax(0, 1fr); }
  .band-cta .btn { width: 100%; }
}
@media (max-width: 400px) {
  .bar-join { display: none; }
  .brand-name { font-size: 16.5px; }
}

/* ================================================================ bez ruchu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .faq details::details-content { transition: none; }
}
