/* =========================================================
   Chata z Dykty — nowy wygląd (przełącznik Nowy / Stary w menu)
   Działa tylko z klasą lay-new na <html>; bez niej strona wygląda jak dotąd.
   Etap 1: pasek menu, strona główna, rankingi + wspólne elementy (panele, przyciski, tabele).
   ========================================================= */

/* Przełącznik Nowy / Stary (w obu wyglądach) */
/* Dymek „Wygląd” w prawym dolnym rogu (oba wyglądy, strona i panel) */
.lay-fab { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lay-fab__ic { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); transition: color .15s, border-color .15s; }
.lay-fab:hover .lay-fab__ic, .lay-fab.is-open .lay-fab__ic, .lay-fab__ic:focus-visible { color: var(--text); border-color: var(--plywood); }
.lay-fab__pop { order: -1; width: 250px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.lay-fab:hover .lay-fab__pop, .lay-fab.is-open .lay-fab__pop, .lay-fab:focus-within .lay-fab__pop { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.lay-fab:hover::before { content: ""; position: absolute; right: 0; bottom: 46px; width: 250px; height: 12px; }   /* mostek: kursor nie gubi dymku w szczelinie */
.lay-fab__h { display: block; margin: 0 0 6px; font: 700 14px var(--font-body); color: var(--text); }
.lay-fab__p { margin: 0 0 12px; font: 400 13px/1.45 var(--font-body); color: var(--muted); }
.lay-fab .lay-sw { display: flex; border-radius: 10px; }
.lay-fab .lay-sw button { flex: 1; border-radius: 7px; }
@media (hover: none) { .lay-fab:hover .lay-fab__pop { opacity: 0; visibility: hidden; } .lay-fab.is-open .lay-fab__pop { opacity: 1; visibility: visible; } }
@media (max-width: 900px) { .adm-body .lay-fab, body.adm .lay-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.lay-sw { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); align-self: center; }
.lay-sw button { border: 0; background: none; color: var(--muted); font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; padding: 0 10px; min-height: 32px; cursor: pointer; }
.lay-sw button:hover { color: var(--text); }
.lay-sw button[aria-pressed="true"] { background: var(--panel-hi); color: var(--text); }

/* Który pasek widać */
html:not(.lay-new) #hdr-new { display: none !important; }
.lay-new #hdr-home, .lay-new #hdr-wiki, .lay-new .hazard { display: none !important; }

/* ---------- Tokeny nowego wyglądu ---------- */
.lay-new {
  --wrap: 1600px;
  --gutter: clamp(16px, 3vw, 48px);
  --panel: #181614;
  --panel-head: #181614;
  --panel-hi: #211E1B;
  --line: #2E2A26;
  --line-soft: #2A2622;
  --text: #EDE6DE;
  --text-2: #D3CABF;
  --text-3: #C2B8AD;
  --muted: #A1978D;
  --rust: #C4472A;
  --rust-text: #F08A6C;
  --rust-hover: #F5A58E;
  --font-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --r-lg: 18px; --r-md: 12px; --r-sm: 10px;
}
.lay-new body { font-family: var(--font-body); }
/* Bez wielkich liter i rozstrzelenia: zdania zwykłym tekstem */
.lay-new body * { text-transform: none !important; letter-spacing: normal !important; }
.lay-new h1, .lay-new h2, .lay-new .page h1, .lay-new .hero h1, .lay-new .section h2, .lay-new .rk-title {
  font-family: var(--font-head); font-weight: 700;
}
.lay-new h3 { font-family: var(--font-body); font-weight: 600; }
.lay-new :focus-visible { outline-color: var(--rust-text); border-radius: 6px; }

/* ---------- Nowy pasek ---------- */
.nh { position: sticky; top: 0; z-index: 50; background: rgba(15, 14, 13, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nh__in { display: flex; align-items: center; gap: 22px; min-height: 70px; position: relative; }
.nh__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px/1 var(--font-head); color: #CFAE84; white-space: nowrap; }
.lay-new .nh__brand:hover { color: #DCC09A; }
.nh__brand img { width: 40px; height: 40px; }
.nh__brand b { color: #E0613F; font-weight: 700; }
.nh__nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nh__sp { flex: 1; }
.nh .nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); color: var(--text-3); font: 600 15px var(--font-body); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nh .nav__link:hover, .nh .nav-dd.is-open > .nav__link, .nh .nav__link[aria-current="page"], .nh .nav-dd__btn.is-current { background: var(--panel-hi); color: var(--text); }
.nh .nav-dd { position: relative; }
.nh .nav-dd__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); display: none; z-index: 60; }
.nh .nav-dd.is-open .nav-dd__menu { display: grid; gap: 2px; }
@media (hover: hover) and (min-width: 1121px) { .nh .nav-dd:hover .nav-dd__menu { display: grid; gap: 2px; } .nh .nav-dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } }
.nh .nav-dd__it { display: block; padding: 10px 12px; border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.nh .nav-dd__it:hover, .nh .nav-dd__it[aria-current="page"] { background: var(--panel-hi); color: var(--text); }
.nh .nav-dd__it b { display: block; font-weight: 600; font-size: 15px; }
.nh .nav-dd__it small { display: block; color: var(--muted); font-size: 13px; }
.nh__btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text) !important; font: 600 14px var(--font-body); }
.nh__btn:hover { border-color: #4A423A; }
.nh__me { background: var(--panel-hi) !important; color: var(--text) !important; border-radius: 999px !important; padding: 0 14px 0 6px !important; }
.nh__me .nav__me { display: inline-flex; align-items: center; gap: 8px; }
.nh__me img { width: 32px; height: 32px; border-radius: 50%; }
.nh .nav__adm { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); color: var(--text-3); }
.nh .nav-toggle { display: none; margin-left: auto; border-radius: var(--r-sm); }
@media (max-width: 1120px) {
  .nh .nav-toggle { display: inline-flex; }
  .nh__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px var(--gutter) 18px; background: #141210; border-bottom: 1px solid var(--line); max-height: calc(100vh - 70px); overflow-y: auto; }
  .nh__nav.is-open { display: flex; }
  .nh__sp { display: none; }
  .nh .nav-dd__menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 8px 8px; background: none; min-width: 0; }
  .nh .nav-dd__btn svg { display: none; }
  .nh__btn { justify-content: flex-start; }
}

