  :root {
    --ground: #0A0A0B; --ground2: #070708; --surface: #101012; --surface2: #0D0D0F;
    --line: #26262A; --line2: #1C1C1F; --hair: #17171A;
    --ink: #F5F2EC; --muted: #9C978E; --dim: #5D5A54; --faint: #3A3A40;
    --gilt: #C8A24B; --gilt-hi: #E0BC66;
    --warn-line: #6B3A28; --warn-bg: #1A100C; --warn-ink: #D9A28A;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  a { color: var(--gilt); text-decoration: none; } a:hover { color: var(--gilt-hi); }
  ::placeholder { color: var(--dim); }
  .wordmark { font-family: 'Michroma', Verdana, sans-serif; letter-spacing: 0.32em; }
  .display { font-family: 'Marcellus', Georgia, serif; }
  .label { font-size: 12px; letter-spacing: 0.3em; color: var(--gilt); }
  .btn { display: inline-block; cursor: pointer; font-size: 13px; letter-spacing: 0.12em; font-weight: 600; color: var(--ground); background: var(--gilt); padding: 13px 28px; border-radius: 3px; border: none; font-family: 'Instrument Sans', system-ui, sans-serif; user-select: none; }
  .btn:hover { background: var(--gilt-hi); }
  .btn.ghost { color: var(--ink); background: transparent; border: 1px solid var(--faint); }
  .btn.ghost:hover { border-color: var(--muted); background: transparent; }
  .btn.dead { color: var(--dim); background: var(--line2); cursor: default; }
  .btn.dead:hover { background: var(--line2); }
  .navlink { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); cursor: pointer; }
  .navlink:hover { color: var(--ink); }
  .field { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; font-size: 14px; color: var(--ink); font-family: 'Instrument Sans', system-ui, sans-serif; width: 100%; }
  .field:focus { outline: none; border-color: var(--gilt); }
  .frame { border: 1px solid var(--line); background: var(--surface2); border-radius: 2px; box-shadow: 0 -18px 40px -24px rgba(200,162,75,0.25) inset; }
  .frame pre { margin: 0; padding: 26px 18px; font-size: 10px; line-height: 1.35; text-align: center; background: linear-gradient(100deg, #E76F3C 15%, #7FB4C9 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .framecap { border-top: 1px solid var(--line2); padding: 12px 16px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
  .lb-row { display: flex; align-items: center; gap: 18px; padding: 15px 28px; border-bottom: 1px solid var(--hair); }
  .lb-rank { font-family: 'Marcellus', Georgia, serif; font-size: 18px; color: var(--muted); min-width: 44px; }
  .page { display: none; } .page.on { display: block; }
  .simbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 40px; background: var(--surface2); border-bottom: 1px solid var(--line2); font-size: 11px; letter-spacing: 0.14em; color: var(--dim); }
  .chip { cursor: pointer; padding: 6px 14px; border-radius: 3px; border: 1px solid var(--line); color: var(--dim); letter-spacing: 0.12em; font-size: 11px; user-select: none; }
  .chip.on { border-color: var(--gilt); color: var(--gilt); }
  .toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--gilt); color: var(--ink); border-radius: 3px; padding: 14px 26px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 60; }
  .toast.show { opacity: 1; }
  .modal-bg { position: fixed; inset: 0; background: rgba(7,7,8,0.8); display: none; align-items: center; justify-content: center; z-index: 50; }
  .modal-bg.on { display: flex; }
  .modal { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 36px; width: 380px; display: flex; flex-direction: column; gap: 14px; }
  details.deep { border: 1px solid var(--line2); border-radius: 3px; margin-top: 16px; }
  details.deep summary { cursor: pointer; list-style: none; padding: 12px 16px; font-size: 11px; letter-spacing: 0.22em; color: var(--dim); user-select: none; }
  details.deep summary:hover { color: var(--gilt); }
  details.deep summary::before { content: "+ "; color: var(--gilt); }
  details.deep[open] summary::before { content: "\2212 "; }
  details.deep .inner { padding: 0 16px 16px 16px; font-size: 14px; line-height: 1.7; color: var(--muted); }
  .art { border: 1px solid var(--line); background: #000; border-radius: 2px; overflow: hidden; box-shadow: 0 -18px 40px -24px rgba(200,162,75,0.25) inset; cursor: zoom-in; transition: border-color 0.15s; }
  .art:hover { border-color: var(--gilt); }
  .art img { width: 100%; display: block; aspect-ratio: 1; }
  .artcap { border-top: 1px solid var(--line2); padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; }
  .artcap b { font-size: 12px; letter-spacing: 0.08em; color: var(--ink); font-weight: 600; }
  .artcap span { font-size: 11px; color: var(--dim); text-align: right; }
  @media (max-width: 900px) {
    .grid2, .grid3, .grid4 { grid-template-columns: 1fr !important; }
    .pad-lg { padding-left: 24px !important; padding-right: 24px !important; }
    .nav-links { display: none !important; }
  }
