/* Booth. One object carries the look: a coin-operated photo booth in ice-blue enamel with chrome trim, a lit
   milk-glass sign on top that says what matters in big letters, and a rust-red velvet curtain on a chrome rail. Step in,
   draw the curtain, nobody sees who is inside. The copper token is the key, the photo strip that comes out shows only
   the curtain. The page is the pale chalk of a station hall, ink is a deep blue-black, the main button is the rust coin
   plate with its slot, the credit sits in a small lit sign of its own. Rust only for the curtain, the main button and
   warnings; chrome for what is metal; the warm glow only where a sign is lit. */

@font-face { font-family: 'Righteous'; src: url('/fonts/righteous.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geologica'; src: url('/fonts/geologica.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Nova Mono'; src: url('/fonts/nova-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ground: #ecefeb;
  --ground-hi: #f7f8f5;
  --ground-lo: #dfe4de;
  --line: #cbd3cd;
  --ink: #142226;
  --ink-2: #33464b;
  --mute: #627378;
  --bake: #173441;
  --bake-hi: #24495a;
  --bake-lo: #0c1f27;
  --ice: #9ccbd6;
  --ice-hi: #cde8ee;
  --ice-lo: #5f9aaa;
  --amber: #f0c463;
  --amber-hi: #ffe8a8;
  --amber-lo: #a77a1c;
  --nickel: #c3ccd0;
  --nickel-hi: #ffffff;
  --nickel-lo: #7c888c;
  --card: #fbfcfa;
  --card-lo: #e4e8e3;
  --red: #a8401c;
  --red-hi: #c85a2f;
  --red-lo: #6c230c;
  --copper: #c77a47;
  --good: #2d6b4f;
  --bad: #b3361a;

  --display: 'Righteous', 'Avenir Next', system-ui, sans-serif;
  --text: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Nova Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-0: .875rem;
  --fs-1: 1rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(1.95rem, 1.3rem + 1.9vw, 2.85rem);
  --fs-5: clamp(2.5rem, 1.3rem + 3.6vw, 4.4rem);

  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 12px;

  /* a fine grain on the hall wall, drawn once as an SVG */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .16 0 0 0 0 .18 .3 0 0 0 -.13'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)'/%3E%3C/svg%3E");
  /* the milk glass of a lit sign: warm in the middle, a little deeper at the edges */
  --glass: radial-gradient(ellipse at 50% 55%, #fffdf6, #fff4d6 55%, #ffe0a0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--grain), var(--ground); color: var(--ink);
  font: 400 var(--fs-2)/1.5 var(--text); font-synthesis: none; font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; text-decoration-color: var(--red); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--ground-hi); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .94em; }
.mute { color: var(--mute); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


/* ---------- buttons: white enamel plates with an ink edge; the main one is the rust coin plate of the booth, a chrome
   rim round it and the coin slot on its left */
.key {
  --face: var(--card); --edge: var(--ink); --rim: var(--ink); --on: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.3em; border: 2px solid var(--rim); border-radius: 10px;
  background: var(--face); color: var(--on); font: 700 var(--fs-2)/1 var(--text); letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--edge);
  transform: translateY(0); transition: transform .06s ease-out, box-shadow .06s ease-out, background-color .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { --face: #fff; }
.key:active, .key[aria-pressed='true'] { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--edge); }
/* the coin plate: rust enamel in a chrome rim, a dark coin slot near the left end, the edge under it in deep rust */
.key.go {
  --face: linear-gradient(180deg, #c95a2e, #a8401c 55%, #8e3314); --edge: #4c1805; --on: #fff3e6; --slot: 1.05em;
  position: relative; border: 0; padding-left: 2.1em; padding-right: 1.45em;
  background: var(--face); text-shadow: 0 1px 0 rgba(60, 14, 2, .5);
  box-shadow: inset 0 0 0 2px #e9eef0, inset 0 0 0 3.5px #8a979b, inset 0 2px 0 3.5px rgba(255, 220, 190, .35), 0 4px 0 var(--edge);
}
.key.go::before {
  content: ''; position: absolute; left: calc(var(--slot) - 3px); top: 50%; width: 6px; height: 1.15em; translate: 0 -50%;
  border-radius: 3px; background: #1a0904; box-shadow: 0 0 0 2px #d9e0e2, 0 0 0 3px #7c888c, inset 0 2px 2px #000;
}
.key.go:hover { --face: linear-gradient(180deg, #d4683a, #b44a22 55%, #983918); }
.key.go:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px #e9eef0, inset 0 0 0 3.5px #8a979b, 0 1px 0 var(--edge); }
.key.go:disabled { box-shadow: inset 0 0 0 2px #e9eef0, inset 0 0 0 3.5px #8a979b, 0 4px 0 var(--edge); }
.key.go:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.key.dark { --face: var(--ink); --edge: #000; --rim: #000; --on: #fff; }
.key.big { min-height: 62px; padding: 0 1.7em; font-size: 1.1875rem; box-shadow: 0 5px 0 var(--edge); }
.key.go.big { --slot: 1.25em; padding-left: 2.5em; padding-right: 1.8em; box-shadow: inset 0 0 0 2px #e9eef0, inset 0 0 0 3.5px #8a979b, inset 0 2px 0 3.5px rgba(255, 220, 190, .35), 0 5px 0 var(--edge); }
.key.go.big:active { box-shadow: inset 0 0 0 2px #e9eef0, inset 0 0 0 3.5px #8a979b, 0 1px 0 var(--edge); }
.key.big:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.key.small { min-height: 40px; padding: 0 1em; font-size: var(--fs-1); box-shadow: 0 3px 0 var(--edge); }
.key.small:active, .key.small[aria-pressed='true'] { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.key.go.small { --slot: .85em; padding-left: 1.75em; padding-right: 1.1em; box-shadow: inset 0 0 0 2px #e9eef0, inset 0 0 0 3.5px #8a979b, 0 3px 0 var(--edge); }
.key.go.small:active { box-shadow: inset 0 0 0 2px #e9eef0, inset 0 0 0 3.5px #8a979b, 0 1px 0 var(--edge); }
.key svg { width: 1.1em; height: 1.1em; flex: none; }
.plain { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--red); }

/* ---------- a little lit sign: warm milk glass in a chrome frame, the figure in ink in the display face */
.slip {
  position: relative; color: var(--ink); background: var(--glass); border-radius: 8px;
  box-shadow: 0 0 0 2px #7c888c, 0 0 0 4.5px #e6ebed, 0 0 0 5.5px #7c888c, 0 0 18px 6px rgba(255, 214, 128, .35), 0 3px 6px 4px rgba(20, 34, 38, .18);
}
.slip b, .slip .num { font-family: var(--display); font-weight: 400; letter-spacing: .04em; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: var(--grain), color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 400 1.95rem/1 var(--display); letter-spacing: 0; color: var(--ink); }
.brand span { translate: 0 1px; }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; font-weight: 700; font-size: var(--fs-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current='page'] { border-bottom-color: var(--red); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a little lit sign with the amount on it, pressable */
.credit { display: inline-flex; align-items: center; padding: 6px; border: 0; background: none; transition: transform .06s; }
.credit:active { transform: translateY(2px); }
.credit .slip { display: block; min-width: 100px; padding: 10px 14px 9px; font: 400 1.1875rem/1 var(--display); letter-spacing: .04em; text-align: center; }
.credit:hover .slip { box-shadow: 0 0 0 2px #7c888c, 0 0 0 4.5px #fff, 0 0 0 5.5px #7c888c, 0 0 22px 8px rgba(255, 214, 128, .5), 0 3px 6px 4px rgba(20, 34, 38, .22); }
.menu-btn { display: none; }


/* ---------- the photo booth (drawn by booth.js as one SVG; here only its size and its motion) */
.booth { position: relative; flex: none; display: block; width: var(--bw, 470px); aspect-ratio: 470 / 690; padding: 0; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.booth svg { width: 100%; height: auto; overflow: visible; }
.booth .curtain { transform-box: view-box; transform-origin: 334px 198px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
button.booth:hover .curtain { transform: skewX(-1.6deg); }
button.booth:hover .curtain.bunch { transform: translateX(-6px) skewX(-2.4deg); }
button.booth:active .curtain { transform: skewX(.8deg); transition-duration: .06s; }
button.booth:focus-visible { outline-offset: 8px; border-radius: 14px; }
/* a new state: the sign flickers on like a tube, the curtain is drawn along its rail, the strip comes out of the slot */
.booth .say.fresh { animation: tube .9s steps(1) both; }
@keyframes tube { 0% { opacity: 0; } 12% { opacity: 1; } 20% { opacity: .15; } 30% { opacity: 1; } 38% { opacity: .35; } 46%, 100% { opacity: 1; } }
.booth .curtain.shut { animation: draw .75s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes draw { from { transform: scaleX(.2); } }
.booth .strip.out { animation: print 1.6s cubic-bezier(.3, .7, .3, 1) .3s both; }
@keyframes print { from { transform: translate(373px, 170px); } to { transform: translate(373px, 404px); } }

/* ---------- home */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 60px); }
.hero h1 { font: 400 var(--fs-5)/1.06 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--red); display: block; }
.hero .lead { margin-top: 26px; max-width: 30em; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 36px; }

.band { padding: clamp(52px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.band h2 { font: 400 var(--fs-4)/1.12 var(--display); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.band .intro { margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 84px); align-items: start; }

/* price list */
.prices { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.prices th { text-align: left; font: 700 var(--fs-0)/1.2 var(--text); color: var(--mute); padding: 0 0 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prices td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices .n { text-align: right; font: 500 1.0625rem var(--text); white-space: nowrap; padding-left: 18px; font-variant-numeric: tabular-nums lining-nums; }
.prices th.n { font-family: var(--text); font-size: var(--fs-0); }
.prices td:first-child { font-weight: 700; padding-right: 12px; }
.prices caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: var(--fs-0); color: var(--mute); }
.prices .id { display: block; font: 400 var(--fs-0)/1.3 var(--mono); color: var(--mute); overflow-wrap: anywhere; }
.prices .tag { font: 700 var(--fs-0)/1 var(--text); color: var(--red-lo); margin-left: 8px; }
.prices tbody tr:hover td { background: color-mix(in srgb, var(--ground-hi) 70%, transparent); }
.more { display: inline-block; margin-top: 24px; font-weight: 700; }

/* code: on the deep blue-black of the kick panel, strings in the warm glow of the sign */
.code { background: #0f1e24; color: #e6eef0; border-radius: var(--r); overflow: hidden; }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0 10px; }
.code-tabs button { background: none; border: 0; padding: 9px 13px; border-radius: 8px 8px 0 0; font: 700 var(--fs-1)/1 var(--text); color: #8ea3a9; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #182c33; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #182c33; overflow-x: auto; font: 400 .9375rem/1.6 var(--mono); tab-size: 2; }
.code pre .c { color: #7f969c; font-style: italic; } .code pre .s { color: var(--amber-hi); } .code pre .k { color: #fff; font-weight: 600; }
.copy { background: #2a434c; color: #e6eef0; border: 0; border-radius: 7px; padding: 7px 11px; font: 700 var(--fs-0)/1 var(--text); }
.copy:hover { background: #36545e; }
.copy.done { background: var(--amber-hi); color: var(--ink); }

/* the dark band: the enamel kick panel of the booth under its chrome edge, the headline in the warm glow of the sign */
.band.dark { background: linear-gradient(180deg, #ffffff 0 2px, #c3ccd0 2px 5px, #7c888c 5px 6px, transparent 6px), linear-gradient(180deg, var(--bake-hi), var(--bake) 35%, var(--bake-lo)); color: #e3edef; border-top: 0; }
.band.dark h2 { color: var(--amber-hi); }
.band.dark .intro { color: #b9ccd1; }
.band.dark .more:hover { text-decoration-color: var(--amber); }
.band.dark + .band { border-top: 0; }

/* what is kept */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 800 var(--fs-3)/1.1 var(--text); letter-spacing: -.01em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ledger li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.mem { counter-reset: mem; }
.mem li { display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: counter(mem); font: 400 1.35rem/1 var(--display); color: var(--red); }
/* what is never kept is crossed out once, in the rust of the curtain */
.ledger .no li { position: relative; color: var(--ink-2); }
.ledger .no li span { position: relative; display: inline-block; }
.ledger .no li span::after { content: ''; position: absolute; left: -.2em; right: -.3em; top: 46%; height: 2.5px; background: var(--red); border-radius: 2px; transform: rotate(-1.2deg); }
.fine { margin-top: 26px; max-width: 46em; color: var(--ink-2); }

/* questions */
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font: 700 1.25rem/1.3 var(--text); letter-spacing: -.005em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 400 1.6rem/1 var(--mono); color: var(--mute); flex: none; }
.qa details[open] summary::after { content: '\2212'; color: var(--red); }
.qa p { padding: 0 0 20px; max-width: 44em; color: var(--ink-2); }

.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: var(--fs-1); color: var(--mute); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: baseline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot a { color: var(--ink); font-weight: 700; }
.foot p { max-width: 40em; }

/* ---------- the account sheet */
dialog.sheet {
  width: min(100% - 24px, 500px); max-height: min(100dvh - 24px, 860px); padding: 0; border: 0; border-radius: 18px;
  background: var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 2px var(--ink), 0 30px 70px rgba(18, 21, 25, .38);
}
dialog.sheet::backdrop { background: rgba(14, 16, 19, .58); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: rise .22s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes rise { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.sheet-in { padding: 26px 26px 28px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-head h2 { font: 400 1.9rem/1.1 var(--display); letter-spacing: 0; color: var(--ink); }
.x { background: none; border: 0; width: 40px; height: 40px; margin: -8px -10px 0 0; border-radius: 9px; font: 400 1.7rem/1 var(--mono); color: var(--mute); }
.x:hover { background: var(--ground-lo); color: var(--ink); }
.sheet p { font-size: var(--fs-1); line-height: 1.5; }
/* the key: printed on the white paper of a photo strip, a rust frame like the edge of a print */
.keyline { margin: 8px 2px 18px; padding: 14px 18px 13px; background: linear-gradient(180deg, #fffdf8, var(--card) 60%, var(--card-lo)); border-radius: 3px; box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4.5px var(--red), 0 0 0 1px var(--line), 0 3px 0 var(--card-lo); font: 400 1rem/1.5 var(--mono); word-break: break-all; user-select: all; }
/* the credit: a larger lit sign */
.balance { margin: 10px 5px 20px; padding: 20px 24px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.balance b { font-size: 3rem; line-height: .95; }
.balance span { font: 700 var(--fs-0)/1.25 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.spread { justify-content: space-between; }
.row.center { justify-content: center; }
.full { width: 100%; }
.gap-top { margin-top: 22px; }
.warn { margin: 20px 0 22px; padding-left: 14px; border-left: 4px solid var(--red); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 9px; margin: 6px 0 18px; }
.amounts .key { padding: 0; min-height: 46px; }
.amounts .key[aria-pressed='true'] { --face: var(--ink); --edge: #000; --on: #fff; background: var(--ink); }
.amounts label { position: relative; display: block; }
.amounts label span { position: absolute; left: 13px; top: 50%; translate: 0 -50%; font-weight: 700; pointer-events: none; }
.amounts input { width: 100%; height: 46px; padding: 0 8px 0 26px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 700 var(--fs-2)/1 var(--text); }
.pay { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: start; }
.qr { width: 148px; height: 148px; background: #fff; padding: 8px; border-radius: 10px; box-shadow: 0 0 0 2px var(--ink); }
.qr svg, .qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.field { margin-bottom: 12px; }
.field > span { display: block; font: 700 var(--fs-0)/1.2 var(--text); color: var(--mute); margin-bottom: 5px; }
.field .val { display: flex; align-items: flex-start; gap: 8px; }
.field .val b { flex: 1; min-width: 0; font: 500 .875rem/1.4 var(--mono); overflow-wrap: anywhere; }
.field .val b.amt { font: 600 1.4rem/1.1 var(--mono); }
.mini { background: var(--ink); color: #fff; border: 0; border-radius: 7px; padding: 7px 10px; font: 700 var(--fs-0)/1 var(--text); flex: none; box-shadow: 0 2px 0 #000; }
.mini:hover { background: var(--ink-2); }
.mini:active { transform: translateY(1px); box-shadow: 0 1px 0 #000; }
.mini.done { background: var(--good); }
.status { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--ground-lo); font-weight: 700; font-size: var(--fs-1); }
.status.seen { background: #fbe9bd; }
.status.ok { background: var(--ink); color: var(--card); }
/* waiting: the slot lamp of the booth, blinking amber */
.wait { width: 15px; height: 15px; flex: none; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff0c8, #ffb25a 40%, #c2561c); box-shadow: 0 0 0 2px #c3ccd0, 0 0 0 3px #7c888c; animation: wait 1.2s ease-in-out infinite; }
@keyframes wait { 0%, 100% { filter: brightness(.6) saturate(.6); } 50% { filter: brightness(1.15); box-shadow: 0 0 0 2px #c3ccd0, 0 0 0 3px #7c888c, 0 0 12px 3px rgba(255, 178, 90, .6); } }
.notes { margin-top: 16px; font-size: var(--fs-0); color: var(--mute); line-height: 1.5; }
.notes a { color: var(--ink); font-weight: 700; }
.payments { margin-top: 20px; border-top: 2px solid var(--ink); }
.payments li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-1); }
.payments li span:last-child { font-family: var(--mono); font-size: var(--fs-0); color: var(--mute); text-align: right; }
.sheet-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-1); }
.sheet-foot .danger { color: var(--bad); }
.paste { display: flex; gap: 10px; margin-top: 12px; }
.paste input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 400 var(--fs-1)/1 var(--mono); }
.err { color: var(--bad); font-weight: 700; margin-top: 10px; font-size: var(--fs-1); }
.credited { text-align: center; padding: 6px 0 4px; }
.credited .slip { margin: 6px 6px 0; padding: 22px 16px 24px; }
.credited .slip small { display: block; font: 700 var(--fs-0)/1 var(--text); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-2); }
.credited .slip b { display: block; font-size: 3.8rem; line-height: .95; }
.credited p { margin: 18px 0 20px; font-size: var(--fs-2); }

.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: var(--fs-1); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: rise .2s ease-out; max-width: calc(100% - 32px); }

/* ---------- text pages */
.page { padding: clamp(30px, 6vw, 70px) 0 clamp(60px, 8vw, 110px); }
.page h1 { font: 400 clamp(2.3rem, 1.5rem + 3.6vw, 4rem)/1.08 var(--display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.page .lead { margin-top: 20px; max-width: 36em; font-size: 1.3125rem; line-height: 1.42; color: var(--ink-2); }
.prose { max-width: 44em; }
.prose h2 { font: 400 1.75rem/1.16 var(--display); letter-spacing: 0; color: var(--ink); margin: 52px 0 14px; }
.prose h3 { font: 800 1.25rem/1.2 var(--text); margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: square; padding-left: 1.2em; }
.prose ul li::marker { color: var(--red); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font: 400 .95em var(--mono); background: var(--ground-lo); padding: .12em .38em; border-radius: 5px; }
.prose .code { margin: 16px 0 22px; }
.prose .code code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: var(--fs-1); }
.prose th { text-align: left; font-weight: 800; border-bottom: 2px solid var(--ink); padding: 8px 12px 8px 0; }
.prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }


/* ---------- small screens */
@media (max-width: 1120px) {
  .hero .booth { --bw: 400px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .booth { --bw: min(420px, 100%); margin: 30px auto 0; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 auto 0; z-index: 29; flex-direction: column; gap: 0; padding: 6px var(--gutter) 18px; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(18, 21, 25, .14); font-size: 1.3125rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page'] { border-bottom-color: var(--line); color: var(--red); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; border-radius: 9px; }
  .menu-btn svg { width: 24px; height: 24px; }
  .top .wrap { gap: 12px; }
  .top-x { display: none; }
  .brand { font-size: 1.55rem; gap: 8px; }
  .brand svg { width: 32px; height: 32px; }
  .credit .slip { min-width: 0; font-size: 1rem; padding: 8px 11px 7px; }
  .ledger { grid-template-columns: 1fr; gap: 34px; }
  .prices .ctx { display: none; }
  .pay { grid-template-columns: 1fr; }
  .qr { margin-inline: auto; }
  .amounts { grid-template-columns: repeat(4, 1fr); }
  .amounts label { grid-column: 1 / -1; }
  .sheet-in { padding: 22px 18px 24px; }
  .hero .acts .key.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* CA-Leiste (nur wenn COIN_CA gesetzt ist): ein Streifen Sockelblech mit Chromkante, Ticker im warmen Schildlicht */
.ca-bar { background: var(--bake); color: var(--card); font-size: 14px; box-shadow: inset 0 -3px 0 #c3ccd0; }
.ca-bar .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; min-height: 38px; padding-block: 6px; }
.ca-t { font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--amber-hi); }
.ca-v { font-family: var(--mono); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 700; color: var(--ink); background: var(--card); border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--red); color: #fff3e6; }
