/* =========================================================
   Chata z Dykty — serwer Rust PvE
   Styl wzorowany na interfejsie gry Rust
   ========================================================= */

:root {
  --bg: #0E0D0C;
  --bg-bar: #141210;
  --panel: #1A1816;
  --panel-head: #23201C;
  --panel-hi: #2B2723;
  --line: #36312B;
  --line-soft: #2B2723;

  --text: #E4DAD1;
  --text-2: #C7BDB2;
  --text-3: #B5AA9E;
  --muted: #A39A90;

  --plywood: #C9A57A;
  --rust: #B8381F;
  --rust-text: #D9583B;
  --rust-hover: #F07A5C;
  --on-rust: #F4ECE4;
  --green: #4F6B27;
  --green-hover: #5C7B2E;
  --on-green: #EEF3E2;
  --online: #7FA33F;
  --online-text: #9CC45C;
  --offline: #B8381F;

  --font-ui: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-text); }
a:hover { color: var(--rust-hover); }
:focus-visible { outline: 2px solid var(--plywood); outline-offset: 2px; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg);
  color: var(--plywood);
  border: 1px solid var(--line);
  padding: 2px 7px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--rust); color: var(--on-rust); padding: 10px 16px;
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.ui {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ---------- Pasy ostrzegawcze ---------- */
.hazard {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--rust) 0 12px, var(--bg-bar) 12px 24px);
}
.hazard--panel {
  background: repeating-linear-gradient(-45deg, var(--rust) 0 12px, var(--panel) 12px 24px);
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease;
}
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn--green { background: var(--green); color: var(--on-green); }
.btn--green:hover { background: var(--green-hover); color: var(--on-green); }
.btn--rust { background: var(--rust); color: var(--on-rust); }
.btn--rust:hover { background: #CC4527; color: var(--on-rust); }
.btn--dark { background: var(--panel-hi); color: var(--text); }
.btn--dark:hover { background: #38322C; color: var(--text); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-bar);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--plywood);
}
.brand img { width: 52px; height: 52px; }
.brand__name {
  font-family: var(--font-ui); font-weight: 800; font-size: 22px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.brand__name span { color: var(--rust-text); }
.brand__tag {
  font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--panel-hi); color: var(--text); padding: 4px 10px;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  color: var(--text-2); text-decoration: none; padding: 12px 14px;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--plywood); }
.nav .btn { margin-left: 8px; min-height: 44px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-bar); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin: 12px 0 0; }
  .brand img { width: 44px; height: 44px; }
  .brand__name { font-size: 19px; }
}

/* ---------- Hero ---------- */
.hero__inner {
  display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 40px;
  padding-top: 64px; padding-bottom: 48px;
}
.hero__text { flex: 999 1 520px; min-width: 0; }
.hero__logo { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.hero__logo img { width: 100%; max-width: 420px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel); border-left: 4px solid var(--green);
  padding: 8px 14px; color: var(--text-2); font-size: 14px;
}
.badge__dot { width: 8px; height: 8px; background: var(--online); }
.hero h1 {
  font-family: var(--font-ui); font-weight: 800;
  font-size: clamp(44px, 7vw, 72px); line-height: 0.98;
  text-transform: uppercase; margin: 24px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--rust-text); }
