/* THE JOB: a blueprint on a table at 2 am. Paper-white line work on deep blueprint blue, alarm red for the
   drill, laser cyan for anything live. Bebas Neue carries the headlines, IBM Plex Mono is the annotation voice. */
:root {
  --ink: #0B1F4B;
  --ink-2: #081739;
  --panel: #0F2A63;
  --line: rgba(60, 99, 184, 0.6);
  --line-soft: rgba(60, 99, 184, 0.32);
  --grid: #2A4A8F;
  --paper: #EAF0FF;
  --paper-2: #C9D5F2;
  --dim: #97A9D6;
  --mute: #6F84B8;
  --red: #FF3B3B;
  --red-hi: #FF5C5C;
  --cyan: #4CC9F0;
  --gold: #F5C542;
  --display: "Bebas Neue", "Anton", Impact, "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --w: 1180px;
  --pad: 24px;
}

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--paper-2);
  font: 400 14px/1.55 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(42, 74, 143, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 74, 143, 0.38) 1px, transparent 1px),
    linear-gradient(rgba(42, 74, 143, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 74, 143, 0.16) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums; }
.cyan { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }

/* ---- type ------------------------------------------------------------------------------- */
h1, h2, h3, .btn, .stamp, .meter-big, .meter-pct, .timer-time, .big-stat .v, .vault .bal, .facts dd, .board-job, .h-id, .wordmark {
  font-family: var(--display); font-weight: 400; letter-spacing: 0.04em;
}
h2 { font-size: 30px; line-height: 1; color: var(--paper); }
h3 { font-size: 24px; line-height: 1; color: var(--paper); }

/* ---- header ----------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.logo { width: 36px; height: 36px; flex: none; }
.wordmark { font-size: 26px; letter-spacing: 0.2em; color: var(--paper); line-height: 1; padding-top: 3px; white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs a { padding: 8px 12px 6px; font-weight: 600; font-size: 13px; color: var(--dim); border-bottom: 2px solid transparent; line-height: 1; white-space: nowrap; }
.tabs a:hover { color: var(--paper); }
.tabs a.active { color: var(--paper); border-bottom-color: var(--red); }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.xlink { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--paper); }
.xlink svg { width: 17px; height: 17px; fill: currentColor; }
.xlink:hover { color: var(--cyan); }
.chip { display: inline-flex; align-items: baseline; gap: 9px; padding: 6px 11px 5px; border: 1px solid var(--line); background: var(--ink-2); }
.chip-label { font-size: 11px; font-weight: 600; color: var(--dim); white-space: nowrap; letter-spacing: 0.04em; }
.chip-time { font-size: 16px; font-weight: 600; color: var(--cyan); line-height: 1; text-shadow: 0 0 10px rgba(76, 201, 240, 0.45); }

/* ---- buttons ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 3px 18px 0; height: 40px; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  border: 1.5px solid transparent; white-space: nowrap; transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-red { background: var(--red); color: #150000; border-color: var(--red); }
.btn-red:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink-2); color: var(--paper); border-color: var(--line); }
.btn-dark:hover { border-color: var(--paper); }
.btn-cyan { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-cyan:hover { background: var(--cyan); color: var(--ink); }
.btn-big { height: 56px; padding: 4px 30px 0; font-size: 24px; }
.btn-sm { height: 32px; padding: 2px 12px 0; font-size: 15px; }
.btn[disabled], .btn.busy { opacity: 0.4; cursor: not-allowed; }
.btn-addr { font-family: var(--mono); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; padding-top: 0; }

/* ---- stamps ----------------------------------------------------------------------------- */
.stamp {
  display: inline-block; font-size: 22px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 11px 4px; border: 4px double currentColor; color: var(--red); transform: rotate(-6deg); opacity: 0.94;
}
.stamp-cyan { color: var(--cyan); }
.stamp-gold { color: var(--gold); }
.stamp-paper { color: var(--paper); opacity: 0.7; }
.stamp-sm { font-size: 14px; padding: 4px 7px 2px; border-width: 3px; letter-spacing: 0.12em; }
.stamp-flat { transform: none; }

