/* ==========================================================================
   vyce.lol – CHERRY CHROME base stylesheet
   Chrome is the material, cherry is the light, black is the room.
   One family (Archivo variable). Width is the hierarchy:
   125 = display, 100–108 = text and UI, 62 = numerals.
   Area stylesheets (site / pages / casino / dash) load AFTER this file.
   Spec: DESIGN.md. Do not add area-specific rules here.
   ========================================================================== */

/* ---------- 1. fonts ---------- */
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-VF.woff2") format("woff2"), url("/fonts/Archivo-VF.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Italic-VF.woff2") format("woff2"), url("/fonts/Archivo-Italic-VF.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

/* ---------- 2. tokens ---------- */
:root {
  color-scheme: dark;

  /* colour */
  --pitch: #060203;      /* the room: page background, warm black */
  --glass: #0e0507;      /* black glass: fields, display windows, menus, panels */
  --oxblood: #24060b;    /* quiet raised surface, hovered row */
  --velvet: #6f0919;     /* curtain folds, deep red fields */
  --cherry: #e5122e;     /* the signature light: one field or one object per screen */
  --flare: #ff4b3e;      /* hot highlight, error text, lit edge of a win */
  --blush: #ffc9bf;      /* small text on red/velvet, focus ring, lamps */
  --platinum: #f6f2ef;   /* headlines and primary text, warm white */
  --body: #d8d0cc;       /* running text */
  --steel: #b3aba8;      /* secondary text */
  --smoke: #8f8683;      /* timestamps, table headers, placeholders (4.5:1 on --oxblood too) */
  --champagne: #f3c892;  /* COINS ONLY: wallet, jackpot, win, payouts */
  --on-red: #0b0305;     /* type and black parts on cherry surfaces */
  --on-chrome: #120608;  /* type on chrome surfaces */
  --line: rgba(246, 242, 239, .14);
  --line-strong: rgba(246, 242, 239, .32);
  --ok: var(--platinum); --warn: var(--blush); --bad: var(--flare);
  --focus: var(--blush);

  /* gradients – materials */
  --chrome-band: linear-gradient(180deg, #ffffff 0%, #ece6e2 22%, #948d8b 47%, #332b2c 52%, #b8b0ad 78%, #f6f2ef 100%);                /* trim, rims, bezels – never behind text */
  --chrome-soft: linear-gradient(180deg, #ffffff 0%, #efe9e6 42%, #c3bbb8 58%, #f3eeeb 100%);                                        /* chrome you can print on: selected tab, chrome button */
  --chrome-text: linear-gradient(180deg, #ffffff 0%, #efe9e6 30%, #a39c9a 46%, #3a2e30 51%, #c4142d 60%, #ff6f61 80%, #ffd9cf 100%); /* clipped into type – max. one per screen */
  --chrome-ball: radial-gradient(circle at 34% 28%, #fff 0%, #e6e0dc 24%, #8c8583 56%, #3b3334 80%, #cfc8c5 100%);                   /* knobs, round buttons */
  --champagne-text: linear-gradient(180deg, #fff6e6 0%, #f3c892 48%, #c58a48 100%);                                                   /* coin numerals */
  --lacquer: linear-gradient(180deg, #e0152f 0%, #b70e26 26%, #870a1d 68%, #5a0713 100%);                                             /* cabinet body */
  --cherry-field: linear-gradient(160deg, #f6233f 0%, #ec1a34 100%);                                                                   /* flat red slab – a touch brighter than --cherry so --on-red text reaches 4.5:1 */
  --velvet-field: linear-gradient(180deg, #4b0710 0%, #2c0409 100%);                                                                  /* deck, deep panel */
  --curtain: repeating-linear-gradient(90deg, #5a0713 0 30px, #7c0a1c 54px, #450510 88px, #6d0919 120px, #3d050e 156px, #5a0713 188px);
  --lamp-lit: radial-gradient(circle at 35% 30%, #fff 0%, #ffe9c9 40%, #f3c892 100%);

  /* shape */
  --r-pill: 999px;   /* anything you press */
  --r-field: 14px;   /* inputs, small windows */
  --r-panel: 20px;   /* glass panels */
  --r-slab: 28px;    /* slabs */

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --s-section: clamp(72px, 10vw, 150px);
  --gutter: clamp(16px, 4.2vw, 60px);
  --maxw: 1380px;
  --maxw-text: 720px;
  --nav-h: 80px;
  --rail: 256px;
  --h-control: 46px;

  /* type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --w-display: 125%; --w-ui: 108%; --w-text: 100%; --w-num: 62%;
  --fs-hero: clamp(54px, min(10.4vw, 17.2vh), 172px);
  --fs-page: clamp(38px, 5.6vw, 84px);
  --fs-section: clamp(36px, 5.6vw, 88px);
  --fs-title: clamp(24px, 2.3vw, 34px);
  --fs-sub: 19px;
  --fs-lede: clamp(17px, 1.35vw, 20px);
  --fs-body: 17px;
  --fs-small: 14.5px;
  --fs-label: 13px;
  --fs-stat: clamp(88px, 16vw, 236px);

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-press: 120ms; --t-fast: 180ms; --t-med: 320ms; --t-slow: 600ms;
  --loop-lamps: 2.8s; --loop-sweep: 5s;

  /* depth – physical parts only */
  --sh-glass: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .08);       /* black glass panel */
  --sh-window: inset 0 3px 12px #000, 0 1px 0 rgba(255, 255, 255, .14);                   /* recessed display window */
  --sh-object: 0 50px 90px -40px #000;                                                    /* object standing in front of the curtain */
  --sh-cherry: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px -10px rgba(229, 18, 46, .8);
  --sh-knob: 0 3px 8px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .5);
  --sh-pop: 0 24px 60px -20px rgba(0, 0, 0, .95), inset 0 0 0 1px var(--line-strong);     /* menus, dialogs, toast */

  /* layers */
  --z-nav: 20; --z-sticky: 30; --z-scrim: 60; --z-modal: 70; --z-toast: 80; --z-grain: 100;

  /* LEGACY aliases – old names used by not-yet-restyled CSS. New code uses the names above. */
  --black: var(--pitch);
  --ink: var(--platinum);
  --dim: var(--steel);
  --field: var(--glass);
  --danger: var(--flare);
  --chrome: var(--chrome-text);
}

/* ---------- 3. reset + page ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #4a141c var(--pitch); }
body {
  margin: 0;
  background: var(--pitch);
  color: var(--body);
  font: 400 var(--fs-body)/1.55 var(--font);
  font-stretch: var(--w-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* film grain over everything – keeps the blacks from looking dead */
body::after { content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; background: url("/img/grain.png"); opacity: .34; mix-blend-mode: overlay; }

:where(h1, h2, h3, h4, p, figure, blockquote, dl, dd) { margin: 0; }
:where(img, svg, canvas, video) { max-width: 100%; }
:where(button, input, select, textarea) { font: inherit; font-stretch: inherit; color: inherit; }
:where(button) { cursor: pointer; }
:where(a) { color: inherit; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }                                             /* while a full-screen sheet or dialog is open */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }          /* inline SVG symbol sheet */

::selection { background: var(--cherry); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #4a141c; border-radius: 99px; border: 2px solid var(--pitch); }
::-webkit-scrollbar-thumb:hover { background: var(--velvet); }

/* ---------- 4. type ---------- */
:where(h1, h2, h3) { font-stretch: var(--w-display); font-weight: 900; letter-spacing: -.04em; line-height: .96; color: var(--platinum); text-wrap: balance; }
:where(h1) { font-size: var(--fs-page); letter-spacing: -.05em; line-height: .92; }
:where(h2) { font-size: var(--fs-title); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
:where(h3) { font-size: var(--fs-sub); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
:where(b, strong) { font-weight: 700; }
.dim :where(b, strong), .pagehead p :where(b, strong), .lead :where(b, strong) { color: var(--platinum); }
:where(code, kbd, samp) { font-family: inherit; font-stretch: 88%; font-weight: 600; font-size: .96em; color: var(--platinum); }
:where(kbd) { padding: 1px 7px; border-radius: 7px; background: var(--oxblood); box-shadow: inset 0 0 0 1px var(--line); }
:where(small) { font-size: var(--fs-small); }

.display { font-stretch: var(--w-display); font-weight: 900; letter-spacing: -.04em; line-height: .94; color: var(--platinum); }
.t-hero { font-size: var(--fs-hero); letter-spacing: -.045em; line-height: .9; }
.t-page { font-size: var(--fs-page); letter-spacing: -.05em; line-height: .92; }
.t-section { font-size: var(--fs-section); line-height: .96; }
.t-title { font-size: var(--fs-title); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.lead { max-width: 34em; font-size: var(--fs-lede); line-height: 1.5; color: #e6deda; }
.small { font-size: var(--fs-small); }
.dim { color: var(--steel); }
/* .mono keeps its name, loses the monospace: the small label voice. Sentence case, never tracked-out capitals. */
.mono { font: 600 var(--fs-label)/1.35 var(--font); font-stretch: var(--w-text); letter-spacing: .005em; text-transform: none; color: var(--smoke); }
.italic-voice { font-stretch: var(--w-display); font-style: italic; font-weight: 900; letter-spacing: -.045em; line-height: .95; } /* cabinet sign + quoted members only */

/* numerals */
.num { font-stretch: var(--w-num); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.coin { font-stretch: var(--w-num); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--champagne); }

/* links inside running text */
.prose a, a.link { color: var(--platinum); text-decoration: underline; text-decoration-color: var(--cherry); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color var(--t-fast); }
.prose a:hover, a.link:hover { color: var(--blush); }
.prose { max-width: var(--maxw-text); }
.prose :where(p, li) { margin: 0 0 12px; color: var(--body); }
.prose :where(h2) { margin: 44px 0 12px; }
.prose :where(ul, ol) { padding-left: 22px; margin: 0 0 12px; }
.prose li::marker { color: var(--cherry); }

/* ---------- 5. layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.inline { display: flex; gap: 8px; align-items: center; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rule { padding-top: 22px; border-top: 1px solid var(--line-strong); }      /* an open block under one chrome hairline – the alternative to a box */
.hairlines > * { padding: 12px 0; border-top: 1px solid var(--line); }
.hairlines > :last-child { border-bottom: 1px solid var(--line); }
.empty { padding: 14px 0; color: var(--steel); }
.axis { display: flex; justify-content: space-between; padding-top: 8px; font-size: var(--fs-label); color: var(--smoke); }

/* page title block: h1 + lede on the left, a slot (wallet, switch, actions) on the right */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.pagehead p { max-width: 36em; margin-top: 12px; color: var(--steel); }
/* section heading: big line left, one explaining sentence right */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 96px); align-items: end; }
.sec-head h2 { font-size: var(--fs-section); font-weight: 900; letter-spacing: -.04em; line-height: .96; }
.sec-head p { max-width: 30em; font-size: 18px; color: #c9c0bc; }

/* brand */
.brandmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brandmark img, .brandmark svg { width: 40px; height: 40px; flex: none; }
.wordmark { font-stretch: var(--w-display); font-weight: 900; font-size: 24px; letter-spacing: -.03em; color: var(--platinum); text-decoration: none; }
.gicon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--oxblood); color: var(--platinum); font-weight: 800; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); }

/* icons: /icons/<name>.png?plain=1 as a mask, coloured by currentColor. JS: el.style.setProperty('--icon', 'url(/icons/bolt.png?plain=1)') */
.ico { display: inline-block; flex: none; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ico.lg { width: 28px; height: 28px; }
.ico-tile { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--oxblood); color: var(--platinum); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- 6. buttons – pills, because you press them ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h-control); padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; color: var(--platinum);
  font-weight: 700; font-size: 15px; font-stretch: var(--w-ui); letter-spacing: .005em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), filter var(--t-fast);
}
.btn:hover { border-color: var(--platinum); background: rgba(246, 242, 239, .06); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.solid { background: var(--cherry); border-color: transparent; color: #fff; box-shadow: var(--sh-cherry); }      /* the one primary action of a view */
.btn.solid:hover { background: var(--cherry); border-color: transparent; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 36px -10px rgba(255, 75, 62, .9); }
.btn.solid:active { transform: translateY(1px) scale(.98); }
.btn.chrome { background: var(--chrome-soft); -webkit-background-clip: border-box; background-clip: border-box; border-color: rgba(255, 255, 255, .6); color: var(--on-chrome); box-shadow: 0 12px 30px -14px #000; }
.btn.chrome:hover { transform: translateY(-2px); filter: brightness(1.08); background: var(--chrome-soft); }
.btn.black { background: var(--on-red); border-color: transparent; color: var(--platinum); }                           /* primary on a cherry field */
.btn.black:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.btn.onred { border: 2px solid var(--on-red); color: var(--on-red); }                                         /* secondary on a cherry field */
.btn.onred:hover { background: rgba(11, 3, 5, .12); border-color: var(--on-red); }
.btn.danger { color: var(--flare); }
.btn.danger:hover { border-color: var(--flare); background: rgba(255, 75, 62, .1); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13.5px; gap: 6px; }
.btn.big { height: 54px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .42; cursor: default; pointer-events: none; box-shadow: none; }
.btn .ico, .btn img { width: 18px; height: 18px; }

/* round chrome button: steppers, sound, close, menu */
.knob { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--chrome-ball); color: var(--on-chrome); font-weight: 800; font-size: 22px; line-height: 1; box-shadow: var(--sh-knob); cursor: pointer; transition: transform var(--t-press) var(--ease), filter var(--t-press); }
.knob:hover { transform: translateY(-2px); filter: brightness(1.1); }
.knob:active { transform: translateY(1px) scale(.94); }
.knob.small { width: 36px; height: 36px; font-size: 18px; }
.knob:disabled { opacity: .45; pointer-events: none; }
.knob .ico, .knob svg { width: 20px; height: 20px; }

/* ---------- 7. the switch – every feature is one ---------- */
.switch { position: relative; flex: none; display: inline-block; width: 52px; height: 30px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--on-red); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: background-color var(--t-fast); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--chrome-ball); box-shadow: 0 2px 6px rgba(0, 0, 0, .6); filter: brightness(.62); transition: transform var(--t-fast) var(--ease), filter var(--t-fast); }
.switch[aria-checked="true"], .switch.on { background: var(--cherry); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.switch[aria-checked="true"]::after, .switch.on::after { transform: translateX(22px); filter: none; }
.switch.big { width: 76px; height: 42px; }
.switch.big::after { top: 4px; left: 4px; width: 34px; height: 34px; }
.switch.big[aria-checked="true"]::after, .switch.big.on::after { transform: translateX(34px); }
.switch:disabled { opacity: .45; cursor: default; }
.onoff { display: flex; align-items: center; gap: 14px; }

/* ---------- 8. form controls – black glass ---------- */
.label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--steel); }
.help { font-size: 13.5px; color: var(--smoke); }
.err { font-size: 13.5px; font-weight: 600; color: var(--flare); }
.input, select.input, textarea.input {
  width: 100%; min-width: 0; min-height: var(--h-control); padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-field);
  background: var(--glass); color: var(--platinum);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: var(--smoke); opacity: 1; }
.input:hover { border-color: rgba(246, 242, 239, .5); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--blush); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 1px var(--blush); }
.input[aria-invalid="true"] { border-color: var(--flare); }
.input:disabled { opacity: .5; }
.input.short { flex: none; width: 96px; }
textarea.input { min-height: 104px; line-height: 1.45; resize: vertical; }
select.input { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
select.input option { background: var(--glass); color: var(--platinum); }
.search { max-width: 420px; }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1) brightness(2); cursor: pointer; }

input[type="checkbox"]:not(.switch), input[type="radio"] { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--glass) center / 14px no-repeat; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7); vertical-align: -5px; cursor: pointer; transition: background-color var(--t-press), border-color var(--t-press); }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:not(.switch):checked { border-color: transparent; background-color: var(--cherry); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type="radio"]:checked { border-color: var(--cherry); background-image: radial-gradient(circle, var(--cherry) 0 5px, transparent 5.6px); background-size: 100%; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--body); cursor: pointer; }

