/* scd.wtf wiki — always dark, same design language as the scd.wtf Bazaar tracker. */
@font-face { font-family: "Monocraft"; src: url("/static/fonts/Monocraft.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #10131a; --panel: #171b24; --panel-raised: #1d222d; --border: #262b38; --row-hover: #20242f; --row-selected: #24304f;
  --text: #e7e9f0; --text-2: #b4b9c6; --muted: #868c9c;
  --accent: #5b8def; --sell: #4fbf67; --buy: #e0a13d;
  --accent-bazaar: #5b8def; --accent-slayer: #ef5b5b; --accent-dungeon: #7b5bef; --accent-accessories: #e8b84b;
  --accent-skills: #5bbf7a; --accent-collections: #3ec6c6; --accent-pets: #d98e4a; --accent-armor: #8b95a6;
  --tier-bronze: #c98546; --tier-silver: #c0c0c0; --tier-gold: #e8c34b; --tier-diamond: #6fe3e8;
  --slot-bg: #262c3a; --slot-border: #3c4459;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --mc-font: "Monocraft", var(--font-mono);
  --radius-sm: 4px; --radius-md: 7px;
  /* aliases used by the page markup */
  --surface-1: var(--panel); --surface-2: var(--panel-raised); --text-primary: var(--text); --text-secondary: var(--text-2);
  --text-muted: var(--muted); --link: var(--accent); --link-red: var(--accent-slayer); --gold: var(--accent-accessories);
  --up: var(--sell); --down: var(--accent-slayer);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 var(--font-body); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.red { color: var(--accent-slayer); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: #24304f; }
mark { background: #3a3320; color: var(--accent-accessories); border-radius: 2px; padding: 0 1px; }
code, pre { font-family: var(--font-mono); }
pre { white-space: pre-wrap; font-size: .8rem; }

/* ------------------------------------------------------------------ top bar */
.top { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 20px; row-gap: 10px; padding: 16px 24px 0; border-bottom: 1px solid var(--border);
  background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--text); padding-bottom: 12px; }
.brand:hover { text-decoration: none; }
.brand small { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 6px; letter-spacing: 0; }
.search { flex: 1 1 280px; max-width: 420px; padding-bottom: 12px; }
.search input { width: 100%; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel-raised);
  color: var(--text); font: 13px var(--font-body); }
.search input:focus { outline: none; border-color: var(--accent); }
/* search-as-you-type (public/wiki-search.js) */
.search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% - 8px); z-index: 30; margin: 0; padding: 4px; list-style: none;
  background: var(--panel-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  max-height: min(70vh, 460px); overflow-y: auto; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 4px; color: var(--text); }
.suggest a:hover, .suggest [aria-selected="true"] a { background: var(--row-selected); text-decoration: none; }
.suggest img { width: 24px; height: 24px; image-rendering: pixelated; flex: none; }
.suggest .sg-noicon { width: 24px; height: 24px; flex: none; }
.suggest .sg-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .sg-via { color: var(--muted); font-size: 12px; }
.suggest .sg-type { color: var(--muted); font-size: 12px; flex: none; }
.suggest .sg-all a { color: var(--accent); font-size: 13px; border-top: 1px solid var(--border); border-radius: 0 0 4px 4px; margin-top: 2px; }
.user { margin-left: auto; font-size: 13px; color: var(--muted); padding-bottom: 12px; }
.top nav { order: 5; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 18px; }
.top nav a { color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 2px 8px; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.inline { display: inline; }
.inline button, .btn, .form button, .pt-player button, .pt-presets button, .pt-btns button, .flagform button {
  font: 600 12px var(--font-body); background: none; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.inline button:hover, .btn:hover, .pt-presets button:hover, .pt-btns button:hover, .flagform button:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.form button, .pt-player button { background: var(--accent); color: #0b1020; border: none; font-weight: 700; padding: 8px 16px; font-size: 13px; }
.form button:hover, .pt-player button:hover { filter: brightness(1.08); }

main.wiki { max-width: 1400px; margin: 0 auto; padding: 16px 24px 24px; }
footer { max-width: 1400px; margin: 1rem auto 0; padding: 16px 24px 32px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------------ type */
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .01em; text-wrap: balance; }
h2 { margin: 0 0 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
h3 { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
section > h3:first-of-type { margin-top: 4px; }
.lead { font-size: 15px; color: var(--text-2); max-width: 70ch; }
.muted, .q { color: var(--muted); }
.q { font-size: .85em; }
.sub { color: var(--muted); font-size: 13px; }
.fine { color: var(--muted); font-size: 12px; margin: 8px 0 0; line-height: 1.4; }
.err { color: var(--accent-slayer); }
.num, td.num { text-align: right !important; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ page layout */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.ph-title { display: flex; align-items: center; gap: 12px; }
.ph-title > .ic { width: 40px; height: 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 12px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .side { order: -1; } }
.main { min-width: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; }

/* every section is a panel with a category colour bar */
.main > section, .tree { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--cat, var(--border));
  border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px; }
section#obtaining, section#shop, section#craft-tree { --cat: var(--accent-bazaar); }
section#upgrades, section#accessory, section#essence-shop { --cat: var(--accent-accessories); }
section#drops, section#tiers, section#levels { --cat: var(--accent-slayer); }
section#usage, section#related, section#milestones { --cat: var(--accent-collections); }
section#seen, section#auctions { --cat: var(--buy); }
section#rarities, section#leveling, section#visitors { --cat: var(--accent-pets); }
section#tree, section#perks, section#bestiary, section#families, section#map { --cat: var(--accent-dungeon); }
section#sources, section#trophy, section#fuel, section#minion-upgrades { --cat: var(--accent-skills); }
section#history { --cat: var(--accent-armor); }

/* side column */
.infobox, .card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px; }
.ib-icon { display: grid; place-items: center; background: var(--slot-bg); border: 1px solid var(--slot-border); box-shadow: inset 0 1px 2px #0006;
  border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; }
.ib-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; font-weight: 600; }
.card > .k:first-child, .card > .ib-title + .k { margin-top: 4px; }
.more { display: inline-block; margin-top: 8px; font-size: 13px; }

/* ------------------------------------------------------------------ tables & lists */
table.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kv th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 8px 4px 0; vertical-align: top; width: 45%; }
table.kv td { padding: 4px 0; font-variant-numeric: tabular-nums; }
table.kv.narrow { width: auto; } table.kv.narrow th { width: auto; padding-right: 20px; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13px; margin: 4px 0 12px; display: block; overflow-x: auto; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; white-space: nowrap; }
table.tbl td { padding: 6px 8px; border-top: 1px solid var(--border); vertical-align: top; }
table.tbl tr:hover td { background: var(--row-hover); }
tr.sum td { border-top: 1px solid var(--slot-border) !important; font-weight: 600; background: none !important; }
td.nm { white-space: nowrap; } td.nm a { white-space: normal; }
ul.links { padding-left: 0; list-style: none; margin: 4px 0 12px; font-size: 13px; }
ul.links li { padding: 3px 0; break-inside: avoid; }
ul.links.cols { columns: 3 220px; column-gap: 24px; }
ul.links li .ic, td .ic, .chip .ic, .ci .ic { margin-right: 6px; }
details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; margin: 6px 0; background: var(--panel-raised); }
summary { cursor: pointer; font-weight: 600; font-size: 13px; }
details.plain { border: 0; padding: 0; margin: 0; background: none; } details.plain summary { font-weight: 500; }
.unres { color: var(--muted); font-family: var(--font-mono); font-size: .85em; }

/* home + lists */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.tile { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--muted); font-size: 12px; }
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile b { display: block; font: 700 19px var(--font-mono); color: var(--text); }
.live { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.live .card { margin: 0; } .live .wide { grid-column: span 2; }
.live .big { font-size: 16px; font-weight: 600; margin-top: 2px; }
@media (max-width: 600px) { .live .wide { grid-column: auto; } }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.letters a { padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 12px; }
.letters a.on, .letters a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.results li { margin-bottom: 10px; list-style: none; } .snip { color: var(--text-2); font-size: 13px; }

/* forms, prose, notices */
.form { display: grid; gap: 10px; max-width: 900px; }
.form input, .form textarea, .flagform input, .pt-player input { width: 100%; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--panel-raised); color: var(--text); font: 13px var(--font-body); }
.form textarea { font-family: var(--font-mono); }
.form input:focus, .form textarea:focus, .pt-player input:focus, .flagform input:focus { outline: none; border-color: var(--accent); }
.prose { max-width: 75ch; } .prose img { max-width: 100%; }
.diff { font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; }
.d-add { background: rgba(79, 191, 103, .14); } .d-del { background: rgba(239, 91, 91, .14); }
.notice { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0; background: var(--panel); font-size: 13px; }
.notice.warn { border-left-color: var(--accent-slayer); background: color-mix(in srgb, var(--accent-slayer) 8%, var(--panel)); }
.flagform { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; } .flagform input { width: 240px; }

/* tabs under the page title */
nav.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin: 4px 0 0; flex-wrap: wrap; }
nav.tabs a { padding: 6px 2px 8px; color: var(--muted); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.tabs a:hover { color: var(--text); text-decoration: none; }
nav.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
nav.tabs .n { font: 600 11px var(--font-mono); color: var(--muted); background: var(--panel-raised); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

/* ------------------------------------------------------------------ colours for rarities, stats, prices */
.rar-common { color: #b8bcc6; } .rar-uncommon { color: #55d46c; } .rar-rare { color: #5b8def; } .rar-epic { color: #b36bf0; }
.rar-legendary { color: #e8b84b; } .rar-mythic { color: #f06bd8; } .rar-divine { color: #5bd6e0; } .rar-special, .rar-very_special { color: #ef5b5b; }
.c-c { color: #ef6b6b; } .c-a { color: #55d46c; } .c-b { color: #5bd6e0; } .c-9 { color: #6b8ef0; } .c-6 { color: #e8b84b; }
.c-e { color: #e8d84b; } .c-d { color: #f06bd8; } .c-5 { color: #b36bf0; } .c-3 { color: #3ec6c6; } .c-2 { color: #4fbf67; } .c-4 { color: #d9483f; }
.coins { color: var(--accent-accessories); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.coins::after { content: " coins"; font: 400 .85em var(--font-body); color: var(--muted); }
td.num .coins::after, .upg .coins::after, .chip .coins::after, .grand .coins::after, .mc-inline .coins::after { content: ""; }
.up { color: var(--sell); } .down { color: var(--accent-slayer); }
td.up .coins { color: var(--sell); } td.down .coins, td.down { color: var(--accent-slayer); }

/* ------------------------------------------------------------------ icons */
.ic { display: inline-block; position: relative; vertical-align: middle; flex: none; }
.ic img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.ic.glint::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 20%, rgba(170, 90, 255, .55) 35%, transparent 50%, rgba(170, 90, 255, .4) 65%, transparent 80%);
  background-size: 300% 300%; animation: glint 4s linear infinite; }
@keyframes glint { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .ic.glint::after { animation: none; background-position: 50% 0; } }
.ic-blank { display: inline-block; width: 24px; height: 24px; margin-right: 6px; vertical-align: middle; }

/* ------------------------------------------------------------------ in-game text (tooltips) */
.lore { background: #0c0f15; border: 1px solid var(--border); border-left: 2px solid var(--accent-dungeon); border-radius: var(--radius-sm);
  padding: 10px 12px; color: #aaa; font: 14px/1.4 var(--mc-font); box-shadow: 0 4px 12px #00000060; overflow-x: auto; }
.lore.mini { font-size: 12.5px; padding: 6px 10px; margin-top: 6px; box-shadow: none; }
.mc-bold { font-weight: 700; } .mc-italic { font-style: italic; } .mc-underline { text-decoration: underline; } .mc-strike { text-decoration: line-through; }
.card.ability { background: #0c0f15; color: #aaa; border-left: 2px solid var(--accent-dungeon); }
.card.ability .k, .card.ability .t { color: var(--accent-accessories); } .card.ability .t { font-weight: 650; }
.card.ability div:not(.k):not(.t) { font-size: 13px; }

/* ------------------------------------------------------------------ inventory slots & recipe GUIs */
.mc-gui { display: inline-block; margin: 0; background: var(--panel-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px 12px; }
.mc-title { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin: 0 0 8px; }
.mc-note { color: var(--muted); text-transform: none; letter-spacing: 0; }
.mc-row { display: flex; align-items: center; gap: 14px; }
.mc-grid { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; }
.mc-inputs { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.mc-arrow { fill: var(--slot-border); flex: none; }
.mc-slot { position: relative; display: grid; place-items: center; width: 40px; height: 40px; background: var(--slot-bg); border: 1px solid var(--slot-border);
  box-shadow: inset 0 1px 2px #0006; border-radius: var(--radius-sm); text-decoration: none !important; color: inherit; }
.mc-slot.big { width: 56px; height: 56px; }
.mc-slot .ic { width: 30px !important; height: 30px !important; }
.mc-slot.big .ic { width: 44px !important; height: 44px !important; }
.mc-slot:hover, .mc-slot:focus-visible { border-color: var(--accent); outline: none; }
.mc-slot .cnt { position: absolute; bottom: 1px; right: 3px; font: 700 10px var(--font-mono); color: var(--text); text-shadow: 0 0 2px #000, 0 0 2px #000; pointer-events: none; }
.mc-missing { font: 11px var(--font-mono); color: var(--muted); }
.mc-tip { display: none; position: absolute; left: calc(100% + 8px); top: -6px; z-index: 40; width: max-content; max-width: 340px;
  background: #0c0f15; border: 1px solid var(--border); border-left: 2px solid var(--accent-dungeon); border-radius: var(--radius-sm); padding: 6px 10px;
  font: 13px/1.35 var(--mc-font); color: #aaa; text-align: left; white-space: normal; pointer-events: none; box-shadow: 0 4px 12px #00000080; }
.mc-tip > span { display: block; } .mc-tip .mc-name { margin-bottom: 3px; }
.mc-slot:hover .mc-tip, .mc-slot:focus-visible .mc-tip { display: block; }
.mc-inline { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mc-inline .coins { margin-right: 6px; }
.recipe { display: block; margin: 8px 0 14px; }
.craftcost { margin: 8px 0 0; font-size: 13px; }
table.shop td { vertical-align: middle; } table.shop td.nm .mc-slot { display: inline-grid; margin-right: 8px; vertical-align: middle; }

/* ------------------------------------------------------------------ upgrades */
.upgrades { border-left: 3px solid var(--accent-accessories); }
table.upg { width: 100%; } table.upg td { padding: 4px 6px 4px 0; vertical-align: top; font-size: 12.5px; }
table.upg td.num { white-space: nowrap; padding-right: 0; }
table.upg td.star { color: var(--accent-accessories); white-space: nowrap; letter-spacing: -.05em; }
table.upg td.star.master { color: var(--accent-slayer); font-size: 15px; }
.ci { display: inline; } .ci .ic { width: 16px !important; height: 16px !important; margin: 0 3px; }
.grand { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--slot-border); font-weight: 650; font-size: 13px; }
table.up td.eff { color: var(--text-2); font-size: 12.5px; }
.scrolls { display: grid; gap: 12px; } .scroll { display: flex; gap: 12px; align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-raised); border-radius: var(--radius-sm); padding: 5px 10px; font-size: 12px; color: var(--text); }
.chip:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--accent); }
.chip.ult { color: #f06bd8; font-weight: 600; }
table.seen td.share { width: 45%; white-space: nowrap; }
.bar { display: inline-block; width: calc(100% - 3.4em); height: 4px; background: var(--border); border-radius: 2px; vertical-align: middle; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.pct { display: inline-block; width: 3.2em; text-align: right; font: 12px var(--font-mono); }
table.lbin td { vertical-align: top; } .addons { color: var(--muted); font-size: 11.5px; }
table.drops td.note { color: var(--text-2); font-size: 12px; max-width: 320px; }

/* ------------------------------------------------------------------ craft tree */
.tree ul { list-style: none; padding-left: 18px; margin: 3px 0; border-left: 1px dashed var(--slot-border); }
.tree > ul.ctree { border-left: 0; padding-left: 0; }
.tree li { margin: 3px 0; font-size: 13px; }
.tree details { border: 0; padding: 0; margin: 0; background: none; } .tree summary { font-weight: 500; }
.tag { font-size: 11.5px; padding: 1px 6px; border-radius: var(--radius-sm); background: var(--panel-raised); }
.tag.craft { color: var(--sell); } .tag.buy { color: var(--buy); } .alt { color: var(--muted); font-size: 11.5px; }
.alt .coins, .tag .coins { font-weight: 500; }
section#craft-tree > .tree { background: none; border: 0; padding: 0; margin: 0; }

/* ------------------------------------------------------------------ charts & maps */
figure.chart { margin: 12px 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px 6px; }
figure.chart figcaption { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
figure.chart .key { text-transform: none; letter-spacing: 0; font-weight: 500; }
figure.chart .key::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
figure.chart .key.s1::before { background: var(--sell); } figure.chart .key.s2::before { background: var(--buy); }
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart .grid { stroke: var(--border); stroke-width: 1; }
figure.chart .ax { fill: var(--muted); font: 11px var(--font-mono); }
figure.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
figure.chart .line.s1 { stroke: var(--sell); } figure.chart .line.s2 { stroke: var(--buy); }
figure.chart .area.s1 { fill: var(--sell); opacity: .08; } figure.chart .area.s2 { fill: var(--buy); opacity: .08; }
figure.chart .dot.s1 { fill: var(--sell); } figure.chart .dot.s2 { fill: var(--buy); }
figure.imap { margin: 8px 0 12px; } figure.imap svg { width: 100%; height: auto; display: block; }
figure.imap .bg { fill: var(--slot-bg); stroke: var(--slot-border); }
figure.imap .npc { fill: var(--accent); stroke: var(--bg); stroke-width: 1.5; } figure.imap a:hover .npc { fill: var(--accent-accessories); }
figure.imap .soul { fill: #f06bd8; opacity: .85; } figure.imap .ax { fill: var(--muted); font: 11px var(--font-mono); }
figure.imap figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
figure.imap .key::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
figure.imap .key.npc::before { background: var(--accent); } figure.imap .key.soul::before { background: #f06bd8; }

/* ------------------------------------------------------------------ minions & accessories */
.chain { gap: 6px; } .chain .chev { color: var(--muted); font-size: 18px; }
.chain .here .mc-slot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
table.minion td { vertical-align: middle; } table.minion td.nm .mc-slot { display: inline-grid; vertical-align: middle; margin-right: 6px; }

/* ------------------------------------------------------------------ perk trees (HOTM / HOTF) */
.pt-player { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.pt-player input { width: 220px; }
.pt-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pt-presets { display: flex; gap: 4px; }
.pt-totals { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pt-totals b { color: var(--text); font: 700 13px var(--font-mono); } .pt-totals .pow b { color: var(--pc); }
.pt-main { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.pt-gui { padding: 12px 14px 14px; }
.pt-grid { display: grid; grid-template-columns: 52px repeat(var(--cols), 46px); gap: 6px; align-items: center; }
.pt-tier { font: 600 10px var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: right; padding-right: 4px; white-space: nowrap; }
.pt-cell { position: relative; width: 46px; height: 46px; }
.pt-cell:hover, .pt-cell:focus-within { z-index: 30; }
.pt-cell.empty { border: 1px dashed var(--slot-border); border-radius: var(--radius-sm); opacity: .35; }
.pt-perk { width: 46px; height: 46px; padding: 0; cursor: pointer; font: inherit; position: relative; z-index: 1; }
.pt-cell:hover .pt-perk, .pt-cell:focus-within .pt-perk { z-index: 31; }
.pt-perk .ic { width: 32px !important; height: 32px !important; }
.pt-perk.locked .ic { filter: grayscale(.4) brightness(.7); }
.pt-perk.partial { border-color: color-mix(in srgb, var(--sell) 55%, var(--slot-border)); }
.pt-perk.maxed { border-color: var(--accent-accessories); background: color-mix(in srgb, var(--accent-accessories) 14%, var(--slot-bg)); }
.pt-perk.sel { box-shadow: 0 0 0 2px var(--accent); z-index: 2; }
.pt-perk .cnt { font-size: 10px; }
.pt-perk .mc-tip { left: calc(100% + 8px); }
.pt-link { position: absolute; background: var(--slot-border); z-index: 0; pointer-events: none; }
.pt-link.h { left: 100%; top: 50%; width: 6px; height: 2px; margin-top: -1px; }
.pt-link.v { top: 100%; left: 50%; width: 2px; height: 6px; margin-left: -1px; }
.pt-link.on { background: var(--sell); box-shadow: 0 0 4px var(--sell); }
.pt-side { flex: 1 1 280px; max-width: 420px; position: sticky; top: 120px; margin: 0; }
.pt-side .lore { margin-bottom: 10px; }
.pt-slider { display: block; margin: 6px 0; font-size: 13px; color: var(--muted); } .pt-slider b { color: var(--text); font-family: var(--font-mono); }
.pt-slider input { display: block; width: 100%; margin-top: 6px; accent-color: var(--accent); }
.pt-btns { display: flex; gap: 6px; margin: 6px 0 10px; }
@media (max-width: 700px) {
  .pt-grid { grid-template-columns: 34px repeat(var(--cols), 38px); gap: 4px; }
  .pt-cell, .pt-perk { width: 38px; height: 38px; } .pt-perk .ic { width: 26px !important; height: 26px !important; }
  .pt-tier { font-size: 9px; } .pt-side { position: static; max-width: none; }
  .pt-link.h { width: 4px; } .pt-link.v { height: 4px; }
}

/* ------------------------------------------------------------------ trophy fish */
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tf-card { background: var(--panel-raised); border-left: 2px solid var(--cat, var(--border)); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
.tf-card header { display: flex; justify-content: space-between; align-items: baseline; font-weight: 650; font-size: 13px; }
.tf-card.t-bronze { --cat: var(--tier-bronze); } .tf-card.t-silver { --cat: var(--tier-silver); } .tf-card.t-gold { --cat: var(--tier-gold); }
.tf-card.t-diamond { --cat: var(--tier-diamond); } .tf-card.t-none { opacity: .7; }
.tf-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; justify-items: center; }
.tf-tier { display: grid; justify-items: center; gap: 3px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tf-tier .mc-slot { width: 42px; height: 42px; }
.tf-tier.t-bronze .mc-slot { background: color-mix(in srgb, var(--tier-bronze) 22%, var(--slot-bg)); border-color: var(--tier-bronze); }
.tf-tier.t-silver .mc-slot { background: color-mix(in srgb, var(--tier-silver) 22%, var(--slot-bg)); border-color: var(--tier-silver); }
.tf-tier.t-gold .mc-slot { background: color-mix(in srgb, var(--tier-gold) 22%, var(--slot-bg)); border-color: var(--tier-gold); }
.tf-tier.t-diamond .mc-slot { background: color-mix(in srgb, var(--tier-diamond) 22%, var(--slot-bg)); border-color: var(--tier-diamond); }
.tf-tier.t-bronze span { color: var(--tier-bronze); } .tf-tier.t-silver span { color: var(--tier-silver); } .tf-tier.t-gold span { color: var(--tier-gold); } .tf-tier.t-diamond span { color: var(--tier-diamond); }
.tf-tier.missing .mc-slot { filter: grayscale(1) brightness(.6); background: var(--slot-bg); border-style: dashed; }
.tf-where { margin: 0; font-size: 12px; color: var(--text-2); } .tf-hat { margin: 0; font-size: 12px; }

@media (max-width: 600px) {
  .top { padding: 12px 16px 0; } main.wiki { padding: 12px 16px 20px; } footer { padding: 16px; }
  .mc-grid { grid-template-columns: repeat(3, 36px); } .mc-slot { width: 36px; height: 36px; } .mc-slot.big { width: 50px; height: 50px; }
  .mc-row { gap: 8px; } .mc-arrow { width: 30px; } .mc-tip { left: 0; top: calc(100% + 4px); max-width: 78vw; }
}

/* ------------------------------------------------------------------ guides */
.btn.primary { background: var(--accent); color: #0b1020; border-color: var(--accent); font-weight: 700; }
.btn.primary:hover { color: #0b1020; filter: brightness(1.08); }
.badge { display: inline-block; font: 700 10px var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; }
.badge.draft { background: color-mix(in srgb, var(--buy) 20%, transparent); color: var(--buy); }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; } .crumbs span { margin: 0 4px; opacity: .6; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }

.g-hero { position: relative; margin: 4px 0 18px; padding: 22px 22px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--cat, var(--accent)) 22%, transparent) 0%, transparent 55%), var(--panel); }
.g-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cat, var(--accent)); }
.g-hero.plain { background: var(--panel); } .g-hero.plain::before { background: var(--accent); }
.g-hero h1 { font-size: 26px; margin-bottom: 6px; }
.g-hero .lead { margin: 0 0 10px; }
.g-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.g-sub { color: var(--muted); font-size: 12px; }
.chip.diff { font-weight: 700; } .diff-beginner { color: var(--sell); } .diff-intermediate { color: var(--accent); } .diff-advanced { color: var(--buy); } .diff-endgame { color: var(--accent-slayer); }
.chip .n { font: 600 10px var(--font-mono); color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0 6px; }
.chip.on { box-shadow: inset 0 0 0 1px var(--cat, var(--accent)); color: var(--text); }
.g-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.g-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 24px; }
.g-cat { position: relative; display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 14px 12px 17px;
  color: var(--text); overflow: hidden; transition: border-color .15s, transform .15s; }
.g-cat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cat); }
.g-cat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cat) 30%, transparent), transparent 70%); pointer-events: none; }
.g-cat:hover { border-color: var(--cat); text-decoration: none; transform: translateY(-1px); }
.g-cat-name { font-weight: 700; font-size: 15px; }
.g-cat p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.g-cat-n { margin-top: 6px; font: 600 11px var(--font-mono); color: var(--cat); }
@media (prefers-reduced-motion: reduce) { .g-cat { transition: none; } .g-cat:hover { transform: none; } }

.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.g-card { display: grid; gap: 8px; align-content: start; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--cat, var(--accent));
  border-radius: var(--radius-md); padding: 14px; color: var(--text); }
a.g-card:hover { border-color: var(--cat, var(--accent)); text-decoration: none; }
.g-card-top { display: flex; gap: 10px; align-items: center; }
.g-card-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.g-card-meta, .g-card-foot { color: var(--muted); font-size: 12px; }
.g-card p { margin: 0; color: var(--text-2); font-size: 13px; }
.g-card .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cat); margin: 0 4px 0 8px; vertical-align: middle; }
.g-card .dot:first-child { margin-left: 0; }
.tpl-sections { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; columns: 2; column-gap: 18px; }
.g-empty { color: var(--text-2); font-size: 13px; }

/* guide page */
.g-layout { display: grid; grid-template-columns: minmax(0, 860px) 280px; gap: 32px; align-items: start; justify-content: start; }
@media (max-width: 1000px) { .g-layout { grid-template-columns: 1fr; } .g-side { order: -1; } }
.g-side { position: sticky; top: 118px; display: grid; gap: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 13px; border-left: 1px solid var(--border); }
.toc li a { display: block; padding: 3px 0 3px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); }
.toc li a:hover { color: var(--text); border-left-color: var(--cat, var(--accent)); text-decoration: none; }
.toc li.d3 a { padding-left: 24px; font-size: 12.5px; }
.g-body { font-size: 15px; line-height: 1.7; color: var(--text); }
.g-body h2 { font-size: 20px; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 700; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); scroll-margin-top: 120px; }
.g-body h3 { font-size: 16px; margin: 22px 0 8px; scroll-margin-top: 120px; }
.g-body h2:first-child { margin-top: 4px; }
.g-body em { color: var(--muted); }
.g-body ul, .g-body ol { padding-left: 22px; } .g-body li { margin: 4px 0; }
.g-body li:has(> input[type="checkbox"]) { list-style: none; margin-left: -22px; }
.g-body input[type="checkbox"] { accent-color: var(--cat, var(--accent)); margin-right: 8px; }
.g-body table:not(.tbl):not(.kv):not(.grid) { border-collapse: collapse; font-size: 13.5px; margin: 10px 0; }
.g-body table:not(.tbl):not(.kv) th, .g-body table:not(.tbl):not(.kv) td { padding: 6px 12px; border-top: 1px solid var(--border); text-align: left; }
.g-body blockquote { margin: 12px 0; padding: 4px 14px; border-left: 2px solid var(--border); color: var(--text-2); }
.g-body code { background: var(--panel-raised); padding: 1px 5px; border-radius: 3px; font-size: .9em; }
.g-body img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.g-admin { display: flex; gap: 6px; }

/* callouts */
.callout { margin: 14px 0; padding: 10px 14px 10px 14px; border: 1px solid var(--border); border-left: 3px solid var(--co); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--co) 8%, var(--panel)); font-size: 14px; }
.callout p { margin: 4px 0; }
.callout-k { font: 700 11px var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--co); }
.callout.tip { --co: var(--sell); } .callout.note { --co: var(--accent); } .callout.warning { --co: var(--accent-slayer); }
.callout.important { --co: #b36bf0; } .callout.profit { --co: var(--accent-accessories); } .callout.requires { --co: var(--accent-armor); }

/* loadout */
figure.loadout { margin: 14px 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
figure.loadout figcaption { font: 600 11px var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.lo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lo-card { background: var(--panel-raised); border-radius: var(--radius-sm); padding: 8px 10px; display: grid; gap: 6px; font-size: 13px; line-height: 1.35; }
.lo-card.empty { opacity: .55; }
.lo-slot { font: 600 10px var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lo-item { display: flex; gap: 10px; align-items: center; } .lo-item .mc-slot { flex: none; }
.lo-price { font-size: 12px; } .lo-note { color: var(--muted); font-size: 12px; }
.lo-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; }

/* live data blocks */
.embed { margin: 14px 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.embed-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .embed-head .k { margin: 0; }
.embed section { margin: 0 0 8px; } .embed section h2 { font-size: 11px; margin: 8px 0 6px; border: 0; padding: 0; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.embed-side { max-width: 380px; background: none; border: 0; padding: 0; }
.embed-item, .embed-price { white-space: nowrap; } .embed-item .ic { margin-right: 4px; }
.embed-empty p { margin: 0; color: var(--muted); font-style: italic; }
.embed-missing { color: var(--accent-slayer); border-bottom: 1px dotted currentColor; }

/* editor */
.g-pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.g-pick .k { flex-basis: 100%; margin: 0; }
.g-pick label, .g-row label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
select { background: var(--panel-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font: 13px var(--font-body); }
.g-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .g-editor { grid-template-columns: 1fr; } }
.g-form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.g-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.g-form textarea { min-height: 540px; line-height: 1.55; }
.g-actions { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; } .g-actions .btn { display: inline-flex; align-items: center; }
.g-help { position: sticky; top: 118px; font-size: 12px; } .g-help pre { background: var(--panel-raised); padding: 8px; border-radius: var(--radius-sm); font-size: 11.5px; }
.g-help table.kv th { width: auto; white-space: nowrap; } .g-help code { color: var(--text); }
.g-mini { border-left: 3px solid var(--accent); }

/* accounts & suggested edits */
.user .btn { padding: 4px 10px; margin-left: 2px; }
.user .pill { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--buy); color: #0b1020; font: 700 11px/18px var(--font-body); text-align: center; }
.auth { max-width: 420px; margin: 24px auto; }
.auth .form { max-width: none; }
.ok { color: var(--sell); }
.warn { background: color-mix(in srgb, var(--buy) 12%, transparent); border-left: 3px solid var(--buy); padding: 10px 14px; border-radius: var(--radius-sm); }
.auth .steps { padding-left: 1.4em; }
.auth .steps li { margin: 4px 0; }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #4752c4; border-color: #4752c4; }
.auth details.card { margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:not(.primary) { background: var(--panel-raised); color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn.danger, .form .btn.danger { background: color-mix(in srgb, var(--accent-slayer) 16%, transparent); color: #ff8a8a; border: 1px solid color-mix(in srgb, var(--accent-slayer) 45%, transparent); }
.badge.st-pending { background: color-mix(in srgb, var(--buy) 20%, transparent); color: var(--buy); }
.badge.st-accepted { background: color-mix(in srgb, var(--sell) 20%, transparent); color: var(--sell); }
.badge.st-rejected { background: color-mix(in srgb, var(--accent-slayer) 20%, transparent); color: #ff8a8a; }
.badge.st-withdrawn { background: var(--panel-raised); color: var(--muted); }
.req-list td { vertical-align: top; } .req-list .q { font-size: 11px; color: var(--muted); }
.d-plus { color: var(--sell); } .d-minus { color: #ff8a8a; }
.req-meta { color: var(--muted); font-size: 13px; }
.req-summary { margin: 8px 0 16px; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: var(--radius-sm); }
.req-review, .req-outcome, .req-preview { margin: 18px 0; padding: 14px 16px; }
.req-review textarea { min-height: 260px; }
.req-outcome p { margin: 8px 0 0; }
details.card { margin: 14px 0; padding: 10px 14px; } details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: 10px; }
.req-ban { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 13px; }

/* comments */
.comments { max-width: 860px; margin: 40px 0 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.c-title { font-size: 18px; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.c-title .n { font: 600 12px var(--font-mono); color: var(--muted); background: var(--panel-raised); border-radius: 999px; padding: 1px 8px; }
.comment { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment.removed { opacity: .55; }
.c-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; }
.c-main header { font-size: 13px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.c-time { color: var(--muted); font-size: 12px; }
.c-body { margin-top: 4px; line-height: 1.55; overflow-wrap: anywhere; }
.c-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.c-img img { display: block; max-width: min(360px, 100%); max-height: 280px; width: auto; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.c-img.pending { position: relative; }
.c-img-wait { font-size: 12px; color: var(--buy); background: color-mix(in srgb, var(--buy) 12%, transparent); border-radius: var(--radius-sm); padding: 6px 10px; }
img.blur { filter: blur(22px) saturate(.4); transition: filter .15s; cursor: pointer; }
img.blur:focus { filter: none; outline: 2px solid var(--accent); }
.c-imgact { margin-top: 6px; display: flex; gap: 6px; }
.c-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; font-size: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; list-style: none; }
.linkbtn:hover { color: var(--text); } .linkbtn.danger { color: #ff8a8a; }
.c-report summary::-webkit-details-marker { display: none; }
.c-report[open] form { display: flex; gap: 6px; margin-top: 6px; }
.c-report select, .c-reason { background: var(--panel-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px 6px; font-size: 12px; }
.c-reason { width: 140px; margin-right: 6px; }
.c-form { margin-top: 16px; display: grid; gap: 8px; }
.c-form textarea { width: 100%; min-height: 80px; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--panel-raised); color: var(--text); font: 14px/1.5 var(--font-body); resize: vertical; }
.c-form textarea:focus { outline: none; border-color: var(--accent); }
.c-form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; flex-wrap: wrap; }
.c-login { margin-top: 14px; }

/* moderation menu */
.mod-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 16px; overflow-x: auto; }
.mod-tabs a { padding: 8px 12px; color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.mod-tabs a:hover { color: var(--text); } .mod-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.mod-tabs .pill, .page-head .pill { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--buy); color: #0b1020; font: 700 11px/18px var(--font-body); text-align: center; }
.mod-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin: 10px 0; }
.mod-item header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.mod-item header .muted { font-size: 12px; } .mod-item .q { font-size: 11px; color: var(--muted); }
.mod-item .mono { font-family: var(--font-mono); font-size: 12px; margin-left: auto; }
.mod-summary { margin: 6px 0; }
.mod-item details { margin: 6px 0; font-size: 13px; } .mod-item summary { cursor: pointer; color: var(--accent); }
.mod-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.mod-actions input { flex: 1 1 220px; min-width: 0; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel-raised); color: var(--text); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mod-img { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px; overflow: hidden; }
.mod-img img { display: block; width: 100%; height: 180px; object-fit: contain; background: var(--bg); border-radius: var(--radius-sm); }
.mod-img figcaption { font-size: 12px; margin-top: 8px; line-height: 1.45; }
.mod-setup ul { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.mod-setup, .mod-incident { padding: 12px 14px; margin-bottom: 16px; }
.mod-incident { border-color: color-mix(in srgb, var(--accent-slayer) 50%, transparent); }
.mod-incident .nolink { user-select: all; word-break: break-all; }
.mod-comment { border-bottom: 1px solid var(--border); } .mod-comment .comment { border-bottom: 0; }
.mod-report { font-size: 12px; color: var(--buy); display: flex; gap: 10px; align-items: center; padding: 0 0 12px 48px; }
.mod-search { display: flex; gap: 6px; margin-bottom: 12px; max-width: 420px; }
.mod-search input { flex: 1; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel-raised); color: var(--text); }
.mod-users tr.banned td { opacity: .6; }
.c-actions .inline button.linkbtn, .c-actions summary.linkbtn { background: none; border: 0; padding: 0; font: 400 12px var(--font-body); color: var(--muted); cursor: pointer; }
.c-actions .inline button.linkbtn:hover, .c-actions summary.linkbtn:hover { color: var(--text); }
.c-actions .inline button.linkbtn.danger { color: #ff8a8a; }
.c-actions details summary { display: inline; }

/* cookies & privacy */
.legal { max-width: 820px; }
.legal h2 { margin-top: 28px; }
.legal li { margin: 6px 0; line-height: 1.55; }
.legal-settings { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; margin: 16px 0; }

/* API keys */
.key-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; max-width: 760px; }
.key-form input { flex: 1 1 260px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel-raised); color: var(--text); }
.key-form select { padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel-raised); color: var(--text); }
.key-created { padding: 14px 16px; margin: 10px 0 16px; border-color: color-mix(in srgb, var(--sell) 55%, transparent); max-width: 760px; }
.key-created p { margin: 4px 0 10px; color: var(--muted); }
.key-value { width: 100%; font: 14px var(--font-mono); padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--sell); }
.keys tr.off td { opacity: .55; } .keys .q { font-size: 11px; color: var(--muted); }
.key-usage { max-width: 760px; } .key-usage pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; }
.brand .tld { color: var(--accent); }

/* ---------------------------------------------------------------- front pages (landing + wiki home), src/wiki/showcase.ts */
/* drifting wall of item icons behind the hero */
.icon-wall { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: .65;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 20%, transparent 75%); pointer-events: none; }
.wall-row { display: flex; gap: 26px; width: max-content; animation: wall-drift var(--dur, 100s) linear infinite; animation-direction: var(--dir, normal); }
.wall-row img { width: 40px; height: 40px; image-rendering: pixelated; filter: saturate(.9) drop-shadow(0 2px 6px #0008); opacity: .55; }
.wall-row:nth-child(2n) img { opacity: .4; }
@keyframes wall-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-row { animation: none; } }

.hero { position: relative; border: 1px solid var(--border); border-radius: 14px; margin: 18px 0 8px;
  background: radial-gradient(900px 380px at 15% 0%, rgba(91, 141, 239, .22), transparent 65%), radial-gradient(700px 360px at 95% 110%, rgba(123, 91, 239, .2), transparent 60%), linear-gradient(180deg, #151a25, #0f131b); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(90deg, rgba(15, 19, 27, .92) 0%, rgba(15, 19, 27, .55) 55%, rgba(15, 19, 27, .2) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 44px 40px 36px; max-width: 720px; }
.hero-kicker { margin: 0 0 8px; font: 700 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero-title { margin: 0 0 18px; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
.hero-title span { background: linear-gradient(90deg, #7fa6ff, #b18cff 60%, #e8b84b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-search { position: relative; display: flex; gap: 8px; max-width: 560px; }
.hero-search .suggest { top: calc(100% + 6px); z-index: 40; }
.hero-search .suggest a { color: var(--text); }
.hero-search input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 10px; border: 1px solid #33405a; background: rgba(12, 15, 21, .85); color: var(--text); font: 15px var(--font-body);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 141, 239, .25); }
.hero-search button { padding: 0 20px; border-radius: 10px; border: 0; background: var(--accent); color: #0b1020; font: 700 14px var(--font-body); cursor: pointer; }
.hero-search button:hover { filter: brightness(1.1); }
.hero-meta { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.hero-stats:empty { display: none; }
.hero-stats span { padding: 4px 11px; border-radius: 999px; background: rgba(12, 15, 21, .7); border: 1px solid #2c3548; }
.hero-stats b { color: var(--text); font-family: var(--font-mono); }

.home-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 10px; font-weight: 700; }
/* the live cards get a coloured edge each */
.live .card { position: relative; overflow: hidden; }
.live .card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--edge, var(--accent)); }
.live .live-time { --edge: #3ec6c6; } .live .live-mayor { --edge: #e8b84b; } .live .live-events { --edge: #7b5bef; }
.live.compact .links li { margin: 2px 0; }
.live:not(.compact) .live-events ul { columns: 2; column-gap: 24px; } .live:not(.compact) .live-events li { break-inside: avoid; }
@media (max-width: 700px) { .live:not(.compact) .live-events ul { columns: 1; } }

/* kinds of pages, with the icon of the most linked page of that kind */
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.kind-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--border); color: var(--text); transition: transform .12s, border-color .12s, box-shadow .12s; }
.kind-tile:hover { text-decoration: none; transform: translateY(-2px); border-color: #3a4560; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.kind-tile img { width: 36px; height: 36px; image-rendering: pixelated; flex: none; filter: drop-shadow(0 2px 4px #0009); transition: transform .15s; }
.kind-tile:hover img { transform: scale(1.12) rotate(-4deg); }
.kind-tile .ic { flex: none; }
.kind-text { display: flex; flex-direction: column; min-width: 0; }
.kind-text b { font-size: 14px; } .kind-text span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind-dot { width: 36px; height: 36px; border-radius: 8px; background: var(--panel-raised); flex: none; }
.kind-more { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 13px; }

/* landing page (scd.wtf) */
body.site { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 500px at 50% -10%, rgba(91, 141, 239, .14), transparent 70%), var(--bg); }
.site-top { display: flex; align-items: center; justify-content: space-between; width: min(1100px, 100%); margin: 0 auto; padding: 16px; box-sizing: border-box; }
.site-top .brand { padding: 0; }
.site-top nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; } .site-top nav a { color: var(--text-2); }
.site-hero { width: min(1100px, calc(100% - 32px)); margin: 8px auto 0; box-sizing: border-box; }
.site-hero .hero-inner { padding: 64px 48px 52px; }
.site-main { flex: 1; width: min(1100px, 100%); margin: 0 auto; padding: 0 16px 48px; box-sizing: border-box; }
.site-logo { font-size: clamp(48px, 9vw, 84px); margin: 0; letter-spacing: -.03em; font-weight: 800; line-height: 1; }
.site-logo .tld { background: linear-gradient(90deg, #7fa6ff, #b18cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin: 14px 0 24px; line-height: 1.5; }
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.site-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(260px 120px at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), var(--panel);
  border: 1px solid var(--border); color: var(--text); transition: transform .12s, border-color .12s, box-shadow .12s; }
.site-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--c); box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 18%, transparent); }
.site-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.site-card img { width: 40px; height: 40px; image-rendering: pixelated; filter: drop-shadow(0 3px 6px #000a); }
.site-card b { font-size: 17px; } .site-card > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.5; }
.site-tag { font: 600 10.5px var(--font-mono); color: var(--c); text-align: right; }
@media (max-width: 640px) {
  .hero-inner, .site-hero .hero-inner { padding: 28px 18px 24px; }
  .hero::after { background: rgba(15, 19, 27, .75); }
  .hero-search button { padding: 0 14px; }
  .site-top nav { gap: 12px; }
}
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0; }
.pager a, .pager span { padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); font-size: 13px; }
.pager span[aria-current] { background: var(--accent); color: #0b1020; border-color: var(--accent); font-weight: 700; }

/* account page */
.acct { padding: 14px 16px; margin: 14px 0; }
.acct h2 { margin-top: 0; }
.acct .form { max-width: 420px; }
.danger-zone { border-color: color-mix(in srgb, var(--accent-slayer) 45%, transparent); }
label.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
label.check input { width: auto; }
.mod-del { display: inline-block; margin-left: 8px; } .mod-del[open] form { margin-top: 6px; max-width: 360px; }

/* ad slots: space is reserved so the page doesn't jump when an ad loads */
.ad { margin: 16px 0; text-align: center; }
.ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-side { min-height: 280px; }
.ad-content { min-height: 120px; max-width: 860px; }
.ad ins { min-height: inherit; }

/* "Show all N": long tables/lists/lore start collapsed; a hidden checkbox + label toggles them (no JS) */
.expand { position: relative; }
.expand > .xp { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.expand > .xp:not(:checked) ~ table tr.x, .expand > .xp:not(:checked) ~ ul li.x { display: none; }
.xp-btn { display: inline-flex; margin: 6px 0 10px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-raised);
  color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; order: 2; }
.xp-btn:hover { border-color: var(--accent); }
.expand > .xp:focus-visible ~ .xp-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.expand > .xp:checked ~ .xp-btn .xp-more, .expand > .xp:not(:checked) ~ .xp-btn .xp-less { display: none; }
.expand:has(> table), .expand:has(> ul) { display: flex; flex-direction: column; align-items: flex-start; }
.expand > table, .expand > ul { order: 1; align-self: stretch; }
.lore-x > .xp:not(:checked) ~ .lore { max-height: calc(var(--lines) * 1.45em + 20px); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* pets: one stat table across rarities, abilities once, tooltips collapsed */
.pet-stats td b { font-weight: 700; }
.pet-abilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pet-abilities .card { margin: 0; }
.pet-tooltips { margin-top: 14px; } .pet-tooltips summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.pet-lore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.pet-lore-grid .k { margin-bottom: 4px; }
.pet-market td { vertical-align: top; line-height: 1.7; } .pet-market td .q { font-size: 11px; }

/* tabbed panels without JavaScript (src/wiki/tabs.ts); one rule set per tab, up to 12 */
.tabber { margin: 4px 0 8px; }
.tabber > .tb-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tabber > .tb-labels { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; border-bottom: 1px solid var(--border); }
.tabber > .tb-labels label { padding: 6px 2px 7px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none; }
.tabber > .tb-labels label:hover { color: var(--text); }
.tabber > .tb-labels .n { font: 600 11px var(--font-mono); color: var(--muted); background: var(--panel-raised); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.tabber > .tb-panel { display: none; }
.tabber > .tb-r:nth-of-type(1):checked ~ .tb-panel:nth-of-type(1) { display: block; }
.tabber > .tb-r:nth-of-type(1):checked ~ .tb-labels label:nth-of-type(1) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(1):focus-visible ~ .tb-labels label:nth-of-type(1) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(2):checked ~ .tb-panel:nth-of-type(2) { display: block; }
.tabber > .tb-r:nth-of-type(2):checked ~ .tb-labels label:nth-of-type(2) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(2):focus-visible ~ .tb-labels label:nth-of-type(2) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(3):checked ~ .tb-panel:nth-of-type(3) { display: block; }
.tabber > .tb-r:nth-of-type(3):checked ~ .tb-labels label:nth-of-type(3) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(3):focus-visible ~ .tb-labels label:nth-of-type(3) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(4):checked ~ .tb-panel:nth-of-type(4) { display: block; }
.tabber > .tb-r:nth-of-type(4):checked ~ .tb-labels label:nth-of-type(4) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(4):focus-visible ~ .tb-labels label:nth-of-type(4) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(5):checked ~ .tb-panel:nth-of-type(5) { display: block; }
.tabber > .tb-r:nth-of-type(5):checked ~ .tb-labels label:nth-of-type(5) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(5):focus-visible ~ .tb-labels label:nth-of-type(5) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(6):checked ~ .tb-panel:nth-of-type(6) { display: block; }
.tabber > .tb-r:nth-of-type(6):checked ~ .tb-labels label:nth-of-type(6) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(6):focus-visible ~ .tb-labels label:nth-of-type(6) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(7):checked ~ .tb-panel:nth-of-type(7) { display: block; }
.tabber > .tb-r:nth-of-type(7):checked ~ .tb-labels label:nth-of-type(7) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(7):focus-visible ~ .tb-labels label:nth-of-type(7) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(8):checked ~ .tb-panel:nth-of-type(8) { display: block; }
.tabber > .tb-r:nth-of-type(8):checked ~ .tb-labels label:nth-of-type(8) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(8):focus-visible ~ .tb-labels label:nth-of-type(8) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(9):checked ~ .tb-panel:nth-of-type(9) { display: block; }
.tabber > .tb-r:nth-of-type(9):checked ~ .tb-labels label:nth-of-type(9) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(9):focus-visible ~ .tb-labels label:nth-of-type(9) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(10):checked ~ .tb-panel:nth-of-type(10) { display: block; }
.tabber > .tb-r:nth-of-type(10):checked ~ .tb-labels label:nth-of-type(10) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(10):focus-visible ~ .tb-labels label:nth-of-type(10) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(11):checked ~ .tb-panel:nth-of-type(11) { display: block; }
.tabber > .tb-r:nth-of-type(11):checked ~ .tb-labels label:nth-of-type(11) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(11):focus-visible ~ .tb-labels label:nth-of-type(11) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tabber > .tb-r:nth-of-type(12):checked ~ .tb-panel:nth-of-type(12) { display: block; }
.tabber > .tb-r:nth-of-type(12):checked ~ .tb-labels label:nth-of-type(12) { color: var(--text); border-bottom-color: var(--accent); }
.tabber > .tb-r:nth-of-type(12):focus-visible ~ .tb-labels label:nth-of-type(12) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
/* "Required for" grouped by level/tier */
.tbl.req td.lv { white-space: nowrap; color: var(--text-2); font-weight: 600; vertical-align: top; }
.req-items { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.req-items > span { display: inline-flex; align-items: center; gap: 6px; }
/* written articles (content/wiki) with their source log */
.article sup.cite { font-size: 10px; margin-left: 1px; }
.article sup.cite a { color: var(--accent); }
.article ol.sources { font-size: 12px; color: var(--text-2); padding-left: 20px; margin: 4px 0 0; }
.article ol.sources li { margin: 2px 0; }
.src-kind { font-size: 11px; border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; color: var(--muted); }
.src-kind.src-community { color: var(--buy); border-color: color-mix(in srgb, var(--buy) 40%, transparent); }
.src-kind.src-hypixel { color: var(--sell); border-color: color-mix(in srgb, var(--sell) 40%, transparent); }
.article table { border-collapse: collapse; font-size: 13px; margin: 6px 0 12px; display: block; overflow-x: auto; }
.article table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 10px; white-space: nowrap; }
.article table td { padding: 6px 10px; border-top: 1px solid var(--border); }
/* a thin accent line under the header on every wiki page */
.top { border-bottom: 0; box-shadow: 0 1px 0 var(--border); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(91, 141, 239, .7) 25%, rgba(177, 140, 255, .7) 60%, rgba(232, 184, 75, .5) 85%, transparent); }
/* mayor and minister with their elected perks: a full-width card under the clock and events */
.live .live-mayor { grid-column: 1 / -1; }
.politics { display: grid; grid-template-columns: 2fr 1fr; gap: 12px 28px; }
.politics > div + div { border-left: 1px solid var(--border); padding-left: 24px; }
.perks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.perks li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.perks li b a { color: var(--gold); }
.perk-desc { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.live.compact .perk-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) { .politics { grid-template-columns: 1fr; } .politics > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 10px; } }
@media (min-width: 701px) { .live .live-events { grid-column: 2 / -1; } }

/* visitor statistics (Special:Analytics) */
.an-range { font-size: 13px; color: var(--muted); }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.an-tile .big { font-size: 24px; font-weight: 700; }
.an-tile .muted { font-size: 12px; }
.an-chart { width: 100%; height: auto; display: block; margin: 6px 0 4px; }
.an-chart .an-grid { stroke: var(--border); stroke-width: 1; }
.an-chart .an-axis { fill: var(--muted); font: 11px var(--font-body); }
.an-chart .an-col path { fill: var(--accent); }
.an-chart .an-hit { fill: transparent; }
.an-chart .an-col:hover .an-hit { fill: var(--row-hover); }
.an-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; margin-top: 14px; }
.an-card h2 { margin-top: 0; font-size: 16px; }
table.tbl.an-tbl { display: table; }
.an-tbl td:first-child { overflow-wrap: anywhere; }
.an-tbl td.num { position: relative; width: 90px; white-space: nowrap; }
.an-tbl .an-bar { position: absolute; left: 0; bottom: 2px; height: 3px; border-radius: 2px; background: var(--accent); opacity: .55; }
