/* wikiVI. Clean and minimal, in the colours of the GTA VI key art: dusk indigo, lavender and soft pink.
   Outfit throughout (Barlow Condensed for small labels). */

:root {
  --bg: #17143a;
  --panel: #1f1b4a;
  --panel-2: #272259;
  --line: #3b3578;
  --text: #f6f3ff;
  --muted: #b5aedb;
  --accent: #ffb3c8;
  --accent-ink: #2a1638;
  --sky: #5c529a;
  --lavender: #906eb5;
  --sunset: linear-gradient(100deg, #ffb3c8 0%, #dd93c3 50%, #a98ee6 100%);
  --label: "Barlow Condensed", Outfit, sans-serif;
  --confirmed: #7fe3b4;
  --leak: #ffd08a;
  --rumor: #b5aedb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Outfit, system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; }
button { font: inherit; }
img { max-width: 100%; }

/* Top bar */
.gbar { background: rgba(23, 20, 58, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.gbar-in { max-width: 1320px; margin: 0 auto; height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 22px; }
/* wikiVI wordmark: heavy, "VI" in the sunset gradient */
.gbar-brand { font: 800 19px/1 Outfit, sans-serif; color: var(--text); letter-spacing: -0.03em; }
.gbar-brand em, .ch-word em, .foot-brand em { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.gbar-links { display: flex; gap: 18px; font-size: 13px; font-weight: 500; }
.gbar-links a { color: var(--muted); }
.gbar-links a:hover { color: var(--text); text-decoration: none; }
.soon-link { position: relative; color: #7b74b3; cursor: default; outline: none; }
/* Small "Coming soon" label that fades and slides in under the link */
.soon-tip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); padding: 5px 9px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 50; }
.soon-tip::before { content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; background: var(--panel-2); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.soon-link:hover .soon-tip, .soon-link:focus .soon-tip { opacity: 1; transform: translate(-50%, 0); }
.soon-link:hover, .soon-link:focus { color: var(--muted); }
.gbar-search { margin-left: auto; }
/* X logo button, sits just left of search (and takes over pushing the right-hand group across) */
.gbar-x { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); transition: border-color .15s, color .15s, background .15s; }
.gbar-x:hover { border-color: var(--accent); color: var(--accent); background: var(--panel-2); text-decoration: none; }
.gbar-x:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.gbar-x + .gbar-search { margin-left: -10px; }
/* $wikiVI coin button, just left of the X button (it takes over pushing the right-hand group across) */
.gbar-coin { margin-left: auto; display: inline-flex; align-items: center; height: 30px; padding: 0 11px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 800 14px/1 Outfit, sans-serif; letter-spacing: -0.02em; white-space: nowrap; transition: border-color .15s, background .15s; }
.gbar-coin em { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.gbar-coin:hover { border-color: var(--accent); background: var(--panel-2); text-decoration: none; }
.gbar-coin:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.gbar-coin + .gbar-x { margin-left: -14px; }
.gbar-search input { width: 240px; height: 30px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); color: var(--text); padding: 0 10px; font: 14px Outfit, sans-serif; }
.gbar-search input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

/* Wiki header */
.ch { position: relative; background: var(--sky); border-bottom: 1px solid var(--line); }
/* Banner: the key art's dusk sky, city on the left and the bay on the right */
.ch-art { position: absolute; inset: 0; overflow: hidden; background:
  linear-gradient(90deg, rgba(23, 20, 58, .78) 0%, rgba(23, 20, 58, .35) 38%, rgba(23, 20, 58, 0) 70%),
  url(/static/brand/bay.webp) right 58% / auto 230% no-repeat,
  url(/static/brand/city.webp) left bottom / auto 150% no-repeat,
  linear-gradient(180deg, #5c529a 0%, #7964ab 40%, #a877bb 72%, #dd93c3 100%); }
.ch-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, rgba(23, 20, 58, 0), rgba(23, 20, 58, .55)); }
.sun, .palms { display: none; }
.ch-in { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 22px 16px 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "mark meta" "nav nav"; align-items: center; gap: 10px 24px; }
.ch-mark { grid-area: mark; display: flex; flex-direction: column; text-decoration: none !important; }
.ch-word { font: 800 44px/1 Outfit, sans-serif; color: #fff; letter-spacing: -0.045em; text-shadow: 0 2px 18px rgba(23, 20, 58, .45); }
.ch-sub { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: #fff; margin-top: 4px; }
.ch-meta { grid-area: meta; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.chip-count, .ch-x { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(23, 20, 58, .6); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.chip-count b { color: #fff; }
/* Live countdown in the banner */
.countdown { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(23, 20, 58, .7); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(4px); }
.cd-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-right: 4px; }
.cd-u { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.cd-u b { font: 800 26px/1 Outfit, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.cd-u small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-top: 3px; }
@media (max-width: 720px) {
  .countdown { gap: 4px; padding: 6px 8px; }
  .cd-label { display: none; }
  .cd-u { min-width: 40px; }
  .cd-u b { font-size: 20px; }
}
.cn { grid-area: nav; margin-top: 10px; }
.cn > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.cn-item { position: relative; }
.cn-top { background: none; border: 0; color: #fff; font-weight: 700; font-size: 14px; padding: 10px 14px 12px; cursor: pointer; border-bottom: 2px solid transparent; }
.cn-item:first-child .cn-top { padding-left: 0; }
.cn-top .caret { font-size: 10px; margin-left: 5px; color: var(--muted); }
.cn-item:hover .cn-top, .cn-item:focus-within .cn-top { border-bottom-color: var(--accent); }
.cn-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 4px 0; background: var(--panel-2); border: 1px solid var(--line); z-index: 40; }
.cn-item:hover .cn-drop, .cn-item:focus-within .cn-drop { display: block; }
.cn-drop a { display: block; padding: 7px 14px; color: var(--text); font-size: 14px; }
.cn-drop a:hover { background: var(--line); text-decoration: none; }

/* Shell */
.shell { max-width: 1320px; margin: 0 auto; padding: 20px 16px 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.shell.no-rail { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
.shell.wide { max-width: 1320px; }
.content { background: var(--panel); border: 1px solid var(--line); padding: 22px 28px 30px; min-width: 0; }

/* Page header */
.ph { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.ph-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ph-title { font: 700 clamp(26px, 4vw, 36px)/1.2 Outfit, sans-serif; margin: 0; letter-spacing: -0.01em; word-break: break-word; }
.ph-actions { display: flex; gap: 8px; }
.ph-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.ph-btn:hover { border-color: var(--muted); }
.ph-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ph-btn.primary:hover { filter: brightness(1.08); }
.ph-btn:disabled { cursor: not-allowed; opacity: .9; }

/* Status: small coloured label, no pill */
.pill { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .06em; padding: 3px 5px; border: 1px solid currentColor; border-radius: 2px; vertical-align: middle; white-space: nowrap; background: transparent; }
.s-confirmed, .t-confirmed { color: var(--confirmed); }
.s-leak, .t-leak { color: var(--leak); }
.s-rumor, .t-rumor { color: var(--rumor); }

/* Notices (wiki message boxes) */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 0 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.notice p { margin: 0; color: var(--muted); }
.n-ico { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1px solid currentColor; color: var(--muted); }
.n-leak .n-ico { color: var(--leak); } .n-rumor .n-ico { color: var(--rumor); } .n-upcoming .n-ico { color: var(--accent); }

/* Article */
.article { overflow: hidden; }
.lead { font-size: 17px; margin: 14px 0 16px; }
.sec { font: 700 24px/1.2 Outfit, sans-serif; margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.facts { margin: 0 0 8px; padding-left: 20px; }
.facts li { margin: 7px 0; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.ref { font-size: 11px; margin-left: 2px; }
.refs { font-size: 14px; color: var(--muted); padding-left: 24px; }
.refs li { margin: 4px 0; }
.refs li:target { background: var(--panel-2); }
.empty { color: var(--muted); padding: 20px; border: 1px dashed var(--line); text-align: center; }
.narrow { max-width: 420px; }

/* Infobox */
.ib { float: right; width: 280px; margin: 0 0 16px 22px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.ib-title { margin: 0; padding: 10px 12px; text-align: center; font: 700 18px/1.2 Outfit, sans-serif; border-bottom: 2px solid var(--accent); }
.ib-img { height: 150px; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--bg); }
.ib-img span { font: 700 52px/1 Outfit, sans-serif; color: var(--line); }
.ib-img small { font-size: 12px; color: var(--muted); }
.ib-h { margin: 0; padding: 5px 12px; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--line); color: var(--text); }
.ib dl { margin: 0; }
.ib dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); }
.ib dt { font-weight: 700; color: var(--muted); }
.ib dd { margin: 0; }

/* Pictures */
.ib-pic { margin: 0; background: var(--bg); }
.ib-pic img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.ib-pic figcaption, .pics figcaption { font-size: 12px; color: var(--muted); padding: 5px 10px; text-align: center; background: var(--panel-2); }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pics figure { margin: 0; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; }
.pics img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pics a:hover img { opacity: .85; }
.pics figcaption { text-align: left; flex: 1; }
.has-img { background: var(--bg); overflow: hidden; }
.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Contents */
.toc { display: inline-block; min-width: 220px; margin: 4px 0 6px; padding: 10px 16px 10px 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.toc-h { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 22px; }

/* Launch-a-coin box */
.coin-box { clear: both; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 6px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); }
.coin-box p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Category box */
.catbox { clear: both; margin-top: 22px; padding: 8px 12px; border: 1px solid var(--line); background: var(--panel-2); font-size: 14px; }
.catbox span { font-weight: 700; margin-right: 4px; }
.catbox a { margin-right: 12px; }

/* Main page */
.mp-welcome { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.mp-kick { margin: 0; font-size: 13px; color: var(--muted); }
.mp-title { margin: 2px 0 8px; font: 700 28px/1.2 Outfit, sans-serif; }
.mp-welcome p { margin: 0 0 8px; max-width: 64ch; }
.mp-stats { color: var(--muted); font-size: 14px; }
.mp-stats b { color: var(--text); }
.mp-count { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); background: var(--bg); }
.mp-count b { font: 800 56px/1 Outfit, sans-serif; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; }
.mp-count span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.portals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.portal { display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.portal:hover { border-color: var(--muted); }
.portal.dim { opacity: .45; }
.portal-pic { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.portal-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-pic span { font: 700 36px/1 Outfit, sans-serif; color: var(--line); }
.portal-name { font-weight: 700; font-size: 14px; line-height: 1.25; padding: 8px 10px 0; }
.portal-n { font-size: 12px; color: var(--muted); padding: 0 10px 8px; }
.mp-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 22px; }
.mp-box { background: var(--panel-2); border: 1px solid var(--line); padding: 0 14px 12px; min-width: 0; }
.mp-box-h { margin: 0 -14px 6px; padding: 9px 14px; font: 700 14px/1.2 Outfit, sans-serif; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--accent); }
.find-list, .top-list, .rc, .results { list-style: none; margin: 0; padding: 0; }
.find-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.find-list li:last-child { border-bottom: 0; }
.find-list .pill { margin-top: 4px; min-width: 78px; text-align: center; }
.find-list p, .rc p { margin: 2px 0; font-size: 15px; }
.fl-page { font-weight: 700; color: var(--text); }
.fl-meta { font-size: 12px; color: var(--muted); }
.top-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.top-list li:last-child { border-bottom: 0; }
.top-list a { display: flex; gap: 10px; align-items: center; color: var(--text); min-width: 0; }
.top-list a span:last-child { display: flex; flex-direction: column; min-width: 0; }
.top-list small { color: var(--muted); font-size: 12px; }
.mini-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; font: 700 15px/1 Outfit, sans-serif; color: var(--muted); background: var(--bg); border: 1px solid var(--line); }
.mini-ico.has-img { border: 0; }

/* Category page */
.cat-intro { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 22px; }
.g-card { display: flex; flex-direction: column; gap: 3px; padding-bottom: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.g-card:hover { border-color: var(--muted); }
.g-img { height: 96px; display: grid; place-items: center; font: 700 30px/1 Outfit, sans-serif; color: var(--line); background: var(--bg); }
.g-card b, .g-card small, .g-card .pill { margin: 0 8px; }
.g-card b { font-size: 14px; line-height: 1.3; margin-top: 4px; }
.g-card small { color: var(--muted); font-size: 12px; }
.g-card .pill { align-self: flex-start; }
.cat-cols { columns: 3 220px; column-gap: 28px; }
.cat-group { break-inside: avoid; margin-bottom: 14px; }
.cat-group h3 { margin: 0 0 4px; font: 700 16px/1.2 Outfit, sans-serif; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.cat-group ul { list-style: none; margin: 0; padding: 0; }
.cat-group li { padding: 2px 0; font-size: 15px; }

/* Search, finds */
.big-search { display: flex; gap: 8px; margin-bottom: 8px; }
.big-search input { flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); color: var(--text); padding: 0 12px; font: inherit; }
.results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.r-title { font-size: 18px; font-weight: 700; margin-right: 8px; }
.results p { margin: 4px 0; }
.r-meta { font-size: 13px; color: var(--muted); }
.tabs { display: flex; margin: 4px 0 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { padding: 8px 14px; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.tab:first-child { padding-left: 0; }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
.rc li { display: grid; grid-template-columns: 70px 86px 1fr; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rc time { font-size: 13px; color: var(--muted); padding-top: 2px; }
.rc .pill { margin-top: 3px; justify-self: start; }
.rc-src { font-size: 12px; }
.pager { display: flex; justify-content: space-between; margin-top: 16px; font-weight: 700; }

/* Right rail */
.rail { display: grid; gap: 16px; min-width: 0; }
.rail-box { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; }
.rail-h { margin: -12px -14px 8px; padding: 9px 14px; font: 700 13px/1.2 Outfit, sans-serif; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.4; }
.rail-list li:last-child { border-bottom: 0; }
.rail-list a { font-weight: 700; margin-right: 6px; }
.rail-list .pill { font-size: 9px; padding: 2px 4px; }
/* Keep each find to two lines so the box stays short */
.rail-list p { margin: 2px 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-list time { font-size: 11px; color: var(--muted); }
.rail-more { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; }
.rail-pop { list-style: none; margin: 0; padding: 0; }
.rail-pop li { padding: 5px 0; }
.rail-pop a { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; }
.promo { border-top: 2px solid var(--accent); }
.promo p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.promo-big { font: 800 26px/1.05 Outfit, sans-serif !important; color: var(--text) !important; letter-spacing: -0.02em; }
.promo-btn { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* Admin */
.note { padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); word-break: break-word; }
.err { color: #ff6b6b; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.panel { padding: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.panel h2 { margin: 0 0 6px; font-size: 17px; }
.panel .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.panel .row input { flex: 1; min-width: 160px; height: 32px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 2px; padding: 0 10px; font: inherit; }
.small { font-size: 13px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.count-badge { font: 16px Outfit, sans-serif; color: var(--muted); }
.queue { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.q { padding: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.q-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 14px; margin-bottom: 8px; }
.q-head a:first-child { font-weight: 700; color: var(--text); }
.q-head time { color: var(--muted); font-size: 12px; }
.cat { font-size: 12px; color: var(--muted); }
.new { font-size: 12px; font-weight: 700; color: var(--leak); }
.q textarea, .form input, .form select, .form textarea, .q select { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 2px; padding: 8px 10px; font: inherit; }
.q-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.q-actions select { width: auto; }
.form { display: grid; gap: 12px; max-width: 640px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }

/* Footer */
.foot { margin-top: 30px; background: #120f30; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 22px 16px 34px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.foot-brand { font: 800 20px/1 Outfit, sans-serif; color: var(--text); letter-spacing: -0.03em; }
.foot p { margin: 6px 0 0; }

@media (max-width: 1060px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 720px) {
  .gbar-links { display: none; }
  .gbar-search { flex: 1; }
  .gbar-search input { width: 100%; }
  .ch-in { grid-template-columns: 1fr; grid-template-areas: "mark" "meta" "nav"; padding-top: 14px; }
  .ch-meta { justify-content: flex-start; }
  .ch-word { font-size: 38px; }
  .cn-item.open .cn-drop { display: block; }
  .cn-top { padding: 8px 10px 10px; }
  .shell { padding: 12px 0 0; }
  .content { border-left: 0; border-right: 0; padding: 16px; }
  .ib { float: none; width: auto; margin: 0 0 16px; }
  .mp-welcome, .mp-cols, .admin-grid, .foot-in { grid-template-columns: 1fr; }
  .rc li { grid-template-columns: 1fr; gap: 4px; }
  .coin-box { flex-direction: column; align-items: flex-start; }
}

/* Bounties */
.bstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 14px 0 18px; border: 1px solid var(--line); background: var(--panel-2); }
.bstats > div { padding: 10px 12px; border-left: 1px solid var(--line); }
.bstats > div:first-child { border-left: 0; }
.bstats dt { font-size: 12px; color: var(--muted); }
.bstats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.bstats small, .pay small { font-size: 11px; color: var(--muted); font-weight: 500; }
.bcat { margin-bottom: 8px; }
.bcat-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 26px 0 10px; }
.bcat-head .sec { border: 0; margin: 0; padding-bottom: 6px; }
.state-open { font-size: 12px; font-weight: 700; color: var(--confirmed); text-transform: uppercase; letter-spacing: .06em; }
.state-soon { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bcat-blurb { color: var(--muted); margin: 0 0 10px; }
.teased .tiers, .teased .wanted { opacity: .6; }
.tiers { margin: 6px 0 12px; }
.tiers th { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tiers td { vertical-align: top; }
.pay { font-weight: 700; white-space: nowrap; color: var(--text); }
.tiers .pay { color: var(--accent); }
.sub-h { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.wanted { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); }
.wanted li { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel-2); }
.wanted li:first-child { border-top: 0; }
.wanted p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.wanted .pay { color: var(--accent); }
.steps { padding-left: 22px; }
.steps li { margin: 8px 0; }
.leaders { list-style: none; padding: 0; margin: 0; counter-reset: lb; }
.leaders li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); counter-increment: lb; }
.leaders li span:first-child::before { content: counter(lb) ". "; color: var(--muted); }
.connect { padding: 16px; border: 1px solid var(--line); background: var(--panel-2); max-width: 560px; }
.connect p { margin: 0 0 10px; }
.signed { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.inline { display: inline; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 14px; }
.linkish:hover { text-decoration: underline; }
.narrow-form .form { max-width: 640px; }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.form .check input { width: auto; margin-top: 4px; }
.mine { list-style: none; padding: 0; margin: 0; }
.mine li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mine-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mine p { margin: 4px 0 0; }
.state { font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-submitted { color: var(--muted); } .st-accepted, .st-escrowed { color: var(--leak); } .st-paid { color: var(--confirmed); } .st-rejected, .st-duplicate, .st-voided { color: #ff6b6b; }
.q-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.q label, .q-grid label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; }
.q label.full { margin-top: 6px; }
.q input { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 2px; padding: 7px 10px; font: inherit; }
.q-head .pay { color: var(--leak); }
@media (max-width: 720px) {
  .bstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bstats > div { border-left: 0; border-top: 1px solid var(--line); }
  .q-grid { grid-template-columns: 1fr 1fr; }
  .wanted li { flex-direction: column; gap: 4px; }
}

/* "Launch a coin" pop-up launcher. Opens on hover (or tap, via app.js .open). UI only for now:
   the form is disabled and shaded under a "Coming soon" cover. */
.lc { position: relative; }
.lc-btn { background: var(--panel-2); color: var(--muted); }
.lc:hover .lc-btn, .lc.open .lc-btn, .lc:focus-within .lc-btn { border-color: var(--accent); color: var(--text); }
/* padding-top bridges the gap so the pointer can move from the button into the box */
.lc-pop { position: absolute; top: 100%; right: 0; z-index: 40; padding-top: 8px; width: 292px; max-width: calc(100vw - 32px); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.lc.left .lc-pop { right: auto; left: 0; }
.lc:hover .lc-pop, .lc.open .lc-pop, .lc:focus-within .lc-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease, transform .15s ease; }
.lc-card { position: relative; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.lc-form { margin: 0; border: 0; padding: 14px; display: grid; gap: 10px; min-width: 0; filter: grayscale(.25); opacity: .8; }
.lc-head { display: flex; align-items: baseline; justify-content: space-between; }
.lc-head b { font: 800 16px/1 Outfit, sans-serif; letter-spacing: -0.02em; }
.lc-head span { font-size: 11px; color: var(--muted); }
.lc-img { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.lc-img > img, .lc-img > span { width: 42px; height: 42px; flex-shrink: 0; border-radius: 4px; object-fit: cover; }
.lc-img > span { display: grid; place-items: center; background: var(--line); font-weight: 800; color: var(--muted); }
.lc-img b { display: block; font-size: 13px; }
.lc-img small { font-size: 11px; color: var(--muted); }
.lc-f { display: grid; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lc-f input { width: 100%; min-width: 0; height: 32px; padding: 0 10px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: 500 13px Outfit, sans-serif; text-transform: none; letter-spacing: 0; }
.lc-in { position: relative; display: flex; align-items: center; }
.lc-in i { position: absolute; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; }
.lc-in i:first-child { left: 10px; }
.lc-in i:first-child + input { padding-left: 22px; }
.lc-in input + i { right: 10px; }
.lc-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lc-seg span { padding: 7px 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }
.lc-seg span.on { background: var(--line); color: var(--text); }
.lc-go { display: grid; place-items: center; height: 36px; border-radius: 4px; background: var(--sunset); color: #fff; font-weight: 800; font-size: 14px; }
/* The cover */
.lc-soon { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; background: rgba(23, 20, 58, .5); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.lc-soon b { font: 800 24px/1 Outfit, sans-serif; letter-spacing: -0.02em; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 4px; }
.lc-soon span { font-size: 12px; color: var(--muted); }

/* Review fixes */
/* Long unbroken words or links never push the layout sideways. */
body { overflow-wrap: anywhere; }
.rc li > div, .rail-pop a span, .find-list li > div { min-width: 0; }
/* Menus near the right edge open right-aligned (app.js adds .flip). */
.cn-item.flip .cn-drop { left: auto; right: 0; }
/* On touch screens only a tap opens a menu, so a second tap reliably closes it. */
@media (hover: none) {
  .cn-item:hover .cn-drop, .cn-item:focus-within .cn-drop { display: none; }
  .cn-item.open .cn-drop { display: block; }
}
/* Countdown digits appear once the script has switched them to the reader's time zone. */
.countdown:not(.ready) .cd-u b { visibility: hidden; }

/* Search suggestions under the top-bar search box */
.gbar-search { position: relative; }
.sugg { position: absolute; top: calc(100% + 6px); right: 0; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto; z-index: 60;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 36px rgba(0, 0, 0, .55); padding: 4px; }
.sugg[hidden] { display: none; }
.sugg-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--text); text-decoration: none !important; }
.sugg-item:hover, .sugg-item.on { background: var(--line); }
.sugg-pic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 5px; overflow: hidden; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.sugg-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sugg-txt { display: flex; flex-direction: column; min-width: 0; }
.sugg-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-txt small { font-size: 12px; color: var(--muted); }
.sugg-empty { padding: 12px; font-size: 14px; color: var(--muted); }
/* On phones the dropdown spans the screen under the top bar, not just the narrow search box. */
@media (max-width: 720px) {
  .gbar-in { position: relative; }
  .gbar-search { position: static; }
  .sugg { top: calc(100% + 2px); left: 8px; right: 8px; width: auto; }
}
/* Touch screens: a tap leaves a sticky hover/focus behind, so only the tap toggle (.open) opens the launcher. */
@media (hover: none) {
  .lc:hover .lc-pop, .lc:focus-within .lc-pop { opacity: 0; visibility: hidden; transform: translateY(-4px); }
  .lc.open .lc-pop { opacity: 1; visibility: visible; transform: none; }
}
/* Phones: tighter top bar so the $wikiVI and X buttons leave room for search. */
@media (max-width: 720px) {
  .gbar-in { gap: 12px; padding: 0 12px; }
  .gbar-coin { padding: 0 8px; font-size: 13px; }
  .gbar-coin + .gbar-x, .gbar-x + .gbar-search { margin-left: -6px; }
}

/* $wikiVI coin page: two small cards, buybacks and bounty payouts */
.coin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; align-items: start; }
.coin-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.coin-h { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.coin-big { margin: 0; font: 800 34px/1 Outfit, sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.coin-big small { margin-left: 8px; font: 500 13px Outfit, sans-serif; color: var(--muted); letter-spacing: 0; }
.coin-sub { margin: 0; font-size: 13px; color: var(--muted); }
.coin-card .ph-btn { align-self: flex-start; margin-top: 4px; }
/* Wiki revenue → buys the coin */
.flow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.flow span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.flow i { font-style: normal; color: var(--accent); }
.flow .flow-coin { border-color: var(--accent); color: var(--accent); }
/* Monthly buyback bars */
.cb-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 64px; align-items: end; padding-top: 4px; border-bottom: 1px solid var(--line); }
.cb-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.cb-bar { width: 100%; max-width: 28px; background: var(--sunset); border-radius: 3px 3px 0 0; }
.cb-bar.zero { height: 2px !important; background: var(--line); }
.cb-col small { position: absolute; bottom: -18px; font-size: 10px; color: var(--muted); }
.coin-card .cb-chart { margin-bottom: 18px; }
.coin-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.coin-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.coin-list small { color: var(--muted); }
.coin-list li span:last-child { color: var(--muted); }
/* Payouts split by kind of find */
.split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.split.no-pay { opacity: .6; }
.split-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 13px; }
.split-key li { display: flex; align-items: center; gap: 7px; }
.split-key i { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.split-key b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .coin-grid { grid-template-columns: 1fr; }
}
/* Buy buttons and the live Dexscreener chart on /coin */
.coin-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.coin-link { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s; }
.coin-link:hover { border-color: var(--accent); background: var(--panel); text-decoration: none; }
.coin-link svg { flex-shrink: 0; }
.coin-chart { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.coin-chart-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.coin-chart-h a { font-size: 13px; }
.coin-chart iframe { display: block; width: 100%; height: 440px; border: 0; background: #0b0b0f; }
@media (max-width: 720px) { .coin-chart iframe { height: 360px; } }
/* "CA" button: copies the contract address */
.coin-ca { cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
.coin-ca svg { color: var(--accent); }
.coin-ca small { font-weight: 500; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.coin-ca.copied { border-color: var(--confirmed); }
.coin-ca.copied svg, .coin-ca.copied small { color: var(--confirmed); }

/* ---------- Minimal pass (2026-11-12): softer labels, clearer navigation, less chrome ---------- */
/* Status labels: small tinted chips instead of shouty outlined boxes. */
.pill { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border: 0; border-radius: 999px; background: color-mix(in srgb, currentColor 15%, transparent); }
.find-list .pill { min-width: 0; margin-top: 3px; }
.rail-list .pill { font-size: 10.5px; padding: 2px 7px; margin-left: 6px; }
/* Top bar: the section you're in is highlighted. */
.gbar-links a { padding: 13px 0; }
.gbar-links a.on, .gbar-links a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.gbar-coin.on { border-color: var(--accent); }
/* Banner: a little shorter. */
.ch-in { padding-top: 16px; }
.cn-top { padding-top: 8px; padding-bottom: 10px; }
/* Home intro */
.mp-welcome { border-bottom: 0; padding: 2px 0 4px; }
.mp-title { margin: 0 0 10px; font: 800 clamp(28px, 4vw, 38px)/1.1 Outfit, sans-serif; letter-spacing: -0.025em; }
.mp-stats { color: var(--muted); font-size: 14px; }
.mp-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.mp-cta .ph-btn { height: 38px; padding: 0 16px; border-radius: 4px; }
/* Section headings and boxes: lighter rules. */
.sec { font-size: 21px; border-bottom-color: transparent; padding-bottom: 0; margin: 30px 0 12px; }
.mp-box, .rail-box { border-radius: 6px; }
.mp-box-h { border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 15px; }
.rail-h { text-transform: none !important; letter-spacing: 0 !important; }
/* Category tiles: rounded, and letter tiles look intentional when there's no picture. */
.portal { border-radius: 6px; overflow: hidden; transition: border-color .15s, transform .15s; }
.portal:hover { border-color: var(--accent); transform: translateY(-1px); }
.portal-pic span, .g-img:not(.has-img) { width: 100%; height: 100%; display: grid; place-items: center; font: 800 34px/1 Outfit, sans-serif; color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, #5c529a, #906eb5 60%, #dd93c3); }
.g-card { border-radius: 6px; overflow: hidden; }
/* Wiki pages */
.ph-crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.ph-crumbs a { color: var(--muted); }
.ph-crumbs a:hover { color: var(--accent); text-decoration: none; }
.ph-crumbs i { font-style: normal; color: var(--line); }
.slim-note { margin: 0 0 14px; padding: 7px 12px; font-size: 13px; color: var(--muted); background: var(--panel-2); border-left: 2px solid var(--accent); border-radius: 0 4px 4px 0; }
.facts { padding-left: 18px; }
.facts li { margin: 8px 0; }
.facts li::marker { color: var(--accent); }
.catbox { border-radius: 6px; background: transparent; }
.catbox span { font-weight: 500; color: var(--muted); }
.ib { border-radius: 6px; overflow: hidden; }
.gbar-links .soon-link { padding: 13px 0; }
.find-list .fl-page { margin-right: 8px; }
.find-list .pill { vertical-align: 2px; }
/* Bounties: tabs switch sections; the fine print folds away. */
[data-pane][hidden] { display: none !important; }
.tabs[data-tabs] { position: sticky; top: 44px; z-index: 5; background: var(--panel); margin-bottom: 4px; }
.fine { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; }
.fine summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: 14px; color: var(--muted); }
.fine summary:hover { color: var(--text); }
.fine[open] summary { color: var(--text); }
.fine .facts { margin-bottom: 12px; font-size: 14px; }
.steps li { margin: 8px 0; }
/* Phones: compact banner (the top bar already shows the logo) and one-row, swipeable menus and tabs. */
@media (max-width: 720px) {
  .ch-mark { display: none; }
  .ch-in { padding-top: 10px; gap: 6px; grid-template-areas: "meta" "nav"; }
  .ch-meta { justify-content: flex-start; }
  .cn { margin-top: 2px; }
  .tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { flex-shrink: 0; }
  .mp-title { font-size: 28px; }
}
/* Tier names and amounts never break mid-word. */
.tiers td:first-child, .tiers td.pay, .tiers th { white-space: nowrap; overflow-wrap: normal; }
.tiers td:last-child { overflow-wrap: break-word; }
/* Home "Latest finds": one clean row per find (picture, page, the find, time). */
.lf { list-style: none; margin: 0; padding: 0; }
.lf li + li { border-top: 1px solid var(--line); }
.lf a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; margin: 0 -6px; border-radius: 6px; color: var(--text); text-decoration: none !important; transition: background .15s; }
.lf a:hover { background: rgba(255, 255, 255, .04); }
.lf a:hover b { color: var(--accent); }
.lf .mini-ico { width: 38px; height: 38px; border-radius: 6px; overflow: hidden; }
.lf .mini-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-txt { display: flex; flex-direction: column; min-width: 0; }
.lf-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.lf-txt span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lf time { font-size: 12px; color: var(--muted); white-space: nowrap; align-self: start; padding-top: 2px; }
/* Top pages: same hover as Latest finds (soft shaded row, pink title). */
.top-list li { padding: 0; }
.top-list a { flex: 1; padding: 9px 6px; margin: 0 -6px; border-radius: 6px; text-decoration: none !important; transition: background .15s; }
.top-list a:hover { background: rgba(255, 255, 255, .04); }
.top-list a b { transition: color .15s; }
.top-list a:hover b { color: var(--accent); }
.top-list .mini-ico { border-radius: 6px; overflow: hidden; }
/* Sidebar Latest finds: same rows as the home page, a touch tighter for the narrow column. */
.lf-rail a { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 8px 6px; }
.lf-rail .mini-ico { width: 34px; height: 34px; }
.lf-rail .lf-txt b { font-size: 13.5px; }
.lf-rail .lf-txt span { font-size: 13px; }
.lf-rail time { font-size: 11.5px; }
/* Sidebar Popular pages: Top pages rows, sized for the narrow column. */
.rail-top b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-top a { padding: 8px 6px; }
.rail-top a span:last-child { min-width: 0; }
.rail-top .mini-ico { width: 34px; height: 34px; }
.rail-top .mini-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Finds page: day headings, then the same clean rows as the home page (finds shown in full). */
.fd-day + .fd-day { margin-top: 22px; }
.fd-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; font: 600 13px Outfit, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fd-h span { font-weight: 500; letter-spacing: 0; color: var(--line); background: var(--panel-2); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; color: var(--muted); }
.lf-full a { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 11px 8px; margin: 0 -8px; }
.lf-full .mini-ico { width: 44px; height: 44px; }
.lf-full .lf-txt b { font-size: 15px; }
.lf-full .lf-txt span { font-size: 14.5px; -webkit-line-clamp: 4; }
.lf-full .lf-txt span + span { margin-top: 3px; }
.lf-full .lf-txt em { font-style: normal; font-size: 12.5px; color: var(--accent); margin-top: 3px; }
.lf-full a { align-items: start; }

/* ---- Key-art theme: soft corners, pill buttons, quiet lines ---- */
.gbar-brand, .foot-brand { letter-spacing: 0; font-weight: 800; }
.gbar-brand span { font-weight: 500; color: var(--muted); }
.ch-word { letter-spacing: .02em; font-size: 46px; }
.ch-sub, .cd-label, .cd-u small { font-family: var(--label); font-weight: 600; letter-spacing: .22em; }
.ch-sub { font-size: 14px; margin-top: 2px; }
.gbar-coin { font-weight: 700; letter-spacing: 0; border-radius: 999px; padding: 0 14px; }
.gbar-x { border-radius: 999px; }
.gbar-search input { border-radius: 999px; padding: 0 14px; background: rgba(255, 255, 255, .06); font-family: Outfit, sans-serif; }
.countdown { border-radius: 14px; background: rgba(23, 20, 58, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cd-u { border-radius: 8px; }
.cd-u b { font-weight: 700; }
.cn-top { font-weight: 600; }
.cn-drop { border-radius: 10px; padding: 6px; box-shadow: 0 14px 34px rgba(10, 8, 32, .5); }
.cn-drop a { border-radius: 6px; }
.content, .rail-box, .mp-box { border-radius: 14px; }
.ph-btn { height: 34px; padding: 0 16px; border-radius: 999px; background: transparent; font-weight: 600; }
.ph-btn:hover { border-color: var(--accent); }
.ph-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mp-cta .ph-btn { height: 40px; padding: 0 20px; border-radius: 999px; }
.mp-title { letter-spacing: 0; font-weight: 700; }
.ph-title, .sec, .ib-title { font-weight: 600; letter-spacing: 0; }
.promo { border-top: 0; background: linear-gradient(160deg, #3a3380 0%, #6a559f 55%, #b47fb8 100%); border-color: transparent; }
.promo p { color: rgba(255, 255, 255, .85); }
.promo-big { font-weight: 700 !important; letter-spacing: 0; }
.portal, .g-card, .ib, .coin-card, .coin-chart, .lc-card, .fine, .catbox, .toc, .notice, .note, .panel, .q, .bstats, .wanted { border-radius: 12px; }
.bstats, .wanted { overflow: hidden; }
.pics figure { border-radius: 10px; overflow: hidden; }
.ib-title, .mp-box-h { border-bottom: 1px solid var(--line); }
.lc-go { color: var(--accent-ink); border-radius: 999px; }
.coin-link { border-radius: 999px; }
input, select, textarea { font-family: Outfit, sans-serif; }
.big-search input, .panel .row input, .q textarea, .q input, .form input, .form select, .form textarea, .q select, .lc-f input { border-radius: 8px; }
.ch-word em { background: none; color: #fff; padding-right: 0; }
.ch-in { padding-top: 30px; }
.cn { margin-top: 18px; }

/* ---- Sharper pass: one slim header, a home hero, content straight on the page ---- */
.gbar-in { height: 52px; }
.gbar-brand { font-size: 22px; }
.gbar-links { gap: 22px; font-size: 14px; }
.gbar-links a, .gbar-links .soon-link { padding: 16px 0; }
.gbar-search input { width: 260px; height: 34px; }
.gbar-coin, .gbar-x { height: 34px; }
.gbar-x { width: 34px; }

/* Sub-bar: categories on the left, countdown on the right, a strip of the key art behind */
.ch { border-bottom: 0; }
.ch-art { background:
  linear-gradient(90deg, rgba(23, 20, 58, .82) 0%, rgba(23, 20, 58, .45) 45%, rgba(23, 20, 58, .15) 100%),
  url(/static/brand/bay.webp) right 60% / auto 190px no-repeat,
  linear-gradient(180deg, #5c529a 0%, #7964ab 55%, #a877bb 100%); }
.ch-art::after { display: none; }
.ch-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "hero hero" "nav meta"; padding: 0 16px; gap: 0 20px; align-items: center; }
.ch-hero { grid-area: hero; }
.cn { margin-top: 0; }
.cn-top { padding: 13px 14px; font-size: 14px; border-bottom: 0; opacity: .92; }
.cn-item:hover .cn-top, .cn-item:focus-within .cn-top { opacity: 1; color: var(--accent); }
.cn-top .caret { color: inherit; opacity: .6; }
.countdown { gap: 12px; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cd-label { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .75); }
.cd-u { flex-direction: row; align-items: baseline; gap: 3px; min-width: 0; padding: 0; background: none; }
.cd-u b { font-size: 17px; font-weight: 700; }
.cd-u small { margin: 0; font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.chip-count { background: none; border: 0; padding: 0; }

/* Home hero */
.ch-home .ch-art { background:
  linear-gradient(90deg, rgba(23, 20, 58, .86) 0%, rgba(23, 20, 58, .5) 42%, rgba(23, 20, 58, 0) 78%),
  linear-gradient(180deg, rgba(23, 20, 58, 0) 55%, rgba(23, 20, 58, .7) 100%),
  url(/static/brand/bay.webp) right bottom / auto 118% no-repeat,
  url(/static/brand/city.webp) left bottom / auto 78% no-repeat,
  linear-gradient(180deg, #5c529a 0%, #7964ab 40%, #a877bb 72%, #dd93c3 100%); }
.ch-hero { padding: 64px 0 44px; max-width: 640px; }
.hero-kick { margin: 0 0 12px; font: 800 15px/1 Outfit, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hero-title { margin: 0 0 16px; font: 700 clamp(40px, 6vw, 68px)/1 Outfit, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hero-lead { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .9); max-width: 54ch; }
.ch-hero .mp-cta { margin: 0 0 26px !important; }
.ch-hero .ph-btn:not(.primary) { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero-stats { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.hero-stats b { color: #fff; font-weight: 700; margin-right: 4px; }
.ch-home .ch-in > .cn, .ch-home .ch-in > .ch-meta { border-top: 1px solid rgba(255, 255, 255, .16); }
.ch-home .ch-in > .ch-meta { align-self: stretch; align-items: center; }

/* Content sits on the page; only the smaller boxes are cards */
.shell { padding-top: 28px; gap: 32px; }
.content { background: none; border: 0; border-radius: 0; padding: 0 0 30px; }
.ph { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
.ph-title { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.sec { font-size: 22px; margin: 34px 0 14px; }
.content > .sec:first-child { margin-top: 0; }
.rail-box, .mp-box { background: var(--panel); border-color: transparent; }
.mp-box-h, .rail-h { border-bottom: 0 !important; font: 600 13px/1.2 var(--label) !important; letter-spacing: .2em !important; text-transform: uppercase !important; color: var(--muted); padding-top: 14px; padding-bottom: 4px; }
.mp-cols { gap: 20px; margin-top: 34px; }
.lf li + li, .top-list li { border-color: rgba(255, 255, 255, .07); }

/* Small labels share one voice */
.ib-h, .tiers th, .fd-h, .state-open, .state-soon, .toc-h { font-family: var(--label); letter-spacing: .18em; font-weight: 600; }
.ib-h { background: none; color: var(--muted); text-align: left; padding: 12px 14px 2px; font-size: 12px; }
.ib { background: var(--panel); border-color: transparent; }
.ib-title { border-bottom: 0; text-align: left; padding: 14px 14px 10px; font-size: 19px; }
.ib dl > div { padding: 7px 14px; border-top-color: rgba(255, 255, 255, .07); }
.ib dl > div:first-child { border-top: 0; }
.ib dl:last-child { padding-bottom: 8px; }
.ib dt { font-weight: 500; }

/* Category tiles: the picture is the tile, name over it */
.portals { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.portal { position: relative; justify-content: flex-end; aspect-ratio: 4 / 3; border: 0; background: var(--panel-2); border-radius: 14px; }
.portal:hover { transform: none; }
.portal-pic { position: absolute; inset: 0; aspect-ratio: auto; }
.portal-pic img { transition: transform .35s ease; }
.portal:hover .portal-pic img { transform: scale(1.05); }
.portal::after { content: ""; position: absolute; inset: 25% 0 0 0; background: linear-gradient(180deg, rgba(23, 20, 58, 0), rgba(23, 20, 58, .55) 55%, rgba(23, 20, 58, .95)); }
.portal-name, .portal-n { position: relative; z-index: 1; }
.portal-name { font-size: 16px; font-weight: 600; padding: 0 14px; }
.portal-n { padding: 0 14px 12px; color: rgba(255, 255, 255, .75); }
.g-card { border: 0; background: var(--panel); }
.g-card:hover b { color: var(--accent); }

/* Lists of page names read as text, pink on hover */
.cat-group a, .catbox a { color: var(--text); }
.cat-group a:hover, .catbox a:hover { color: var(--accent); text-decoration: none; }
.cat-group h3 { font: 600 13px/1.2 var(--label); letter-spacing: .2em; color: var(--accent); border-bottom: 0; }
.catbox { border: 0; padding: 0; }
.slim-note { border-left: 0; border-radius: 8px; background: var(--panel); }
.toc { background: var(--panel); border-color: transparent; }
.tab { font-weight: 600; }
.coin-card, .wanted li, .bstats, .fine, .notice, .coin-box { background: var(--panel); }
.coin-card, .bstats, .wanted, .fine, .notice, .coin-box { border-color: transparent; }
.wanted li { border-top-color: rgba(255, 255, 255, .07); }
.foot { background: none; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; }

@media (max-width: 720px) {
  .gbar-brand { font-size: 20px; }
  .gbar-search input { width: 100%; }
  .ch-in { grid-template-columns: 1fr; grid-template-areas: "hero" "meta" "nav"; padding: 0 16px; }
  .ch-meta { padding-top: 12px; }
  .ch-home .ch-in > .cn { border-top: 0; }
  .cn-top { padding: 10px 12px 12px 0; }
  .ch-hero { padding: 40px 0 28px; }
  .hero-lead { font-size: 16px; }
  .shell { padding: 20px 16px 0; }
  .content { padding: 0 0 20px; }
  .portals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
