/* Fur & Fortune site, in the game's FurKit look (Assets/_Game/Art/UI/Theme.uss): pastel fills, ink text and 3 px ink
   outlines, rounded everything, coral for the one action that moves you forward. The game has one light palette, so the
   site does too. Text is always ink or ink-soft (>= 4.5:1 on every fill here). Fonts: Baloo 2 and Nunito, SIL OFL,
   self-hosted from /fonts/ (licences beside them). */
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/Baloo2-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Baloo2-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Nunito-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/Nunito-ExtraBold.woff2") format("woff2"); }

:root {
  --ink: #2B2440;
  --ink-soft: #4A4160;
  --cream: #FFF8EE;
  --paper: #FFFDF8;
  --pink: #FFD6E3;
  --mint: #C9F2DF;
  --sky: #CDE8FF;
  --butter: #FFEDB0;
  --lavender: #E3D7FF;
  --peach: #FFDCC4;
  --coral: #FF8A8A;
  --coral-press: #F47A7A;
  --sunflower: #FFC94D;
  --shade: rgba(43, 36, 64, 0.15);
  --line: rgba(43, 36, 64, 0.18);

  --radius-panel: 24px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --outline: 3px;
  --gap: 16px;
  --gap-large: 28px;

  --font-head: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 700 16px/1.55 var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; color: var(--ink); }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--coral); }