input[type="range"] { appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; --fill: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--cherry) var(--fill), #1c0a0d var(--fill)); box-shadow: inset 0 1px 3px #000; }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: #1c0a0d; box-shadow: inset 0 1px 3px #000; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--cherry); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -7px; border: 0; border-radius: 50%; background: var(--chrome-ball); box-shadow: var(--sh-knob); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--chrome-ball); box-shadow: var(--sh-knob); }

input[type="color"] { appearance: none; flex: none; width: var(--h-control); height: var(--h-control); padding: 3px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--glass); cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 8px; }

/* ---------- 9. small parts ---------- */
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--smoke); }
.dot.ok { background: var(--platinum); box-shadow: 0 0 0 3px rgba(246, 242, 239, .16); }
.dot.warn { background: var(--blush); box-shadow: 0 0 0 3px rgba(255, 201, 191, .2); }
.dot.bad { background: var(--flare); box-shadow: 0 0 0 3px rgba(255, 75, 62, .25); }
.dot.live { animation: vy-pulse 2.4s var(--ease-in-out) infinite; }

.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 13px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--fs-label); font-weight: 600; color: var(--steel); white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); }
.badge.cherry { background: var(--cherry); box-shadow: none; color: #fff; font-weight: 700; }
.badge.coin { box-shadow: inset 0 0 0 1px rgba(243, 200, 146, .45); font-size: 15px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--platinum); white-space: nowrap; }
.tag.bad { box-shadow: inset 0 0 0 1px var(--flare); color: var(--flare); background: transparent; }
.tag.dim { color: var(--smoke); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--glass); font-size: 14px; font-weight: 600; color: var(--platinum); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.chip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--steel); }
.chip button:hover { background: var(--oxblood); color: var(--platinum); }

