/* Launch Agent - one dark pixel factory. 16 px grid, sprites x3 desktop / x2 phone, NEAREST only. */
/* display: Silkscreen (pixel = 1/8 em, so sizes are multiples of 8 px for whole pixels); HUD + numbers: Kode Mono (tabular) */
@font-face { font-family: "Silk"; src: url(/assets/fonts/Silkscreen-Bold.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "SilkR"; src: url(/assets/fonts/Silkscreen-Regular.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Kode"; src: url(/assets/fonts/KodeMono.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Pathway"; src: url(/assets/fonts/PathwayExtreme.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
:root {
  --soot: #151110; --iron: #221c1a; --iron2: #2e2624; --ink: #070606;
  --steelD: #727270; --steel: #9a9a98; --steelL: #c4c4c2;
  --rustD: #551e12; --rust: #8a3a1c; --rustL: #c0602a;
  --ochreD: #b07218; --ochre: #e8a326; --ochreL: #fcd262;
  --chalk: #efe7da; --marker: #f25c9c; --markerD: #b5306d; --markerL: #f799c2;
  --px: 3px; --sc: 3; --gut: 48px; --rail-h: 64px;
  --dot: #26201e; --cell: 28px; --dotw: 8px;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' shape-rendering='crispEdges'%3E%3Crect x='10' y='10' width='8' height='8' fill='%2326201e'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (max-width: 760px) { :root { --px: 2px; --sc: 2; --gut: 16px; --rail-h: 56px; --cell: 20px; --dotw: 6px;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' shape-rendering='crispEdges'%3E%3Crect x='7' y='7' width='6' height='6' fill='%2326201e'/%3E%3C/svg%3E"); } }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--chalk); background-color: var(--soot);
  background-image: var(--dots); background-size: var(--cell) var(--cell); background-repeat: repeat; background-position: 0 0;
  font: 400 18px/1.45 "Pathway", system-ui, sans-serif; font-stretch: 90%; overflow-x: hidden;
}
img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
canvas { image-rendering: pixelated; }
a { color: inherit; }
a, button, [role=button], [onclick], summary, label, .ca, select, input[type=file] { cursor: pointer; }
input, textarea { cursor: text; }
@media (hover: hover) and (pointer: fine) {
  html.claw-on, html.claw-on * { cursor: none !important; }
}
:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.num, code { font-family: "Kode", ui-monospace, monospace; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.stencil, .ws-t, .qc-t, .mlog-t, .mf-k, .chute-t, .dlg-h h2 { font-family: "Silk", "Kode", monospace; font-smooth: never; -webkit-font-smoothing: none; text-transform: uppercase; line-height: 1; letter-spacing: 0; }

/* ---------------------------------------------------------------- loader (8-bit belt filling 16 tiles) */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--soot) var(--dots) 0 0 / var(--cell) var(--cell); display: grid; place-content: center; gap: 16px; justify-items: center; transition: opacity .25s steps(3); }
.loader.done { opacity: 0; pointer-events: none; }
.ld-belt { display: grid; grid-template-columns: repeat(16, calc(16px * var(--sc) / 1.5)); gap: 0; border: 3px solid var(--ink); background: var(--iron); }
.ld-belt { position: relative; }
.ld-sh { position: absolute; left: 0; top: 0; width: calc(16px * var(--sc) / 1.5); height: calc(16px * var(--sc) / 1.5); background: url(/assets/art/crate.png) 100% 0 / 400% 100%; z-index: 3; box-shadow: 0 0 0 2px var(--ink); }
.ld-sh.s1 { z-index: 2; background-position: 66.66% 0; } .ld-sh.s2 { z-index: 1; background-position: 33.33% 0; opacity: .7; }
.ld-belt i { height: calc(16px * var(--sc) / 1.5); background: url(/assets/art/crate.png) 0 0 / 400% 100%; transform: scale(0); }
.ld-belt i.on { transform: none; }
.ld-belt i:nth-child(4n+2) { background-position: 33.33% 0; } .ld-belt i:nth-child(4n+3) { background-position: 66.66% 0; } .ld-belt i:nth-child(4n) { background-position: 100% 0; }
.ld-n { font-size: 22px; color: var(--ochre); }

/* ---------------------------------------------------------------- rail (top bar) */
.rail { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--rail-h); display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: var(--iron); border-bottom: 3px solid var(--ink); box-shadow: inset 0 -3px 0 var(--iron2), inset 0 3px 0 var(--steelD); }
.rail::before, .rail::after { content: ""; position: absolute; top: 8px; width: 6px; height: 6px; background: var(--steel); box-shadow: 0 calc(var(--rail-h) - 22px) 0 var(--steel); }
.rail::before { left: 4px; } .rail::after { right: 4px; }
.rail-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.rail-mark img { width: 40px; height: 40px; image-rendering: auto; }
.rail-name { font-family: "Silk"; font-size: 24px; line-height: 1; color: var(--chalk); white-space: nowrap; }
.rail-nav { display: flex; gap: 4px; margin-left: 8px; }
.rn { font: 400 13px/1 "Kode", monospace; text-transform: uppercase; text-decoration: none; padding: 10px 10px; color: var(--steelL); }
.rn:hover, .rn[aria-current] { color: var(--ochreL); }
.rail-keys { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.rail .ca { max-width: 420px; }
@media (max-width: 1180px) { .rail-nav { display: none; } .rail .ca .ca-v { font-size: 11px; } }
@media (max-width: 980px) { .rail .ca { display: none; } }
@media (max-width: 760px) {
  .rail { gap: 8px; padding: 0 10px; }
  .rail-name { display: none; }
  .rail-keys { gap: 6px; }
  .rail .mb { height: 40px; padding: 0 10px; font-size: 12px; }
}

/* ---------------------------------------------------------------- machine buttons (21st 34577 tactile depth, own skin) */
.mb { --f: var(--steel); --fl: var(--steelL); --fd: var(--steelD); --t: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px;
  font: 400 14px/1 "Kode", monospace; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--t);
  background: var(--f); border: 3px solid var(--ink); border-radius: 0;
  box-shadow: inset 3px 3px 0 var(--fl), inset -3px -3px 0 var(--fd), 0 6px 0 var(--ink);
  transform: translateY(0); transition: transform 60ms steps(2), box-shadow 60ms steps(2); user-select: none; }
.mb:hover { --f: var(--steelL); --fl: #d8dad2; }
.mb:active, .mb.is-down { --f: var(--fd); transform: translateY(6px); box-shadow: inset -3px -3px 0 var(--fl), inset 3px 3px 0 var(--fd), 0 0 0 var(--ink); }
.mb[disabled], .mb.is-off { --f: var(--steelD); --fl: var(--steelD); --fd: var(--steelD); --t: var(--iron); box-shadow: 0 6px 0 var(--ink); cursor: not-allowed; }
.mb-marker { --f: var(--marker); --fl: var(--markerL); --fd: var(--markerD); }
.mb-marker:hover { --f: var(--markerL); --fl: #fde0ec; }
.mb-big { height: 56px; padding: 0 22px; font-size: 16px; }
.mb-big span { font-family: "Silk"; font-size: 24px; }
.mb .ic { width: 16px; height: 16px; fill: currentColor; shape-rendering: crispEdges; }
.mb-x .ic { width: 14px; height: 14px; }
.mb-file input { position: absolute; inset: 0; opacity: 0; width: 100%; }
.mb-wallet[data-on] { --f: var(--ochre); --fl: var(--ochreL); --fd: var(--ochreD); }

/* ---------------------------------------------------------------- CA plate (copy stamps COPIED) */
.ca { display: inline-flex; align-items: stretch; min-width: 0; border: 3px solid var(--ink); background: var(--iron); color: var(--chalk); padding: 0; font: inherit; text-align: left; position: relative; }
.ca-k { flex: none; display: grid; place-items: center; padding: 0 8px; background: var(--ochre); color: var(--ink); font: 400 13px/1 "Kode", monospace; }
.ca-v { padding: 8px 10px; font: 400 13px/1.3 "Kode", monospace; overflow-wrap: anywhere; word-break: break-all; color: var(--chalk); }
.ca-pend .ca-v { color: var(--steelL); }
.ca-ok { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Silk"; font-size: 24px; color: var(--ink); background: var(--ochreL); transform: scaleY(0); pointer-events: none; }
.ca.copied .ca-ok { transform: none; animation: stampin .18s steps(3); }
.ca.uncopy .ca-ok { animation: stampout .12s steps(2) forwards; }
@keyframes stampout { 0% { transform: none; } 50% { transform: scale(1, .5); } 100% { transform: scale(1, 0); } }
@keyframes stampin { 0% { transform: scale(1.4, 0); } 50% { transform: scale(1.1, .6); } 100% { transform: none; } }
.ca-big .ca-v { font-size: 16px; padding: 12px 14px; }
.ca-big .ca-k { font-size: 16px; padding: 0 14px; }
.tick { font: 400 22px/1 "Kode", monospace; color: var(--ochreL); margin-left: 12px; }

/* ---------------------------------------------------------------- output belt strip (launched coins roll by) */
.outbelt { position: fixed; z-index: 39; top: var(--rail-h); left: 0; right: 0; height: 40px; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--iron); }
.ob-bed, .sb-bed, .belt-strip { position: absolute; inset: 0 -64px 0 0; background: url(/assets/art/belt.png) 0 0 / calc(128px * 2.5) 100%; background-size: auto 100%; image-rendering: pixelated; animation: belt 0.66s steps(8) infinite; }
.ob-bed { background-size: 320px 40px; }
@keyframes belt { from { transform: translateX(-40px); } to { transform: translateX(0); } }
.ob-track { position: absolute; top: 4px; left: 0; display: flex; gap: 32px; white-space: nowrap; will-change: transform; }
.ob-i { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 4px; background: var(--iron2); border: 2px solid var(--ink); font: 400 12px/1 "Kode", monospace; text-decoration: none; color: var(--chalk); }
.ob-i img { width: 24px; height: 24px; }
.ob-i b { color: var(--ochreL); font-weight: 400; }
.ob-i .ob-t { color: var(--steelL); }
.ob-demo { background: var(--ochre); color: var(--ink); font-family: "Silk"; font-size: 24px; padding: 4px 8px; height: 32px; display: inline-flex; align-items: center; border: 2px solid var(--ink); }
body:not(.home) .outbelt { display: none; }

/* ---------------------------------------------------------------- workshop sections */
main { display: block; }
.ws { position: relative; padding: 128px 0 112px; overflow: clip; }
.ws-in { position: relative; width: min(1280px, 100% - 2 * var(--gut)); margin: 0 auto; }
.ws-h { display: grid; gap: 10px; margin-bottom: 40px; }
.ws-t .st-l { display: inline-block; }
.ws-no { font-size: 13px; color: var(--ochre); }
.ws-t { font-size: 96px; color: var(--chalk); }
.ws-s { font-size: 19px; color: var(--steelL); max-width: 600px; }
@media (max-width: 760px) { .ws { padding: 96px 0 80px; } .ws-t { font-size: 48px; } .ws-s { font-size: 17px; } }
@media (max-width: 360px) { .ws-t, .st-h .ws-t { font-size: 40px; } }
.empty-inv { margin: 24px auto 0; width: min(1280px, 100% - 2 * var(--gut)); padding: 18px 20px; border: 3px dashed var(--steelD); color: var(--steelL); font: 400 15px/1.4 "Kode", monospace; }

/* the line down the page: margin belt (moves with scroll) + service pipe; only where the margins are wide enough */
.gut-belt, .gut-pipe { display: none; }
@media (min-width: 1400px) {
  .gut-belt, .gut-pipe { display: block; position: absolute; top: 0; bottom: 0; z-index: 0; pointer-events: none; image-rendering: pixelated; }
  .gut-belt { left: calc((100% - 1280px) / 4 - 24px); width: 48px; background: url(/assets/art/belt-v.png) 0 var(--by, 0) / 48px 48px repeat-y; box-shadow: -3px 0 0 var(--ink), 3px 0 0 var(--ink), -6px 0 0 var(--steelD), 6px 0 0 var(--steelD), -9px 0 0 var(--ink), 9px 0 0 var(--ink); }
  .gb-load { position: sticky; top: calc(50vh - 24px); display: block; width: 48px; height: 48px; background: url(/assets/art/crate.png) 0 0 / 400% 100%; image-rendering: pixelated; }
  .gb-load.l1 { background-image: url(/assets/art/coin.png); background-size: 600% 100%; }
  .gb-load.l2 { background-image: url(/assets/art/coin.png); background-size: 600% 100%; width: 24px; height: 24px; margin-left: 12px; }
  .gut-pipe { right: calc((100% - 1280px) / 4 - 24px); width: 48px; background: url(/assets/art/pipe-v.png) 0 0 / 48px 96px repeat-y; }
}
.has-gut > .ws-in, .has-gut > .shipbelt, .has-gut > .empty-inv { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- 1 dock (hero): the shop floor, live (hero.js) */
.dock { min-height: 100svh; padding: 0; display: grid; isolation: isolate; overflow: hidden; }
.dock-cam { position: absolute; inset: 0; z-index: 0; transform-origin: 50% 100%; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) { .dock-cam { inset: -38% -17% 0 -17%; will-change: transform; } }
.dock-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.dock-tags, .dock-plates { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.btag { position: absolute; left: 0; top: 0; margin: 0; padding: 3px 6px 2px; background: var(--ochre); color: var(--ink); border: 2px solid var(--ink); font: 500 11px/1.2 "Kode", monospace; white-space: nowrap; will-change: transform; }
.btag::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 2px; height: 4px; margin-left: -1px; background: var(--ink); }
.btag[hidden] { display: none; }
.mplate { position: absolute; margin: 0; transform: translate(-50%, -100%); padding: 5px 8px 4px; background: var(--iron); border: 2px solid var(--ink); box-shadow: inset 0 0 0 1px var(--iron2), 3px 3px 0 var(--ink); font: 400 11px/1.3 "Kode", monospace; color: var(--steelL); white-space: nowrap; max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.mplate b { display: flex; align-items: center; gap: 5px; color: var(--ochreL); font: 400 10px/1.4 "SilkR", monospace; }
.mplate b::before { content: ""; width: 6px; height: 6px; background: var(--steelD); box-shadow: 0 0 0 1px var(--ink); flex: none; }
.mplate.hot b::before { background: var(--marker); box-shadow: 0 0 0 1px var(--ink), 0 0 6px 1px rgba(242, 92, 156, .75); }
.mplate.ok b::before { background: var(--ochre); }
.mplate.ok .mp-pips { display: none; }
.mp-pips { display: inline-flex; gap: 2px; margin-left: 2px; }
.mp-pips i { width: 3px; height: 3px; background: var(--marker); animation: pip .54s steps(1) infinite; }
.mp-pips i:nth-child(2) { animation-delay: .09s; } .mp-pips i:nth-child(3) { animation-delay: .18s; }
@keyframes pip { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .mp-pips i { animation: none; } }
.mplate[data-k=press] { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 5px 9px 5px 5px; }
.mplate[data-k=press] .mp-logo { grid-row: 1 / 3; width: 48px; height: 48px; image-rendering: pixelated; }
@media (max-width: 760px) { .mplate[data-k=press] .mp-logo { width: 32px; height: 32px; } }
.mplate::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 2px; height: 6px; margin-left: -1px; background: var(--ink); }
.dock-ui { position: relative; z-index: 3; align-self: start; justify-self: center; margin-top: calc(var(--rail-h) + 40px + max(24px, 4.5vh)); display: grid; justify-items: center; gap: 18px; text-align: center; padding: 0 16px; pointer-events: none; }
.dock-ui > * { pointer-events: auto; }
.stencil { font-size: 112px; color: var(--chalk); white-space: nowrap; }
.dock .stencil { line-height: 1; padding: 4px 0 2px; }
.dock .stencil .st-l:first-child { color: var(--marker); }
.dock .stencil .st-l:last-child { color: var(--ochreL); }
.stencil .st-l { display: inline-block; }
.stencil .ch { display: inline-block; transform-origin: 50% 100%; }
@media (min-width: 1900px) and (min-height: 1000px) { .stencil { font-size: 144px; } }
@media (min-width: 2400px) and (min-height: 1300px) { .stencil { font-size: 160px; } }
@media (max-width: 1240px) { .stencil { font-size: 96px; } }
@media (max-width: 1080px) { .stencil { font-size: 80px; } }
@media (max-width: 900px) { .stencil { font-size: 64px; } }
@media (max-width: 760px) { .stencil { font-size: 56px; white-space: normal; line-height: 1.1; } .stencil .st-l { display: block; } }
@media (max-width: 360px) { .stencil { font-size: 48px; } }
.dock-line { font: 600 21px/1.3 "Pathway"; font-stretch: 85%; color: var(--chalk); background: var(--soot); padding: 4px 10px; }
.dock-acts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 6px; }
.dock-ca { display: none; align-items: center; justify-content: center; max-width: min(640px, 100%); }
@media (max-width: 980px) { .dock-ca { display: flex; } }
.dock-ca .ca { max-width: 100%; }
.floorplate { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 0; margin: 0; background: var(--iron); border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--iron2), 0 6px 0 var(--ink); }
.floorplate > div { padding: 10px 18px; border-left: 3px solid var(--ink); min-width: 160px; }
.floorplate > div:first-child { border-left: 0; }
.floorplate dt { font: 400 11px/1 "Kode", monospace; color: var(--steel); text-transform: uppercase; letter-spacing: .04em; }
.floorplate dd { margin: 6px 0 0; font-size: 33px; line-height: 1; color: var(--ochreL); }
.demo-plate { position: absolute; z-index: 3; left: 24px; bottom: 32px; font: 400 40px/1 "Silk"; color: var(--ink); background: var(--ochre); padding: 6px 10px; border: 3px solid var(--ink); }
@media (max-width: 760px) {
  .dock-ui { margin-top: calc(var(--rail-h) + 40px + 24px); gap: 14px; }
  .dock-line { font-size: 18px; }
  .floorplate { left: 16px; right: 16px; transform: none; bottom: 16px; }
  .floorplate > div { min-width: 0; flex: 1; padding: 8px 8px; }
  .floorplate dd { font-size: 18px; white-space: nowrap; }
  .floorplate dt { font-size: 10px; }
  .demo-plate { font-size: 24px; left: auto; right: 16px; bottom: 96px; }   /* GO 20.11: was over the LAUNCH sign on an empty board (mainnet prelaunch) */
  .dock-acts .mb-big { height: 48px; padding: 0 14px; }
  .lever-btn { height: 60px; padding: 0 16px 0 8px; } .lever-btn .lv-x { display: none; }
  .ca-big .ca-v { font-size: 13px; padding: 9px 10px; }
}
/* lever (21st 5210 lever-switch model: hover frame 1, pull frames 2-4 then act) */
.lever-btn { display: inline-flex; align-items: center; gap: 12px; height: 72px; padding: 0 22px 0 12px; background: var(--marker); color: var(--ink); text-decoration: none; border: 3px solid var(--ink); box-shadow: inset 3px 3px 0 var(--markerL), inset -3px -3px 0 var(--markerD), 0 8px 0 var(--ink); }
.lever-btn .lv-t { font-family: "Silk"; font-size: 24px; }
.lv-spr, .lvb-spr { display: block; width: calc(16px * var(--sc)); height: calc(32px * var(--sc)); background: url(/assets/art/lever.png) 0 0 / 500% 100%; image-rendering: pixelated; }
.lever-btn .lv-spr { width: 32px; height: 64px; margin: -6px 0; }
.lever-btn:hover .lv-spr { background-position: 25% 0; }
.lever-btn.pull .lv-spr, .lever-big.pull .lvb-spr { animation: pull .48s steps(1); }
@keyframes pull { 0% { background-position: 25% 0; } 12.5% { background-position: 50% 0; } 25% { background-position: 75% 0; } 37.5%, 50% { background-position: 100% 0; } 62.5% { background-position: 75% 0; } 75% { background-position: 50% 0; } 87.5%, 100% { background-position: 25% 0; } }
.lever-btn:active, .lever-btn.is-down { transform: translateY(8px); box-shadow: inset -3px -3px 0 var(--markerL), inset 3px 3px 0 var(--markerD); }

/* ---------------------------------------------------------------- 2 hopper */
.hopper .ws-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hopper .ws-h { grid-column: 1 / -1; }
.hop-l { display: block; min-height: 32px; padding-top: 10px; font: 400 13px/1 "Kode", monospace; color: var(--ochre); text-transform: uppercase; margin-bottom: 10px; }
/* the bunker: nine-hopper 9-slice (21st 18031 upload states idle / over / loaded / error) */
.hop-bin { position: relative; border: calc(16px * var(--sc)) solid transparent; border-image: url(/assets/art/nine-hopper.png) 16 fill round; image-rendering: pixelated; }
.hop-bin textarea { display: block; width: 100%; min-height: 96px; resize: vertical; background: transparent; border: 0; outline: 0; color: var(--chalk); caret-color: var(--marker); font: 400 22px/1.4 "Kode", monospace; padding: 0; }
.hop-bin textarea::placeholder { color: var(--steel); }
.hop-bin { transition: transform 80ms steps(2); }
.hop-bin.is-over { transform: translateY(-4px); border-image-source: url(/assets/art/nine-hopper.png); box-shadow: 0 4px 0 var(--marker); }
.hop-l { display: inline-block; }
.hop-l.swap { animation: lblswap .12s steps(2); }
@keyframes lblswap { 0% { transform: translateY(4px); opacity: 0; } 50% { transform: translateY(2px); opacity: 1; } }
.hop-bin.is-err { animation: shake .24s steps(4); }
.hop-bin.is-loaded::after { content: ""; position: absolute; left: 50%; top: -40px; width: 48px; height: 48px; margin-left: -24px; background: url(/assets/art/crate.png) 0 0 / 400% 100%; animation: crate-drop .45s steps(5) forwards; }
@keyframes crate-drop { 0% { transform: translateY(-80px); } 60% { transform: translateY(40px) scale(1.2, .7); } 80% { transform: translateY(36px) scale(.9, 1.1); } 100% { transform: translateY(40px) scale(1, 0); } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.hop-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 22px; }
.hop-st { font: 400 14px/1.4 "Kode", monospace; color: var(--steelL); min-height: 20px; }
.hop-st.err { color: var(--markerL); }
.hop-crates { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; min-height: 48px; }
.crate-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 6px; background: var(--rustD); border: 3px solid var(--ink); color: var(--chalk); font: 400 13px/1.2 "Kode", monospace; text-align: left; box-shadow: inset 2px 2px 0 var(--rust); }
.crate-chip::before { content: ""; flex: none; width: 32px; height: 32px; background: url(/assets/art/crate.png) 0 0 / 400% 100%; }
.crate-chip:hover { background: var(--rust); }
.crate-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc { background: var(--iron); border: 3px solid var(--ink); padding: 22px; box-shadow: inset 0 0 0 3px var(--iron2); }
.qc-t { font-size: 48px; color: var(--ochre); margin-bottom: 10px; }
.qc-s { color: var(--steelL); font-size: 16px; }
.qc-rules { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.qc-rules li { font-size: 15px; line-height: 1.35; padding-left: 40px; position: relative; color: var(--chalk); }
.qc-rules b { position: absolute; left: 0; top: 0; min-width: 30px; text-align: center; font: 400 12px/20px "Kode", monospace; background: var(--steelD); color: var(--chalk); }
.qc-n { font-size: 12px; color: var(--steel); }
.chute { margin-top: 16px; border-top: 3px dashed var(--rust); padding-top: 12px; }
.chute-t { font-size: 24px; color: var(--rustL); margin-bottom: 8px; }
.chute ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 400 13px/1.35 "Kode", monospace; color: var(--chalk); }
.chute li::before { content: "x "; color: var(--rustL); }
@media (max-width: 900px) { .hopper .ws-in { grid-template-columns: 1fr; gap: 32px; } .hop-bin textarea { font-size: 17px; } }

/* ---------------------------------------------------------------- 3 the line (pinned horizontal run) */
.line { padding: 0; overflow: visible; }
.line-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.line-belt { position: absolute; left: 0; right: 0; bottom: 48px; height: calc(16px * var(--sc)); overflow: hidden; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.line-belt .belt-strip { background-size: calc(128px * var(--sc)) 100%; animation-duration: .66s; }
.line-item { position: absolute; left: 50%; top: 0; width: calc(16px * var(--sc)); height: calc(16px * var(--sc)); margin-left: calc(-8px * var(--sc)); background: url(/assets/art/crate.png) 0 0 / 400% 100%; image-rendering: pixelated; z-index: 2; }
.line-item.coin { background-image: url(/assets/art/coin.png); background-size: 600% 100%; animation: coin6 .6s steps(1) infinite; }
@keyframes coin6 { 0% { background-position: 0 0; } 16.6% { background-position: 20% 0; } 33.3% { background-position: 40% 0; } 50% { background-position: 60% 0; } 66.6% { background-position: 80% 0; } 83.3%, 100% { background-position: 100% 0; } }
.line-track { position: relative; height: 100%; display: flex; width: max-content; will-change: transform; }
.st { flex: none; width: 100vw; height: 100%; padding: calc(var(--rail-h) + 64px) max(var(--gut), calc((100vw - 1280px) / 2)) 112px; display: flex; flex-direction: column; gap: 18px; }
.st-h { display: flex; align-items: center; gap: 22px; }
.st-h .ws-t { font-size: 96px; }
.st-spr { flex: none; width: calc(32px * var(--sc)); height: calc(32px * var(--sc)); background: url(/assets/art/m-namer.png) 0 0 / 400% 100%; animation: spr4 .5s steps(1) infinite; image-rendering: pixelated; }
.spr-printer { background-image: url(/assets/art/m-printer.png); }
.spr-press { width: calc(48px * var(--sc)); height: calc(48px * var(--sc)); background-image: url(/assets/art/press.png); background-size: 600% 100%; animation: spr6 .75s steps(1) infinite; }
.st-spr.paused { animation-play-state: paused; }
@keyframes spr4 { 0% { background-position: 0 0; } 25% { background-position: 33.333% 0; } 50% { background-position: 66.666% 0; } 75%, 100% { background-position: 100% 0; } }
@keyframes spr6 { 0% { background-position: 0 0; } 16.6% { background-position: 20% 0; } 33.3% { background-position: 40% 0; } 50% { background-position: 60% 0; } 66.6% { background-position: 80% 0; } 83.3%, 100% { background-position: 100% 0; } }
.st-plate { margin-left: auto; align-self: flex-start; padding: 6px 10px; font-size: 12px; color: var(--steelL); background: var(--iron); border: 3px solid var(--ink); max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-plate.hot { color: var(--ink); background: var(--ochre); }
.st-src { font: 400 14px/1.4 "Kode", monospace; color: var(--steelL); max-width: 760px; }
.namer-grid, .press-grid, .printer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; min-height: 0; }
.fields { display: grid; gap: 14px; align-content: start; }
.fld { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; background: var(--iron); border: 3px solid var(--ink); padding: 10px 14px 12px; box-shadow: inset 0 0 0 3px var(--iron2); }
.fld:focus-within { box-shadow: inset 0 0 0 3px var(--marker); }
.fld-k { font: 400 11px/1 "Kode", monospace; color: var(--ochre); text-transform: uppercase; }
.fld-n { font-size: 11px; color: var(--steel); text-align: right; }
.fld input, .fld textarea { grid-column: 1 / -1; width: 100%; background: transparent; border: 0; outline: 0; color: var(--chalk); padding: 0; caret-color: var(--marker); }
.fld input { font: 400 33px/1.15 "Kode", monospace; }
.fld-tk input { color: var(--ochreL); text-transform: uppercase; }
.fld textarea { font: 400 17px/1.4 "Pathway"; resize: vertical; min-height: 84px; }
.fld.bad { box-shadow: inset 0 0 0 3px var(--rustL); }
.fld-hits { font: 400 13px/1.4 "Kode", monospace; color: var(--rustL); min-height: 18px; }
.mlog { background: var(--ink); border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--iron2); padding: 16px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.mlog-t { font-size: 24px; color: var(--steelL); margin-bottom: 10px; }
.mlog-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font: 400 13px/1.4 "Kode", monospace; color: var(--chalk); overflow: auto; max-height: 46vh; }
.mlog-l li { display: grid; grid-template-columns: 22px 74px 1fr; gap: 10px; }
.mlog-l li b { font-weight: 400; color: var(--steelD); }
.mlog-l li i { font-style: normal; color: var(--ochre); }
.mlog-l li.cut i { color: var(--rustL); }
.mlog-l li.ok i { color: var(--steelL); }
.die { display: grid; place-items: center; background: var(--iron); border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--iron2); padding: 24px; position: relative; }
.die-cv, .die-own { width: 256px; height: 256px; image-rendering: pixelated; }
.die-own { object-fit: contain; }
@media (max-height: 760px) and (min-width: 761px) { .die-cv, .die-own { width: 192px; height: 192px; } .st-h .ws-t { font-size: 72px; } }
.press-side { display: grid; gap: 18px; align-content: start; }
.lamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.lamp-ghost { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 8px; transform-origin: 50% 100%; backface-visibility: hidden; pointer-events: none; }
.lamps li { font: 400 11px/1 "Kode", monospace; text-align: center; padding: 22px 0 8px; background: var(--iron); border: 3px solid var(--ink); color: var(--steel); position: relative; }
.lamps li::before { content: ""; position: absolute; top: 6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: var(--steelD); box-shadow: 0 0 0 2px var(--ink); }
.lamps li.on { color: var(--chalk); }
.lamps li.on::before { background: var(--ochreL); }
.lamps li.now::before { background: var(--marker); }
.real { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--steelL); }
.real canvas { width: 32px; height: 32px; background: var(--iron); }
.press-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.press-meta { font-size: 13px; color: var(--steelL); line-height: 1.5; }
.sheet { background: var(--chalk); color: var(--ink); border: 3px solid var(--ink); padding: 20px; box-shadow: 8px 8px 0 var(--ink); align-self: start; }
.sheet-url { font-size: 12px; color: var(--steelD); margin-bottom: 14px; overflow-wrap: anywhere; }
.sheet-head { display: flex; gap: 14px; align-items: center; }
.sheet-head canvas { width: 64px; height: 64px; flex: none; }
.sheet-name { font: 700 28px/1.05 "Pathway"; font-stretch: 80%; overflow-wrap: anywhere; }
.sheet-sym { font-size: 14px; color: var(--ochreD); margin-top: 4px; }
.sheet-desc { margin: 14px 0; font-size: 16px; line-height: 1.4; color: #3a342c; }
.sheet-links { display: grid; gap: 6px; }
.lk { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; border-top: 2px solid #d9ccae; padding-top: 6px; }
.lk span { font-size: 11px; color: var(--steelD); }
.lk input { background: transparent; border: 0; outline: 0; font: 400 14px/1.3 "Kode", monospace; color: var(--ink); width: 100%; min-width: 0; min-height: 36px; }
.lk input:focus { background: #f3ecd9; }
.slips { display: grid; gap: 10px; align-content: start; max-height: 58vh; overflow: auto; padding-right: 4px; }
.slip { background: #f3ecd9; color: var(--ink); border: 3px solid var(--ink); padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; }
.slip textarea { grid-column: 1 / -1; width: 100%; border: 0; outline: 0; background: transparent; resize: none; font: 400 15px/1.4 "Pathway"; color: var(--ink); min-height: 44px; padding: 0; }
.slip .sl-n { font: 400 11px/1 "Kode", monospace; color: var(--steelD); align-self: center; }
.slip .sl-acts { display: flex; gap: 6px; }
.slip .sl-b { font: 400 11px/1 "Kode", monospace; padding: 6px 8px; background: var(--ink); color: var(--chalk); border: 0; text-decoration: none; }
.slip .sl-b:hover { background: var(--markerD); }
@media (max-width: 900px) {
  .line-pin { height: auto; position: relative; }
  .line-track { flex-direction: column; width: auto; transform: none !important; }
  .line-belt { display: none; }
  .st { width: auto; height: auto; padding: 96px var(--gut) 56px; }
  .st-h { flex-wrap: wrap; gap: 14px; }
  .st-h .ws-t { font-size: 48px; }
  .st-plate { margin-left: 0; max-width: 100%; }
  .namer-grid, .press-grid, .printer-grid { grid-template-columns: 1fr; gap: 20px; }
  .fld input { font-size: 22px; }
  .die-cv, .die-own { width: 192px; height: 192px; }
  .lamps { grid-template-columns: repeat(4, 1fr); }
  .mlog-l { height: 320px; max-height: none; }
  .slips { max-height: none; min-height: 340px; align-content: start; }
}

/* ---------------------------------------------------------------- 4 silo */
.silo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.plate9 { border: calc(16px * var(--sc)) solid transparent; border-image: url(/assets/art/nine-plate.png) 16 fill round; image-rendering: pixelated; }
.manifest { padding: 0; }
.mf-k { font-size: 24px; color: var(--ochre); margin-bottom: 14px; }
.mf-row { display: flex; gap: 14px; align-items: center; }
.mf-row canvas { width: 96px; height: 96px; flex: none; background: var(--iron2); }
.mf-name { font: 700 30px/1.05 "Pathway"; font-stretch: 80%; overflow-wrap: anywhere; }
.mf-sym { color: var(--ochreL); font-size: 18px; margin-top: 4px; }
.mf-dl { margin: 18px 0 0; display: grid; gap: 8px; font-size: 13px; }
.mf-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; border-top: 2px solid var(--iron2); padding-top: 8px; }
.mf-dl dt { color: var(--steel); text-transform: uppercase; }
.mf-dl dd { margin: 0; color: var(--chalk); overflow-wrap: anywhere; }
.controls { display: grid; gap: 22px; }
.breaker-row { display: flex; gap: 18px; align-items: center; }
/* industrial breaker (21st 24092 industrial switch, own sprite-free skin: housing steel, handle marker) */
.breaker { position: relative; width: 64px; height: 88px; flex: none; background: var(--steelD); border: 3px solid var(--ink); box-shadow: inset 3px 3px 0 var(--steel), inset -3px -3px 0 var(--iron); padding: 0; }
.breaker::before { content: ""; position: absolute; left: 22px; right: 22px; top: 12px; bottom: 12px; background: var(--ink); }
.br-h { position: absolute; left: 10px; right: 10px; height: 28px; bottom: 12px; background: var(--steel); border: 3px solid var(--ink); box-shadow: inset 3px 3px 0 var(--steelL); touch-action: none; }
.breaker { cursor: grab; touch-action: none; }
.breaker.drag { cursor: grabbing; }
.br-led { position: absolute; left: 50%; top: -14px; width: 8px; height: 8px; margin-left: -4px; background: var(--steelD); border: 2px solid var(--ink); }
.breaker[aria-checked="true"] .br-led { background: var(--ochreL); }
.br-m { position: absolute; right: -16px; font: 400 11px/1 "Kode", monospace; color: var(--steel); }
.br-m.i { top: 10px; } .br-m.o { bottom: 10px; }
.breaker[aria-checked="true"] .br-m.i, .breaker[aria-checked="false"] .br-m.o { color: var(--chalk); }
.breaker[aria-checked="true"] .br-h { transform: translateY(-36px); background: var(--marker); box-shadow: inset 3px 3px 0 var(--markerL); }
.breaker-k p { font-family: "Silk"; font-size: 24px; margin-bottom: 8px; }
.db { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--steelL); }
.db input { width: 120px; font: 400 22px/1 "Kode", monospace; color: var(--ochreL); background: var(--iron); border: 3px solid var(--ink); padding: 8px 10px; }
.db input:disabled { color: var(--steelD); }
.feeline { font-size: 14px; color: var(--steelL); }
.feeline b { color: var(--ochreL); font-weight: 400; }
.pull { display: flex; gap: 22px; align-items: stretch; }
.lever-big { flex: none; width: calc(16px * var(--sc) + 36px); background: var(--marker); border: 3px solid var(--ink); box-shadow: inset 3px 3px 0 var(--markerL), inset -3px -3px 0 var(--markerD), 0 8px 0 var(--ink); display: grid; place-items: center; padding: 14px 0; }
.lever-big:hover .lvb-spr { background-position: 25% 0; }
.lever-big[disabled] { background: var(--steelD); box-shadow: 0 8px 0 var(--ink); cursor: not-allowed; }
.hud { flex: 1; background: var(--ink); border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--iron2); padding: 16px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.hud-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.hud-steps li { padding: 6px 8px; background: var(--iron); color: var(--steel); }
.hud-steps li.on { background: var(--ochre); color: var(--ink); }
.hud-steps li.now { background: var(--marker); color: var(--ink); }
.hud-steps li.bad { background: var(--rust); color: var(--chalk); }
.hud-l { font-size: 14px; line-height: 1.5; color: var(--chalk); overflow-wrap: anywhere; min-height: 42px; }
.hud-l.err { color: var(--markerL); }
.launched { background: var(--iron); border: 3px solid var(--ink); padding: 18px; display: grid; gap: 14px; box-shadow: inset 0 0 0 3px var(--ochre); }
.launched h3 { font-family: "Silk"; font-size: 48px; color: var(--ochreL); }
.launched .acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .silo-grid { grid-template-columns: 1fr; } .pull { flex-direction: column; } .lever-big { width: 100%; height: 120px; } }

/* ---------------------------------------------------------------- 5 furnace */
.fur-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.fur-scene { height: calc(96px * var(--sc)); border: 3px solid var(--ink); background: var(--iron); position: relative; overflow: hidden; }
.fur-cv { width: 100%; height: 100%; display: block; }
.fur-n { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border: 3px solid var(--ink); background: var(--iron); }
.fur-n > div { padding: 16px 18px; border-top: 3px solid var(--ink); }
.fur-n > div:nth-child(-n+2) { border-top: 0; }
.fur-n > div:nth-child(1) { grid-column: 1 / -1; }
.fur-n > div:nth-child(3) { border-top: 3px solid var(--ink); border-left: 0; }
.fur-n > div:nth-child(2), .fur-n > div:nth-child(4) { border-left: 0; }
.fur-n > div:nth-child(3) { border-left: 3px solid var(--ink); }
.fur-n dt { font: 400 11px/1 "Kode", monospace; color: var(--steel); text-transform: uppercase; }
.fur-n dd { margin: 8px 0 0; font-size: 33px; line-height: 1; color: var(--ochreL); }
.fur-n .odo-big { font-size: 44px; }
.receipts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 6px; }
.rc { display: grid; grid-template-columns: 90px 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; background: var(--iron); border: 3px solid var(--ink); font: 400 13px/1.3 "Kode", monospace; }
.rc .k { color: var(--ink); background: var(--ochre); text-align: center; padding: 4px 0; text-transform: uppercase; }
.rc .k-burn { background: var(--rustL); } .rc .k-claim { background: var(--steelL); } .rc .k-launch { background: var(--marker); }
.rc .t { color: var(--steel); }
.rc .v { color: var(--chalk); overflow-wrap: anywhere; }
.rc a { color: var(--ochreL); text-decoration: none; }
.rc a:hover { text-decoration: underline; }
.rc.flash { animation: flash .3s steps(1); }
@keyframes flash { 0% { background: var(--ochreD); } 100% { background: var(--iron); } }
@media (max-width: 900px) { .fur-grid { grid-template-columns: 1fr; } .rc { grid-template-columns: 70px 1fr; } .rc .v { grid-column: 1 / -1; } .fur-n dd { font-size: 22px; } .fur-n .odo-big { font-size: 33px; } }

