/* Layout: a collector's shelf. Sticky search rail over a wall of blister-card tiles; each tile pairs the figure's window with a round price sticker. */
:root {
  --bg: #E7EBF0; --surface: #FFFFFF; --ink: #111725; --muted: #586274; --faint: #8792A4; --line: #D1D7E0;
  --window: #DCE3EB; --window-ink: #A3AEBF;
  --accent: #F2B705; --on-accent: #1C1400; --accent-ink: #8A6400;
  --up: #0D7A4D; --up-bg: #DCF2E6; --down: #B5352B; --down-bg: #FAE2DF;
  --focus: #2563EB;
  --c0: #2E5FD3; --c1: #B0452C; --c2: #6A4CC0; --c3: #0B8585; --c4: #BF2A63;
  --shadow: 0 1px 2px rgba(17,23,37,.06), 0 8px 22px rgba(17,23,37,.07);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1117; --surface: #161C26; --ink: #E8EDF4; --muted: #9AA6B9; --faint: #6D7A8F; --line: #273142;
    --window: #1D2532; --window-ink: #4A586D;
    --accent: #F2B705; --on-accent: #1C1400; --accent-ink: #F4C63A;
    --up: #45C690; --up-bg: #12301F; --down: #F27B70; --down-bg: #3A1714;
    --focus: #7AA2FF;
    --c0: #7EA2FF; --c1: #F08E72; --c2: #AE97FF; --c3: #49CFCF; --c4: #F27AA8;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1117; --surface: #161C26; --ink: #E8EDF4; --muted: #9AA6B9; --faint: #6D7A8F; --line: #273142;
  --window: #1D2532; --window-ink: #4A586D;
  --accent: #F2B705; --on-accent: #1C1400; --accent-ink: #F4C63A;
  --up: #45C690; --up-bg: #12301F; --down: #F27B70; --down-bg: #3A1714;
  --focus: #7AA2FF;
  --c0: #7EA2FF; --c1: #F08E72; --c2: #AE97FF; --c3: #49CFCF; --c4: #F27AA8;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.45; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* masthead */
.mast { padding-block: 22px 6px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.mast h1 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 46px); line-height: .92; letter-spacing: .01em; text-transform: uppercase; margin: 0; text-wrap: balance; }
.mast h1 span { color: var(--accent-ink); }
.mast p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* sticky search rail */
.rail { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.rail .wrap { padding-block: 12px; display: grid; gap: 10px; }
.searchrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; flex: 1 1 340px; min-width: 0; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 40px 0 42px; font-size: 16px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 18px; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 40; max-height: min(60vh, 420px); overflow: auto; }
.sugg button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.sugg button[aria-selected="true"], .sugg button:hover { background: var(--window); }
.sugg .nm { font-weight: 600; }
.sugg .ct { font-family: var(--mono); font-size: 12px; color: var(--muted); align-self: center; }
.sugg .sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.sugg .free { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; border-radius: 0 0 8px 8px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sel { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; cursor: pointer; max-width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 0 12px; height: 36px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; height: 32px; padding: 0 12px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.chip.active .x { font-size: 16px; line-height: 1; }
.morebtn { border: 1px dashed var(--line); background: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.filters label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.filters input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ink); }

/* summary strip */
.summary { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding-block: 14px 4px; color: var(--muted); }
.summary b { color: var(--ink); font-family: var(--mono); font-weight: 700; }
.summary .count { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink); text-transform: uppercase; letter-spacing: .01em; }
.summary button { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; color: var(--ink); }
.note { color: var(--muted); font-size: 13px; padding-block: 2px 6px; }

