/* Latch: the object. A machined part on a near-black page, lowercase light type, hairline structure.
   One signature: the latch itself, rendered as hardware, with the holder's one-time keys as holes in its backplate. */
:root {
  --page: #050505; --ink: #ececea; --body: #bdbdb9; --mute: #8a8a86; --dim: #5a5a56; --line: #242422; --row: #151514;
  --led: #2fe3ac; --red: #f2483c;
  --drop: 900ms; --tick: 2400ms; --cycle: 11000ms;
  font-family: "Sora", Helvetica, Arial, sans-serif; font-weight: 400; font-size: 15px; color-scheme: dark;
}
/* The user's machine runs with animation off; essential motion is slowed, never removed. */
@media (prefers-reduced-motion: reduce) { :root { --drop: 1600ms; --tick: 5000ms; --cycle: 18000ms; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
p { margin: 0 0 12px; line-height: 1.55; color: var(--body); }
/* Headlines in Unbounded (wide, rounded); everything else in Sora. Unbounded runs wide, so heading sizes sit ~15% under the old ones. */
h1, h2, h3 { margin: 0; font-family: "Unbounded", "Sora", Helvetica, Arial, sans-serif; font-weight: 300; letter-spacing: -.02em; }
.mute { color: var(--mute); } .num { font-variant-numeric: tabular-nums; }
.addr { font-variant-numeric: tabular-nums; letter-spacing: .01em; overflow-wrap: anywhere; }
.spacer { flex: 1; }
q { quotes: "\201C" "\201D"; color: var(--ink); }
::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; } ::-webkit-scrollbar-track { background: transparent; }

/* --- nav --- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 26px 48px; font-size: 14px; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(8px); }
/* Wordmark: "latch" set in spaced Unbounded capitals, like a label stamped on the hardware. The negative right margin
   takes back the tracking after the last letter so the mark stays optically aligned. */
.nav .brand { font-family: "Unbounded", "Sora", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; margin-right: -.24em; color: var(--ink); display: inline-flex; align-items: center; gap: 12px; } .nav .brand:hover { text-decoration: none; }
.nav .brand svg { width: 24px; height: 24px; display: block; }
.nav nav { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; } .nav nav::-webkit-scrollbar { display: none; }
.nav nav a { color: var(--mute); white-space: nowrap; } .nav nav a:hover, .nav nav a.on { color: var(--ink); text-decoration: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.nav .r { color: var(--mute); white-space: nowrap; } .nav .r:hover { color: var(--ink); }
/* connect wallet: a solid pill; once connected, an outlined chip with the address and a menu */
.nav-wallet { position: relative; align-self: center; }
.nav-wallet-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--page); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-wallet-btn:hover { background: #fff; }
.nav-wallet-btn.on { background: none; color: var(--ink); border-color: var(--line); }
.nav-wallet-btn.on:hover { border-color: var(--mute); background: none; }
.nav-wallet-btn img { width: 16px; height: 16px; border-radius: 4px; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px; max-width: min(320px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #0b0b0b; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.wallet-menu button, .wallet-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; }
.wallet-menu button:hover, .wallet-menu a:hover, .wallet-menu button:focus-visible, .wallet-menu a:focus-visible { background: #161615; text-decoration: none; outline: none; }
.wallet-menu img { width: 18px; height: 18px; border-radius: 4px; }
.wallet-menu .menu-note { padding: 9px 12px 6px; font-size: 13px; line-height: 1.5; color: var(--body); }
.wallet-menu .menu-addr { padding: 8px 12px 6px; font-size: 12px; color: var(--mute); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wallet-menu .menu-err { padding: 8px 12px; font-size: 13px; line-height: 1.45; color: var(--red); }
.wallet-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
@media (max-width: 820px) { .nav { padding: 20px 24px; gap: 22px; } .nav nav { gap: 22px; } .nav .r { display: none; } }
@media (max-width: 560px) { .nav { padding: 14px 16px; gap: 14px; align-items: center; } .nav nav { gap: 16px; min-width: 0; } .nav .brand { flex-shrink: 0; } .nav-wallet-btn { height: 34px; padding: 0 14px; font-size: 13.5px; } }

/* --- page --- */
main { flex: 1; width: 100%; }
section { padding: 56px 48px 64px; border-top: 1px solid var(--line); }
.wrap { max-width: 1184px; margin: 0 auto; }
@media (max-width: 820px) { section { padding: 40px 24px 44px; } }
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
section h2 { font-size: 26px; margin-bottom: 18px; }
.lede { font-size: 17px; max-width: 58ch; line-height: 1.5; }
.note { font-size: 14px; color: var(--mute); max-width: 58ch; margin: 14px 0 0; }
h3.sub { font-family: "Sora", Helvetica, Arial, sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 400; margin: 30px 0 10px; }

/* --- hero --- */
.hero { border-top: 0; padding: 30px 48px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; min-height: 600px; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 22px; font-weight: 300; }
.hero .lede { font-size: 18px; max-width: 40ch; }
.meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 36px; font-size: 13px; color: var(--mute); }
.meta b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.prog { margin-top: 26px; font-size: 13px; color: var(--mute); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prog a { color: var(--body); }
.render { justify-self: center; width: 100%; max-width: 560px; }
.render { cursor: pointer; }
.render .shackle { transform: translateY(-58px); transition: transform var(--drop) cubic-bezier(.4, 0, .6, 1); } /* opening: eased, no bounce */
.render .shackle.down { transform: translateY(0); transition-timing-function: cubic-bezier(.2, .9, .3, 1.12); } /* shutting: lands with a small click */
.render .stamp { font-size: 11px; fill: var(--dim); letter-spacing: .12em; }
@media (max-width: 900px) { .hero { padding: 10px 24px 30px; } .hero .wrap { grid-template-columns: 1fr; gap: 24px; min-height: 0; } .hero h1 { font-size: 36px; } .render { order: -1; max-width: 420px; } }

/* --- three parts: the exploded view --- */
.parts .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.parts svg { width: 100%; }
.call { font-size: 14.5px; line-height: 1.5; color: var(--body); display: grid; gap: 14px; max-width: 42ch; }
.call b { font-weight: 500; color: var(--ink); }
.call span { color: var(--mute); display: block; }
@media (max-width: 820px) { .parts .wrap { grid-template-columns: 1fr; } }

/* --- the run --- */
.run { margin: 0; max-width: 980px; }
.run ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.run li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 130px; gap: 18px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--row); font-size: 14.5px; line-height: 1.5; }
.run li:first-child { border-top: 0; }
.run time { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 13px; }
.run span { color: var(--body); } .run li.mark span { color: var(--ink); }
.run a, .run em { font-size: 13px; font-style: normal; text-align: right; white-space: nowrap; color: var(--body); font-variant-numeric: tabular-nums; }
.run em { color: var(--dim); }
.run li.fail span, .run li.fail time { color: var(--red); }
.run figcaption { margin-top: 12px; font-size: 14px; color: var(--mute); line-height: 1.6; max-width: 64ch; }
.run figcaption a { color: var(--body); }
@media (max-width: 640px) { .run li { grid-template-columns: 60px 1fr; } .run a, .run em { grid-column: 2; text-align: left; } }

/* --- holders --- */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 980px; }
.split article { padding: 24px 32px 22px 0; }
.split article + article { padding: 24px 0 22px 32px; border-left: 1px solid var(--line); }
.split h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin-bottom: 10px; }
.split h3 svg { width: 30px; height: 30px; } .split h3 .mute { font-size: 14px; }
.split p { margin: 0; font-size: 14.5px; }
.free { margin: 16px 0 0; font-size: 14.5px; max-width: 64ch; }
@media (max-width: 640px) { .split { grid-template-columns: 1fr; } .split article, .split article + article { padding: 18px 0; border-left: 0; } .split article + article { border-top: 1px solid var(--line); } }
.limits { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line); max-width: 980px; }
.limits > div { padding: 14px 0; border-bottom: 1px solid var(--row); }
.limits dt { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.limits dd { margin: 0; color: var(--body); font-size: 14px; line-height: 1.55; }
@media (max-width: 640px) { .limits { grid-template-columns: 1fr; } }

/* --- mechanism --- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); max-width: 900px; }
.steps li { display: grid; grid-template-columns: 44px 160px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--row); counter-increment: step; }
.steps li::before { content: counter(step); font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps b { font-size: 15px; font-weight: 500; }
.steps span { font-size: 14px; line-height: 1.55; color: var(--body); }
@media (max-width: 640px) { .steps li { grid-template-columns: 32px 1fr; } .steps span { grid-column: 2; } }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; max-width: 1100px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 8px; } }
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--row); font-size: 14px; line-height: 1.5; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; color: var(--body); min-width: 0; overflow-wrap: anywhere; }
table { border-collapse: collapse; width: 100%; border-top: 1px solid var(--line); }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--row); font-size: 14px; vertical-align: top; line-height: 1.45; }
th { color: var(--dim); font-weight: 400; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; } td { color: var(--body); }
pre { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #080808; overflow-x: auto; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.7; color: var(--body); }
pre .c { color: var(--dim); } pre b { color: var(--ink); font-weight: 600; }

/* --- lookup --- */
.head-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; } .head-row h2 { margin: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 18px; }
.seg button { border: 0; background: none; color: var(--mute); height: 26px; padding: 0 13px; border-radius: 13px; font-size: 13px; cursor: pointer; }
.seg button:hover { color: var(--ink); } .seg button.on { background: #1d1d1c; color: var(--ink); }
.check { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; max-width: 900px; }
.check label { display: grid; gap: 6px; font-size: 12.5px; color: var(--mute); min-width: 0; }
.check input { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font-size: 13.5px; outline: none; width: 100%; font-variant-numeric: tabular-nums; }
.check input:focus { border-color: var(--mute); } .check input::placeholder { color: var(--dim); }
.btn { height: 38px; padding: 0 20px; border-radius: 19px; border: 1px solid var(--ink); background: var(--ink); color: var(--page); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #fff; } .btn:disabled { background: none; color: var(--mute); border-color: var(--line); cursor: default; }
.fill { background: none; border: 0; padding: 0; color: var(--body); cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; } .fill:hover { color: var(--ink); }
@media (max-width: 720px) { .check { grid-template-columns: 1fr; } }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; margin: 18px 0 0; padding: 18px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 900px; }
.result .title { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 300; margin-bottom: 4px; }
.result .title svg { width: 30px; height: 30px; }
.result .lead { color: var(--body); font-size: 14px; margin-bottom: 12px; }
.result.err { display: block; color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.result .kv > div { grid-template-columns: 130px 1fr; }
.plate-mini { display: grid; justify-items: center; gap: 8px; }
.plate-mini svg { width: 180px; height: 180px; }
.plate-mini small { font-size: 12px; color: var(--mute); text-align: center; line-height: 1.4; }
@media (max-width: 600px) { .result { grid-template-columns: 1fr; } .plate-mini { justify-items: start; } }

/* --- log --- */
.changelog { margin: 0; border-top: 1px solid var(--line); max-width: 900px; }
.changelog > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--row); }
.changelog dt { font-size: 13px; color: var(--mute); padding-top: 2px; font-variant-numeric: tabular-nums; }
.changelog dd { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.6; }
.changelog dd .addr { color: var(--ink); font-size: 13px; }
@media (max-width: 640px) { .changelog > div { grid-template-columns: 1fr; gap: 4px; } }

/* --- footer --- */
.foot { display: flex; align-items: baseline; gap: 24px; padding: 22px 48px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.foot b { font-weight: 500; color: var(--ink); }
@media (max-width: 820px) { .foot { padding: 18px 24px 24px; flex-wrap: wrap; gap: 10px 20px; } }

/* grid children must be allowed to shrink below their content, or a wide table or code block pushes the page out */
.cols > div, .hero .wrap > div, .parts .wrap > div { min-width: 0; }
@media (max-width: 640px) { td:first-child { white-space: normal; } th, td { padding-right: 8px; } }

/* --- the holder app --- */
.wallet-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; min-height: 38px; font-size: 14px; }
.wallet-btn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 18px; border-radius: 19px; border: 1px solid var(--ink); background: var(--ink); color: var(--page); font-size: 14px; font-weight: 500; cursor: pointer; }
.wallet-btn img { border-radius: 4px; } .wallet-btn:hover { background: #fff; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px var(--led); }
.ghost { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: none; color: var(--body); font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; }
.ghost:hover { color: var(--ink); border-color: var(--mute); } .ghost:disabled { opacity: .45; cursor: default; }
.ghost.file { position: relative; overflow: hidden; } .ghost.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.err-inline { color: var(--red); font-size: 13.5px; margin: 0; }
.actions { margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); max-width: 900px; }
.actions .seg { margin-bottom: 16px; }
.act-panel p { font-size: 14.5px; max-width: 64ch; }
.act-form { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: end; max-width: 900px; }
.act-form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--mute); min-width: 0; }
.act-form input { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font-size: 13.5px; outline: none; width: 100%; font-variant-numeric: tabular-nums; }
.act-form input:focus { border-color: var(--mute); } .act-form input::placeholder { color: var(--dim); }
@media (max-width: 720px) { .act-form { grid-template-columns: 1fr; } }
.key-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.progress { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 900px; }
.progress li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--row); font-size: 14px; color: var(--body); }
.progress li.head { display: block; color: var(--ink); font-weight: 500; }
.progress .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); align-self: center; }
.progress li.active .dot { background: var(--led); box-shadow: 0 0 8px var(--led); animation: pulse 1.4s ease-in-out infinite; }
.progress li.done .dot { background: var(--body); } .progress li.done .label { color: var(--ink); }
.progress li.fail .dot { background: var(--red); } .progress li.fail .label, .progress li.fail .link { color: var(--red); }
.progress .link { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; } .progress .link a { color: var(--body); }
/* reduced motion keeps the pulse, slower, because it is the only sign a step is still running */
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .progress li.active .dot { animation-duration: 3s; } }
.pass { border: 1px solid var(--line); border-radius: 16px; background: #0b0b0b; color: var(--ink); padding: 24px; width: min(440px, calc(100vw - 32px)); }
.pass::backdrop { background: rgba(0, 0, 0, .7); }
.pass h3 { font-size: 19px; margin: 0 0 8px; }
.pass p { font-size: 14px; }
.pass label { display: grid; gap: 6px; font-size: 12.5px; color: var(--mute); margin: 12px 0 0; }
.pass input { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font-size: 14px; outline: none; }
.pass input:focus { border-color: var(--mute); }
.pass .row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* --- plain-language sections --- */
.why .lede { margin: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: n; }
.plain-list li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--row); font-size: 14.5px; line-height: 1.55; color: var(--body); position: relative; counter-increment: n; }
.plain-list li::before { content: counter(n); position: absolute; left: 0; top: 14px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.plain-list b { color: var(--ink); font-weight: 500; }
.holders-strip { margin-top: 34px; }
.attack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 980px; }
.attack li { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1.4fr); gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--row); }
.attack .try { font-size: 15px; color: var(--ink); }
.attack .verdict { justify-self: start; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 11px; border: 1px solid var(--line); }
.attack .no .verdict { color: var(--led); border-color: color-mix(in srgb, var(--led) 40%, transparent); }
.attack .yes .verdict { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.attack .why { font-size: 14px; line-height: 1.5; color: var(--body); }
@media (max-width: 720px) { .attack li { grid-template-columns: 1fr auto; gap: 6px 12px; } .attack .why { grid-column: 1 / -1; } }
.more { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 1100px; }
.more summary { cursor: pointer; padding: 16px 0; font-size: 15px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; width: 14px; color: var(--mute); }
.more[open] summary::before { content: "–"; }
.more-body { padding: 0 0 24px; }
.more-body .sub:first-child { margin-top: 4px; }
.more-body .cols { margin-top: 8px; }

/* --- the precise version: a set-apart panel for readers who want the construction --- */
.spec { padding-top: 8px; border-top: 0; }
.spec-box { border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px 10px; background: linear-gradient(180deg, #0a0a0a, #070707); max-width: 1100px; }
.spec-box h2 { font-size: 21px; margin-bottom: 14px; }
.spec-lede { font-size: 14.5px; line-height: 1.65; color: var(--body); max-width: 88ch; margin: 0 0 18px; }
.spec-lede sup, .spec-grid sup { font-size: .7em; }
.spec-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; border-top: 1px solid var(--line); }
.spec-grid > div { padding: 13px 0; border-bottom: 1px solid var(--row); }
.spec-grid dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px; }
.spec-grid dd { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--body); }
@media (max-width: 760px) { .spec-box { padding: 22px 18px 6px; } .spec-grid { grid-template-columns: 1fr; } }

