/* AudaCity Wiki. Fandom-style layout, flat and plain: near-black, one accent (AudaCity pink), square corners.
   Rubik throughout. */

:root {
  --bg: #07040b;
  --panel: #120a1a;
  --panel-2: #1a1024;
  --line: #31223f;
  --text: #f4ecf6;
  --muted: #b0a2bd;
  --accent: #ff2e93;
  --accent-ink: #14060f;
  --sunset: linear-gradient(100deg, #ff2e93 0%, #ff4f6d 50%, #ff8a3d 100%);
  --confirmed: #4fd69c;
  --leak: #f0b43c;
  --rumor: #a3a3ad;
}
* { 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 Rubik, 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: #000; 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; }
/* AudaCity wordmark: heavy italic, "City" in the sunset gradient */
.gbar-brand { font: italic 800 19px/1 Rubik, 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: #6b5b78; 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 #2e2140; background: #120a1a; 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; }
.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 Rubik, sans-serif; }
.gbar-search input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

/* Wiki header */
.ch { position: relative; background: #10061a; border-bottom: 1px solid var(--line); }
/* Sunset banner with a Vice City skyline */
.ch-art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #2a0b3d 0%, #5c1453 45%, #b8265e 75%, #ff7a3d 100%); }
.ch-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 4, 11, .92) 0%, rgba(7, 4, 11, .55) 45%, rgba(7, 4, 11, .1) 100%); }
.sun { position: absolute; right: 9%; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: repeating-linear-gradient(180deg, #ffd36e 0 14px, transparent 14px 20px), radial-gradient(circle, #ffd36e, #ff8a3d); -webkit-mask: linear-gradient(180deg, #000 40%, rgba(0,0,0,.4)); mask: linear-gradient(180deg, #000 40%, rgba(0,0,0,.4)); opacity: .9; }
.palms { position: absolute; right: 0; bottom: 0; width: 62%; height: 120px; background:
  linear-gradient(#12061c, #12061c) 4% 100% / 26px 60px no-repeat, linear-gradient(#12061c, #12061c) 9% 100% / 18px 92px no-repeat,
  linear-gradient(#12061c, #12061c) 14% 100% / 34px 74px no-repeat, linear-gradient(#12061c, #12061c) 22% 100% / 22px 112px no-repeat,
  linear-gradient(#12061c, #12061c) 28% 100% / 40px 58px no-repeat, linear-gradient(#12061c, #12061c) 37% 100% / 16px 100px no-repeat,
  linear-gradient(#12061c, #12061c) 43% 100% / 30px 80px no-repeat, linear-gradient(#12061c, #12061c) 55% 100% / 24px 64px no-repeat,
  linear-gradient(#12061c, #12061c) 62% 100% / 36px 104px no-repeat, linear-gradient(#12061c, #12061c) 70% 100% / 20px 70px no-repeat,
  linear-gradient(#12061c, #12061c) 78% 100% / 44px 50px no-repeat, linear-gradient(#12061c, #12061c) 86% 100% / 18px 88px no-repeat,
  linear-gradient(#12061c, #12061c) 93% 100% / 30px 62px no-repeat, linear-gradient(#12061c, #12061c) 100% 100% / 24px 96px no-repeat,
  linear-gradient(#12061c, #12061c) 0 100% / 100% 14px no-repeat; }
.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: italic 800 44px/1 Rubik, sans-serif; color: #fff; letter-spacing: -0.045em; text-shadow: 0 2px 24px rgba(255, 46, 147, .35); }
.ch-sub { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: #ffd3ea; 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(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .15); color: #fff; }
.chip-count b { color: #ffd36e; }
/* Live countdown in the banner */
.countdown { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(7, 4, 11, .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: #ffd3ea; margin-right: 4px; }
.cd-u { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px; border-radius: 6px; background: rgba(0, 0, 0, .45); }
.cd-u b { font: italic 800 26px/1 Rubik, sans-serif; color: #ffd36e; 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 Rubik, 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 Rubik, 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 Rubik, 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 Rubik, 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: #000; }
.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: #000; 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: #000; 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 Rubik, 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: italic 800 56px/1 Rubik, 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 Rubik, 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 Rubik, 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 Rubik, 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 Rubik, 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 Rubik, 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 Rubik, 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: italic 800 26px/1.05 Rubik, 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 Rubik, 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: #000; 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: italic 800 20px/1 Rubik, 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": shaded until the launchpad is live; shows "Coming soon" on hover, focus or tap */
.coin-soon { position: relative; display: inline-grid; place-items: center; background: var(--panel-2); border-color: var(--line); color: var(--muted); cursor: not-allowed; user-select: none; }
.coin-soon:hover { border-color: var(--line); }
.coin-soon > span { grid-area: 1 / 1; transition: opacity .15s; }
.coin-soon .cs-off { opacity: 0; color: var(--accent); font-weight: 700; }
.coin-soon:hover .cs-on, .coin-soon:focus .cs-on, .coin-soon:active .cs-on { opacity: 0; }
.coin-soon:hover .cs-off, .coin-soon:focus .cs-off, .coin-soon:active .cs-off { opacity: 1; }
.coin-soon:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* 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; }
}