.hero__lead { font-size: 19px; color: var(--text-3); max-width: 540px; margin: 0 0 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Panele (okna w stylu Rusta) ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); }
.panel__head {
  background: var(--panel-head); padding: 10px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.panel__body { padding: 18px; }

/* ---------- Status serwera ---------- */
.status__state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.status__state::before { content: ""; width: 9px; height: 9px; background: var(--muted); }
.status__state[data-state="online"] { color: var(--online-text); }
.status__state[data-state="online"]::before { background: var(--online); }
.status__state[data-state="offline"] { color: var(--rust-text); }
.status__state[data-state="offline"]::before { background: var(--offline); }

.status__grid { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.status__name { flex: 2 1 240px; min-width: 0; }
.status__title {
  font-family: var(--font-ui); font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.03em; overflow-wrap: anywhere;
}
.status__meta { font-size: 14px; color: var(--muted); }
.status__players { flex: 1 1 200px; min-width: 0; }
.status__label {
  display: flex; justify-content: space-between;
  font-family: var(--font-ui); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px;
}
.status__label strong { color: var(--text); }
.bar { height: 14px; background: var(--panel-hi); border: 1px solid var(--line); }
.bar__fill { height: 100%; width: 0; background: #6E8F35; transition: width .6s ease; }
.status__connect { flex: 2 1 320px; min-width: 0; display: flex; gap: 8px; }
.status__ip {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  color: var(--text); font-family: var(--font-mono); font-size: 14px;
}
@media (max-width: 560px) {
  .status__connect { flex-wrap: wrap; }
  .status__ip { flex-basis: 100%; }
  .status__connect .btn { flex: 1 1 auto; }
}

/* ---------- Szybkie linki / sloty ---------- */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; padding-top: 16px; }
.tile {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
a.tile:hover { border-color: #5A4E42; background: #201D1A; color: var(--text); }
.slot {
  flex: none; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--plywood);
}
.slot--lg { width: 64px; height: 64px; }
.slot svg { width: 26px; height: 26px; }
.slot--lg svg { width: 30px; height: 30px; }
.tile__title {
  display: block; font-family: var(--font-ui); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tile__text { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Sekcje ---------- */
.section { padding-top: 88px; }
.section:last-of-type { padding-bottom: 96px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-ui); color: var(--rust-text); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--rust); }
.section h2 {
  font-family: var(--font-ui); font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 4.5vw, 46px); line-height: 1.05; margin: 8px 0 24px;
}
.section__lead { color: var(--text-3); max-width: 640px; margin: -12px 0 32px; }
.section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 24px;
}
.section__head h2 { margin-bottom: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.feature { display: flex; gap: 16px; padding: 18px; background: var(--panel); border: 1px solid var(--line); }
.feature h3 {
  font-family: var(--font-ui); font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 4px;
}
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Ustawienia ---------- */
.split { display: flex; flex-wrap: wrap; gap: 8px; }
.split__main { flex: 999 1 560px; min-width: 0; }
.split__side { flex: 1 1 320px; min-width: 0; }
.table-scroll { overflow-x: auto; }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.kv th, .kv td { padding: 12px 18px; border-top: 1px solid var(--line-soft); text-align: left; }
.kv th { font-weight: 400; color: var(--muted); width: 45%; }
.kv td { font-family: var(--font-ui); font-weight: 700; font-size: 17px; color: var(--plywood); }
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.schedule li:last-child { border-bottom: 0; }
.schedule span { color: var(--muted); }
.schedule strong { font-family: var(--font-ui); text-align: right; }
.schedule .hl { color: var(--rust-text); }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ---------- Wiki: kafle i wyszukiwarka ---------- */
.search { display: flex; flex: 0 1 400px; min-width: 260px; }
.search input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 0;
  color: var(--text); font: 15px var(--font-body);
}
.search input::placeholder { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.card {
  display: block; padding: 18px 20px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--plywood);
  transition: background-color .15s ease;
}
.card:hover { background: #201D1A; color: var(--text); }
.card__title {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
  font-family: var(--font-ui); font-weight: 700; font-size: 19px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.card__title::after { content: "›"; color: var(--rust-text); }
.card__text { display: block; color: var(--muted); font-size: 15px; }
.card[hidden] { display: none; }
.empty { color: var(--muted); padding: 16px 0; }

/* ---------- Głosowanie ---------- */
.vote { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding: 36px; }
.vote__text { flex: 999 1 420px; min-width: 0; }
.vote__text h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.vote__text p { color: var(--text-3); margin: 0 0 8px; }
.vote__text .small { color: var(--muted); font-size: 14px; margin: 0; }
.vote__links { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vote__links .btn { justify-content: space-between; min-height: 52px; font-size: 16px; }
.vote__links .btn::after { content: "›"; }
@media (max-width: 560px) { .vote { padding: 24px 18px; } }

/* ---------- Zasady ---------- */
.rules {
  list-style: none; margin: 0; padding: 0; counter-reset: rule;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 8px;
}
.rules li { counter-increment: rule; display: flex; background: var(--panel); border: 1px solid var(--line); }
.rules li::before {
  content: counter(rule);
  flex: none; width: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--rust); color: var(--on-rust);
  font-family: var(--font-ui); font-weight: 800; font-size: 20px;
}
.rules li span { padding: 14px 16px; }
.more-link { margin: 24px 0 0; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--bg-bar); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px; padding-bottom: 28px; color: var(--muted); font-size: 14px;
}
.site-footer__copy { display: flex; align-items: center; gap: 12px; }
.site-footer__copy img { width: 40px; height: 40px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* =========================================================
   Wiki
   ========================================================= */
.wiki-header .search { flex: 0 1 420px; min-width: 220px; }
@media (max-width: 960px) {
  .wiki-header .site-header__inner { flex-wrap: wrap; padding-bottom: 12px; }
  .wiki-header .search { order: 3; flex: 1 1 100%; }
}

.wiki-layout {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px;
  padding-top: 32px; padding-bottom: 80px;
}
.wiki-nav { flex: 1 1 250px; min-width: 0; }
.wiki-nav__group + .wiki-nav__group { border-top: 1px solid var(--line); }
.wiki-nav ul { list-style: none; margin: 0; padding: 6px 0; }
.wiki-nav a {
  display: block; padding: 8px 16px 8px 19px;
  color: var(--text-3); text-decoration: none; font-size: 15px;
}
.wiki-nav a:hover { color: var(--text); background: #201D1A; }
.wiki-nav a[aria-current="page"] {
  padding-left: 16px; border-left: 3px solid var(--rust);
  background: var(--panel-hi); color: var(--text); font-weight: 500;
}
.wiki-main { flex: 999 1 560px; min-width: 0; }
.wiki-aside { flex: 1 1 210px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1200px) {
  .wiki-nav, .wiki-aside { position: sticky; top: 104px; }
}

.crumbs {
  font-family: var(--font-ui); font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--plywood); }

.article h1 {
  font-family: var(--font-ui); font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 5vw, 54px); line-height: 1.02; margin: 0 0 10px;
}
.article__meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.article__lead { font-size: 18px; color: var(--text-2); }
.article h2 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-ui); font-weight: 800; font-size: 30px;
  text-transform: uppercase; margin: 44px 0 14px;
}
.article h2::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--rust); }
.article h3 {
  font-family: var(--font-ui); font-weight: 700; font-size: 21px;
  text-transform: uppercase; margin: 28px 0 10px;
}
.article p, .article li { color: var(--text-2); }
.article ul, .article ol { padding-left: 22px; }