/* ---- ribbon ----------------------------------------------------------------------------- */
.ribbon { margin-top: 18px; background: var(--red); color: #150000; font-weight: 600; font-size: 13px; padding: 9px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ribbon a { text-decoration: underline; }

/* ---- hero ------------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding: 48px 0 40px; }
.dwg { display: flex; gap: 18px; flex-wrap: wrap; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(120px, 15vw, 228px); line-height: 0.82; letter-spacing: 0.03em; color: var(--paper); margin-left: -0.02em; }
.hero .sub { margin-top: 16px; font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); color: var(--cyan); }
.hero .lede { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--paper-2); max-width: 52ch; }
.cta-row { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero-next { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 13px; color: var(--dim); }
.hero-next .cyan { font-size: 22px; line-height: 1; font-weight: 600; text-shadow: 0 0 10px rgba(76, 201, 240, 0.45); }

.hero-art { display: block; position: relative; padding: 18px 16px 10px; border: 1px solid var(--line); background: rgba(15, 42, 99, 0.55); }
.hero-art:hover { border-color: var(--paper); }
.hero-door { position: relative; width: min(100%, 330px); margin: 0 auto; }
.hero-door .timer { right: -4px; bottom: 26px; }
.hero-meter { margin-top: 10px; }
.hero-read { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.hero-read .meter-big { font-size: 40px; }
.hero-read .meter-pct { font-size: 26px; }
.hero-crew { display: flex; justify-content: center; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.hero-crew svg { width: 56px; height: 56px; }

/* ---- the door schematic ----------------------------------------------------------------- */
.door { width: 100%; height: auto; fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.door .rivet, .door .hub, .door .knob { fill: var(--paper); stroke: none; }
.door .ring2 { stroke-width: 1; opacity: 0.8; }
.door .bolt { stroke-width: 1; }
.door .dim { stroke-width: 1; opacity: 0.85; }
.door .dim path { fill: var(--paper); stroke: none; }
.door text { fill: var(--dim); stroke: none; font: 600 9px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.door .handle { transform-origin: 100px 100px; transition: transform 1.3s cubic-bezier(0.2, 0.85, 0.2, 1); }
.door.cracked .handle { transform: rotate(90deg); }
.door.cracked .ring { stroke: var(--cyan); filter: drop-shadow(0 0 9px rgba(76, 201, 240, 0.85)); }
.door.cracked .hub, .door.cracked .knob { fill: var(--cyan); }
.door.failed .ring { stroke: var(--red); }

.timer { position: absolute; background: var(--ink-2); border: 1px solid var(--paper); padding: 6px 11px 5px; display: grid; gap: 1px; box-shadow: 0 0 0 5px var(--panel); }
.timer::before, .timer::after { content: ""; position: absolute; left: -16px; width: 16px; height: 2px; background: var(--paper); }
.timer::before { top: 28%; }
.timer::after { bottom: 28%; }
.timer-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.timer-time { font-size: 40px; line-height: 1; color: var(--cyan); letter-spacing: 0.08em; text-shadow: 0 0 12px rgba(76, 201, 240, 0.5); }
.closing .timer-time { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---- sheets ----------------------------------------------------------------------------- */
.sheet { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 26px 24px 24px; min-width: 0; }
.sheet-cap { position: absolute; top: 0; left: 14px; transform: translateY(-50%); background: var(--ink); border: 1px solid var(--line); padding: 3px 8px 2px; font-size: 10px; font-weight: 600; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.panel { margin-top: 24px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sheet-meta { color: var(--dim); font-size: 12.5px; }
.sheet-note { color: var(--dim); font-size: 12.5px; margin-top: 6px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.step h3 { margin-top: 2px; }
.step p { margin-top: 10px; color: var(--paper-2); font-size: 13.5px; line-height: 1.55; }

/* ---- crook cards ------------------------------------------------------------------------ */
.crook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; margin-top: 18px; align-items: start; }
.crook-card { background: var(--ink); border: 1px solid var(--line); padding: 16px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-content: start; }
.crook-card.is-boss { border-color: rgba(245, 197, 66, 0.5); }
.crook-card.is-jailed { border-color: rgba(255, 59, 59, 0.5); }
.crook-art { position: relative; width: 112px; height: 112px; background: var(--ink-2); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; }
.crook-art svg { width: 96px; height: 96px; }
.crook-art .stamp { position: absolute; left: -12px; bottom: -10px; }
.crook-title { font-weight: 600; font-size: 16px; color: var(--paper); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 6px 2px; background: var(--cyan); color: var(--ink); line-height: 1.1; }
.badge-red { background: var(--red); color: #150000; }
.badge-gold { background: var(--gold); color: #2A1F00; }
.badge-dark { background: var(--panel); color: var(--dim); border: 1px solid var(--line); }
.rep { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.rep-bar { flex: 1; height: 8px; border: 1px solid var(--line); background: var(--ink-2); position: relative; }
.rep-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cyan); }
.rep span { font-weight: 600; font-size: 12px; color: var(--dim); white-space: nowrap; }
.crook-stats { margin-top: 6px; font-size: 12.5px; color: var(--dim); }
.crook-stats.red { color: var(--red); }
.claimables { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.claimables li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; flex-wrap: wrap; min-width: 0; color: var(--paper); }
.claimables small { color: var(--dim); font-weight: 400; font-size: 12px; }
.claimables .none { color: var(--dim); font-weight: 400; font-size: 12.5px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; color: var(--c, var(--paper)); }
.tag i { width: 10px; height: 10px; border: 1.5px solid currentColor; display: inline-block; flex: none; }
.crook-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.reason { font-size: 12px; color: var(--dim); }
.drawer { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--ink-2); }
.stepper button { width: 38px; height: 38px; font-weight: 600; font-size: 20px; line-height: 1; color: var(--paper); }
.stepper button:hover { background: var(--panel); }
.stepper output { min-width: 46px; text-align: center; font-weight: 600; font-size: 16px; color: var(--paper); }
.toggle { display: inline-flex; border: 1px solid var(--line); background: var(--ink-2); }
.toggle button { padding: 0 14px; height: 38px; font-weight: 600; font-size: 12px; color: var(--dim); }
.toggle button.on { background: var(--paper); color: var(--ink); }
.toggle button[disabled] { opacity: 0.4; cursor: not-allowed; }
.total { font-size: 13px; color: var(--paper-2); }
.total b { color: var(--paper); }
.help { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.help a { color: var(--cyan); text-decoration: underline; }
.fill-last { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px dashed var(--red); color: var(--red); font-weight: 600; font-size: 12px; }
.fill-last:hover { background: rgba(255, 59, 59, 0.12); }

/* ---- mint ------------------------------------------------------------------------------- */
.mint-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin-top: 18px; }
.mint-preview { display: flex; gap: 6px; }
.mint-preview svg { width: 56px; height: 56px; }
.mint-closed { margin-top: 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mint-closed .big { font-family: var(--display); font-size: 30px; letter-spacing: 0.08em; color: var(--paper); line-height: 1; padding-top: 4px; }

/* ---- the job board ---------------------------------------------------------------------- */
.board { margin-top: 22px; padding: 32px 28px 24px; }
.board-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
.door-wrap { position: relative; width: 100%; max-width: 340px; padding: 4px 0 8px; }
.door-wrap .timer { right: -8px; bottom: 30px; }
.stamp-slot { position: absolute; left: -16px; bottom: 34px; z-index: 2; }
.board-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.board-job { font-size: 20px; color: var(--dim); letter-spacing: 0.1em; }
.board-title h2 { font-size: 44px; }
.meter { margin-top: 18px; }
.meter-track { position: relative; height: 28px; border: 1.5px solid var(--paper); background: rgba(6, 19, 52, 0.7); overflow: visible; }
.meter-ticks { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(234, 240, 255, 0.55) 1px, transparent 1px); background-size: 10% 100%; background-position: -1px 0; pointer-events: none; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); transition: width 0.9s steps(10); max-width: 100%; }
.meter-fill::after { content: ""; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); border-left: 10px solid var(--red); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.meter-fill.full::after { display: none; }
.meter-read { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.meter-big { font-size: clamp(40px, 4.6vw, 62px); line-height: 1; color: var(--paper); }
.meter-pct { font-size: 34px; line-height: 1; color: var(--cyan); }
.meter-note { margin-top: 6px; font-size: 13px; color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 12px 28px; margin-top: 20px; }
.facts dt { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.facts dd { font-size: 28px; line-height: 1; color: var(--paper); margin-top: 4px; white-space: nowrap; }
.facts dd small { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0; margin-top: 3px; }
.board-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.board.alarm::after { content: ""; position: absolute; inset: 0; background: var(--red); pointer-events: none; animation: alarm 1.4s ease-out forwards; }
@keyframes alarm { 0% { opacity: 0.55; } 100% { opacity: 0; } }
.crew-head { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.crew-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; align-items: flex-end; }
.crew-m { display: grid; justify-items: center; gap: 2px; padding: 4px 2px 3px; border: 1px solid transparent; min-width: 52px; }
.crew-m svg { width: 44px; height: 44px; }
.crew-m span { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.crew-m b { font-size: 11px; color: var(--paper); }
.crew-m.mine { border-color: var(--cyan); background: rgba(76, 201, 240, 0.08); }
.crew-m.cracker { border-color: var(--cyan); }
.crew-m.cracker b { color: var(--cyan); }
.crew-empty { font-size: 13px; color: var(--dim); padding: 6px 0; }

/* ---- the schedule strip ----------------------------------------------------------------- */
.strip-wrap { margin-top: 24px; padding: 24px 24px 18px; }
/* --slots / --slots-sm are set by app.js from the live rotation length (3 at launch, up to 12) */
.strip { display: grid; grid-template-columns: repeat(var(--slots, 6), minmax(0, 1fr)); gap: 10px; }
.slot { display: grid; justify-items: center; gap: 4px; padding: 12px 8px 10px; border: 1px solid var(--line-soft); background: var(--ink-2); text-align: center; min-width: 0; }
.slot svg { width: 52px; height: 52px; fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; }
.slot .sym { font-family: var(--display); font-size: 22px; letter-spacing: 0.08em; color: var(--c, var(--paper)); line-height: 1; margin-top: 4px; }
.slot .sec { font-size: 11px; color: var(--dim); }
.slot .when { font-size: 12px; font-weight: 600; color: var(--paper-2); }
.slot.now { border-color: var(--red); background: rgba(255, 59, 59, 0.08); box-shadow: 0 0 18px rgba(255, 59, 59, 0.25) inset; }
.slot.now svg { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(255, 59, 59, 0.8)); }
.slot.now .when { color: var(--red); }

/* ---- the record, the cell, bosses, rep ---------------------------------------------------- */
.job-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.job-col > .sheet { margin-top: 0; }
.job-col > .panel { margin-top: 24px; }
.history { margin-top: 14px; }
.history li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.history li.new { animation: slidein 0.5s ease-out; }
@keyframes slidein { from { transform: translateX(-14px); opacity: 0; } }
.h-stamp { display: flex; justify-content: center; }
.h-id { font-size: 22px; color: var(--paper); line-height: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.h-id .tag { font-size: 12px; }
.h-line { margin-top: 5px; font-size: 12.5px; color: var(--dim); }
.h-line b { color: var(--paper); font-weight: 600; }
.h-by { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); white-space: nowrap; }
.h-by svg { width: 30px; height: 30px; }
.h-by b { color: var(--cyan); }
.h-tx { font-size: 11px; color: var(--dim); text-decoration: underline; white-space: nowrap; }
.h-tx:hover { color: var(--cyan); }
.empty { color: var(--dim); font-size: 13px; padding: 12px 0; }

.cell { margin-top: 12px; }
.cell li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cell .art { width: 60px; height: 60px; background: var(--ink-2); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; }
.cell .art svg { width: 52px; height: 52px; }
.cell .name { font-weight: 600; font-size: 14px; color: var(--paper); }
.cell .meta { font-size: 12px; color: var(--dim); margin-top: 2px; }
.cell .out { text-align: right; font-size: 11px; color: var(--dim); white-space: nowrap; }
.cell .out b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: 0.06em; color: var(--red); line-height: 1; }

.bosses { margin-top: 12px; }
.bosses li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.bosses .art { position: relative; width: 60px; height: 60px; background: var(--ink-2); border: 1px solid rgba(245, 197, 66, 0.45); display: flex; align-items: center; justify-content: center; }
.bosses .art svg { width: 52px; height: 52px; }
.bosses .name { font-weight: 600; font-size: 14px; color: var(--paper); display: flex; align-items: center; gap: 8px; }
.bosses .meta { font-size: 12px; color: var(--dim); margin-top: 2px; }
.bosses .pend { font-size: 12.5px; color: var(--paper); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.bosses .pend small { color: var(--dim); }

.lb { margin-top: 12px; }
.lb li { display: grid; grid-template-columns: 24px 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.lb .rank { color: var(--dim); font-weight: 600; font-size: 12px; }
.lb svg { width: 28px; height: 28px; }
.lb .name { font-weight: 600; color: var(--paper); }
.lb .name small { color: var(--dim); font-weight: 400; font-size: 11.5px; margin-left: 6px; }
.lb .bar { height: 5px; border: 1px solid var(--line-soft); background: var(--ink-2); position: relative; margin-top: 5px; }
.lb .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cyan); }
.lb .togo { color: var(--dim); font-size: 11px; white-space: nowrap; text-align: right; }
.lb .togo b { display: block; color: var(--paper); font-size: 13px; }

/* ---- the vaults ------------------------------------------------------------------------- */
.vault-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.vault { background: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--paper)); padding: 14px; min-width: 0; position: relative; }
.vault .sym { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vault .sym svg { width: 30px; height: 30px; fill: none; stroke: var(--c, var(--paper)); stroke-width: 1.6; stroke-linecap: round; }
.vault .bal { margin-top: 14px; font-size: 32px; line-height: 1; color: var(--paper); }
.vault .usd { margin-top: 4px; color: var(--dim); font-size: 12px; }
.vault .line { margin-top: 12px; font-size: 12px; color: var(--paper-2); line-height: 1.45; }
.vault .line b { color: var(--paper); }
.vault .line + .line { margin-top: 6px; }
.vaults-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; align-items: start; }
.vaults-grid.has-token { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.big-stat { margin-top: 16px; }
.big-stat .v { font-size: clamp(36px, 3vw, 48px); line-height: 1; color: var(--paper); overflow-wrap: anywhere; }
.big-stat .v small { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 6px; letter-spacing: 0; }
.big-stat .usd { color: var(--dim); margin-top: 6px; font-size: 13px; }
.stat-list { display: grid; gap: 10px; margin-top: 16px; }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.stat .k { color: var(--dim); font-size: 13px; }
.stat .v { font-weight: 600; font-size: 14px; color: var(--paper); text-align: right; white-space: nowrap; }
.stat .v small { display: block; color: var(--dim); font-weight: 400; font-size: 11.5px; }
.note { margin-top: 14px; padding: 10px 12px; background: var(--ink); border-left: 3px solid var(--cyan); font-size: 12.5px; color: var(--paper-2); line-height: 1.5; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---- how -------------------------------------------------------------------------------- */
.how { display: grid; grid-template-columns: minmax(0, 780px) minmax(260px, 320px); gap: 0 24px; align-items: start; }
.how .lead { grid-column: 1 / -1; font-size: 15px; color: var(--paper-2); max-width: 62ch; margin-top: 28px; }
.how .sheet { margin-top: 26px; }
.how-aside { grid-column: 2; grid-row: 2 / span 6; position: sticky; top: 84px; }
.how-aside .sheet h2 { font-size: 24px; }
.numbers { display: grid; margin-top: 14px; }
.numbers div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.numbers span { color: var(--dim); }
.numbers b { color: var(--paper); text-align: right; white-space: nowrap; }
.how h2 { font-size: 30px; }
.how p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--paper-2); max-width: 68ch; }
.how p + p { margin-top: 10px; }

/* ---- footer ----------------------------------------------------------------------------- */
.foot { margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--dim); font-size: 12.5px; }
.foot-inner { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }
.tblock { display: inline-grid; grid-template-columns: repeat(4, auto); border: 1px solid var(--line); background: var(--ink-2); max-width: 100%; }
.tblock div { padding: 6px 14px 5px; border-right: 1px solid var(--line); min-width: 0; }
.tblock div:last-child { border-right: 0; }
.tblock span { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.tblock b { display: block; font-size: 12px; color: var(--paper); white-space: nowrap; }
.foot-line { margin-top: 18px; color: var(--paper); font-weight: 600; font-size: 13px; }
.foot-addrs { margin-top: 12px; display: grid; gap: 6px; }
.foot-addrs span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-addrs code { font-family: var(--mono); font-size: 12px; color: var(--paper-2); word-break: break-all; }
.copy { font-weight: 600; font-size: 11px; letter-spacing: 0.06em; color: var(--cyan); }
.foot-chain { margin-top: 10px; }
.foot-chain a { text-decoration: underline; }
.foot-risk { margin-top: 14px; max-width: 76ch; line-height: 1.55; }

/* ---- toasts, picker --------------------------------------------------------------------- */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(92vw, 440px); }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--paper); padding: 12px 14px; font-weight: 600; font-size: 13px; line-height: 1.45; color: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--cyan); }
.toast a { color: var(--cyan); text-decoration: underline; }
.picker { position: fixed; inset: 0; z-index: 200; background: rgba(4, 12, 32, 0.85); display: flex; align-items: center; justify-content: center; padding: 20px; }
.picker-card { background: var(--panel); border: 1px solid var(--paper); width: min(92vw, 380px); padding: 18px; }
.picker-card h3 { font-size: 26px; }
.picker-card p { color: var(--dim); font-size: 12.5px; margin-top: 4px; line-height: 1.45; }
.picker-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--ink); border: 1px solid var(--line); padding: 10px 12px; margin-top: 8px; font-weight: 600; color: var(--paper); }
.picker-opt:hover { border-color: var(--cyan); }
.picker-opt img { width: 24px; height: 24px; }
.picker-opt .warn { margin-left: auto; color: var(--red); font-size: 11px; font-weight: 600; }
.picker-cancel { margin-top: 12px; width: 100%; }

