/* Casinhood - the house style.
   Charter: the founder's X banner. Deep black, marquee red, gold bulbs, a cyan contour, and real
   materials (walnut, brass, green baize). The honest numbers live ON those materials - brass
   plaques, cream table cards, felt panels - never in a grey dashboard. */

/* The page IS the dark theme. Declaring the scheme stops Chrome's force-dark / auto-dark from
   inverting the cream table cards and the brass plaques into grey mush. */
:root {
  color-scheme: dark;
  --black: #05090d;
  --black-2: #0a1016;
  --red: #bd171e;
  --red-hi: #e0242c;
  --gold: #ffc65a;
  --cyan: #32dce8;
  --baize: #103d30;
  
  --wood: #48271c;
  --brass: #b58a49;
  --brass-hi: #d4b574;
  --cream: #f5ecd8;
  --muted: #c2b8a5;
  --line: #514638;
  --radius: 10px;
  --maxw: 1240px;
  --pad: 24px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: Bungee, Oswald, var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(19px, 2.2vw, 26px); }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
b, strong { font-weight: 700; }
em { font-style: normal; color: var(--gold); }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { color: var(--gold); background: rgba(255, 198, 90, .1); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
img { max-width: 100%; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; background: var(--black-2); border: 1px solid var(--brass); padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- the sign */

.brand-marquee { display: block; overflow: visible; }
/* The bulb positions are sampled from THIS exact font at THIS exact size: if the SVG text ever
   renders at another size, the letters and the bulbs drift apart. */
.brand-marquee text { font: 700 150px Oswald, "Arial Narrow", Impact, sans-serif; }
.brand-marquee .m-back text { fill: #05090d; stroke: #05090d; stroke-width: 16; stroke-linejoin: round; }
.brand-marquee .m-letter text { fill: url(#enamel); stroke: #7a1016; stroke-width: 1.5; paint-order: stroke; }
.brand-marquee .m-cyan text { fill: none; stroke: var(--cyan); stroke-width: 8; stroke-linejoin: round; }
.brand-marquee .m-cyanglow text { fill: none; stroke: var(--cyan); stroke-width: 13; filter: url(#neonBlur); opacity: .55; }
.brand-marquee .m-halo circle { fill: url(#bulbG); opacity: .62; animation: bulb-breathe 14s ease-in-out infinite; }
.brand-marquee .m-core circle { fill: #fff3cd; }
@keyframes bulb-breathe { 0%, 100% { opacity: .5; } 50% { opacity: .78; } }
.brand-marquee.mini { width: clamp(132px, 19vw, 210px); height: auto; }
/* At header size the bulbs would turn to mush: the small sign keeps the enamel and the contour. */
.brand-marquee.mini .m-halo, .brand-marquee.mini .m-core { display: none; }
.brand-marquee.mini .m-cyanglow { display: none; }
.brand-marquee.big { width: min(100%, 720px); height: auto; margin: 0 auto 6px; }

/* ---------------------------------------------------------------- chrome */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--pad);
  background: linear-gradient(180deg, #0a1016 0%, rgba(5, 9, 13, .96) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(181, 138, 73, .35), 0 10px 30px rgba(0, 0, 0, .5);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.here { font-family: var(--display); font-size: 14px; color: var(--gold); letter-spacing: .04em; }
.here::before { content: "· "; color: var(--brass); }
.desknav { display: flex; gap: 16px; margin-left: auto; font-size: 15px; }
.desknav a { color: var(--muted); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.desknav a:hover { color: var(--cream); }
.desknav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--red); }
.menu-btn { display: none; margin-left: auto; }
.menu[hidden] { display: none; }
.menu {
  position: sticky; top: 61px; z-index: 39;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--black-2); border-bottom: 1px solid var(--brass); padding: 10px var(--pad);
}
.menu a { padding: 13px 12px; color: var(--cream); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.menu a[aria-current="page"] { color: var(--gold); border-color: var(--brass); }

.dealer-sign {
  margin: 0; padding: 11px var(--pad);
  background: var(--black-2); color: var(--muted);
  border-bottom: 1px solid var(--line); border-left: 4px solid var(--gold);
  font-size: 14.5px;
}
.dealer-sign b { color: var(--gold); }

/* ---------------------------------------------------------------- buttons, inputs */

.btn {
  font: 700 15px/1 var(--sans); letter-spacing: .01em;
  padding: 12px 18px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #121a20; color: var(--cream);
  transition: transform .1s ease, border-color .15s ease, background .15s ease;
  min-height: 44px;
}
.btn:hover:not(:disabled) { border-color: var(--brass); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.gold {
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: #1a1206; border-color: #e3ca92; font-weight: 700;
}
.btn.gold:hover:not(:disabled) { background: linear-gradient(180deg, #e6cd96, #c39a56); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.linkish { background: none; border: 0; color: var(--gold); font: 400 13px var(--sans); cursor: pointer; text-decoration: underline; padding: 4px; }

input[type="text"], input:not([type]), input[inputmode] {
  font: 400 16px/1 var(--mono); color: var(--cream);
  background: #0d141a; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; width: 100%; min-height: 44px;
}
input:disabled { opacity: .5; }
input::placeholder { color: #7e7361; }
input[type="range"] { accent-color: var(--gold); width: 100%; min-height: 44px; background: none; border: 0; padding: 0; }

.pill {
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--brass); border-radius: 999px; padding: 5px 9px;
  vertical-align: middle; margin-left: 6px; white-space: nowrap;
}

/* ---------------------------------------------------------------- rooms and surfaces */

main { display: block; }
.room { max-width: var(--maxw); margin: 0 auto; padding: 34px var(--pad); }
.room.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.room-title { font-size: clamp(18px, 2vw, 24px); color: var(--gold); margin-bottom: 16px; }

/* brass plaque */
.plaque {
  background: linear-gradient(135deg, var(--brass-hi), var(--brass) 55%, #9d7739);
  color: #17110a; border: 1px solid #e3ca92; border-radius: 6px; padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 26px rgba(0, 0, 0, .5);
}
.plaque h2 { color: #1a1206; }
.plaque a, .plaque code { color: #3b2a05; background: rgba(0, 0, 0, .08); }
.plaque .fine {  }
.plaque .fine, .plaque-figs dt { color: #40320f; }
.plaque-figs { display: grid; gap: 8px; margin: 0 0 12px; }
.plaque-figs div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(0, 0, 0, .18); padding-bottom: 7px; }
.plaque-figs dt { font-size: 15px; }
.plaque-figs dd { margin: 0; font-family: var(--mono); font-size: 14px; text-align: right; }

/* cream table card */
.card-table {
  background: var(--cream); color: #17110a; border: 1px solid var(--brass); border-radius: 4px;
  padding: 22px; box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
}
.card-table h2 { color: #1a1206; }
.card-table a { color: #8a5a10; }
.card-table code { color: #6d4a08; background: rgba(0, 0, 0, .07); }
.card-table .fine { color: #4a4034; }

/* green felt panel */
.felt {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .05), transparent 60%),
    var(--baize);
  color: var(--cream); border: 1px solid var(--brass); border-radius: 12px; padding: 22px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .45), 0 10px 26px rgba(0, 0, 0, .5);
}
.felt h2 { color: var(--gold); }

.fine { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 10px 0 0; }
.card-table .fine, .plaque .fine { font-size: 13.5px; }

/* tables of figures */
.figs { width: 100%; border-collapse: collapse; font-size: 15px; }
.figs th { text-align: left; font-weight: 400; padding: 8px 0; vertical-align: top; }
.figs td { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; padding: 8px 0 8px 10px; }
.figs tbody tr + tr th, .figs tbody tr + tr td { border-top: 1px solid rgba(0, 0, 0, .14); }
.felt .figs tbody tr + tr th, .felt .figs tbody tr + tr td,
.doc .figs tbody tr + tr th, .doc .figs tbody tr + tr td { border-top-color: var(--line); }
.figs thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 10px; }
.figs thead th + th { text-align: right; }
.figs.addr td { font-size: 12px; word-break: break-all; }
.figs td.no { color: #9a1d22; }
.doc .figs td.no { color: #ff8a80; }

.ticks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--gold); }
.ticks.bad li::before { background: var(--red); }

.row { display: flex; gap: 10px; margin-top: 12px; }
.row.split { align-items: center; justify-content: space-between; font-size: 14px; flex-wrap: wrap; }

.split-bar { display: flex; height: 34px; border-radius: 6px; overflow: hidden; margin: 6px 0 16px; font: 700 13px/34px var(--mono); text-align: center; }
.s-dev { background: var(--red); color: #fff0ee; width: 20%; }
.s-stk { background: var(--gold); color: #24190a; width: 40%; }
.s-bank { background: var(--baize); color: var(--cream); width: 40%; }
.split-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.split-legend li { position: relative; padding-left: 22px; font-size: 15px; }
.split-legend i { position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; }
.split-legend i.s-dev { background: var(--red); }
.split-legend i.s-stk { background: var(--gold); }
.split-legend i.s-bank { background: var(--baize); border: 1px solid var(--brass); }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; font-size: 16px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--brass); background: #0d141a; color: var(--gold);
  font: 500 14px/29px var(--mono); text-align: center;
}
.steps.tight li { font-size: 15px; }

.verify {
  font: 400 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word;
  background: #0d141a; color: var(--muted); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; margin: 12px 0 0; max-height: 320px; overflow: auto;
}

.receipts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 13px; }
.receipts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .14); }
.receipts li.empty { color: #6f6455; justify-content: flex-start; border: 0; }
.receipts .won { color: #1c6b3a; font-weight: 600; }
.receipts .lost { color: #9a1d22; }

/* ---------------------------------------------------------------- home */

.entrance { position: relative; padding: 44px var(--pad) 40px; text-align: center; overflow: hidden; }
.entrance-art {
  position: absolute; inset: 0;
  background: #05090d center/cover no-repeat;
  background-image: image-set(url('/assets/floor.webp?v=10') type('image/webp'), url('/assets/floor.jpg?v=10') type('image/jpeg'));
  opacity: .55;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 45%, rgba(0,0,0,.25));
}
.entrance::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 60% at 50% 22%, rgba(5, 9, 13, .2), rgba(5, 9, 13, .92) 75%);
}
.entrance-sign { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.tagline { color: var(--muted); font-size: 17px; margin: 14px auto 18px; max-width: 60ch; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.table-card {
  display: grid; text-decoration: none; color: var(--cream);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--black-2);
  transition: border-color .15s ease, transform .15s ease;
}
.table-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.table-art { display: block; height: 160px; background: #0d141a center/cover no-repeat; border-bottom: 1px solid var(--line); }
.t-roulette .table-art { background-image: image-set(url('/assets/wheeltop.webp?v=10') type('image/webp'), url('/assets/wheeltop.jpg?v=10') type('image/jpeg')); }
.t-coin .table-art { background-image: image-set(url('/assets/coin.webp?v=10') type('image/webp'), url('/assets/coin.jpg?v=10') type('image/jpeg')); }
.t-dice .table-art { background-image: image-set(url('/assets/dice.webp?v=10') type('image/webp'), url('/assets/dice.jpg?v=10') type('image/jpeg')); }
.table-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.table-body b { font-family: var(--display); font-size: 18px; color: var(--gold); font-weight: 400; }
.table-body .odds { font-size: 13px; color: var(--muted); }
.table-body .loss { font-size: 13px; color: var(--cream); }

.wayfind { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wayfind a {
  display: grid; gap: 4px; padding: 18px; text-decoration: none; color: var(--cream);
  background: #0d141a; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 8px;
}
.wayfind a:hover { border-color: var(--brass); border-left-color: var(--gold); }
.wayfind b { font-family: var(--display); font-weight: 400; color: var(--gold); font-size: 16px; }
.wayfind span { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- page heads */

.table-head { position: relative; padding: 34px var(--pad) 26px; border-bottom: 1px solid var(--line); overflow: hidden; }
.table-head::before {
  content: ""; position: absolute; inset: 0; opacity: .38;
  background: #05090d center/cover no-repeat;
}
.table-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,9,13,.95) 30%, rgba(5,9,13,.55)); }
.table-sign { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.table-sign h1 { color: var(--cream); text-shadow: 0 2px 0 #000; }
.loss-line { color: var(--gold); font-size: 14px; margin: 0; }
.h-roulette::before { background-image: image-set(url('/assets/wheeltop.webp?v=10') type('image/webp'), url('/assets/wheeltop.jpg?v=10') type('image/jpeg')); background-position: right center; }
.h-coin::before { background-image: image-set(url('/assets/coin.webp?v=10') type('image/webp'), url('/assets/coin.jpg?v=10') type('image/jpeg')); background-position: right center; }
.h-dice::before { background-image: image-set(url('/assets/dice.webp?v=10') type('image/webp'), url('/assets/dice.jpg?v=10') type('image/jpeg')); background-position: right center; }
.h-cage::before { background-image: image-set(url('/assets/cage.webp?v=10') type('image/webp'), url('/assets/cage.jpg?v=10') type('image/jpeg')); background-position: right 30%; }
.h-fair::before, .h-docs::before, .h-risks::before { background-image: image-set(url('/assets/floor.webp?v=10') type('image/webp'), url('/assets/floor.jpg?v=10') type('image/jpeg')); background-position: center 40%; }

/* ---------------------------------------------------------------- tables: roulette */

.roulette-room { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 26px; align-items: start; max-width: var(--maxw); margin: 0 auto; }
.wheel-stage { display: grid; gap: 12px; }
.wheel { width: 100%; aspect-ratio: 1; display: block; }

.history-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 28px; }
.history-row .fine { margin: 0; white-space: nowrap; }
.history { display: flex; gap: 5px; overflow: hidden; }
.history .h { font: 500 12px/24px var(--mono); width: 26px; height: 26px; text-align: center; border-radius: 4px; background: #17181c; border: 1px solid var(--line); }
.history .h.red { background: var(--red); border-color: #7d0d13; }
.history .h.green { background: #0f7a4a; border-color: #0a5133; }

.layout-wrap { min-width: 0; }
.layout {
  position: relative; width: 100%; aspect-ratio: 14 / 5;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.05), transparent 60%), var(--baize);
  border: 2px solid var(--brass); border-radius: 6px;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  box-shadow: inset 0 0 60px rgba(0,0,0,.5);
}
.layout.vertical { aspect-ratio: 5 / 14; max-width: 420px; margin: 0 auto; }
.layout .cell {
  position: absolute; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid rgba(245, 236, 216, .55);
  color: var(--cream); font: 600 clamp(12px, 1.5vw, 18px) Oswald, var(--sans);
  transition: background .15s ease;
}
.layout .cell.red span, .layout .cell.black span { display: grid; place-items: center; width: 74%; aspect-ratio: 1; max-width: 40px; border-radius: 50%; }
.layout .cell.red span { background: var(--red); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }
.layout .cell.black span { background: #12131a; box-shadow: inset 0 -2px 0 rgba(255,255,255,.08); }
.layout .cell.green { background: rgba(15, 122, 74, .55); }
.layout .cell.out span { font-size: clamp(10px, 1.2vw, 14px); letter-spacing: .05em; text-transform: uppercase; }
.layout .cell:hover, .layout .cell.lit { background: rgba(255, 198, 90, .2); }
.layout .cell.winner { animation: winner 1.8s ease-out 1; }
@keyframes winner { 0%, 60% { background: rgba(255, 198, 90, .5); box-shadow: inset 0 0 0 3px var(--gold); } 100% { background: transparent; } }
.layout .diamond { width: 36%; max-width: 44px; aspect-ratio: 1.6; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.layout .diamond.red { background: var(--red); }
.layout .diamond.black { background: #12131a; outline: 1px solid rgba(245,236,216,.6); }
.layout .hot { position: absolute; z-index: 2; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.layout .hot:hover { background: rgba(50, 220, 232, .35); }
.layout.vertical .cell.out span { writing-mode: vertical-rl; transform: rotate(180deg); }
.chip-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

.chip {
  --c: #f1ece2; --e: #32dce8; --t: #17110a;
  width: 46px; height: 46px; min-width: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font: 700 12px Oswald, var(--sans); color: var(--t);
  background:
    radial-gradient(circle, var(--c) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--e) 0 15deg, var(--c) 15deg 45deg);
  border: 2px solid rgba(0, 0, 0, .45);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(255, 255, 255, .14);
}
.chip[data-tier="white"] { --c: #f1ece2; --e: #32dce8; }
.chip[data-tier="red"] { --c: #bd171e; --e: #f5ecd8; --t: #fff; }
.chip[data-tier="black"] { --c: #16171d; --e: #ffc65a; --t: #fff; }
.chip[data-tier="cyan"] { --c: #0f7f92; --e: #f5ecd8; --t: #fff; }
.chip[data-tier="gold"] { --c: #c8992f; --e: #1a1206; --t: #1a1206; }
.chip.on-felt { position: absolute; width: clamp(24px, 3vw, 32px); height: clamp(24px, 3vw, 32px); min-width: 0; font-size: clamp(9px, .9vw, 11px); transform: translate(-50%, -50%); }

.chip-rail {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0;
  background: linear-gradient(180deg, #5a3122, var(--wood)); border-block: 2px solid var(--brass);
  padding: 10px 12px; border-radius: 12px;
}
.chip-rail .chip { transition: transform .12s ease; }
.chip-rail .chip.on { transform: translateY(-6px); box-shadow: 0 9px 0 rgba(0,0,0,.5), 0 0 0 3px var(--gold); }

.bet-bar { display: grid; gap: 12px; padding: 14px; border-radius: 10px; background: #0d141a; border: 1px solid var(--line); }
.bet-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bet-figs div { display: grid; }
.bet-figs span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bet-figs b { font: 500 17px var(--mono); color: var(--gold); }
.bet-figs b.warn { color: #ff8a80; }
.bet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bet-actions .spin { margin-left: auto; min-width: 120px; }

.rail { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin: 6px 0 4px; font-size: 13.5px; color: var(--muted); }
.rail-credits { display: flex; align-items: baseline; gap: 8px; }
.rail-credits b { font: 500 18px var(--mono); color: var(--cream); }
.rail-limit b { color: var(--cream); }

.result { min-height: 26px; font-size: 16px; color: var(--muted); margin: 0; }
.result.show { padding: 12px 14px; border-radius: 8px; background: #0d141a; border: 1px solid var(--line); }
.result.win { border-color: var(--gold); }
.result b { color: var(--gold); }
.result small { color: var(--muted); font-family: var(--mono); font-size: 12px; margin-left: 6px; }
.result .tag { display: inline-block; font: 700 11px Oswald, var(--sans); letter-spacing: .18em; padding: 2px 7px; border-radius: 3px; background: var(--gold); color: #1a1206; margin-right: 6px; }
.result .pocket { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 700 15px Oswald, var(--sans); margin-right: 4px; background: #16171d; color: var(--cream); }
.result .pocket.red { background: var(--red); }
.result .pocket.green { background: #0f7a4a; }

/* ---------------------------------------------------------------- coin, dice */

.game-room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 26px; align-items: start; max-width: var(--maxw); margin: 0 auto; }
.coin-stage, .dice-stage { display: grid; gap: 18px; justify-items: center; padding: 20px; background: radial-gradient(70% 70% at 50% 40%, rgba(255,198,90,.12), transparent 70%); }
.coin { width: 190px; height: 190px; position: relative; transform-style: preserve-3d; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.coin .face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  font: 400 62px var(--display); backface-visibility: hidden;
  border: 7px solid #8a6a2a;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #c8992f 55%, #7d5c18);
  color: #3a2708;
}
.coin .tails { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #f7f2e4, #b9ad92 55%, #6c6250); }
.controls-felt { display: grid; gap: 14px; align-content: start; }
.seg { display: inline-flex; border: 1px solid var(--brass); border-radius: 8px; overflow: hidden; width: max-content; }
.seg button { font: 700 15px var(--sans); padding: 12px 22px; background: transparent; color: var(--muted); border: 0; cursor: pointer; min-height: 44px; }
.seg button.on { background: var(--gold); color: #1a1206; }
.amt { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.amt input { max-width: 150px; }
.amt .unit { color: var(--muted); font-family: var(--mono); }
.mini-figs { display: grid; gap: 8px; margin: 0; }
.mini-figs div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(245,236,216,.14); padding-bottom: 7px; }
.mini-figs dt { color: var(--muted); font-size: 14.5px; }
.mini-figs dd { margin: 0; font-size: 14.5px; }
.slider-label { font-size: 15px; }
.slider-label b { color: var(--gold); }

.dice-roll { font: 500 clamp(40px, 8vw, 64px) var(--mono); color: var(--gold); }
.dice-track { position: relative; width: min(100%, 420px); height: 14px; border-radius: 999px; background: #0d141a; border: 1px solid var(--line); overflow: hidden; }
.dice-win { position: absolute; inset: 0; background: linear-gradient(90deg, #0f7a4a, #16a566); transform-origin: left; }
.dice-mark { position: absolute; top: -4px; width: 4px; height: 22px; border-radius: 2px; background: var(--cream); transition: left .25s ease; }
.dice-mark.won { background: var(--gold); }

/* ---------------------------------------------------------------- docs */

.docs-room { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; max-width: var(--maxw); margin: 0 auto; }
.toc { position: sticky; top: 86px; align-self: start; display: grid; gap: 6px; padding: 16px; background: #0d141a; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.toc b { font-family: var(--display); font-weight: 400; color: var(--gold); font-size: 14px; letter-spacing: .06em; margin-bottom: 4px; }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--cream); }
.doc h2 { color: var(--gold); margin-top: 30px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc p { max-width: 68ch; }
.doc .figs { margin-bottom: 8px; }
.wide { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- foot, toast */

.foot { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--pad) 46px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 24px);
  background: #0d141a; border: 1px solid var(--brass); border-radius: 8px;
  padding: 13px 16px; font-size: 15px; max-width: min(92vw, 460px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 50;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--red); color: #ffb4b0; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .room.two { grid-template-columns: minmax(0, 1fr); }
  .roulette-room, .game-room { grid-template-columns: minmax(0, 1fr); }
  .wheel-stage { max-width: 420px; margin: 0 auto; width: 100%; }
  .docs-room { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .tables { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .wayfind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .desknav { display: none; }
  .menu-btn { display: inline-flex; }
  .here { margin-left: auto; }
}

@media (max-width: 720px) {
  :root { --pad: 16px; }
  body { font-size: 16px; }
  .topbar { gap: 8px; padding: 8px var(--pad); }
  .topbar > * { min-width: 0; }
  .hide-sm { display: none; }
  .brand-marquee.mini { width: clamp(104px, 26vw, 150px); }
  .topbar .btn { padding: 10px 12px; font-size: 14px; }
  .here { font-size: 13px; }
  .menu { grid-template-columns: 1fr 1fr; top: 57px; }
  .entrance { padding-top: 26px; }
  .table-head { padding-top: 22px; }
  .table-head::before { opacity: .3; }
  .bet-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bet-actions .spin { margin-left: 0; width: 100%; }
  .coin { width: 150px; height: 150px; }
  .coin .face { font-size: 48px; }
  .figs { font-size: 14px; }
  .figs.addr td { font-size: 11px; }
  .wayfind { grid-template-columns: minmax(0, 1fr); }
  .layout { --cell: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