/* ---------- Wspólne elementy ---------- */
.lay-new .btn { border-radius: var(--r-md); font-family: var(--font-body); font-weight: 700; }
.lay-new .btn--green, .lay-new .btn--rust { background: var(--rust); color: #fff; }
.lay-new .btn--green:hover, .lay-new .btn--rust:hover { background: #D4532F; color: #fff; }
.lay-new .btn--dark { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.lay-new .btn--dark:hover { background: var(--panel-hi); border-color: #4A423A; color: var(--text); }
.lay-new .panel { border-radius: var(--r-lg); }
.lay-new .panel__head { background: none; border-bottom: 1px solid var(--line); font: 600 16px var(--font-body); color: var(--text); padding: 14px 20px; }
.lay-new .panel__body { padding: 20px; }
.lay-new .tile, .lay-new .card, .lay-new .feature { border-radius: 16px; }
.lay-new .slot { border-radius: 12px; }
.lay-new input, .lay-new select, .lay-new textarea { border-radius: var(--r-sm) !important; }
.lay-new .eyebrow { font: 600 14px var(--font-body); color: var(--rust-text); }
.lay-new .eyebrow::before { border-radius: 3px; width: 8px; height: 8px; }
.lay-new .badge { border-left: 0; border-radius: 999px; background: rgba(156, 196, 92, .16); color: #B9DA82; font-weight: 600; }
.lay-new .badge__dot { border-radius: 50%; background: #9CC45C; }
.lay-new .bar { border: 0; border-radius: 99px; height: 8px; background: var(--line); overflow: hidden; }
.lay-new .bar__fill { border-radius: 99px; background: #E0613F; }
.lay-new .tile__title, .lay-new .card__title, .lay-new .status__title, .lay-new .feature h3 { font-family: var(--font-body); font-weight: 600; }
.lay-new .tile__title { font-size: 17px; }
.lay-new .section { padding-top: 64px; }
.lay-new .section h2 { font-size: clamp(32px, 3.4vw, 44px); }

/* ---------- Strona główna ---------- */
.lay-new .hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-top: clamp(32px, 5vw, 72px); padding-bottom: 32px; }
.lay-new .hero h1 { font-size: clamp(52px, 6vw, 88px); line-height: 1; margin: 20px 0 18px; }
.lay-new .hero h1 em { color: inherit; }
.lay-new .hero__lead { font-size: 18px; color: var(--text-3); max-width: 600px; white-space: pre-line; }
.lay-new .hero__side { display: flex; flex-direction: column; align-items: center; max-width: 760px; width: 100%; justify-self: end; }
.lay-new .hero__side .hero__logo img { max-width: 300px; }
.lay-new .hero__side > .panel { width: 100%; margin-top: -18px; position: relative; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); background: rgba(24, 22, 20, .96); }
.lay-new .hero__side .status__grid { display: grid; gap: 14px; }
.lay-new .hero__side .status__connect { flex-wrap: wrap; }
.lay-new .hero__side .status__ip { flex: 1 1 220px; }
.lay-new .status__state::before { border-radius: 50%; }
.lay-new .quick { gap: 14px; padding-top: 28px; }
.lay-new .podium__c, .lay-new .podium__i { border-radius: 16px; }
@media (max-width: 980px) {
  .lay-new .hero__inner { grid-template-columns: 1fr; }
  .lay-new .hero__side { justify-self: stretch; max-width: none; }
}

/* ---------- Rankingi ---------- */
.lay-new .seg { gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); }
.lay-new .seg button { border: 0; border-radius: 9px; background: none; font: 600 14px var(--font-body); color: var(--text-3); min-height: 40px; }
.lay-new .seg button.on { background: var(--panel-hi); color: var(--text); box-shadow: none; }
.lay-new .rk-table th { background: none; font: 600 12px var(--font-body); color: var(--muted); }
.lay-new .rk-table td.pos, .lay-new .rk-table td.val { font-family: var(--font-body); font-size: 16px; }
.lay-new .rk-table td.val { color: var(--text); }
.lay-new .rk-table tr.me td { background: rgba(224, 97, 63, .10); }
.lay-new .rk-title { font-size: 30px; }
.lay-new .rk-find input { border-radius: var(--r-md) !important; }
.lay-new .rk-more .btn { border-radius: var(--r-md); }
.lay-new .rk-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
.lay-new .rk-side { border-radius: var(--r-lg); padding: 10px; }
.lay-new .rk-side__grp { border-top: 0; }
.lay-new .rk-side button { border-left: 0; border-radius: var(--r-sm); padding: 9px 12px; }
.lay-new .rk-side button.rk-side__name { font: 600 15px var(--font-body); color: var(--text-2); padding: 10px 12px; }
.lay-new .rk-side__name small { border-radius: 6px; }
.lay-new .rk-side button.on, .lay-new .rk-side button.rk-side__name.on, .lay-new .rk-side__grp.has-cur .rk-side__name[data-board] { background: rgba(224, 97, 63, .15); color: var(--rust-hover); }
.lay-new .rk-side__items { padding: 2px 0 6px 8px; }
.lay-new .podium__c { border-top-width: 1px; border-color: var(--line); }
.lay-new .podium__i--1 .podium__c { background: var(--panel-hi); border-color: #5A4A30; }
.lay-new .podium__av { border-radius: 50%; }
.lay-new .podium__name, .lay-new .podium__pos { font-family: var(--font-body); }
.lay-new .podium__pts { font-family: var(--font-head); font-size: 30px; color: var(--text); }
.lay-new .rk-table-wrap, .lay-new .rk-main .panel { border-radius: var(--r-lg); }
.lay-new .rk-av { border-radius: 50%; }
.lay-new .rk-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lay-new .rk-switch a { border: 0 !important; border-radius: 9px; padding: 9px 16px; font: 600 14px var(--font-body); color: var(--text-3); background: none !important; box-shadow: none !important; margin: 0 !important; }
.lay-new .rk-switch a:hover { color: var(--text); }
.lay-new .rk-switch a[aria-current="page"] { background: var(--panel-hi) !important; color: var(--text); }
.lay-new .pts-rules { border-radius: var(--r-md); }

/* ---------- Zaokrąglenia wszędzie (nowy wygląd nie ma ostrych narożników) ----------
   Lista wygenerowana z klas starego arkusza, które mają ramkę albo tło z odstępem. */
.lay-new :is(
  .article .tier-card__chips li,
  .article__banner,
  .bc,
  .bdg,
  .bdg-tip,
  .beta-add input,
  .br-add input,
  .br-auto,
  .br-grow--open,
  .br-grow__miss,
  .br-grow__o,
  .br-grow__s,
  .br-guide details,
  .br-have,
  .br-list li.br-hit,
  .br-mid select,
  .br-ov,
  .br-plan,
  .br-plan--top.br-plan--ok,
  .br-plant,
  .br-planter,
  .br-preset,
  .br-prev,
  .br-prog,
  .br-res,
  .br-srv,
  .br-srv__stat,
  .br-tabs,
  .br-tip,
  .br-unk select,
  .br-unk__all,
  .br-ut,
  .br-warn,
  .bs,
  .bug-fr,
  .bug-fr img,
  .callout,
  .card,
  .ccv-h__r,
  .chart-empty,
  .chart-tabs,
  .cl-box,
  .cl-h,
  .cl-h__mine,
  .cl-h__motd,
  .cl-h__place,
  .cl-hist div,
  .cl-p,
  .cl-stack__more,
  .cl-tile,
  .clg,
  .clock div,
  .cmp-dlg,
  .cmp-dlg__box input,
  .cmp-player,
  .ctab,
  .cv-bdg>div,
  .cv-g,
  .cv-hero,
  .cv-k,
  .cv-times,
  .ek input[type=search],
  .ek-cm__q input,
  .ek-col,
  .ek-cv__opts,
  .ek-dev,
  .ek-f input,
  .ek-f select,
  .ek-f textarea,
  .ek-ghost,
  .ek-its__res,
  .ek-its__t input,
  .ek-msg,
  .ek-mv button,
  .ek-pin,
  .ek-pop,
  .ek-pv,
  .ek-pv__bar,
  .ek-sw,
  .ek-tg,
  .ek-zoom button,
  .el-g,
  .el-g__kpi,
  .el-it__i,
  .el-leg b,
  .el-sch,
  .el-sch__zoom,
  .el-st__k,
  .el-steps code,
  .el-t,
  .el-zm__bar,
  .el-zm__bar button,
  .el-zm__hint,
  .ela__f input,
  .ela__f select,
  .ela__f textarea,
  .ela__pv,
  .feature,
  .feed__ic,
  .hist-row,
  .hof-card,
  .hof-head select,
  .map-empty,
  .mapv,
  .mapv__coord,
  .mapv__ctrl .ib,
  .mapv__tip,
  .md-img a,
  .ms,
  .ms-big div,
  .ms-modal,
  .ms-modal__box,
  .ms-modal__box img,
  .ms-tile,
  .ms__acts select,
  .myrep li,
  .myrep__x,
  .news-card,
  .news-ch,
  .news-post__content,
  .news-post__img,
  .online-hidden,
  .online-list a,
  .pager a,
  .panel,
  .pcard,
  .pf__i,
  .pf__ic,
  .pf__nav .ib,
  .ph__owner,
  .ph__ptsby,
  .ph__why,
  .pin__label,
  .pk-card,
  .pk-card h2,
  .pk-cmd,
  .pk-ev em,
  .pk-ev>a,
  .pk-ev>div,
  .pk-ip code,
  .pk-s,
  .pk-s__n,
  .pk-tl,
  .podium__c,
  .prof-tab,
  .prof-tab__s,
  .ptc,
  .ptip,
  .ptl,
  .ptl__t li,
  .pts-rules,
  .rc-goal input,
  .rc-ico,
  .rc-it,
  .rc-o,
  .rc-q button,
  .rc-q input,
  .rc-search,
  .rc-tab,
  .rc-type,
  .result,
  .rk-find input,
  .rk-pick select,
  .rk-side,
  .rk-side__name small,
  .rk-tools select,
  .rp,
  .rp select,
  .rp textarea,
  .rp-dim,
  .rp-ok,
  .rp__kinds label span,
  .rp__where,
  .rules li,
  .search input,
  .sec-link,
  .slot,
  .srv-online,
  .ss-cat,
  .ss-champ__badge,
  .ss-champ__i,
  .ss-fact,
  .ss-nums div,
  .ss-recs li,
  .stat-tile,
  .stat-tile .pt__med,
  .status__ip,
  .tc,
  .tier-card,
  .tier-card__chips li,
  .tile,
  .tip,
  .tp,
  .tp-kind button,
  .tp-tiers button,
  .wiki-nav__start,
  .wiki-start,
  .wp__card,
  .wp__node,
  .zoom img,
  .zoom__x,
  .zw-ani,
  .zw-grp__h b,
  .zw-hd input,
  .zw-known,
  .zw-mini,
  .zw-name,
  .zw-next--b,
  .zw-ped__f select,
  .zw-ped__x,
  .zw-pick,
  .zw-q button,
  .zw-seg,
  .zw-seg button,
  .zw-sug,
  .zw-sug__l li,
  .zw-sx button,
  .zw-undo,
  button.cp
) { border-radius: 14px; }
.lay-new :is(button, .btn, input, select, textarea, .nav-toggle, .nav__adm) { border-radius: 10px; }
.lay-new :is(code, kbd) { border-radius: 6px; }
.lay-new :is(.badge, .beta-tag, .news-tag, .news-pin, .upd-tag, .cl-chip, .cl-role, .ms-chips b, .ms-chips span, .pos-badge, .zw-tag, .brand__tag, .sbdg, .feed__you, .legend .sw) { border-radius: 999px; }
.lay-new :is(.rk-av, .pcard__av, .cv-av, .ss-champ__av, .podium__av, .prof-head img, .ph__av, .nav__me img, .cl-stack .rk-av, .pin__dot, .feed__you, .bc__star, .tc__crown) { border-radius: 50% !important; }
.lay-new :is(.zoom, .ek.ek--full) { border-radius: 0; }
.lay-new img { border-radius: inherit; }
.lay-new :is(.article img, .md-img img, .news-post__img, .news-card img, .article__banner img) { border-radius: 12px; }
.lay-new :is(.panel, .card, .news-card, .tile, .hof-card, .pk-card, .cv-g, .tier-card) > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.lay-new :is(.panel, .card, .news-card, .tile, .hof-card, .pk-card, .cv-g, .tier-card) > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.lay-new :is(.news-card, .card) { overflow: hidden; }

/* ---------- Drobne znaczniki: kwadraty → zaokrąglone ---------- */
.lay-new :is(.status__state, .eyebrow, .article h2, .online-list a, .prof-group, .md-h2, .article .md-h2, .md-h1, .article .md-h1, .cv h3.cv-h, .ms-tl li, .zw-legend span)::before { border-radius: 3px; }
.lay-new .status__state::before, .lay-new .online-list a::before { border-radius: 50%; }

/* ---------- Profil gracza (etap 2) ---------- */
.lay-new .pc { background: linear-gradient(180deg, color-mix(in srgb, #E0613F 12%, var(--panel)) 0, var(--panel) 260px); }
.lay-new .pc__avw, .lay-new .pc__avw::before, .lay-new .pc__avw::after { border-radius: 50%; }
.lay-new .ph__av-zoom, .lay-new .ph__av { border-radius: 50%; }
.lay-new .pc__pod { border-radius: 999px; padding: 3px 12px; }
.lay-new .pc__rank, .lay-new .pc__styn { font-family: var(--font-body); font-weight: 700; }
.lay-new .pc__v { font-family: var(--font-head); font-size: 32px; }
.lay-new .pc__k { font: 600 12px var(--font-body); }
.lay-new .pc__cells, .lay-new .pc__kd, .lay-new .pc__sty, .lay-new .pc__meta { border-color: var(--line); }
.lay-new .prof-tab { font: 600 15px var(--font-body); }
.lay-new .pm h2, .lay-new .prof-group { font-family: var(--font-head); }
.lay-new .stat-tile b, .lay-new .stat-tile strong { font-family: var(--font-head); }

/* ---------- Wiki (etap 2) ---------- */
.lay-new .wiki-nav { padding: 8px; }
.lay-new .wiki-nav a { border-radius: var(--r-sm); padding: 8px 12px; margin: 1px 0; border-left: 0; }
.lay-new .wiki-nav a[aria-current="page"] { padding-left: 12px; border-left: 0; background: rgba(224, 97, 63, .15); color: var(--rust-hover); font-weight: 600; }
.lay-new .wiki-nav__h, .lay-new .wiki-nav button { border-radius: var(--r-sm); }
.lay-new .article h1 { font-size: clamp(42px, 4.5vw, 60px); }
.lay-new .article h2 { font-family: var(--font-head); font-size: clamp(28px, 2.6vw, 36px); }
.lay-new .article h3 { font-family: var(--font-body); font-weight: 600; }
.lay-new .article > p, .lay-new .article .md p { max-width: none; }   /* tekst artykułu na całą szerokość treści */
.lay-new .toc ul a { border-radius: 0 8px 8px 0; }
.lay-new .tier-card { border-left-width: 0 !important; border-top: 3px solid var(--tc, var(--line)) !important; }
.lay-new .callout { overflow: hidden; }
.lay-new .wiki-layout { gap: clamp(20px, 2.4vw, 40px); }
.lay-new :is(.mk-list button i, .bdg-legend i, .bdg-ladder i, .ph__dot, .steps-btn__trail i, .bc__pips i, .ptip__lad li i, .badge__dot, .pin__dot) { border-radius: 50%; }
.lay-new :is(.mapv, .el-sch, .ek-cv) { border-radius: var(--r-lg); overflow: hidden; }

/* Zakładki z kreską na dole (aktywna podkreślona): zaokrąglone tylko górne rogi, żeby kreska siedziała na krawędzi */
.lay-new :is(.prof-tab, .br-tabs button, .zw-seg button) { border-radius: 10px 10px 0 0 !important; }
/* Wybór z pełną ramką: zamiast kreski na dole sama ramka, zaokrąglona dookoła */
.lay-new .tp-kind .on, .lay-new .br-preset.on { box-shadow: none; }

/* ---------- Etap 3: narzędzia, aktualności, Hall of Fame, Kronika ----------
   Boczne paski akcentów nie pasują do zaokrąglonych ramek: kolor akcentu przechodzi na całą ramkę (półprzezroczyście). */
.lay-new .pk-warn { border: 1px solid color-mix(in srgb, var(--rust) 55%, transparent); border-radius: 12px; }
.lay-new .el-todo { border: 1px solid color-mix(in srgb, #E8C15A 45%, transparent); border-radius: 12px; }
.lay-new .ek-sent, .lay-new .zw-ok, .lay-new .zw-next--b { border: 1px solid color-mix(in srgb, #7FA33F 55%, transparent); border-radius: 12px; }
.lay-new .zw-warn, .lay-new .zw-known { border: 1px solid color-mix(in srgb, #E8B03A 50%, transparent); border-radius: 12px; }
.lay-new .zw-info { border: 1px solid var(--line); border-radius: 12px; }
.lay-new .zw-ped__x, .lay-new .br-grow__miss { border: 1px solid color-mix(in srgb, #D9583B 55%, transparent); border-radius: 10px; }
.lay-new .zw-sug { border: 1px solid color-mix(in srgb, var(--plywood) 45%, transparent); border-radius: 12px; }
.lay-new .cl-h__motd, .lay-new .mk-detail, .lay-new .news-ch { border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 12px; }
.lay-new .wp__card--now { border: 1px solid color-mix(in srgb, var(--rust) 60%, transparent); }
.lay-new .br-srv { border-left: 0; border: 1px solid color-mix(in srgb, var(--rust) 45%, transparent); border-radius: var(--r-lg); }
.lay-new .badge { border-left: 0; }
/* Recykler: kolor rodzaju jako pasek u góry karty */
.lay-new .rc-type { padding: 16px 14px 12px; overflow: hidden; }
.lay-new .rc-type::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 4px; }
.lay-new .rc-type b { font: 700 16px/1.2 var(--font-body); color: var(--text); }
.lay-new .rc-tab { font: 600 14px var(--font-body); }
/* Wiersze wyróżnione: tło zamiast paska z boku */
.lay-new .feed li.feed__me { box-shadow: none; border-radius: 10px; background: rgba(232, 193, 90, .09); padding-left: 10px; padding-right: 10px; }
.lay-new .feed li.feed__sep { border-radius: 10px; border-style: dashed; border-width: 1px; }
.lay-new .br-list li.br-hit { box-shadow: none; border-radius: 8px; }
.lay-new .zw-pairs tr.cur td { background: rgba(207, 174, 132, .10); box-shadow: none; }
.lay-new .feed__t b, .lay-new .feed b { font-weight: 600; }
/* Aktualności */
.lay-new .news-card h3, .lay-new .news-post h1, .lay-new .ss h2, .lay-new .hof-sec h2, .lay-new .pk h2 { font-family: var(--font-head); }
.lay-new .news-post__content { padding: clamp(18px, 2.4vw, 32px); }
.lay-new .news-post__content h1, .lay-new .news-post__content h2 { font-family: var(--font-head); }
.lay-new .news-tag, .lay-new .news-pin { font: 600 12px var(--font-body); padding: 2px 10px; }
/* Narzędzia: nagłówki i karty */
.lay-new :is(.br-srv h2, .el-t h3, .ek h2, .zw h2, .rc h2) { font-family: var(--font-head); }
.lay-new .el-g { overflow: hidden; }
/* Pierwsze kroki: numerowane kroki */
.lay-new .pk-s__n { border-radius: 12px; font-family: var(--font-head); }
.lay-new .news-post { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* Nagłówki z własnym tłem wewnątrz zaokrąglonych ramek (np. „Najlepsze czasy członków” na stronie klanu):
   górne rogi jak u ramki, ostatni element dolne rogi jak u ramki */
.lay-new :is(.cl-box, .cv-g, .rp, .ms-modal__box, .cmp-dlg, .ss-cat, .wp__card, .el-g, .ek-pop, .br-plan, .br-res, .zw-mini, .hof-card, .pk-card, .tier-card, [class*="-box"], [class*="card"]) > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.lay-new :is(.cl-box, .cv-g, .rp, .ms-modal__box, .cmp-dlg, .ss-cat, .wp__card, .el-g, .ek-pop, .br-plan, .br-res, .zw-mini, .hof-card, .pk-card, .tier-card, [class*="-box"], [class*="card"]) > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.lay-new :is(.cl-box h3, .tier-card__head, .cv-g__h, .rp__h, .panel__head):first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }

/* Tabelki z paskami (np. szanse w artykule o reliktach): nagłówek z zaokrąglonymi górnymi rogami, paski zaokrąglone */
.lay-new .ctab > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.lay-new .ctab > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.lay-new .ctab__h { font: 600 12px var(--font-body); }
/* Wszystkie paski postępu i ich wypełnienia: zaokrąglone końce */
.lay-new :is(.bar, .bar__fill, .wp__rail, .wp__fill, .cmp-bar, .cmp-bar > *, .ph__bar, .ph__bar > *, .ms-bar, .ms-bar > *, .cv-split, .cv-split > *, .cl-bar, .cl-bar > *, .ms-pct__bar, .ms-pct__bar > *, .br-prog, .br-prog > *, .rc-bar i, .bs__seg i, .bc__bar, .bc__bar > *, .tr__bar, .tr__bar > *, .ctab__bar, .ctab__bar b, .pk-tl div) { border-radius: 99px; }
.lay-new .join-btn__bar { border-radius: 0 0 12px 12px; }

/* ---------- Stopka nowego wyglądu ---------- */
html:not(.lay-new) #ftr-new { display: none !important; }
.lay-new .site-footer { display: none !important; }
.nf { border-top: 1px solid var(--line); margin-top: 72px; background: rgba(15, 14, 13, .6); }
.nf__in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 48px; font-size: 15px; }
.nf__brand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 420px; }
.nf nav { display: flex; flex-direction: column; gap: 8px; }
.nf nav b { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.nf nav a, .nf__links a { color: var(--text-3); text-decoration: none; }
.nf nav a:hover, .nf__links a:hover { color: var(--text); }
.nf__links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nf__links a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); }
@media (max-width: 900px) { .nf__in { grid-template-columns: 1fr 1fr; } .nf__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .nf__in { grid-template-columns: 1fr; } }
/* Podsumowanie sezonu: rekordy czasu bez paska z boku, złota ramka dookoła */
.lay-new .ss-recs li { border: 1px solid color-mix(in srgb, #E8C15A 35%, transparent); border-radius: 12px; }
.lay-new .ss-recs li b, .lay-new .ss-recs .ss-t { font-family: var(--font-body); }
/* Hall of Fame: szersze karty, żeby nicki się mieściły */
.lay-new .hof-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.lay-new .hof-card__cat { font: 600 12px var(--font-body); }
/* Kreator elektryki: menu pod prawym przyciskiem i jego pozycje */
.lay-new :is(.ek-cm, .ek-cm__box) { border-radius: 14px; }
.lay-new .ek-cm :is(button, input, .ek-cm__i) { border-radius: 9px; }
.lay-new .ek-cm { padding: 6px; }
.lay-new :is(.ek-cm__h, .ek-cm__i, .ek-cm__q input, .el-svg .el-n__t, .el-svg .el-num text, .el-svg .el-pill text, .el-svg .el-cfgw, .el-svg .el-hv__t) { font-family: var(--font-body); letter-spacing: normal; }
.lay-new :is(.el-svg .el-n__e, .el-svg .el-p__t, .ek-cm__l, .ek-cm__r span, .ek-tg b) { font-family: var(--font-body); }
/* Plakietki rodzaju wpisu (Wipe, Aktualizacja, Event, Info) jak „Przypięte”: kolorowy obrys, pigułka, bez wypełnienia */
.lay-new .news-card__meta > .news-tag, .lay-new .news-tag, .lay-new .news-pin { border-radius: 999px !important; background: transparent; border: 1px solid currentColor; line-height: 1.4; }
.lay-new .news-pin { color: var(--plywood); }
.lay-new .news-tag--wipe { color: #EE7A58; }
.lay-new .news-tag--update { color: #7FB6D9; }
.lay-new .news-tag--event { color: #8FC46A; }
.lay-new .news-tag--info { color: #D8C3A5; }
/* „Dołącz do gry” / „Połącz z serwerem” zielone (reszta przycisków btn--green zostaje rdzawa) */
.lay-new .btn--green.join-btn { background: var(--green); color: var(--on-green); }
.lay-new .btn--green.join-btn:hover { background: var(--green-hover); color: var(--on-green); }
.lay-fab .lay-sw { background: var(--bg); }
.lay-fab .lay-sw button[aria-pressed="true"] { background: var(--rust); color: #fff; }
/* Od 3 grudnia 2026, 18:00 nowy wygląd jest jedyny: bez dymku „Wygląd” */
.lay-final .lay-fab { display: none !important; }
/* „Pierwsze kroki” w menu wiki: pełny obrys (ogólna reguła linków menu zdejmowała lewą krawędź) */
/* „Pierwsze kroki” w menu wiki: co ok. 4 s przez przycisk przelatuje smuga światła (stoi po najechaniu i przy wyłączonych animacjach w systemie) */
.lay-new .wiki-nav a.wiki-nav__start { position: relative; overflow: hidden; isolation: isolate; border-left: 1px solid var(--rust); padding: 10px 14px; }
.lay-new .wiki-nav a.wiki-nav__start > * { position: relative; z-index: 1; }
.lay-new .wiki-nav a.wiki-nav__start::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%; z-index: 0; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 220, 190, .18), transparent); animation: pk-shine 4s ease-in-out infinite; }
.lay-new .wiki-nav a.wiki-nav__start:hover::after, .lay-new .wiki-nav a.wiki-nav__start:focus-visible::after { animation-play-state: paused; opacity: 0; }
@keyframes pk-shine { 0%, 60% { left: -50%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .lay-new .wiki-nav a.wiki-nav__start::after { animation: none; display: none; } }

/* ---------- Nagłówek: przyciski po prawej (Discord, Zagłosuj na serwer, profil, panel) ---------- */
/* Discord: fioletowy; po najechaniu kropki w dymku skaczą jak „pisze…” */
.nh .nh__dc { gap: 9px; background: #5865F2; border-color: #5865F2; color: #fff !important; transition: background-color .15s; }
.nh .nh__dc:hover, .nh .nh__dc:focus-visible { background: #4752C4; border-color: #4752C4; }
.nh__dc-ic { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 10px 10px 10px 3px; background: rgba(255, 255, 255, .2); }
.nh__dc-ic i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.nh .nh__dc:hover .nh__dc-ic i, .nh .nh__dc:focus-visible .nh__dc-ic i { animation: nh-typing 1s ease-in-out infinite; }
.nh .nh__dc:hover .nh__dc-ic i:nth-child(2), .nh .nh__dc:focus-visible .nh__dc-ic i:nth-child(2) { animation-delay: .15s; }
.nh .nh__dc:hover .nh__dc-ic i:nth-child(3), .nh .nh__dc:focus-visible .nh__dc-ic i:nth-child(3) { animation-delay: .3s; }
@keyframes nh-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-3px); opacity: 1; } }
/* Zagłosuj na serwer: złoty, serduszka po najechaniu (animacja .nav-vote ze style.css); bez podskoku */
.nh .nh__vote { background: #E8C15A; border-color: #E8C15A; color: #14110F !important; overflow: visible; border-radius: var(--r-md); }
.nh .nh__vote::before { border-radius: inherit; }
.nh .nh__vote:hover, .nh .nh__vote:focus-visible { background: #F2CF6E; border-color: #F2CF6E; }
.nh .nh__vote:hover, .nh .nh__vote:focus-visible, .nh .nh__vote:active { transform: none; }
/* Profil: taki sam kształt jak pozostałe przyciski */
.nh .nh__me { min-height: 44px; border: 1px solid var(--line); background: var(--panel) !important; border-radius: var(--r-md) !important; padding: 0 16px 0 7px !important; font: 600 14px var(--font-body); transition: border-color .15s; }
.nh .nh__me:hover { border-color: #4A423A; }
.nh .nh__me img { width: 30px; height: 30px; border-radius: 50%; }
/* Mój profil bez awatara (niezalogowany albo brak zdjęcia): równe odstępy jak w innych przyciskach, ikona w kółku zamiast awatara */
.nh .nh__me:not(:has(img)) { gap: 9px; padding: 0 16px 0 7px !important; }
.nh .nh__me-ic { box-sizing: content-box; width: 16px; height: 16px; padding: 7px; border-radius: 50%; background: var(--panel-hi); color: var(--muted); flex: none; transition: color .15s, background-color .15s; }
.nh .nh__me:hover .nh__me-ic, .nh .nh__me:focus-visible .nh__me-ic { color: var(--text); background: #3A332D; }
.nh .nh__me .nav__me:not(:has(img)) { padding-left: 9px; }
/* Panel administratora: czerwony, zębatka obraca się po najechaniu */
.nh .nav__adm { background: #B8322A; border: 1px solid #B8322A; color: #fff; border-radius: var(--r-md); transition: background-color .15s; }
.nh .nav__adm svg { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.nh .nav__adm:hover, .nh .nav__adm:focus-visible { background: #D23A30; border-color: #D23A30; color: #fff; }
.nh .nav__adm:hover svg, .nh .nav__adm:focus-visible svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .nh .nav__adm svg { transition: none; transform: none !important; } .nh .nh__dc-ic i { animation: none !important; } }
/* Równe odstępy (10 px) na komputerze; na telefonie przyciski są jeden pod drugim */
@media (min-width: 1121px) {
  .nh .nh__dc, .nh .nh__vote, .nh .nh__me, .nh .nav__adm { margin-right: 0 !important; }
  .nh .nh__dc { margin-left: 8px !important; }
  .nh .nh__vote, .nh .nh__me, .nh .nav__adm { margin-left: 6px !important; }
}
@media (max-width: 1120px) { .nh .nav__adm { width: auto; justify-content: flex-start; gap: 10px; padding: 0 14px; } .nh .nh__me { justify-content: flex-start; } }
/* Wyszukiwarka wiki na górze menu po lewej */
.lay-new .wiki-nav__search { position: relative; display: block; margin: 0 0 8px; max-width: none; }
.lay-new .wiki-nav__search::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8BDB0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.lay-new .wiki-nav__search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: var(--r-md); border: 1px solid var(--line); background: #141210; color: var(--text); font: 500 14px var(--font-body); outline: none; box-shadow: none; }
.lay-new .wiki-nav__search input:focus { border-color: #6B5E50; }
.lay-new .wiki-nav__search input::placeholder { color: var(--text-3); }

/* ---------- Hall of Fame (nowy wygląd) ---------- */
.hf-seas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.hf-seas button, .hf-chips button { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font: 600 13px var(--font-body); cursor: pointer; }
.hf-seas button:hover, .hf-chips button:hover { border-color: #4A423A; color: var(--text); }
.hf-seas button.on { background: #3A2219; border-color: var(--rust); color: #F5D9CE; }
.hf-chips button.on { border-color: #C9A57A; color: #F2E6D8; background: #221D18; }
.hf-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 28px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.hf-champ { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hf-champ__av { flex: none; width: 96px; height: 96px; border-radius: 50% !important; border: 3px solid #E8C15A; object-fit: cover; box-shadow: 0 0 0 6px rgba(232, 193, 90, .12); }
.hf-champ small { display: block; color: #E8C15A; font: 600 13px var(--font-body); margin-bottom: 4px; }
.hf-champ__n { display: block; font: 800 clamp(24px, 3vw, 34px) / 1.1 var(--font-head, var(--font-body)); overflow-wrap: anywhere; }
.hf-champ__n a { color: var(--text); text-decoration: none; }
.hf-champ__n a:hover { text-decoration: underline; }
.hf-champ .hf-champ__sub { display: block; margin-top: 6px; color: var(--text-3); font-size: 14px; }
.hf-champ__n { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.hf-noav { display: inline-block; background: linear-gradient(135deg, #3a332c, #1f1b18); }
.hf-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.hf-pod__c { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; gap: 2px; }
.hf-pod__av { width: 44px; height: 44px; border-radius: 50% !important; object-fit: cover; margin-bottom: 4px; }
.hf-pod__n { font: 600 14px var(--font-body); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-pod__n a { color: var(--text); text-decoration: none; }
.hf-pod__c small { color: var(--text-3); font-size: 12px; }
.hf-pod__c i { display: flex; align-items: flex-start; justify-content: center; width: 100%; margin-top: 8px; padding-top: 8px; border-radius: 12px 12px 4px 4px; font: 800 18px var(--font-body); font-style: normal; }
.hf-pod__c--1 i { height: 92px; background: #4E401C; color: #F2CF6E; }
.hf-pod__c--2 i { height: 66px; background: #34322F; color: #D8D4CC; }
.hf-pod__c--3 i { height: 50px; background: #42291B; color: #E0A27A; }
.hf-pod__c--empty i { opacity: .35; }
.hf-sum { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hf-sum div { padding: 10px 14px; border-radius: var(--r-md); background: #141210; color: var(--text-3); font-size: 12px; }
.hf-sum b { display: block; color: var(--text); font: 700 16px var(--font-body); }
.hf-tabs { display: flex; gap: 2px; margin: 26px 0 16px; border-bottom: 1px solid var(--line); }
.lay-new .hf-tabs button { flex: none; padding: 11px 18px; border: 0; border-bottom: 2px solid transparent; border-radius: 12px 12px 0 0; background: none; color: var(--text-3); font: 600 15px var(--font-body); cursor: pointer; margin-bottom: -1px; }
.lay-new .hf-tabs button:hover { color: var(--text); }
.lay-new .hf-tabs button.on { color: var(--text); border-bottom-color: var(--rust); background: var(--panel); }
.hf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hf-new { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid #6E8F3A; color: #B5D36B; font-size: 11px; font-weight: 600; }
.hf-lb__n > a { color: var(--text); text-decoration: none; }
.hf-lb__n > a:hover { text-decoration: underline; }
.hf-lb { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.hf-lb li { display: grid; grid-template-columns: 34px 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.hf-lb li:first-child { border-top: 0; }
.hf-lb__pos { color: var(--text-3); font: 700 15px var(--font-body); text-align: center; }
.hf-lb--1 .hf-lb__pos { color: #F2CF6E; } .hf-lb--2 .hf-lb__pos { color: #D8D4CC; } .hf-lb--3 .hf-lb__pos { color: #E0A27A; }
.hf-lb__av { width: 36px; height: 36px; border-radius: 50% !important; object-fit: cover; }
.hf-lb__n { min-width: 0; font: 600 15px var(--font-body); }
.hf-lb__c { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.hf-lb__c span { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-3); font-size: 12px; font-weight: 500; }
.hf-lb__v { color: #F2CF6E; font: 800 20px var(--font-body); }
@media (max-width: 760px) {
  .hf-hero { grid-template-columns: 1fr; padding: 18px; }
  .hf-champ__av { width: 72px; height: 72px; }
  .hf-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-lb li { grid-template-columns: 26px 32px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
}
.hf-ts { display: none; }
@media (max-width: 520px) { .hf-tl { display: none; } .hf-ts { display: inline; } .lay-new .hf-tabs button { padding: 10px 14px; } }
/* Zakładki Hall of Fame: podkreślenie, zaokrąglone tylko górne rogi; bez przewijania w pionie */
/* Hall of Fame: panele grup (zwycięzcy sezonu i rekordy) */
.hf-panels { columns: 2 480px; column-gap: 12px; }
.hf-panels .hf-pn { break-inside: avoid; margin-bottom: 12px; width: 100%; }
.hf-pn { padding: 6px 0 4px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.hf-pn h3 { margin: 0; padding: 10px 18px 8px; font: 700 15px var(--font-body); color: #C9A57A; }
.hf-pn h3 small { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.hf-row { border-top: 1px solid var(--line); }
.hf-row summary, .hf-row__s { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 8.5em 18px; align-items: center; gap: 12px; padding: 10px 18px; list-style: none; }
.hf-row summary { cursor: pointer; }
.hf-row summary::-webkit-details-marker { display: none; }
.hf-row summary:hover { background: #1F1B18; }
.hf-pn .hf-row:last-child, .hf-pn .hf-row:last-child summary, .hf-pn .hf-row:last-child .hf-row__more { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.hf-row__k { min-width: 0; color: var(--text-2); font-size: 14px; }
.hf-row__k small { display: block; color: var(--muted); font-size: 12px; }
.hf-row__who { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 14px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-row__who a, .hf-row__more a { color: var(--text); text-decoration: none; }
.hf-row__who a:hover, .hf-row__more a:hover { text-decoration: underline; }
.hf-row__av { flex: none; width: 26px; height: 26px; border-radius: 50% !important; border: 2px solid #E8C15A; object-fit: cover; }
.hf-row__av--sm { width: 20px; height: 20px; border: 0; vertical-align: -5px; margin-right: 4px; }
.hf-row__avs { display: inline-flex; flex: none; }
.hf-row__avs .hf-row__av + .hf-row__av { margin-left: -10px; }
.hf-row__v { color: #F2CF6E; font: 700 14px var(--font-body); white-space: nowrap; text-align: right; }
.hf-row__chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; justify-self: center; }
.hf-row[open] .hf-row__chev { transform: rotate(225deg); margin-top: 4px; }
.hf-row[open] summary { background: #1F1B18; }
.hf-row__more { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 8px 18px 12px 18px; background: #1A1714; color: var(--text-3); font-size: 13px; }
.hf-row__more em { font-style: normal; color: var(--muted); margin-right: 2px; }
.hf-row__more b { color: var(--text-2); font-weight: 600; }
@media (max-width: 600px) {
  .hf-row summary, .hf-row__s { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 4px 10px; padding: 10px 14px; }
  .hf-row__who { grid-column: 1; grid-row: 2; }
  .hf-row__v { grid-column: 2; grid-row: 1 / span 2; }
  .hf-row__chev { grid-column: 3; grid-row: 1 / span 2; }
  .hf-pn h3 { padding: 10px 14px 8px; }
}
.hf-row__more > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.hf-row__more .hf-row__av--sm { margin: 0; vertical-align: 0; }
/* Podium rankingu na telefonie: wynik mieści się w kafelku (mniejsza czcionka, „pkt” pod spodem w razie potrzeby) */
@media (max-width: 640px) {
  .lay-new .podium__pts { font-size: clamp(16px, 5.4vw, 26px); line-height: 1.1; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
  .lay-new .podium__pts small { display: inline-block; font-size: 11px; margin-left: 2px; }
}
/* Rankingi na telefonie i tablecie: jedna kolumna (wcześniej treść zostawała w kolumnie 280 px po ukrytym menu) */
@media (max-width: 900px) { .lay-new .rk-layout { grid-template-columns: minmax(0, 1fr); } }
/* Tabela rankingu na telefonie: węższa kolumna miejsca, odznaki mogą zejść pod nick, wynik zawsze widoczny (bez przewijania w bok) */
@media (max-width: 640px) {
  .lay-new .rk-table th, .lay-new .rk-table td { padding-left: 8px; padding-right: 8px; }
  .lay-new .rk-table th:first-child, .lay-new .rk-table td.pos { width: 34px; padding-left: 12px; padding-right: 2px; }
  .lay-new .rk-table td.val, .lay-new .rk-table th:last-child { white-space: nowrap; padding-right: 12px; }
  .lay-new .rk-who { flex-wrap: wrap; row-gap: 4px; min-width: 0; }
  .lay-new .rk-who > a { display: inline-block; max-width: calc(100vw - 250px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
}
/* Rankingi na telefonie: bez odznak przy nickach (podium i tabela) */
@media (max-width: 640px) { .lay-new .rk-main .bdg-mini { display: none !important; } .lay-new .rk-who { flex-wrap: nowrap; } .lay-new .rk-who > a { max-width: calc(100vw - 250px); } }
/* Wiki: zaktualizowany artykuł (7 dni po podmianie) – ramka ze zmienionymi sekcjami, znaczniki przy nagłówkach, kropka przy grupie w menu */
.lay-new .upd-box { margin: 0 0 22px; padding: 12px 16px; border: 1px solid rgba(232, 160, 60, .35); background: rgba(232, 160, 60, .08); border-radius: 12px; font-size: 14px; line-height: 1.7; }
.lay-new .upd-box > b { display: block; color: #e8a03c; margin-bottom: 2px; }
.lay-new .upd-box p { margin: 0; }
.lay-new .upd-box p > span { color: var(--muted); }
.lay-new .upd-box a { color: #e8a03c; text-underline-offset: 3px; }
.lay-new .upd-box__add a { color: #7cc35e; }
.lay-new .upd-box i { font-style: normal; color: var(--muted); }
.lay-new .upd-sec { display: inline-block; margin-left: 10px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: middle; background: rgba(232, 160, 60, .16); color: #e8a03c; letter-spacing: 0; }
.lay-new .upd-sec--add { background: rgba(110, 190, 90, .16); color: #7cc35e; }
.wiki-nav__dot { display: none; }
.lay-new .wiki-nav__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e8a03c; margin: 0; flex: none; }
/* Strona 404: parodia ekranu śmierci (losowy „zabójca”, podpowiedź artykułu, wyszukiwarka, śpiwory), bez poświaty */
.lay-new .e404 { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 32px; align-items: start; padding-top: clamp(56px, 7vw, 96px); padding-bottom: 72px; isolation: isolate; }
.lay-new .e404-eyebrow { margin: 0 0 4px; color: var(--rust, #d9643a); font-size: 13px; font-weight: 700; }
.lay-new .e404 .e404-h { margin: 0; font-size: clamp(56px, 9vw, 104px); line-height: .95; color: #f0e6dc; }
.lay-new .e404-by { margin: 10px 0 20px; font-size: 17px; color: var(--muted); }
.lay-new .e404-by b { color: #ef8c72; }
.lay-new .e404-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.lay-new .e404-stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.lay-new .e404-stats small { display: block; font-size: 12px; color: var(--muted); }
.lay-new .e404-stats code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; background: none; padding: 0; border: 0; }
.lay-new .e404-guess { display: grid; gap: 1px; margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(217, 100, 58, .45); background: rgba(217, 100, 58, .08); text-decoration: none; transition: background-color .15s, border-color .15s; }
.lay-new .e404-guess:hover, .lay-new .e404-guess:focus-visible { background: rgba(217, 100, 58, .15); border-color: rgba(217, 100, 58, .7); }
.lay-new .e404-guess small, .lay-new .e404-guess span { font-size: 12px; color: var(--muted); }
.lay-new .e404-guess b { font-size: 17px; color: #ef8c5f; }
.lay-new .e404-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.lay-new .e404-search:focus-within { border-color: #d9643a; }
.lay-new .e404-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; padding: 12px 0; outline: none; }
.lay-new .e404-spawn { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(20, 16, 13, .8); border: 1px solid var(--line); }
.lay-new .e404-spawn > p { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lay-new :is(.e404-beach, .e404-bed) { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: background-color .15s, border-color .15s; }
.lay-new :is(.e404-beach, .e404-bed) small { font-size: 12px; font-weight: 400; }
.lay-new .e404-beach { background: #d9643a; color: #fff; }
.lay-new .e404-beach:hover, .lay-new .e404-beach:focus-visible { background: #e57347; }
.lay-new .e404-beach small { color: rgba(255, 255, 255, .85); }
.lay-new .e404-bed { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.lay-new .e404-bed > span { display: inline-flex; align-items: center; gap: 9px; }
.lay-new .e404-bed svg { color: #d9643a; flex: none; }
.lay-new .e404-bed small { color: var(--muted); }
.lay-new a.e404-bed:hover, .lay-new a.e404-bed:focus-visible { border-color: #6a5c51; background: #221c18; }
.lay-new .e404-bed.is-off { opacity: .5; }
.lay-new .e404-bed.is-off svg { color: var(--muted); }
@media (max-width: 860px) { .lay-new .e404 { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 44px; } }
@media (prefers-reduced-motion: reduce) { .lay-new :is(.e404-guess, .e404-beach, .e404-bed) { transition: none; } }
/* Wiki: czytelność artykułu. Treść na jednolitej karcie, akapity najwyżej ok. 75 znaków w wierszu, większa interlinia, linia pod nagłówkami sekcji */
.lay-new .art-card { margin-top: 8px; padding: clamp(18px, 3vw, 34px) clamp(16px, 3.2vw, 40px); border-radius: 18px; background: #16120f; border: 1px solid #2a231e; }
.lay-new .art-card > :first-child { margin-top: 0; }
.lay-new .art-card > :is(p, ul:not([class]), ol:not([class])) { max-width: 75ch; line-height: 1.7; color: #e3dbd1; }
.lay-new .art-card > h2 { padding-bottom: 10px; border-bottom: 1px solid #2a231e; margin-top: 44px; }
.lay-new .art-card > h2:first-of-type { margin-top: 0; }
.lay-new .art-card .tier-card { background-color: #1d1814; }
/* Pasek czytania pod nawigacją */
.read-bar { display: none; }
.lay-new .read-bar { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; overflow: hidden; }
.lay-new .read-bar[hidden] { display: none; }
.lay-new .read-bar i { display: block; height: 100%; background: #d9643a; transform-origin: 0 50%; transform: scaleX(0); transition: transform .12s linear; }
@media (prefers-reduced-motion: reduce) { .lay-new .read-bar i { transition: none; } }
@media (max-width: 700px) { .lay-new .art-card { border-radius: 14px; } }
/* Regulamin w nowym wyglądzie: lista na całą szerokość karty, numer paragrafu jako spokojna kolumna zamiast pomarańczowego bloku */
.lay-new .art-card .rules { gap: 8px; margin: 0 0 8px; padding: 0; }
.lay-new .rules li { overflow: hidden; align-items: stretch; background: #1d1814; border-color: #2e2722; }
.lay-new .rules li::before { width: 60px; align-items: flex-start; padding-top: 15px; background: rgba(217, 100, 58, .1); border-right: 1px solid #2e2722; color: #e9845f; font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.lay-new .rules li span { padding: 14px 18px; line-height: 1.65; color: #e3dbd1; }
@media (max-width: 700px) { .lay-new .rules li::before { width: 44px; padding-top: 14px; font-size: 14px; } .lay-new .rules li span { padding: 12px 14px; } }