/* ---------------------------------------------------------------- 6 orders */
.ord-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--steelL); margin-bottom: 18px; }
.ord-meta b { color: var(--ochreL); font-weight: 400; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 220px auto; gap: 16px; align-items: center; padding: 12px 14px; background: var(--iron); border: 3px solid var(--ink); position: relative; }
.qrow::before { content: ""; width: 48px; height: 48px; background: url(/assets/art/crate.png) 0 0 / 400% 100%; }
.qrow.won::before, .qrow.launched::before { background: url(/assets/art/coin.png) 0 0 / 600% 100%; }
.q-t { min-width: 0; }
.q-t p { font: 600 18px/1.25 "Pathway"; overflow-wrap: anywhere; }
.q-t small { display: block; margin-top: 4px; font: 400 12px/1.3 "Kode", monospace; color: var(--steelL); }
.q-t small b { color: var(--ochreL); font-weight: 400; }
.q-w { display: grid; gap: 6px; font: 400 12px/1 "Kode", monospace; color: var(--steelL); }
.bar { height: 16px; background: var(--ink); border: 2px solid var(--ink); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--ochre) 0 6px, var(--ochreD) 6px 8px); clip-path: inset(0 100% 0 0); }
.qrow.lead .q-t p::before { content: "NEXT UP"; display: inline-block; margin-right: 10px; padding: 2px 6px; font: 400 11px/1.2 "Kode", monospace; color: var(--ink); background: var(--ochreL); border: 2px solid var(--ink); vertical-align: 2px; }
.bar.full i { background: var(--marker); }
.q-st { font: 400 12px/1 "Kode", monospace; padding: 6px 8px; background: var(--steelD); color: var(--chalk); text-transform: uppercase; }
.q-st.won, .q-st.launching { background: var(--marker); color: var(--ink); }
.q-st.launched { background: var(--ochre); color: var(--ink); }
.qrow .mb { height: 40px; }
.qrow.mine { box-shadow: inset 0 0 0 3px var(--marker); }
.propose { margin-top: 36px; }
.prop-row { display: flex; gap: 12px; }
.prop-in { flex: 1; min-width: 0; height: 48px; padding: 0 14px; background: var(--iron); border: 3px solid var(--ink); color: var(--chalk); font: 400 16px/1 "Kode", monospace; outline: 0; }
.prop-in:focus { box-shadow: inset 0 0 0 3px var(--marker); }
.ord-rule { margin-top: 22px; font-size: 12px; color: var(--steel); max-width: 900px; line-height: 1.5; }
@media (max-width: 900px) { .qrow { grid-template-columns: 48px minmax(0, 1fr); } .qrow::before { width: 32px; height: 32px; } .q-w, .qrow > .q-a { grid-column: 1 / -1; } .prop-row { flex-direction: column; } }