/* filter pills: .cloud / .filters with buttons; the active one carries .on or aria-pressed="true" */
.cloud, .filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud span, .cloud button, .filters button { height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: rgba(8, 2, 3, .6); box-shadow: inset 0 0 0 1px var(--line); font: 600 13.5px/34px var(--font); font-stretch: var(--w-ui); color: var(--steel); white-space: nowrap; transition: color var(--t-fast), box-shadow var(--t-fast), transform var(--t-press) var(--ease); }
.cloud button:hover, .filters button:hover { color: var(--platinum); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cloud button:active, .filters button:active { transform: scale(.96); }
.cloud .on, .filters .on, .cloud [aria-pressed="true"], .filters [aria-pressed="true"] { background: var(--chrome-soft); color: var(--on-chrome); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.cloud .on:hover, .filters .on:hover, .cloud [aria-pressed="true"]:hover, .filters [aria-pressed="true"]:hover { color: var(--on-chrome); }

/* tabs: one row, scrolls sideways on phones, selected = chrome */
.tabs { display: flex; gap: 6px; padding: 6px 2px 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: rgba(8, 2, 3, .6); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15px; font-stretch: 112%; color: var(--steel); white-space: nowrap; cursor: pointer; transition: color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), transform var(--t-press) var(--ease); }
.tab:hover { color: var(--platinum); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { background: var(--chrome-soft); color: var(--on-chrome); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 8px 22px -10px rgba(229, 18, 46, .9); }

/* progress */
.bar { height: 10px; border-radius: var(--r-pill); background: #1c0a0d; box-shadow: inset 0 1px 3px #000; overflow: hidden; }
.bar > i { display: block; width: var(--v, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cherry), var(--flare)); transition: width var(--t-slow) var(--ease); }

/* ---------- 10. surfaces ---------- */
.panel { padding: var(--s-5); border-radius: var(--r-panel); background: var(--glass); color: var(--body); box-shadow: var(--sh-glass); }        /* black glass */
.panel.window { background: #070203; box-shadow: var(--sh-window); }                                                        /* recessed display */
.slab { padding: clamp(22px, 3vw, 44px); border-radius: var(--r-slab); background: var(--oxblood); }                         /* quiet raised slab */
.slab.velvet { background: var(--velvet-field); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.slab.cherry { --focus: #fff; background: var(--cherry-field); color: var(--on-red); }                                             /* the one red field of a screen */
.slab.cherry :where(h1, h2, h3) { color: var(--on-red); }
.slab.cherry .switch[aria-checked="true"], .slab.cherry .switch.on { background: var(--on-red); }
.slab.cherry .panel { --focus: var(--blush); }
.slab.cherry .panel :where(h1, h2, h3) { color: var(--platinum); }
.lacquer { --focus: #fff; border: 3px solid transparent; background: var(--lacquer) padding-box, var(--chrome-band) border-box; box-shadow: var(--sh-object), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .35); } /* cabinet body: red lacquer, chrome rim */
.chrome-rim { border: 2px solid transparent; background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--chrome-band) border-box; }                                                                                    /* black part with a chrome bezel */
.curtain { background: radial-gradient(60% 46% at 50% 30%, rgba(170, 12, 34, .5) 0%, rgba(90, 6, 18, .2) 50%, transparent 78%), linear-gradient(90deg, rgba(6, 2, 3, 0) 0%, var(--pitch) 26%, var(--pitch) 74%, rgba(6, 2, 3, 0) 100%), linear-gradient(180deg, rgba(6, 2, 3, .25) 0%, rgba(6, 2, 3, .7) 62%, var(--pitch) 78%), var(--curtain); }

/* menu: black panel, cherry row = current choice (selects, role pickers, right-click look) */
.menu { display: grid; gap: 2px; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--glass); box-shadow: var(--sh-pop); }
.menu > :where(a, button, li) { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; font-size: 14.5px; font-weight: 500; color: var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.menu > :where(a, button, li):hover { background: var(--oxblood); color: var(--platinum); }
.menu > .on, .menu > [aria-selected="true"], .menu > [aria-current] { background: var(--cherry); color: #fff; font-weight: 700; }

/* dialog */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); display: grid; place-items: center; padding: 16px; background: rgba(6, 2, 3, .82); overflow-y: auto; }
.modal { position: relative; z-index: var(--z-modal); width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-slab); background: var(--glass); box-shadow: var(--sh-pop); }
.modal > .knob:first-child { position: absolute; top: 14px; right: 14px; }

/* ---------- 11. tables: hairlines, no boxes, no zebra ---------- */
.data-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th { padding: 0 10px 8px 0; font-size: var(--fs-label); font-weight: 600; color: var(--smoke); text-align: left; white-space: nowrap; }
.data td { padding: 12px 10px 12px 0; border-top: 1px solid var(--line); color: var(--body); vertical-align: middle; }
.data tbody tr:hover td { background: var(--oxblood); }
.data :where(th, td).n { text-align: right; padding-right: 0; padding-left: 10px; }
.data td.n { font-stretch: var(--w-num); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--platinum); }
.data td.n.coin { color: var(--champagne); }

/* ---------- 12. counters ---------- */
/* row of figures: big condensed numeral, one line of label */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 var(--s-5); border-bottom: 1px solid var(--line); }
.figures div { padding: 22px 0; min-width: 0; }
.figures b { display: block; font-stretch: var(--w-num); font-weight: 800; font-size: clamp(44px, 5vw, 64px); line-height: .9; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--platinum); }
.figures span { display: block; margin-top: 8px; font-size: 14px; color: var(--steel); }
.stat { font-stretch: var(--w-num); font-weight: 900; font-size: var(--fs-stat); line-height: .8; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--platinum); }

