@font-face { font-family: "Rokkitt"; src: url(/fonts/rokkitt.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url(/fonts/onest.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dm-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dm-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #161a33; --ink-2: #4a4f6a; --blue: #2541b2; --blue-d: #1b3190; --cab-d: #15277a; --pale: #f5f1e8; --pale-2: #ebe3d2; --line: #d9cfba;
  --deep: #0f1330; --brass: #e0a93b; --brass-d: #8a5e14; --paper: #fffdf8;
  --file: #f28c28; --file-l: #ffc078; --note: #22a06b; --link: #8b5cf6; --link-l: #c4b5fd; --ret: #e0452f; --lcd: #b6f56e; --lcd-bg: #0c1210;
  --display: "Rokkitt", Georgia, serif; --body: "Onest", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--pale); color: var(--ink); font: 400 1rem/1.6 var(--body); overflow-x: clip; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, 7.6vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 750; }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue-d); }
code, pre { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--brass-d); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--pale); padding: 8px 14px; z-index: 20; border-radius: 6px; }
.skip:focus { left: 8px; }
.eyebrow { font: 500 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow-light { color: var(--brass); }
.muted { color: var(--ink-2); font-size: .92rem; }
.break { overflow-wrap: anywhere; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px clamp(14px, 3vw, 40px); }
.top nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 22px); }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .94rem; padding: 10px 2px; }
.top nav a:not(.btn):hover { color: var(--blue); }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 1.4rem/1 var(--display); color: var(--ink); text-decoration: none; }
.logo { width: 32px; height: 32px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border: 2px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--pale); font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; text-align: center; box-shadow: 0 3px 0 var(--blue); transition: transform .14s var(--ease), box-shadow .14s var(--ease), background-color .14s; touch-action: manipulation; }
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--blue); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--pale-2); border-color: var(--ink); }
.btn-light { background: var(--pale); color: var(--ink); border-color: var(--pale); box-shadow: 0 3px 0 var(--brass); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-small { min-height: 40px; padding: 7px 13px; font-size: .9rem; box-shadow: none; }
.btn-wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 12px 0; color: var(--blue-d); font: 500 .94rem var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.x-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color: var(--pale) !important; }