a:hover { text-decoration-color: var(--ink); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.error { color: var(--ink); background: var(--pink); border: var(--outline) solid var(--ink); border-radius: 14px; padding: 8px 12px; }
.error::before { content: "! "; font-weight: 800; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; background: var(--lavender); border-radius: 6px; padding: 0 5px; }

/* Focus (hud-menus.md 3.11): thick ink outline + butter fill + a ▶ marker on pills, so it is never colour alone. */
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
a:focus-visible { background: var(--butter); text-decoration: none; }
.btn:focus-visible, .nav a:focus-visible, .tabs button:focus-visible { background: var(--butter); outline-offset: 2px; border-radius: var(--radius-pill); }
.btn:focus-visible::before, .tabs button:focus-visible::before { content: "▶"; font-size: 0.75em; margin-right: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; }
.skip:focus { top: 12px; }

/* Top bar */
.topbar { background: var(--paper); border-bottom: var(--outline) solid var(--ink); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 8px 20px; min-height: 68px; flex-wrap: wrap; }
.brand { color: var(--ink); text-decoration: none; font: 800 24px/1 var(--font-head); display: flex; align-items: center; gap: 10px; white-space: nowrap; padding-top: 3px; }
.brand-paw { width: 34px; height: 34px; background: url("/favicon.svg") center/contain no-repeat; flex: none; margin-top: -3px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a {
  color: var(--ink); text-decoration: none; font: 800 16px/1 var(--font-head); padding: 9px 14px 7px;
  border: var(--outline) solid transparent; border-radius: var(--radius-pill); white-space: nowrap;
}
.nav a:hover { background: var(--butter); }
.nav a[aria-current="page"] { background: var(--lavender); border-color: var(--ink); }
.account { margin-left: auto; }

/* Buttons: pills. Primary = coral, everything else paper (Theme.uss .pill). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 22px 6px;
  border: var(--outline) solid var(--ink); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink);
  font: 800 18px/1.1 var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease-out;
}
.btn:hover { transform: scale(1.05); background: var(--butter); }
.btn:active { transform: scale(0.96) translateY(3px); }
.btn-primary { background: var(--coral); }
.btn-primary:hover { background: var(--sunflower); }
.btn-primary:active { background: var(--coral-press); }
.btn-small { min-height: 40px; padding: 6px 16px 4px; font-size: 16px; }
.btn-danger { background: var(--pink); }
.btn-danger::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 50%; font-size: 13px; }
button.link { background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Chips (Theme.uss .chip) */
.chip, .badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 2px; border: var(--outline) solid var(--ink);
  border-radius: var(--radius-pill); background: var(--cream); color: var(--ink); font: 800 14px/1.3 var(--font-head);
  text-decoration: none; vertical-align: middle; white-space: nowrap;
}
.badge { padding: 1px 10px 0; font-size: 13px; border-width: 2px; }
.badge-dlc { background: var(--lavender); }
a.badge-dlc::after { content: "↗"; font-family: var(--font-body); }
a.badge-dlc:hover { background: var(--butter); }
.chip--butter { background: var(--butter); } .chip--mint { background: var(--mint); } .chip--sky { background: var(--sky); }
.chip--pink { background: var(--pink); } .chip--peach { background: var(--peach); } .chip--lavender { background: var(--lavender); }

/* Panels and cards */
.panel { background: var(--paper); border: var(--outline) solid var(--ink); border-radius: var(--radius-panel); padding: var(--gap-large); }
.card { background: var(--paper); border: var(--outline) solid var(--ink); border-radius: var(--radius-card); padding: var(--gap); }

/* Hero: the name big over soft pastel blobs, like the title screen. */
.hero {
  position: relative; overflow: hidden; margin: 28px 0 0; padding: 40px 32px 32px;
  background:
    radial-gradient(circle at 8% 18%, var(--pink) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 12%, var(--sky) 0 120px, transparent 121px),
    radial-gradient(circle at 85% 95%, var(--mint) 0 110px, transparent 111px),
    radial-gradient(circle at 30% 105%, var(--butter) 0 80px, transparent 81px),
    var(--paper);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; }
.game-title { font-size: clamp(44px, 8vw, 84px); margin: 0 0 8px; letter-spacing: -0.5px; }
.game-title .amp { color: var(--ink); background: var(--sunflower); border: var(--outline) solid var(--ink); border-radius: 22px; padding: 0 12px; display: inline-block; transform: rotate(-6deg); line-height: 1.05; }
.tagline { font-size: 19px; margin: 0 0 12px; max-width: 34em; }
.hero-sub { color: var(--ink-soft); margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { background: var(--cream); border: var(--outline) solid var(--ink); border-radius: 18px; padding: 10px 14px 8px; min-width: 0; }
.facts div:nth-child(6n+1) { background: var(--mint); } .facts div:nth-child(6n+2) { background: var(--sky); }
.facts div:nth-child(6n+3) { background: var(--peach); } .facts div:nth-child(6n+4) { background: var(--butter); }
.facts div:nth-child(6n+5) { background: var(--lavender); } .facts div:nth-child(6n+6) { background: var(--pink); }
.facts dt { font-size: 13px; color: var(--ink-soft); }
.facts dd { margin: 0; font: 800 22px/1.2 var(--font-head); overflow-wrap: anywhere; }
.facts dd.muted { font: 700 14px/1.4 var(--font-body); color: var(--ink-soft); }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* Heist covers (art2 covers: key art + logo inside the heist's own frame colour) */
.covers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cover {
  position: relative; display: block; aspect-ratio: 540 / 760; border-radius: var(--radius-card); overflow: hidden;
  border: 6px solid var(--frame, var(--ink)); box-shadow: 0 0 0 var(--outline) var(--ink); background: var(--frame, var(--lavender));
  text-decoration: none; transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cover:hover { transform: translateY(-4px) rotate(-1deg); }
.cover:focus-visible { outline-offset: 6px; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-logo { position: absolute; left: 6%; right: 6%; top: 7%; width: 88%; height: auto; }
.cover-name { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-pill); font: 800 13px/1.2 var(--font-head); padding: 4px 6px 2px; }
.cover--bankruption { --frame: #E8A530; } .cover--prison { --frame: #5B7A96; } .cover--dogfather { --frame: #F3E7C4; }
.cover--dogfight { --frame: #2F6BFF; } .cover--fountain { --frame: #2FB3A3; } .cover--mansion { --frame: #7B4FD0; }

/* Sections */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.section { margin-top: 40px; }
.block { margin-bottom: 24px; }
.block-title { font-size: 28px; margin: 0 0 8px; }
.page-title { font-size: clamp(36px, 6vw, 52px); margin: 36px 0 4px; }
.sub { font-size: 20px; margin: 22px 0 10px; }
.lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 24px; max-width: 42em; }
.block-note { color: var(--ink-soft); font-size: 14px; margin: 0 0 12px; }
.block-more { margin: 14px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stats-table th, .stats-table td { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); vertical-align: middle; }
.stats-table thead th { font: 800 14px/1.2 var(--font-head); color: var(--ink-soft); border-bottom: var(--outline) solid var(--ink); }
.stats-table tbody tr:last-child > * { border-bottom: 0; }
.stats-table td { font-variant-numeric: tabular-nums; }
.stats-table tbody th { font-weight: 700; }
.cell-name { display: inline-flex; align-items: center; gap: 10px; }
.paw-pill { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 2px 8px 0; background: var(--butter); border: 2px solid var(--ink); border-radius: var(--radius-pill); font: 800 15px/1 var(--font-head); }

/* Icons: the game's art when the catalog points at a file under /media/, ink initials on a pastel tile otherwise. */
.icon {
  position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 18px;
  border: var(--outline) solid var(--ink); background: var(--sky); color: var(--ink); font: 800 20px/1 var(--font-head); overflow: hidden;
}
.icon-sm { width: 36px; height: 36px; border-radius: 11px; border-width: 2px; font-size: 13px; }
.icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.icon-cover img { object-fit: cover; }
.tint-0 { background: var(--pink); } .tint-1 { background: var(--mint); } .tint-2 { background: var(--sky); } .tint-3 { background: var(--butter); }
.tint-4 { background: var(--lavender); } .tint-5 { background: var(--peach); }

/* Crew strip and crew cards */
.crew-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: var(--outline) solid var(--ink); padding: 4px 14px 4px 4px; border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font: 800 15px/1 var(--font-head); }
.crew-chip .icon-sm { border-radius: 50%; }
.crew-chip:hover { background: var(--butter); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.crew-card { display: flex; flex-direction: column; gap: 12px; }
.crew-card .icon { width: 72px; height: 72px; border-radius: 50%; font-size: 24px; }
.card-head { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.card-head > div { min-width: 0; }
.card-head h2 { margin: 2px 0 4px; font-size: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.card-head p { margin: 0; }
.role { font: 800 15px/1.3 var(--font-head); color: var(--ink-soft); }
.caption { font-style: italic; margin: 0; padding: 8px 12px; background: var(--cream); border-radius: 14px; border: 2px dashed var(--line); }
.kit { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.kit b { font: 800 14px/1 var(--font-head); padding: 3px 8px 1px; border-radius: var(--radius-pill); border: 2px solid var(--ink); margin-right: 6px; display: inline-block; }
.kit .ult b { background: var(--sunflower); } .kit .pas b { background: var(--mint); }
.meta { color: var(--ink-soft); font-size: 14px; margin-top: 6px !important; }
.mini-stats { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.mini-stats div { flex: 1; min-width: 110px; background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 6px 12px 4px; }
.mini-stats dt { color: var(--ink-soft); font-size: 13px; }
.mini-stats dd { margin: 0; font: 800 22px/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.mini-stats dd.muted { font: 700 14px/1.5 var(--font-body); }
.top-skills { font-size: 14px; color: var(--ink-soft); }
.top-skills:empty { display: none; }
.dlc-note { margin: 0; background: var(--lavender); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 15px; }
.crew-card.is-dlc { background: linear-gradient(var(--paper), var(--paper)) padding-box; border-style: dashed; }

/* Maps */
.heist { margin-bottom: 24px; }
.heist .card-head .icon { width: 96px; height: 135px; border-radius: 16px; }
.heist .table-wrap { margin-top: 14px; }

/* Equipment */
.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 2px solid var(--line); }
.item-list li:last-child { border-bottom: 0; }
.item-name { flex: 1; min-width: 0; }
.item-stat { font: 800 16px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.item-stat.muted { font: 700 13px/1.3 var(--font-body); text-align: right; max-width: 9em; }

/* Me page */
.signin { max-width: 640px; }
.profile { display: flex; gap: 14px; align-items: center; }
.profile img { border-radius: 50%; border: var(--outline) solid var(--ink); }
.profile h2 { margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button {
  background: var(--paper); color: var(--ink); border: var(--outline) solid var(--ink); border-radius: var(--radius-pill);
  padding: 8px 18px 6px; cursor: pointer; font: 800 16px/1.1 var(--font-head);
}
.tabs button:hover { background: var(--butter); }
.tabs button[aria-selected="true"] { background: var(--lavender); }
.tabs button[aria-selected="true"]::after { content: "✓"; margin-left: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--mint); border: var(--outline) solid var(--ink); padding: 10px 14px 8px; border-radius: 18px; }
.kpi:nth-child(2) { background: var(--sky); } .kpi:nth-child(3) { background: var(--butter); } .kpi:nth-child(4) { background: var(--lavender); }
.kpi b { display: block; font: 800 26px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--ink-soft); font-size: 14px; }
.build { background: var(--cream); border: var(--outline) solid var(--ink); padding: 14px; border-radius: var(--radius-card); margin-bottom: 14px; }
.build textarea { width: 100%; min-height: 150px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; font: 13px/1.45 ui-monospace, Menlo, monospace; padding: 10px; }
.build code.code { display: block; word-break: break-all; background: var(--lavender); padding: 10px; border-radius: 12px; font-size: 12px; margin: 10px 0; }
.ach-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ach-list li { background: var(--mint); border: var(--outline) solid var(--ink); padding: 10px 12px; border-radius: 16px; }
.ach-list li::before { content: "✓ Unlocked"; display: block; font: 800 12px/1 var(--font-head); margin-bottom: 4px; }
.ach-list li.locked { background: var(--cream); border-style: dashed; }
.ach-list li.locked::before { content: "Locked"; }

/* Privacy */
.legal { max-width: 800px; }
.legal h2 { font-size: 24px; margin: 30px 0 8px; }
.legal li { margin-bottom: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal td, .legal th { border-bottom: 2px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { font: 800 15px/1.2 var(--font-head); border-bottom: var(--outline) solid var(--ink); }
.legal .table-wrap { background: var(--paper); border: var(--outline) solid var(--ink); border-radius: var(--radius-card); padding: 6px 10px; }
.draft-banner { background: var(--butter); color: var(--ink); border: var(--outline) solid var(--ink); padding: 12px 16px; border-radius: var(--radius-card); margin: 16px 0; font-weight: 800; }
.draft-banner::before { content: "! "; font-family: var(--font-head); }

/* 404 */
.lost { text-align: center; padding: 48px 24px; margin-top: 36px; }
.lost .page-title { margin-top: 0; }

.footer { border-top: var(--outline) solid var(--ink); background: var(--paper); color: var(--ink-soft); font-size: 14px; margin-top: 56px; padding: 22px 0 28px; }
.footer p { margin: 0 0 8px; max-width: 60em; }

@media (max-width: 900px) {
  .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid, .columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hide-sm { display: none; }
  .topbar { position: static; }
  .topbar-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 21px; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: thin; }
  .account .btn { min-height: 40px; padding: 6px 14px 4px; font-size: 15px; }
  .hero { padding: 28px 18px 20px; margin-top: 18px; }
  .tagline { font-size: 17px; }
  .facts dd { font-size: 19px; }
  .panel { padding: 18px; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .block-title { font-size: 24px; }
  .stats-table th, .stats-table td { padding: 8px 6px; }
  .heist .card-head .icon { width: 72px; height: 101px; }
  .card-head h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active, .cover:hover { transform: none; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.block-title.section { margin-top: 44px; }

/* ---------- Detail pages (crews, heists, gear) ---------- */
.crumbs { margin: 24px 0 0; font-size: 14px; color: var(--ink-soft); }
.crumbs + .panel, .crumbs + .page-title { margin-top: 10px; }
.card-link { text-decoration-thickness: 2px; }
.card-more { margin: 0; font-size: 15px; }
.icon-lg { width: 96px; height: 96px; border-radius: 50%; font-size: 30px; }
.crew-hero { display: grid; gap: 16px; }
.crew-hero.is-dlc { border-style: dashed; }
.crew-title { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.crew-hero .caption { margin-top: 10px; }
.crew-kit { gap: 16px; align-items: start; }
.kit .nat b { background: var(--sky); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 0; }
.stat-grid div { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 6px 10px 4px; min-width: 0; }
.stat-grid dt { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.stat-grid dd { margin: 0; font: 800 18px/1.25 var(--font-head); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.jump a.chip { white-space: normal; }
.jump a.chip:hover { background: var(--butter); }

/* Mutation paths */
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dir-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dir-card h3 { margin: 4px 0 2px; font-size: 22px; }
.dir-card p { margin: 0; font-size: 15px; }
.dir-card p b { font-family: var(--font-head); }
.dir--titan { background: linear-gradient(var(--peach), var(--paper) 90px); }
.dir--phantom { background: linear-gradient(var(--lavender), var(--paper) 90px); }
.dir--apex { background: linear-gradient(var(--mint), var(--paper) 90px); }
.rating { list-style: none; padding: 0; margin: 6px 0 0; width: 100%; display: grid; gap: 3px; font-size: 13px; }
.rating li { display: grid; grid-template-columns: minmax(0, 1fr) auto 1.2em; gap: 8px; align-items: center; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); }
.pips i.on { background: var(--ink); }
.rating-num { font: 800 14px/1 var(--font-head); text-align: right; }
.evo { margin-top: 6px !important; padding: 6px 10px; background: var(--butter); border: 2px solid var(--ink); border-radius: 12px; width: 100%; }
.mut-path { margin-top: 24px; scroll-margin-top: 90px; }
.mut-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.mut-head .block-title { margin: 0; }
.mut-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mut-level { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 2px solid var(--line); }
.mut-level:first-child { border-top: 0; padding-top: 0; }
.mut-lv { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lv-num { font: 800 20px/1 var(--font-head); background: var(--sunflower); border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 5px 12px 2px; }
.lv-kind { font-size: 13px; color: var(--ink-soft); }
.mut-opts { display: grid; gap: 10px; }
.mut-opts.is-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mut-opt { background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 14px; min-width: 0; }
.kind-evolution .mut-opt { background: var(--butter); }
.mut-opt h5 { margin: 0 0 4px; font: 800 18px/1.2 var(--font-head); display: flex; gap: 8px; align-items: center; }
.opt-letter { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 13px; flex: none; }
.mut-opt p { margin: 0 0 4px; font-size: 15px; }
.mut-opt p:last-child { margin-bottom: 0; }
.mut-opt b { font: 800 13px/1 var(--font-head); padding: 2px 7px 0; border: 2px solid var(--ink); border-radius: var(--radius-pill); margin-right: 4px; }
.mut-cost b { background: var(--pink); } .mut-best b { background: var(--mint); }
.mut-changes { font-style: italic; }

/* Heist pages */
.heist-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.heist-hero .page-title { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.heist-cover { position: relative; border-radius: var(--radius-card); overflow: hidden; border: 6px solid var(--frame, var(--ink)); box-shadow: 0 0 0 var(--outline) var(--ink); aspect-ratio: 540 / 760; }
.heist-cover > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.objective { background: var(--butter); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; }
.objective b, .step-tip::before { font-family: var(--font-head); }
.steps { margin: 0; padding-left: 1.6em; display: grid; gap: 10px; }
.steps li { padding-left: 4px; }
.step-tip { display: block; color: var(--ink-soft); font-size: 14px; }
.boss { background: linear-gradient(var(--pink), var(--paper) 120px); }

/* Gear pages */
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gear-card { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.gear-card p { margin: 0; font-size: 15px; }
.gear-card h3 { margin: 2px 0 2px; font-size: 21px; }
.gear-card:target { box-shadow: 0 0 0 4px var(--sunflower); }
.rolls span { display: inline-block; margin-right: 10px; }
.rolls b, .sig b { font: 800 13px/1 var(--font-head); padding: 2px 8px 0; border: 2px solid var(--ink); border-radius: var(--radius-pill); margin-right: 6px; background: var(--sky); }
.sig b { background: var(--sunflower); }
.parts { margin-top: 16px; padding: 14px 20px; }
.parts summary { cursor: pointer; font: 800 18px/1.3 var(--font-head); }
.part-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; font-size: 14px; }
.part-list li { padding: 6px 0; border-bottom: 2px solid var(--line); }
.part-rolls, .part-fits { display: block; color: var(--ink-soft); }

/* ---------- Skills: tree, simulator, list ---------- */
.sim-bar .block-title { margin-bottom: 12px; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.field { display: grid; gap: 4px; font: 800 14px/1.2 var(--font-head); }
.field input { width: 120px; min-height: 44px; border: var(--outline) solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); font: 800 20px/1 var(--font-head); padding: 6px 12px 2px; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.sim-totals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.sim-totals div { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 6px 10px 4px; min-width: 0; }
.sim-totals .t-free { background: var(--mint); }
.sim-totals dt { font-size: 12px; color: var(--ink-soft); }
.sim-totals dd { margin: 0; font: 800 20px/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.sim-totals .of { font-size: 14px; color: var(--ink-soft); }
.sim-status { min-height: 1.5em; margin: 10px 0 0; }
.sim-keys { margin: 4px 0 0; }
[data-sim-warn] { margin: 12px 0 0; }
.sim-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 12px; }
.sim-tabs button { background: var(--paper); color: var(--ink); border: var(--outline) solid var(--ink); border-radius: var(--radius-pill); padding: 7px 14px 5px; cursor: pointer; font: 800 15px/1.1 var(--font-head); min-height: 44px; }
.sim-tabs button:hover { background: var(--butter); }
.sim-tabs button[aria-selected="true"] { background: var(--lavender); }
.sim-tabs button[aria-selected="true"]::before { content: "▶ "; font-size: 0.75em; }
.sim-tabs button:focus-visible { background: var(--butter); border-radius: var(--radius-pill); }
.tab-spent { font-family: var(--font-body); font-size: 12px; color: var(--ink-soft); }
.tab-spent:empty { display: none; }
.sim-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sim-trees { min-width: 0; display: grid; gap: 16px; }
.tree { padding: 20px; }
.tree-title { margin: 0 0 12px; font-size: 22px; }
.lanes { display: flex; flex-wrap: wrap; gap: 20px 24px; }
.lane-title { margin: 0 0 8px; font-size: 16px; }
.lane-grid { position: relative; display: grid; grid-auto-rows: 104px; column-gap: 10px; row-gap: 30px; }
.cols-1 { grid-template-columns: 92px; } .cols-2 { grid-template-columns: repeat(2, 92px); } .cols-3 { grid-template-columns: repeat(3, 92px); }
.gx-0 { grid-column: 1; } .gx-1 { grid-column: 2; } .gx-2 { grid-column: 3; }
.gy-0 { grid-row: 1; } .gy-1 { grid-row: 2; } .gy-2 { grid-row: 3; } .gy-3 { grid-row: 4; } .gy-4 { grid-row: 5; } .gy-5 { grid-row: 6; } .gy-6 { grid-row: 7; }
.links { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.link { fill: none; stroke: #6B6280; stroke-width: 2; stroke-dasharray: 8 6; }
.link--buyable { stroke: #2456C8; stroke-width: 3; stroke-dasharray: none; }
.link--owned { stroke: #1E7A4C; stroke-width: 4; stroke-dasharray: none; }
.link--sel { stroke: #B4470F; stroke-width: 5; }
.node {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; width: 92px; height: 104px;
  padding: 6px 5px 5px; text-align: left; cursor: pointer; color: var(--ink); background: var(--paper);
  border: var(--outline) solid var(--ink); border-radius: 14px; font: 700 12px/1.2 var(--font-body);
}
.node:hover { background: var(--butter); }
.node-name { font: 800 12px/1.12 var(--font-head); overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.node-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.node-cost { font: 800 13px/1 var(--font-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dots { font-size: 7px; letter-spacing: 0; white-space: nowrap; }
.node-state { font-size: 11px; white-space: nowrap; }
.node-ext { position: absolute; top: 3px; right: 5px; font-size: 12px; }
.node[data-st="owned"] { background: var(--mint); }
.node[data-st="buyable"] { background: var(--sky); }
.node[data-st="needs-sp"] { background: var(--cream); border-style: dotted; }
.node[data-st="locked"] { background: var(--cream); border: 2px dashed var(--ink-soft); color: var(--ink-soft); }
.node[data-st="locked"] .node-name { color: var(--ink-soft); }
.node[aria-current="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); background: var(--butter); }
.node:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; border-radius: 14px; }
.tier-signature, .tier-ultimate { border-radius: 14px 14px 24px 24px; }
.inspector { position: sticky; top: 84px; padding: 18px; max-height: calc(100vh - 100px); overflow: auto; }
.insp-title { margin: 0 0 4px; font-size: 22px; }
.insp-meta { margin: 0; font-size: 13px; color: var(--ink-soft); }
.insp-cost { margin: 6px 0; font: 800 20px/1.2 var(--font-head); }
.insp-desc { margin: 0 0 8px; }
.insp-note { margin: 0 0 8px; padding: 6px 10px; background: var(--peach); border: 2px solid var(--ink); border-radius: 12px; font-size: 14px; }
.insp-checks { list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; }
.insp-checks-head { font: 800 13px/1.2 var(--font-head); color: var(--ink-soft); }
.insp-gate { margin: 0 0 8px; font-size: 14px; }
.insp-lock { margin: 8px 0 0; font-size: 14px; }
.insp-warn { margin: 0 0 6px; padding: 6px 10px; background: var(--pink); border: 2px solid var(--ink); border-radius: 12px; font-size: 14px; }
.insp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn[disabled] { cursor: not-allowed; background: var(--cream); border-style: dashed; transform: none; }
.build-list { margin-top: 14px; font-size: 14px; }
.build-list summary { cursor: pointer; font: 800 15px/1.3 var(--font-head); }
.build-list ol { margin: 6px 0 0; padding-left: 1.4em; }
.skill-table th[scope="row"] { font-weight: 700; }
.skill-name { font: 800 16px/1.2 var(--font-head); }
.skill-desc { display: block; font-size: 14px; margin-top: 2px; }
.skill-needs { display: block; font-size: 13px; color: var(--ink-soft); }
.skill-needs:empty { display: none; }
.tier-badge { font-size: 12px; }
.tier-badge.tier-signature { background: var(--butter); } .tier-badge.tier-ultimate { background: var(--sunflower); } .tier-badge.tier-advanced { background: var(--peach); }

@media (max-width: 900px) {
  .dir-grid { grid-template-columns: 1fr; }
  .sim-body { grid-template-columns: minmax(0, 1fr); }
  .inspector { position: sticky; top: auto; bottom: 0; z-index: 5; max-height: 42vh; box-shadow: 0 -6px 0 var(--cream); }
  .sim-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .heist-hero { grid-template-columns: 1fr; }
  .heist-cover { max-width: 200px; }
  .mut-level { grid-template-columns: 1fr; gap: 8px; }
  .mut-lv { flex-direction: row; align-items: center; gap: 8px; }
  .mut-opts.is-choice { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: minmax(0, 1fr); }
  .tree { padding: 14px 10px; }
  .sim-actions { margin-left: 0; }
  .field input { width: 100px; }
  .icon-lg { width: 72px; height: 72px; }
}