/* --- the 3D lock (padlock3d.js). The drawn padlock stays as the fallback when WebGL is missing. --- */
.render { position: relative; }
.render:not(.is-3d) .stage3d, .render:not(.is-3d) .lock-caption { display: none; }
.render.is-3d > svg { display: none; }
.stage3d { width: 100%; aspect-ratio: 560 / 500; }
/* The drawn padlock takes the same box, so swapping in the 3D one does not move the page. */
.render > svg { display: block; width: 100%; height: auto; aspect-ratio: 560 / 500; }
.lock3d { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.lock3d:active { cursor: grabbing; }
.lock-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 6px; font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.lock-hint { letter-spacing: .02em; font-size: 12px; color: var(--mute); }
.parts3d { position: relative; }
.parts3d.is-3d { aspect-ratio: 520 / 470; }
.parts3d.is-3d > svg { display: none; }
.parts3d:not(.is-3d) .part-label { display: none; }
.part-label { position: absolute; z-index: 1; left: 0; top: 0; padding-left: 14px; font-size: 12px; color: var(--ink); white-space: nowrap; pointer-events: none; opacity: 0; will-change: transform; }
.part-label::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(5, 5, 5, .8); }
/* Feather the canvas edges so its rectangle never shows against the page, whatever the bloom leaves behind. */
.lock3d { -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }

/* --- watch a code get made (chains.js) --- */
.sig-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 980px; margin-top: 26px; }
.sig-form label { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; color: var(--mute); }
.sig-form label:focus-within { border-color: var(--mute); }
.sig-form label.grow { flex: 1; min-width: 260px; }
.sig-form input { border: 0; background: none; outline: none; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 0; }
.sig-form #sig-amount { width: 96px; }
.sig-form .grow input { flex: 1; }
.sig-digest { margin: 16px 0 0; font-size: 12.5px; color: var(--body); overflow-wrap: anywhere; }
.sig-digest code { font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--body); letter-spacing: .04em; }
.chains-hint { display: none; margin: 10px 0 0; font-size: 12.5px; color: var(--mute); }
@media (max-width: 900px) { .chains-hint { display: block; } }
.chains-frame { position: relative; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; overscroll-behavior-x: contain; }
#chains { display: block; width: 100%; min-width: 860px; height: 470px; cursor: crosshair; }
.chains-tip { position: absolute; left: 0; top: 0; max-width: 300px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #0b0b0b; color: var(--body); font: 11.5px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; z-index: 2; }
.sig-status { margin: 16px 0 0; max-width: 78ch; font-size: 15px; color: var(--ink); min-height: 1.55em; }
.sig-status.ok { color: var(--led); } .sig-status.bad { color: var(--red); }
.sig-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 16px 0 0; }
.sig-stats div { display: grid; gap: 2px; } .sig-stats dt { font-size: 12px; color: var(--mute); } .sig-stats dd { margin: 0; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .sig-form label.grow { min-width: 100%; } }

