/* Crimillion home page (crimillion.com/): the Robux shop.

   The look (the app's Tool look, "Mono", carried over to a customer page: 2026-11-29)
   Black, white and hairlines. The page is black under a faint grid; a pane is a hairline frame
   with a white bracket at each corner. Nothing is round. White fill means "press this" and is
   kept for the Buy button and the slider's handle; a thing that is merely chosen is ringed in
   white, not filled. Figures (the price, amounts, stock, the clock, step numbers), titles and
   labels are set in the mono face, Geist Mono, which is also the face for strings to copy
   exactly (an address, an order ref) and for the demo's bot names. Words that are read stay in
   Inter. Colour is kept for state, and there are three: amber is "waiting", mint is "fine /
   done", coral is "needs a look". Something moving (Robux being sent) is white, as work in
   progress is in the app. A live state carries a small square lamp. The only other colour is
   the dust /home/fx.js and /home/floor.js draw, a moment in flight that comes to rest in white.

   The page takes nothing from the app's stylesheets: the Tool look's rules are written again
   here, under this page's own names, and the one thing shared is the Geist Mono font file
   (/app/fonts, the same origin). The theme a visitor saved in /app changes nothing here.
   There is one theme: dark.

   Motion
   Short, and always the result of something the visitor did or something that really changed.
   The one exception is the entrance: on load, once, a band of light crosses the page, the
   title is spelled in and each pane's brackets are drawn out from its corners. With "reduce
   motion" on, every animation and transition here is switched off at the end of this file,
   and the scripts draw and animate nothing.

   This file is served under style-src 'self': it is the page's only styling. index.html carries
   no <style> and no style="" attributes. Scripts change classes and attributes, and a few custom
   properties through the CSSOM (--p on the slider; --v, --t, --m, --i, --tint and the figures'
   --lx, --ly, --tilt in the demo); they never write a style attribute string.

   Order: tokens, base, controls, top bar, the shop card, the demo, questions, footer, the order
   popup, small screens, keyframes, print, contrast themes, reduced motion. */

/* Inter (SIL Open Font License, home/fonts/OFL.txt), Latin only: other scripts fall back to the
   system font below it. Kept on this site because the page loads fonts from nowhere else.
   Geist Mono (SIL Open Font License, app/fonts/GEIST-OFL.txt) is the app's own figure face, read
   from the app's folder on this same origin (font-src 'self'). */