/* Hero: the page is the machine face */
body[data-page="home"] .top { background: var(--blue); }
body[data-page="home"] .top .brand, body[data-page="home"] .top nav a:not(.btn) { color: var(--pale); }
body[data-page="home"] .top nav a:not(.btn):hover { color: var(--lcd); }
body[data-page="home"] .top .btn { background: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--cab-d); }
.cab { background: var(--blue); background-image: linear-gradient(90deg, rgba(0, 0, 0, .14), transparent 3%, transparent 97%, rgba(0, 0, 0, .14)); color: var(--pale); padding: 4px 0 clamp(34px, 5vw, 60px); }
.cab-in { width: min(1180px, 100% - 24px); margin-inline: auto; display: grid; gap: 14px; }
.display { position: relative; border-radius: 18px; padding: clamp(22px, 4.4vw, 52px); background: var(--lcd-bg); background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px), radial-gradient(120% 130% at 15% 0%, #1b2a22, var(--lcd-bg) 60%); border: 8px solid var(--cab-d); box-shadow: inset 0 12px 34px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .18); display: grid; gap: 0 clamp(24px, 4vw, 60px); }
.lcd-tag { font: 500 .78rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lcd); margin-bottom: 16px; }
.lcd-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lcd); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 8px var(--lcd); }
.display h1 { color: var(--pale); }
.display h1 em { font-style: normal; color: var(--lcd); display: block; }
.display .lede { color: #c6cfc2; margin-top: 18px; }
.display .cta-row { margin-top: 24px; }
.lede { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--ink-2); margin-top: 20px; max-width: 34em; }
.btn-coin { background: var(--brass); border-color: var(--brass); color: var(--ink); box-shadow: 0 3px 0 var(--brass-d); }
.btn-coin:hover { background: #ecbd5c; border-color: #ecbd5c; }
.btn-onblue { background: transparent; color: var(--pale); border-color: rgba(245, 241, 232, .55); box-shadow: none; }
.btn-onblue:hover { background: rgba(245, 241, 232, .1); border-color: var(--pale); }

.face { display: grid; grid-template-columns: 1fr minmax(170px, 230px); grid-template-areas: "win panel" "tray panel" "hint hint"; gap: 14px; }
.window { grid-area: win; list-style: none; margin: 0; padding: 14px 14px 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; overflow: hidden; border-radius: 14px; border: 8px solid var(--cab-d); background: linear-gradient(165deg, #eef2fd, #c7d3f3); }
.window::after { content: ""; position: absolute; inset: -20% auto -20% 8%; width: 18%; background: rgba(255, 255, 255, .35); transform: skewX(-18deg); pointer-events: none; }
.slot[data-kind="file"], .kind-list [data-kind="file"] { --k: var(--file); }
.slot[data-kind="note"], .kind-list [data-kind="note"] { --k: var(--note); }
.slot[data-kind="link"], .kind-list [data-kind="link"] { --k: var(--link); }
.slot-btn { position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; align-content: end; gap: 4px; min-height: 100%; padding: 12px 4px 8px; border: 2px solid transparent; border-radius: 10px; background: none; color: var(--ink); font: inherit; cursor: pointer; touch-action: manipulation; transition: background-color .15s, border-color .15s; }
.slot-btn:hover { background: rgba(255, 255, 255, .4); }
.slot-btn[aria-pressed="true"] { border-color: var(--ink); background: rgba(255, 255, 255, .55); }
.slot-item { display: block; width: clamp(46px, 8vw, 96px); transition: transform .62s cubic-bezier(.55, 0, .85, .4), opacity .12s .56s; }
.slot-item svg, .tray-item svg, .kind-art svg { display: block; width: 100%; height: auto; }
.coil { width: 90%; height: 12px; color: var(--ink-2); transition: transform .6s linear; }
.plate { font: 500 .74rem/1.2 var(--mono); background: var(--ink); color: var(--pale); padding: 4px 8px; border-radius: 4px; white-space: nowrap; margin-top: 4px; }
.plate b { color: var(--k); font-weight: 500; }
.face[data-state="vend"] .slot-btn[aria-pressed="true"] .slot-item, .face[data-state="done"] .slot-btn[aria-pressed="true"] .slot-item { transform: translateY(240%); opacity: 0; }
.face[data-state="vend"] .slot-btn[aria-pressed="true"] .coil, .face[data-state="done"] .slot-btn[aria-pressed="true"] .coil { transform: translateX(8px); }

.panel { grid-area: panel; display: grid; grid-template-areas: "lcd" "coin" "ret" "note"; grid-template-rows: auto auto auto 1fr; gap: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #eef0f6, #cdd3e2); color: var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.lcd { grid-area: lcd; background: var(--lcd-bg); color: var(--lcd); font: 500 .84rem/1.4 var(--mono); letter-spacing: .06em; padding: 10px 12px; border-radius: 6px; min-height: 4.2em; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.coin-row { grid-area: coin; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slot-plate { display: grid; justify-items: center; gap: 4px; padding: 10px 14px 6px; border-radius: 8px; background: var(--ink); }
.slot-plate small { font: 500 .66rem var(--mono); color: var(--brass); letter-spacing: .1em; }
.m-slot { display: block; width: 10px; height: 56px; border-radius: 5px; background: #000; box-shadow: 0 0 0 2px var(--brass); }
.face:not([data-state="idle"]) .m-slot { box-shadow: 0 0 0 2px var(--lcd), 0 0 10px var(--lcd); }
.coin { position: relative; z-index: 5; width: 68px; aspect-ratio: 1; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: grab; touch-action: none; filter: drop-shadow(0 4px 3px rgba(15, 19, 48, .45)); will-change: transform; transition: transform .3s var(--ease), opacity .2s; animation: nudge 2.8s var(--ease) 1.2s 3; }
.coin svg { display: block; width: 100%; }
.coin-t { font: 500 15px var(--mono); fill: #5e3f0a; }
.coin:active { cursor: grabbing; }
.coin.dragging { transition: none; animation: none; }
.coin.spent { opacity: 0; pointer-events: none; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(-10px); } 90% { transform: translateX(-2px); } }
.sticker { grid-area: note; align-self: end; margin-top: 4px; padding: 10px 12px; border: 2px dashed #9aa0b8; border-radius: 8px; font: 500 .74rem/1.45 var(--mono); color: var(--ink-2); }
.sticker b { display: block; font-weight: 500; color: var(--ink); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.ret { grid-area: ret; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: 600 .9rem/1.2 var(--body); cursor: pointer; touch-action: manipulation; }
.ret span { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--ret); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28); }
.ret:disabled { cursor: default; color: var(--ink-2); border-color: #9aa0b8; }
.ret:disabled span { background: #b9a9a4; }
.ret:not(:disabled):hover { background: #fff; }

.tray { grid-area: tray; padding: 10px; border-radius: 14px; background: var(--cab-d); }
.tray-in { position: relative; height: clamp(76px, 9vw, 96px); border-radius: 8px; background: #0b0f26; overflow: hidden; box-shadow: inset 0 8px 14px rgba(0, 0, 0, .6); }
.tray-item { position: absolute; left: 50%; bottom: 6px; width: 50px; margin-left: -25px; transform: translateY(130%) rotate(-8deg); transition: transform .34s var(--ease) .12s; }
.face[data-state="done"][data-pick="file"] .tray-item[data-kind="file"], .face[data-state="done"][data-pick="note"] .tray-item[data-kind="note"], .face[data-state="done"][data-pick="link"] .tray-item[data-kind="link"] { transform: rotate(-8deg); }
.flap { position: absolute; inset: 0; background: linear-gradient(180deg, #3253d0, var(--blue-d)); transition: opacity .26s; }
.flap::after { content: "PUSH"; position: absolute; left: 50%; bottom: 12px; translate: -50% 0; font: 500 .7rem var(--mono); letter-spacing: .3em; color: rgba(245, 241, 232, .7); border-top: 4px solid rgba(245, 241, 232, .6); padding-top: 4px; width: 90px; text-align: center; border-radius: 2px; }
.face[data-state="done"] .flap { opacity: 0; }
.machine-hint { grid-area: hint; text-align: center; text-wrap: balance; color: #dfe5fb; font-size: .94rem; }

/* Steps: one shelf of slots */
.shelf { padding: clamp(56px, 8vw, 96px) 0; }
.shelf-row { list-style: none; margin: 30px 0 0; padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--blue); border-radius: 18px; box-shadow: 0 8px 0 var(--cab-d); }
.shelf-row li { display: grid; grid-template-rows: auto auto 1fr; background: var(--paper); border-radius: 10px; overflow: hidden; }
.shelf-glass { display: grid; justify-items: center; padding: 18px 12px 6px; background: linear-gradient(165deg, #eef2fd, #d3ddf6); border-bottom: 6px solid var(--cab-d); }
.shelf-glass svg:not(.coil) { width: 112px; height: 84px; }
.shelf-glass .coil { color: var(--c); width: 70%; margin-top: 4px; }
.shelf-plate { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: var(--pale); }
.shelf-plate b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: var(--ink); font: 500 .95rem var(--mono); flex: none; }
.shelf-row p { padding: 14px 16px 18px; color: var(--ink-2); }
.draw { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.1s var(--ease) .15s; }
.draw.accent { stroke: var(--c, var(--blue)); stroke-width: 5; }
.in .draw { stroke-dashoffset: 0; }

/* Money split */
.money { background: var(--paper); border-block: 2px solid var(--ink); padding: clamp(60px, 9vw, 110px) 0; }
.money-in { display: grid; grid-template-columns: .85fr 1.15fr; grid-template-areas: "copy fig" "calc fig"; gap: 28px clamp(26px, 5vw, 70px); align-items: center; }
.money-copy { grid-area: copy; align-self: end; }
.money-copy p:not(.eyebrow) { margin-top: 18px; color: var(--ink-2); font-size: 1.06rem; }
.split-fig { grid-area: fig; margin: 0; }
.split { width: 100%; height: auto; display: block; overflow: visible; }
.flow { fill: none; stroke: var(--blue); }
.flow-b { stroke: var(--brass-d); }
.pulse { fill: none; stroke: var(--lcd); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 26; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.node rect { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.node text { font: 700 28px var(--display); fill: var(--ink); text-anchor: middle; }
.node .sub { font: 500 18px var(--body); fill: var(--ink-2); }
.node .big { font-size: 56px; font-weight: 800; }
.node-main rect { fill: var(--blue); stroke: var(--cab-d); }
.node-main text, .node-main .sub { fill: var(--pale); }
.node-fee rect { fill: var(--brass); }
.node-fee .sub { fill: var(--ink); }
.calc { grid-area: calc; align-self: start; display: grid; gap: 14px; padding: 18px; background: var(--pale); border: 2px solid var(--ink); border-radius: 14px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-out span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.calc-out small { color: var(--ink-2); font-size: .84rem; }
.calc-out b { font: 800 clamp(1.5rem, 4vw, 1.9rem)/1.1 var(--display); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.calc-out span:first-child b { color: var(--blue-d); }

/* Kinds */
.kinds { padding: clamp(60px, 9vw, 110px) 0; }
.kind-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(18px, 3vw, 40px); border-top: 3px solid var(--ink); }
.kind-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; align-items: start; border-bottom: 1px solid var(--line); }
.kind-art { display: block; width: 58px; }
.kind-list h3 { font-size: clamp(1.45rem, 3vw, 1.8rem); }
.kind-list h3 b { display: inline-block; font: 500 .78rem/1 var(--mono); padding: 5px 7px; border-radius: 4px; background: var(--ink); color: var(--k); vertical-align: 5px; margin-right: 4px; }
.kind-list p { color: var(--ink-2); margin-top: 6px; }

/* Agents */
.agents-band { background: var(--deep); color: var(--pale); padding: clamp(56px, 8vw, 96px) 0; }
.agents-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; }
.agents-in p:not(.eyebrow) { margin: 18px 0 26px; color: #c9cde6; }
.exchange { list-style: none; margin: 0; padding: 18px 18px 18px 6px; counter-reset: x; background: var(--lcd-bg); border-radius: 14px; border: 6px solid #232a5c; }
.exchange li { position: relative; padding: 14px 0 14px 34px; border-left: 2px dashed rgba(182, 245, 110, .35); margin-left: 22px; counter-increment: x; }
.exchange li::before { content: counter(x); position: absolute; left: -14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--brass); color: var(--deep); font: 500 .85rem/26px var(--mono); text-align: center; }
.exchange code { display: block; color: var(--lcd); overflow-wrap: anywhere; }
.exchange span { color: #c6cfc2; font-size: .94rem; }

/* FAQ, final */
.faq { padding: clamp(56px, 8vw, 96px) 0; max-width: 820px; }
.faq h2 { margin-bottom: 20px; }
details > summary { cursor: pointer; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-weight: 600; font-size: 1.06rem; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }
.final { background: var(--blue); padding: clamp(48px, 7vw, 80px) 0; color: var(--pale); }
.final .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot { background: var(--deep); color: #c9cde6; padding: 30px 0; }
.foot-in { width: min(1160px, 100% - 40px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.foot .brand { color: var(--pale); }
.foot nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.foot nav a:not(.x-btn) { color: #c9cde6; padding: 8px 0; }

/* Forms and inner pages */
.narrow { width: min(640px, 100% - 40px); margin-inline: auto; padding: clamp(22px, 5vw, 56px) 0 clamp(50px, 8vw, 90px); }
.narrow h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); }
.sell-form { margin-top: 26px; display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
.tabs legend { grid-column: 1 / -1; }
.tabs label { position: relative; }
.tabs input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tabs span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; height: 100%; padding: 6px; border: 2px solid var(--ink); margin-left: -2px; font-weight: 600; font-size: .94rem; transition: background-color .15s, color .15s; }
.tabs label:first-of-type span { margin-left: 0; border-radius: 8px 0 0 8px; }
.tabs label:last-of-type span { border-radius: 0 8px 8px 0; }
.tabs input:checked + span { background: var(--ink); color: var(--pale); }
.tabs input:focus-visible + span { outline: 3px solid var(--brass-d); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
.field small, .price-field small { font-weight: 400; color: var(--ink-2); }
input:not([type="radio"]):not([type="file"]), textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 2px solid var(--blue); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--body); }
input:focus, textarea:focus { outline: 3px solid var(--brass-d); outline-offset: 1px; }
.price-in { display: flex; }
.price-in input { border-radius: 8px 0 0 8px !important; font-family: var(--mono) !important; min-width: 0; }
.price-in b { display: flex; align-items: center; padding: 0 14px; background: var(--blue); color: var(--pale); border-radius: 0 8px 8px 0; font: 500 .9rem var(--mono); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 148px; padding: 18px; text-align: center; border: 2px dashed var(--blue); border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 500; overflow-wrap: anywhere; transition: background-color .15s; }
.drop:hover, .drop.over { background: var(--pale-2); }
.drop svg { width: 38px; color: var(--blue); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--brass-d); outline-offset: 2px; }
.form-error { color: #9a2a17; font-weight: 500; }
.made { margin-top: 26px; }
.ticket-link { margin-top: 18px; padding: 16px 18px; background: var(--paper); border: 2px dashed var(--blue); border-radius: 10px; overflow-wrap: anywhere; }

/* Price tag: listing and receipt */
.tag { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--blue); overflow: hidden; }
.tag-head, .tag-pay, .tag-meta, .tag > .muted { padding-inline: clamp(18px, 5vw, 32px); }
.tag-head { padding-block: clamp(22px, 5vw, 34px) 20px; }
.tag h1 { font-size: clamp(2rem, 7vw, 3rem); }
.tag-desc { margin-top: 14px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.tag-meta { margin: 0; padding-block: 14px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.tag-meta div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; }
.tag-meta dt { color: var(--ink-2); font-size: .92rem; }
.tag-meta dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.tag-pay { padding-block: 22px; border-top: 3px dashed var(--line); text-align: center; }
.tag > .muted { padding-block: 0 20px; }
.price { font: 500 1rem var(--mono); margin-bottom: 16px; }
.price span { font: 800 clamp(3rem, 12vw, 4.2rem)/1 var(--display); }
.pay-status { min-height: 1.6em; margin-top: 10px; font-size: .95rem; color: var(--ink-2); }
.pay-status.bad { color: #9a2a17; font-weight: 500; }
.pay-closed { font-weight: 500; color: var(--ink-2); }
.note-body { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice, .empty { padding: 22px; background: var(--pale-2); border-radius: 10px; margin-top: 18px; text-align: left; }
.notice h2 { font-size: 1.7rem; margin-bottom: 6px; }
.empty { display: grid; gap: 14px; justify-items: start; }
.report { margin-top: 22px; color: var(--ink-2); font-size: .94rem; }
.report summary { padding: 10px 0; }
.report form { display: grid; gap: 10px; justify-items: start; }
.report .field { width: 100%; }

/* Dashboard */
.dash { padding: clamp(22px, 4vw, 50px) 0 80px; max-width: 900px; }
.dash h1 { font: 500 clamp(1.5rem, 5vw, 2.2rem)/1.1 var(--mono); letter-spacing: -.02em; }
.dash h2 { margin: 36px 0 12px; font-size: 1.9rem; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.totals { display: grid; grid-template-columns: 2fr 1fr 1fr; margin-top: 22px; background: var(--ink); color: var(--pale); border-radius: 12px; }
.totals div { padding: 16px clamp(12px, 3vw, 22px); min-width: 0; }
.totals div + div { border-left: 2px dashed var(--blue); }
.totals span { display: block; font-size: .84rem; color: #c9cde6; }
.totals b { font: 800 clamp(1.6rem, 6vw, 2.5rem)/1.1 var(--display); overflow-wrap: anywhere; }
.totals small { font: 500 .78rem var(--mono); }
.paid-note { margin-top: 12px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-main { flex: 1 1 240px; min-width: 0; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.row-edit summary { list-style: none; }
.row-edit summary::-webkit-details-marker { display: none; }
.row-edit form { display: grid; gap: 10px; margin-top: 10px; width: min(280px, 100%); }
.row-amt { font-family: var(--mono); font-size: .9rem; display: flex; align-items: baseline; gap: 14px; }
.row-amt b { font-size: 1.05rem; }

/* Prose */
.prose h2 { font-size: 1.8rem; margin: 32px 0 10px; }
.prose p { margin-bottom: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.prose p.eyebrow { color: var(--blue); margin-bottom: 14px; }
.prose pre { background: var(--deep); color: #d9f7b8; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: .86rem; margin: 0 0 14px; }
.prose p code { background: var(--pale-2); padding: 1px 5px; border-radius: 4px; color: var(--ink); }

.dialog { border: 2px solid var(--ink); border-radius: 14px; padding: 22px; width: min(420px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); }
.dialog::backdrop { background: rgba(3, 28, 41, .6); }
.dialog h2 { font-size: 1.8rem; margin-bottom: 14px; }
#wallet-list { display: grid; gap: 10px; margin-bottom: 14px; }
#wallet-list p { color: var(--ink-2); }
.dialog form .btn { width: 100%; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .agents-in { grid-template-columns: 1fr; }
  .money-in { grid-template-columns: 1fr; grid-template-areas: "copy" "fig" "calc"; }
  .shelf-row { grid-template-columns: 1fr; }
  .shelf-row li { grid-template-columns: 92px 1fr; grid-template-rows: auto 1fr; }
  .shelf-glass { grid-row: 1 / 3; border-bottom: 0; border-right: 6px solid var(--cab-d); padding: 12px 8px; align-content: center; }
  .shelf-glass svg:not(.coil) { width: 72px; height: 54px; }
  .kind-list { grid-template-columns: 1fr; }
  .foot nav { margin-left: 0; }
}
@media (min-width: 900px) {
  .display { grid-template-columns: 1.6fr 1fr; align-items: end; }
  .display .lcd-tag { grid-column: 1 / -1; }
  .display h1 { grid-row: 2 / 4; }
  .display .lede { margin-top: 0; }
  .tray-item { width: 66px; margin-left: -33px; }
}
@media (max-width: 640px) {
  .cab-in { width: calc(100% - 16px); gap: 10px; }
  .display { border-width: 6px; padding: 20px 18px 22px; }
  .display .lede { font-size: 1rem; margin-top: 14px; }
  .display .cta-row { margin-top: 18px; gap: 10px; }
  .display .cta-row .btn { flex: 1 1 auto; padding-inline: 14px; }
  .face { grid-template-columns: 1fr; grid-template-areas: "win" "panel" "tray" "hint"; gap: 10px; }
  .window { padding: 10px 8px 8px; gap: 4px; border-width: 6px; }
  .slot-btn { padding: 8px 2px 6px; }
  .plate { font-size: .68rem; padding: 3px 6px; }
  .panel { grid-template-columns: 1fr auto; grid-template-rows: auto; grid-template-areas: "lcd lcd" "coin ret"; align-items: center; padding: 12px; gap: 12px; }
  .lcd { min-height: 0; }
  .sticker { display: none; }
  .coin-row { justify-content: flex-start; }
  .slot-plate { padding: 8px 12px 5px; }
  .m-slot { height: 46px; }
  .coin { width: 60px; }
  .ret { flex-direction: column; gap: 4px; font-size: .8rem; padding: 6px 10px; min-width: 76px; }
}
@media (max-width: 360px) {
  .plate { font-size: .62rem; padding: 3px 4px; }
  .ret { min-width: 64px; }
}
@media (max-width: 400px) {
  .top nav { gap: 8px; }
  .top nav a[href="/agents"] { display: none; }
  .brand { font-size: 1.22rem; }
  .btn-small { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
}