/* ---------------------------------------------------------------- 7 shipping */
.shipbelt { cursor: grab; position: relative; height: calc(48px * var(--sc) + 24px); margin: 8px 0 0; overflow: hidden; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); touch-action: pan-y; }
.sb-bed { background-size: calc(128px * var(--sc)) 100%; }
.sb-track { position: absolute; top: 12px; left: 0; display: flex; gap: 24px; will-change: transform; user-select: none; }
.sbi { flex: none; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; width: 340px; height: calc(48px * var(--sc)); padding: 10px 12px; background: var(--iron); border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--iron2); }
.sbi img { width: 64px; height: 64px; grid-row: 1 / 3; background: var(--iron2); }
.sbi .n { font: 700 20px/1.05 "Pathway"; font-stretch: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbi .s { font: 400 12px/1.2 "Kode", monospace; color: var(--ochreL); }
.sbi .ca { grid-column: 1 / -1; font-size: 11px; }
.sbi .ca .ca-v { font-size: 10px; padding: 4px 6px; }
.sbi .ca .ca-k { font-size: 10px; padding: 0 5px; }
.sbi .ln { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.sbi .ln a { font: 400 11px/1 "Kode", monospace; padding: 6px 7px; background: var(--steelD); color: var(--chalk); text-decoration: none; }
.sbi .ln a:hover { background: var(--marker); color: var(--ink); }
.sbi .ln .ag { background: var(--ochre); color: var(--ink); }
@media (max-width: 760px) { .sbi { width: 300px; } }
.ship-end { display: grid; justify-items: center; gap: 22px; margin-top: 64px; text-align: center; }
.stencil-s { font-size: 72px; white-space: normal; }
@media (max-width: 760px) { .stencil-s { font-size: 32px; } }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; margin-top: 40px; background: var(--iron); border-top: 3px solid var(--ink); }
.hazard-edge { height: calc(4px * var(--sc)); background: url(/assets/art/hazard.png) 0 0 / calc(16px * var(--sc)) 100% repeat-x; }
.foot-in { width: min(1280px, 100% - 2 * var(--gut)); margin: 0 auto; padding: 36px 0 48px; display: grid; gap: 22px; }
.foot-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Silk"; font-size: 24px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 400 13px/1 "Kode", monospace; text-transform: uppercase; }
.foot-nav a { padding: 10px 0; text-decoration: none; color: var(--steelL); }
.foot-nav a:hover { color: var(--ochreL); }
.foot-note { font-size: 14px; color: var(--steel); max-width: 680px; }
.foot-ca .ca { max-width: 100%; }

/* ---------------------------------------------------------------- claw cursor (21st 1896 follow cursor, own sprite + label) */
.claw { position: fixed; z-index: 100; left: 0; top: 0; width: 32px; height: 32px; pointer-events: none; display: none; will-change: transform; }
html.claw-on .claw { display: block; }
.claw i { position: absolute; inset: 0; background: url(/assets/art/cursor.png) 0 0 / 300% 100%; image-rendering: pixelated; }
.claw.hov i { background-position: 50% 0; }
.claw.down i { background-position: 100% 0; }
.claw b { position: absolute; left: 30px; top: 28px; font: 400 11px/1 "Kode", monospace; background: var(--ochre); color: var(--ink); padding: 4px 6px; border: 2px solid var(--ink); white-space: nowrap; transform: scaleY(0); transform-origin: 0 0; transition: transform 60ms steps(2); }
.claw.lbl b { transform: none; }

/* ---------------------------------------------------------------- tooltip plate (21st 28253, 2-frame drop) */
.tip { position: fixed; z-index: 95; max-width: min(520px, 92vw); padding: 8px 12px 8px 22px; background: var(--iron); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px var(--steelD); font: 400 12px/1.4 "Kode", monospace; color: var(--chalk); overflow-wrap: anywhere; pointer-events: none; }
.tip::before, .tip::after { content: ""; position: absolute; left: 8px; width: 5px; height: 5px; background: var(--steel); }
.tip::before { top: 8px; } .tip::after { bottom: 8px; }
.tip.drop { animation: tipdrop .1s steps(2); }
@keyframes tipdrop { from { transform: translateY(-8px); } to { transform: none; } }

/* ---------------------------------------------------------------- dialogs (wallet picker + mine) */
.dlg { padding: 0; border: 3px solid var(--ink); background: var(--iron); color: var(--chalk); max-width: min(560px, calc(100vw - 32px)); width: 100%; box-shadow: 10px 10px 0 var(--ink); }
.dlg::backdrop { background: rgba(11, 9, 7, .78); }
.dlg-in, .dlg > div { padding: 20px; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dlg-h h2 { font-size: 48px; color: var(--ochre); }
.dlg-x, .wp-x { width: 44px; height: 44px; background: var(--steel); border: 3px solid var(--ink); font: 400 18px/1 "Kode", monospace; color: var(--ink); }
.wpick h2, .wpick h3 { font-family: "Silk"; font-size: 24px; font-weight: 400; margin: 0 0 12px; color: var(--ochre); }
.wpick ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wp-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; background: var(--iron2); border: 3px solid var(--ink); color: var(--chalk); font: 400 15px/1 "Kode", monospace; text-align: left; }
.wp-item:hover { background: var(--steelD); }
.wp-item img { width: 28px; height: 28px; }
.wpick a { color: var(--ochreL); }
.wpick p { font-size: 14px; color: var(--steelL); }
.wp-err { color: var(--markerL) !important; }
.mine-row { display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px; padding: 10px 0; border-top: 2px solid var(--iron2); align-items: center; }
.mine-row img { width: 48px; height: 48px; grid-row: 1 / 3; }
.mine-row a { color: var(--ochreL); }
.mine-row .num { font-size: 12px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- shop monitor: the "How it works" film (docs) + its tag at the silo (home) */
.mon { position: relative; display: grid; gap: 0; background: var(--steelD); border: 3px solid var(--ink); padding: 12px; outline: none;
  box-shadow: inset 3px 3px 0 var(--steel), inset -3px -3px 0 var(--iron2), 0 8px 0 var(--ink); }
.mon:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.mon-top { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; font-size: 11px; color: var(--steelL); text-transform: uppercase; }
.mon-top .mon-led { width: 6px; height: 6px; background: var(--ochreD); box-shadow: 0 0 0 3px var(--ink); margin-left: auto; }
.mon.is-on .mon-led { background: var(--ochreL); animation: led 1s steps(1) infinite; }
@keyframes led { 50% { background: var(--ochreD); } }
.vp-scr { position: relative; aspect-ratio: 16 / 9; background: var(--soot); border: 3px solid var(--ink); overflow: hidden; cursor: pointer; }
.vp-scr video { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; background: var(--soot); }
.vp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); --f: var(--marker); --fl: var(--markerL); --fd: var(--markerD);
  display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; color: var(--ink); background: var(--f); border: 3px solid var(--ink);
  box-shadow: inset 3px 3px 0 var(--fl), inset -3px -3px 0 var(--fd), 0 8px 0 var(--ink); cursor: pointer; transition: transform 60ms steps(2); }
