/* Heyday - the site's one stylesheet (tools/wiki/build_site.py builds every page with it).
   Modelled on the best ARPG sites (research 2026-10-20): near-black, parchment text, ONE accent (ember), items in the
   game's own tooltip colours, a short nav with search always in the header. */
:root {
  --bg: #0d0d0e; --panel: #141313; --panel-2: #1b1918; --line: #2a2522; --line-2: #3a332c;
  --text: #f7f1e3; --muted: #a39a8b; --dim: #7d7466;
  --accent: #c83c22; --accent-2: #e45a35;
  --unique: #c7b790; --set: #00c400; --magic: #6377ef; --rare: #ffff64; --crafted: #ffa800; --req: #e96b63; --base: #b5b5b5; --white: #ffffff;
  --ok: #3fbf5f; --radius: 10px; --wrap: 1200px;
  --display: "Cinzel", Georgia, serif; --body: "Source Sans 3", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a.ln, .prose a, p a { color: var(--accent-2); }
a.ln:hover, .prose a:hover, p a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; line-height: 1.25; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.label { font-family: var(--display); font-size: 12px; letter-spacing: .16em; color: var(--accent-2); margin-bottom: 6px; text-transform: uppercase; }
::selection { background: var(--accent); color: #fff; }

/* ---- header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(13,13,14,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .08em; color: var(--unique); white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
/* main menu: Guide / Database / League open grouped menus (build_site.py NAV) */
.top .wrap { position: relative; }
.nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; }
.dd { display: flex; align-items: center; }
.dd-t, .nl { color: var(--muted); padding: 8px 4px 8px 10px; border-radius: 8px; font-size: 15px; white-space: nowrap; align-self: center; }
.nl { padding: 8px 10px; }
.dd-b { background: none; border: 0; color: var(--dim); padding: 8px 8px 8px 2px; cursor: pointer; display: grid; place-items: center; align-self: center; }
.dd-b svg { transition: transform .15s; }
.dd-t:hover, .nl:hover, .dd:hover .dd-t { color: var(--text); }
.dd[data-sec="on"] .dd-t, .nl[data-sec="on"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.menu { display: none; position: absolute; top: 62px; left: 20px; z-index: 30; min-width: 280px; background: var(--panel); border: 1px solid var(--line-2);
  border-top: 2px solid var(--accent); border-radius: 0 0 12px 12px; padding: 12px; box-shadow: 0 24px 50px rgba(0,0,0,.65); gap: 6px 10px; }
.menu.wide { width: min(860px, calc(100% - 40px)); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.menu .mcol a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); font-size: 15px; line-height: 1.35; }
.menu .mcol a small { display: block; color: var(--muted); font-size: 13px; }
.menu .mcol a:hover, .menu .mcol a:focus-visible { background: var(--panel-2); color: var(--unique); outline: none; }
.mh { font: 600 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); padding: 6px 10px 4px; }
.dd.open .menu { display: grid; }
.dd.open .dd-b svg { transform: rotate(180deg); }
/* desktop (2026-11-06, the user: the League menu "opens to the left and i cant select underneath it"): a short menu sits
   under its own entry; a menu opens only after the pointer rests on its entry a moment (passing over the bar opens
   nothing) and closes a moment after it leaves (time to reach it); keyboard focus opens it, a mouse click doesn't pin it */
.dd.narrow { position: relative; }
.dd.narrow .menu { left: 0; top: 100%; }
@media (hover: hover) and (min-width: 901px) {
  .menu { display: grid; visibility: hidden; opacity: 0; transition: opacity .1s, visibility 0s linear .1s; }
  .dd:hover .menu, .dd:has(:focus-visible) .menu, .dd.open .menu { visibility: visible; opacity: 1; transition: opacity .1s linear .18s, visibility 0s linear .18s; }
  .dd.open .menu { transition: none; }
}
.nl.dl-m { display: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.search { position: relative; flex: 1; max-width: 360px; margin-left: auto; }
.search input { width: 100%; height: 40px; padding: 0 44px 0 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 15px var(--body); }
.search input:focus { outline: none; border-color: var(--unique); }
.search .ico { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--dim); }
.search kbd { position: absolute; right: 10px; top: 10px; font: 12px var(--body); color: var(--dim); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; }
.results { position: absolute; left: 0; right: 0; top: 46px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); max-height: 70vh; overflow-y: auto; box-shadow: 0 18px 40px rgba(0,0,0,.6); display: none; }
.results.open { display: block; }
.results a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a.sel { background: var(--panel-2); }
.results img, .results .noimg { width: 32px; height: 32px; object-fit: contain; flex: none; }
.results .nm { font-weight: 600; }
.results small { display: block; color: var(--muted); font-size: 13px; }
.results .none { padding: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; font-weight: 600; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; font-size: 15px; white-space: nowrap; }
.btn:hover { border-color: var(--unique); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; position: relative; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 11px; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .15s, top .15s; }
.menu-btn span { top: 19px; } .menu-btn span::before { left: 0; top: -6px; } .menu-btn span::after { left: 0; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--text); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--text); }