/* card wall */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; padding-block: 12px 20px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 12px 12px; display: flex; flex-direction: column; gap: 9px; min-width: 0; transition: box-shadow .15s, transform .15s; }
.card::before { content: ""; position: absolute; top: 8px; left: 50%; width: 34px; height: 7px; margin-left: -17px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.win { position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 9px; background: var(--window); overflow: hidden; display: grid; place-items: center; }
.win .ph { position: absolute; top: 8px; bottom: 8px; left: 50%; transform: translateX(-50%); aspect-ratio: 1 / 1; max-width: calc(100% - 16px); background-repeat: no-repeat; background-color: #fff; border-radius: 6px; }
.win .ph img { width: 100%; height: 100%; object-fit: contain; }
.win .ghost { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--window-ink); text-align: center; line-height: .9; padding: 18px 14px; font-size: clamp(22px, 2.6vw, 34px); text-wrap: balance; overflow-wrap: anywhere; }
.win .plink { position: absolute; left: 8px; bottom: 8px; z-index: 3; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 3px 9px; text-decoration: none; border: 1px solid var(--line); }
.win .plink:hover { color: var(--ink); }
.sticker { position: absolute; top: 8px; right: 8px; z-index: 2; width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-content: center; text-align: center; transform: rotate(-9deg); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.sticker .p { font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1.05; letter-spacing: -.02em; }
.sticker .k { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.sticker.none { background: var(--surface); color: var(--muted); border: 1.5px dashed var(--line); box-shadow: none; }
.sticker.none .k { font-size: 9px; }
.ratio { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 9px; font-family: var(--mono); }
.ratio.up { background: var(--up-bg); color: var(--up); }
.ratio.down { background: var(--down-bg); color: var(--down); }
.ratio.even { background: var(--window); color: var(--muted); }
.name { all: unset; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.02; text-transform: uppercase; letter-spacing: .005em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.name::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.name:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.meta .co { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); }
.meta .co i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.var { font-size: 11px; font-weight: 600; color: var(--accent-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; position: relative; z-index: 2; }
.tag { border: 1px solid var(--line); background: none; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; cursor: pointer; color: var(--ink); }
.tag:hover { border-color: var(--ink); }
.tag.more { color: var(--muted); cursor: default; border-style: dashed; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto; }
.prices div { min-width: 0; }
.prices .k { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; }
.prices .v { font-family: var(--mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prices .v.na { color: var(--faint); font-weight: 400; }
.cond { font-size: 11.5px; color: var(--muted); }
.cond b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.morewrap { display: flex; justify-content: center; padding-block: 6px 40px; }
.bigbtn { border: 1.5px solid var(--ink); background: var(--surface); border-radius: 999px; padding: 10px 22px; font-weight: 700; cursor: pointer; }
.bigbtn:hover { background: var(--ink); color: var(--bg); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.empty h3 { font-family: var(--display); font-size: 28px; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }

/* table view */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-block: 12px 20px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--surface); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; user-select: none; }
th.num, td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
th[aria-sort] { color: var(--ink); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--window); }
td.fig { white-space: normal; min-width: 220px; font-weight: 600; }
td.chs { white-space: normal; min-width: 140px; color: var(--muted); }
td .na { color: var(--faint); }

/* characters view */
.cx-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding-block: 18px 8px; }
.cx-head input { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; flex: 0 1 300px; min-width: 0; }
.letters { display: flex; flex-wrap: wrap; gap: 3px; }
.letters a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 12px; color: var(--muted); }
.letters a:hover { background: var(--surface); color: var(--ink); }
.cx { columns: 260px; column-gap: 28px; padding-block: 8px 40px; }
.cx h3 { font-family: var(--display); font-weight: 900; font-size: 32px; margin: 10px 0 2px; color: var(--accent-ink); break-after: avoid; }
.cx button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; width: 100%; padding: 5px 8px; border-radius: 8px; cursor: pointer; break-inside: avoid; }
.cx button:hover, .cx button:focus-visible { background: var(--surface); }
.cx .nm { font-weight: 600; }
.cx .ct { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cx .by { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint); }

/* about view */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-block: 18px 40px; }
.about section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.about h2 { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 0 0 8px; }
.about p, .about li { color: var(--muted); max-width: 68ch; }
.about dt { font-weight: 700; color: var(--ink); margin-top: 10px; }
.about dd { margin: 2px 0 0; color: var(--muted); }
.about .full { grid-column: 1 / -1; }
.about a { color: var(--ink); text-underline-offset: 3px; }