.vp-big span { font: 400 48px/1 "Silk"; }
.vp-big::before { content: ""; width: 0; height: 0; border-left: 18px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vp-big:hover { --f: var(--markerL); }
.vp-big:active { transform: translate(-50%, calc(-50% + 6px)); box-shadow: inset -3px -3px 0 var(--fl), inset 3px 3px 0 var(--fd); }
.mon.is-started .vp-big { display: none; }
.vp-bar { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.vp-k { width: 44px; padding: 0; flex: none; }
.vp-k svg { width: 16px; height: 16px; fill: currentColor; shape-rendering: crispEdges; }
.vp-k .i-pause, .mon.is-on .vp-k .i-play { display: none; }
.mon.is-on .vp-k .i-pause { display: block; }
.vp-k .i-off, .mon.is-muted .vp-k .i-on { display: none; }
.mon.is-muted .vp-k .i-off { display: block; }
/* the timeline is a belt: bed scrolls with the playhead, ochre = played, steel = loaded, the head is the marker claw tab */
.vp-tl { --belt: 0px; position: relative; flex: 1; min-width: 80px; height: 24px; background: var(--iron); border: 3px solid var(--ink); cursor: pointer; touch-action: none; }
.vp-tl::before { content: ""; position: absolute; inset: 3px 0; background: repeating-linear-gradient(90deg, var(--iron2) 0 12px, var(--iron) 12px 24px); background-position: var(--belt) 0; }
.vp-tl i { position: absolute; top: 0; bottom: 0; left: 0; display: block; }
.vp-buf { background: var(--steelD); opacity: .55; }
.vp-done { background: var(--ochre); box-shadow: inset 0 3px 0 var(--ochreL); }
.vp-head { width: 12px; top: -9px !important; bottom: -9px !important; background: var(--marker); border: 3px solid var(--ink); }
.mon.is-drag .vp-head { background: var(--markerL); }
.vp-tl:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.vp-time { flex: none; font-size: 14px; color: var(--chalk); min-width: 104px; text-align: center; }
.vp-vol { display: flex; gap: 3px; height: 24px; align-items: flex-end; cursor: pointer; touch-action: none; flex: none; }
.vp-vol i { width: 6px; background: var(--iron2); box-shadow: 0 0 0 2px var(--ink) inset; }
.vp-vol i:nth-child(1) { height: 6px; } .vp-vol i:nth-child(2) { height: 9px; } .vp-vol i:nth-child(3) { height: 12px; } .vp-vol i:nth-child(4) { height: 15px; }
.vp-vol i:nth-child(5) { height: 18px; } .vp-vol i:nth-child(6) { height: 21px; } .vp-vol i:nth-child(7) { height: 24px; } .vp-vol i:nth-child(8) { height: 24px; }
.vp-vol i.on { background: var(--ochreL); }
.vp-vol:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.mon.is-fs { padding: 12px; display: grid; grid-template-rows: auto 1fr auto; }
.mon.is-fs .vp-scr { aspect-ratio: auto; min-height: 0; }
@media (max-width: 760px) {
  .mon { padding: 8px; }
  .vp-bar { flex-wrap: wrap; gap: 8px; }
  .vp-tl { order: -1; flex-basis: 100%; }
  .vp-time { min-width: 0; margin-right: auto; }
  .vp-big { height: 52px; padding: 0 16px; } .vp-big span { font-size: 24px; }
}
.film-tag { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; justify-self: start; padding: 8px 16px 8px 8px; text-decoration: none;
  background: var(--iron); border: 3px solid var(--ink); box-shadow: inset 3px 3px 0 var(--iron2), 0 6px 0 var(--ink); transition: transform 60ms steps(2); }
.film-tag:hover { background: var(--iron2); }
.film-tag:active { transform: translateY(6px); box-shadow: inset 3px 3px 0 var(--iron2); }
.film-tag:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.ft-scr { position: relative; width: 112px; height: 63px; border: 3px solid var(--ink); background: var(--soot) center / cover no-repeat; image-rendering: pixelated; }
.ft-scr::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); border-left: 15px solid var(--marker); border-top: 10px solid transparent; border-bottom: 10px solid transparent; filter: drop-shadow(3px 0 0 var(--ink)); }
.film-tag b { display: block; font: 400 24px/1 "Silk"; color: var(--chalk); }
.film-tag small { display: block; margin-top: 6px; font: 400 12px/1.2 "Kode", monospace; color: var(--steelL); text-transform: uppercase; }

