/* Stage 6 (owner, 2026-12-03): the shop window's 1950s touches (public/js/ui/retro.js). Only on the
   moments people start, choose or wait; never where they work. The tokens are in tokens.css (the
   server pages repeat them in their own :root). No preload: a browser fetches a face only when a
   glyph uses it, so the first screen never waits for these. */
@font-face { font-family: 'Yesteryear'; font-style: normal; font-weight: 400; font-display: swap; src: url('../vendor/fonts/yesteryear-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'League Gothic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../vendor/fonts/league-gothic-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.rv { pointer-events: none; }
.rv-caps { font-family: var(--font-caps); font-weight: 400; }
.rv-mono { font-family: var(--font-mono); }

/* The showcard script: the spot colour, tilted, never underlined, never a button. */
.rv-script { font-family: var(--font-script); color: var(--spot); font-size: 24px; line-height: 1.1; font-weight: 400; margin: 0; transform: rotate(-4deg); text-decoration: none; display: inline-block; }
.rv-script.rv-write { clip-path: inset(0 -10% 0 0); }
.rv-sparkles { display: inline-block; vertical-align: middle; }

/* The price ticket and the ribbon. */
.rv-burst { display: inline-block; position: relative; transform: rotate(var(--rv-rot, -8deg)); transform-origin: 50% 50%; }
.rv-burst svg { display: block; overflow: visible; }
.rv-ribbon { display: inline-block; position: relative; }
.rv-ribbon svg { display: block; }
.rv-ribbon-text { position: absolute; top: 0; display: flex; align-items: center; justify-content: center; padding-top: 1px; font: 400 15px/1 var(--font-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--card-stock); }

/* The rubber stamp: a double rule in the spot colour, ink that misses in places (#rv-ink). */
.rv-stamp { display: inline-block; transform: rotate(var(--rv-rot, -7deg)); opacity: .92; filter: url(#rv-ink); vertical-align: middle; }
.rv-stamp-inner { display: inline-flex; flex-direction: column; align-items: center; border: 3px double var(--spot); border-radius: 4px; padding: 5px 11px 4px; font-family: var(--font-caps); letter-spacing: .16em; text-transform: uppercase; line-height: 1; color: var(--spot); }
.rv-stamp-sub { font-family: var(--font-mono); letter-spacing: .16em; font-weight: 600; margin-top: 2px; }

/* Halftone dots (8 px pitch, 50 %, fading out). */
.rv-halftone { display: block; position: absolute; background-image: radial-gradient(var(--spot) 2.1px, transparent 2.5px); background-size: 8px 8px; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); }

/* The seal (public page footers). */
.rv-seal { display: block; flex: none; }

/* The stand-by counter: five dark tiles, Plex Mono, a hairline across the middle; digits roll. */
.rv-counter { display: inline-flex; gap: 3px; }
.rv-digit { position: relative; width: 22px; height: 30px; overflow: hidden; background: var(--ink); border-radius: 3px; color: var(--card-stock); font: 600 18px/30px var(--font-mono); text-align: center;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .05)); }
.rv-digit::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.rv-roll { display: flex; flex-direction: column; transition: transform 600ms cubic-bezier(.3, .7, .3, 1); }
.rv-roll > span { height: 30px; }

/* Shop-window surfaces (6.0): 8 px corners, white cards, the spot colour. */
.shop-card { background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--radius-shop); }

