/* The Bitcoin Express pages: the departure board's look (craigissatoshi.com's countdown), one dark station. */
@font-face { font-family: "Bebas Neue"; src: url("/img/express-bebas.woff2") format("woff2"); font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #050505; --panel: #111113; --flap: #232323; --flap-low: #1a1a1a; --rule: #222226;
  --paper: #f4f1e8; --amber: #ffcf3a; --dim: #8d8a80; --pink: #ff4fb8; --cyan: #3ff0ff; --bad: #ff7a6b; --good: #7ee0a1;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--paper); font: 15px/1.5 var(--body); }
main { max-width: 760px; margin: 0 auto; display: grid; gap: 18px;
  padding-block: max(28px, env(safe-area-inset-top, 0px)) max(40px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--amber); }
[hidden] { display: none !important; }

.hd { display: grid; gap: 4px; text-align: center; }
.hd .k { font-family: var(--display); letter-spacing: .3em; color: var(--amber); font-size: clamp(15px, 2.4vw, 20px); }
.hd h1 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .06em; font-size: clamp(40px, 9vw, 76px); line-height: .95; }
.hd .jp { font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; font-weight: 700; letter-spacing: .4em; color: var(--pink); text-shadow: 0 0 12px var(--pink); font-size: clamp(13px, 2vw, 17px); }
.hd .dep { font-family: var(--mono); color: #cfcab9; font-size: 13px; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.board div { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; text-align: center; }
.board b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 5vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.board span { font-family: var(--display); letter-spacing: .25em; color: var(--dim); font-size: 13px; }

.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; display: grid; gap: 10px; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .2em; font-size: 20px; color: var(--amber); }
.note { color: var(--dim); font-size: 13.5px; margin: 0; }
.note.bad { color: var(--bad); } .note.good { color: var(--good); } .note.warn { color: var(--paper); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
button { font: 600 15px/1 var(--body); border: 0; border-radius: 8px; padding: 12px 16px; cursor: pointer; background: var(--amber); color: #111; }
button.ghost { background: transparent; color: var(--paper); border: 1px solid #3a3a40; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button.go { width: 100%; font-family: var(--display); font-weight: 400; letter-spacing: .2em; font-size: 24px; padding: 16px; }
input, textarea { font: 15px var(--mono); background: #0b0b0d; color: var(--paper); border: 1px solid #333; border-radius: 8px; padding: 10px; min-width: 0; flex: 1; }
.addr { font: 13px var(--mono); word-break: break-all; background: #0b0b0d; border: 1px solid #333; border-radius: 8px; padding: 10px; cursor: pointer; }
.qr { background: #fff; padding: 14px; border-radius: 10px; width: max-content; max-width: 100%; margin: 0 auto; line-height: 0; }

/* the machine: a booth with a slot the ticket comes out of */
.machine { position: relative; background: linear-gradient(#1b1b20, #0e0e11); border: 1px solid #2c2c33; border-radius: 14px; padding: 16px 16px 0; overflow: hidden; }
.machine .face { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--display); letter-spacing: .2em; }
.machine .lamp { width: 12px; height: 12px; border-radius: 50%; background: #333; box-shadow: none; flex: none; }
.machine.busy .lamp { background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: blink .6s infinite alternate; }
.machine.done .lamp { background: var(--good); box-shadow: 0 0 12px var(--good); }
@keyframes blink { to { opacity: .35; } }
.machine .status { font-family: var(--mono); letter-spacing: 0; font-size: 12.5px; color: #cfcab9; text-align: right; }
.machine .slot { height: 10px; margin: 14px -4px 0; background: #000; border-radius: 6px; box-shadow: inset 0 3px 6px #000; }
.machine .tray { overflow: hidden; }
.machine .tray .tk { transform: translateY(-104%); }
.machine.done .tray .tk { transform: translateY(0); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .machine.done .tray .tk { transition: none; } .machine.busy .lamp { animation: none; } }

/* the ticket: design 3, lettered over the art; sizes in container units so it scales with the width */
.tk { position: relative; width: 100%; aspect-ratio: 2 / 1; container-type: inline-size; color: #3f2c06; font-family: var(--display); margin-top: -2px; }
.tk img.bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tk .eng { text-shadow: 0 1px 0 rgba(255,236,170,.7), 0 -1px 0 rgba(40,25,0,.5); }
.tk .main { position: absolute; left: 20.6%; top: 34.1%; width: 52.6%; height: 32%; display: grid; place-content: center; justify-items: center; text-align: center; gap: .3cqw; }
.tk .main .jp { font-family: "Hiragino Mincho ProN", "Hiragino Sans", serif; font-weight: 700; letter-spacing: .5em; font-size: 1.6cqw; }
.tk .main .t { font-size: 6.8cqw; line-height: .95; letter-spacing: .03em; }
.tk .main .l { font-size: 1.85cqw; letter-spacing: .14em; }
.tk .seat { position: absolute; left: 76.4%; top: 56%; width: 11.4%; display: grid; justify-items: center; background: rgba(200,160,60,.88); border-radius: .4cqw; padding: .3cqw 0; font-size: 2.5cqw; line-height: 1; text-align: center; }
.tk .seat small { display: block; font-size: 1.1cqw; letter-spacing: .25em; }
.tk .mark { position: absolute; left: 77.56%; top: 22.16%; width: 9.23%; aspect-ratio: 1; background: #fff; padding: .35cqw; border-radius: .3cqw; line-height: 0; }
.tk .mark canvas, .tk .mark img { width: 100% !important; height: 100% !important; }
.tk .prov { position: absolute; left: 76.4%; top: 70.5%; width: 11.4%; text-align: center; font-family: var(--mono); font-size: .9cqw; color: #3f2c06; }
.tk .punch { position: absolute; left: 78.4%; top: 44%; width: 6.4%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 .6cqw #000, 0 0 0 .25cqw rgba(0,0,0,.35); }
.tk .stamp { position: absolute; right: 30%; top: 12%; transform: rotate(-9deg); border: .35cqw solid #c0182a; color: #c0182a; font-size: 3.4cqw; letter-spacing: .15em; padding: .2cqw 1cqw; mix-blend-mode: multiply; opacity: .85; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.checks li::before { content: "…  "; color: var(--dim); }
.checks li.ok::before { content: "✓  "; color: var(--good); }
.checks li.no::before { content: "✗  "; color: var(--bad); }
.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; color: #cfcab9; }
.share { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; text-decoration: none; font: 700 15px/1 var(--body); padding: 11px 18px; border-radius: 999px; }
.share:hover, .share:focus-visible { background: var(--amber); outline: none; }
.share svg { width: 16px; height: 16px; }
.toplat { display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: #000; text-decoration: none; font-family: var(--display); letter-spacing: .2em; font-size: 18px; line-height: 1; padding: 12px 20px; border-radius: 999px; }
.toplat:hover, .toplat:focus-visible { background: #fff; outline: none; }
.toplat.big { font-size: 22px; padding: 15px 26px; }
.fine { color: var(--dim); font-size: 12.5px; text-align: center; margin: 0; }
.list { display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; }
.list div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--rule); padding-top: 6px; }
@media (max-width: 480px) { .board { grid-template-columns: 1fr 1fr 1fr; } .board b { font-size: 24px; } }
