[hidden] { display: none !important; }
:root {
  --bg: #0f1216;
  --surface: #161a20;
  --surface-2: #1d222a;
  --line: #2a313b;
  --text: #e7e9ec;
  --muted: #98a2ad;
  --accent: #e2b04a;
  --accent-ink: #1a1408;
  --link: #9ccaff;
  --c1: #8f99a4; --c2: #22b35e; --c3: #2b8cf0; --c4: #b84fd6; --c5: #f0b03a;
  --s1: #a8735b; --s3: #9fb3c1; --s5: #e5b84a; --s6: #c5a8ff; --s4: #c5a8ff;
  --tS: #ff6b5e; --tA: #f6a347; --tB: #e9d35a; --tC: #7fcf7a; --tX: #8f99a4;
  --radius: 10px;
  --hex: 64px;
  --display: "Barlow SC", "Arial Narrow", system-ui, sans-serif;
  --tabbar: 0px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@font-face { font-family: "Barlow SC"; font-weight: 600; font-display: optional; src: url(/fonts/barlow-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Barlow SC"; font-weight: 600; font-display: optional; src: url(/fonts/barlow-600-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow SC"; font-weight: 700; font-display: optional; src: url(/fonts/barlow-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Barlow SC"; font-weight: 700; font-display: optional; src: url(/fonts/barlow-700-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow SC"; font-weight: 600; font-display: optional; src: url(/fonts/barlow-600-vi.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Barlow SC"; font-weight: 700; font-display: optional; src: url(/fonts/barlow-700-vi.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-family: var(--display); font-weight: 700; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; }
button { font: inherit; color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 6px 10px; z-index: 10; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: #c9cfd6; max-width: 70ch; }
.note { color: var(--muted); font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.empty { color: var(--muted); }

/* nagłówek */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.brand { font-weight: 800; color: var(--text); letter-spacing: .01em; font-size: 1.1rem; }
.brand::before { content: ""; display: inline-block; width: 12px; height: 14px; margin-right: 8px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); vertical-align: -1px; }
.setlabel { color: var(--muted); font-size: .85rem; }
.langs { margin-left: auto; display: flex; gap: 8px; }
.langs a { font-size: .8rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.nav { border-top: 1px solid var(--line); }
.nav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); padding: 10px 12px; white-space: nowrap; font-size: .95rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }

main { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 20px 0 32px; }
.legal { font-size: .78rem; max-width: 90ch; }

/* przyciski i chipy */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 9px 16px; border-radius: 8px; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.alt { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .arrow, .chips .plus { color: var(--muted); }

.tr, .it, .aug { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; color: var(--text); font-size: .9rem; }
.tr img { width: 20px; height: 20px; }
.it { border-radius: 8px; padding: 3px 10px 3px 3px; }
.it img, .aug img { border-radius: 6px; }
.tr:hover, .it:hover, .aug:hover { border-color: var(--muted); text-decoration: none; }

/* jednostki */
.grid-ch { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px 8px; }
.grid-ch.big { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.ch { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); text-align: center; min-width: 0; }
.ch:hover { text-decoration: none; }
.ch-img { position: relative; border-radius: 8px; border: 2px solid var(--cc, var(--c1)); overflow: hidden; }
.ch-img img { width: 56px; height: 56px; }
.big .ch-img img { width: 72px; height: 72px; }
.ch.sm .ch-img img { width: 44px; height: 44px; }
.ch-name { font-size: .78rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-items { display: flex; gap: 1px; margin-top: -2px; }
.ch-items img { width: 16px; height: 16px; border-radius: 3px; }
.stars { position: absolute; left: 0; right: 0; top: 0; font-size: 10px; line-height: 1; color: var(--accent); text-shadow: 0 1px 2px #000; text-align: center; }
.c1 { --cc: var(--c1); } .c2 { --cc: var(--c2); } .c3 { --cc: var(--c3); } .c4 { --cc: var(--c4); } .c5 { --cc: var(--c5); }
.carry .ch-img, .cc-carry .ch-img, .lu.carry .ch-img { box-shadow: 0 0 12px 1px #e2b04a8c, 0 0 4px #e2b04a59; }
.hex.carry::before { background: var(--accent); }
.cost-row { margin-bottom: 14px; }
.cost-h { font-size: .9rem; color: var(--cc); text-transform: uppercase; letter-spacing: .06em; }

/* nagłówek encji */
.ent-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.ent-img { border-radius: 12px; border: 3px solid var(--cc, var(--line)); width: 96px; height: 96px; flex: none; }
.trait-img { width: 64px; height: 64px; padding: 8px; background: var(--surface-2); }
.ent-head h1 { margin-bottom: 2px; }
.desc { max-width: 75ch; }
.desc .ico { display: inline-block; width: .9em; height: .9em; border-radius: 2px; vertical-align: -1px; background: var(--muted); }
.ico-ap { background: #7ab8ff !important; } .ico-ad { background: #ff8a5c !important; } .ico-hp { background: #59d36b !important; }
.ico-as { background: #ffd35c !important; } .ico-ar { background: #e8b06a !important; } .ico-mr { background: #c08cff !important; }
.ico-mana { background: #5cc8ff !important; } .ico-gold { background: var(--accent) !important; border-radius: 50% !important; }
.t-magic { color: #8cc2ff; } .t-phys { color: #ff9f7a; } .t-true { color: #fff; }
.t-kw { color: var(--accent); font-weight: 600; }
.t-rules { color: var(--muted); font-size: .92em; }
.t-upg { color: #9fe0a8; } .t-radiant { color: #ffd77a; }
.t-row { display: inline-block; padding-left: 4px; }
.stats { min-width: 260px; }
.stats th, .stats td { text-align: left; padding: 5px 16px 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.stats th { color: var(--muted); }
.forms { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 12px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }

/* cechy */
.bps { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.bp { min-width: 24px; text-align: center; font-size: .8rem; font-weight: 700; border-radius: 5px; padding: 1px 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.bp.s1 { border-color: var(--s1); } .bp.s3 { border-color: var(--s3); } .bp.s4, .bp.s6 { border-color: var(--s6); } .bp.s5 { border-color: var(--s5); }
.trait-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.trait-card { display: grid; grid-template-columns: 32px 1fr auto; gap: 4px 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--text); }
.trait-card:hover { text-decoration: none; border-color: var(--muted); }
.tc-name { font-weight: 700; }
.tc-units { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.tc-units img { width: 28px; height: 28px; border-radius: 5px; border: 2px solid var(--cc); }
.traits-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tb { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 3px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: .82rem; --tc: #3a424d; }
.tb img { width: 22px; height: 24px; padding: 3px 3px; background: var(--tc); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); object-fit: contain; }
.tb.s1 { --tc: #8a5a45; } .tb.s3 { --tc: #7d8f9c; } .tb.s5 { --tc: #c99a2e; } .tb.s4, .tb.s6 { --tc: linear-gradient(135deg, #9fd8ff, #c5a8ff 50%, #ffb3e6); }
.tb.off { opacity: .55; }
.tb:hover { text-decoration: none; }

/* przedmioty */
.matrix-wrap { overflow-x: auto; margin: 4px -16px 16px; padding: 0 16px 6px; }
.matrix { margin: 0 auto; border-collapse: separate; border-spacing: 5px; }
.matrix th, .matrix td { padding: 3px; text-align: center; vertical-align: middle; }
/* składniki: osobne pasy na górze i z boku, żeby nie zlewały się z wynikami */
.matrix th { background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); border-radius: 8px; }
.matrix thead th { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 45%, transparent); }
.matrix tbody th { box-shadow: inset -2px 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
.matrix .mx-x { background: none; box-shadow: none; color: var(--accent); font: 700 1.4rem/1 var(--display); }
.matrix th img { width: 32px; height: 32px; border-radius: 6px; margin: auto; }
/* wyniki: kafelki */
.matrix td { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.matrix td img { width: 42px; height: 42px; border-radius: 7px; margin: auto; }
.matrix td a { display: block; border-radius: 8px; transition: transform .12s ease, box-shadow .12s ease; }
.matrix td a:hover, .matrix td a:focus-visible { transform: scale(1.1); box-shadow: var(--glow-2) var(--ga); position: relative; z-index: 2; }
/* przekątna: dwa takie same składniki */
.matrix td.dg { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
/* strefa emblematów (Szpatułka, Patelnia) */
.matrix td.em, .matrix tr.em td { background: color-mix(in srgb, var(--c4) 16%, var(--surface)); border-color: color-mix(in srgb, var(--c4) 50%, var(--line)); }
.matrix th.em, .matrix tr.em th { background: color-mix(in srgb, var(--c4) 28%, var(--surface-2)); }
/* krzyż po najechaniu: wiersz i kolumna wskazanego przedmiotu */
@media (hover: hover) {
  .matrix :is(td, th) { transition: opacity .12s ease; }
  .matrix:where(:has(td a:hover)) td { opacity: .3; }
  .matrix tbody tr:hover > *,
.matrix:has(td:nth-child(2):hover) :is(td, th):nth-child(2),
.matrix:has(td:nth-child(3):hover) :is(td, th):nth-child(3),
.matrix:has(td:nth-child(4):hover) :is(td, th):nth-child(4),
.matrix:has(td:nth-child(5):hover) :is(td, th):nth-child(5),
.matrix:has(td:nth-child(6):hover) :is(td, th):nth-child(6),
.matrix:has(td:nth-child(7):hover) :is(td, th):nth-child(7),
.matrix:has(td:nth-child(8):hover) :is(td, th):nth-child(8),
.matrix:has(td:nth-child(9):hover) :is(td, th):nth-child(9),
.matrix:has(td:nth-child(10):hover) :is(td, th):nth-child(10),
.matrix:has(td:nth-child(11):hover) :is(td, th):nth-child(11),
  .matrix:has(td:nth-child(12):hover) :is(td, th):nth-child(12) { opacity: 1; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
  .matrix tbody tr:hover > th,
.matrix:has(td:nth-child(2):hover) th:nth-child(2),
.matrix:has(td:nth-child(3):hover) th:nth-child(3),
.matrix:has(td:nth-child(4):hover) th:nth-child(4),
.matrix:has(td:nth-child(5):hover) th:nth-child(5),
.matrix:has(td:nth-child(6):hover) th:nth-child(6),
.matrix:has(td:nth-child(7):hover) th:nth-child(7),
.matrix:has(td:nth-child(8):hover) th:nth-child(8),
.matrix:has(td:nth-child(9):hover) th:nth-child(9),
.matrix:has(td:nth-child(10):hover) th:nth-child(10),
.matrix:has(td:nth-child(11):hover) th:nth-child(11),
  .matrix:has(td:nth-child(12):hover) th:nth-child(12) { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); }
}
.item-list { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; scroll-margin-top: 110px; }
.item-row:target { border-color: var(--accent); }
.item-row > img, .item-row > a img { width: 40px; height: 40px; border-radius: 7px; }
.item-row h3 { margin: 0 0 4px; }
.item-row h3 a { color: var(--text); }
.item-row .desc { margin: 0; font-size: .93rem; }
.item-row .desc + .desc { margin-top: 6px; }
.recipe { display: flex; align-items: center; gap: 4px; margin: 0 0 4px; color: var(--muted); }
.recipe img { width: 20px; height: 20px; border-radius: 4px; }
.item-list > .item-row:not(:has(> img, > a)) { grid-template-columns: 1fr; }

/* filtry */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.filters input, .b-search { flex: 1 1 220px; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; }
.seg, .tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button, .tabs button { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.seg button[aria-pressed="true"], .tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }

/* kompozycje */
.tier { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; font-weight: 900; color: #111; background: var(--tX); flex: none; }
.tier.tS { background: var(--tS); } .tier.tA { background: var(--tA); } .tier.tB { background: var(--tB); } .tier.tC { background: var(--tC); }

/* plansza heksów */
/* Heks liczony z szerokości samej planszy (jednostki kontenera), a nie ekranu: rząd to 7 heksów + 6 przerw + pół heksa
   przesunięcia, więc 7,5 heksa + 26 px zawsze mieści się w ramce, niezależnie od kolumny, w której stoi plansza. */
.board { container-type: inline-size; display: flex; flex-direction: column; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; }
.hex-row { --w: min(var(--hex), (100cqi - 26px) / 7.5); --h: calc(var(--w) * 1.1547); display: flex; gap: 4px; margin-bottom: calc(var(--h) * -.25 + 4px); }
.hex-row:last-child { margin-bottom: 0; }
.hex-row.odd { margin-left: calc(var(--w) / 2 + 2px); }
.hex { position: relative; width: var(--w); height: var(--h); flex: none; }
.hex::before { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--cc, var(--surface-2)); }
.hex > a, .hex > .b-unit { position: absolute; inset: 3px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: block; }
.hex img { width: 100%; height: 100%; object-fit: cover; }
.hex .stars { top: -3px; z-index: 1; }
.hex-items { position: absolute; bottom: -2px; z-index: 1; left: 0; right: 0; display: flex; justify-content: center; gap: 1px; }
.hex-items img { width: 15px; height: 15px; border-radius: 3px; border: 1px solid #000; }
@media (max-width: 560px) { .hex-items img { width: 11px; height: 11px; } }

/* kreator */
.builder { display: grid; gap: 20px; grid-template-columns: min-content minmax(0, 1fr); align-items: start; }
/* plansza mierzy heksy szerokością kontenera, więc kolumna nie może brać szerokości z zawartości */
@media (min-width: 901px) { .b-main { width: calc(var(--hex) * 7.5 + 48px); } }
@media (max-width: 900px) { .builder { grid-template-columns: minmax(0, 1fr); } .b-main { width: auto; } }
.b-board .hex { cursor: pointer; }
.b-board .hex.drop { outline: 2px solid var(--accent); }
.b-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.b-count { color: var(--muted); margin-right: auto; }
.b-main { min-width: 0; }
.b-side { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }
.b-pool .ch { cursor: pointer; background: none; border: 0; padding: 0; }
.b-items { display: grid; gap: 10px; }
.b-items h3 { margin: 6px 0 0; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.b-items .row { display: flex; flex-wrap: wrap; gap: 4px; }
.b-items button { background: none; border: 2px solid transparent; border-radius: 7px; padding: 1px; cursor: pointer; }
.b-items button img { width: 34px; height: 34px; border-radius: 5px; }
.b-items button[aria-pressed="true"] { border-color: var(--accent); }
.b-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }

ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }
section { scroll-margin-top: 110px; }
.noimg { display: inline-block; flex: none; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }

/* obrazki nigdy się nie rozciągają: przy zgnieceniu kontenera przycinamy, a nie deformujemy */
img { object-fit: cover; }
.ch-img, .ch-img img, .it img, .aug img, .tr img, .tb img, .item-row img { flex: none; }
.matrix img { max-width: none; }
@media (max-width: 560px) {
  .matrix-wrap { margin-inline: -16px; padding-inline: 4px; }
  .matrix { border-spacing: 2px; }
  .matrix th { padding: 2px; border-radius: 6px; }
  .matrix td { padding: 1px; border-radius: 7px; }
  .matrix th img { width: 22px; height: 22px; border-radius: 4px; }
  .matrix td img { width: 26px; height: 26px; border-radius: 5px; }
  .matrix .mx-x { font-size: 1.1rem; }
  /* na wąskich ekranach składnik wiersza zostaje widoczny przy przewijaniu w bok */
  .matrix tbody th, .matrix .mx-x { position: sticky; left: 0; z-index: 1; }
  .matrix .mx-x { background: var(--bg); }
}

/* wyszukiwarka w nagłówku */
.s-btn { background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 30px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.s-btn:hover { color: var(--text); border-color: var(--muted); }
.s-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px #0008; }
.s-panel .wrap { padding-top: 12px; padding-bottom: 12px; }
.s-input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 1rem; }
.s-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.s-res { max-height: min(70vh, 560px); overflow-y: auto; margin-top: 8px; }
.s-res h4 { margin: 10px 0 4px; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.s-res a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--text); }
.s-res a:hover, .s-res a.on { background: var(--surface-2); text-decoration: none; }
.s-res img, .s-res .noimg { width: 32px; height: 32px; border-radius: 6px; flex: none; }
.s-res small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.s-res .tier { width: 32px; height: 32px; }
.s-empty { color: var(--muted); padding: 8px; }

/* kreator: przeciąganie i okno */
.b-board .hex:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.b-board .hex:not([class*=" c"]):hover::before { background: #2a313b; }
.b-board .hex.drop::before { background: var(--accent) !important; }
.b-board .hex.lifted { opacity: .35; }
.b-board .hex img, .b-pool img, .b-items img { -webkit-user-drag: none; user-select: none; }
.b-pool .ch { cursor: grab; }
body.b-dragging, body.b-dragging * { cursor: grabbing !important; user-select: none; }
.b-ghost { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; margin: -28px 0 0 -28px; filter: drop-shadow(0 6px 12px #000a); }
.b-ghost img { border-radius: 10px; border: 2px solid var(--accent); }
.b-dlg { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 16px; width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); overflow-y: auto; }
.b-dlg::backdrop { background: #000a; }
.b-dlg h3 { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; }
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.d-head h2 { margin: 0; font-size: 1.15rem; }
.d-x { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.d-search { width: 100%; margin-bottom: 8px; }
.d-cost { margin-bottom: 10px; }
.d-pool { max-height: none; }
.d-pool .ch { background: none; border: 0; padding: 0; cursor: pointer; }
.d-unit { display: flex; gap: 12px; align-items: center; }
.d-unit .ch-img img { width: 56px; height: 56px; }
.d-unit small { display: block; color: var(--muted); }
.d-slots { display: flex; gap: 8px; }
.d-slot { width: 48px; height: 48px; border-radius: 8px; border: 1px dashed var(--line); background: var(--bg); position: relative; display: grid; place-items: center; padding: 0; }
.d-slot.full { border: 1px solid var(--line); cursor: pointer; }
.d-slot img { border-radius: 6px; }
.d-rm { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #c0392b; color: #fff; font-size: 14px; line-height: 20px; text-align: center; }
.d-items { max-height: 40vh; overflow-y: auto; }
.d-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.d-del { background: #c0392b; color: #fff; }
@media (max-width: 900px) {
  /* na telefonie wszystko przez okno: boczna lista znika, okno wysuwa się od dołu */
  .b-side { display: none; }
  .b-dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; max-height: 85vh; border-bottom: 0; }
  .b-board .hex:not([class*=" c"])::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: #4a5361; font-size: 1.2rem; }
}
@media (max-width: 560px) { .d-pool { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand { white-space: nowrap; }
@media (max-width: 560px) { .setlabel { display: none; } }
.prio { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: prio; }
.prio li { margin: 0; display: flex; align-items: center; gap: 6px; counter-increment: prio; }
.prio li::before { content: counter(prio); color: var(--muted); font-weight: 700; font-size: .85rem; min-width: 1ch; }


/* ===== typografia i drobne elementy ===== */
.brand, .tier, .pill, .tab span, .stg, .lvl, .tb b, .node, .kicker, .btn, .seg button, .tabs button { font-family: var(--display); }
.brand { font-size: 1.2rem; letter-spacing: .02em; }
.btn { font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin: 0 0 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #ffffff12; border: 1px solid #ffffff1f; font-size: .92rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.pill.strong { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff33; }
.pips i.on { background: var(--accent); }
.stg { display: inline-block; padding: 0 6px; border-radius: 5px; background: #e2b04a26; color: var(--accent); font-weight: 700; font-size: .95em; line-height: 1.45; white-space: nowrap; }
.lvl { color: #fff; font-weight: 700; white-space: nowrap; }
.ref { display: inline; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px dotted #ffffff40; white-space: nowrap; }
.ref img { display: inline-block; width: 20px; height: 20px; border-radius: 4px; vertical-align: -4px; margin-right: 4px; }
.ref.rc img { box-shadow: 0 0 0 1.5px var(--cc); }
.ref.rt img { background: #ffffff14; padding: 2px; }
.ref:hover { color: var(--accent); text-decoration: none; }
.tier.big { width: 52px; height: 52px; font-size: 1.7rem; border-radius: 12px; box-shadow: 0 4px 14px #0007; }
.tier { font-family: var(--display); font-size: 1.1rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 1.6em; }
.sec-head h2 { margin: 0 0 .5em; }
.sec-head a { font-size: .95rem; white-space: nowrap; }

/* ===== hero ze splash artem (strona główna i build) ===== */
.comp-hero, .home-hero { position: relative; margin: -24px -16px 0; padding: 22px 16px 20px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #161b22, var(--bg)); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: min(78%, 620px); z-index: -1; background: var(--art) center 20% / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%), linear-gradient(0deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 55%), linear-gradient(0deg, transparent 0, #000 45%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-in { position: relative; max-width: 720px; }
.crumbs { margin: 0 0 10px; font-size: .9rem; color: var(--muted); display: flex; gap: 6px; }
.hero-title { display: flex; gap: 14px; align-items: center; }
.hero-title h1 { margin: 0; font-size: clamp(1.7rem, 6.4vw, 2.6rem); text-shadow: 0 2px 12px #000c; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.hero-sum { margin: 12px 0 0; font-size: 1.05rem; color: #dfe3e8; text-shadow: 0 1px 8px #000; max-width: 60ch; }
.hero-carries { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.hc { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hc .ch-img { border-width: 3px; border-radius: 12px; box-shadow: 0 6px 18px #000a; }
.hc .ch-img img { width: 64px; height: 64px; }
.hc-items { display: flex; gap: 2px; }
.hc-items img { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #000; }
.hero-btn { margin-left: auto; align-self: center; }
.home-hero { padding-top: 28px; padding-bottom: 26px; }
.home-hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); max-width: 16ch; text-shadow: 0 2px 12px #000c; }
.home-hero .lead { text-shadow: 0 1px 8px #000; max-width: 52ch; }
@media (min-width: 720px) { .comp-hero, .home-hero { margin: -24px 0 0; border-radius: 0 0 18px 18px; padding: 30px 28px 26px; border: 1px solid var(--line); border-top: 0; } }

/* ===== kafle narzędzi ===== */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 6px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); min-height: 100%; }
.tile svg { color: var(--accent); width: 26px; height: 26px; }
.tile b { font-family: var(--display); font-size: 1.05rem; line-height: 1.15; }
.tile span { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.tile:hover { border-color: var(--accent); text-decoration: none; }
@media (max-width: 480px) { .tile span { display: none; } .tile { align-items: center; text-align: center; padding: 12px 6px; } }

/* ===== karta kompozycji ===== */
.tier-group h2 { display: flex; align-items: center; gap: 10px; }
.comp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; transition: border-color .15s, transform .15s; }
.comp-card:hover { border-color: #3a4350; }
.comp-card:active { transform: scale(.995); }
.cc-link { display: block; padding: 12px; color: var(--text); }
.cc-link:hover { text-decoration: none; }
.cc-link:hover h3 { color: var(--accent); }
.cc-top { display: flex; gap: 10px; align-items: center; }
.cc-title { min-width: 0; }
.cc-title h3 { margin: 0 0 4px; font-size: 1.2rem; transition: color .15s; }
.cc-meta { display: flex; align-items: center; gap: 8px; }
.cc-meta .pill { font-size: .82rem; padding: 1px 8px; }
.cc-board { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 8px; }
.cc-carries { display: flex; gap: 8px; flex: none; }
.cc-carry { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cc-carry .ch-img { border-width: 2px; border-radius: 10px; }
.cc-carry .ch-img img { width: 56px; height: 56px; }
.cc-items { display: flex; gap: 1px; }
.cc-items img { width: 18px; height: 18px; border-radius: 3px; }
.cc-rest { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; padding-top: 2px; }
.cc-u img { width: 34px; height: 34px; border-radius: 7px; border: 2px solid var(--cc); }
.cc-sum { color: #c3c9d0; font-size: .93rem; margin: 0 0 8px; max-width: 90ch; }
.cc-traits { display: flex; flex-wrap: wrap; gap: 4px; }
.cc-traits .tb { font-size: .8rem; }

/* ===== strona buildu ===== */
.toc { position: sticky; top: var(--sticky-top, 98px); z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; margin: 0 -16px 4px; background: #0f1216ee; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toc a { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .9rem; white-space: nowrap; }
.toc a:hover, .toc a:focus-visible { border-color: var(--accent); text-decoration: none; }
.comp-grid { display: grid; gap: 0 24px; }
@media (min-width: 1000px) { .comp-grid { grid-template-columns: auto minmax(0, 1fr); align-items: start; } .toc { margin: 0 0 4px; border-radius: 0 0 12px 12px; } }
.board { width: 100%; max-width: calc(var(--hex) * 7.5 + 48px); }
@media (max-width: 560px) { .hex-items img { width: 12px; height: 12px; } }
.carry-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cc-port { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); text-align: center; font-size: .85rem; line-height: 1.15; }
.cc-port .ch-img { border-width: 3px; border-radius: 12px; }
.cc-port .ch-img img { width: 64px; height: 64px; }
.cc-port:hover { text-decoration: none; color: var(--accent); }
.bis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bis a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text); font-size: .78rem; line-height: 1.2; }
.bis img { width: 44px; height: 44px; border-radius: 8px; border: 1px solid #000; box-shadow: 0 2px 6px #0006; }
.bis a:hover { color: var(--accent); text-decoration: none; }
.prio { gap: 10px; }
.prio img { width: 36px; height: 36px; border-radius: 7px; }
.traits-row .tb.uq { padding: 2px 4px; }
.prose p { max-width: 70ch; font-size: 1.02rem; line-height: 1.7; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--accent), #e2b04a33); }
.timeline li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; margin: 0 0 14px; }
.timeline .node { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 1.1rem; position: relative; }
.timeline h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.timeline p { margin: 0; line-height: 1.65; max-width: 68ch; }
.aug-list { display: flex; flex-wrap: wrap; gap: 8px; }
.aug { border-radius: 10px; padding: 4px 12px 4px 4px; }
.aug img { width: 32px; height: 32px; border-radius: 7px; }
.aug.at1 img { box-shadow: 0 0 0 2px #b9c3cc; } .aug.at2 img { box-shadow: 0 0 0 2px #e5b84a; } .aug.at3 img { box-shadow: 0 0 0 2px #c5a8ff; }
.tips { list-style: none; padding: 0; display: grid; gap: 8px; }
.tips li { margin: 0; padding: 12px 14px 12px 40px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; line-height: 1.6; }
.tips li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 12px; height: 14px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.comp-foot { margin-top: 28px; font-size: .88rem; }
.comp section { scroll-margin-top: 150px; }

/* ===== filtry: jeden przewijany rząd ===== */
.seg.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg.scroll button { flex: none; }
.filters { flex-direction: column; gap: 8px; }
@media (max-width: 600px) { .hide-m { display: none; } }

/* ===== dolny pasek (telefon) ===== */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar: calc(62px + env(safe-area-inset-bottom)); --sticky-top: 52px; }
  .nav { display: none; }
  body { padding-bottom: var(--tabbar); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom);
    background: #12161bf2; backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .72rem; text-decoration: none; position: relative; }
  .tab > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; list-style: none; cursor: pointer; }
  .tab > summary::-webkit-details-marker { display: none; }
  .tab[aria-current], .tab > summary[aria-current], .more[open] > summary { color: var(--accent); }
  .tab[aria-current]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tab:hover { text-decoration: none; color: var(--text); }
  .more-panel { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar) + 8px); display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -8px 30px #000b; }
  .more-panel a { padding: 12px 14px; border-radius: 10px; color: var(--text); font-size: 1rem; }
  .more-panel a[aria-current] { color: var(--accent); }
  .more-panel a:hover { background: var(--surface-2); text-decoration: none; }
  .more-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px 6px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 4px; }
  .more-lang a, .more-lang b { display: inline-block; min-width: 44px; padding: 8px 10px; border-radius: 8px; text-align: center; border: 1px solid transparent; }
  .more-lang b { color: var(--accent); border-color: #e2b04a66; }
  .more-lang a { background: var(--surface-2); }
  .b-toast { bottom: calc(var(--tabbar) + 16px); }
  .hero-btn { margin-left: 0; width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
.filters input { flex: none; width: 100%; }
.aug .noimg, .item-row .noimg { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 20 7.5v9L12 21l-8-4.5v-9z' fill='none' stroke='%23e2b04a' stroke-width='1.6'/%3E%3C/svg%3E") center / 60% no-repeat; }
.ch-hero .hero-title .ch-img { border-width: 3px; border-radius: 14px; box-shadow: 0 6px 18px #000a; }
.ch-hero .hero-title .ch-img img { width: 72px; height: 72px; }
.pill.cost { border-color: var(--cc); color: var(--cc); background: #00000055; }
.ch-hero + .ability { margin-top: 18px; }
.intro { margin-top: 14px; } .trait-info { margin-bottom: 14px; } .trait-info h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); border-color: var(--muted); }
.lang-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 4px; min-width: 160px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px #000a; }
.lang-menu a, .lang-menu b { padding: 9px 12px; white-space: nowrap; border-radius: 8px; color: var(--text); font-size: .95rem; background: var(--surface-2); border: 1px solid transparent; }
.lang-menu b { color: var(--accent); border-color: #e2b04a66; }
.lang-menu a:hover { background: var(--line); color: var(--accent); text-decoration: none; }
.langs { align-items: center; }

/* baner zgody (tylko UE/EOG, gdy włączony GA bez CMP Google) */
.ccb { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar) + 8px); z-index: 25; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -8px 30px #000b; }
.ccb p { margin: 0; flex: 1 1 260px; font-size: .92rem; }
.ccb-b { display: flex; gap: 8px; margin-left: auto; }

/* ===== kompozycja v2: pełny skład w hero, dwie kolumny, levelowanie ===== */
.lineup { position: relative; display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 18px; }
.lu { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 72px; color: var(--text); text-align: center; }
.lu:hover { text-decoration: none; }
.lu .ch-img { border-radius: 10px; }
.lu .ch-img img { width: 52px; height: 52px; }
.lu-items { display: flex; gap: 1px; min-height: 18px; }
.lu-items img { width: 18px; height: 18px; border-radius: 4px; border: 1px solid #000; }
.lu-name { font-size: .72rem; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfd5dc; text-shadow: 0 1px 4px #000; }
.lu.carry .lu-name { color: var(--accent); font-weight: 700; }
.lu:hover .lu-name { color: var(--accent); }
.hero-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.hero-foot .traits-row { margin: 0; flex: 1 1 320px; }
.hero-foot .hero-btn { margin-left: auto; }

.comp-layout { display: flex; flex-direction: column; margin-top: 8px; }
.cl-main, .cl-side { display: contents; }
.s-board { order: 1; } .s-items { order: 2; } .s-how { order: 3; } .s-plan { order: 4; } .s-aug { order: 5; } .s-why { order: 6; } .s-pivot { order: 7; } .s-tips { order: 8; }
@media (min-width: 1040px) {
  .comp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 32px; align-items: start; }
  .cl-main, .cl-side { display: block; min-width: 0; }
}
.comp-layout section { margin-top: 26px; }
.comp-layout section > h2:first-child, .sec-head h2 { margin-top: 0; }
.card-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card-sec h3 { font-size: .95rem; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fine { margin: 8px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }

.s-board .board { background: var(--bg); }
.s-board .traits-row { margin-bottom: 0; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.names-btn { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.names-btn:hover { color: var(--text); border-color: var(--muted); }
.names-btn[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.hex-name { display: none; }
.board.show-names .hex-name { display: block; position: absolute; left: -4px; right: -4px; top: 50%; transform: translateY(-50%); z-index: 2; pointer-events: none; padding: 1px 2px; border-radius: 4px; background: #000c; color: #fff; font-size: .62rem; font-weight: 700; line-height: 1.2; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.s-items .carry-card { background: var(--surface-2); }
.s-items .carry-card:first-of-type { margin-top: 0; }
.bis .bi { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.rcp { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 6px; background: #0007; }
.rcp img { width: 18px; height: 18px; border-radius: 4px; }
.rcp i { font-style: normal; font-size: .7rem; color: var(--muted); }
.prio-c img { width: 30px; height: 30px; }

.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.how-style { margin: 0; line-height: 1.6; }
.how-style .pill { margin-right: 6px; vertical-align: 1px; }
.how-card h3, .when h3 { font-size: .95rem; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.levels { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lv { position: relative; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-width: 64px; padding: 6px 12px 6px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin: 0; }
.lv + .lv::before { content: "›"; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }
.lv b { grid-row: 1 / 3; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: #fff; }
.lv-at { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: .95rem; line-height: 1.2; }
.lv-roll { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.lv.roll-all { border-color: var(--accent); box-shadow: 0 0 14px -4px #e2b04a99; }
.lv.roll-all .lv-roll { color: var(--accent); }
.lv.roll-slow { border-color: #5cc8ff; box-shadow: 0 0 14px -4px #5cc8ff88; }
.lv.roll-slow .lv-roll { color: #5cc8ff; }
.when { margin-top: 12px; padding: 4px 16px 14px; border-radius: 16px; border: 1px solid #2f6b4a; background: linear-gradient(180deg, #13251c, var(--surface)); }
.when ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.when li { position: relative; margin: 0; padding-left: 26px; line-height: 1.55; }
.when li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #3ecf8e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='%230c1a13' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.when h3 { color: #6fdcaa; }

.stage-units { margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.stage-units .grid-ch { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.stage-units .traits-row { margin: 8px 0 0; }

.aug-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .9rem; }
.at-k { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.at-k:first-of-type { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.at-sep { color: var(--muted); }
.s-aug .aug-list { gap: 6px; }
.s-aug .aug { width: 100%; background: var(--surface-2); }
@media (max-width: 1039px) { .s-aug .aug { width: auto; } }
.aug.at3 { border-color: #6c5a96; }

@media (max-width: 560px) {
  .lu { width: calc((100% - 32px) / 5); }
  .lu .ch-img img { width: 46px; height: 46px; }
  .lu-items img { width: 15px; height: 15px; }
  .hero-foot .hero-btn { width: 100%; text-align: center; margin-left: 0; }
  .card-sec, .how-card { padding: 12px; border-radius: 14px; }
  .lv b { font-size: 1.35rem; }
  .levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lv { min-width: 0; padding: 6px 8px; }
  .lv + .lv::before { display: none; }
}

/* podświetlenie sekcji po kliknięciu w spis treści */
.comp-layout section { position: relative; }
.comp-layout section.flash::after { content: ""; position: absolute; inset: -10px; border-radius: 20px; pointer-events: none; z-index: 0;
  background: #e2b04a0d; animation: sec-flash 2.4s ease-out forwards; }
.comp-layout section.card-sec.flash::after { inset: -1px; border-radius: 16px; }
@keyframes sec-flash {
  0% { opacity: 0; box-shadow: 0 0 0 1px #e2b04a00, 0 0 0 #e2b04a00; }
  12% { opacity: 1; box-shadow: 0 0 0 1.5px #e2b04acc, 0 0 30px 2px #e2b04a59; }
  30% { box-shadow: 0 0 0 1.5px #e2b04a80, 0 0 14px 0 #e2b04a33; }
  48% { box-shadow: 0 0 0 1.5px #e2b04acc, 0 0 30px 2px #e2b04a59; }
  70% { opacity: 1; box-shadow: 0 0 0 1.5px #e2b04a99, 0 0 20px 0 #e2b04a40; }
  100% { opacity: 0; box-shadow: 0 0 0 1.5px #e2b04a00, 0 0 0 #e2b04a00; }
}
@media (prefers-reduced-motion: reduce) {
  .comp-layout section.flash::after { animation: sec-flash-still 2.4s step-end forwards; }
  @keyframes sec-flash-still { 0% { opacity: 1; box-shadow: 0 0 0 1.5px #e2b04acc; } 100% { opacity: 0; } }
}

/* flagi przy językach */
.flag { display: inline-block; width: 20px; height: 15px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px #ffffff26; vertical-align: -2px; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 6px; }
.lang-menu summary .flag { width: 18px; height: 13.5px; }
.lang-menu a, .lang-menu b { display: flex; align-items: center; gap: 10px; }
.more-lang a, .more-lang b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* spis treści: aktywna sekcja */
.toc a[aria-current] { border-color: var(--accent); color: var(--accent); background: #e2b04a14; box-shadow: 0 0 12px -4px #e2b04a99; }

/* ===== podpowiedzi: dymek (myszka) i arkusz od dołu (dotyk) ===== */
.tip { position: fixed; z-index: 60; width: max-content; max-width: min(360px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: hidden; pointer-events: none;
  padding: 12px 14px; background: #171b22f7; border: 1px solid #3a4350; border-radius: 12px; box-shadow: 0 14px 34px #000c, 0 0 0 1px #0006;
  opacity: 0; transform: translateY(4px); transition: opacity .12s ease-out, transform .12s ease-out; }
.tip[data-side="above"] { transform: translateY(-4px); }
.tip.on { opacity: 1; transform: none; }
.tip, .tip-card { font-size: .88rem; line-height: 1.5; color: var(--text); }
.tp-head { display: flex; align-items: center; gap: 10px; }
.tp-head > div { min-width: 0; }
.tp-ic { flex: none; border-radius: 8px; }
.tp-cport { border: 2px solid var(--cc, var(--line)); border-radius: 8px; box-sizing: content-box; }
.tp-trait { padding: 4px; background: #3a424d; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); border-radius: 0; }
.tp-aug.at1 { box-shadow: 0 0 0 2px #b9c3cc; } .tp-aug.at2 { box-shadow: 0 0 0 2px #e5b84a; } .tp-aug.at3 { box-shadow: 0 0 0 2px #c5a8ff; }
.tp-name { display: block; font-family: var(--display); font-size: 1.12rem; line-height: 1.2; color: #fff; }
.tp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; color: var(--muted); font-size: .8rem; }
.tp-cost { color: var(--accent); font-weight: 700; }
.tp-tr { display: inline-flex; align-items: center; gap: 4px; color: #cfd5dc; }
.tp-tri { width: 16px; height: 16px; }
.tp-bps { gap: 4px; }
.tp-sec { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ffffff14; }
.tp-abh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tp-abh b { color: #fff; }
.tp-mana { display: inline-flex; align-items: center; gap: 4px; color: #5cc8ff; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tp-mana .ico { display: inline-block; width: .8em; height: .8em; border-radius: 2px; }
.tp-desc { color: #d7dce2; }
.tp-lbl { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: 8px; background: #ffffff0d; font-size: .8rem; }
.tp-chip img, .tp-chip .tp-noimg { border-radius: 5px; flex: none; }
.tp-chip .tp-cport { border-width: 1.5px; border-radius: 6px; }
.tp-plus { font-style: normal; color: var(--muted); }
.tp-noimg { display: inline-block; background: var(--surface-2); border-radius: 6px; }
.tip .tp-desc { display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; }

.tip-sheet { position: fixed; inset: 0; z-index: 70; }
.ts-backdrop { position: absolute; inset: 0; background: #000a; opacity: 0; transition: opacity .2s; }
.ts-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(82vh, 640px); display: flex; flex-direction: column;
  padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px #000c; transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.tip-sheet.on .ts-backdrop { opacity: 1; }
.tip-sheet.on .ts-panel { transform: none; }
.ts-grab { width: 40px; height: 5px; margin: 2px auto 10px; border-radius: 3px; background: #4a5361; flex: none; }
.ts-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; }
.ts-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 12px; font-size: .95rem; }
.ts-body .tp-head { padding-right: 44px; }
.ts-body .tp-name { font-size: 1.3rem; }
.ts-body .tp-chip { font-size: .86rem; }
.ts-go { flex: none; display: block; text-align: center; padding: 13px 16px; font-size: 1rem; }
.ts-loading { height: 120px; margin: 0; background: linear-gradient(90deg, var(--surface-2) 25%, #262c35 50%, var(--surface-2) 75%) 0 0 / 200% 100%; border-radius: 12px; animation: ts-shimmer 1.2s linear infinite; }
@keyframes ts-shimmer { to { background-position: -200% 0; } }
.ts-lock, .ts-lock body { overflow: hidden; }
@media (min-width: 761px) { .ts-panel { left: 50%; right: auto; width: 480px; margin-left: -240px; bottom: 16px; border-radius: 20px; border-bottom: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { .tip, .ts-panel, .ts-backdrop { transition: none; } }

/* tablica tierów */
.tierboard { display: grid; gap: 8px; }
.tbd-filter { margin-bottom: 4px; }
.tbd-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbd-label { display: grid; place-items: start center; padding-top: 14px; background: var(--tc, var(--tX)); color: #111; font-family: var(--display); font-weight: 700; font-size: 1.9rem; }
.tbd-row.tS { --tc: var(--tS); } .tbd-row.tA { --tc: var(--tA); } .tbd-row.tB { --tc: var(--tB); } .tbd-row.tC { --tc: var(--tC); } .tbd-row.tX { --tc: var(--tX); }
.tbd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; padding: 8px; }
.tbd-comp { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; color: var(--text); min-width: 0; transition: border-color .15s, transform .15s; }
.tbd-comp:hover { border-color: var(--tc); text-decoration: none; }
.tbd-comp:active { transform: scale(.98); }
.tbd-faces { display: flex; flex: none; }
.tbd-face { border-radius: 9px; border: 2px solid var(--cc); overflow: hidden; box-shadow: 0 2px 6px #0008; background: var(--bg); }
.tbd-face + .tbd-face { margin-left: -14px; }
.tbd-face img { width: 44px; height: 44px; }
.tbd-text { display: grid; gap: 3px; min-width: 0; }
.tbd-text b { font-family: var(--display); font-size: 1rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tbd-meta { display: flex; align-items: center; gap: 6px; }
.tbd-meta .pill { font-size: .75rem; padding: 0 7px; }
.tbd-note { font-size: .85rem; margin: 2px 0 0; }
@media (max-width: 560px) {
  .tbd-row { grid-template-columns: 40px minmax(0, 1fr); }
  .tbd-label { font-size: 1.5rem; }
  .tbd-items { grid-template-columns: 1fr; gap: 6px; padding: 6px; }
  .tbd-face img { width: 40px; height: 40px; }
}
/* tablica tierów: poświaty wg systemu (tier S mocniej, A słabiej; złoto przy hover; złote/pryzmatyczne augmenty) */
.tbd-row.tS { box-shadow: var(--glow-1) color-mix(in srgb, var(--tS) 50%, transparent); border-color: color-mix(in srgb, var(--tS) 45%, var(--line)); }
.tbd-row.tA { box-shadow: var(--glow-1) color-mix(in srgb, var(--tA) 28%, transparent); }
.tbd-comp:hover, .tbd-comp:focus-visible, .tl-cell:hover, .tl-cell:focus-visible { box-shadow: var(--glow-2) var(--ga); }
.tl-aug.at2 > img { box-shadow: 0 0 0 2px #e5b84a, var(--glow-1) color-mix(in srgb, #e5b84a 45%, transparent); }
.tl-aug.at3 > img { box-shadow: 0 0 0 2px #c5a8ff, var(--glow-1) color-mix(in srgb, #c5a8ff 55%, transparent); }
.tl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; padding: 10px; }
.tl-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; color: var(--text); text-align: center; min-width: 0; }
.tl-cell:hover { background: var(--surface-2); text-decoration: none; }
.tl-cell > img, .tl-cell > .noimg { width: 52px; height: 52px; border-radius: 10px; border: 1px solid #000; box-shadow: 0 2px 8px #0008; }
.tl-aug.at1 > img { box-shadow: 0 0 0 2px #b9c3cc; } .tl-aug.at2 > img { box-shadow: 0 0 0 2px #e5b84a; } .tl-aug.at3 > img { box-shadow: 0 0 0 2px #c5a8ff; }
.tl-name { font-size: .78rem; line-height: 1.2; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tl-holders { display: flex; gap: 2px; }
.tl-holders span { border-radius: 5px; border: 1.5px solid var(--cc); overflow: hidden; }
.tl-holders img { width: 20px; height: 20px; }
@media (max-width: 560px) { .tl-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px; } }

/* ===== poświaty (system) =====
   Zasada: poświata = waga elementu. Złota (accent) dla akcji i wyróżnień, kolor kosztu dla drogich jednostek (4–5),
   kolor rangi dla złotych/pryzmatycznych cech i augmentów, kolor tieru dla tierów. Spoczynek subtelnie, hover mocniej.
   Nigdy na tekście ciągłym ani na każdym elemencie listy. */
:root {
  --glow-1: 0 0 10px -1px;   /* ledwo widoczna – spoczynek */
  --glow-2: 0 0 16px -2px;   /* wyróżnienie */
  --glow-3: 0 0 24px -4px;   /* hover / aktywne */
  --ga: color-mix(in srgb, var(--accent) 70%, transparent);
}
/* akcje */
.btn:not(.btn-ghost):not(.alt) { box-shadow: var(--glow-2) var(--ga); transition: box-shadow .2s, filter .2s; }
.btn:not(.btn-ghost):not(.alt):hover { box-shadow: var(--glow-3) var(--accent); }
.btn-ghost:hover, .names-btn:hover, .tile:hover, .toc a:hover { box-shadow: var(--glow-1) var(--ga); }
.names-btn[aria-pressed="true"], .seg button[aria-pressed="true"], .tabs button[aria-pressed="true"], .pill.strong { box-shadow: var(--glow-1) var(--ga); }
input[type="search"]:focus, .s-input:focus { box-shadow: var(--glow-2) var(--ga); }
/* nawigacja i marka */
.brand::before { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 75%, transparent)); }
.nav a[aria-current] { box-shadow: 0 8px 12px -10px var(--accent); }
.tile svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent)); }
/* tiery: kolor tieru */
.tier.tS { box-shadow: var(--glow-2) color-mix(in srgb, var(--tS) 80%, transparent); }
.tier.tA { box-shadow: var(--glow-1) color-mix(in srgb, var(--tA) 70%, transparent); }
.tier.big.tS { box-shadow: 0 4px 14px #0007, 0 0 26px -4px color-mix(in srgb, var(--tS) 85%, transparent); }
.tier.big.tA { box-shadow: 0 4px 14px #0007, 0 0 20px -4px color-mix(in srgb, var(--tA) 75%, transparent); }
/* karty kompozycji: hover */
.comp-card { transition: border-color .15s, transform .15s, box-shadow .2s; }
.comp-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 22px -8px var(--ga); }
/* drogie jednostki: kolor kosztu (4 i 5), portrety i heksy */
.c4 .ch-img, .ch-img.c4, .lu.c4 .ch-img, .cc-u.c4 img, .tp-cport.c4 { box-shadow: var(--glow-1) color-mix(in srgb, var(--c4) 70%, transparent); }
.c5 .ch-img, .ch-img.c5, .lu.c5 .ch-img, .cc-u.c5 img, .tp-cport.c5 { box-shadow: var(--glow-2) color-mix(in srgb, var(--c5) 75%, transparent); }
.hex.c4 { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--c4) 55%, transparent)); }
.hex.c5 { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c5) 65%, transparent)); }
/* carry ma pierwszeństwo przed kosztem */
.carry .ch-img, .cc-carry .ch-img, .lu.carry .ch-img { box-shadow: 0 0 12px 1px #e2b04a8c, 0 0 4px #e2b04a59; }
.hex.carry { filter: drop-shadow(0 0 7px #e2b04aa6); }
.ch:hover .ch-img, .lu:hover .ch-img { box-shadow: var(--glow-3) color-mix(in srgb, var(--cc, var(--accent)) 85%, transparent); }
/* cechy: złote i pryzmatyczne progi */
/* augmenty: ranga */
.aug.at2 img { box-shadow: 0 0 0 2px #e5b84a, var(--glow-1) #e5b84a; }
.aug.at3 img, .tp-aug.at3 { box-shadow: 0 0 0 2px #c5a8ff, var(--glow-2) #c5a8ff; }
.aug.at3 { box-shadow: var(--glow-1) color-mix(in srgb, #c5a8ff 55%, transparent); }
.aug:hover { box-shadow: var(--glow-2) var(--ga); }
/* plan gry i wskazówki */
.timeline .node { box-shadow: var(--glow-2) var(--ga), inset 0 0 8px -2px #e2b04a55; }
.tips li::before { filter: drop-shadow(0 0 4px var(--accent)); }
.when { box-shadow: 0 0 26px -12px #3ecf8e; }
.when li::before { box-shadow: 0 0 8px -1px #3ecf8eaa; }
.lv:hover { box-shadow: var(--glow-1) var(--ga); }
/* karty przedmiotów carry: ikony przedmiotów lekko świecą na hover */
.bi a:hover img, .prio a:hover img { box-shadow: var(--glow-3) var(--ga); }
/* podpowiedzi */
.tip { box-shadow: 0 14px 34px #000c, 0 0 0 1px #0006, 0 0 30px -10px var(--ga); }
.ts-panel { box-shadow: 0 -12px 40px #000c, 0 -2px 30px -12px var(--ga); }
@media (prefers-reduced-motion: reduce) { .comp-card, .btn { transition: none; } }

/* ===== poświaty w kolorach znaczeniowych =====
   Każda poświata bierze kolor z tego, co element oznacza: tier → --tS…--tX, koszt → --c1…--c5,
   próg cechy → --s1/--s3/--s5/--s6, ranga augmentu → srebro/złoto/pryzmat. Złoto (accent) zostaje dla akcji interfejsu i carry. */
.tcS { --tierc: var(--tS); } .tcA { --tierc: var(--tA); } .tcB { --tierc: var(--tB); } .tcC { --tierc: var(--tC); } .tcX { --tierc: var(--tX); }
/* tiery: każdy w swoim kolorze, siła wg rangi */
.tier.tB { box-shadow: var(--glow-1) color-mix(in srgb, var(--tB) 45%, transparent); }
.tier.tC { box-shadow: var(--glow-1) color-mix(in srgb, var(--tC) 35%, transparent); }
/* karta kompozycji: kolor jej tieru (hover), S lekko także w spoczynku */
.comp-card[class*="tc"]:hover { border-color: color-mix(in srgb, var(--tierc) 55%, var(--line)); box-shadow: 0 0 24px -8px color-mix(in srgb, var(--tierc) 80%, transparent); }
.comp-card.tcS { box-shadow: 0 0 18px -12px color-mix(in srgb, var(--tS) 70%, transparent); }
/* nagłówek kompozycji: krawędź w kolorze tieru */
@media (min-width: 720px) { .comp-hero[class*="tc"] { box-shadow: 0 10px 40px -24px color-mix(in srgb, var(--tierc) 90%, transparent); border-color: color-mix(in srgb, var(--tierc) 28%, var(--line)); } }
/* jednostki: hover w kolorze kosztu dla każdego kosztu; spoczynek tylko 4–5 (bez zmian) */
.ch.c1:hover .ch-img, .lu.c1:hover .ch-img { box-shadow: var(--glow-3) color-mix(in srgb, var(--c1) 75%, transparent); }
.ch.c2:hover .ch-img, .lu.c2:hover .ch-img { box-shadow: var(--glow-3) color-mix(in srgb, var(--c2) 80%, transparent); }
.ch.c3:hover .ch-img, .lu.c3:hover .ch-img { box-shadow: var(--glow-3) color-mix(in srgb, var(--c3) 85%, transparent); }
.ch.c4:hover .ch-img, .lu.c4:hover .ch-img { box-shadow: var(--glow-3) color-mix(in srgb, var(--c4) 85%, transparent); }
.ch.c5:hover .ch-img, .lu.c5:hover .ch-img { box-shadow: var(--glow-3) color-mix(in srgb, var(--c5) 85%, transparent); }
.hex[class*=" c"]:hover { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cc) 80%, transparent)); }
.ch-hero .hero-title .ch-img { box-shadow: 0 6px 18px #000a, 0 0 26px -4px color-mix(in srgb, var(--cc) 80%, transparent); }
.pill.cost { box-shadow: var(--glow-1) color-mix(in srgb, var(--cc) 55%, transparent); }
.cost-h { text-shadow: 0 0 12px color-mix(in srgb, var(--cc) 55%, transparent); }
.carry-card { box-shadow: inset 3px 0 0 -1px var(--cc), -4px 0 14px -10px var(--cc); }
/* cechy: każdy próg w swoim kolorze (brąz i srebro słabo) */
.tb.s1 { --tc-g: var(--s1); } .tb.s3 { --tc-g: var(--s3); } .tb.s5 { --tc-g: var(--s5); } .tb.s4, .tb.s6 { --tc-g: var(--s6); }
.bp.s1 { box-shadow: 0 0 8px -3px var(--s1); } .bp.s3 { box-shadow: 0 0 8px -3px var(--s3); } .bp.s5 { box-shadow: 0 0 10px -3px var(--s5); } .bp.s4, .bp.s6 { box-shadow: 0 0 10px -3px var(--s6); }
/* augmenty: srebrne też w swoim kolorze, hover w kolorze rangi */
.aug.at1 img { box-shadow: 0 0 0 2px #b9c3cc, var(--glow-1) #b9c3cc66; }
.aug.at1 { --ag: #b9c3cc; } .aug.at2 { --ag: #e5b84a; } .aug.at3 { --ag: #c5a8ff; }
.aug:hover { border-color: color-mix(in srgb, var(--ag, var(--accent)) 60%, var(--line)); box-shadow: var(--glow-2) color-mix(in srgb, var(--ag, var(--accent)) 70%, transparent); }
/* typy augmentów: pierwszy wybór w złocie interfejsu */
.at-k:first-of-type { box-shadow: var(--glow-1) var(--ga); }
/* rolowanie: złoto = rolluj, niebieski = slow roll (mana/oszczędzanie) – bez zmian; wskazówki i plan: złoto interfejsu */
/* podpowiedzi: kolor encji (ustawiany w tips.js) */
.tip { box-shadow: 0 14px 34px #000c, 0 0 0 1px #0006, 0 0 30px -10px color-mix(in srgb, var(--tipc, var(--accent)) 80%, transparent);
  border-color: color-mix(in srgb, var(--tipc, var(--accent)) 35%, #3a4350); }
.ts-panel { box-shadow: 0 -12px 40px #000c, 0 -2px 30px -12px color-mix(in srgb, var(--tipc, var(--accent)) 85%, transparent);
  border-color: color-mix(in srgb, var(--tipc, var(--accent)) 35%, var(--line)); }

/* ===== karta kompozycji: litera tieru jako tło po prawej =====
   Litera w kolorze tieru, wygaszana miękką maską ku lewej (bez gradientu przez kształt litery).
   line-height 1 + zapas, żeby żadna część znaku nie była przycinana. */
.comp-card { position: relative; overflow: hidden; isolation: isolate; }
.comp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 110% at 100% 50%, color-mix(in srgb, var(--tierc, var(--tX)) 11%, transparent), transparent 75%); }
.comp-card::after { content: attr(data-tier); position: absolute; right: 22px; top: 50%; z-index: -1; pointer-events: none;
  font-family: var(--display); font-weight: 700; font-size: 10.5rem; line-height: 1; padding: .04em .02em;
  color: var(--tierc, var(--tX)); opacity: .2;
  -webkit-mask-image: linear-gradient(100deg, transparent 8%, #0006 45%, #000 90%); mask-image: linear-gradient(100deg, transparent 8%, #0006 45%, #000 90%);
  transform: translateY(-50%); transition: opacity .3s ease, transform .3s ease; }
.comp-card.tcS::after { opacity: .26; }
.comp-card.tcS::before { background: radial-gradient(60% 110% at 100% 50%, color-mix(in srgb, var(--tS) 14%, transparent), transparent 75%); }
.comp-card:hover::after { opacity: .32; transform: translate(-4px, -50%); }
.comp-card.tcS:hover::after { opacity: .38; }
.cc-link { position: relative; z-index: 1; }
.cc-sum { text-shadow: 0 1px 3px var(--surface); }
@media (max-width: 760px) {
  .comp-card::after { font-size: 7.5rem; right: 10px; top: 6px; transform: none; opacity: .16; }
  .comp-card.tcS::after { opacity: .2; }
  .comp-card:hover::after { opacity: .24; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .comp-card::after { transition: none; } }

/* ===== etykiety cech (.tb) =====
   Pigułka: heks z ikoną w kolorze progu, liczba w kolorze progu, nazwa. Obwódka zabarwiona progiem,
   poświata tylko dla złota i pryzmatu (brąz/srebro bez – na ciemnym tle dawały brudną plamę). */
.tb { --tcol: #9aa4ae; gap: 7px; padding: 4px 12px 4px 6px; border-radius: 999px; line-height: 1.2;
  background: #12161ccc; border: 1px solid color-mix(in srgb, var(--tcol) 30%, var(--line)); box-shadow: none;
  transition: border-color .15s, box-shadow .2s; }
.tb.s1 { --tcol: #d39a7e; } .tb.s3 { --tcol: #c3d1db; } .tb.s5 { --tcol: #f0c25a; } .tb.s4, .tb.s6 { --tcol: #d4bfff; }
.tb img { width: 22px; height: 25px; padding: 4px 3px; margin: -1px 0; }
.tb b { min-width: 1ch; color: var(--tcol); font-size: 1.02em; text-align: center; }
.tb span { color: #dfe3e8; }
.tb.s5 { background: linear-gradient(90deg, #e5b84a1f, #12161ccc 70%); box-shadow: 0 0 14px -6px #e5b84acc; }
.tb.s4, .tb.s6 { background: linear-gradient(90deg, #c5a8ff26, #9fd8ff14 40%, #12161ccc 75%); box-shadow: 0 0 16px -6px #c5a8ffcc; }
.tb.s4 b, .tb.s6 b { background: linear-gradient(135deg, #9fd8ff, #c5a8ff 50%, #ffb3e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
a.tb:hover { border-color: color-mix(in srgb, var(--tcol) 65%, var(--line)); box-shadow: 0 0 14px -5px color-mix(in srgb, var(--tcol) 80%, transparent); }
.traits-row .tb.uq { padding: 4px 6px; }
.cc-traits .tb { padding: 3px 11px 3px 5px; }
.cc-traits .tb img { width: 20px; height: 23px; }
/* na grafice w nagłówku: lekkie rozmycie tła, żeby etykiety nie ginęły */
.comp-hero .tb { background-color: #0f1216b3; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.comp-hero .tb.s5 { background-image: linear-gradient(90deg, #e5b84a26, transparent 70%); }
.comp-hero .tb.s4, .comp-hero .tb.s6 { background-image: linear-gradient(90deg, #c5a8ff2e, transparent 75%); }
/* strzałka „dalej” (SVG) wyśrodkowana w przyciskach i linkach */
.arr { display: inline-block; flex: none; width: 1em; height: 1em; margin-left: .35em; vertical-align: -.15em; }
.btn:has(.arr) { display: inline-flex; align-items: center; }
.btn:has(.arr) .arr { vertical-align: 0; }
.sec-head a { display: inline-flex; align-items: center; }

/* pola wyszukiwania: jeden styl fokusu (złota ramka + poświata zamiast białej obwódki przeglądarki) i własny przycisk czyszczenia */
.filters input, .b-search, .s-input, .d-search { transition: border-color .15s, box-shadow .15s; }
.filters input:focus, .b-search:focus, .s-input:focus, .d-search:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 75%, var(--line)); box-shadow: var(--glow-1) var(--ga); }
.filters input:focus-visible, .b-search:focus-visible, .s-input:focus-visible, .d-search:focus-visible { outline: none; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2ad' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 14px no-repeat; }
input[type="search"]::-webkit-search-cancel-button:hover { opacity: 1; }