.callout { display: flex; background: var(--panel); border: 1px solid var(--line); margin: 28px 0; }
.callout__icon {
  flex: none; width: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--rust); color: var(--on-rust);
}
.callout--tip .callout__icon { background: var(--green); color: var(--on-green); }
.callout p { margin: 0; padding: 14px 18px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.data-table th {
  background: var(--panel-head); text-align: left; padding: 11px 16px;
  font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.data-table td { padding: 12px 16px; border-top: 1px solid var(--line-soft); color: var(--text-2); }
.data-table td:first-child { white-space: nowrap; }
.data-table .num { font-family: var(--font-ui); font-weight: 700; color: var(--text); }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; }
.pager a {
  display: flex; flex-direction: column; min-width: 220px; padding: 14px 18px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.pager a:hover { background: #201D1A; color: var(--text); }
.pager a.next { align-items: flex-end; margin-left: auto; }
.pager small {
  font-family: var(--font-ui); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}
.pager strong { font-family: var(--font-ui); font-size: 18px; text-transform: uppercase; }

.toc ul { list-style: none; margin: 0; padding: 6px 0; }
.toc a {
  display: block; padding: 7px 16px 7px 19px; font-size: 14px;
  color: var(--text-3); text-decoration: none;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { padding-left: 16px; border-left: 3px solid var(--plywood); color: var(--text); }
.help-box p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.help-box strong {
  display: block; margin-bottom: 4px;
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---- rozszerzenia: wiki z danych, kopiowanie, toast ---- */
:root{color-scheme:dark;--t-easy:#7FA33F;--t-med:#5E9BD0;--t-hard:#E06548;--t-night:#E39A3B}
.wrap{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.site-header{top:env(safe-area-inset-top,0px)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--bg-bar)}
.nav{padding-inline:0}
@media (max-width:960px){.nav{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}}
.features--4{grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr))}
.status__players strong{font-variant-numeric:tabular-nums}
.clock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0 4px}
.clock div{background:var(--bg);border:1px solid var(--line);text-align:center;padding:10px 4px}
.clock b{display:block;font:800 30px/1 var(--font-ui);font-variant-numeric:tabular-nums}
.clock small{font:700 11px var(--font-ui);text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}
.rules li::before{content:attr(data-n);width:52px;font-size:16px}
.rules li{counter-increment:none}
.article .rules{grid-template-columns:1fr;margin:0 0 8px}
button.cp{font:13px var(--font-mono);background:var(--bg);color:var(--plywood);border:1px solid var(--line);padding:2px 7px;cursor:copy;white-space:nowrap}
button.cp:hover{border-color:var(--plywood)}
.cmd-cell{display:flex;flex-wrap:wrap;gap:4px}
.data-table td{vertical-align:top}
.data-table td:first-child{white-space:normal;width:190px;min-width:150px}
.help-box .btn{width:100%;white-space:normal}
.tier-name{font:800 16px var(--font-ui);text-transform:uppercase;color:var(--tc);white-space:nowrap}
.tier-name::before{content:"";display:inline-block;width:10px;height:10px;background:var(--tc);margin-right:8px}
.article .lead-cta{margin:16px 0}
.wiki-nav a{cursor:pointer}
.wiki-index h2{margin-top:36px}
.result{display:block;padding:14px 18px;background:var(--panel);border:1px solid var(--line);text-decoration:none;color:var(--text);margin-top:-1px}
.result:hover{background:var(--hover,#201D1A);color:var(--text)}
.result small{display:block;font:700 12px var(--font-ui);text-transform:uppercase;letter-spacing:.1em;color:var(--plywood)}
.result strong{display:block;font:700 18px var(--font-ui);text-transform:uppercase}
.result span{display:block;color:var(--muted);font-size:14px;margin-top:2px}
.article p{max-width:75ch}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--green);color:var(--on-green);padding:12px 20px;font:700 15px var(--font-ui);text-transform:uppercase;letter-spacing:.06em;transition:opacity .2s,transform .2s;z-index:80;max-width:calc(100% - 32px)}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* =========================================================
   Postęp wipe'a, serwer na żywo, mapa, rankingi, profil
   ========================================================= */
:root {
  --heat-lo: #2B2723; --heat-hi: #E8C391;
  --line-chart: #C9A57A;
}
.live-section .panel + .panel { margin-top: 8px; }

/* ---- Postęp wipe'a ---- */
.wp__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 700 14px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wp__meta strong { color: var(--text); }
.wp__track { overflow-x: auto; padding: 4px 2px 6px; }
.wp__steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); min-width: 640px; }
.wp__rail { position: absolute; left: 0; right: 0; top: 15px; height: 6px; background: var(--panel-hi); }
.wp__fill { position: absolute; left: 0; top: 15px; height: 6px; background: var(--green); transition: width .6s; }
.wp__step { position: relative; padding: 0 8px; text-align: center; }
.wp__node { position: relative; z-index: 1; display: block; width: 18px; height: 18px; margin: 9px auto 12px; background: var(--panel-hi); border: 3px solid var(--bg); outline: 2px solid var(--line); }
.wp__step.is-done .wp__node { background: var(--green); outline-color: var(--green); }
.wp__step.is-now .wp__node { background: var(--rust); outline-color: var(--rust); width: 24px; height: 24px; margin-top: 6px; margin-bottom: 9px; }
.wp__when { display: block; font: 700 13px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wp__name { display: block; font: 700 16px/1.2 var(--font-ui); text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.wp__step.is-now .wp__when { color: var(--rust-text); }
.wp__step.is-now .wp__name, .wp__step.is-done .wp__name { color: var(--text); }
.wp__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 8px; margin-top: 8px; }
.wp__card { background: var(--bg); border: 1px solid var(--line); padding: 14px 16px; }
.wp__card h3 { margin: 0 0 10px; font: 800 18px var(--font-ui); text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wp__card h3 span { color: var(--rust-text); font-variant-numeric: tabular-nums; }
.wp__card dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 6px 14px; font-size: 15px; }
.wp__card dt { color: var(--muted); }
.wp__card dd { margin: 0; font-family: var(--font-ui); font-weight: 700; color: var(--plywood); }
.wp__card--now { border-left: 4px solid var(--rust); }

/* ---- Wykresy ---- */
.live-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.live-big { font: 800 44px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.live-big small { font-size: 22px; color: var(--muted); }
.live-sub { color: var(--muted); font-size: 14px; }
.chart { position: relative; margin-top: 10px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gridline { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis text, .chart text.axis { fill: var(--muted); font: 12px var(--font-body); font-variant-numeric: tabular-nums; }
.chart .area { fill: var(--line-chart); fill-opacity: .14; }
.chart .line { fill: none; stroke: var(--line-chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--line-chart); stroke: var(--panel); stroke-width: 2; }
.chart .endlabel { fill: var(--text); font: 700 13px var(--font-ui); }
.tip {
  position: absolute; pointer-events: none; z-index: 5; white-space: nowrap;
  background: var(--bg-bar); border: 1px solid var(--line); padding: 6px 10px;
  font-size: 13px; color: var(--text-2); transform: translate(-50%, calc(-100% - 10px));
}
.tip strong { color: var(--text); font-family: var(--font-ui); font-size: 15px; font-variant-numeric: tabular-nums; }
.chart-empty { color: var(--muted); padding: 30px 0; text-align: center; border: 1px dashed var(--line); margin-top: 10px; }
.heat { margin-top: 12px; overflow-x: auto; }
.heat__grid { display: grid; grid-template-columns: 42px repeat(24, minmax(18px, 1fr)); gap: 2px; min-width: 560px; }
.heat__grid .lab { font: 700 12px var(--font-ui); text-transform: uppercase; color: var(--muted); display: flex; align-items: center; }
.heat__grid .hr { font-size: 11px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.heat__cell { height: 22px; border: 0; padding: 0; cursor: default; }
.heat__cell.is-empty { background: transparent; outline: 1px dashed var(--line-soft); outline-offset: -1px; }
.heat__cell:hover, .heat__cell:focus-visible { outline: 2px solid var(--text); outline-offset: -1px; }
.heat__legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.heat__ramp { width: 140px; height: 10px; background: linear-gradient(90deg, var(--heat-lo), var(--heat-hi)); }
.headline { font: 700 17px var(--font-ui); text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 0; }
.headline span { color: var(--plywood); }
.online-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.online-list a { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); padding: 4px 10px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.online-list a::before { content: ""; width: 7px; height: 7px; background: var(--online); }
.online-list a:hover { color: var(--text); border-color: #5A4E42; }

/* ---- Widoki stron (mapa, rankingi, profil) ---- */
.page { padding-top: 40px; padding-bottom: 80px; }
.page h1 { font: 800 clamp(38px, 5vw, 54px)/1.02 var(--font-ui); text-transform: uppercase; margin: 6px 0 10px; }
.page__lead { color: var(--text-3); max-width: 70ch; margin: 0 0 24px; font-size: 17px; }

/* ---- Mapa ---- */
.map-layout { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.map-main { flex: 999 1 560px; min-width: 0; }
.map-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1100px) { .map-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); max-height: calc(100vh - 110px); overflow-y: auto; } }
.mapv { position: relative; overflow: hidden; background: #0b1a22; border: 1px solid var(--line); aspect-ratio: 1 / 1; max-width: 100%; touch-action: none; cursor: grab; user-select: none; }
.mapv:active { cursor: grabbing; }
.mapv__stage { position: absolute; inset: 0; transform-origin: 0 0; --k: 1; }
.mapv__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; max-width: none; }
.mapv__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapv__grid line { stroke: rgba(0, 0, 0, .35); stroke-width: .6; vector-effect: non-scaling-stroke; }
.mapv__grid text { fill: rgba(0, 0, 0, .42); font-family: var(--font-ui); font-weight: 700; }
.zone { stroke-width: 2; vector-effect: non-scaling-stroke; }
.zone.is-sel { stroke-width: 4; }
.mapv__pins { position: absolute; inset: 0; }
.pin {
  position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--k))); transform-origin: center;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 4px; cursor: pointer; min-width: 28px; min-height: 28px;
}
.pin__dot { width: 14px; height: 14px; background: var(--c); border: 2px solid #0E0D0C; box-shadow: 0 0 0 2px var(--c); }
.pin--event .pin__dot { background: #0E0D0C; }
.pin--safe .pin__dot { border-radius: 50%; }
.pin--info .pin__dot { width: 10px; height: 10px; transform: rotate(45deg); }
.pin__label {
  font: 700 11px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  color: #F4ECE4; background: rgba(14, 13, 12, .82); padding: 2px 5px;
}
.pin.is-sel .pin__dot { box-shadow: 0 0 0 4px var(--c); }
.pin.is-sel .pin__label { background: var(--c); color: #0E0D0C; }
.mapv.hide-labels .pin:not(.is-sel) .pin__label { display: none; }
.mapv__ctrl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.mapv__ctrl .ib { width: 38px; height: 38px; font-size: 20px; background: rgba(26, 24, 22, .92); border: 1px solid var(--line); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mapv__ctrl .ib svg { width: 18px; height: 18px; }
.mapv__coord { position: absolute; left: 10px; bottom: 8px; margin: 0; z-index: 3; font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: #F4ECE4; background: rgba(14, 13, 12, .8); padding: 3px 8px; pointer-events: none; }
.mapv__coord:empty { display: none; }
.map-empty { border: 1px dashed var(--line); padding: 60px 20px; text-align: center; color: var(--muted); background: var(--panel); }
.legend { list-style: none; margin: 0; padding: 6px 0; }
.legend label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 16px; cursor: pointer; }
.legend input { margin-top: 4px; accent-color: var(--plywood); }
.legend .sw { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 2px solid var(--c); background: var(--c); }
.legend .sw--pvp { background: repeating-linear-gradient(45deg, rgba(230,103,103,.7) 0 3px, rgba(230,103,103,.2) 3px 7px); }
.legend .sw--event { background: transparent; border-style: dashed; }
.legend .sw--pve { background: rgba(25,158,112,.25); }
.legend .sw--safe { background: rgba(57,135,229,.25); border-radius: 50%; }
.legend .sw--info { width: 12px; height: 12px; margin: 5px 3px 0; transform: rotate(45deg); }
.legend strong { display: block; font: 700 15px var(--font-ui); text-transform: uppercase; letter-spacing: .03em; }
.legend small { display: block; color: var(--muted); font-size: 13px; }
.legend em { font-style: normal; margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mk-list { list-style: none; margin: 0; padding: 6px 0; }
.mk-list button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 16px; background: none; border: 0; color: var(--text-3); font: 14px var(--font-body); cursor: pointer; }
.mk-list button:hover, .mk-list button.on { background: var(--panel-hi); color: var(--text); }
.mk-list button i { flex: none; width: 10px; height: 10px; background: var(--c); }
.mk-list button small { margin-left: auto; color: var(--muted); font: 700 12px var(--font-ui); }
.mk-detail { padding: 14px 16px; border-left: 4px solid var(--c); }
.mk-detail h3 { margin: 0 0 4px; font: 800 20px var(--font-ui); text-transform: uppercase; }
.mk-detail .cat { font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mk-detail p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }

/* ---- Rankingi ---- */
.rk-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; }
.seg button { background: var(--panel); border: 1px solid var(--line); color: var(--text-3); min-height: 42px; padding: 0 14px; font: 700 13px var(--font-ui); text-transform: uppercase; letter-spacing: .07em; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-hi); color: var(--text); box-shadow: inset 0 -3px 0 var(--rust); }
.rk-tools select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 0; min-height: 42px; padding: 0 10px; font: 14px var(--font-body); }
.rk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rk-table th { background: var(--panel-head); text-align: left; padding: 10px 16px; font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rk-table td { padding: 10px 16px; border-top: 1px solid var(--line-soft); }
.rk-table td.pos { width: 64px; font: 800 18px var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.rk-table td.val { text-align: right; font: 700 17px var(--font-ui); color: var(--plywood); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-table th.val { text-align: right; }
.rk-table tr.top1 td.pos { color: #E8C391; } .rk-table tr.top2 td.pos { color: #CFC6BC; } .rk-table tr.top3 td.pos { color: #C98A5A; }
.rk-table tr.me td { background: rgba(184, 56, 31, .14); }
.rk-table a { color: var(--text); text-decoration: none; font-weight: 500; }
.rk-table a:hover { color: var(--plywood); }
.rk-empty { padding: 30px 16px; color: var(--muted); text-align: center; }

/* ---- Profil ---- */
.prof-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px; }
.prof-head img { width: 84px; height: 84px; border: 2px solid var(--line); }
.prof-head h1 { margin: 0; }
.prof-tier { flex: 1 1 280px; min-width: 0; }
.prof-tier b { font: 800 22px var(--font-ui); text-transform: uppercase; color: var(--plywood); }
.prof-tier .bar { margin: 8px 0 4px; height: 12px; }
.prof-tier small { color: var(--muted); font-size: 13px; }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px; margin-top: 8px; }
.stat-tile { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 4px; }
.stat-tile span { font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stat-tile b { font: 800 30px/1.05 var(--font-ui); font-variant-numeric: tabular-nums; }
.stat-tile small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.stat-tile small strong { color: var(--rust-text); }
.login-card { padding: 28px; text-align: center; }
.login-card p { color: var(--text-2); max-width: 52ch; margin: 0 auto 18px; }
.nav__me { display: inline-flex; align-items: center; gap: 8px; }
.nav__me img { width: 26px; height: 26px; border: 1px solid var(--line); }
.rk-cats { display: grid; gap: 10px; margin-bottom: 14px; }
.rk-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rk-group__name { flex: 0 0 110px; font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--plywood); }
@media (max-width: 640px) { .rk-group__name { flex-basis: 100%; } }
.rk-title { font: 800 24px var(--font-ui); text-transform: uppercase; margin: 0; }
.prof-group { font: 800 20px var(--font-ui); text-transform: uppercase; margin: 22px 0 8px; display: flex; align-items: center; gap: 10px; }
.prof-group::before { content: ""; width: 10px; height: 10px; background: var(--rust); }
.rk-group .seg { flex: 1 1 0; min-width: 0; } .rk-group__name { flex-basis: 120px; }

/* ---- Profil: historia, porównanie, prywatność ---- */
:root { --cmp-a: #C98500; --cmp-b: #3987E5; }
.prof-sub { margin: 22px 0 -10px; font: 700 13px var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pos-badge { display: inline-block; font: 700 12px var(--font-ui); color: var(--text-2); background: var(--panel-hi); padding: 1px 6px; font-variant-numeric: tabular-nums; }
.pos-badge--top { background: var(--rust); color: var(--on-rust); }
.hist-head, .hist-row summary { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr) 20px; gap: 12px; align-items: center; }
.hist-head { padding: 0 16px 6px; font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hist-head::after { content: ""; }
.hist-list { display: grid; gap: 4px; }
.hist-row { background: var(--panel); border: 1px solid var(--line); }
.hist-row summary { cursor: pointer; list-style: none; padding: 12px 16px; }
.hist-row summary::-webkit-details-marker { display: none; }
.hist-row summary::after { content: "+"; color: var(--rust-text); font: 700 20px var(--font-ui); text-align: right; }
.hist-row[open] summary::after { content: "–"; }
.hist-row[open] summary { background: var(--panel-head); }
.hist-date { font: 700 16px var(--font-ui); text-transform: uppercase; }
.hist-date small, .hist-pt small { display: block; font: 400 12px var(--font-body); text-transform: none; color: var(--muted); }
.hist-pt { font: 700 16px var(--font-ui); color: var(--plywood); font-variant-numeric: tabular-nums; }
.hist-best { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.hist-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 24px; padding: 14px 16px 16px; border-top: 1px solid var(--line-soft); }
.hist-grp > span { font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--plywood); }
.hist-grp dl { margin: 6px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.hist-grp dt { color: var(--muted); }
.hist-grp dd { margin: 0; text-align: right; font-family: var(--font-ui); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .hist-head { display: none; }
  .hist-row summary { grid-template-columns: minmax(0, 1fr) 20px; }
  .hist-row summary .hist-pt, .hist-row summary .hist-best { grid-column: 1; }
  .hist-row summary::after { grid-row: 1; grid-column: 2; }
}
.prof-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 8px; margin-top: 28px; align-items: start; }
.cmp-box input { width: 100%; height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 0; color: var(--text); font: 15px var(--font-body); }
.cmp-box input::placeholder { color: var(--muted); }
.cmp-results { list-style: none; margin: 6px 0 0; padding: 0; }
.cmp-results a { display: block; padding: 9px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.cmp-results a:hover, .cmp-results a:focus-visible { background: var(--panel-hi); }
.cmp-results .note { padding: 9px 12px; }
.priv { display: grid; gap: 10px; }
.priv-opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.priv-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.priv-opt strong { display: block; font: 700 15px var(--font-ui); text-transform: uppercase; letter-spacing: .03em; }
.priv-opt small { display: block; color: var(--muted); font-size: 13px; }
.anon { color: var(--muted); font-style: italic; }
.online-hidden { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 14px; color: var(--muted); border: 1px dashed var(--line); }
.cmp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 8px 0 18px; }
.cmp-player { display: grid; gap: 2px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.cmp-player--a { border-top: 4px solid var(--cmp-a); }
.cmp-player--b { border-top: 4px solid var(--cmp-b); text-align: right; }
.cmp-player strong { font: 800 22px var(--font-ui); text-transform: uppercase; overflow-wrap: anywhere; }
.cmp-player small { color: var(--muted); font-size: 13px; }
.cmp-player:hover { background: #201D1A; color: var(--text); }
.cmp-sw { display: none; }
.cmp-vs { font: 800 22px var(--font-ui); color: var(--rust-text); }
.cmp-sum { margin: 0; font-size: 15px; color: var(--text-2); }
.cmp-sum strong { font-family: var(--font-ui); text-transform: uppercase; color: var(--text); }
.cmp-table { padding: 4px 16px 16px; }
.cmp-group .prof-group { margin-top: 16px; }
.cmp-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 3fr) minmax(70px, 1fr); gap: 12px; align-items: end; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.cmp-val { font: 700 17px var(--font-ui); color: var(--text-3); font-variant-numeric: tabular-nums; }
.cmp-val--b { text-align: right; }
.cmp-val.is-win { color: var(--text); }
.cmp-val--a.is-win::before { content: "▲ "; color: var(--cmp-a); font-size: 12px; }
.cmp-val--b.is-win::after { content: " ▲"; color: var(--cmp-b); font-size: 12px; }
.cmp-mid { min-width: 0; }
.cmp-label { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cmp-bar { display: flex; gap: 2px; height: 10px; background: var(--panel-hi); }
.cmp-bar i:first-child { background: var(--cmp-a); }
.cmp-bar i:last-child { background: var(--cmp-b); }
.cmp-bar.is-empty i { background: transparent; }
@media (max-width: 560px) {
  .cmp-head { grid-template-columns: 1fr; }
  .cmp-player--b { text-align: left; }
  .cmp-vs { text-align: center; }
  .cmp-row { grid-template-columns: minmax(60px, 1fr) minmax(60px, 1fr); }
  .cmp-mid { grid-column: 1 / -1; grid-row: 1; }
}

/* ---- Stopka zawsze na dole ekranu, nawet przy krótkiej treści ---- */
body.site { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.site > #main { flex: 1 0 auto; }
body.site > .site-header, body.site > .hazard, body.site > .site-footer { flex-shrink: 0; }

/* ---- Szersze widoki na dużych i ultraszerokich monitorach ---- */
.wrap.wiki-layout { max-width: 1680px; }
.wrap.page { max-width: 1480px; }
@media (min-width: 1700px) {
  .wiki-nav { flex-basis: 280px; }
  .wiki-aside { flex-basis: 260px; }
}
/* Tabela poziomów (Bradley, helikopter): krótkie kolumny w jednej linii, loot szerzej */
.data-table--tiers td:nth-child(1), .data-table--tiers td:nth-child(2), .data-table--tiers td:nth-child(3) { white-space: nowrap; }
.data-table--tiers td:nth-child(4) { min-width: 240px; }
.data-table--tiers { min-width: 720px; }
.wrap { max-width: 1480px; }
.wiki-header .wrap, .wrap.wiki-layout { max-width: 1680px; }
.brand__name, .nav__link { white-space: nowrap; }
.wp__date { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wp__step.is-hl .wp__name, .wp__step.is-hl .wp__when { color: var(--rust-text); }
.wp__step.is-hl .wp__node { outline-color: var(--rust); }
.wp__card.is-hl { border-color: var(--rust); background: rgba(184, 56, 31, .12); }
.wp__card.is-hl h3 { color: var(--rust-text); }
.wp__cardwhen { margin: -4px 0 10px; color: var(--muted); font-size: 14px; }

/* ---- Dymek z opisem znacznika na mapie ---- */
.mapv__tip {
  position: absolute; z-index: 4; width: max-content; max-width: min(320px, calc(100% - 16px));
  transform: translate(-50%, -100%); pointer-events: none;
  background: rgba(20, 18, 16, .97); border: 1px solid var(--line); border-top: 3px solid var(--c);
  padding: 10px 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); cursor: default;
}
.mapv__tip.is-below { transform: translate(-50%, 0); border-top: 1px solid var(--line); border-bottom: 3px solid var(--c); }
.mapv__tip::after {
  content: ""; position: absolute; left: var(--ax, 50%); top: 100%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--line);
}
.mapv__tip.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--line); }
.mapv__tip .cat { display: block; font: 700 11px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mapv__tip > strong { display: block; font: 800 17px/1.2 var(--font-ui); text-transform: uppercase; color: var(--text); margin-top: 2px; }
.mapv__tip p, .mapv__tipdesc p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.mapv__tipdesc ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.mapv__tipdesc strong { color: var(--text); }