/* odometer / split-flap counter. Markup: <span class="odo" role="img" aria-label="1,284,934"><i data-d="1"></i><span>,</span><i data-d="2"></i>…</span>
   JS only changes data-d (0–9); the drum rolls by itself. Font size sets the size of the whole counter. */
.odo { display: inline-flex; align-items: center; gap: .07em; font-stretch: var(--w-num); font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--champagne); vertical-align: middle; }
.odo > i { position: relative; display: block; width: .68em; height: 1.24em; overflow: hidden; border-radius: .14em; background: #070203; box-shadow: inset 0 0 0 1px rgba(243, 200, 146, .22), inset 0 .12em .2em #000; font-style: normal; text-align: center; --d: 0; }
.odo > i::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; display: block; white-space: pre; line-height: 1.24; transform: translateY(calc(var(--d) * -10%)); transition: transform var(--t-slow) var(--ease-in-out); }
.odo > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 49%, rgba(0, 0, 0, .7) 49.5%, rgba(255, 255, 255, .1) 52%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .6) 100%); pointer-events: none; }
.odo > span { width: .2em; text-align: center; color: var(--champagne); }
.odo [data-d="1"] { --d: 1; } .odo [data-d="2"] { --d: 2; } .odo [data-d="3"] { --d: 3; } .odo [data-d="4"] { --d: 4; } .odo [data-d="5"] { --d: 5; }
.odo [data-d="6"] { --d: 6; } .odo [data-d="7"] { --d: 7; } .odo [data-d="8"] { --d: 8; } .odo [data-d="9"] { --d: 9; }
.odo.plain { color: var(--platinum); }
.odo.plain > i { box-shadow: inset 0 0 0 1px var(--line), inset 0 .12em .2em #000; }

/* material type – placed after every rule that sets a text colour so the clip always wins.
   chrome type: silver on top, dark horizon, cherry below. Max. one per screen. Champagne: coins only. */
.chrome, .chrome-text { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coin.shine, .champagne-text { background: var(--champagne-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* marquee bulbs: a strip of small lamps that alternate. Put it along the top edge of a sign or cabinet. */
.bulbs { position: relative; display: block; height: 10px; --pitch-x: 30px; }
.bulbs::before, .bulbs::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #fff 0 2.2px, var(--blush) 3px, rgba(255, 201, 191, 0) 4.6px) 0 0 / var(--pitch-x) 10px space no-repeat; animation: vy-lamps var(--loop-lamps) ease-in-out infinite alternate; }
.bulbs::after { inset-inline: calc(var(--pitch-x) / 2); animation-direction: alternate-reverse; }
.bulbs.big { height: 16px; --pitch-x: 40px; }
.bulbs.big::before, .bulbs.big::after { background-image: radial-gradient(circle, #fff 0 3.4px, #ffe9c9 4.6px, rgba(243, 200, 146, .55) 6px, rgba(243, 200, 146, 0) 7.6px); background-size: var(--pitch-x) 16px; }
@keyframes vy-lamps { from { opacity: .18; } to { opacity: 1; } }
@keyframes vy-sweep { to { transform: rotate(360deg); } }
@keyframes vy-pulse { 50% { box-shadow: 0 0 0 7px rgba(246, 242, 239, 0); } }

/* ---------- 13. toast ---------- */
#toast { position: fixed; top: 18px; left: 50%; z-index: var(--z-toast); max-width: min(92vw, 640px); padding: 11px 22px; border-radius: var(--r-pill); background: var(--chrome-soft); color: var(--on-chrome); font-weight: 700; font-size: 15px; line-height: 1.3; text-align: center; box-shadow: 0 18px 40px -14px #000; transform: translate(-50%, -90px); transition: transform var(--t-med) var(--ease); }
#toast.show { transform: translate(-50%, 0); }
#toast.bad { background: var(--glass); color: var(--platinum); box-shadow: inset 0 0 0 1.5px var(--flare), 0 18px 40px -14px #000; }
#toast.bad::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--flare); vertical-align: 1px; }

/* ---------- 14. phone ---------- */
@media (max-width: 760px) {
  :root { --nav-h: 68px; --fs-body: 16px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-head p { font-size: 17px; }
  .tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tab { height: 42px; padding: 0 16px; font-size: 14.5px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .btn.big { flex: 1 1 100%; }
  #toast { top: 12px; border-radius: 18px; }
}

/* ---------- 15. reduced motion: nothing moves by itself, state changes are instant ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .bulbs::before { animation: none; opacity: 1; }
  .bulbs::after { animation: none; opacity: .3; }
  .dot.live { animation: none; }
}

/* ==========================================================================
   16. LEGACY – accidental name sharing from the old single stylesheet.
   Kept verbatim (order matters) so areas that are not rebuilt yet keep working.
   Builders: scope your own (.casino .stage, .arcade .stage, …) and stop relying on these.
   This block is deleted when all four areas are done.
   ========================================================================== */
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
@keyframes pop { 50% { transform: scale(1.1); } }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.stage { min-height: 340px; display: grid; place-items: center; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; perspective: 900px; }
.controls { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@media (max-width: 900px) { .stage { min-height: 300px; } }
.stage { position: relative; }
.strip { display: flex; flex-direction: column; will-change: transform; }