/* ---- hero (home) */
.hero { position: relative; padding: 96px 0 76px; text-align: center; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,14,.2), rgba(13,13,14,.75) 65%, var(--bg)), url(rips.jpg) center/cover; }
.hero .wrap { position: relative; }
.hero .logo { width: min(600px, 88%); margin: 0 auto; filter: drop-shadow(0 6px 22px rgba(0,0,0,.85)); }
.hero p.pitch { max-width: 640px; margin: 18px auto 28px; font-size: 19px; color: #e6dccb; text-shadow: 0 2px 10px #000; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(20,19,19,.85); color: var(--muted); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(63,191,95,.18); }
.strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 920px; margin: -34px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.strip a { padding: 18px 10px; text-align: center; border-right: 1px solid var(--line); }
.strip a:last-child { border-right: 0; }
.strip a:hover { background: var(--panel-2); }
.strip b { display: block; font: 700 28px var(--display); color: var(--unique); }
.strip span { color: var(--muted); font-size: 14px; }

/* ---- sections */
section.s { padding: 68px 0; }
section.s + section.s { border-top: 1px solid var(--line); }
.s h2 { font-size: 30px; margin-bottom: 8px; }
.s .lead { color: var(--muted); font-size: 17px; max-width: 46em; margin: 0 0 26px; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin-top: 36px; }
.feature.flip { grid-template-columns: 1fr 1.1fr; }
.feature.flip .shot { order: 2; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.feature h3 { font-size: 22px; color: var(--unique); margin-bottom: 8px; }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.feature li { margin: .35em 0; }
.feature li strong, .card strong { color: var(--text); }
.num { font: 12px var(--display); color: var(--accent-2); letter-spacing: .14em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 30px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 17px; color: var(--unique); margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }
a.card:hover { border-color: var(--unique); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
ol.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; margin: 26px 0 0; }
ol.steps li { counter-increment: s; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 66px; }
ol.steps li::before { content: counter(s); position: absolute; left: 18px; top: 17px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent-2); font: 700 15px var(--display); }
ol.steps strong { color: var(--text); }
ol.steps p { margin: .25em 0 0; color: var(--muted); }
.note { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0; background: var(--panel); color: var(--muted); }
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: .6em 0 0; }
.news { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.news h3 { font-size: 20px; margin-bottom: 8px; }
.news p { color: var(--muted); margin: 0 0 14px; }

/* ---- page frame (everything but home) */
.page { padding: 34px 0 72px; min-height: 60vh; }
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.page h1 { font-size: 36px; margin-bottom: 6px; }
.page .lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 50em; }
.page h2 { font-size: 22px; margin: 34px 0 12px; }
.tabs { display: flex; gap: 2px; margin: 0 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tabs a { padding: 10px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; flex: none; }
.tabs a small { margin-left: 6px; font-size: 12px; color: var(--dim); }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }

/* ---- database: filters and the tooltip card grid */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters input[type=search], .filters select { height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 15px var(--body); padding: 0 12px; }
.filters input[type=search] { flex: 1; min-width: 220px; }
.filters select { cursor: pointer; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--unique); }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.count { margin-left: auto; color: var(--muted); font-size: 14px; }
.btn.on { border-color: var(--unique); color: var(--unique); }
/* database: "More filters" panel and the active-filter chips */
.adv { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 14px; margin: -6px 0 16px; }
.adv-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.adv-row label { color: var(--muted); font-size: 15px; }
.adv input[type=number], .adv select { height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 15px var(--body); padding: 0 10px; }
.adv input[type=number] { width: 76px; }
.adv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.adv-tags .lbl { color: var(--muted); font-size: 14px; margin-right: 4px; }
.adv .small { font-size: 13px; margin: 10px 0 0; }
.tag { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 14px var(--body); cursor: pointer; }
.tag:hover { border-color: var(--unique); }
.tag.on { border-color: var(--unique); color: var(--unique); background: #221e17; }
.active { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.active:empty { display: none; }
.active .clear { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: 14px var(--body); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tip { display: block; position: relative; background: #060606; border: 1px solid var(--line-2); border-radius: 6px; padding: 16px 16px 18px; text-align: center; line-height: 1.45; font-size: 15px; transition: border-color .12s, transform .12s; }
a.tip:hover { border-color: var(--unique); transform: translateY(-1px); }
.tip .art { height: 84px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tip .art img { max-height: 84px; width: auto; }
.tip .nm { font: 700 17px var(--display); }
.tip .bs { margin-bottom: 6px; }
.tip .w { color: var(--white); }
.tip .rq { color: var(--white); margin-bottom: 6px; }
.tip .rq.no { color: var(--req); }
.tip .p { color: var(--magic); }
.tip .pc { color: var(--set); font-size: 14px; margin-top: 6px; }
.tip .runes { color: var(--unique); font-family: var(--display); letter-spacing: .05em; margin-bottom: 4px; }
.tip .badge { position: absolute; top: 10px; right: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); border: 1px solid #5a2a1d; border-radius: 999px; padding: 1px 8px; }
.q-unique .nm, .q-unique .bs { color: var(--unique); }
.q-set .nm, .q-set .bs { color: var(--set); }
.q-rw .nm { color: var(--unique); } .q-rw .bs { color: var(--base); }
.q-magic .nm { color: var(--magic); } .q-rare .nm { color: var(--rare); } .q-crafted .nm { color: var(--crafted); } .q-normal .nm, .q-superior .nm { color: var(--white); }
.more { display: flex; justify-content: center; margin-top: 22px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---- item page */
.item-page { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 34px; align-items: start; }
.item-page .tip { padding: 26px 24px; font-size: 16px; }
.item-page .tip .art { height: 120px; } .item-page .tip .art img { max-height: 120px; }
.item-page .tip .nm { font-size: 22px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0 0 24px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.rel { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rel a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.rel a:hover { border-color: var(--unique); }
.rel img { width: 30px; height: 30px; object-fit: contain; }
.rel small { display: block; color: var(--muted); font-size: 13px; }

/* ---- tables (ladder, runewords, cube, skills) */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th, table.t td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--panel-2); position: sticky; top: 0; }
table.t tbody tr:hover td { background: var(--panel-2); }
table.t td.rk { font: 700 15px var(--display); color: var(--unique); width: 46px; }
table.t a.cn { font-weight: 600; }
table.t a.cn:hover { color: var(--unique); }
table.t b.pg { color: var(--unique); font-weight: 700; }
.chip { display: inline-block; margin-left: 8px; font-size: 12px; border-radius: 999px; padding: 0 8px; border: 1px solid var(--line-2); color: var(--muted); vertical-align: 1px; }
.chip.live { color: var(--ok); border-color: #2d6b3c; }
.chip.dead { color: var(--req); border-color: #6b2d2d; }
.runes-c { color: var(--unique); font-family: var(--display); letter-spacing: .04em; white-space: nowrap; }

/* ---- character sheet */
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); border: 1px solid #2d6b3c; border-radius: 999px; padding: 2px 10px; }
.badge-wait { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--crafted); border: 1px solid #6b5020; border-radius: 999px; padding: 2px 10px; }
.attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0 24px; }
.attrs div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted); font-size: 13px; }
.attrs b { display: block; color: var(--text); font: 700 20px var(--display); }
.mercg { margin-top: 26px; }
.mercg .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
/* skill trees and charms, drawn like the game's panels: dark stone, bronze frames, gold numbers */
.build-note { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.build-note b { color: var(--unique); font-family: var(--display); }
.trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tree { background: linear-gradient(180deg, #17130f, #0b0907); border: 1px solid #4a3c2a; border-radius: 4px; box-shadow: inset 0 0 0 1px #000, inset 0 0 24px rgba(0,0,0,.7); padding: 10px; }
.tree-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid #3a2f22; padding: 0 4px 8px; margin-bottom: 10px;
  font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--unique); }
.tree-h b { font-size: 16px; color: var(--text); }
/* skills sit free on the tree like the game's panel: framed icons, prerequisite lines between them (site.js drawLines) */
.tree-g { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, 1fr); gap: 10px 8px; }
.sk-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sk-lines line { stroke: #3a3128; stroke-width: 3; stroke-linecap: round; }
.sk-lines line.on { stroke: #b08a4a; filter: drop-shadow(0 0 2px rgba(199,150,70,.5)); }
.sk { all: unset; box-sizing: border-box; position: relative; z-index: 1; cursor: pointer; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 5px; text-align: center; padding: 4px 2px 6px; }
.sk .sk-i, .sk .sk-n { opacity: .5; filter: grayscale(.85); }
.sk.on .sk-i, .sk.on .sk-n { opacity: 1; filter: none; }
.sk:focus-visible .sk-i, .sk:hover .sk-i, .sk.sel .sk-i { outline: 2px solid var(--unique); outline-offset: 2px; opacity: 1; }
.sk-i { position: relative; display: block; width: min(56px, 72%); aspect-ratio: 1; background: #0a0806; border: 2px solid #4a3c2a; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0,0,0,.8); }
.sk.on .sk-i { border-color: #b08a4a; }
.sk-i img { display: block; width: 100%; height: 100%; border-radius: 1px; }
.sk-n { font-size: 11px; line-height: 1.2; color: var(--base); overflow-wrap: anywhere; background: #0e0c0a; padding: 1px 4px; border-radius: 2px; }
.sk.on .sk-n { color: var(--text); }
.sk-p { position: absolute; right: -10px; bottom: -6px; min-width: 20px; padding: 0 3px; text-align: center; background: #000; border: 1px solid #4a3c2a; border-radius: 2px;
  font: 700 12px/16px var(--display); color: var(--dim); }
.sk.on .sk-p { color: var(--unique); border-color: #8a6d3e; }
/* gear: the game's inventory panel - paper doll on a 10-cell grid (the inventory's own cell), inventory under it */
.gear { --c: clamp(29px, calc((100vw - 64px) / 10), 46px); }
.gtabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 12px; background: #070605; border: 1px solid #3a2f22; border-radius: 999px; }
.gtabs button, .hl { all: unset; cursor: pointer; padding: 6px 16px; border-radius: 999px; font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--base); }
.gtabs button.on { background: #2a2219; color: var(--unique); box-shadow: inset 0 0 0 1px #6b5532; }
.gtabs button:focus-visible, .hl:focus-visible, .wtabs button:focus-visible { outline: 2px solid var(--unique); outline-offset: 2px; }
.gwrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.gpanel { padding: 14px; background: linear-gradient(180deg, #1b1712, #0c0a08); border: 1px solid #5a4a33; border-radius: 3px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 4px #15110d, inset 0 0 0 5px #3a2f22, inset 0 0 40px rgba(0,0,0,.8); }
.gview[hidden] { display: none; }
.doll2 { display: grid; grid-template-columns: repeat(10, var(--c)); grid-template-rows: calc(var(--c) * .5) repeat(6, var(--c)); margin-bottom: 14px; }
.gs { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; justify-content: center; margin: 2px; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #16120e, #070605); border: 1px solid #4a3c2a; border-radius: 2px; box-shadow: inset 0 0 0 1px #000; }
.gs.vacant { cursor: default; } .gs.vacant span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #4a4036; text-align: center; }
.a-head { grid-area: 2 / 5 / 4 / 7; } .a-neck { grid-area: 3 / 7 / 4 / 8; } .a-torso { grid-area: 4 / 5 / 7 / 7; } .a-belt { grid-area: 7 / 5 / 8 / 7; }
.a-rhand, .a-rhand2 { grid-area: 2 / 1 / 6 / 3; } .a-lhand, .a-lhand2 { grid-area: 2 / 9 / 6 / 11; }
.a-hands { grid-area: 6 / 1 / 8 / 3; } .a-feet { grid-area: 6 / 9 / 8 / 11; } .a-rring { grid-area: 7 / 4 / 8 / 5; } .a-lring { grid-area: 7 / 7 / 8 / 8; }
.a-tr { grid-area: 1 / 1 / 2 / 3; } .a-tl { grid-area: 1 / 9 / 2 / 11; }
.doll2 .w2, .doll2.swap .w1 { display: none; } .doll2.swap .w2 { display: flex; }
.wtabs { display: flex; margin: 0 2px; gap: 2px; }
.wtabs button { all: unset; flex: 1; cursor: pointer; text-align: center; font: 700 12px/1 var(--display); padding-top: 4px; color: var(--dim); background: #0b0907; border: 1px solid #2c241b; border-bottom: 0; }
.wtabs button.on { color: #9fd0ff; background: #12202c; border-color: #2c4a63; }
.gs img, .ch img { max-width: 88%; max-height: 88%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
.eth img { opacity: .6; }
.socks { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 0 3px; pointer-events: none; }
.socks i { width: 9px; height: 9px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1px #6a5a44; }
.socks i.on { background: radial-gradient(circle at 40% 35%, #d9cdb4, #6d5f48); }
.qty { position: absolute; right: 3px; bottom: 1px; font: 700 11px var(--display); color: var(--white); text-shadow: 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.inv { display: grid; grid-template-columns: repeat(var(--w), 1fr); grid-template-rows: repeat(var(--h), 1fr); aspect-ratio: var(--w) / var(--h);
  border: 1px solid #4a3c2a; outline: 1px solid #000; border-radius: 2px; background-color: #050403;
  background-image: linear-gradient(to right, #221c15 1px, transparent 1px), linear-gradient(to bottom, #221c15 1px, transparent 1px);
  background-size: calc(100% / var(--w)) calc(100% / var(--h)); }
.gpanel .inv { width: calc(var(--c) * var(--w)); }
/* quality: tinted cells like the game's highlighted items */
.gs.q-unique, .ch.q-unique, .gs.q-runeword, .ch.q-runeword { background: radial-gradient(circle at 50% 45%, rgba(199,183,144,.30), rgba(199,183,144,.07)); border-color: rgba(199,183,144,.55); }
.gs.q-set, .ch.q-set { background: radial-gradient(circle at 50% 45%, rgba(0,196,0,.24), rgba(0,196,0,.05)); border-color: rgba(0,196,0,.45); }
.gs.q-rare, .ch.q-rare { background: radial-gradient(circle at 50% 45%, rgba(255,255,100,.2), rgba(255,255,100,.04)); border-color: rgba(255,255,100,.38); }
.gs.q-crafted, .ch.q-crafted { background: radial-gradient(circle at 50% 45%, rgba(255,168,0,.14), rgba(255,168,0,.02)); border-color: rgba(255,168,0,.4); }
.gs.q-magic { background: radial-gradient(circle at 50% 45%, rgba(99,119,239,.26), rgba(99,119,239,.05)); border-color: rgba(99,119,239,.5); }
.gs:not(.vacant):hover, .gs:focus-visible, .gs.sel { border-color: var(--text); box-shadow: inset 0 0 0 1px #000, 0 0 10px rgba(199,183,144,.35); }
.gpanel.hl-is-charm .ch:not(.is-charm) { opacity: .25; filter: grayscale(1); }
.gpanel.hl-is-charm .ch.is-charm { box-shadow: 0 0 0 1px var(--unique), 0 0 8px rgba(199,183,144,.5); z-index: 1; }
.gearside { min-width: 0; } .gearside[hidden] { display: none; }
.gearside .ctot ul { columns: 2 230px; column-gap: 18px; } .gearside .ctot li { break-inside: avoid; }
.hl { display: inline-block; margin-top: 10px; border: 1px solid #4a3c2a; padding: 5px 14px; font-size: 12px; }
.hl[aria-pressed="true"] { background: #2a2219; color: var(--unique); border-color: #8a6d3e; }
.ctot-h small { color: var(--text); font-size: 13px; margin-left: 4px; }
.ctip .w { color: var(--white); } .ctip .p2 { color: var(--base); margin-top: 4px; }
.ctip .sk2 { margin-top: 8px; padding-top: 8px; border-top: 1px solid #2c241b; display: grid; gap: 8px 12px; text-align: left; font-size: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ctip.wide { width: min(620px, calc(100vw - 16px)); max-width: none; }
.ctip.wide > ul { columns: 2 220px; column-gap: 16px; } .ctip.wide > ul li { break-inside: avoid; }   /* several sockets: side by side so the card stays on screen */
.ctip .sx { display: flex; gap: 8px; align-items: flex-start; } .ctip .sx img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.ctip .sx b { display: block; font: 700 13px var(--display); color: var(--white); } .ctip .sx span { display: block; color: var(--magic); line-height: 1.3; }
.ctip .sx.q-unique b { color: var(--unique); } .ctip .sx.q-magic b { color: var(--magic); } .ctip .sx.q-rare b { color: var(--rare); } .ctip .sx.q-set b { color: var(--set); }
.ctip.q-skill { max-width: min(320px, calc(100vw - 16px)); } .ctip.q-skill .nm { color: var(--unique); }
.ctip .sd { color: var(--text); margin: 4px 0 8px; } .ctip.q-skill .bs { margin-bottom: 2px; }
/* Paragon: level, points and progress to the next level */
.pgn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 10px; }
.pgn-l, .pgn-bar { background: linear-gradient(180deg, #17130f, #0b0907); border: 1px solid #4a3c2a; border-radius: 4px; padding: 10px 12px; }
.pgn-l span, .pgn-t { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.pgn-l b { display: block; font: 700 22px var(--display); color: var(--unique); }
.pgn-t { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .pgn-t span:last-child { color: var(--base); text-transform: none; letter-spacing: 0; }
.pgn-track { height: 10px; background: #050403; border: 1px solid #3a2f22; border-radius: 2px; overflow: hidden; }
.pgn-track i { display: block; height: 100%; background: linear-gradient(90deg, #6b4e1e, #c79a45); box-shadow: 0 0 8px rgba(199,154,69,.5); }
@media (max-width: 760px) { .pgn { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pgn-bar { grid-column: 1 / -1; } }
.ctip .ql { color: var(--dim); font-size: 12px; margin-top: 6px; }
.ctip.q-rare .nm { color: var(--rare); } .ctip.q-crafted .nm { color: var(--crafted); } .ctip.q-runeword .nm { color: var(--unique); } .ctip.q-superior .nm { color: var(--white); }
.ch { all: unset; position: relative; box-sizing: border-box; display: flex; align-items: center; justify-content: center; margin: 1px; cursor: pointer; border-radius: 2px;
  background: rgba(99,119,239,.10); border: 1px solid rgba(99,119,239,.35); }
.ch.q-normal, .ch.q-superior { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); }
.ch:hover, .ch:focus-visible, .ch.sel { border-color: var(--text); background-color: rgba(255,255,255,.10); }
.ch-x { width: 50%; height: 50%; border-radius: 3px; background: currentColor; opacity: .3; color: var(--magic); }
.ch.q-unique .ch-x { color: var(--unique); }
.ctot { background: #060606; border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 16px; text-align: center; font-size: 14px; line-height: 1.45; }
.ctot-h { font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--unique); margin-bottom: 6px; }
.ctot ul, .ctip ul { list-style: none; margin: 0; padding: 0; }
.ctot li, .ctip li { color: var(--magic); }
.ctip { position: fixed; z-index: 50; max-width: min(340px, calc(100vw - 16px)); background: rgba(0,0,0,.92); border: 1px solid #3a332c; padding: 10px 14px;
  text-align: center; font-size: 14px; line-height: 1.4; pointer-events: none; }
.ctip .nm { font: 700 15px var(--display); color: var(--magic); }
.ctip.q-unique .nm { color: var(--unique); } .ctip.q-set .nm { color: var(--set); } .ctip.q-normal .nm { color: var(--white); }
.ctip .bs { color: var(--base); font-size: 13px; margin-bottom: 4px; }
@media (max-width: 760px) {
  .trees { grid-template-columns: 1fr; }
  .tree { max-width: 360px; width: 100%; margin: 0 auto; }
  .gwrap { grid-template-columns: 1fr; }
  .gpanel { justify-self: center; padding: 10px; }
}

/* ---- prose (guide, loot, patch notes) */
.prose { max-width: 50em; font-size: 17px; line-height: 1.75; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 22px; margin: 1.8em 0 .6em; color: var(--unique); }
.prose h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose code { font-size: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--muted); }
/* guide: grouped sidebar, phone topic picker, "on this page", prev / next */
.guide-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.gside { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gs-g { margin-bottom: 14px; }
.gs-g .mh { padding-left: 12px; }
.gs-g a { display: block; padding: 5px 12px; color: var(--muted); font-size: 15px; border-left: 2px solid var(--line); line-height: 1.35; }
.gs-g a:hover { color: var(--text); }
.gs-g a.on { color: var(--text); border-left-color: var(--accent); background: var(--panel); }
.gpick { display: none; margin: 0 0 18px; padding: 0; }
.gpick summary { padding: 13px 16px; font-weight: 600; }
.gpick summary small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.gpick .gs-g { padding: 0 8px; }
.gmain { min-width: 0; max-width: 820px; }
.onpage { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -6px 0 24px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.onpage .mh { padding: 0 6px 0 0; }
.onpage a { border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 12px; font-size: 14px; color: var(--muted); }
.onpage a:hover, .onpage a.on { border-color: var(--unique); color: var(--unique); }
.prose.guide h2 { font-size: 21px; color: var(--unique); margin: 1.7em 0 .55em; padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.prose.guide ul { list-style: none; padding: 0; }
.prose.guide ul li { position: relative; padding-left: 20px; margin: .45em 0; }
.prose.guide ul li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.prose.guide li strong { color: var(--unique); font-weight: 600; }
.prose.guide ol.num-list { padding-left: 1.4em; } .prose.guide ol.num-list li { margin: .5em 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.pager .pg { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-weight: 600; }
.pager .pg:hover { border-color: var(--unique); color: var(--unique); }
.pager .pg small { color: var(--muted); font-weight: 400; font-size: 13px; }
.pager .pg.next { text-align: right; }
.small { font-size: 13px; }
.startcard { display: grid; gap: 4px; padding: 22px 24px; margin: 4px 0 8px; border: 1px solid #5a2a1d; border-radius: 14px;
  background: radial-gradient(ellipse at 0% 0%, rgba(200,60,34,.18), transparent 60%), var(--panel); max-width: 820px; }
.startcard b { font: 700 24px var(--display); color: var(--unique); }
.startcard span { color: var(--muted); }
.startcard .go { color: var(--accent-2); font-weight: 600; margin-top: 4px; }
.startcard:hover { border-color: var(--accent); }
.ggroup h2 { font-size: 20px; margin: 32px 0 12px; }
.grid.tight { margin-top: 0; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card .cico { float: right; width: 40px; height: 40px; object-fit: contain; margin: -4px -4px 0 8px; }
.card.big { grid-column: span 2; background: linear-gradient(135deg, rgba(200,60,34,.12), transparent 60%), var(--panel); border-color: var(--line-2); }
.card.big h3 { font-size: 20px; }
/* home: jump-to row under the stats strip */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.quick a { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.quick a:hover { border-color: var(--unique); }
.quick b { display: block; font-family: var(--display); color: var(--unique); font-size: 17px; margin-bottom: 2px; }
.quick span { color: var(--muted); font-size: 14px; } .quick em { font-style: normal; color: var(--ok); }
/* league: playing now */
.live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.live-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; }
.live-meta .dot { align-self: center; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.live-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.live-card:hover { border-color: var(--unique); }
.lc-top { display: flex; align-items: center; gap: 8px; }
.lc-top b { font: 700 18px var(--display); min-width: 0; overflow-wrap: anywhere; }
.lc-top .chip { margin-left: 0; }
.lc-lvl { margin-left: auto; color: var(--unique); font-weight: 600; white-space: nowrap; }
.lc-lvl small { color: var(--ok); font-weight: 400; }
.lc-sub { color: var(--muted); font-size: 14px; }
.lc-where { margin: 8px 0 12px; }
.lc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lc-stats span { background: var(--panel-2); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--muted); }
.lc-stats b { display: block; font-size: 15px; color: var(--text); }
.lc-note { font-size: 12px; color: var(--dim); margin-top: 8px; }
.entry { border-bottom: 1px solid var(--line); padding: 26px 0; }
.entry .date { color: var(--dim); font-size: 14px; }
.entry h2 { margin: 4px 0 10px; font-size: 22px; }

/* ---- footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 52px; color: var(--muted); font-size: 14px; }
.fcols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; align-items: start; }
.fcols p { margin: 10px 0 14px; }
.fcols .mh { padding: 0 0 8px; }
.fcols div > a:not(.brand):not(.btn) { display: block; padding: 3px 0; }
.fcols a:not(.btn):hover { color: var(--text); }
.foot p { margin: 14px 0 0; max-width: 60em; }

/* ---- phones */
@media (max-width: 900px) {
  /* phones and small tablets: the menu is a full-height drawer with the same groups, each folding open on its arrow
     (no backdrop blur here: it would make the header the drawer's containing block and squash it to the header) */
  .top { backdrop-filter: none; background: var(--bg); }
  .nav { display: none; position: fixed; left: 0; right: 0; top: 62px; bottom: 0; flex-direction: column; align-items: stretch; background: var(--bg);
    padding: 6px 16px 60px; overflow-y: auto; overscroll-behavior: contain; gap: 0; }
  .nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .dd { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .dd-t, .nl { flex: 1; font-size: 18px; padding: 14px 4px; color: var(--text); }
  .nl { border-bottom: 1px solid var(--line); flex: none; align-self: stretch; }
  .nl.dl-m { display: block; margin-top: 16px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; text-align: center; font-weight: 600; }
  .dd-b { padding: 14px 10px; color: var(--muted); }
  .dd-b svg { width: 16px; height: 16px; }
  .dd[data-sec="on"] .dd-t, .nl[data-sec="on"] { box-shadow: none; color: var(--unique); }
  .menu, .menu.wide { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-radius: 0; background: none; padding: 0 0 12px;
    grid-template-columns: 1fr 1fr; }
  .menu .mcol a { padding: 8px 10px; }
  .menu .mcol a small { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .top .btn.dl { display: none; }
  .search { max-width: none; }
  .search kbd { display: none; }
  .split, .item-page, .guide-grid, .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .gside { display: none; }
  .gpick { display: block; }
  .quick { grid-template-columns: 1fr 1fr; }
  .fcols { grid-template-columns: 1fr 1fr 1fr; }
  .fcols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 10px; }
  .brand span { display: none; }
  .hero { padding: 64px 0 64px; }
  .hero p.pitch { font-size: 17px; }
  .strip { grid-template-columns: repeat(2, 1fr); margin-top: -28px; }
  .strip a:nth-child(2) { border-right: 0; }
  .strip a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  section.s { padding: 48px 0; }
  .s h2, .page h1 { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .count { width: 100%; margin: 0; }
  .card.big { grid-column: auto; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .menu, .menu.wide { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pager .pg.next { text-align: left; }
  .quick a { padding: 12px 14px; }
  .quick span { font-size: 13px; }
}
.results .nm.q-unique, .results .nm.q-rw { color: var(--unique); } .results .nm.q-set { color: var(--set); } .results .nm.q-x { color: var(--text); }

/* ---- the league showcase on the home page: the mod's headline feature */
section.s.jewel { position: relative; background: radial-gradient(ellipse at 50% 0%, rgba(200,60,34,.14), transparent 60%), #100c0b; border-top: 1px solid #3a2219; border-bottom: 1px solid #3a2219; padding: 84px 0; }
.jewel h2.big { font-size: 40px; max-width: 18em; margin-bottom: 12px; }
.jewel .lead { font-size: 18px; color: #d2c7b5; max-width: 44em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.pillar { background: rgba(20,19,19,.9); border: 1px solid var(--line-2); border-top: 2px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius); padding: 22px; }
.pillar h3 { font-size: 19px; color: var(--unique); margin: 8px 0 8px; }
.pillar p { margin: 0; color: var(--muted); }
ol.flow { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: f; }
ol.flow li { counter-increment: f; position: relative; padding: 18px 16px 0 0; }
ol.flow li::before { content: counter(f); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 15px var(--display); margin-bottom: 10px; position: relative; z-index: 1; }
ol.flow li::after { content: ""; position: absolute; top: 35px; left: 34px; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--line-2)); }
ol.flow li:last-child::after { display: none; }
ol.flow b { display: block; font-family: var(--display); color: var(--text); font-size: 16px; }
ol.flow span { color: var(--muted); font-size: 14px; }
.league-live { margin-top: 40px; background: rgba(13,13,14,.7); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; }
.lstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.lstats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.lstats b { display: block; font: 700 30px var(--display); color: var(--unique); }
.lstats span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  ol.flow { grid-template-columns: 1fr; gap: 14px; }
  ol.flow li { padding: 0 0 0 50px; min-height: 34px; }
  ol.flow li::before { position: absolute; left: 0; top: 0; margin: 0; }
  ol.flow li::after { display: none; }
  .jewel h2.big { font-size: 30px; }
  section.s.jewel { padding: 60px 0; }
}
@media (max-width: 640px) { .lstats { grid-template-columns: 1fr 1fr 1fr; } .lstats b { font-size: 22px; } .lstats div { padding: 10px; } }

/* ---- home: the feature showcase (site/index.html) */
.shot { margin: 0; background: #0a0909; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.shots2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; align-items: start; }
.shots2.two { grid-template-columns: repeat(2, 1fr); }
.feat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-nav a { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 15px; }
.feat-nav a:hover { border-color: var(--unique); color: var(--unique); }
section.s.adds { padding-bottom: 30px; }
.feature[id], .card[id], section[id] { scroll-margin-top: 80px; }
@media (max-width: 900px) { .shots2, .shots2.two { grid-template-columns: 1fr; } }