@font-face {
  font-family: 'Inter';
  src: url('/home/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/app/fonts/geist-mono-var.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  --bg: #000;
  --card: #000;                 /* a pane is black: the page's grid shows in the gutters only */
  --raise: #0c0c0d;             /* fields and wells: white at .045 on black, as the app's controls */
  --raise-2: #161617;           /* a control on a well */
  --hover: #1c1c1e;             /* a control under the pointer */
  --line: rgba(255, 255, 255, .13);   /* a pane's hairline */
  --line-2: rgba(255, 255, 255, .38); /* a control's ring: 3.4:1 on black */
  --edge: #6b6b73;              /* the resting edge of a text box: 3.7:1 on --raise */

  --ink: #f4f4f5;
  --ink-2: #b6b6bd;             /* 10.4:1 on black, 9.7:1 on --raise */
  --ink-3: #8a8a93;             /* 6.1:1 on black, 5.7:1 on --raise, 5.0:1 on --hover */
  --ink-off: #5a5a62;           /* disabled controls only: never text that must be read */

  --amber: #f6bb4f;
  --mint: #4fe3bd;
  --coral: #ff7d6e;

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, "SF Mono", Consolas, monospace;
  --figure: var(--mono);        /* figures, titles and labels */

  --ease: cubic-bezier(.2, .8, .2, 1);
  --column: min(100% - 32px, 1040px);
  --bar-h: 56px;                /* the sticky top bar */
}

/* A frame's corners: a white bracket at each, reaching --tick along both edges. Declared on the
   framed element itself (not on :root), so that a frame that changes its --tick (the popup, a
   pane under the pointer) gets brackets of its own reach. */
.card, .dialog, .calc > .btn.primary::before {
  --tick: 10px;
  --brackets:
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  --brackets-at: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  --brackets-size: var(--tick) 1px, 1px var(--tick), var(--tick) 1px, 1px var(--tick), var(--tick) 1px, 1px var(--tick), var(--tick) 1px, 1px var(--tick);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* scroll-padding: a jump to an anchor (the skip link, a focused row) lands below the sticky bar. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); scrollbar-color: rgba(255, 255, 255, .3) var(--bg); }
/* A column as tall as the window, so the footer sits at its foot on a tall screen. */
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
/* The faint grid the page lies on, fixed to the window. Panes are black, so it shows in the
   gutters between them. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .038) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .038) 1px, transparent 1px);
  background-size: 32px 32px;
}
::selection { background: #fff; color: #000; }

/* Titles are set in the mono face, as the app's are. */
h1, h2, h3 { margin: 0; font-family: var(--figure); font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
a:hover { text-decoration-color: currentColor; }
code { font-family: var(--mono); }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
main:focus, h3:focus { outline: none; }

.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* Read out, not drawn. (.buy-vh is the order popup's own live region.) */
.vh, .buy-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* The icon sprite holds definitions only. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* A line icon. buy.js asks for crisp edges (they were pixel art once); these are curves. */
.pi { display: block; flex: none; width: 16px; height: 16px; shape-rendering: geometricPrecision; }
.pi.s28 { width: 28px; height: 28px; }

.skip-link {
  position: fixed; top: 8px; left: -9999px; z-index: 100;
  padding: 10px 14px;
  background: #fff; color: #000; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* The canvas fx.js draws its dust on: over the page, never in the way, and out of the page
   altogether (hidden) whenever nothing is flying. */
.dust-layer { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; pointer-events: none; }

/* ── Controls ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 0;
  background: var(--raise); color: var(--ink);
  font: 600 13px/1 var(--sans); text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: transform .14s var(--ease), background-color .14s, background-size .22s var(--ease), border-color .14s, color .14s, opacity .18s;
}
.btn:hover:not(:disabled) { background-color: var(--hover); border-color: #fff; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: none; }

/* The one thing to press: white with black words. Under the pointer black wipes across it from
   the left and the words turn white inside a white ring, as the app's button does. */
.btn.primary {
  border-color: #fff; background-color: #fff; color: #000;
  background-image: linear-gradient(#000, #000); background-repeat: no-repeat; background-position: left; background-size: 0% 100%;
}
/* Only where the pointer can hover: a touch screen keeps :hover after a tap, which would leave
   the button black, as if it were in another state. */
@media (hover: hover) {
  .btn.primary:hover:not(:disabled) { background-color: #fff; background-size: 100% 100%; border-color: #fff; color: #fff; }
}
.btn.primary:focus-visible { outline-offset: 3px; }

/* A quiet link that is still a full-size target. */
.btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn.ghost:hover { border-color: transparent; background: rgba(255, 255, 255, .06); color: var(--ink); }

.btn.lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
.btn.icon { width: 36px; min-height: 36px; padding: 0; }
.btn.wide { width: 100%; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Labels are set in the mono face, as the app's are. */
.field-label { color: var(--ink-2); font: 500 12px/1.3 var(--figure); }
/* 16px type, so a phone does not zoom the page on focus. The resting edge is light enough to
   show where the box is before anything is typed in it. */
.field input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--edge); border-radius: 0;
  background: var(--raise); color: var(--ink);
  font: 500 16px/1 var(--sans);
  transition: border-color .14s, background-color .14s, box-shadow .14s;
}
/* A figure typed in a box is set in the figure face too; free text (a name) stays in Inter. */
.field input[inputmode="numeric"], .field input[inputmode="decimal"] { font-family: var(--figure); font-variant-numeric: tabular-nums; }
.field input::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover { background: var(--raise-2); }
.field input:focus-visible { outline: none; border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.field input:disabled { color: var(--ink-off); -webkit-text-fill-color: var(--ink-off); opacity: 1; }
/* Why a box is marked: shown only while it is. */
.field-hint { color: var(--coral); font: 500 12px/1.3 var(--sans); }

/* A message in a tinted well. */
.note {
  padding: 12px 14px; border-radius: 0;
  background: rgba(255, 255, 255, .045); color: var(--ink-2);
  font-size: 13px;
}
/* A warning is the amber state: its tint, and a bar of it down its left edge. */
.note.warn { background: rgba(246, 187, 79, .09); box-shadow: inset 2px 0 0 var(--amber); color: #f8d596; }

/* A tag always carries a word; the colour only repeats it. Square, outlined, set in the mono
   face; a state's tag is tinted with its colour. */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 0;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2);
  font: 500 11px/1.4 var(--figure); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.tag.ok { background: rgba(79, 227, 189, .10); box-shadow: inset 0 0 0 1px rgba(79, 227, 189, .40); color: var(--mint); }
.tag.warn { background: rgba(255, 125, 110, .11); box-shadow: inset 0 0 0 1px rgba(255, 125, 110, .46); color: var(--coral); }

/* A pane: a hairline frame with a white bracket at each corner, nothing round. The brackets are
   painted from the border's outer edge, so they lie over the hairline. */
.card {
  min-width: 0; padding: 24px;
  border: 1px solid var(--line); border-radius: 0;
  background-color: var(--card);
  background-image: var(--brackets); background-repeat: no-repeat; background-origin: border-box;
  background-position: var(--brackets-at); background-size: var(--brackets-size);
}

/* ── Top bar ───────────────────────────────────────────────────────────────
   A solid black bar with a hairline under it, held at the top of the window: the brand and one
   link. Above the demo's own sticky heading (which sticks just under it) and under the dust. */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); box-shadow: inset 0 -1px 0 var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: var(--column); min-height: var(--bar-h); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 600 17px/1 var(--sans); letter-spacing: -.02em;
}
.mark { display: grid; flex: none; place-items: center; width: 28px; height: 28px; }
.mark svg { display: block; transition: opacity .35s; }
/* While fx.js flies the mark in as dust, the drawn one steps back. */
.mark.is-dust svg { opacity: 0; transition-duration: .12s; }

/* ── The page ────────────────────────────────────────────────────────────── */
/* Every single-column grid here names its column minmax(0, 1fr). Left to `auto`, a column grows
   to its widest item's preferred width, and a number box with no max prefers twenty characters. */
main {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; align-content: start;
  flex: 1 0 auto;
  width: var(--column); margin: 0 auto; padding: clamp(4px, 4vh, 56px) 0 56px;
}

/* ── The shop card ───────────────────────────────────────────────────────── */
/* The entrance, once, as the page loads: the card rises and its brackets are drawn out from
   its corners. (The keyframes are at the foot of the file; reduce motion switches them off.) */
.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; animation: rise .6s var(--ease) both, brackets .8s .2s var(--ease) backwards; }
.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.shop-head h1 { font-size: 24px; animation: title .5s .15s var(--ease) backwards; }
.tagline { margin-top: 4px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.rate {
  flex: none; padding: 5px 10px; border-radius: 0;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
  font: 500 12px/1.3 var(--figure); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.rate-figure { color: var(--ink); font-weight: 600; }
/* The price and the stock, stacked at the head's right. The stock is the shop's whole stock as an
   exact figure (buy.js writes it), or a few words for why there is none. */
.shop-meta { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 6px; }
/* The stock line carries a lamp, a small square: amber while the closed note is showing (the
   page loads with it showing, so amber until the shop says it is open; also closed, being
   checked, or sold out), mint once orders are open (the Buy button showing, the note hidden).
   Amber wins while both show: a buyer with a saved order keeps the Buy button in a closed shop.
   The words beside it say which; the lamp only repeats them. As it turns mint it blinks three
   times, then burns steadily. A browser without :has() shows a grey lamp. */
.rate.in-stock { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 500; }
.rate.in-stock::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--ink-3); }
.shop:has([data-shop-closed]:not([hidden])) .rate.in-stock::before { background: var(--amber); }
.shop:has([data-buy-open]:not([hidden])):not(:has([data-shop-closed]:not([hidden]))) .rate.in-stock::before { background: var(--mint); animation: lamp .4s steps(1) 3; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; }

/* Who it is for, and how much: two ordinary boxes side by side. */
.fields { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px 10px; }
/* Why the username box is marked. Out of the flow, in the space under the boxes, so that its
   words arriving never move the button or the chip a visitor is in the middle of pressing. */
.fields .field-hint { position: absolute; top: calc(100% + 5px); left: 0; right: 0; }
/* The typed account's avatar sits inside the username box, on the left. */
.who-box { position: relative; display: block; }
.who-box input { width: 100%; }
/* A face in a square frame, as the app shows accounts. */
.who-img { position: absolute; left: 10px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 0; background: var(--raise-2); box-shadow: 0 0 0 1px var(--line-2); object-fit: cover; pointer-events: none; }
.who-box input.has-who { padding-left: 42px; }
#calc-amount {
  text-align: right; font-family: var(--figure); font-weight: 500; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
#calc-amount::-webkit-outer-spin-button,
#calc-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* The one big figure on the page: what it costs. Its box hugs its digits, because the dust
   lands inside that box. Each character is its own inline block (home.js), clipped by the box,
   so a digit that changes rolls in like an odometer's. data-long steps the size down for a
   price with more characters than the card can hold at full size. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2px; padding: 14px 0 4px; }
.hero output {
  position: relative; display: block; width: fit-content; max-width: 100%; overflow: hidden; white-space: nowrap;
  /* The tight letter-spacing pulls the last digit's edge past the box, and overflow (kept for the
     rolling digits) clipped it: a little room on both sides. */
  padding-inline: .06em;
  font: 500 clamp(52px, 14vw, 72px)/1.08 var(--figure); letter-spacing: -.06em; font-variant-numeric: tabular-nums;
}
.hero output[data-long="1"] { font-size: clamp(36px, 10vw, 52px); }
.hero output[data-long="2"] { font-size: clamp(24px, 6.4vw, 32px); }
.hero .digit { display: inline-block; }
/* The moment the dust lands on it. */
.hero output.is-landed { animation: land .5s var(--ease); }

/* The slider. The real <input type="range"> lies over the drawing, unseen, so the pointer,
   the keyboard and a screen reader all get a native one. --p is how far along it is (0 to 1);
   --thumb is the handle's width, and the native thumb is given the same width so that the two
   never disagree about where a press lands. */
.slider {
  --p: 0; --thumb: 72px;
  position: relative; height: 44px; border-radius: 0;
  /* A ruler along the middle of the track: a short hairline tick every 14px, in a ringed well. */
  background: linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px) 7px 50% / 14px 10px repeat-x, var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
/* What is chosen: the track up to the handle, filled with fine white hatching. */
.slider-fill {
  position: absolute; inset: 0; border-radius: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .26) 0 1px, transparent 1px 6px), rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  clip-path: inset(0 calc((1 - var(--p)) * (100% - var(--thumb))) 0 0);
}
.slider-thumb {
  position: absolute; top: 4px; bottom: 4px; left: calc(var(--p) * (100% - var(--thumb)) + 4px);
  display: grid; place-items: center; width: calc(var(--thumb) - 8px);
  border-radius: 0; background: #fff; color: #000;
  font: 600 12px/1 var(--figure); font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  transition: transform .18s var(--ease);
}
/* pan-y: a swipe up or down that starts on the slider scrolls the page and leaves the amount
   alone; only a sideways drag moves the handle. */
