/* Vaultbreak — v15 "deposit hall". The lobby is the bank's front office: paper, ink, engraved steel and
   banknote guilloche. Breach and result screens are inside the vault (body.inside): the same tokens, dark. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  /* paper + ink */
  --bg: #ebe6da;
  --bg2: #e4ded0;
  --panel: #f5f2ea;
  --panel2: #f5f2ea;
  --raise: #ddd6c6;
  --well: #e2dccd;
  --line: rgba(28, 27, 24, .13);
  --line2: rgba(28, 27, 24, .26);
  --ink: #1c1b18;
  --fg: #1c1b18;
  --dim: #57534a;
  --faint: #857f72;
  /* one accent: banknote green. Brass for money, vermilion for stamps and danger. */
  --acc: #1f5a48;
  --acc2: #17473a;
  --acc-ink: #f5f2ea;
  --gold: #7d5d1c;
  --gold2: #a37b2c;
  --warn: #9a5b0c;
  --bad: #b03a2a;
  --ok: #1f6a50;
  /* tier metals (flat): face, body, shadow */
  --t1: #a8935f; --t2: #6f7a80; --t3: #4f6b74; --t4: #4a4453;
  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  /* shape: square-cut like a printed form, softer only on the outer frame */
  --r-sm: 3px;
  --r: 4px;
  --r-lg: 6px;
  --sh1: none;
  --sh2: 0 1px 0 rgba(28, 27, 24, .06);
  --sh3: 0 18px 40px -18px rgba(40, 32, 18, .45);
  --wrap: 1120px;
  --pad: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --heavy: cubic-bezier(.65, 0, .25, 1);
}
/* Inside the vault: same roles, dark warm graphite. Minigames are drawn against these. */
body.inside {
  color-scheme: dark;
  --bg: #121311; --bg2: #171815; --panel: #1b1c19; --panel2: #1f201d; --raise: #282925; --well: #0d0e0c;
  --line: rgba(236, 231, 220, .09); --line2: rgba(236, 231, 220, .17);
  --fg: #ece7dc; --dim: #a7a194; --faint: #736e63;
  --acc: #7fb9a0; --acc2: #69a58b; --acc-ink: #0c1a14;
  --gold: #d8b36a; --gold2: #b38a3e; --warn: #e0a24a; --bad: #e3695b; --ok: #7fb9a0;
  --sh2: none; --sh3: 0 18px 40px -16px rgba(0, 0, 0, .7);
}
.t1 { --tc: var(--t1); --m1: #e6d8b6; --m2: #cdbb90; --m3: #8f7c54; }
.t2 { --tc: var(--t2); --m1: #d9dcdb; --m2: #b1b7b8; --m3: #6c7579; }
.t3 { --tc: var(--t3); --m1: #c9d3d3; --m2: #96a8ac; --m3: #546a70; }
.t4 { --tc: var(--t4); --m1: #6b6574; --m2: #4a4453; --m3: #2a2630; }
body.inside .t1 { --tc: #d8c08a; } body.inside .t2 { --tc: #b4bec3; } body.inside .t3 { --tc: #8fb3bd; } body.inside .t4 { --tc: #a99cc0; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { min-height: 100dvh; overflow-x: hidden; transition: background-color .5s var(--ease); }
/* Paper tooth: a faint fixed grain so the ground is not a flat fill. */
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.inside::after { opacity: 0; }
#app { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
input { font: inherit; }
a { color: var(--acc); text-underline-offset: 3px; }
p { line-height: 1.55; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--acc) 25%, transparent); }
h1, h2, h3 { text-wrap: balance; }
.boot { padding: 24px; color: var(--dim); font-family: var(--mono); }
.vbdefs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vbdefs .hatch { stroke: rgba(28, 27, 24, .45); stroke-width: .7; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--dim); }
.small { font-size: 13px; }
.center { text-align: center; }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.ok { color: var(--ok); }
.gold { color: var(--gold); }
.ic { flex: none; display: inline-block; vertical-align: -3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- alarm edge (inside only) ---------- */
.bgfx, .bgfx i { display: none; }
body::before { content: ""; position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0; transition: opacity .4s;
  box-shadow: inset 0 0 0 2px rgba(227, 105, 91, .55), inset 0 0 70px rgba(227, 105, 91, .14); }
body.alarm::before { opacity: 1; animation: tension 2.4s ease-in-out infinite; }
@keyframes tension { 50% { opacity: .55; } }

/* ---------- header: a letterhead ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line2); }
.top .wrap { display: flex; align-items: center; gap: 8px; height: 58px; }
.brandlink { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: var(--fg); }
.logo-mark .lm-bg { fill: var(--ink); stroke: none; }
body.inside .logo-mark .lm-bg { fill: #ece7dc; }
.logo-mark .lm-ring, .logo-mark .lm-chip { fill: none; stroke: var(--bg); stroke-width: 3.2; stroke-linejoin: round; }
.logo-mark .lm-chip { transform: translate(2px, -1.5px); stroke: #c39a4a; }
.logo-mark .lm-hub { fill: #c39a4a; }
.logo-mark .lm-spoke { stroke: var(--bg); stroke-width: 3; stroke-linecap: round; fill: none; }
.wordmark { font-family: var(--display); font-weight: 650; font-size: 21px; letter-spacing: -.01em; font-variation-settings: "opsz" 72; }
.wordmark b { font-weight: 400; font-style: italic; }
.top .sp { flex: 1; }
.topnav { display: none; gap: 2px; margin-left: 22px; align-self: stretch; }
.topnav button { background: none; border: 0; color: var(--dim); padding: 0 14px; font-weight: 500; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; position: relative;
  transition: color .2s; }
.topnav button:hover { color: var(--fg); }
.topnav button.on { color: var(--fg); }
.topnav button.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--fg); }
.pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line2); border-radius: var(--r-sm); height: 26px; padding: 0 8px; font-size: 11px; white-space: nowrap; color: var(--fg); font-family: var(--mono); }
.pill.demo { color: var(--bad); border: 1.5px solid currentColor; letter-spacing: .14em; font-weight: 700; transform: rotate(-2deg); }
.wallet { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); border: 0; color: var(--bg); border-radius: var(--r); padding: 0 14px; height: 36px; font-size: 13.5px; font-weight: 600; white-space: nowrap; flex: none;
  transition: transform .15s var(--ease), background-color .2s; }
body.inside .wallet { background: #ece7dc; color: #121311; }
.wallet:hover { background: var(--acc); }
.wallet:active { transform: translateY(1px); }
.wallet.on, body.inside .wallet.on { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
.wallet.on .ic { color: var(--acc); }
.icon { background: transparent; border: 1px solid var(--line2); border-radius: var(--r); width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--fg); flex: none; text-decoration: none; transition: background-color .2s; }
.icon:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.icon[aria-pressed="true"] { color: var(--faint); }
body.alarm .top { border-bottom-color: color-mix(in srgb, var(--bad) 60%, transparent); }

/* ---------- bottom tabs (phone) ---------- */
nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-top: 1px solid var(--line2); padding-bottom: env(safe-area-inset-bottom); }
nav.tabs .in { display: flex; max-width: 560px; margin: 0 auto; }
nav.tabs button { flex: 1; background: none; border: 0; padding: 8px 0 9px; color: var(--faint); font-size: 10.5px; letter-spacing: .12em; font-weight: 600; min-height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; transition: color .2s; }
nav.tabs button.on { color: var(--fg); }
nav.tabs button.on::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: var(--fg); }

main { flex: 1; padding: 22px 0 104px; overflow-x: clip; }
.two { margin-top: 30px; }
.two h2:first-child { margin-top: 4px; }

/* ---------- headings, buttons, surfaces ---------- */
h2 { font-family: var(--display); font-size: 21px; font-weight: 560; letter-spacing: -.01em; color: var(--fg); margin: 34px 0 12px; font-variation-settings: "opsz" 36;
  display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--fg); }
h2:first-child { margin-top: 4px; }
h2 .cnt { font-family: var(--mono); font-size: 12px; color: var(--faint); font-weight: 500; }
h2 .end { margin-left: auto; font-family: var(--sans); font-weight: 400; color: var(--faint); font-size: 12px; }
h2:empty { display: none; }
h3 { font-size: 13px; color: var(--dim); margin: 12px 0 6px; font-weight: 600; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line2); }
.sechead h2 { margin: 0; padding: 0; border: 0; }
.lead { margin: 2px 0 18px; }
.lead h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 9vw, 52px); line-height: 1; letter-spacing: -.012em; margin: 0 0 10px; font-variation-settings: "opsz" 144; }
.lead p { margin: 0; color: var(--dim); max-width: 46ch; font-size: 15px; text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--acc); color: var(--acc-ink);
  border: 0; border-radius: var(--r); padding: 10px 16px; font-weight: 600; letter-spacing: .06em; min-height: 46px; font-size: 14px; text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.btn:hover:not(:disabled) { background: var(--acc2); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.btn.wide { width: 100%; }
.btn:disabled { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line2); cursor: default; }
.btn.why { font-size: 12px; letter-spacing: .1em; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--sh2); }
.term { background: var(--well); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px; line-height: 1.65; font-family: var(--mono); }
.empty { color: var(--dim); text-align: center; padding: 30px 18px; border: 1px dashed var(--line2); border-radius: var(--r); }
.empty .ic { color: var(--faint); margin-bottom: 8px; }
.empty b { display: block; color: var(--fg); font-family: var(--display); font-weight: 560; font-size: 20px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.banner { display: flex; gap: 10px; align-items: center; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); color: var(--warn); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.field { display: block; width: 100%; background: var(--panel); color: var(--fg); border: 0; border-bottom: 1.5px solid var(--fg); border-radius: var(--r-sm) var(--r-sm) 0 0; padding: 13px 12px; margin: 10px 0; font-size: 16px; transition: background-color .2s, border-color .2s; }
body.inside .field { background: var(--well); border-bottom-color: var(--line2); }
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-bottom-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, var(--panel)); }
details { margin-top: 10px; }
summary { color: var(--dim); cursor: pointer; padding: 6px 0; }
.tag { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 1px 6px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.tag.t1, .tag.t2, .tag.t3, .tag.t4 { color: var(--tc); border-color: color-mix(in srgb, var(--tc) 45%, transparent); }
.tdot { display: inline-block; width: 9px; height: 9px; border-radius: 1px; background: var(--tc); flex: none; transform: rotate(45deg); }
.live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: middle; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv span { color: var(--dim); }
.kv b { font-family: var(--mono); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #f1ede3; box-shadow: var(--sh3);
  padding: 12px 16px; border-radius: var(--r); z-index: 60; max-width: min(92vw, 440px); font-size: 14px; animation: toastin .3s var(--ease); }
body.inside .toast { background: #ece7dc; color: #121311; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } }
footer.build { text-align: center; font-size: 10px; color: var(--faint); padding: 30px 0 4px; letter-spacing: .1em; font-family: var(--mono); }

/* ---------- avatars: stamped monograms ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 30%; flex: none; font-family: var(--display); font-weight: 600; font-size: 14px; color: #f5f2ea;
  background: var(--a1); letter-spacing: .01em; }
.av.lg { width: 60px; height: 60px; font-size: 22px; }
.av.xl { width: 72px; height: 72px; font-size: 27px; }
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.hue0 { --a1: #1f5a48; } .hue1 { --a1: #2f4f6b; } .hue2 { --a1: #5b4a6e; } .hue3 { --a1: #8a3f3a; } .hue4 { --a1: #8a6a2a; } .hue5 { --a1: #4d6a33; }
.hue6 { --a1: #2c6464; } .hue7 { --a1: #6e3f5e; } .hue8 { --a1: #9a5530; } .hue9 { --a1: #5d5b55; } .hue10 { --a1: #3b4a7a; } .hue11 { --a1: #6d6a2a; }

/* ---------- rewards pot: a banknote strip ---------- */
.hero { position: relative; overflow: hidden; margin: 30px 0 0; padding: 18px 18px 16px; border: 1px solid var(--line2); border-radius: var(--r-lg);
  background: var(--panel); }
.hero::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: var(--r-sm); pointer-events: none; }
svg.guilloche { display: block; fill: none; }
svg.guilloche .g1 { stroke: color-mix(in srgb, var(--acc) 40%, transparent); stroke-width: .35; }
svg.guilloche .g2 { stroke: color-mix(in srgb, var(--gold2) 45%, transparent); stroke-width: .35; }
svg.guilloche .g3 { stroke: color-mix(in srgb, var(--acc) 50%, transparent); stroke-width: .35; }
.hero svg.hg { position: absolute; right: -70px; top: -40px; width: 220px; height: 220px; opacity: .55; pointer-events: none; }
.potlbl { position: relative; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--dim); }
.potlbl > span:first-child { font-family: var(--display); font-size: 17px; color: var(--fg); font-weight: 560; }
.livet { font-size: 12px; color: var(--ok); display: inline-flex; align-items: center; }
.potamt { position: relative; font-family: var(--display); font-size: clamp(34px, 11vw, 50px); font-weight: 600; color: var(--fg); letter-spacing: -.02em; margin: 6px 0 2px; line-height: 1.05;
  white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "opsz" 144; }