/* ---- responsive ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 34px 0 28px; }
  .steps { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; gap: 28px; }
  .door-wrap { max-width: 320px; margin: 0 auto; }
  .job-grid, .vaults-grid, .vaults-grid.has-token { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(var(--slots-sm, 3), minmax(0, 1fr)); }
  .vault-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .how-aside { grid-column: 1; grid-row: auto; position: static; order: 10; margin-top: 26px; }
  .top-inner { height: auto; flex-wrap: wrap; padding-top: 10px; gap: 8px 14px; }
  .tabs { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; padding: 10px 10px 9px; }
  .mint-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  :root { --pad: 16px; }
  .hero { padding: 22px 0 20px; }
  .hero h1 { font-size: clamp(96px, 27vw, 124px); }
  .hero .sub { margin-top: 12px; }
  .hero .lede { font-size: 14px; }
  .cta-row { margin-top: 20px; gap: 14px; }
  .btn-big { width: 100%; }
  .dwg { gap: 10px; font-size: 9.5px; }
  .sheet { padding: 22px 16px 18px; }
  .sheet-cap { left: 10px; }
  h2 { font-size: 26px; }
  .board { padding: 26px 16px 18px; }
  .board-title h2 { font-size: 36px; }
  .door-wrap { max-width: 280px; }
  .door-wrap .timer, .hero-door .timer { right: -2px; }
  .timer-time { font-size: 32px; }
  .stamp-slot { left: -8px; bottom: 30px; }
  .facts { gap: 10px 12px; }
  .facts dd { font-size: 22px; white-space: normal; }
  .crook-grid { grid-template-columns: 1fr; }
  .crook-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .crook-art { width: 84px; height: 84px; }
  .crook-art svg { width: 72px; height: 72px; }
  .crook-art .stamp { left: -8px; }
  .claimables li { font-size: 12px; gap: 6px; }
  .claimables small { font-size: 11px; }
  .history li { grid-template-columns: 1fr; gap: 8px; }
  .h-stamp { justify-content: flex-start; }
  .h-stamp .stamp { transform: rotate(-3deg); }
  .strip { grid-template-columns: repeat(var(--slots-sm, 3), minmax(0, 1fr)); gap: 6px; }
  .slot { padding: 10px 4px 8px; }
  .slot svg { width: 40px; height: 40px; }
  .slot .sym { font-size: 18px; }
  .vault-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xlink { display: none; }
  .chip-label { display: none; }
  .wordmark { font-size: 22px; }
  .tblock { grid-template-columns: repeat(2, auto); }
  .tblock div:nth-child(2) { border-right: 0; }
  .tblock div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