.slider input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: grab; touch-action: pan-y;
  -webkit-appearance: none; appearance: none; background: none;
}
.slider input:active { cursor: grabbing; }
.slider input:disabled { cursor: not-allowed; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: 44px; }
.slider input::-moz-range-thumb { width: var(--thumb); height: 44px; border: 0; }
.slider:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.slider:has(input:active) .slider-thumb { transform: scale(1.06); }
.slider:has(input:disabled) { opacity: .45; }
/* A browser without :has() still shows where the keyboard is. */
@supports not selector(:has(*)) {
  .slider:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
}
/* A jump (a quick amount, a typed figure) glides; a drag follows the finger with no lag. */
.slider.is-gliding .slider-fill { transition: clip-path .45s var(--ease); }
.slider.is-gliding .slider-thumb { transition: left .45s var(--ease), transform .18s var(--ease); }

.slider-ends { display: flex; justify-content: space-between; margin-top: -6px; padding: 0 2px; color: var(--ink-3); font: 500 11px/1 var(--figure); font-variant-numeric: tabular-nums; }

/* Quick amounts. The chosen one keeps its dark fill and is ringed in white, twice over (its
   edge and a line inside it), as the app marks the chosen one in a row of toggles: white fill
   stays the Buy button's alone. */
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip {
  min-height: 36px; padding: 0 6px;
  border: 1px solid var(--line-2); border-radius: 0;
  background: var(--raise); color: var(--ink-2);
  font: 500 13px/1 var(--figure); font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform .14s var(--ease), background-color .14s, border-color .14s, box-shadow .14s, color .14s;
}
.chip:hover:not(:disabled) { background: var(--hover); border-color: rgba(255, 255, 255, .7); color: var(--ink); }
.chip:active:not(:disabled) { transform: scale(.94); }
/* Named with :hover too: the hover rule above is the more specific one. */
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover:not(:disabled) {
  border-color: #fff; background: var(--hover); box-shadow: inset 0 0 0 1px #fff;
  color: var(--ink);
}
.chip:disabled { opacity: .32; cursor: not-allowed; }

/* The button the whole card leads to. Corner brackets stand around it, just outside its edge:
   on hover and focus, and once after an amount lands on the total (home.js breathes this
   ::before's opacity). */
.calc > .btn.primary { position: relative; isolation: isolate; min-height: 56px; margin-top: 4px; font-size: 16px; }
.calc > .btn.primary::before {
  --tick: 8px;
  content: ''; position: absolute; inset: -6px; z-index: -1;
  background-image: var(--brackets); background-repeat: no-repeat;
  background-position: var(--brackets-at); background-size: var(--brackets-size);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.calc > .btn.primary:hover::before, .calc > .btn.primary:focus-visible::before { opacity: 1; }

.shop > .note { text-align: center; }

/* ── Behind the scenes ─────────────────────────────────────────────────────
   A toy model of an order: three steps, the order's own card with the buyer on it, and the
   bots that send, in a table. Everything in it is invented and it says "Demo" twice: beside
   the heading, which stays in view while the section scrolls, and on the order's card.
   /home/floor.js builds the rows and moves it along. It is the page's second thing: narrower
   than the shop card beside it and no taller, so it is set compact (small figures, tight rows). */
.floor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; animation: rise .6s .08s var(--ease) both, brackets .8s .28s var(--ease) backwards; }
/* Sticks to the top of the window, just under the top bar, while the section passes under it,
   so "Demo" is on screen whenever any of the demo is. The z-index keeps it over the figures,
   which are transformed. */
.floor-head {
  position: sticky; top: var(--bar-h); z-index: 2;
  display: flex; align-items: center; gap: 10px;
  margin: -8px 0; padding: 8px 0;
  background: var(--card);
}
.floor-head h2 { font-size: 16px; }
/* One width for "Run" and "Resting", so the heading never re-wraps when the label changes. */
.floor-head .btn { min-width: 80px; margin-left: auto; }

