/* Tirania Wiki — działa w jasnej karcie treści motywu tirania-2026 */
.wk { --wk-line: #e9dfcd; --wk-soft: #f6f0e5; --wk-ink: #1d1a16; --wk-dim: #6b6255; --wk-gold: #b9832f; --wk-gold-2: #e8b45a; }
.wk h2 { margin: 0 0 6px; }
.wk h3 { margin: 22px 0 10px; }
.wk h4 { margin: 14px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--wk-dim); }
.wk-muted { color: var(--wk-dim); }
.wk-small { font-size: 13px; }
.wk-gold { color: #9a5b10; font-weight: 600; }
.wk-r { text-align: right; white-space: nowrap; }
.wk-empty { padding: 30px; text-align: center; color: var(--wk-dim); }
.wk-note { margin-top: 24px; font-size: 12px; color: var(--wk-dim); }

/* zakładki */
.wk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--wk-line); }
.tn-content .wk-tab {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
	font-size: 14px; font-weight: 600; color: #4a4033; text-decoration: none;
	background: var(--wk-soft); border: 1px solid var(--wk-line);
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.tn-content .wk-tab:hover { border-color: var(--wk-gold-2); color: #2a1d0c; box-shadow: 0 0 0 3px rgba(232, 180, 90, .15); }
.tn-content .wk-tab.active { color: #1c1306; background: linear-gradient(180deg, #f6d28b, #e8b45a); border-color: #c99a45; box-shadow: 0 4px 14px rgba(232, 180, 90, .35); }

/* start */
.wk-hero {
	padding: 26px 24px; margin-bottom: 18px; border-radius: 14px; text-align: center; color: #f3ead9;
	background: radial-gradient(500px 180px at 50% 0, rgba(232, 180, 90, .25), transparent 70%), linear-gradient(180deg, #1b2230, #121722);
	border: 1px solid rgba(232, 180, 90, .35);
}
.tn-content .wk-hero h2 { color: #f6d28b; }
.wk-hero p { max-width: 560px; margin: 0 auto 16px; color: #c9ced9; }
.wk-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tn-content .wk-cat {
	position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px;
	color: var(--wk-ink); text-decoration: none; background: #fff; border: 1px solid var(--wk-line);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tn-content .wk-cat:hover { transform: translateY(-2px); border-color: var(--wk-gold-2); box-shadow: 0 10px 26px rgba(154, 91, 16, .15); }
.wk-cat-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 11px; font-size: 18px; color: #1c1306; background: linear-gradient(145deg, #f6d28b, #b9832f); }
.wk-cat strong { font-size: 16px; }
.wk-cat small { color: var(--wk-dim); font-size: 13px; line-height: 1.35; }
.wk-cat em { position: absolute; top: 14px; right: 14px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--wk-gold); }

/* pasek filtrów */
.wk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.wk-search { position: relative; flex: 1 1 220px; }
.wk-search .bi { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--wk-dim); pointer-events: none; }
.tn-content .wk-search input { width: 100%; padding-left: 36px !important; border-radius: 999px !important; }
.wk-search-big { max-width: 520px; margin: 0 auto; }
.tn-content .wk-search-big input { height: 48px; font-size: 16px; }
.tn-content .wk-toolbar select { border-radius: 999px; padding-right: 28px; }
.wk-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--wk-dim); cursor: pointer; }
.wk-count { margin-left: auto; font-size: 13px; color: var(--wk-dim); font-variant-numeric: tabular-nums; }

/* siatka kart */
.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wk-grid-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tn-content .wk-card {
	display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; border-radius: 12px;
	text-align: center; color: var(--wk-ink); text-decoration: none; background: #fff; border: 1px solid var(--wk-line);
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tn-content .wk-card:hover { transform: translateY(-2px); border-color: var(--wk-gold-2); box-shadow: 0 8px 20px rgba(154, 91, 16, .14); }
.wk-card[hidden], .wk-table tr[hidden] { display: none !important; }
.wk-card strong { font-size: 14px; line-height: 1.25; }
.wk-card small { font-size: 12px; color: var(--wk-dim); }

/* obrazki sprite'ów */
.wk-sprite { display: grid; place-items: end center; width: 96px; height: 96px; margin-bottom: 4px; border-radius: 10px; background: radial-gradient(circle at 50% 70%, #efe5d3, transparent 70%); }
.wk-sprite img { max-width: 96px; max-height: 96px; width: auto; height: auto; image-rendering: pixelated; transform-origin: bottom center; }
.wk-sprite img[src$=".png"] { zoom: 1; }
.wk-sprite-xl { width: 140px; height: 140px; flex: 0 0 auto; background: radial-gradient(circle at 50% 70%, #ead9bb, transparent 70%); }
.wk-sprite-xl img { max-width: 128px; max-height: 128px; }
.wk-item { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--wk-soft); border: 1px solid var(--wk-line); flex: 0 0 auto; }
.wk-item img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.wk-item b { position: absolute; right: 2px; bottom: 0; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.wk-item-xl { width: 96px; height: 96px; border-radius: 14px; }
.wk-item-xl img { width: 64px; height: 64px; }
.wk-spell-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #6d4ad8; background: #f0ecff; border: 1px solid #e0d8ff; }

/* nagłówek szczegółów */
.wk-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.wk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.wk-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #6e4a12; background: rgba(232, 180, 90, .18); border: 1px solid rgba(232, 180, 90, .35); }
.wk-badge-dim { color: var(--wk-dim); background: var(--wk-soft); border-color: var(--wk-line); }
.wk-badge-boss { color: #fff; background: linear-gradient(180deg, #d9653b, #a3361a); border-color: #8c2b12; vertical-align: middle; }
.wk-stars { color: #d9a531; letter-spacing: 2px; }
.wk-voices q { display: inline-block; margin: 2px 6px 2px 0; padding: 3px 10px; border-radius: 10px; font-style: italic; font-size: 13px; color: #4a4033; background: var(--wk-soft); }
@media (max-width: 575.98px) { .wk-head { flex-direction: column; text-align: center; } .wk-tags { justify-content: center; } }

.wk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.wk-stats > div { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--wk-line); }
.wk-stats span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wk-dim); }
.wk-stats strong { font-size: 20px; color: #2a1d0c; font-variant-numeric: tabular-nums; }

.wk-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767.98px) { .wk-cols { grid-template-columns: minmax(0, 1fr); } }
.wk-box { padding: 4px 18px 16px; margin-bottom: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--wk-line); }
.tn-content .wk-box h3 { margin-top: 14px; border-bottom: 0; padding-bottom: 0; }
.wk-kv { list-style: none; margin: 0; padding: 0; }
.wk-kv li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--wk-line); font-size: 14px; }
.wk-kv li:last-child { border-bottom: 0; }
.wk-kv span { color: var(--wk-dim); }
.wk-kv strong { text-align: right; }

/* żywioły */
.wk-elems { list-style: none; margin: 0; padding: 0; }
.wk-el { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.wk-bar { position: relative; height: 8px; border-radius: 999px; background: var(--wk-soft); overflow: hidden; }
.wk-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #b0a48f; }
.wk-bar::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: 50%; width: 1px; background: rgba(0, 0, 0, .25); }
.wk-el-fire .wk-bar i { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.wk-el-earth .wk-bar i { background: linear-gradient(90deg, #84cc16, #3f7d20); }
.wk-el-energy .wk-bar i { background: linear-gradient(90deg, #c084fc, #7c3aed); }
.wk-el-ice .wk-bar i { background: linear-gradient(90deg, #7dd3fc, #0284c7); }
.wk-el-holy .wk-bar i { background: linear-gradient(90deg, #fde68a, #eab308); }
.wk-el-death .wk-bar i { background: linear-gradient(90deg, #6b7280, #1f2937); }
.wk-el-drown .wk-bar i { background: linear-gradient(90deg, #67e8f9, #0e7490); }
.wk-el strong { text-align: right; font-variant-numeric: tabular-nums; }
.wk-el strong.is-res { color: #15803d; }
.wk-el strong.is-weak { color: #b91c1c; }

/* loot */
.wk-loot { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.tn-content .wk-loot-item {
	display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 10px;
	color: var(--wk-ink); text-decoration: none; background: var(--wk-soft); border: 1px solid var(--wk-line);
	border-left: 3px solid var(--wk-r, #b0a48f); transition: border-color .15s, box-shadow .15s;
}
.tn-content .wk-loot-item:hover { box-shadow: 0 6px 16px rgba(154, 91, 16, .12); border-color: var(--wk-gold-2); }
.wk-loot-name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; }
.wk-loot-chance { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--wk-r, #6b6255); }
.wk-r-common { --wk-r: #6b7280; }
.wk-r-uncommon { --wk-r: #15803d; }
.wk-r-semi-rare { --wk-r: #2563eb; }
.wk-r-rare { --wk-r: #9333ea; }
.wk-r-very-rare { --wk-r: #d97706; }
small.wk-r-common, small.wk-r-uncommon, small.wk-r-semi-rare, small.wk-r-rare, small.wk-r-very-rare { color: var(--wk-r) !important; font-weight: 700; }

/* tabele */
.wk-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--wk-line); background: #fff; }
.tn-content .wk-table { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 14px; }
.tn-content .wk-table thead th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #f3f4f7; background: #232a37; border: 0; }
.tn-content .wk-table td { padding: 6px 12px; border-bottom: 1px solid var(--wk-line); vertical-align: middle; }
.tn-content .wk-table tbody tr:hover td { background: rgba(232, 180, 90, .08); }
.wk-ico { width: 52px; }

/* Tiraniopedia: zakładka Tirania */
.wk-toc { margin: -6px 0 16px; font-size: 14px; color: var(--wk-dim); }
.wk-toc a { font-weight: 600; }
.wk-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.wk-event { padding: 12px 14px; border-radius: 12px; background: var(--wk-soft); border: 1px solid var(--wk-line); }
.wk-event header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.wk-event header strong { font-size: 16px; margin-right: 4px; }
.wk-event p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.wk-event p:last-child { margin-bottom: 0; }