/* detail panel */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8,11,18,.55); display: flex; justify-content: flex-end; }
.panel { background: var(--surface); width: min(620px, 100%); height: 100%; overflow-y: auto; padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.panel > * { flex-shrink: 0; }
.panel .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel .top .id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.iconbtn { border: 1px solid var(--line); background: var(--surface); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 17px; display: inline-grid; place-items: center; }
.panel .win { aspect-ratio: 16 / 10; }
.panel .win .ghost { font-size: clamp(30px, 6vw, 52px); }
.panel h2 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 5vw, 38px); line-height: .95; text-transform: uppercase; margin: 0; text-wrap: balance; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ptable th, .ptable td { border-bottom: 1px solid var(--line); padding: 8px 6px; white-space: normal; position: static; cursor: default; }
.ptable th { text-align: left; font-size: 11px; color: var(--muted); background: none; }
.ptable td.num { white-space: nowrap; }
.ptable .cnd { font-weight: 700; }
.ptable .cnd small { display: block; font-weight: 400; color: var(--faint); font-size: 11px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: 13px; }
.links a:hover { border-color: var(--ink); }
.notes { background: var(--window); border-radius: 10px; padding: 10px 12px; color: var(--ink); font-size: 13px; }
.hint { font-size: 12px; color: var(--faint); }
.buy { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg); }
.buy h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.buybtn { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); text-decoration: none; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.buybtn:hover { filter: brightness(1.05); }
.buybtn span { font-weight: 800; font-size: 15px; }
.buybtn b { font-size: 20px; font-weight: 700; grid-row: span 2; align-self: center; }
.buybtn small { font-size: 12px; font-weight: 600; opacity: .8; }
.buylist { display: grid; gap: 4px; }
.buylist a { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.buylist a:hover { border-color: var(--ink); }
.buylist a .mono { font-weight: 700; }
.buylist a small { color: var(--muted); }
.buylist .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; margin-top: 4px; }
.buy .none { color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .rail { position: static; }
  #cochips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card { padding: 20px 9px 10px; }
  .name { font-size: 17px; }
  .sticker { width: 58px; height: 58px; }
  .sticker .p { font-size: 12px; }
  .prices .v { font-size: 11.5px; }
  .tabs button { padding: 6px 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- public site additions ---- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: env(safe-area-inset-top, 0px); }
a { color: inherit; }
header.site { background: var(--ink); color: var(--bg); }
header.site .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 12px; }
header.site .logo { font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; }
header.site .logo::first-letter { color: var(--accent); }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
header.site nav a { text-decoration: none; font-weight: 600; opacity: .85; }
header.site nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 24px 40px; color: var(--muted); font-size: 13px; }
footer.site p { max-width: 90ch; }
.hero { padding-block: 26px 4px; }
.hero h1, main h1 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 48px); line-height: .95; text-transform: uppercase; margin: 10px 0 8px; text-wrap: balance; }
main h2 { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 28px 0 10px; }
.lede { color: var(--muted); max-width: 72ch; font-size: 15px; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.figgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; padding-top: 12px; }
.figmain .win { aspect-ratio: 1 / 1; }
.figmain .win img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; background: #fff; border-radius: 6px; }
.figmain .win .ghost { font-size: clamp(30px, 5vw, 56px); }
.figside { display: grid; gap: 10px; align-content: start; min-width: 0; }
.figside h1 { margin: 0; }
.figside .ratio { justify-self: start; }
.figmain .win:not(:has(img)) { aspect-ratio: 16 / 11; }
.figside .sub { margin: 0; color: var(--muted); }
.figside .tags a, .tags a.tag { text-decoration: none; }
.buy h2 { margin: 0; font-size: 20px; }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ptable .cnd { font-weight: 700; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.guide { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.guide b { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.guide span { color: var(--muted); font-size: 13px; }
.guide:hover { border-color: var(--ink); }
.tags.big .tag { font-size: 13px; padding: 5px 10px; }
.cx .cxi { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 5px 8px; border-radius: 8px; text-decoration: none; break-inside: avoid; }
.cx .cxi:hover { background: var(--surface); }
.ratio.sm { font-size: 11px; padding: 1px 7px; }
td.fig a { text-decoration: none; }
td.fig a:hover { text-decoration: underline; }
.seo { padding-bottom: 20px; }
.seo p { color: var(--muted); max-width: 72ch; }
#app .rail { position: sticky; }
.card a.name { color: var(--ink); }
@media (max-width: 820px) {
  .figgrid, .twocol { grid-template-columns: minmax(0, 1fr); }
  .figmain .win { max-width: 420px; }
}
/* card placeholder: small enough that a one-word name never splits mid-word */
.card .win .ghost { font-size: clamp(18px, 1.8vw, 27px); overflow-wrap: break-word; }