/* The three steps: a number and a few words each, joined by a hairline. */
.steps { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li {
  display: flex; flex: 0 1 auto; align-items: center; gap: 8px; min-width: 0;
  color: var(--ink-3); font-size: 12px; line-height: 1.3; white-space: nowrap;
  transition: color .3s;
}
.steps li:not(:last-child) { flex: 1 1 auto; }
.steps li:not(:last-child)::after { content: ''; flex: 1 1 12px; min-width: 8px; height: 1px; background: var(--line); }
.step-n {
  display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 0;
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2);
  font: 500 11px/1 var(--figure);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.steps li.on { color: var(--ink); }
.steps li.on .step-n { background: var(--hover); box-shadow: inset 0 0 0 1px #fff; color: var(--ink); }
.steps li.done { color: var(--ink-2); }
.steps li.done .step-n { background: var(--mint); box-shadow: none; color: #000; }

/* The order's card. Its tint is its state: plain, amber while a payment confirms, white while
   Robux move (work in progress), mint once they have arrived. The buyer stands at its left
   end, in line with the column of bots below, so the dust rises along one axis. */
.ticket {
  --m: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center;
  padding: 8px 12px 10px 6px; border: 1px solid var(--line); border-radius: 0;
  background: rgba(255, 255, 255, .03);
  transition: background-color .4s, border-color .4s;
}
.figure-well { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .4s; }
.ticket-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ticket-state { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.ticket-state .tag { font-size: 10px; }
.ticket-line { overflow: hidden; color: var(--ink-2); font: 500 12px/1.4 var(--figure); text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-meter { grid-column: 1 / -1; height: 4px; margin-left: 8px; overflow: hidden; border-radius: 0; background: rgba(255, 255, 255, .09); }
.ticket-meter-fill { display: block; width: calc(var(--m) * 100%); height: 100%; border-radius: 0; background: #fff; transition: width .2s linear; }

.ticket[data-phase="pay"] { border-color: rgba(246, 187, 79, .3); background: rgba(246, 187, 79, .08); }
.ticket[data-phase="pay"] .ticket-state { color: var(--amber); }
/* Confirming has no figure to show, so the track itself sweeps and the fill stays empty. */
.ticket[data-phase="pay"] .ticket-meter {
  background: linear-gradient(90deg, transparent, var(--amber), transparent) 0 0 / 45% 100% no-repeat, rgba(246, 187, 79, .14);
  animation: sweep 1.3s linear infinite;
}
.ticket[data-phase="send"] { border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.ticket[data-phase="send"] .figure-well { background: rgba(255, 255, 255, .14); }
.ticket[data-phase="done"] { border-color: rgba(79, 227, 189, .35); background: rgba(79, 227, 189, .09); }
.ticket[data-phase="done"] .ticket-state { color: var(--mint); }
.ticket[data-phase="done"] .ticket-meter-fill { background: var(--mint); }
.ticket[data-phase="done"] .figure-well { background: rgba(79, 227, 189, .2); }

/* The bots: a table in all but tag. Three columns: who, what this order takes from them, and
   what they hold, with the take shown as a bright slice at the end of the holding. Each row is
   one switch (on duty or off). --i is the row's place: changes run down the table 30ms apart. */
.bots-head, .bot, .bots-foot { display: grid; grid-template-columns: minmax(0, 1.15fr) 60px minmax(0, 1fr); gap: 10px; align-items: center; }
.bots-head { padding: 0 10px; color: var(--ink-3); font: 500 10px/1 var(--figure); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bots-head span:nth-child(2) { text-align: right; }
.bots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.bot {
  --i: 0; --tint: #b49cff;
  width: 100%; padding: 0 10px;
  border: 1px solid transparent; border-radius: 0;
  background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  /* Room for the sticky heading above, when the keyboard scrolls a row into view (the page's
     scroll-padding already leaves room for the top bar). */
  scroll-margin-top: 64px;
  transition: background-color .25s, border-color .25s, box-shadow .14s;
  transition-delay: calc(var(--i) * 30ms);
}
/* A row answers the pointer with a white tick at its left edge, as the app's table rows do. */
.bot:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 2px 0 0 rgba(255, 255, 255, .55); }
.bot:focus-visible { outline-offset: -2px; }
.bot-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bot-name { font: 600 12px/1 var(--mono); white-space: nowrap; }
.bot-sends {
  color: var(--ink-3); font: 500 12px/1.3 var(--figure); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: color .25s; transition-delay: inherit;
}
.bot-stock { display: grid; grid-template-columns: minmax(0, 1fr) 5ch; gap: 10px; align-items: center; }
.bar { --v: 0; --t: 0; position: relative; display: block; height: 4px; overflow: hidden; border-radius: 0; background: rgba(255, 255, 255, .1); }
/* What is held only ever changes two ways: it drains in small steps while the bot sends (quick),
   and it refills when the bot comes back from resting (slow enough to be seen). */
.bar-fill { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--ink-3); transition: width 1.2s var(--ease); }
.bot[data-state="sending"] .bar-fill { transition-duration: .2s; }
/* What this order takes: the right-hand end of what is held. */
.bar-take {
  position: absolute; top: 0; bottom: 0; right: calc((1 - var(--v)) * 100%); width: calc(var(--t) * 100%);
  border-radius: 0; background: #fff;
  transition: width .3s var(--ease), right .3s var(--ease), background-color .25s;
}
.bot-num { color: var(--ink-2); font: 500 12px/1 var(--figure); text-align: right; font-variant-numeric: tabular-nums; }

/* Picked: ringed. Sending: ringed in white, its figure white; only the drawing (the bot's eyes
   and the slice of its holding that flies) keeps the bot's own tint, as the dust does. */
.bot[data-state="picked"] { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.bot[data-state="picked"] .bot-sends { color: var(--ink); font-weight: 600; }
.bot[data-state="sending"] { border-color: #fff; background: rgba(255, 255, 255, .08); }
.bot[data-state="sending"] .bot-sends { color: #fff; font-weight: 600; }
.bot[data-state="sending"] .bar-take { background: var(--tint); }
.bot[data-state="rest"] .bot-sends { color: var(--amber); }
/* Off duty: the figure and the holding dim; the name and the word "Off" stay readable. */
.bot .bar, .bot .bot-num { transition: opacity .3s; }
.bot[data-state="off"] .fig, .bot[data-state="off"] .bar, .bot[data-state="off"] .bot-num { opacity: .45; }

/* The table added up: how many bots, and their shares, which make the order. */
.bots-foot { padding: 6px 10px 0; border-top: 1px solid var(--line); color: var(--ink-3); font: 500 12px/1.3 var(--figure); font-variant-numeric: tabular-nums; }
.bots-foot span:nth-child(2) { color: var(--ink); text-align: right; white-space: nowrap; }
.bots-foot[data-short="true"] span { color: var(--amber); }

/* A figure, built from parts: a body, two hands that float beside it, and a head that floats
   above it with a visor for a face. floor.js builds it and aims it (--lx, --ly move the visor,
   --tilt turns the head toward whatever it is looking at). Everything else is posture, set
   here per state through four numbers: --lift (the head, up or down), --lean (the head's own
   tilt), --hand (the hands, up or down) and --spread (the hands, in or out). They are set on
   the row (.bot) and inherited, so the figure itself never declares them: its own zeros would
   win over the row's. Each use names its own resting value instead. The bots are graphite
   with a white face; the buyer is white with a black one. */
.fig {
  --lx: 0px; --ly: 0px; --tilt: 0deg;
  display: block; flex: none; width: 24px; height: 24px; overflow: visible;
}
.fig.you { width: 34px; height: 34px; }
.fig-body {
  fill: #2b2b31;
  transform-box: fill-box; transform-origin: 50% 100%;
  transition: scale .35s var(--ease), fill .3s;
  animation: breathe 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.45s);
}
.fig-hand {
  fill: #3d3d45;
  transform-box: fill-box; transform-origin: center;
  transition: translate .35s var(--ease), fill .3s;
}
.fig-hand.left { translate: calc(var(--spread, 0px) * -1) var(--hand, 0px); }
.fig-hand.right { translate: var(--spread, 0px) var(--hand, 0px); }
.fig-top {
  transform-box: fill-box; transform-origin: 50% 100%;
  translate: 0 var(--lift, 0px); rotate: calc(var(--tilt) + var(--lean, 0deg));
  transition: translate .35s var(--ease), rotate .35s var(--ease);
}
.fig-head { fill: #3d3d45; transition: fill .3s; }
.fig-visor { translate: var(--lx) var(--ly); transition: translate .14s linear; }
.fig-eye {
  fill: #fff;
  transform-box: fill-box; transform-origin: center;
  transition: fill .3s, scale .25s var(--ease), opacity .2s;
  /* The blink is on `scale`, a property of its own, so it does not fight the aim above. */
  animation: blink 5.2s infinite; animation-delay: calc(var(--i, 0) * -1.3s);
}
.fig-tick { fill: none; stroke: #000; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }

/* Looked at (the pointer or the keyboard is on its row): it looks up and raises a hand. */
.bot:hover, .bot:focus-visible { --lift: -1.5px; }
.bot:hover .fig-hand.right, .bot:focus-visible .fig-hand.right { translate: 1px -9px; }
/* Picked for the order: head up, hands at the shoulders. */
.bot[data-state="picked"] { --lift: -2px; --hand: -6px; }
.bot[data-state="picked"] .fig-head, .bot[data-state="sending"] .fig-head { fill: #55555f; }
/* Sending: hands over the head, head back, the face in the bot's own colour. */
.bot[data-state="sending"] { --lift: -1px; --lean: -6deg; --hand: -17px; --spread: -1.5px; }
.bot[data-state="sending"] .fig-hand.right { translate: var(--spread, 0px) var(--hand, 0px); }
.bot[data-state="sending"] .fig-eye { fill: var(--tint); }
/* Resting: sat down, head low, hands on the floor, eyes nearly shut. */
.bot[data-state="rest"] { --lift: 4px; --hand: 5px; }
.bot[data-state="rest"] .fig-body { scale: 1 .8; animation-duration: 6s; }
.bot[data-state="rest"] .fig-eye { fill: var(--amber); scale: 1 .3; animation: none; }
.bot[data-state="rest"] .fig-hand.right, .bot[data-state="off"] .fig-hand.right { translate: var(--spread, 0px) var(--hand, 0px); }
/* Off duty: powered down. The head drops and tips, the face shrinks to a dim dot. */
.bot[data-state="off"] { --lift: 3px; --lean: 14deg; --hand: 5px; }
.bot[data-state="off"] .fig-body { animation: none; }
.bot[data-state="off"] .fig-eye { fill: var(--ink-3); scale: .35; animation: none; }

.fig.you .fig-body, .fig.you .fig-hand { fill: #d9d9de; }
.fig.you .fig-head { fill: #fff; }
.fig.you .fig-eye { fill: #000; }
/* Catching while Robux move; hands up and a tick for a face once they have arrived. */
.ticket[data-phase="send"] .fig.you { --hand: -8px; --spread: 1px; }
.ticket[data-phase="done"] .fig.you { --lift: -1px; --hand: -17px; --spread: -1.5px; }
.ticket[data-phase="done"] .fig.you .fig-eye { opacity: 0; animation: none; }
.ticket[data-phase="done"] .fig.you .fig-tick { opacity: 1; }

/* ── Questions ─────────────────────────────────────────────────────────────
   One quiet list under both columns: a hairline between rows, one answer open at a time. */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 680px); margin-top: 20px; justify-self: center; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 14px 4px 14px 12px;
  color: var(--ink-2); font: 600 14px/1.4 var(--sans);
  cursor: pointer; list-style: none; border-radius: 0;
  transition: color .2s, box-shadow .14s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] > summary { color: var(--ink); }
/* The open question is marked by a white tick at its left edge, as an open row is in the app. */
.faq details[open] > summary { box-shadow: inset 2px 0 0 #fff; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq summary .pi { width: 14px; height: 14px; color: var(--ink-3); transition: transform .25s var(--ease); }
.faq details[open] > summary .pi { transform: rotate(90deg); }
.answer { max-width: 60ch; padding: 0 4px 16px 12px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { width: var(--column); margin: 0 auto; padding: 0 0 32px; }
.footer-note { color: var(--ink-3); font-size: 12px; text-align: center; }

/* ── The Buy Robux popup ───────────────────────────────────────────────────
   A sheet in the top layer. index.html has only its shell; everything inside .dialog-body is
   drawn by /home/buy.js, which is not edited for looks: these rules follow the class names it
   emits, and /home/popup-fx.js adds the moments (it writes only data-clock on the dialog). A
   closed <dialog> stays display:none, so the layout is set only while it is open. */
/* A black pane with a control's ring and longer brackets (14px), as the app's popups. It
   unfolds from its middle line and its brackets are drawn out as it opens. */
.dialog {
  --tick: 14px;
  width: min(480px, calc(100% - 24px)); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 0;
  background-color: #000; color: var(--ink);
  background-image: var(--brackets); background-repeat: no-repeat; background-origin: border-box;
  background-position: var(--brackets-at); background-size: var(--brackets-size);
  box-shadow: 0 0 0 1px #000, 0 30px 80px #000;
}
/* On a phone 100vh is the screen with the browser's bars hidden; the dynamic unit is the part in view. */
.dialog { max-height: calc(100dvh - 32px); }
dialog:not([open]) { display: none; }   /* a browser without <dialog> would show the closed shell */
/* (backwards, not both: a clip-path left on the popup would cut off its shadow.) */
.dialog[open] { display: flex; flex-direction: column; animation: unfold .26s var(--ease) backwards, brackets .5s .1s var(--ease) both; }
.dialog::backdrop { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .2s both; }
.dialog-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 10px 20px; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 12px; }
.dialog-head h2 { font-size: 15px; letter-spacing: -.03em; }
.dialog-body { position: relative; min-height: 0; padding: 4px 20px 20px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
/* The popup's own dust canvas: over its content, never in the way. */
.dialog .dust-layer { position: absolute; z-index: 5; }

/* The steps: five squares on a line. The current one is white and named; one that is done is
   mint with a tick. The other names are kept for a screen reader only. The lines between give
   way first on a narrow screen, so five squares always fit. */
.buy-steps { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.buy-steps li { position: relative; display: flex; flex: 0 1 auto; align-items: center; gap: 8px; min-width: 0; color: var(--ink-3); font: 500 13px/1 var(--figure); white-space: nowrap; }
.buy-steps li:not(:last-child)::after { content: ''; flex: 0 1 16px; width: 16px; min-width: 4px; height: 1px; border-radius: 0; background: var(--line-2); transition: background-color .4s; }
.buy-steps li.done::after { background: var(--mint); }
.buy-step-n {
  display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 0;
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3);
  font: 500 11px/1 var(--figure);
  transition: background-color .4s, box-shadow .4s, color .4s, transform .4s var(--ease);
}
.buy-step-n .pi { display: none; width: 14px; height: 14px; }
.buy-steps .done .buy-step-n { background: var(--mint); box-shadow: none; color: #000; }
.buy-steps .done .buy-step-n .pi { display: block; }
.buy-steps .done .buy-step-digit { display: none; }
.buy-steps .on { color: var(--ink); }
.buy-steps .on .buy-step-n { background: #fff; box-shadow: none; color: #000; transform: scale(1.08); }
.buy-steps li:not(.on) .buy-step-name {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* One step at a time: a single column with the same gap between its parts. */
.buy-stage, .buy-form, .buy-pay, .buy-claim { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.buy-form, .buy-claim { margin: 0; }
.buy-stage h3 { font-size: 22px; }
.buy-stage p { color: var(--ink-2); }
.buy-stage p.muted { color: var(--ink-3); }
.buy-stage .note p + p { margin-top: 4px; }
/* A step arrives from just below, its parts one after another. An order's view is redrawn each
   time its status changes, so there only the status card, the thing that changed, takes part. */
.buy-form > *, .buy-stage > .buy-status { animation: rise .45s var(--ease) both; }
.buy-form > :nth-child(2) { animation-delay: .04s; }
.buy-form > :nth-child(3) { animation-delay: .08s; }
.buy-form > :nth-child(4) { animation-delay: .12s; }
.buy-form > :nth-child(n + 5) { animation-delay: .16s; }

.dialog .actions { margin-top: 4px; }
.dialog .actions .btn { flex: 1 1 auto; }
.dialog .actions .btn.primary { flex: 2 1 160px; }

/* While a request is out (Find account, Place order, I have paid) the button that was pressed
   is working, not dead: full strength, white, a dark band passing through it, as work in
   progress moves in the app. buy.js shows a plain note only while a request is out, and every
   failure is a warning note, so "a plain note is showing" is "busy". */
.buy-form:has(> .note:not(.warn):not([hidden])) .btn[type="submit"]:disabled,
.buy-claim:has(> .note:not(.warn):not([hidden])) .btn[type="submit"]:disabled {
  opacity: 1; cursor: progress; color: #000; border-color: #fff;
  background: linear-gradient(100deg, transparent 35%, rgba(0, 0, 0, .22) 50%, transparent 65%) 0 0 / 250% 100% no-repeat, #fff;
  animation: shine 1.1s linear infinite;
}

/* A field with its button on the same line; the button drops under when there is no room. */
.buy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.buy-row .field { flex: 1 1 180px; }
.buy-row .btn { min-height: 48px; }

/* The account that was found. */
.buy-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid rgba(79, 227, 189, .4); border-radius: 0; background: rgba(79, 227, 189, .07);
  animation: pop .45s var(--ease) both;
}
/* A face in a square frame the colour of its state (found: mint), as the app shows accounts. */
.buy-avatar { display: grid; flex: none; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 0; background: var(--raise-2); box-shadow: inset 0 0 0 1px rgba(79, 227, 189, .55); color: var(--ink-3); }
.buy-avatar img { display: block; width: 48px; height: 48px; }
.buy-who { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.buy-who-name { font-weight: 700; }
.buy-who-user { color: var(--ink-3); font: 500 12px/1.4 var(--mono); }

/* Limits: two quick-fill buttons with their figures spelled out, then four boxes in two columns. */
.buy-quick { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.buy-quick .btn { font-family: var(--figure); font-weight: 500; font-variant-numeric: tabular-nums; }
.buy-limits, .buy-amount { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.buy-limits .field, .buy-amount .field { justify-content: flex-end; }
.buy-stage .buy-allow { padding: 12px 14px; border-radius: 0; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .3s, box-shadow .3s; }
/* The allowance that lets the buyer go on is marked as good. */
.buy-form:has(> .actions .btn.primary:enabled) > .buy-allow { background: rgba(79, 227, 189, .09); box-shadow: inset 0 0 0 1px rgba(79, 227, 189, .35); }
/* A figure that is worked out, not typed. */
.readout {
  display: flex; align-items: center; height: 48px; padding: 0 14px; overflow: hidden;
  border-radius: 0; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 18px/1 var(--figure); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* The coins are a radio group. The real radio lies over its card, unseen, so the keyboard and a
   screen reader get a native one. A chosen card is ringed in white with a tick beside its name. */
.buy-coins { min-width: 0; margin: 0; padding: 0; border: 0; }
.buy-coins legend { margin: 0 0 8px; padding: 0; }
.buy-coin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.buy-coin { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.buy-coin input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.buy-coin-face {
  display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 6px; align-content: center;
  min-height: 56px; padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: 0; background: var(--raise);
  transition: transform .14s var(--ease), border-color .14s, background-color .14s, box-shadow .14s;
}
.buy-coin-name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.buy-coin-net { grid-column: 1 / -1; color: var(--ink-3); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.buy-coin-face .pi { visibility: hidden; align-self: center; }
.buy-coin input:hover + .buy-coin-face { background: var(--hover); border-color: rgba(255, 255, 255, .7); }
.buy-coin input:active + .buy-coin-face { transform: scale(.96); }
.buy-coin input:checked + .buy-coin-face { border-color: #fff; background: var(--hover); box-shadow: inset 0 0 0 1px #fff; }
.buy-coin input:checked + .buy-coin-face .pi { visibility: visible; animation: pop .35s var(--ease) both; }
.buy-coin input:focus-visible + .buy-coin-face { outline: 2px solid #fff; outline-offset: 2px; }

/* An order: what was ordered on one line, then where it stands on a tinted card. The card's
   colour is its phase, read from the tag's tone and the step: a plain tag is the buyer's part
   (waiting, seen, confirming: amber, with a sweeping bar); an "ok" tag on the pay step is the
   shop's part (paid, sending: white, work in progress, with a band of light running over a
   hatched bar); "ok" on the last step is sent (mint, with a tick); "warn" is coral and still.
   The card's tag carries a lamp, a small square in the same colour as its word. */
.buy-stage .buy-summary {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px;
  color: var(--ink); font: 600 14px/1.5 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.buy-stage .buy-status {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: start; padding: 16px;
  border: 1px solid rgba(246, 187, 79, .4); border-radius: 0; background: rgba(246, 187, 79, .08);
  color: var(--ink); font-weight: 600;
}
.buy-status .tag { gap: 6px; background: rgba(246, 187, 79, .12); box-shadow: inset 0 0 0 1px rgba(246, 187, 79, .42); color: var(--amber); }
.buy-status .tag::before { content: ''; flex: none; width: 6px; height: 6px; background: currentColor; }
.buy-status::after {
  content: ''; justify-self: stretch; height: 6px; border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--amber), transparent) 0 0 / 45% 100% no-repeat, rgba(246, 187, 79, .14);
  animation: sweep 1.3s linear infinite;
}
.buy-stage .buy-status:has(.tag.ok) { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.buy-status:has(.tag.ok) .tag { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; }
.buy-status:has(.tag.ok)::after {
  background: linear-gradient(90deg, transparent, #fff, transparent) 0 0 / 30% 100% no-repeat,
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 5px), rgba(255, 255, 255, .08);
}
.buy-stage .buy-status:has(.tag.warn) { border-color: rgba(255, 125, 110, .45); background: rgba(255, 125, 110, .08); }
.buy-status:has(.tag.warn) .tag { background: rgba(255, 125, 110, .11); box-shadow: inset 0 0 0 1px rgba(255, 125, 110, .46); color: var(--coral); }
.buy-status:has(.tag.warn)::after { content: none; }
/* While the "still checking" note under the card is showing, nothing has been heard from the
   server: the bar stops and dims instead of sweeping on as if all were well. */
.buy-status:has(+ .note:not([hidden]))::after { animation-play-state: paused; opacity: .35; }

/* Sent. It is recognised two ways: by the hook buy.js is gaining (data-state="delivered" on
   the popup's body), and, until that lands, by the last step being on with an "ok" tag. The
   card turns mint, the bar gives way to a tick, the fifth square completes the row, and the first
   sentence under the card, the next thing to do, is set apart. popup-fx.js builds the tick out
   of dust first, which is why its own fade-in waits. */
/* (Each pair below is two rules, not one list: a browser that does not know :has() throws a
   whole rule away for one selector it cannot read, and the hook must not go with it.) */
.dialog-body[data-state="delivered"] .buy-stage .buy-status { border-color: rgba(79, 227, 189, .45); background: rgba(79, 227, 189, .09); }
.buy-steps:has(li:last-child.on) ~ .buy-stage .buy-status:has(.tag.ok) { border-color: rgba(79, 227, 189, .45); background: rgba(79, 227, 189, .09); }
.dialog-body[data-state="delivered"] .buy-status .tag { background: rgba(79, 227, 189, .10); box-shadow: inset 0 0 0 1px rgba(79, 227, 189, .40); color: var(--mint); }
.buy-steps:has(li:last-child.on) ~ .buy-stage .buy-status:has(.tag.ok) .tag { background: rgba(79, 227, 189, .10); box-shadow: inset 0 0 0 1px rgba(79, 227, 189, .40); color: var(--mint); }
.dialog-body[data-state="delivered"] .buy-status::after {
  justify-self: start; order: -1; width: 30px; height: 30px; border-radius: 0;
  background: var(--mint);
  clip-path: polygon(12% 52%, 0 66%, 38% 100%, 100% 24%, 87% 11%, 37% 71%);
  animation: pop .6s .7s var(--ease) both;
}
.buy-steps:has(li:last-child.on) ~ .buy-stage .buy-status:has(.tag.ok)::after {
  justify-self: start; order: -1; width: 30px; height: 30px; border-radius: 0;
  background: var(--mint);
  clip-path: polygon(12% 52%, 0 66%, 38% 100%, 100% 24%, 87% 11%, 37% 71%);
  animation: pop .6s .7s var(--ease) both;
}
.dialog-body[data-state="delivered"] .buy-steps li:last-child .buy-step-n { background: var(--mint); color: #000; }
.buy-steps:has(~ .buy-stage .buy-status .tag.ok) li:last-child.on .buy-step-n { background: var(--mint); color: #000; }
.dialog-body[data-state="delivered"] .buy-steps li:last-child .buy-step-n .pi { display: block; }
.buy-steps:has(~ .buy-stage .buy-status .tag.ok) li:last-child.on .buy-step-n .pi { display: block; }
.dialog-body[data-state="delivered"] .buy-steps li:last-child .buy-step-digit { display: none; }
.buy-steps:has(~ .buy-stage .buy-status .tag.ok) li:last-child.on .buy-step-digit { display: none; }
/* A last step that needs a look says so in the row of squares too. */
.buy-steps:has(~ .buy-stage .buy-status .tag.warn) li:last-child.on .buy-step-n { background: var(--coral); color: #000; }
.buy-steps:has(li:last-child.on) ~ .buy-stage .buy-status:has(.tag.ok) + .note + p.small {
  padding-left: 12px; border-left: 2px solid var(--mint);
  color: var(--ink); font-size: 14px;
}
.buy-tx { overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; }

/* The network is the one thing a buyer must not get wrong: the largest text in the popup. */
.buy-net { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 16px; border-radius: 0; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); border-left: 4px solid var(--amber); }
.buy-net-name { font: 700 22px/1.3 var(--sans); letter-spacing: -.02em; overflow-wrap: anywhere; }
.buy-net .small { color: var(--ink-2); }

/* A value to copy: a label, then the text in a well with its button beside it. A long address
   breaks anywhere. Selecting the value takes all of it and leaves the unit behind. The button
   keeps one width, so "Copy" turning into "Copied" never re-wraps the address beside it. Once
   a value has been copied, popup-fx.js fades in the small tick after its label, and it stays:
   a buyer back from their wallet sees what they already took. */
.buy-line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.buy-line > .field-label::after {
  content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: -2px;
  background: var(--mint);
  clip-path: polygon(12% 52%, 0 66%, 38% 100%, 100% 24%, 87% 11%, 37% 71%);
  opacity: 0;
}
.buy-copy { display: flex; align-items: center; gap: 8px; }
.buy-copy-text {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 0; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 14px/1.4 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.buy-copy-value { font: inherit; -webkit-user-select: all; user-select: all; }
.buy-unit { color: var(--ink-3); -webkit-user-select: none; user-select: none; }
.buy-copy .btn { flex: none; min-width: 76px; min-height: 44px; }

/* The QR code keeps its own black on white: a scanner needs it. */
.buy-qr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.buy-qr { flex: none; max-width: 100%; padding: 10px; border-radius: 0; background: white; }
.buy-qr svg { display: block; max-width: 100%; height: auto; }
.buy-qr-row p { flex: 1 1 140px; }

/* The clock. Amber under five minutes and coral under one (popup-fx.js reads the time and
   says which on the dialog); the figure itself never moves. */
.buy-timer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.buy-time { color: var(--ink); font: 500 22px/1.3 var(--figure); font-variant-numeric: tabular-nums; transition: color .3s; }
.dialog[data-clock="low"] .buy-time { color: var(--amber); }
.dialog[data-clock="last"] .buy-time { color: var(--coral); }

/* The warnings: a short list with a marker. */
.checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--ink-2); }
.checklist .pi { width: 14px; height: 14px; margin-top: 3px; color: var(--amber); }

/* ── Wider screens ───────────────────────────────────────────────────────── */
/* The shop card leads: the wider column, with the demo in a narrower one beside it. */
@media (min-width: 940px) {
  main { grid-template-columns: minmax(0, 560px) minmax(0, 380px); justify-content: center; }
  .faq { grid-column: 1 / -1; }
  .shop { gap: 18px; padding: 28px; }
  .calc { gap: 16px; }
  .hero { padding: 18px 0 8px; }
  .hero output { font-size: 80px; }
}
/* Wherever the demo is narrow (beside the card, or on a phone), its three steps stay three across,
   each with its number above its words. */
@media (max-width: 560px), (min-width: 940px) {
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .steps li, .steps li:not(:last-child) { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 11px; white-space: normal; }
  .steps li:not(:last-child)::after { content: none; }
}

/* ── Small screens ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  main { gap: 16px; }
  .card { padding: 18px; }
  .shop-head { flex-wrap: wrap; }
  /* Under the heading, the price and the stock side by side. */
  .shop-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rate { padding: 5px 9px; font-size: 11px; }
  .floor { gap: 10px; }
  .figure-well { width: 36px; height: 36px; }
  .fig.you { width: 30px; height: 30px; }
  /* The table folds into two columns of small tiles: a bot's name and what it sends, and what it
     holds as a thin line along the tile's foot. (Its row still says "holds" with the figure to a
     screen reader, in its name.) */
  .bots-head { display: none; }
  .bots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; }
  .bot { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 6px; padding: 3px 8px 5px; background: rgba(255, 255, 255, .025); }
  .bot-id { gap: 6px; }
  .bot-name, .bot-sends { font-size: 11px; }
  .bot-stock { display: contents; }
  .bar { grid-column: 1 / -1; grid-row: 2; height: 2px; }
  .bot-num { display: none; }
  .bots-foot { grid-template-columns: minmax(0, 1fr) auto; }
  .bots-foot span:nth-child(3) { display: none; }

  /* The popup becomes a sheet that rises from the foot of the screen. */
  .dialog { width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; border-width: 1px 0 0; }
  .dialog[open] { animation: sheet-up .32s var(--ease) backwards, brackets .5s .15s var(--ease) both; }
}
/* Too narrow for two tiles side by side: one column of them. */
@media (max-width: 360px) {
  .bots { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .buy-quick, .buy-limits, .buy-amount { grid-template-columns: minmax(0, 1fr); }
  /* The order card's word and its Demo tag stay on one line down to 320px. */
  .ticket-state { font-size: 14px; }
}
/* A touch screen of any width gets tap targets of at least 40px. */
@media (pointer: coarse) {
  .btn.sm { min-height: 40px; }
  .chip { min-height: 40px; }
  .btn.icon { width: 40px; min-height: 40px; }
}

/* ── Without JavaScript ────────────────────────────────────────────────────
   The Buy Robux button opens a popup that only a script can fill, so where the browser can tell
   us scripting is off it is left out; the <noscript> note says so. */
@media (scripting: none) {
  [data-buy-open] { display: none; }
}

/* ── Light ─────────────────────────────────────────────────────────────────
   Only where motion is welcome (the reduced-motion block below also switches it all off). */
@media (prefers-reduced-motion: no-preference) {
  /* A band of light crosses the page once, top to bottom, as it loads: a scan. It lies under the
     panes (they are black), so it shows in the gutters, over the grid. */
  body::before {
    content: ''; position: fixed; left: 0; right: 0; top: 0; height: 22vh; z-index: -1; pointer-events: none;
    translate: 0 -24vh;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .03) 80%, rgba(255, 255, 255, .085) 99%, transparent);
    animation: scan 1.1s .1s linear both;
  }
  /* The pane under the pointer reaches a little further with its brackets. */
  .card { transition: background-size .2s var(--ease); }
  .card:hover { --tick: 16px; }
}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: scale(.82); } 60% { transform: scale(1.06); } }
/* The glow is a filter, not a text-shadow: the output's overflow (for the rolling digits) would
   cut a text-shadow into a box, but a filter is drawn after that clip. */
@keyframes land { 30% { transform: scale(1.05); filter: drop-shadow(0 0 14px rgba(255, 255, 255, .45)); } }
@keyframes sweep { from { background-position: -80% 0, 0 0; } to { background-position: 180% 0, 0 0; } }
@keyframes shine { from { background-position: 130% 0, 0 0; } to { background-position: -30% 0, 0 0; } }
@keyframes blink { 0%, 95%, 100% { scale: 1 1; } 97.5% { scale: 1 .12; } }
@keyframes breathe { 50% { scale: 1 1.04; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes unfold { from { opacity: 0; clip-path: inset(48% 0); } to { opacity: 1; clip-path: inset(0); } }
/* A frame's brackets drawn out from its corners: from nothing to the frame's own size. */
@keyframes brackets { from { background-size: 0 1px, 1px 0, 0 1px, 1px 0, 0 1px, 1px 0, 0 1px, 1px 0; } }
@keyframes title { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes lamp { 0% { opacity: .15; } 50% { opacity: 1; } }
@keyframes scan { from { translate: 0 -24vh; } to { translate: 0 104vh; } }
@keyframes sheet-up { from { transform: translateY(100%); } }

/* ── Print ─────────────────────────────────────────────────────────────────
   Paper is white: dark type on it, and nothing that only moves. */
@media print {
  :root {
    --bg: #fff; --card: #fff; --raise: #fff; --raise-2: #f1f1f3;
    --line: #c9c9cf; --line-2: #9a9aa3; --edge: #6b6b73;
    --ink: #000; --ink-2: #222; --ink-3: #444; --ink-off: #666;
  }
  .dust-layer, .floor, .slider, .slider-ends, .presets, [data-buy-open], .dialog, .skip-link { display: none !important; }
  .card { box-shadow: none; background-image: none; }
  .topbar { position: static; box-shadow: none; }
  body::before, body::after { content: none; }
}

/* ── Contrast themes ───────────────────────────────────────────────────────
   In forced-colors mode the browser replaces fills and drops shadows. Edges here are already
   real borders; what is filled to carry meaning gets one, and the drawings keep their fills. */
@media (forced-colors: active) {
  .slider, .chip, .note, .tag, .rate, .readout, .buy-copy-text, .buy-allow, .buy-net,
  .buy-step-n, .step-n, .figure-well { border: 1px solid CanvasText; }
  .slider-fill, .slider-thumb, .bar-fill, .bar-take, .ticket-meter-fill, .fig { forced-color-adjust: none; }
  .chip[aria-pressed="true"], .buy-coin input:checked + .buy-coin-face, .buy-steps .on .buy-step-n { border-width: 3px; }
  .buy-qr { forced-color-adjust: none; }
  /* A lamp keeps its colour (its words beside it say the same); the bar's hairline is a shadow. */
  .rate.in-stock::before, .buy-status .tag::before { forced-color-adjust: none; }
  .topbar { border-bottom: 1px solid CanvasText; }
  /* The text boxes' focus mark is a shadow, which this mode drops. */
  .field input:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* ── Reduced motion ────────────────────────────────────────────────────────
   Nothing moves: no entrances, no sweeps, no glides. States still change, at once. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  /* A sweep that ran once would stop as a bright smear: every bar is left plain. The first
     background layer is the moving light in each of them, so it is taken down to nothing. */
  .buy-status::after, .ticket[data-phase="pay"] .ticket-meter,
  .buy-form .btn[type="submit"]:disabled, .buy-claim .btn[type="submit"]:disabled { animation: none !important; background-size: 0 0, auto !important; }
}