/* ---- Motion (6.9): transform, opacity and clip-path only; each once; none under reduced motion. */
@keyframes rv-burst-land { 0% { transform: rotate(-34deg) scale(.4); opacity: 0; } 70% { transform: rotate(var(--rv-rot, -8deg)) scale(1.06); opacity: 1; } 100% { transform: rotate(var(--rv-rot, -8deg)) scale(1); opacity: 1; } }
@keyframes rv-stamp-land { 0% { transform: rotate(var(--rv-rot, -7deg)) scale(1.35); opacity: 0; } 55% { transform: rotate(var(--rv-rot, -7deg)) scale(1); opacity: .97; } 70% { transform: rotate(var(--rv-rot, -7deg)) translateX(-1px); } 85% { transform: rotate(var(--rv-rot, -7deg)) translateX(1px); } 100% { transform: rotate(var(--rv-rot, -7deg)); opacity: .92; } }
@keyframes rv-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }
@keyframes rv-spark { 0% { transform: scale(0) rotate(0); } 70% { transform: scale(1.15) rotate(25deg); } 100% { transform: scale(1) rotate(30deg); } }
@keyframes rv-ribbon-drop { 0% { transform: translateY(-14px); opacity: 0; } 80% { transform: translateY(1px); opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .rv-burst.rv-tilt { transition: transform 400ms ease; }
  *:hover > .rv-burst.rv-tilt { transform: rotate(calc(var(--rv-rot, -8deg) - var(--rv-tilt, 6deg))); }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .rv * { animation: none !important; transition: none !important; }
  .rv-script.rv-write { clip-path: none; }
}


/* ---- Where they sit (6.3) ---- */
/* The result's stamp (6.6): beside the badge on screen; the print keeps the plain mono label. */
.bal-stamp { align-self: center; margin-left: 4px; }
.bal-indicative.print-label { display: none; }
.run-head .rp-bal .bal-stamp { margin-left: 0; }
/* The Site step (before a site is placed): the script on the hairline above the steps, the burst beside them. */
.site-intro { position: relative; }
.site-script { position: absolute; right: 2px; top: 0; transform: translateY(-62%) rotate(-4deg); background: var(--paper); padding: 0 8px; font-size: 22px; }
.site-intro.has-burst .intro-steps { padding-right: 92px; }
.site-burst { position: absolute; right: 2px; top: 34px; }
@media (max-width: 760px) { .site-intro.has-burst .intro-steps { padding-right: 80px; } .site-burst { top: 30px; } }
/* Back from paying (6.5): the box, with the thanks across its top-right edge on the paper. */
.pay-box { position: relative; margin: var(--s3) 0 var(--s3); padding: 14px 16px 12px; border: 1px solid var(--ink); border-radius: 2px; background: var(--card-stock); }
.pay-box p { margin: 0; }
.pay-received { font-weight: 600; }
.pay-facts { margin-top: 4px !important; font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pay-receipt { margin-top: 4px !important; font-size: var(--fs-s); color: var(--ink-2); }
.pay-thanks { position: absolute; right: 14px; top: 0; transform: translateY(-58%) rotate(-4deg); background: var(--paper); padding: 0 8px; font-size: 22px; }
/* The zone map's stand-by card (6.10). */
.standby { position: relative; overflow: hidden; margin: 0 0 var(--s3); padding: 18px 16px 16px; border: 1px solid var(--ink); background: var(--card-stock); text-align: center; }
.standby-dots-tl { left: -18px; top: -16px; }
.standby-dots-br { right: -18px; bottom: -16px; }
.standby-script { position: relative; font-size: 24px; }
.standby-head { position: relative; margin: 6px 0 10px; font: 400 22px/1.1 var(--font-caps); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.standby-count { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.standby-label { font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
/* The account (6.11): the empty list, and how each run was paid for. */
.runs-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: var(--s2) 0; padding: 18px 16px; border: 1px dashed var(--rule-strong); border-radius: var(--radius-shop); background: var(--card-stock); text-align: center; }
.runs-empty p { margin: 0; max-width: 30rem; }
.runs-empty-script { font-size: 24px; }
.run-paid-stamp { margin-right: 6px; }
.run-via { display: inline-flex; align-items: center; margin-right: 6px; font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
/* Public page footers (6.3): the seal before the links. */
.page-foot .rv-seal { align-self: center; margin-right: 4px; }
.page-foot:has(.rv-seal) { align-items: center; }
/* Server pages (pricing, the 404) have no script: their two moves are CSS, once, none under reduced motion. */
.rv-anim-write { animation: rv-write 600ms cubic-bezier(.5, 0, .3, 1) 200ms both; }
.pr-art .rv-hero-burst { animation: rv-burst-land 520ms cubic-bezier(.2, .8, .3, 1.2) 300ms both; }
/* The choice (6.4): the burst on the free account card's corner, the ribbon over the pack card, the sign-off centred. */
.choice-burst { position: absolute; right: -8px; top: -26px; }
.choice-ribbon { position: absolute; left: 50%; top: -17px; margin-left: -60px; }
.choice-signoff-row { text-align: center; margin: var(--s3) 0 var(--s2); }
.choice-signoff { font-size: 22px; }

@media print { .rv, .rv-defs { display: none !important; } .bal-indicative.print-label { display: inline !important; } }