/* --- play the attacker (heist.js) --- */
.heist { max-width: 1100px; }
.heist-head { margin: 22px 0 16px; }
.heist-head p { margin: 0 0 6px; font-size: 14.5px; }
.heist .live { color: var(--mute); font-variant-numeric: tabular-nums; }
.heist .live.on { color: var(--led); }
.heist .attack { max-width: none; }
.heist .attack li { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1.25fr) 170px; align-items: center; }
.heist .act { display: flex; align-items: center; gap: 10px; justify-self: end; font-size: 12.5px; }
.try-btn { height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 13px; cursor: pointer; white-space: nowrap; }
.try-btn:hover { border-color: var(--mute); } .try-btn:disabled { color: var(--dim); cursor: default; }
.try-result { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.try-result.no { color: var(--led); } .try-result.yes { color: var(--red); } .try-result.na { color: var(--mute); }
.heist .control { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--row); font-size: 14.5px; }
.heist .control b { font-weight: 500; color: var(--ink); }
.console { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: #080808; overflow: hidden; }
.console-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); }
.console-head .prompt { color: var(--led); }
.console-log { list-style: none; margin: 0; padding: 12px 16px; max-height: 320px; overflow: auto; font: 12px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--mute); }
.console-log li { white-space: pre-wrap; overflow-wrap: anywhere; }
.console-log li.said { color: var(--body); } .console-log li.ok { color: var(--led); } .console-log li.bad { color: var(--red); }
.console-log abbr.pid { text-decoration: none; color: var(--ink); border-bottom: 1px dotted var(--dim); cursor: help; }
.console-verdict { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--body); min-height: 20px; }
.console-verdict:empty { display: none; }
.console-verdict.no b { color: var(--led); font-weight: 500; } .console-verdict.yes b { color: var(--red); font-weight: 500; }
@media (max-width: 820px) {
  .heist .attack li { grid-template-columns: minmax(0, 1fr) auto; }
  .heist .attack .why { grid-column: 1 / -1; }
  .heist .act { grid-column: 1 / -1; justify-self: start; }
  .heist .control { flex-direction: column; align-items: flex-start; }
}
.console-verdict.ctl b { color: var(--ink); font-weight: 500; }

/* --- backups: 24 recovery words or a file (holder.js) --- */
.words { width: min(560px, calc(100vw - 32px)); }
.words .choice { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--body); cursor: pointer; }
.words .choice:has(input:checked) { border-color: color-mix(in srgb, var(--led) 60%, transparent); }
.words .choice input { height: auto; padding: 0; margin: 3px 0 0; accent-color: var(--led); }
.words .choice b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }
.word-grid { list-style: none; counter-reset: w; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; }
.word-grid li { counter-increment: w; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: 13.5px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); }
.word-grid li::before { content: counter(w); margin-right: 8px; font-size: 11px; color: var(--dim); }
.words textarea { width: 100%; min-height: 128px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; resize: vertical; outline: none; }
.words textarea:focus { border-color: var(--mute); }
.words .again { margin-top: 12px; }
@media (max-width: 520px) { .word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