.potamt small { font-family: var(--sans); font-size: 13px; color: var(--dim); font-weight: 500; letter-spacing: 0; margin-left: 8px; }
.potsub { font-size: 12px; color: var(--dim); }
.counters { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--line2); }
.counter { padding: 10px 10px 0 0; min-width: 0; }
.counter + .counter { padding-left: 12px; border-left: 1px solid var(--line); }
.counter span { display: block; font-size: 12px; color: var(--dim); }
.counter b { display: block; position: relative; font-family: var(--mono); font-size: 16px; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* holder rule: a form line */
.hold { display: flex; align-items: center; gap: 12px; border-left: 3px solid var(--line2); padding: 6px 0 6px 12px; margin: 18px 0 0; font-size: 13px; }
.hold .ic { color: var(--dim); }
.hold > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hold b { font-size: 14px; font-weight: 600; }
.hold span { color: var(--dim); }
.hold.ok { border-left-color: var(--ok); } .hold.ok b, .hold.ok .ic { color: var(--ok); }
.hold.locked { border-left-color: var(--bad); } .hold.locked b, .hold.locked .ic { color: var(--bad); }

/* ---------- vault picker: one steel wall of deposit doors, divided by rules, not three floating cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.vgrid.picker { gap: 0; grid-template-columns: 1fr; border: 1px solid var(--fg); border-radius: var(--r-lg); background: var(--panel); overflow: hidden;
  box-shadow: 6px 6px 0 -1px var(--bg2), 6px 6px 0 0 var(--line2); }
.card.vault { padding: 0; margin: 0; overflow: hidden; display: flex; flex-direction: column; transition: opacity .35s var(--ease), background-color .25s; }
.vtop { position: relative; height: 128px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line2);
  background: color-mix(in srgb, var(--tc) 9%, var(--bg)); }
.vtop .vart { position: relative; width: 186px; height: 120px; transition: transform .5s var(--ease); }
.vtop .tierb { position: absolute; top: 10px; left: 10px; }
.vtop .code { position: absolute; top: 10px; right: 12px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.vtop .state { position: absolute; bottom: 8px; right: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg); background: var(--panel); border: 1px solid var(--line2); }
.chip.run { color: var(--ok); border-color: currentColor; }
.chip.lockd { color: var(--dim); }
.vbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.vname { font-weight: 600; font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbody .vname { font-family: var(--display); font-weight: 560; font-size: 18px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }
.bnt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 0 10px; border-bottom: 1px dashed var(--line2); }
.bnt span { font-size: 13px; color: var(--dim); }
.bnt b { font-family: var(--display); font-size: 26px; color: var(--fg); font-weight: 600; white-space: nowrap; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
.bnt b small { font-family: var(--sans); font-size: 11px; color: var(--dim); font-weight: 500; margin-left: 5px; letter-spacing: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.spec { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 13px; color: var(--dim); }
.spec .ic { color: var(--faint); }
.spec b { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--fg); }
.vbody .btn { margin-top: auto; }
.card.vault.locked .vart { opacity: .5; filter: grayscale(.6); }
.card.vault.locked .bnt b { color: var(--dim); }
.card.vault.running { outline: 2px solid var(--ok); outline-offset: -2px; }
/* picker cells */
.picker .card.vault { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.picker .card.vault + .card.vault { border-top: 1px solid var(--fg); }
.picker .vtop .tierb { display: none; }
.vlabel { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vlabel .chip { height: auto; padding: 0; border: 0; background: none; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.015em; text-transform: none; color: var(--fg); font-variation-settings: "opsz" 72; }
.pins { display: inline-flex; gap: 3px; align-items: flex-end; height: 20px; }
.pins i { width: 6px; height: 12px; border-radius: 3px 3px 1px 1px; border: 1.5px solid var(--fg); display: block; transition: height .3s var(--ease), background-color .3s; }
.pins i:nth-child(2) { height: 16px; } .pins i:nth-child(3) { height: 20px; }
.pins i.on { background: var(--fg); }
.picker.has-pick .card.vault:not(.picking) { opacity: .35; }
.card.picking { background: color-mix(in srgb, var(--acc) 7%, transparent) !important; }
.card.picking svg.vart .knob, .card.picking svg.vart .spoke { animation: knobturn .65s var(--heavy) both; }
.card.picking svg.vart .lamps circle { fill: var(--acc); transition: fill .2s .35s; }
svg.vart .knob, svg.vart .spoke { transform-box: fill-box; transform-origin: center; }
@keyframes knobturn { 40% { transform: rotate(-200deg); } 100% { transform: rotate(-120deg); } }
/* cracked vaults (recent): ledger rows */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 24px; }
.ccard { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ccard .vart { width: 56px; height: 37px; flex: none; }
.ccard .cc { flex: 1; min-width: 0; }
.ccard .cc b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ccard .cc span { font-size: 12px; color: var(--dim); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .camt { text-align: right; font-family: var(--mono); font-size: 14px; color: var(--fg); white-space: nowrap; }
.ccard .camt small { display: block; font-family: var(--sans); font-size: 11px; color: var(--ok); font-weight: 600; }

/* vault art: flat engraved metal, ink outlines, hatched recesses, no glow */
svg.vart .halo { display: none; }
svg.vart .shadow { fill: url(#vbhatch); opacity: .7; }
svg.vart .body { fill: var(--m2); stroke: var(--ink); stroke-width: 1.3; }
svg.vart .face { fill: var(--m1); stroke: var(--ink); stroke-width: 1; }
svg.vart .inset { fill: none; stroke: var(--ink); stroke-width: .6; opacity: .45; }
svg.vart .recess { fill: var(--m3); stroke: var(--ink); stroke-width: 1; }
svg.vart .hub { fill: var(--m2); stroke: var(--ink); stroke-width: 1; }
svg.vart .riv circle { fill: var(--ink); opacity: .55; }
svg.vart .spoke rect, svg.vart .spoke circle { fill: var(--m1); stroke: var(--ink); stroke-width: 1; }
svg.vart .hinge, svg.vart .foot { fill: var(--ink); }
svg.vart .lever circle, svg.vart .lever rect { fill: var(--ink); }
svg.vart .kbez { fill: var(--m2); stroke: var(--ink); stroke-width: 1; }
svg.vart .kface { fill: #f5f2ea; stroke: var(--ink); stroke-width: .8; }
svg.vart .ktick { stroke: var(--ink); stroke-width: .9; }
svg.vart .kcap { fill: var(--ink); }
svg.vart .bolts rect { fill: var(--m1); stroke: var(--ink); stroke-width: 1; }
svg.vart .kpad { fill: var(--ink); }
svg.vart .keys rect { fill: var(--m1); }
svg.vart .kslot { fill: var(--ink); }
svg.vart .facets polygon { stroke: var(--ink); stroke-width: .9; }
svg.vart .facets .fc0 { fill: #6b6574; } svg.vart .facets .fc1 { fill: #4a4453; } svg.vart .facets .fc2 { fill: #5a5463; }
svg.vart .core { fill: var(--m3); stroke: var(--ink); stroke-width: 1; }
svg.vart .seam { fill: none; stroke: #c39a4a; stroke-width: .9; stroke-dasharray: 3 3; }
svg.vart .lamps circle { fill: var(--ink); }

/* ---------- board ---------- */
.seg { display: inline-flex; gap: 0; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.seg button { background: none; border: 0; padding: 7px 12px; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { color: var(--bg); background: var(--fg); }
.boardgrid { display: grid; gap: 18px; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 8px; padding: 22px 12px 0; border: 1px solid var(--line2); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.pod .pn { font-weight: 600; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pe { font-family: var(--mono); font-size: 13px; color: var(--fg); white-space: nowrap; }
.pod .ps { font-size: 11px; color: var(--dim); }
.pod .av { box-shadow: 0 0 0 3px var(--panel), 0 0 0 4.5px var(--medal); }
.pod .step { width: 100%; margin-top: 8px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--fg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 6L6 0' stroke='%231c1b18' stroke-opacity='.18' stroke-width='1'/%3E%3C/svg%3E"); border: 1px solid var(--line2); border-bottom: 0; }
.pod.r1 { --medal: #a37b2c; } .pod.r2 { --medal: #8a9196; } .pod.r3 { --medal: #9a5530; }
.pod.r1 .step { height: 92px; } .pod.r2 .step { height: 66px; } .pod.r3 .step { height: 48px; }
.pod.none { opacity: .4; }
.lrows { border-top: 1px solid var(--fg); }
.lrow { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.lrow.me { background: color-mix(in srgb, var(--acc) 8%, transparent); }
.lrow .rk { font-family: var(--display); color: var(--dim); font-size: 17px; text-align: center; }
.lrow .nm { min-width: 0; }
.lrow .nm b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .nm span { font-size: 12px; color: var(--dim); }
.lrow .am { font-family: var(--mono); color: var(--fg); font-size: 14px; text-align: right; white-space: nowrap; }
.lhead { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; gap: 12px; padding: 8px 2px; font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--line2); }
.lhead span:nth-child(2) { width: 36px; }

/* ---------- pool ---------- */
.poolgrid { display: grid; gap: 18px; }
.potcard { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--line2); background: var(--panel); }
.bigpot { text-align: center; padding: 26px 20px 24px; }
.bigpot::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); pointer-events: none; }
.bigpot svg.pg { width: 150px; height: 150px; margin: -6px auto 2px; }
.bigpot .potamt { font-size: clamp(36px, 11vw, 56px); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-content: start; }
.stat { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.stat .ic { color: var(--faint); }
.stat span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); }
.stat b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--fg); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 11px; color: var(--faint); font-weight: 400; margin-left: 3px; }
.splits { display: grid; gap: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.split .sl { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.split .sl small { color: var(--dim); font-weight: 400; font-size: 12px; }
.split .sv { font-family: var(--display); color: var(--fg); font-size: 19px; font-weight: 600; text-align: right; white-space: nowrap; }
.split .bar { grid-column: 1 / -1; height: 4px; background: var(--line); overflow: hidden; }
.split .bar i { display: block; height: 100%; background: var(--tc); }
.split .sm { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); font-family: var(--mono); gap: 8px; flex-wrap: wrap; }
.feed { }
.feed .fr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed .fr .fm b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .fr .fm span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); overflow: hidden; white-space: nowrap; }
.feed .fr .fa { text-align: right; font-family: var(--mono); color: var(--fg); white-space: nowrap; font-size: 14px; }
.feed .fr .fa small { display: block; color: var(--faint); font-size: 11px; }
.info { display: grid; gap: 0; }
.info > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--dim); }
.info > div .ic { color: var(--acc); margin-top: 3px; }
.info > div b { color: var(--fg); font-weight: 600; }

/* ---------- me ---------- */
.megrid { display: grid; gap: 18px; }
.profile { display: flex; gap: 16px; align-items: center; padding: 18px; overflow: hidden; }
.profile .pinfo { flex: 1; min-width: 0; }
.profile .pname { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile .psub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 8px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 4px 4px 2px; min-width: 0; }
/* a wax-seal style medallion: double ring */
.badge .bm { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bg);
  background: var(--tc, var(--acc)); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--tc, var(--acc)); }
.badge b { font-size: 13px; font-weight: 600; margin-top: 6px; }
.badge span { font-size: 11.5px; color: var(--dim); line-height: 1.35; }
.badge.off .bm { color: var(--faint); background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.badge.off b { color: var(--dim); }
.claims { }
.claims .cr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.claims .cr .cn { min-width: 0; }
.claims .cr .cn b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claims .cr .cn span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.claims .cr .ca { font-family: var(--mono); color: var(--fg); font-size: 14px; white-space: nowrap; }
/* status: rubber-stamp marks, square, slightly askew */
.stp { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; border: 1.5px solid; white-space: nowrap; transform: rotate(-2deg); display: inline-block; }
.stp.pending { color: var(--warn); } .stp.paid { color: var(--ok); } .stp.void { color: var(--bad); } .stp.held { color: var(--t3); }
a.stp { text-decoration: none; }
.kvs { margin: 8px 0 12px; } .kvs > div { margin: 4px 0; }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps > div { counter-increment: s; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--dim); }
.steps > div::before { content: counter(s); flex: none; width: 22px; font-family: var(--display); font-size: 22px; line-height: 1; font-weight: 600; color: var(--fg); }
.steps > div b { color: var(--fg); }
.key { word-break: break-all; font-size: 12px; font-family: var(--mono); background: var(--well); border: 1px solid var(--line2); padding: 10px; border-radius: var(--r-sm); user-select: all; }
.wfull { overflow-wrap: anywhere; margin-top: 4px; font-family: var(--mono); }
#claim { margin-top: 12px; }

/* ---------- join ---------- */
.join { display: grid; gap: 18px; padding: 10px 0 40px; align-items: center; }
.jhero { position: relative; width: 236px; height: 236px; margin: 0 auto; display: grid; place-items: center; }
.jhero svg.jg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jhero svg.vdoor { position: relative; width: 66%; height: 66%; }
.jcopy h1 { font-family: var(--display); font-size: clamp(38px, 11vw, 68px); line-height: .98; letter-spacing: -.012em; margin: 10px 0 14px; font-weight: 600; font-variation-settings: "opsz" 144; }
.jcopy h1 em { font-style: italic; font-weight: 400; color: var(--acc); }
.jcopy .lede { color: var(--dim); font-size: 16px; margin: 0 0 18px; max-width: 48ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line2); padding-bottom: 6px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-bottom: 20px; border-top: 1px solid var(--line2); }
.feats div { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--fg); padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.feats .ic { color: var(--acc); }
.jform { max-width: 460px; }
.jform .row { display: grid; gap: 10px; }
.jform .field { margin: 0; }
.jform .or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 2px 0; font-style: italic; font-family: var(--display); }
.jform .or::before, .jform .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.jform .fine { color: var(--faint); font-size: 12px; line-height: 1.5; margin: 14px 0 0; }
.jform details .field { margin: 8px 0; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(28, 27, 24, .55); display: flex; align-items: flex-end; justify-content: center; overscroll-behavior: contain;
  padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); animation: fadein .2s ease-out; }
.sheet .card { width: 100%; max-width: 420px; margin: 0; max-height: 90vh; overflow-y: auto; box-shadow: var(--sh3); animation: sheetup .3s var(--ease); }
.sheet .card h2 { margin-top: 0; }
@keyframes fadein { from { opacity: 0; } }
@keyframes sheetup { from { transform: translateY(24px); opacity: 0; } }
.wbtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.wicon { width: 22px; height: 22px; border-radius: 4px; }

/* ---------- breach (inside the vault) ---------- */
.breach { max-width: 640px; margin: 0 auto; }
.bhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bhead .btn.ghost { min-height: 40px; width: 40px; padding: 0; flex: none; }
.bhead .t { flex: 1; min-width: 0; }
.bhead .vname { font-family: var(--display); font-weight: 560; font-size: 18px; }
.bhead .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--dim); }
.timer { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--fg); min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer.low { color: var(--bad); }
.tbar { height: 3px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.tbar > i { display: block; height: 100%; background: var(--acc); transition: width 1s linear; }
body.alarm .tbar > i { background: var(--bad); }
.hud { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 12px; margin-bottom: 10px; background: var(--panel); }
svg.vdoor.hud-door { width: 84px; height: 84px; flex: none; }
.hudr { flex: 1; min-width: 0; }
.stitle { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 4px; letter-spacing: .1em; color: var(--fg); font-size: 14px; }
.stitle b { font-weight: 600; }
.stitle span { font-family: var(--mono); letter-spacing: .04em; }
.hudline { font-size: 12px; color: var(--dim); line-height: 1.45; margin-top: 4px; }
body.alarm .hud { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
body.alarm .hudline { color: var(--bad); }
.chain { display: flex; flex-wrap: wrap; gap: 4px; font-size: 10.5px; letter-spacing: .08em; font-weight: 600; }
.chain .lk { border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 2px 6px; color: var(--faint); }
.chain .lk.done { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.chain .lk.cur { color: var(--fg); border-color: var(--fg); }
.result .chain { justify-content: center; margin: 6px 0 10px; }
.strikes { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; letter-spacing: .1em; font-weight: 600; }
.strikes i { width: 5px; height: 12px; border-radius: 2px 2px 1px 1px; background: var(--acc); display: inline-block; transition: background-color .3s, transform .3s; }
.strikes i.used { background: var(--bad); transform: scaleY(.6); transform-origin: bottom; }
details.how { margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px; font-size: 13.5px; }
details.how summary { font-size: 11px; letter-spacing: .12em; font-weight: 600; }
details.how ul { margin: 0 0 10px; padding-left: 18px; line-height: 1.6; color: var(--fg); }
.msg { min-height: 22px; margin: 10px 0; text-align: center; font-size: 13.5px; }
.game { user-select: none; -webkit-user-select: none; }
.game > .card:first-child { box-shadow: none; }
.hint { display: flex; gap: 8px; align-items: baseline; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: var(--r-sm); padding: 9px 11px; margin: 8px 0; font-size: 12.5px; line-height: 1.45; }
.hint b { color: #1a1204; background: var(--warn); border-radius: 2px; padding: 1px 6px; font-size: 10px; letter-spacing: .1em; flex: none; }
.rotorg > .btn, .spliceg > .btn, .firewallg > .btn { margin-top: 12px; }

/* ---------- minigames (cipher, dials, pads) ---------- */
.cipher { font-family: var(--mono); font-size: 20px; letter-spacing: 3px; word-break: break-word; line-height: 1.6; text-align: center; padding: 10px 4px; }
.preview { font-family: var(--mono); font-size: 20px; letter-spacing: 3px; text-align: center; word-break: break-word; line-height: 1.6; padding: 10px 4px;
  border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--well); }
.d0 { color: #3ef0a1; } .d1 { color: #6fd3ff; } .d2 { color: #ffb86b; } .d3 { color: #ff7ad9; } .d4 { color: #f6ec6b; } .d5 { color: #b48cff; } .d6 { color: #ff8f6b; }
.dial { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.dial .lbl { width: 54px; font-size: 12px; font-family: var(--mono); }
.dial input[type=range] { flex: 1; min-width: 0; accent-color: var(--acc); height: 32px; }
.dial button { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--panel2); flex: none; }
.dial .val { width: 26px; text-align: center; font-family: var(--mono); }
.preview .leakok { color: var(--acc-ink); background: var(--acc); border-radius: 3px; }
.preview .leak { outline: 1px dashed currentColor; outline-offset: 1px; border-radius: 3px; }
.preview .chg { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.dnote { font-size: 11px; color: var(--dim); margin: -4px 0 8px 62px; line-height: 1.4; overflow-wrap: anywhere; }
.dnote b { color: var(--fg); }
.dnote.ok { color: var(--acc); }
.pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.pad button { height: 50px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--panel2); font-size: 18px; }
.pad button.go { background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 14px; letter-spacing: 1px; border: 0; }
.pad button:disabled { opacity: .3; }
.pad.eight { grid-template-columns: repeat(5, 1fr); }
.pad.ten { grid-template-columns: repeat(6, 1fr); }
.pad button.gk { background: var(--g); color: #06110b; font-weight: 800; border: 0; }
/* deduce */
.slots { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.slot { width: 52px; height: 58px; border: 1px solid var(--line2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: var(--well); }
.slot.cur { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.slots.long { gap: 5px; }
.slots.long .slot { width: 42px; height: 50px; }
.hist { list-style: none; margin: 8px 0 0; padding: 0; }
.hist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.hist li.new { animation: slidein .35s ease-out; }
.hist .code { display: flex; gap: 4px; }
.pegs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.peg { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line2); display: inline-block; }
.peg.x { background: var(--acc); border-color: var(--acc); }
.peg.n { border: 2px solid var(--warn); }
.gl { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #06110b; font-size: 16px; background: var(--g); }
.gl.sm { width: 22px; height: 22px; font-size: 11px; }
.g0 { --g: #3ef0a1; } .g1 { --g: #6fd3ff; } .g2 { --g: #ffb86b; } .g3 { --g: #ff7ad9; }
.g4 { --g: #f6ec6b; } .g5 { --g: #b48cff; } .g6 { --g: #ff6470; } .g7 { --g: #e8f0ec; } .g8 { --g: #8affd8; } .g9 { --g: #ff9f5c; }
/* rotor */
.rotorwrap { display: flex; justify-content: center; }
svg.rotor { width: min(240px, 66vw); height: auto; }
svg.rotor .bezel { fill: var(--well); stroke: var(--line2); stroke-width: 2; }
svg.rotor .mark { fill: var(--warn); }
svg.rotor .ring { transform-box: view-box; transform-origin: 0 0; transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
svg.rotor .track { fill: none; stroke: var(--rc); stroke-opacity: .3; stroke-width: 7; }
svg.rotor .tick { stroke: var(--rc); stroke-opacity: .5; stroke-width: 1.5; }
svg.rotor .notch { fill: var(--rc); stroke: var(--well); stroke-width: 2; }
svg.rotor .ring.ok .track { stroke-opacity: .85; }
.c0 { --rc: #3ef0a1; } .c1 { --rc: #6fd3ff; } .c2 { --rc: #ffb86b; } .c3 { --rc: #ff7ad9; } .c4 { --rc: #f6ec6b; } .c5 { --rc: #b48cff; } .c6 { --rc: #ff8f6b; }
.rcs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rc { display: flex; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--rc); border-radius: var(--r-sm); padding: 4px; min-width: 0; }
.rc button { width: 40px; height: 44px; flex: none; border-radius: 6px; border: 1px solid var(--line2); background: var(--well); font-size: 20px; color: var(--rc); }
.rc button:active { background: var(--raise); }
.rc .rl { flex: 1; min-width: 0; text-align: center; line-height: 1.1; font-family: var(--mono); }
.rc .rl b { color: var(--rc); display: block; }
.rc .rl small { font-size: 9px; color: var(--dim); }
/* splice */
.splice { display: grid; grid-template-columns: 14px repeat(var(--w), minmax(0, 1fr)) 14px; gap: 4px; align-items: center; margin: 6px auto; max-width: calc(var(--w) * 56px + 36px); }
.splice .gut { font-size: 12px; text-align: center; color: var(--dim); }
.splice .gut.src { color: var(--acc); }
.splice .gut.dst { color: var(--warn); }
.splice.live .gut.dst { color: var(--acc); }
.tile { aspect-ratio: 1; padding: 0; border-radius: 6px; border: 1px solid var(--line2); background: var(--well); display: flex; min-width: 0; }
.tile svg { width: 100%; height: 100%; transition: transform .18s ease-out; }
.tile path { stroke: #2c4a3d; stroke-width: 14; stroke-linecap: round; fill: none; }
.tile circle { fill: #2c4a3d; }
.tile.on { border-color: rgba(75, 214, 154, .4); }
.tile.on path { stroke: var(--acc); }
.tile.on circle { fill: var(--acc); }
/* hash scan */
.sig { text-align: center; margin: 4px 0; }
.sigv { font-family: var(--mono); font-size: 26px; letter-spacing: 6px; color: var(--warn); font-weight: 800; }
.sigv .wild { color: var(--dim); }
.hash { display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: 6px; margin: 8px 0 10px; }
.frag { min-height: 44px; border-radius: 6px; border: 1px solid var(--line2); background: var(--well); color: var(--fg); letter-spacing: 2px; font-size: 15px; padding: 0; font-family: var(--mono); }
.hash.long .frag { letter-spacing: 1px; font-size: 14px; }
.frag.on { border-color: var(--acc); color: var(--acc-ink); background: var(--acc); font-weight: 700; }
/* firewall */
.fw { display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); gap: 3px; margin: 6px auto; max-width: calc(var(--w) * 44px); }
.cell { aspect-ratio: 1; border-radius: 5px; background: #0e141b; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; transition: background-color .2s, box-shadow .2s; min-width: 0; }
.cell.wall { background: #262c36; border-color: #353d4a; }
.cell.pul { border: 1px dashed #7a2a33; }
.cell.pul.live { background: #4a0f18; border: 1px solid var(--bad); box-shadow: inset 0 0 8px rgba(255, 100, 112, .6); }
.cell.seen { background-color: #0f2a20; }
.cell.exit { color: var(--warn); border-color: var(--warn); }
.cell.me { color: var(--acc-ink); background: var(--acc); }
.dpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 280px; margin: 10px auto 0; }
.dpad button { height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--panel2); font-size: 20px; }
.dpad button[data-m=W], .dpad button.sm { font-size: 12px; letter-spacing: 1px; color: var(--dim); }
/* substitution */
.subw { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin: 8px 0 12px; }
.sw { display: inline-flex; gap: 3px; }
.st { width: 28px; padding: 2px 0; display: flex; flex-direction: column; align-items: center; border-radius: 5px; border: 1px solid var(--line2); background: var(--well); min-width: 0; font-family: var(--mono); }
.st b { font-size: 17px; line-height: 1.2; color: var(--fg); }
.st small { font-size: 10px; color: var(--dim); }
.st.set b { color: var(--acc); }
.st.crib { border-color: var(--warn); }
.st.crib b { color: var(--warn); }
.st.sel { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); background: #0d1d16; }
.kb { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.kb .k { height: 42px; border-radius: 6px; border: 1px solid var(--line2); background: var(--panel2); font-size: 16px; font-weight: 700; padding: 0; font-family: var(--mono); }
.kb .k.used { opacity: .35; }
.kb .k.wide2 { grid-column: span 2; }


/* ---------- working vault door (HUD, join, result): flat engraved steel ---------- */
svg.vdoor { display: block; overflow: visible; }
svg.vdoor .vframe { fill: var(--m2); stroke: var(--ink); stroke-width: 1.4; }
svg.vdoor .vrecess { fill: url(#vbhatch); stroke: var(--ink); stroke-width: 1; }
body.inside svg.vdoor .vrecess { fill: #0a0a09; }
svg.vdoor .bolt { fill: var(--m1); stroke: var(--ink); stroke-width: 1; transition: transform .5s var(--heavy), fill .3s; }
svg.vdoor .bolt.open { transform: translateX(-16px); fill: var(--acc); }
svg.vdoor .vplate { fill: var(--m1); stroke: var(--ink); stroke-width: 1.2; }
svg.vdoor .vplate2 { fill: none; stroke: var(--ink); stroke-width: .7; opacity: .45; }
svg.vdoor .vhub { fill: var(--m2); stroke: var(--ink); stroke-width: 1; }
svg.vdoor .rivets circle { fill: var(--ink); opacity: .6; }
svg.vdoor .wheel line { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
svg.vdoor .wheel circle { fill: var(--m1); stroke: var(--ink); stroke-width: 1.2; }
svg.vdoor .vdial { transform-box: view-box; transform-origin: 0 0; transition: transform .35s var(--heavy); }
svg.vdoor .dface { fill: #f5f2ea; stroke: var(--ink); stroke-width: 1.2; }
svg.vdoor .dtick { stroke: var(--ink); stroke-width: 1.1; }
svg.vdoor .dptr { fill: var(--bad); }
svg.vdoor .lamp { fill: #1f5a48; }
body.alarm svg.vdoor .lamp { fill: var(--bad); }
.join svg.vdoor.idle .vdial { transition-duration: .9s; }

/* ---------- result scenes ---------- */
.result { text-align: center; padding: 18px 0 24px; max-width: 520px; margin: 0 auto; }
.result .big { font-family: var(--display); font-size: clamp(30px, 9vw, 44px); font-weight: 600; letter-spacing: -.02em; margin: 16px 0 6px; font-variation-settings: "opsz" 144; }
.result .big.ok { color: var(--fg); } .result .big.bad { color: var(--bad); } .result .big.warn { color: var(--warn); }
.result .rmsg { color: var(--dim); max-width: 40ch; margin: 8px auto; }
/* the payout as a deposit slip */
.result .amt { position: relative; display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--display); font-size: 32px; font-weight: 600; color: #1c1b18; margin: 12px 0; padding: 12px 22px;
  background: #f1ece0; border-radius: var(--r-sm); box-shadow: 0 0 0 1px rgba(28, 27, 24, .15), 0 10px 24px -12px rgba(0, 0, 0, .8); animation: slip .6s 1.6s var(--ease) both; }
.result .amt::before { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(28, 27, 24, .3); border-radius: 2px; pointer-events: none; }
.result .amt small { font-family: var(--sans); font-size: 13px; color: #57534a; font-weight: 500; }
.result .btn { margin-top: 12px; }
.scene { position: relative; width: 240px; height: 240px; margin: 0 auto 4px; perspective: 900px; }
.scene .vhole { position: absolute; inset: 10px; border-radius: 50%; background: #0a0a09; border: 6px solid var(--m3, #2a2630);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* inside the opened door: shelves of brass, drawn flat */
.scene .rays { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 34px, rgba(216, 179, 106, .22) 34px 36px); opacity: 0; }
.scene.open .rays { opacity: 1; transition: opacity .8s 1.2s; }
.scene .loot { position: relative; text-align: center; color: var(--gold); animation: lootup .7s 1.5s var(--ease) both; }
.scene .coin { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; color: #1c1b18;
  background: #0a0a09; box-shadow: 0 0 0 3px #0a0a09, 0 0 0 4px #d8b36a; }
.scene .loot b { display: block; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }
.scene svg.vdoor.swing { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); transform-origin: 0% 50%;
  animation: swing 1.4s .75s var(--heavy) forwards; }
.scene svg.vdoor.swing .vdial { animation: unlockspin .7s .05s var(--heavy) both; }
.scene svg.vdoor.sealed { width: 100%; height: 100%; filter: saturate(.4) brightness(.8); }
.scene .bars { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 26px; pointer-events: none; overflow: hidden; border-radius: 50%; }
.scene .bars i { display: block; height: 12px; background: var(--bad); box-shadow: 0 1px 0 rgba(0, 0, 0, .5); animation: slam .35s var(--heavy) both; }
.scene .bars i:nth-child(1) { animation-delay: .2s; } .scene .bars i:nth-child(2) { animation-delay: .35s; } .scene .bars i:nth-child(3) { animation-delay: .5s; }
/* rubber stamp */
.scene .stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-9deg); color: var(--bad); border: 3px double var(--bad); padding: 6px 14px; border-radius: 3px;
  font-family: var(--mono); font-weight: 800; font-size: 20px; letter-spacing: .22em; background: #121311; animation: stamp .3s .8s var(--heavy) both; }

/* ---------- motion ---------- */
.flash { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: fade 1.1s ease-out forwards; }
.flash div { color: var(--acc); font-family: var(--mono); font-weight: 800; letter-spacing: .2em; font-size: 15px; border: 3px double currentColor; padding: 12px 18px; background: var(--bg); border-radius: 3px;
  transform: rotate(-4deg); animation: stampin .3s var(--heavy) both; }
.sweep { position: fixed; inset: 0; z-index: 38; pointer-events: none; animation: tintfade .7s ease-out forwards; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--acc) 60%, transparent); }
.sweep.bad { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bad) 70%, transparent); }
.sweep.gold { box-shadow: inset 0 0 0 2px rgba(216, 179, 106, .7); }
.jolt, .shake, .quake { animation: nudge .25s ease-out; }
.rise { animation: rise .5s var(--ease) both; }
.vgrid > .rise:nth-child(2) { animation-delay: .06s; } .vgrid > .rise:nth-child(3) { animation-delay: .12s; } .vgrid > .rise:nth-child(4) { animation-delay: .18s; }
.vgrid > .rise:nth-child(5) { animation-delay: .24s; } .vgrid > .rise:nth-child(6) { animation-delay: .3s; }
.rise svg.vart .knob { animation: knobsettle .9s .2s var(--heavy) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes knobsettle { from { transform: rotate(90deg); } }
@keyframes nudge { 30% { transform: translateX(-3px); } 65% { transform: translateX(3px); } }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
@keyframes fade { 0% { opacity: 0; } 12%, 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tintfade { from { opacity: 1; } to { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unlockspin { from { transform: rotate(0); } to { transform: rotate(-270deg); } }
@keyframes swing { 0% { transform: rotateY(0); } 12% { transform: rotateY(5deg); } 100% { transform: rotateY(-105deg); opacity: .95; } }
@keyframes lootup { from { opacity: 0; transform: translateY(18px); } }
@keyframes slip { from { opacity: 0; transform: translateY(14px) rotate(-2deg); } }
@keyframes slam { from { transform: translateX(-120%); } }
@keyframes stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(1.6); } }
@keyframes stampin { from { opacity: 0; transform: rotate(-4deg) scale(1.5); } }
.skel { border-radius: var(--r); background: linear-gradient(100deg, var(--panel) 30%, var(--bg2) 50%, var(--panel) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; border: 1px solid var(--line); }
.skel.card-s { height: 300px; }
.skel.row-s { height: 58px; margin-bottom: 8px; }
.skel.pot-s { height: 200px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene svg.vdoor.swing { transform: rotateY(-105deg); opacity: .95; }
}

/* ---------- responsive ---------- */
@media (max-width: 419px) { .top .pill.demo, .wl-long { display: none; } .wallet { padding: 0 12px; } }
/* phone picker: each door is a drawer, art left, terms right, button across */
@media (max-width: 719px) {
  .picker .card.vault { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
  .picker .vtop { height: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line2); grid-row: 1 / span 2; }
  .picker .vtop { overflow: hidden; }
  .picker .vtop .vart { width: 160px; height: 104px; flex: none; }
  .picker .vtop .code { top: auto; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 10px; }
  .picker .vbody { padding: 12px 14px 14px; gap: 10px; }
  .picker .bnt b { font-size: 24px; }
  .picker .bnt b { line-height: 1; text-align: right; }
  .picker .bnt b small { display: block; margin: 3px 0 0; }
}
@media (max-width: 359px) {
  :root { --pad: 12px; }
  html, body { font-size: 14px; }
  .top .wrap { gap: 6px; }
  .wordmark { display: none; }
  .cipher, .preview { font-size: 17px; letter-spacing: 2px; }
  .dial button { width: 36px; height: 36px; }
  .slot { width: 46px; height: 52px; }
  .rc button { width: 34px; }
  .frag { font-size: 13px; letter-spacing: 1px; }
  .hash.long .frag { font-size: 12px; letter-spacing: 0; }
  .sigv { font-size: 22px; }
  .st { width: 24px; }
  .st b { font-size: 15px; }
  .subw { gap: 8px 10px; }
  .dnote { margin-left: 0; }
  svg.vdoor.hud-door { width: 66px; height: 66px; }
  .scene { width: 200px; height: 200px; }
  .counter b { font-size: 14px; }
  .feats { grid-template-columns: 1fr; }
  .picker .card.vault { grid-template-columns: 88px minmax(0, 1fr); }
  .picker .vtop .vart { width: 136px; height: 88px; }
  .picker .bnt b { font-size: 21px; }
  .vlabel .chip { font-size: 21px; }
}
@media (min-width: 720px) {
  :root { --pad: 28px; }
  .lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: end; gap: 32px; margin-bottom: 22px; }
  .lead p { padding-bottom: 6px; }
  /* the wall: three doors side by side, Hard given the widest bay */
  .vgrid.picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.18fr); }
  .picker .card.vault + .card.vault { border-top: 0; border-left: 1px solid var(--fg); }
  .picker .vtop { height: 168px; }
  .picker .vtop .vart { width: 228px; height: 148px; }
  .picker .bnt b { font-size: 30px; }
  .picker .card.vault:hover:not(.locked) .vart { transform: translateY(-3px); }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; gap: 0 28px; padding: 22px 26px; }
  .hero .potlbl { grid-column: 1; }
  .hero .potamt { grid-column: 1; }
  .hero .counters { grid-column: 2; grid-row: 1 / span 2; margin: 0 150px 0 0; align-self: end; }
  .hero svg.hg { right: -40px; top: 50%; transform: translateY(-50%); width: 260px; height: 260px; }
  .boardgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
  .poolgrid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
  .megrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .join { grid-template-columns: minmax(0, 1fr) 340px; padding: 56px 0; gap: 56px; }
  .join .jhero { width: 340px; height: 340px; order: 2; }
  .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
}
@media (min-width: 900px) {
  .topnav { display: flex; }
  nav.tabs { display: none; }
  main { padding: 34px 0 56px; }
  .toast { bottom: 24px; }
  .vtop { height: 160px; }
  .vtop .vart { width: 228px; height: 148px; }
}
@media (min-width: 1500px) { :root { --wrap: 1240px; } }

/* picked vault + choice cards */
.mine { display: grid; gap: 10px; max-width: 520px; }
.mine .card.vault { border: 1px solid var(--fg); }
.minefoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.minefoot .small { display: inline-flex; align-items: center; gap: 4px; }
.btn.sm { padding: 8px 14px; font-size: 12px; min-height: 0; }
.empty.calm { border-style: solid; }
.empty.calm b { display: block; margin: 8px 0 4px; color: var(--fg); }
.sechead:first-child { margin-top: 4px; }
#app:not(:has(> header)) { padding: 16px var(--pad); max-width: 1180px; margin: 0 auto; width: 100%; }

/* ---------- v17 vault room: the whole screen is the vault. Front with the door, the opening and camera move,
   then a wall of deposit boxes where the three open to you are lit. ---------- */
.room { --H: max(460px, calc(100svh - 58px)); --D: min(86vw, calc(var(--H) - 230px), 480px);
  --top: max(84px, calc((var(--H) - var(--D)) / 2 - 40px)); --cy: calc(var(--top) + var(--D) / 2);
  --cols: 6; --rowh: clamp(36px, calc((var(--H) - 96px) / 9 - 5px), 58px); --px: 0; --py: 0;
  position: relative; height: var(--H); margin: -22px calc(50% - 50vw) 22px; overflow: hidden;
  background: #0b0c0a; color: #ece7dc; isolation: isolate; }
body.authed .room { --H: max(460px, calc(100svh - 116px - env(safe-area-inset-bottom))); }
.easy { --bx: #74a98f; }
.medium { --bx: #cfa856; }
.hard { --bx: #cf735a; }

/* inside: the far wall's light, a caption, the wall of boxes */
.vint { position: absolute; inset: 0; z-index: 0; }
.vin { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 8px 0; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.vfar { position: absolute; inset: -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(240, 222, 180, .13), transparent 70%), radial-gradient(ellipse 120% 80% at 50% 120%, rgba(0, 0, 0, .7), transparent 60%);
  transform: translate(calc(var(--px) * -6px), calc(var(--py) * -5px)); transition: transform .6s var(--ease); }
.rcap { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.rcap span:first-child { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -.005em; }
.rcap span + span { font-size: 12.5px; color: #a7a194; }
.bwall { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: var(--rowh); grid-auto-flow: row dense; gap: 5px;
  margin: 0 -14px; padding: 0 14px; transform: translate(calc(var(--px) * -16px), calc(var(--py) * -12px)); transition: transform .6s var(--ease); }
/* a closed box: brushed face, a small nameplate, a keyhole, an engraved number */
.wbox { position: relative; border-radius: 2px; background: linear-gradient(180deg, #1d1e1b, #191a17); box-shadow: inset 0 0 0 1px rgba(236, 231, 220, .07), inset 0 1px 0 rgba(236, 231, 220, .05);
  color: transparent; font: 500 8px var(--mono); letter-spacing: .08em; overflow: hidden; transition: background-color .3s; }
.wbox.w2 { grid-column: span 2; }
.wbox::before { content: ""; position: absolute; left: 50%; top: 22%; width: 34%; max-width: 30px; height: 4px; transform: translateX(-50%); background: rgba(236, 231, 220, .08); border-radius: 1px; }
.wbox::after { content: ""; position: absolute; left: 50%; top: 58%; width: 4px; height: 4px; transform: translate(-50%, -50%); border-radius: 50%; background: #080807; box-shadow: 0 0 0 2px #24251f; }
.wbox.fl { animation: flick 9s ease-in-out infinite; }
@keyframes flick { 0%, 88%, 100% { opacity: 1; } 90% { opacity: .6; } 92% { opacity: 1; } 94% { opacity: .75; } }
@media (hover: hover) { .wbox:hover { background: #24251f; } }
/* the lit boxes: two cells wide, two high, coloured plate, a lamp of their own colour */
.dbox { position: relative; z-index: 1; grid-column: var(--c) / span 2; grid-row: var(--r) / span 2; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 4px; min-width: 0; padding: 0 0 13px; border: 0; border-radius: 2px; background: #262723; color: #ece7dc; text-align: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bx) 70%, transparent), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 28px -6px color-mix(in srgb, var(--bx) 55%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s; }
.dbox.b0 { --c: 1; --r: 2; } .dbox.b1 { --c: 4; --r: 4; } .dbox.b2 { --c: 2; --r: 7; }
.dbox::before { content: ""; position: absolute; inset: -40% -30%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bx) 26%, transparent), transparent); animation: breathe 4.5s ease-in-out infinite; }
.dbox.b1::before { animation-delay: -1.5s; } .dbox.b2::before { animation-delay: -3s; }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.dbox .bplate { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 8px; border-radius: 2px 2px 0 0; background: var(--bx); color: #121311; }
.dbox .bplate b { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.dbox .pins, .boxview .pins { height: 14px; gap: 2px; }
.dbox .pins i, .boxview .pins i { width: 4.5px; height: 8px; border-width: 1.3px; border-color: currentColor; }
.dbox .pins i:nth-child(2), .boxview .pins i:nth-child(2) { height: 11px; } .dbox .pins i:nth-child(3), .boxview .pins i:nth-child(3) { height: 14px; }
.dbox .pins i.on, .boxview .pins i.on { background: currentColor; }
.khole { width: 22px; height: 32px; flex: none; }
.khole .kplate { fill: #31322d; stroke: color-mix(in srgb, var(--bx) 60%, #000); stroke-width: 1.2; }
.khole .kcut { fill: #0b0b0a; }
.dbox .khole, .dbox .bmeta { display: none; }
.dbox .bval { display: flex; flex-direction: column; gap: 1px; padding: 0 4px; }
.dbox .bval b { font-family: var(--display); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; color: color-mix(in srgb, var(--bx) 45%, #ece7dc); }
.dbox .bval small, .dbox .bmeta { font-size: 10.5px; color: #a7a194; }
.dbox .bmeta { padding: 0 4px; line-height: 1.3; }
.dbox .pull { width: 40%; height: 5px; flex: none; border-radius: 3px; background: #3a3b36; box-shadow: inset 0 0 0 1px rgba(236, 231, 220, .1); transition: transform .25s var(--ease); }
.dbox:hover, .dbox:focus-visible { transform: translateY(-3px); background: #2c2d28; box-shadow: inset 0 0 0 1.5px var(--bx), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 36px -4px color-mix(in srgb, var(--bx) 70%, transparent); }
.dbox:hover .pull, .dbox:focus-visible .pull { transform: translateY(2px); }
.dbox:focus-visible { outline: 2px solid var(--bx); outline-offset: 3px; }
.dbox:active { transform: translateY(-1px) scale(.985); }
.dbox.off { opacity: .55; }
.dbox.off::before { display: none; }
/* while a box's detail is open the camera leans in on it */
.room.focus .vin { transform: scale(1.12); opacity: .45; }

/* outside: the vault front (steel, a ring around the door, corner bolts) with a hole the door fills */
.front { position: absolute; inset: 0; z-index: 1; perspective: 1100px; transform-origin: 50% var(--cy); }
.rwall { position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% var(--cy), rgba(236, 231, 220, .06), transparent 70%), repeating-linear-gradient(90deg, transparent 0 63px, rgba(236, 231, 220, .03) 63px 64px), linear-gradient(180deg, #1f201c, #141512);
  -webkit-mask: radial-gradient(circle at 50% var(--cy), transparent calc(var(--D) / 2 + 9px), #000 calc(var(--D) / 2 + 10px));
  mask: radial-gradient(circle at 50% var(--cy), transparent calc(var(--D) / 2 + 9px), #000 calc(var(--D) / 2 + 10px)); }
.rwall::before { content: ""; position: absolute; left: 50%; top: calc(var(--top) - 9px); width: calc(var(--D) + 18px); height: calc(var(--D) + 18px);
  margin-left: calc(var(--D) / -2 - 9px); border-radius: 50%; box-shadow: 0 0 0 1px rgba(236, 231, 220, .1), 0 0 0 9px #262722, 0 0 0 10px rgba(236, 231, 220, .08), 0 0 0 22px #1c1d19, 0 0 0 23px rgba(236, 231, 220, .05), 0 0 80px 30px rgba(0, 0, 0, .45); }
.rwall i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #2c2d29; box-shadow: inset 0 0 0 1px rgba(236, 231, 220, .12); }
.rwall i:nth-child(1) { left: 14px; top: 14px; } .rwall i:nth-child(2) { right: 14px; top: 14px; }
.rwall i:nth-child(3) { left: 14px; bottom: 14px; } .rwall i:nth-child(4) { right: 14px; bottom: 14px; }
/* the door jamb: the thickness of the wall, seen once the door has swung */
.jamb { position: absolute; left: 50%; top: calc(var(--top) - 9px); width: calc(var(--D) + 18px); height: calc(var(--D) + 18px); margin-left: calc(var(--D) / -2 - 9px); border-radius: 50%;
  box-shadow: inset 0 0 0 10px #2a2b26, inset 0 0 0 11px rgba(236, 231, 220, .1), inset 0 0 40px 14px rgba(0, 0, 0, .75); pointer-events: none; }
.door3d { position: absolute; left: 50%; top: var(--top); width: var(--D); height: var(--D); margin-left: calc(var(--D) / -2); transform-style: preserve-3d; }
.dleaf { position: absolute; inset: 0; transform-origin: 4% 50%; transform-style: preserve-3d; }
.dleaf svg.bigdoor { position: absolute; inset: -7.3%; width: 114.6%; height: 114.6%; backface-visibility: hidden; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.dback { position: absolute; inset: 0; border-radius: 50%; background: #2a2b27; box-shadow: inset 0 0 0 6px #22231f, inset 0 0 0 7px rgba(236, 231, 220, .1); transform: rotateY(180deg); backface-visibility: hidden; }
.room.open .front { display: none; }
.bigdoor .bbolts rect { fill: #8e938d; stroke: #1c1d1a; stroke-width: 1; }
.bigdoor .bplate { fill: #a9ada6; stroke: #1c1d1a; stroke-width: 1.4; }
.bigdoor .bline { fill: none; stroke: #4f524d; stroke-width: .8; }
.bigdoor .brivets circle { fill: #7c807a; stroke: #3d3f3b; stroke-width: .6; }
.bigdoor .bface { fill: #bdc0b8; stroke: #4f524d; stroke-width: .9; }
.bigdoor .bhubbg { fill: #a3a79f; stroke: #3d3f3b; stroke-width: .9; }
.bigdoor svg.bhub path { fill: none; stroke: #5d5f58; stroke-width: .45; }
.bigdoor .bhinge { fill: #7c807a; stroke: #1c1d1a; stroke-width: .9; }
.bigdoor .bwheel rect, .bigdoor .bwheel circle { fill: #d7d9d2; stroke: #1c1d1a; stroke-width: 1.1; }
.bigdoor .bwheel circle.wring { fill: none; stroke: #1c1d1a; stroke-width: 5.5; }
.bigdoor .dface { fill: #1f201d; stroke: #0c0d0b; stroke-width: 1.2; }
.bigdoor .bdial line { stroke: #cfd1ca; stroke-width: .7; }
.bigdoor .dnum { fill: #cfd1ca; font: 500 4.2px var(--mono); text-anchor: middle; dominant-baseline: central; }
.bigdoor .dcap { fill: #8e938d; }
.bigdoor .bidx { fill: var(--gold2); }
.bigdoor .bplateno { fill: #1f201d; }
.bigdoor .bno { fill: #c9a24f; font: 600 4.6px var(--mono); letter-spacing: .12em; text-anchor: middle; }
.bigdoor .glint { fill: #fff; opacity: 0; }
.room.closed .bigdoor .bdial { animation: dialidle 7s var(--ease) infinite; }
.room.closed .bigdoor .glint { animation: glint 7s ease-in-out infinite 1.2s; }
@keyframes dialidle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-36deg); } 55% { transform: rotate(14deg); } 75% { transform: rotate(-7deg); } }
@keyframes glint { 0%, 70% { opacity: 0; transform: rotate(24deg) translateX(-150px); } 76% { opacity: .16; } 90%, 100% { opacity: 0; transform: rotate(24deg) translateX(190px); } }
/* the pot, engraved above the door; the CTA or the notice below it */
.rplate { position: absolute; z-index: 2; left: 50%; top: 16px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border: 1px solid rgba(236, 231, 220, .14); background: rgba(11, 12, 10, .35); transition: opacity .25s; }
.rplate span { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a7a194; }
.rplate b { font-family: var(--display); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rplate small { font-size: 11px; color: #a7a194; }
.rfoot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; text-align: center; transition: opacity .25s; }
.btn.crack { min-width: 230px; height: 52px; font-size: 16px; font-weight: 600; letter-spacing: .01em; background: #ece7dc; color: #121311; border-radius: var(--r); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8); }
.btn.crack:hover:not(:disabled) { background: #fff; }
.btn.crack:disabled { background: transparent; color: #a7a194; box-shadow: inset 0 0 0 1px rgba(236, 231, 220, .2); }
.rsub { font-size: 12.5px; color: #a7a194; max-width: 36ch; }
.rnotice { display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 36ch; font-size: 12.5px; color: #a7a194; }
.rnotice b { font-family: var(--display); font-size: 19px; font-weight: 500; color: #ece7dc; }
.rstamp { display: inline-block; padding: 3px 9px; border: 1.5px solid #e3695b; color: #e3695b; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); margin-bottom: 4px; }
.rstamp.run { border-color: currentColor; color: #121311; margin: 0; }
.skip { position: absolute; z-index: 4; top: 12px; right: 12px; display: none; height: 36px; padding: 0 14px; border: 0; border-radius: var(--r); background: rgba(236, 231, 220, .12); color: #ece7dc; font-size: 13px; }
.room.opening .skip, .room.fading .skip { display: block; }
/* the opening (~3 s): dial spins, bolts retract, wheel turns, the door swings, the camera moves through, boxes light */
.room.opening .rfoot, .room.opening .rplate { opacity: 0; pointer-events: none; }
.room.opening .bigdoor .bdial { animation: dialopen .8s var(--heavy) both; }
.room.opening .bigdoor .bbolts rect { animation: boltin .38s var(--heavy) .55s both; }
.room.opening .bigdoor .bwheel { animation: wheelturn .42s var(--heavy) .82s both; }
.room.opening .dleaf { animation: swing .95s cubic-bezier(.55, 0, .3, 1) 1.12s both; }
.room.opening .front { animation: camin 1.05s cubic-bezier(.6, 0, .3, 1) 1.6s both; }
.room.opening .vin { transform-origin: 50% var(--cy); animation: camout 1.05s cubic-bezier(.6, 0, .3, 1) 1.6s both; }
.room.opening .rcap { animation: rise .45s var(--ease) 2.35s both; }
.room.opening .dbox { animation: lightup .5s ease-out both; }
.room.opening .dbox.b0 { animation-delay: 2.35s; } .room.opening .dbox.b1 { animation-delay: 2.5s; } .room.opening .dbox.b2 { animation-delay: 2.65s; }
.room.fading .front { opacity: 0; transition: opacity .3s; }
.room.fading .vin { animation: fadein .3s both; }
.room.fading .rfoot { display: none; }
@keyframes dialopen { 0% { transform: rotate(0); } 45% { transform: rotate(-300deg); } 100% { transform: rotate(-180deg); } }
@keyframes boltin { to { transform: translateX(-15px); } }
@keyframes wheelturn { to { transform: rotate(90deg); } }
@keyframes swing { 0% { transform: rotateY(0); opacity: 1; } 75% { opacity: 1; } 100% { transform: rotateY(-105deg); opacity: 0; } }
@keyframes camin { 0% { transform: none; opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes camout { from { transform: scale(1.45); } }
@keyframes lightup { 0% { opacity: .35; filter: brightness(.5); } 100% { opacity: 1; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
/* the box pulled out: a dialog that zooms from the box (FLIP), coloured face on top, the ledger, back + take */
.bvscrim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 12px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(18, 19, 17, 0); transition: background-color .3s var(--ease); }
.bvscrim.on { background: rgba(18, 19, 17, .62); }
body.boxopen { overflow: hidden; }
.boxview { width: min(520px, 100%); background: #1b1c19; color: #ece7dc; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(236, 231, 220, .1), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.boxview.zoom { transition: transform .34s cubic-bezier(.3, .7, .2, 1), opacity .3s; }
.boxview > .bvbody, .boxview > .bvfoot { opacity: 0; transition: opacity .22s ease .16s; }
.boxview.in > .bvbody, .boxview.in > .bvfoot, .boxview.inline > .bvbody, .boxview.inline > .bvfoot { opacity: 1; }
/* Taking a box: the view dives into it, then the cracking screen opens out of it (v20). */
.boxview.taking { animation: bvdive .6s cubic-bezier(.5, 0, .75, 0) forwards; pointer-events: none; }
@keyframes bvdive { 0% { transform: none; opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
.breach.divein { animation: divein .6s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 35%; }
@keyframes divein { from { opacity: 0; transform: scale(1.7); filter: blur(6px); } 60% { opacity: 1; } }
.bvface { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: var(--bx); color: #121311; }
.bvface > div { min-width: 0; }
.bvface h2 { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.05; margin: 2px 0 6px; padding: 0; border: 0; letter-spacing: -.01em; outline: none; overflow-wrap: anywhere; }
.bvk { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.bvface .khole { width: 30px; height: 43px; }
.bvface .khole .kplate { fill: rgba(0, 0, 0, .14); stroke: rgba(0, 0, 0, .45); }
.bvbody { padding: 18px 18px 6px; }
.bvlbl { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a7a194; }
.boxview .bnt { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 8px; padding: 0; border: 0; }
.boxview .bnt .bvamt { font-family: var(--display); font-size: clamp(34px, 11vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; font-variant-numeric: tabular-nums; color: var(--bx); }
.boxview .bnt small { color: #a7a194; font-size: 13px; }
.bvnote { margin: 0 0 12px; color: #a7a194; font-size: 13.5px; text-wrap: pretty; }
.ledger { border-bottom: 1px solid rgba(236, 231, 220, .09); }
.ledger .lr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(236, 231, 220, .09); font-size: 14px; }
.ledger .lr > span { color: #a7a194; flex: none; }
.ledger .lr > b { font-weight: 500; text-align: right; min-width: 0; font-variant-numeric: tabular-nums; }
.ledger .lv { display: inline-flex; align-items: center; gap: 8px; }
.ledger .lamps { display: inline-flex; gap: 4px; }
.ledger .lamps i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--bx); }
.boxview .chain { margin: 12px 0 0; }
.boxview .chain .lk { color: #a7a194; border-color: rgba(236, 231, 220, .17); }
.bvwarn { display: flex; align-items: center; gap: 6px; color: #e3695b; font-size: 13px; margin: 12px 0 0; }
.bvfoot { position: sticky; bottom: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 14px 18px 18px; background: #1b1c19; }
.bvfoot .btn { height: 48px; }
.bvfoot .btn.ghost { color: #ece7dc; box-shadow: inset 0 0 0 1px rgba(236, 231, 220, .2); padding: 0 16px; }
.bvfoot .btn.ghost:hover:not(:disabled) { background: rgba(236, 231, 220, .07); }
.bvfoot .back { display: inline-flex; transform: rotate(180deg); }
.btn.take { background: var(--bx); color: #121311; font-weight: 600; }
.btn.take:hover:not(:disabled) { background: color-mix(in srgb, var(--bx) 85%, #fff); }
.btn.take:disabled { background: transparent; color: #a7a194; box-shadow: inset 0 0 0 1px rgba(236, 231, 220, .2); }
.mine { margin: 0 0 6px; }
.boxview.inline .bvface h2 { font-size: 24px; }
.boxview.inline { width: 100%; max-width: 640px; }
.boxview.inline .bvfoot { position: static; }
@media (min-width: 720px) {
  .room { --cols: 12; --D: min(56vw, calc(var(--H) - 290px), 500px); --top: max(124px, calc((var(--H) - var(--D)) / 2 - 40px)); }
  .vin { gap: 18px; padding: 26px 24px 0; }
  .rcap span:first-child { font-size: 28px; }
  .bwall { gap: 7px; }
  .wbox { color: rgba(236, 231, 220, .16); padding: 4px 5px; text-align: right; }
  .dbox.b0 { --c: 2; --r: 3; } .dbox.b1 { --c: 6; --r: 5; } .dbox.b2 { --c: 10; --r: 2; }
  .dbox { gap: 6px; padding-bottom: 16px; }
  .dbox .bplate { padding: 8px 12px; }
  .dbox .bplate b { font-size: 15px; }
  .dbox .bval b { font-size: 22px; }
  .dbox .bval small, .dbox .bmeta { font-size: 11.5px; }
  .dbox .bmeta { display: block; }
  .khole { width: 28px; height: 40px; }
  .rplate { top: 22px; padding: 10px 18px; }
  .rplate b { font-size: 22px; }
  .bvface { padding: 22px 26px; }
  .bvbody { padding: 22px 26px 8px; }
  .bvfoot { padding: 16px 26px 24px; }
}
@media (min-width: 900px) { .room { margin-top: -34px; } }
@media (min-width: 1200px) {
  .room { --cols: 16; }
  .dbox.b0 { --c: 3; --r: 3; } .dbox.b1 { --c: 8; --r: 5; } .dbox.b2 { --c: 13; --r: 2; }
}
@media (max-width: 359px) {
  .bwall { gap: 4px; }
  .vin { padding: 14px 6px 0; }
  .dbox .bplate { padding: 5px 6px; } .dbox .bplate b { font-size: 12px; }
  .dbox .bval b { font-size: 14px; }
  .bvface h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .room.fading .vin { animation: fadein .3s both !important; }
  .room.fading .front { transition: opacity .3s !important; }
  .dbox::before, .wbox.fl { animation: none !important; }
}

/* Solana mark next to SOL amounts */
.solamt, .bvamt { display: inline-flex; align-items: center; gap: .3em; }
.bnt .solamt, .bnt .bvnum { font-size: inherit; color: inherit; }
.sol-logo { flex: none; width: .72em; height: auto; min-width: 14px; display: inline-block; vertical-align: middle; }
.scene .coin .sol-logo { width: 34px; }

/* ---- the lock plate: every layer is a mechanism riveted onto the lock face ---- */
.breach .game { position: relative; border: 1px solid var(--line2); border-radius: 10px; padding: 18px 12px 12px; margin-top: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .12)); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18); }
.breach .game::before, .breach .game::after { content: ""; position: absolute; top: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.breach .game::before { left: 7px; } .breach .game::after { right: 7px; }

/* skill layers */
.nstat { min-height: 24px; text-align: center; font-family: var(--mono); font-size: 14px; margin: 6px 0; }
.btn.stop { min-height: 56px; font-size: 18px; letter-spacing: 3px; touch-action: manipulation; }
.btn.stop:disabled { opacity: .45; }
.pips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.pip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2); font: normal 11px var(--mono); color: var(--dim); }
.pip.cur { border-color: var(--acc); color: var(--fg); border-width: 2.5px; }
.pip.set { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.ndial { display: block; width: min(72vw, 260px); margin: 4px auto; touch-action: manipulation; cursor: pointer; }
.ndial .bezel { fill: none; stroke: var(--gold2); stroke-width: 5; }
.ndial .face { fill: var(--well); stroke: var(--line2); stroke-width: 1; }
.ndial .notch-arc { stroke: var(--acc); stroke-width: 15; stroke-linecap: butt; }
.ndial .needle { stroke: var(--bad); stroke-width: 4; stroke-linecap: round; }
.ndial .hub { fill: var(--fg); }
.needleg.off .ndial { opacity: .4; }
.ndial.ok .face { animation: okflash .5s; } .ndial.bad .face { animation: badflash .5s; }
@keyframes okflash { 30% { fill: var(--acc); } } @keyframes badflash { 30% { fill: var(--bad); } }
.lane { position: relative; height: 240px; overflow: hidden; border: 1px solid var(--line2); border-radius: 8px; background: var(--well); touch-action: manipulation; cursor: pointer; }
.lpin { position: absolute; left: 50%; top: 0; width: 44px; margin-left: -22px; height: 30px; border-radius: 4px 4px 14px 14px; background: var(--raise);
  border: 2px solid var(--fg); display: grid; place-items: center; font: bold 12px var(--mono); }
.lpin.set { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.lpin.miss { border-style: dashed; border-color: var(--bad); color: var(--bad); }
.shear { position: absolute; left: 0; right: 0; top: 190px; border-top: 3px dashed var(--gold2); }
.shear span { position: absolute; right: 6px; top: 4px; font: 10px var(--mono); color: var(--dim); letter-spacing: 2px; }
.lane.bad { animation: shake .3s; }
.tboard { display: block; width: min(100%, 320px); margin: 0 auto; touch-action: none; user-select: none; background: var(--well); border-radius: 8px; border: 1px solid var(--line2); }
.tlane { stroke: var(--raise); stroke-linejoin: round; stroke-linecap: round; }
.tmid { stroke: var(--faint); stroke-width: .6; stroke-dasharray: 2 2; }
.ttrail { stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tstart { fill: var(--acc); } .tend { fill: none; stroke: var(--gold2); stroke-width: 1.4; }
.tlbl { font: bold 4px var(--mono); text-anchor: middle; fill: var(--acc-ink); } .tend + .tlbl { fill: var(--fg); }
.tboard.bad { animation: shake .3s; }
.heat { height: 8px; border-radius: 4px; background: var(--well); margin: 8px auto 0; max-width: 320px; overflow: hidden; border: 1px solid var(--line2); }
.heat i { display: block; height: 100%; width: 0; background: var(--warn); }
.clues { margin: 6px 0 10px; padding-left: 22px; font-size: 15px; line-height: 1.55; }
.circuitg .nstat { margin: 10px 0 0; }

/* ===================================================================================================
   v22 heist palette + briefing (inbox 20261106-054107). Moody stays; the black + mint is gone:
   brass vault fittings, red laser security, blueprint-blue schematics, amber for clocks and tries,
   and one accent per lock type used on every chip in the game.
   =================================================================================================== */
body.inside {
  --brass: #d9b25f; --brass2: #a9842f; --brass-ink: #1a1307;
  --laser: #ff3b4e; --bp: #5b93ff; --bp-ink: #0b1424; --amber: #ffb02e;
  --acc: var(--brass); --acc2: #e8c87e; --acc-ink: var(--brass-ink); --gold: var(--brass); --warn: var(--amber); --bad: #ff5a5f;
  --ok: #7fc8a6;
}
html:has(body.inside), body.inside { background: #0e0f12; }
/* lock-type accents */
.k-rotor { --k: #5fa8ff; } .k-splice { --k: #ff8c42; } .k-firewall { --k: #ff4d6a; } .k-keyclue { --k: #e3bb62; }
.k-deduce { --k: #b592ff; } .k-cipher { --k: #3fd3b9; }
.k-needle { --k: #c8e45c; } .k-pins { --k: #ff8fcf; } .k-trace { --k: #e9e2cf; } .k-circuit { --k: #8fa6ff; }
.chain .lk[class*="k-"] { color: color-mix(in srgb, var(--k) 70%, var(--faint)); border-color: color-mix(in srgb, var(--k) 30%, transparent); }
.chain .lk.done[class*="k-"] { color: var(--k); border-color: color-mix(in srgb, var(--k) 55%, transparent); background: color-mix(in srgb, var(--k) 10%, transparent); }
.chain .lk.cur[class*="k-"] { color: var(--bg); background: var(--k); border-color: var(--k); }
.stitle[class*="k-"] b { color: var(--k); display: inline-flex; align-items: center; gap: 8px; }
.stitle[class*="k-"] b::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--k); box-shadow: 0 0 10px color-mix(in srgb, var(--k) 60%, transparent); }
/* the clock and the tries are amber; laser red when it is nearly gone */
body.inside .timer { color: var(--amber); }
body.inside .timer.low { color: var(--laser); text-shadow: 0 0 12px rgba(255, 59, 78, .45); }
body.inside .tbar > i { background: linear-gradient(90deg, var(--amber), #ffd27a); }
body.inside.alarm .tbar > i { background: var(--laser); }
body.inside .strikes i { background: var(--amber); }
body.inside .strikes i.used { background: var(--laser); }
.top .pill.demo { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, transparent); }

/* ---- the vault front: bigger door, brass fittings, blueprint overlay, laser grid ---- */
.room { --D: min(90vw, calc(var(--H) - 320px), 560px); --top: max(84px, calc((var(--H) - var(--D)) / 2 - 46px)); background: #08090b; }
.rwall { background: radial-gradient(ellipse 80% 60% at 50% var(--cy), rgba(91, 147, 255, .07), transparent 70%),
  repeating-linear-gradient(90deg, transparent 0 63px, rgba(236, 231, 220, .028) 63px 64px), linear-gradient(180deg, #17191d, #0e0f12); }
.rwall i { background: radial-gradient(circle at 35% 35%, #f0d38c, #8a6a26 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.bigdoor .bbolts rect { fill: #c79d48; stroke: #2a1f0b; }
.bigdoor .bhinge { fill: #b48a3a; stroke: #2a1f0b; }
.bigdoor .brivets circle { fill: #9c7a35; stroke: #3b2d10; }
.bigdoor .bidx { fill: var(--laser); }
.bigdoor .bplateno { fill: #17130b; stroke: #8a6a26; stroke-width: .6; }
.bigdoor .bno { fill: #e3bb62; }
.bpwrap { position: absolute; left: 50%; top: calc(var(--cy) - var(--D) * 1.0417); width: calc(var(--D) * 2.0834); height: calc(var(--D) * 2.0834);
  margin-left: calc(var(--D) * -1.0417); pointer-events: none; opacity: .9; }
.bprint { width: 100%; height: 100%; display: block; }
.bprint .bpl { fill: none; stroke: rgba(91, 147, 255, .32); stroke-width: .6; }
.bprint .bpd { fill: none; stroke: rgba(91, 147, 255, .5); stroke-width: .6; stroke-dasharray: 3 3; }
.bprint .bpt { stroke: rgba(91, 147, 255, .38); stroke-width: .6; }
.bprint .bpx { fill: rgba(140, 180, 255, .75); font: 500 6px var(--mono); letter-spacing: .14em; text-anchor: middle; }
.bprint .bpx.l { text-anchor: end; } .bprint .bpx.r { text-anchor: start; }
/* laser security grid: thin red beams across the wall; a scan line sweeps (opacity/transform only) */
.lasers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lasers i { position: absolute; left: -20%; width: 140%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 59, 78, .75) 20%, rgba(255, 59, 78, .75) 80%, transparent);
  box-shadow: 0 0 6px 1px rgba(255, 59, 78, .35); opacity: .55; animation: beam 3.6s ease-in-out infinite; }
.lasers i:nth-child(1) { top: 22%; transform: rotate(-9deg); }
.lasers i:nth-child(2) { top: 58%; transform: rotate(7deg); animation-delay: -1.2s; }
.lasers i:nth-child(3) { top: 84%; transform: rotate(-4deg); animation-delay: -2.4s; }
.lasers .scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(255, 59, 78, .07) 85%, rgba(255, 59, 78, .4) 99%, transparent);
  transform: translateY(-100px); animation: scan 7s linear infinite; will-change: transform; }
@keyframes beam { 0%, 100% { opacity: .18; } 50% { opacity: .65; } }
@keyframes scan { from { transform: translateY(-100px); } to { transform: translateY(calc(100svh + 20px)); } }
.room:not(.closed) .lasers { display: none; }
/* the spinnable dial: a round grab area over the hub */
.dialgrab { position: absolute; left: 26%; top: 26%; width: 48%; height: 48%; border-radius: 50%; touch-action: none; cursor: grab; z-index: 2; }
.dialgrab:active { cursor: grabbing; }
.room:not(.closed) .dialgrab { display: none; }
.room.spun .bigdoor .bdial { animation: none !important; }
.combo { position: absolute; z-index: 2; left: 50%; top: calc(var(--top) + var(--D) * 1.073 + 10px); transform: translateX(-50%); display: flex; align-items: baseline; gap: 6px;
  font-family: var(--mono); white-space: nowrap; padding: 4px 10px; border-radius: var(--r-sm); background: rgba(14, 12, 8, .7);
  box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .35); color: #e3bb62; }
.combo .cbl, .combo .cbh { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #a7a194; }
.combo b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.combo b.now { color: var(--amber); min-width: 2ch; }
.combo i { font-style: normal; color: #6b6656; }
.room.spun .combo .cbh { display: none; }
.room:not(.closed) .combo { display: none; }
.rplate { box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .35); }
.rplate b { color: #f1d08a; }
.btn.crack { background: linear-gradient(180deg, #f1d08a, #c99a43); color: #1a1307; box-shadow: 0 10px 26px -12px rgba(217, 178, 95, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.crack:hover:not(:disabled) { background: linear-gradient(180deg, #f7dc9f, #d3a752); }
@media (max-width: 599px) { .bprint .bpx { display: none; } }
@media (max-height: 700px) { .rsub { display: none; } }

/* ---- the briefing: a dossier spread under the door ---- */
.dossier { padding: 30px 0 34px; }
.dhead { max-width: 720px; margin-bottom: 22px; }
.dstamp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.dstamp span:first-child { color: var(--laser); border: 1.5px solid currentColor; padding: 3px 8px; border-radius: 2px; transform: rotate(-2deg); }
.dstamp .dfile { color: var(--faint); }
.dhead h1 { font-family: var(--display); font-size: clamp(38px, 11vw, 72px); line-height: .98; letter-spacing: -.012em; margin: 16px 0 12px; font-weight: 600; font-variation-settings: "opsz" 144; }
.dhead h1 em { font-style: italic; font-weight: 400; color: var(--brass); }
.dhead .lede { color: var(--dim); font-size: 16px; margin: 0; max-width: 52ch; text-wrap: pretty; }
.dgrid { display: grid; gap: 14px; }
.dpanel { position: relative; min-width: 0; padding: 18px 16px; border-radius: var(--r-lg); background: #15161a; box-shadow: inset 0 0 0 1px var(--line); }
.dpanel h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.dpanel h2 small { flex-basis: 100%; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.dpanel .dnum { font: 600 11px var(--mono); letter-spacing: .1em; color: var(--brass); border: 1px solid color-mix(in srgb, var(--brass) 50%, transparent); padding: 2px 6px; border-radius: 2px; transform: translateY(-3px); }
/* targets: blueprint paper */
.targets { background: linear-gradient(rgba(91, 147, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(91, 147, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px, #0d1626;
  box-shadow: inset 0 0 0 1px rgba(91, 147, 255, .28); }
.targets h2 small { color: #8fb2ee; }
.targets ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tgt { padding: 12px 12px 10px; border-radius: var(--r); background: rgba(8, 14, 26, .72); box-shadow: inset 0 0 0 1px rgba(91, 147, 255, .22); border-top: 3px solid var(--bx); }
.tgh { display: flex; align-items: center; gap: 10px; }
.tgh b { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--bx); }
.tgh .tgn { font: 500 11px var(--mono); color: #6f8fc8; }
.tgh .pins { margin-left: auto; color: var(--bx); }
.tgh .pins i { border-color: currentColor; } .tgh .pins i.on { background: currentColor; }
.tgt dl { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0; }
.tgt dl div { min-width: 0; }
.tgt dt { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #7f9cd0; }
.tgt dd { white-space: nowrap; margin: 2px 0 0; font: 600 17px var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.tgt .amb dd { color: var(--amber); }
.tgb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-top: 8px; border-top: 1px dashed rgba(91, 147, 255, .28); font-size: 12px; color: #8fa6cf; }
.tgb b { font: 600 17px var(--mono); color: #f1d08a; }
.tgb small { font-size: 11px; color: #a7a194; }
/* sign on: a sheet clipped to the file */
.signon { background: linear-gradient(180deg, #1b1a17, #141310); box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .28); }
.signon .clip { position: absolute; top: -7px; right: 22px; width: 46px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, #f1d08a, #9c7a35); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.signon > p { margin: -6px 0 14px; }
.signon .jform { max-width: none; }
/* the locks: one accent each */
.lockgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lock { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: var(--r);
  background: color-mix(in srgb, var(--k) 7%, #111215); box-shadow: inset 3px 0 0 var(--k), inset 0 0 0 1px color-mix(in srgb, var(--k) 22%, transparent); }
.lock i { width: 10px; height: 10px; border-radius: 2px; background: var(--k); box-shadow: 0 0 10px color-mix(in srgb, var(--k) 55%, transparent); }
.lock b { color: var(--k); font-size: 14.5px; }
.lock span { grid-column: 2; color: var(--dim); font-size: 13px; line-height: 1.4; }
.locks .skill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }
.locks .skill em { font-style: normal; font-size: 12px; color: var(--k); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 40%, transparent); }
/* house rules */
.rules ol { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 0; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 22px 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.rules li:first-child { border-top: 0; padding-top: 2px; }
.rules li::before { content: "0" counter(r); font: 600 12px var(--mono); color: var(--laser); padding-top: 2px; }
.rules li .ic { color: var(--brass); margin-top: 1px; }
.rules li b { display: block; font-size: 14.5px; }
.rules li span { display: block; color: var(--dim); font-size: 13px; line-height: 1.45; margin-top: 2px; }
@media (min-width: 480px) { .lockgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .targets ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dpanel { padding: 22px 22px; } }
@media (min-width: 960px) {
  .dossier { padding: 56px 0 40px; }
  .dgrid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .lockgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .targets { grid-column: 1; grid-row: 1; } .signon { grid-column: 2; grid-row: 1 / span 2; }
  .locks { grid-column: 1; grid-row: 2 / span 2; } .rules { grid-column: 2; grid-row: 3; }
}
.bprint .bpx.s { font-size: 4.4px; fill: rgba(140, 180, 255, .5); }