/* ---------------------------------------------------------------- docs / stats / 404 pages */
.page { padding: calc(var(--rail-h) + 64px) 0 80px; }
.page .ws-in { display: grid; gap: 40px; }
.doc { display: grid; gap: 18px; max-width: 900px; }
.doc h2 { font-family: "Silk"; font-size: 48px; color: var(--ochre); }
.doc h3 { font: 700 21px/1.2 "Pathway"; color: var(--chalk); }
.doc p, .doc li { color: var(--chalk); font-size: 18px; }
.doc ol, .doc ul { padding-left: 22px; display: grid; gap: 8px; margin: 0; }
.doc a { color: var(--ochreL); }
.belt-steps { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; counter-reset: s; }
.belt-steps li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 3px solid var(--iron2); }
.belt-steps li b { font-family: "Silk"; font-size: 24px; color: var(--ochreL); font-weight: 400; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--iron2); vertical-align: top; }
.tbl th { font: 400 11px/1 "Kode", monospace; color: var(--steel); text-transform: uppercase; }
.tbl td code { font-size: 13px; color: var(--steelL); overflow-wrap: anywhere; }
.tbl-wrap { overflow-x: auto; background: var(--iron); border: 3px solid var(--ink); }
.killer { font: 700 44px/1.1 "Pathway"; font-stretch: 78%; max-width: 1100px; }
.killer b { color: var(--ochreL); font-family: "Kode"; font-weight: 400; font-size: 40px; }
@media (max-width: 760px) { .killer { font-size: 30px; } .killer b { font-size: 26px; } .doc h2 { font-size: 36px; } .belt-steps li { grid-template-columns: 1fr; gap: 6px; } }
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; border: 3px solid var(--ink); background: var(--iron); }
.sgrid > div { padding: 16px 18px; border: 0 solid var(--ink); border-width: 0 3px 3px 0; }
.sgrid dt { font: 400 11px/1 "Kode", monospace; color: var(--steel); text-transform: uppercase; }
.sgrid dd { margin: 8px 0 0; font-size: 33px; color: var(--ochreL); line-height: 1; }
.lrows { display: grid; gap: 6px; }
.lrow { display: grid; grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, 2fr) 90px 110px; gap: 12px; align-items: center; padding: 8px 12px; background: var(--iron); border: 3px solid var(--ink); font: 400 13px/1.3 "Kode", monospace; }
.lrow img { width: 48px; height: 48px; }
.lrow .nm { font: 700 17px/1.1 "Pathway"; font-stretch: 85%; overflow-wrap: anywhere; }
.lrow .nm small { display: block; font: 400 12px/1.2 "Kode", monospace; color: var(--ochreL); }
.lrow .ca { font-size: 11px; } .lrow .ca .ca-v { font-size: 11px; padding: 5px 6px; }
.lrow a { color: var(--ochreL); text-decoration: none; }
@media (max-width: 900px) { .lrow { grid-template-columns: 48px 1fr; } .lrow > :nth-child(n+3) { grid-column: 1 / -1; } }
.nf { min-height: 100svh; display: grid; place-content: center; grid-template-columns: minmax(0, 640px); justify-items: center; gap: 24px; text-align: center; padding: 96px 16px; }
.nf img { width: min(640px, 100%); height: auto; aspect-ratio: 16 / 9; border: 3px solid var(--ink); }
.nf .stencil { font-size: 96px; }
/* 19374 not found: the page rolls in (4 frames), the jammed belt rattles in short bursts every 2 s */
.nf { animation: nfin .32s steps(4) backwards; }
@keyframes nfin { from { transform: translateY(20px); opacity: 0; } }
.nf img { animation: jam 2s steps(1) infinite .6s; }
@keyframes jam { 0% { transform: translateX(0); } 3% { transform: translateX(3px); } 6% { transform: translateX(-3px); } 9% { transform: translateX(2px); } 12%, 100% { transform: none; } }
@media (max-width: 760px) { .nf .stencil { font-size: 48px; } }

@media (prefers-reduced-motion: reduce) {
  .nf img { animation: none; }
  .ob-bed, .sb-bed, .belt-strip { animation-duration: 1.32s; }
  .st-spr { animation-duration: 1s; }
}
.film { scroll-margin-top: calc(var(--rail-h) + 24px); }
.foot-mark img { width: 40px; height: 40px; image-rendering: auto; }
@media (max-width: 360px) { .mb-big span { font-size: 16px; } .mb-big { padding: 0 16px; } }
