/* Dice Dome — shared shell, lobby, cards and table components.
   Layout: one dark casino floor; a sticky header with wallet; each game is a "table" on felt with a wood rail. */
:root {
  color-scheme: dark;
  --floor: #0a120e;
  --floor-2: #101a15;
  --ink: #f4f1e8;
  --muted: #9bb3a6;
  --gold: #f2c94c;
  --gold-deep: #b8901c;
  --red: #e5484d;
  --green: #3ccf7a;
  --felt: #0d5a3a;
  --felt-hi: #11704a;
  --felt-lo: #0a4a30;
  --rail: #3b2414;
  --line: rgba(255, 255, 255, 0.85);
  --card: #fbfaf6;
  --card-ink: #16161a;
  --card-red: #c0182b;
  --font-display: "Limelight", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}
[hidden] { display: none !important; }
html, body { background: var(--floor); color: var(--ink); }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- site header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: #050a07; border-bottom: 1px solid #1f3328; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 22px; letter-spacing: .04em; }
.logo-mark { font-family: var(--font-body); font-weight: 900; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1a1200; font-size: 13px; letter-spacing: 0; border: 3px dashed rgba(0,0,0,.35); }
.games { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.games a { color: var(--muted); text-decoration: none; padding: 6px 11px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.games a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.games a.on { color: #1a1200; background: var(--gold); }
.wallet { display: flex; align-items: center; gap: 16px; }
.wv { display: flex; flex-direction: column; }
.wv span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wv b { font-size: 18px; font-variant-numeric: tabular-nums; }
.wv b.pos { color: var(--green); } .wv b.neg { color: var(--red); }
.topup { background: transparent; border: 1px solid var(--gold-deep); color: var(--gold); border-radius: 6px; padding: 6px 10px; font-weight: 700; }
.topup:hover { background: rgba(242,201,76,.12); }

.site-footer { max-width: 1100px; margin: 30px auto 0; padding: 18px 16px 30px; color: var(--muted); font-size: 12px; text-align: center; border-top: 1px solid #1a2b23; }
.site-footer p { margin: 4px 0; }

/* ---------- lobby ---------- */
.lobby { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.lobby-hero { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.lobby-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 6vw, 56px); margin: 0; line-height: 1; color: var(--gold); text-wrap: balance; }
.lobby-hero p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.edge-note { font-size: 12px; color: var(--muted); max-width: 34ch; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--floor-2); border: 1px solid #22372c; border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--gold-deep); }
.tile .art { height: 150px; position: relative; display: grid; place-items: center; overflow: hidden; }
.tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile h2 { margin: 0; font-size: 19px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tile h2 small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.tile p { margin: 0; color: var(--muted); font-size: 13px; }
.tile .stats { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.tile .stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.art.felt-art { background: radial-gradient(ellipse at 50% 35%, var(--felt-hi), var(--felt) 60%, var(--felt-lo)); }
.art.red-art { background: radial-gradient(ellipse at 50% 35%, #8e1f2c, #6a1420 60%, #4a0d16); }
.art.blue-art { background: linear-gradient(#0b1f6b, #08154a); }
.art.slot-art { background: linear-gradient(#2a0b3d, #14051f); }
.mini-die { width: 46px; height: 46px; border-radius: 9px; background: #fff; display: inline-grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 6px; margin: 0 6px; box-shadow: 0 6px 12px rgba(0,0,0,.5); }
.mini-die i { width: 8px; height: 8px; border-radius: 50%; background: #b0121b; place-self: center; }
.art .fan, .art .dice { display: flex; }
.art .fan .card { margin-left: -26px; box-shadow: 0 6px 12px rgba(0,0,0,.5); }
.art .fan .card:first-child { margin-left: 0; }
.art .wheel-art { width: 120px; height: 120px; border-radius: 50%; background: repeating-conic-gradient(#c0182b 0 9.73deg, #111 9.73deg 19.46deg); border: 8px solid #5a3a1c; box-shadow: 0 8px 18px rgba(0,0,0,.6), inset 0 0 0 26px rgba(0,0,0,.25); position: relative; }
.art .wheel-art::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: radial-gradient(#d9b25a, #7a5a1c); }
.art .reel-art { display: flex; gap: 6px; padding: 10px; background: #0d0614; border-radius: 10px; border: 3px solid var(--gold-deep); }
.art .reel-art span { width: 50px; height: 64px; background: #fff; border-radius: 6px; display: grid; place-items: center; font: 900 30px/1 var(--font-display); color: #c0182b; }

/* ---------- shared game chrome ---------- */
.game { max-width: 1240px; margin: 0 auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.gbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gbar .gtitle { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--gold); letter-spacing: .03em; }
.gbar .rules { color: var(--muted); font-size: 12px; flex: 1; min-width: 200px; }
.gmeters { display: flex; gap: 18px; flex-wrap: wrap; }
.game > *, .gbar > * { min-width: 0; }
.gmeter { display: flex; flex-direction: column; }
.gmeter span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.gmeter b { font-size: 17px; font-variant-numeric: tabular-nums; }
.gmeter b.pos { color: var(--green); } .gmeter b.neg { color: var(--red); }

.table { position: relative; background: radial-gradient(ellipse at 50% 25%, var(--felt-hi), var(--felt) 55%, var(--felt-lo)); border: 12px solid var(--rail); border-radius: 26px; box-shadow: inset 0 0 50px rgba(0,0,0,.45), 0 12px 30px rgba(0,0,0,.55); padding: 20px; }
.table-legend { text-align: center; font-family: var(--font-display); color: rgba(255,255,255,.85); letter-spacing: .12em; font-size: 13px; text-transform: uppercase; }
.table-legend small { display: block; font-family: var(--font-body); letter-spacing: .1em; font-size: 10px; color: rgba(255,255,255,.65); margin-top: 3px; }

.spot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px solid var(--line); cursor: pointer; user-select: none; color: var(--ink); background: transparent; font: inherit; transition: background .15s, box-shadow .2s; }
.spot:hover { background: rgba(255,255,255,.08); }
.spot.locked { cursor: default; }
.spot.locked:hover { background: transparent; }
.spot .chips { display: flex; justify-content: center; min-height: 0; }
.spot.win { animation: winflash 1.2s ease-out; }
.spot.lose { animation: loseflash 1.2s ease-out; }

.actions-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 800; letter-spacing: .06em; padding: 11px 20px; border-radius: 10px; border: 0; cursor: pointer; color: #1a1200; background: linear-gradient(#ffd866, #e0a823); box-shadow: 0 4px 0 #8a6510, 0 6px 14px rgba(0,0,0,.45); text-transform: uppercase; font-size: 14px; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a6510; }
.btn:disabled { filter: grayscale(.8) brightness(.6); cursor: default; transform: none; }
.btn.alt { background: linear-gradient(#e9efe9, #b9c7bd); box-shadow: 0 4px 0 #5d6b61, 0 6px 14px rgba(0,0,0,.45); }
.btn.warn { background: linear-gradient(#ff8a8d, #d93a3a); color: #fff; box-shadow: 0 4px 0 #7a1b1b, 0 6px 14px rgba(0,0,0,.45); }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn kbd { background: rgba(0,0,0,.15); color: inherit; }

.banner { min-height: 30px; text-align: center; font-weight: 800; font-size: 18px; letter-spacing: .05em; color: var(--ink); text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.banner.win { color: #7dffb0; } .banner.lose { color: #ff9b9e; } .banner.push { color: #d6e2db; }

.side-panel { background: var(--floor-2); border: 1px solid #22372c; border-radius: 12px; padding: 12px 14px; }
.side-panel h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }

/* ---------- playing cards ---------- */
.card { --w: 76px; width: var(--w); height: calc(var(--w) * 1.4); border-radius: calc(var(--w) * .1); background: var(--card); color: var(--card-ink); position: relative; flex: none; box-shadow: 0 3px 8px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.08); font-family: Georgia, "Times New Roman", serif; }
.card.red { color: var(--card-red); }
.card .ci { position: absolute; top: 5px; left: 6px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.card .ci b { font-size: calc(var(--w) * .26); font-weight: 700; letter-spacing: -.04em; }
.card .ci i { font-style: normal; font-size: calc(var(--w) * .2); }
.card .ci.flip { top: auto; left: auto; bottom: 5px; right: 6px; transform: rotate(180deg); }
.card .cc { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .52); }
.card.back { background: repeating-linear-gradient(45deg, #8e1f2c 0 6px, #a7303e 6px 12px); border: 5px solid var(--card); }
/* Cards slide in from the shoe (upper right) and settle with a soft ease; only transform and opacity animate. */
.card.deal { animation: dealIn .5s cubic-bezier(.18,.8,.22,1) backwards; will-change: transform, opacity; backface-visibility: hidden; }
.card.flip { animation: flipIn .38s cubic-bezier(.3,.7,.3,1) backwards; }
.card.dim { opacity: .45; }
@keyframes dealIn {
  0% { opacity: 0; transform: translate3d(var(--shoe-x, 160px), var(--shoe-y, -140px), 0) rotate(var(--shoe-r, 16deg)) scale(.9); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes flipIn {
  0% { transform: perspective(700px) rotateY(-90deg) scale(1.04); }
  60% { transform: perspective(700px) rotateY(8deg) scale(1.02); }
  100% { transform: none; }
}
.cardrow { display: flex; gap: 8px; justify-content: center; min-height: calc(76px * 1.4); }
.cardrow.overlap .card + .card { margin-left: -40px; }

/* chips inside spots (shared look with craps) */
.spot .chip, .bjspot .chip { min-width: 36px; height: 36px; }

@media (max-width: 640px) {
  .site-header { padding: 8px 16px; gap: 8px; }
  .logo { font-size: 18px; }
  .games { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .games a { white-space: nowrap; padding: 5px 9px; }
  .wallet { margin-left: auto; gap: 10px; }
  .wv b { font-size: 15px; }
  .game { padding: 12px 16px; }
  .table { border-width: 7px; border-radius: 18px; padding: 12px; }
  .card { --w: 54px; }
  .cardrow { min-height: calc(54px * 1.4); }
  .cardrow.overlap .card + .card { margin-left: -28px; }
  .lobby { padding: 20px 16px; }
  .btn { padding: 10px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .card.deal, .card.flip, .spot.win, .spot.lose { animation: none; }
  .tile { transition: none; }
}

/* ---------- craps-first lobby ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 10px 0 34px; }
.feature h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; color: var(--gold); margin: 6px 0 14px; text-wrap: balance; }
.feature .lede { font-size: 17px; color: #dfe7e2; max-width: 56ch; margin: 0; }
.feature-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 16px; }
.feature-cta .btn { text-decoration: none; }
.feature-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.feature-points b { color: var(--ink); }
.feature-art { display: flex; flex-direction: column; align-items: center; gap: 0; text-decoration: none; }
.dome-art { width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(ellipse 45% 30% at 35% 22%, rgba(255,255,255,.5), transparent 70%), radial-gradient(circle at 50% 65%, #1b7a52 0%, #0d4a31 60%, #062818 100%); box-shadow: inset 0 -18px 40px rgba(0,0,0,.6), 0 0 0 10px #3a3a44, 0 0 0 15px #16161b, 0 18px 40px rgba(0,0,0,.7); transition: transform .2s; }
.feature-art:hover .dome-art { transform: translateY(-3px) rotate(-2deg); }
.dome-art .dice { display: flex; }
.dome-art .mini-die { width: 58px; height: 58px; }
.dome-art .mini-die:first-child { transform: rotate(-12deg) translateY(10px); }
.dome-art .mini-die:last-child { transform: rotate(9deg); }
.dome-base { margin-top: -6px; background: #08080a; border: 1px solid #26262e; border-radius: 10px; padding: 8px 18px; font: 700 15px/1 var(--font-mono); color: #ff9d3b; text-shadow: 0 0 8px rgba(255,140,40,.6); letter-spacing: .08em; position: relative; z-index: 1; }
.lobby-section { margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head a, .muted-note { font-size: 13px; color: var(--muted); }
.guide-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-chip { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: var(--floor-2); border: 1px solid #22372c; border-left: 3px solid var(--gold-deep); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.guide-chip span { color: var(--muted); font-size: 13px; }
.guide-chip:hover { border-color: var(--gold-deep); }
.tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tiles.five .art { height: 120px; }
.tiles.five .art .card { --w: 58px; }
.tiles.five .art .fan .card { margin-left: -20px; }
.tiles.five .art .fan .card:first-child { margin-left: 0; }
.tiles.five .art .wheel-art { width: 96px; height: 96px; }
.tiles.five .art .reel-art span { width: 38px; height: 50px; font-size: 24px; }
.tiles.five h2 { font-size: 17px; }
@media (max-width: 1100px) { .tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } .guide-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature-art { order: -1; }
  .dome-art { width: 210px; }
  .tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) { .guide-row, .tiles.five { grid-template-columns: minmax(0, 1fr); } }

:root {
  color-scheme: dark;
  --felt: #0d5a3a;
  --felt-dark: #0a4a30;
  --line: rgba(255, 255, 255, 0.85);
  --gold: #f2c94c;
  --red: #e5484d;
  --green: #3ccf7a;
  --ink: #f4f1e8;
  --panel: #13201a;
  --panel-2: #1a2b23;
  --muted: #9bb3a6;
  --bg: #0a120e;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; cursor: pointer; }
kbd { background: rgba(255,255,255,.12); border-radius: 4px; padding: 0 5px; font-size: 12px; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 24px; padding: 10px 20px; background: #050a07; border-bottom: 1px solid #1f3328; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.meters { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
.meter { display: flex; flex-direction: column; }
.meter span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.meter b { font-size: 20px; font-variant-numeric: tabular-nums; }
.meter b.pos { color: var(--green); } .meter b.neg { color: var(--red); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost { background: transparent; color: var(--ink); border: 1px solid #2c4537; border-radius: 6px; padding: 6px 12px; }
.ghost:hover { border-color: var(--gold); }
.ghost.active { background: var(--red); border-color: var(--red); }
.ghost.danger:hover { border-color: var(--red); color: var(--red); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; padding: 18px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.felt, .side, .numbox, .bet { min-width: 0; }
html, body { overflow-x: clip; }

/* ---------- felt ---------- */
.felt { align-self: start; background: radial-gradient(ellipse at 50% 30%, #11704a, var(--felt) 55%, var(--felt-dark)); border: 10px solid #3b2414; border-radius: 22px; padding: 16px; box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; }
.row > .bet { flex: 1; }

.bet { position: relative; border: 2px solid var(--line); border-radius: 8px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; user-select: none; transition: background .15s, box-shadow .2s; padding: 6px; }
.bet:hover { background: rgba(255,255,255,.08); }
.bet.disabled { opacity: .45; }
.bet .lbl { font-weight: 800; letter-spacing: .1em; font-size: 15px; display: flex; flex-direction: column; align-items: center; }
.bet small { font-size: 10px; letter-spacing: .06em; color: rgba(255,255,255,.75); font-weight: 600; }
.bet.pass { min-height: 70px; } .bet.pass .lbl { font-size: 22px; letter-spacing: .3em; }
.bet.dp { flex: 1.4; }
.bet.odds { flex: .7; border-style: dashed; }
.bet.big { flex: .45; } .big-num { font-size: 28px !important; color: var(--red); }
.bet.come { flex: 3; min-height: 72px; } .bet.come .lbl { font-size: 26px; color: var(--red); letter-spacing: .3em; }
.bet.dc { flex: 1; }
.bet.field { min-height: 76px; } .bet.field .lbl { color: var(--gold); font-size: 20px; letter-spacing: .3em; }
.fieldnums { font-weight: 700; font-size: 16px; letter-spacing: .05em; }
.fieldnums i { font-style: normal; display: inline-block; border: 2px solid var(--gold); border-radius: 50%; width: 26px; height: 26px; line-height: 22px; margin: 0 6px; }

.bet.win { animation: winflash 1.2s ease-out; }
.bet.lose { animation: loseflash 1.2s ease-out; }
@keyframes winflash { 0%, 40% { background: rgba(60,207,122,.55); box-shadow: 0 0 22px var(--green); } 100% { background: transparent; } }
@keyframes loseflash { 0%, 40% { background: rgba(229,72,77,.45); } 100% { background: transparent; } }

/* number boxes */
.numbers { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: 8px; }
body.crapless .numbers { gap: 5px; }
body.crapless .dontbet { display: none !important; }
body.crapless .bet.big { flex: 1; }
body.crapless .numbox .comearea { min-height: 80px; }
body.crapless .numbox .comearea .num { font-size: 30px; }
body.crapless .numbox .placearea .lbl { font-size: 9px; letter-spacing: 0; }
body.crapless .numbox .onpuck { top: 4px; right: 4px; width: 28px; height: 28px; font-size: 9px; }
body.crapless .numbox .chip { min-width: 28px; height: 28px; font-size: 11px; }
body.crapless .numbox.edge .num { color: #ffd27a; }
.variant { display: flex; background: #0f1a14; border: 1px solid #2c4537; border-radius: 8px; padding: 3px; }
.variant button { background: transparent; color: var(--muted); border: 0; border-radius: 6px; padding: 6px 14px; font-weight: 700; }
.variant button.on { background: var(--gold); color: #1a1200; }
.numbox { border: 2px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.numbox .bet { border: 0; border-radius: 0; min-height: 0; }
.numbox .dcarea { border-bottom: 1px solid rgba(255,255,255,.35) !important; min-height: 34px; background: rgba(0,0,0,.15); }
.numbox .dcarea .lbl { font-size: 9px; letter-spacing: .05em; }
.numbox .comearea { min-height: 90px; }
.numbox .comearea .num { font-size: 40px; font-weight: 900; line-height: 1; color: var(--ink); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.numbox[data-n="5"] .num, .numbox[data-n="9"] .num, .numbox[data-n="6"] .num { }
.numbox .placearea { border-top: 1px solid rgba(255,255,255,.35) !important; min-height: 48px; background: rgba(0,0,0,.1); }
.numbox .placearea .lbl { font-size: 10px; letter-spacing: .08em; }
.numbox.point { box-shadow: 0 0 0 3px var(--gold), 0 0 20px rgba(242,201,76,.5); }
.numbox .onpuck { position: absolute; top: 40px; right: 6px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; font-weight: 900; font-size: 11px; display: none; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.6); border: 3px solid #111; z-index: 2; }
.numbox.point .onpuck { display: flex; }
.numbox.rolled { animation: winflash 1s ease-out; }

/* chips on table */
.chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 4px; min-height: 0; }
.chip { --c: #ddd; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; background: var(--c); color: #111; font-weight: 800; font-size: 12px; border: 3px dashed rgba(255,255,255,.85); box-shadow: 0 2px 4px rgba(0,0,0,.55), inset 0 0 0 2px rgba(0,0,0,.15); font-variant-numeric: tabular-nums; }
.chip small { font-size: 9px; color: inherit !important; margin-right: 3px; opacity: .8; }
.chip.c1 { --c: #f5f5f5; }
.chip.c5 { --c: #d93a3a; color: #fff; }
.chip.c25 { --c: #2f9e55; color: #fff; }
.chip.c100 { --c: #222; color: #fff; }
.chip.c500 { --c: #7a3fc4; color: #fff; }
.chip.c1000 { --c: #f2c94c; }
.chip.odds { outline: 2px solid var(--gold); }

/* chip rack */
.chiprack { display: flex; gap: 12px; justify-content: center; padding: 10px; background: rgba(0,0,0,.25); border-radius: 40px; margin-top: 6px; }
.chiprack .chip { width: 54px; height: 54px; border-radius: 50%; font-size: 15px; cursor: pointer; transition: transform .12s; border-width: 4px; }
.chiprack .chip:hover { transform: translateY(-3px); }
.chiprack .chip.sel { transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 3px var(--gold), 0 8px 14px rgba(0,0,0,.6); }
.hint { text-align: center; color: rgba(255,255,255,.7); font-size: 12px; }

/* ---------- side / machine ---------- */
.side { display: flex; flex-direction: column; gap: 14px; }
.machine { background: linear-gradient(#1c1c22, #0d0d10); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px solid #2a2a33; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.dome { position: relative; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle at 50% 65%, #1b7a52 0%, #0d4a31 60%, #062818 100%); box-shadow: inset 0 -18px 40px rgba(0,0,0,.6), inset 0 10px 30px rgba(255,255,255,.08), 0 0 0 8px #3a3a44, 0 0 0 12px #16161b, 0 12px 26px rgba(0,0,0,.8); overflow: hidden; }
.dome.shaking { animation: shake .12s linear infinite; }
@keyframes shake { 0% { transform: translate(0,0); } 25% { transform: translate(1px,-1px); } 50% { transform: translate(-1px,1px); } 75% { transform: translate(1px,1px); } }
.glare { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse 45% 30% at 35% 22%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); pointer-events: none; }
.die { position: absolute; width: 52px; height: 52px; background: linear-gradient(145deg, #fff, #dcdcdc); border-radius: 10px; box-shadow: 0 6px 10px rgba(0,0,0,.55), inset 0 -3px 0 rgba(0,0,0,.12); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 7px; transition: left .09s linear, top .09s linear, transform .09s linear; }
.die.settle { transition: left .45s cubic-bezier(.2,1.6,.4,1), top .45s cubic-bezier(.2,1.6,.4,1), transform .45s ease-out; }
.pip { width: 10px; height: 10px; border-radius: 50%; background: #b0121b; place-self: center; box-shadow: inset 0 1px 1px rgba(0,0,0,.5); }
.base { width: 100%; background: #08080a; border: 1px solid #26262e; border-radius: 10px; padding: 10px 12px; text-align: center; }
.readout { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; color: #ff9d3b; text-shadow: 0 0 8px rgba(255,140,40,.6); letter-spacing: .06em; min-height: 32px; }
.readout.win { color: var(--green); text-shadow: 0 0 8px rgba(60,207,122,.6); }
.readout.lose { color: var(--red); text-shadow: 0 0 8px rgba(229,72,77,.6); }
.puckrow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.puck { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 900; font-size: 11px; border: 3px solid #111; }
.puck.off { background: #222; color: #eee; border-color: #555; }
.puck.on { background: #fff; color: #000; }
.roll { width: 100%; padding: 14px; font-size: 22px; font-weight: 900; letter-spacing: .3em; color: #1a1200; background: linear-gradient(#ffd866, #e0a823); border: 0; border-radius: 12px; box-shadow: 0 5px 0 #8a6510, 0 8px 18px rgba(0,0,0,.5); }
.roll:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a6510; }
.roll:disabled { filter: grayscale(.7) brightness(.7); cursor: default; }
.fast { color: var(--muted); font-size: 12px; align-self: flex-end; }

.panel { background: var(--panel); border: 1px solid #22372c; border-radius: 12px; padding: 12px 14px; }
.panel h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel h3 small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; }

.props { background: var(--felt-dark); }
.propgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bet.prop { min-height: 58px; border-width: 1.5px; padding: 4px; }
.bet.prop .lbl { font-size: 13px; letter-spacing: .02em; }
.bet.prop.wide { grid-column: span 4; min-height: 44px; flex-direction: row; gap: 10px; }
.bet.prop.wide .chips { margin-top: 0; }
.bet.prop.red .lbl { color: #ff7b7f; }
.bet.prop .chip { min-width: 28px; height: 28px; font-size: 11px; }

.events { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; max-height: 210px; overflow: auto; }
.events li { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.events .win b { color: var(--green); } .events .lose b { color: var(--red); } .events .push b { color: var(--muted); }
.events .info { color: var(--gold); font-weight: 600; }
.events .total { border-top: 1px solid #2c4537; margin-top: 4px; padding-top: 4px; font-weight: 700; }
.muted { color: var(--muted); }

.history { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.history span { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; background: var(--panel-2); font-variant-numeric: tabular-nums; }
.history span.seven { background: var(--red); }
.history span.made { background: var(--green); color: #002; }
.history span.hard { box-shadow: inset 0 0 0 2px var(--gold); }
.hist { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; align-items: end; height: 90px; }
.hist .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 10px; color: var(--muted); }
.hist .bar { width: 100%; background: #2f6d4e; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s; }
.hist .col.seven .bar { background: var(--red); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #2a1515; border: 1px solid var(--red); color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 10; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.good { background: #10301f; border-color: var(--green); }

dialog { background: var(--panel); color: var(--ink); border: 1px solid #2c4537; border-radius: 12px; max-width: 620px; padding: 20px 26px; }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h2 { color: var(--gold); margin-top: 0; }
dialog li { margin-bottom: 6px; }
dialog button { background: var(--gold); border: 0; border-radius: 6px; padding: 8px 16px; font-weight: 700; }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 16px; }
  .variant { justify-self: start; }
  .meters { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px; }
  .meter span { font-size: 10px; }
  .meter b { font-size: 16px; }
  .ghost { padding: 5px 9px; font-size: 13px; }
  .layout { padding: 12px 16px; gap: 14px; }
  .felt { border-width: 6px; border-radius: 16px; padding: 10px; gap: 8px; }
  .numbers, body.crapless .numbers { grid-template-columns: repeat(3, 1fr) !important; gap: 5px; }
  body.crapless .numbers { grid-template-columns: repeat(5, 1fr) !important; }
  .numbox .comearea { min-height: 70px; }
  .numbox .comearea .num, body.crapless .numbox .comearea .num { font-size: 26px; }
  .numbox .placearea .lbl { font-size: 9px; letter-spacing: 0; }
  .numbox .onpuck { top: 4px; right: 4px; width: 26px; height: 26px; font-size: 9px; }
  .row { flex-wrap: wrap; gap: 8px; }
  .row > .bet { min-width: 40%; }
  .row > .bet.big { min-width: 20%; }
  .bet .lbl { font-size: 13px; }
  .bet.pass .lbl { font-size: 17px; letter-spacing: .2em; }
  .bet.come .lbl { font-size: 20px; letter-spacing: .2em; }
  .bet.field .lbl { font-size: 16px; }
  .fieldnums { font-size: 13px; }
  .fieldnums i { width: 22px; height: 22px; line-height: 18px; margin: 0 3px; }
  .chip { min-width: 28px; height: 28px; font-size: 11px; }
  .chiprack { gap: 6px; padding: 8px; flex-wrap: wrap; }
  .chiprack .chip { width: 46px; height: 46px; font-size: 12px; }
  .hint { display: none; }
  .propgrid { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .dome.shaking { animation: none; }
  .die, .die.settle { transition: none; }
}

/* odds readout */
.edgebar { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; background: rgba(0,0,0,.3); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: rgba(255,255,255,.9); min-height: 36px; align-items: center; }
.edgebar b { color: #fff; }
.edgebar .edge.good { color: #6ee7a0; } .edgebar .edge.ok { color: #f2c94c; } .edgebar .edge.bad { color: #ff8a8d; }

/* Blackjack: half-moon table, dealer at the straight edge, bet circle at the curve. */
.bj-table { border-radius: 26px 26px 50% 50% / 26px 26px 34% 34%; min-height: 540px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 20px 46px; }
.bj-dealer { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 140px; }
.bj-total { font-weight: 800; font-size: 14px; letter-spacing: .04em; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.bj-dealer .bj-total:empty { display: none; }
.bj-hands { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; min-height: 10px; }
.bj-hand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.bj-hand.active { border-color: var(--gold); background: rgba(242,201,76,.08); box-shadow: 0 0 18px rgba(242,201,76,.25); }
.bj-meta { display: flex; align-items: center; gap: 8px; }
.bj-meta .chip { min-width: 34px; height: 34px; }
.bj-meta .tag { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.bj-res { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; padding: 3px 10px; border-radius: 6px; background: rgba(0,0,0,.4); }
.res-blackjack .bj-res, .res-win .bj-res { color: #7dffb0; }
.res-lose .bj-res, .res-bust .bj-res, .res-surrender .bj-res { color: #ff9b9e; }
.res-lose .card, .res-bust .card, .res-surrender .card { filter: brightness(.75); }
.bj-betzone { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: auto; }
.bjspot { width: 110px; height: 110px; border-radius: 50%; border-width: 3px; border-style: double; border-color: rgba(255,255,255,.9); }
.bjspot .lbl { font-family: var(--font-display); letter-spacing: .15em; font-size: 14px; color: rgba(255,255,255,.85); }
.bjspot .chip { min-width: 46px; height: 46px; font-size: 13px; }
.bj-hint { font-size: 12px; color: rgba(255,255,255,.75); min-height: 16px; }
.bj-keys { text-align: center; color: var(--muted); font-size: 12px; margin: 0; }
@media (max-width: 640px) {
  .bj-table { min-height: 460px; padding: 16px 10px 36px; border-radius: 18px 18px 45% 45% / 18px 18px 22% 22%; }
  .bj-dealer { min-height: 100px; }
  .bj-hands { gap: 10px; }
  .bj-hand { padding: 6px; }
  .bjspot { width: 90px; height: 90px; }
  .bj-keys { display: none; }
}

/* strategy coach */
.coachbar { display: flex; justify-content: center; }
.coach-switch { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--floor-2); border: 1px solid #2c4537; border-radius: 24px; padding: 6px 16px 6px 8px; cursor: pointer; }
.coach-switch:hover { border-color: var(--gold-deep); }
.coach-switch .track { width: 42px; height: 24px; border-radius: 12px; background: #3a4a42; position: relative; transition: background .2s; flex: none; }
.coach-switch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5); transition: transform .2s; }
.coach-switch b { display: inline-block; min-width: 28px; margin-left: 4px; padding: 1px 8px; border-radius: 10px; background: #3a4a42; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.coach-switch.on { border-color: var(--gold); }
.coach-switch.on .track { background: var(--gold); }
.coach-switch.on .knob { transform: translateX(18px); }
.coach-switch.on b { background: var(--gold); color: #1a1200; }
.coach-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 14px; background: rgba(0,0,0,.4); border: 1px solid rgba(242,201,76,.4); border-radius: 20px; padding: 5px 6px 5px 14px; color: #fff; }
.coach-off { font: inherit; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 14px; padding: 3px 10px; cursor: pointer; }
.coach-off:hover { background: rgba(255,255,255,.22); }
.coach-line b { color: var(--gold); }
.btn.advised { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(242,201,76,.45), 0 4px 0 #8a6510; }
@media (prefers-reduced-motion: reduce) { .coach-switch .track, .coach-switch .knob { transition: none; } }

/* Roulette: wheel + controls on top, the betting layout as a wide felt below. */
.rl-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.rl-wheel-wrap { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; }
.rl-wheel-wrap canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)); }
.rl-result { position: absolute; right: 0; bottom: 6px; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font: 900 30px/1 Georgia, serif; color: #fff; border: 4px solid var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.6); animation: pop .35s ease-out; }
.rl-result.red { background: #c0182b; } .rl-result.black { background: #151515; } .rl-result.green { background: #138a4a; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.rl-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rl-side .actions-row { justify-content: flex-start; }
.rl-side .chiprack { justify-content: flex-start; }
.rl-history { display: flex; flex-wrap: wrap; gap: 4px; }
.rl-history span { min-width: 28px; height: 28px; padding: 0 4px; border-radius: 6px; display: inline-grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.rl-history span.red { background: #c0182b; } .rl-history span.black { background: #222; } .rl-history span.green { background: #138a4a; }
.rl-history span:not(.none):first-child { outline: 2px solid var(--gold); }
.rl-history .none { color: var(--muted); font-weight: 400; background: none; }
.rl-variant { display: flex; background: #0f1a14; border: 1px solid #2c4537; border-radius: 8px; padding: 3px; }

.rl-table { padding: 18px; overflow-x: auto; }
.rl-layout { display: grid; grid-template-columns: 0.9fr repeat(12, 1fr) 1.1fr; grid-template-rows: repeat(6, 27px) 46px 46px; min-width: 640px; position: relative; }
.rl-spot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.8); margin: -1px 0 0 -1px; cursor: pointer; user-select: none; font-weight: 800; color: #fff; transition: background .15s; }
.rl-spot:hover { background-color: rgba(255,255,255,.12); }
.rl-spot.num .lbl { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 800 15px/1 Georgia, serif; }
.rl-spot.num.red .lbl { background: #c0182b; } .rl-spot.num.black .lbl { background: #151515; }
.rl-spot.num.green { background: #138a4a; } .rl-spot.num.green .lbl { background: none; font-size: 20px; }
.rl-spot.num.green:first-child { border-top-left-radius: 40px 50%; }
.rl-spot.outside .lbl { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.rl-spot.col .lbl { font-size: 11px; writing-mode: vertical-rl; transform: rotate(180deg); }
.diamond { display: inline-block; width: 22px; height: 22px; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.7); }
.diamond.red { background: #c0182b; } .diamond.black { background: #151515; }
.rl-spot .chips { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rl-spot .chip { min-width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
.rl-spot.hit { animation: winflash 1.6s ease-out; }
.rl-spot.win { animation: winflash 1.6s ease-out; }

/* inside-bet hit zones */
.rl-zones { position: relative; pointer-events: none; z-index: 2; }
.rl-spot.zone { position: absolute; transform: translate(-50%, -50%); border: 0; margin: 0; pointer-events: auto; border-radius: 4px; background: transparent; }
.rl-spot.zone:hover { background: rgba(242,201,76,.45); }
.rl-spot.zone.vs { width: 14px; height: 30px; }
.rl-spot.zone.hs { width: 34px; height: 14px; }
.rl-spot.zone.pt { width: 16px; height: 16px; border-radius: 50%; z-index: 1; }
.rl-spot.zone .chip { min-width: 26px; height: 26px; font-size: 10px; }

@media (max-width: 860px) {
  .rl-top { grid-template-columns: minmax(0, 1fr); }
  .rl-wheel-wrap { max-width: 300px; }
  .rl-side .actions-row, .rl-side .chiprack { justify-content: center; }
}

.rl-swipe { display: none; margin: 0 0 -6px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .rl-swipe { display: block; } }

/* Baccarat: burgundy felt, Player (blue) vs Banker (red) with a bead-plate scoreboard. */
.bc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.bc-table { background: radial-gradient(ellipse at 50% 25%, #8e1f2c, #6a1420 55%, #4a0d16); display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.bc-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bc-hand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 2px solid rgba(255,255,255,.25); min-height: 170px; transition: border-color .2s, box-shadow .2s; }
.bc-hand h2 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: .14em; font-size: 18px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
#bc-player h2 { color: #9cc4ff; } #bc-banker h2 { color: #ffb3b8; }
.bc-total { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font: 800 18px/1 var(--font-body); }
.bc-total:empty { visibility: hidden; }
.bc-hand.won { border-color: var(--gold); box-shadow: 0 0 22px rgba(242,201,76,.35); }
.bc-hand .card.third { transform: rotate(90deg); margin: 0 14px; }
.bc-hand .card.third.deal { animation: cardInSide .55s cubic-bezier(.18,.8,.22,1) backwards; }
@keyframes cardInSide {
  0% { opacity: 0; transform: translate3d(var(--shoe-x, 160px), var(--shoe-y, -140px), 0) rotate(30deg) scale(.9); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: rotate(90deg); }
}
.bc-spots { display: grid; grid-template-columns: .8fr 1.3fr .9fr 1.3fr .8fr; gap: 8px; }
.bc-spot { border-radius: 12px; min-height: 96px; padding: 8px 4px; }
.bc-spot .lbl { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.bc-spot small { font-size: 10px; color: rgba(255,255,255,.75); letter-spacing: .05em; }
.bc-player { border-color: #9cc4ff; } .bc-player .lbl { color: #9cc4ff; font-size: 18px; }
.bc-banker { border-color: #ffb3b8; } .bc-banker .lbl { color: #ffb3b8; font-size: 18px; }
.bc-tie { border-color: #7dffb0; } .bc-tie .lbl { color: #7dffb0; }
.bc-playerPair .lbl, .bc-bankerPair .lbl { font-size: 11px; }
.bc-side .side-panel h3 { display: flex; justify-content: space-between; }
.bc-side .side-panel h3 small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bead { display: grid; grid-template-rows: repeat(6, 22px); grid-auto-flow: column; grid-auto-columns: 22px; gap: 3px; background: #f4f1e8; padding: 6px; border-radius: 6px; overflow-x: auto; }
.bead span { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--font-body); color: #fff; }
.bead span.empty { background: transparent; border: 1px solid #ddd6c4; }
.b-p { background: #1f5fd6; } .b-b { background: #c0182b; } .b-t { background: #138a4a; }
.bead i { position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1px solid #fff; }
.bead i.pp { background: #1f5fd6; left: -1px; bottom: -1px; } .bead i.bp { background: #c0182b; right: -1px; top: -1px; }
.bead-key { font-size: 11px; color: var(--muted); margin: 8px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bead-key span { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 800; }
@media (max-width: 960px) { .bc-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .bc-spots { grid-template-columns: 1fr 1fr; }
  .bc-spot.bc-tie { grid-column: span 2; order: -1; min-height: 60px; }
  .bc-hand { min-height: 120px; padding: 8px 4px; }
  .bc-hand .card.third { margin: 0 6px; }
}

/* Video poker: a blue CRT machine face with a yellow pay table. */
.vp-machine { background: linear-gradient(#0b1f6b, #08154a); border: 10px solid #1d1d24; border-radius: 18px; box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 12px 30px rgba(0,0,0,.6); padding: 18px; display: flex; flex-direction: column; gap: 14px; max-width: 900px; width: 100%; margin: 0 auto; }
.vp-pay { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 14px; color: #ffe15a; text-transform: uppercase; }
.vp-pay th { text-align: left; font-weight: 700; padding: 3px 10px; white-space: nowrap; }
.vp-pay td { text-align: right; padding: 3px 10px; font-variant-numeric: tabular-nums; border-left: 1px solid rgba(255,225,90,.25); }
.vp-pay td.col { background: #c0182b; color: #fff; }
.vp-pay tr.hit th, .vp-pay tr.hit td { background: #ffe15a; color: #0b1f6b; }
.vp-pay tr.hit td.col { background: #fff; color: #c0182b; }
.vp-banner { text-align: center; font: 800 20px/1.2 var(--font-mono); letter-spacing: .08em; color: #fff; min-height: 26px; text-transform: uppercase; }
.vp-banner.win { color: #ffe15a; text-shadow: 0 0 10px rgba(255,225,90,.6); }
.vp-banner.hint { color: #9cc4ff; }
.vp-cards { --shoe-x: 0px; --shoe-y: -70px; --shoe-r: 0deg; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; justify-items: center; }
.vp-slot { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; font: inherit; }
.vp-slot .card { --w: clamp(56px, 13vw, 120px); }
.held-tag { font: 800 14px/1 var(--font-mono); letter-spacing: .1em; color: #ffe15a; visibility: hidden; }
.vp-slot.held .held-tag { visibility: visible; }
.vp-slot.held .card { transform: translateY(-6px); box-shadow: 0 0 0 3px #ffe15a, 0 8px 14px rgba(0,0,0,.5); }
.vp-panel { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.vp-readouts { display: flex; gap: 22px; font-family: var(--font-mono); }
.vp-readouts span { display: block; font-size: 11px; color: #9cc4ff; text-transform: uppercase; letter-spacing: .1em; }
.vp-readouts b { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.vp-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.vbtn { font: 800 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; border-radius: 8px; border: 2px solid #ffe15a; background: #1a2d85; color: #ffe15a; cursor: pointer; min-width: 74px; }
.vbtn:disabled { opacity: .4; cursor: default; }
.vbtn.deal { background: #ffe15a; color: #0b1f6b; min-width: 110px; }
@media (max-width: 640px) {
  .vp-machine { padding: 10px; border-width: 6px; }
  .vp-pay { font-size: 10px; } .vp-pay th, .vp-pay td { padding: 2px 4px; }
  .vp-cards { gap: 4px; }
  .vp-readouts { gap: 12px; } .vp-readouts b { font-size: 15px; }
  .vbtn { padding: 10px 8px; min-width: 0; font-size: 11px; }
}

/* Slots: purple cabinet with a gold marquee, white reels and colored payline markers. */
.sl-cabinet { background: linear-gradient(#3a0f54, #1c0629); border: 10px solid #121016; border-radius: 22px; padding: 18px 18px 22px; box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 12px 30px rgba(0,0,0,.6); max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.sl-marquee { text-align: center; font-family: var(--font-display); font-size: clamp(26px, 5vw, 40px); color: var(--gold); letter-spacing: .06em; text-shadow: 0 0 14px rgba(242,201,76,.55), 0 3px 0 #8a6510; }
.sl-marquee span { color: #ff6b6b; }
.sl-window { display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 6px; align-items: stretch; }
.sl-lines { display: grid; grid-template-rows: repeat(10, 1fr); gap: 2px; }
.sl-lines span { display: grid; place-items: center; border-radius: 4px; background: var(--c); color: #111; font: 800 10px/1 var(--font-body); }
.sl-reels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: #0d0614; padding: 6px; border-radius: 10px; border: 3px solid var(--gold-deep); }
.sl-reel { --cell: clamp(64px, 14vw, 104px); height: calc(var(--cell) * 3); overflow: hidden; background: linear-gradient(#ddd, #fff 20%, #fff 80%, #ddd); border-radius: 6px; position: relative; }
.sl-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.28), transparent 18%, transparent 82%, rgba(0,0,0,.28)); }
.sl-strip { will-change: transform; }
.sl-cell { height: var(--cell); display: grid; place-items: center; padding: 10%; }
.sl-cell svg { width: 100%; height: 100%; }
.sl-cell.hit { background: radial-gradient(rgba(255,210,63,.65), transparent 70%); animation: pulse .9s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.sl-paylines { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; }
.sl-win { text-align: center; min-height: 28px; font: 800 20px/1.3 var(--font-body); letter-spacing: .04em; color: var(--muted); }
.sl-win.won { color: #7dffb0; }
.sl-win.big { color: var(--gold); font-size: 26px; text-shadow: 0 0 12px rgba(242,201,76,.6); }
.sl-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sl-bet { display: flex; align-items: center; gap: 10px; }
.sl-bet span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #d0bfff; }
.sl-bet b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sl-bet .vbtn { min-width: 40px; padding: 8px 0; font-size: 18px; background: #2a0b3d; }
.sl-spin { padding: 14px 34px; font-size: 18px; letter-spacing: .2em; }
.sl-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; max-width: 760px; width: 100%; margin: 0 auto; }
.sl-paytable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sl-paytable td { padding: 2px 6px; border-bottom: 1px solid #22372c; }
.sl-paytable td small { color: var(--muted); }
.sl-paytable .sl-cell { --cell: 34px; width: 34px; padding: 3px; background: #fff; border-radius: 4px; }
.sl-linemaps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lm { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; }
.lm b { color: var(--c); }
.lm div { display: grid; grid-template-columns: repeat(5, 7px); gap: 2px; }
.lm i { width: 7px; height: 7px; background: #2a3a32; border-radius: 1px; }
.lm i.on { background: var(--c); }
@media (max-width: 700px) { .sl-info { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .sl-cabinet { padding: 10px; border-width: 6px; }
  .sl-window { grid-template-columns: 14px minmax(0, 1fr) 14px; gap: 3px; }
  .sl-lines span { font-size: 8px; }
  .sl-reels { gap: 3px; padding: 3px; }
  .sl-reel { --cell: 17vw; }
  .sl-spin { padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) { .sl-cell.hit { animation: none; } }

/* Guides: readable long-form pages on the casino floor background. */
.guide { max-width: 780px; margin: 0 auto; padding: 30px 20px 10px; line-height: 1.65; font-size: 16px; }
.guide h1 { font-family: var(--font-display); font-weight: 400; color: var(--gold); font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 4px 0 14px; text-wrap: balance; }
.guide h2 { font-size: 20px; margin: 30px 0 8px; text-wrap: balance; }
.guide p, .guide li { color: #dfe7e2; max-width: 68ch; }
.guide .lede { font-size: 18px; color: var(--ink); }
.guide a { color: var(--gold); }
.guide ol, .guide ul { padding-left: 22px; }
.guide li { margin-bottom: 6px; }
.eyebrow { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.eyebrow a { color: var(--muted); }
.tablewrap { overflow-x: auto; margin: 14px 0; }
.gtable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.gtable th, .gtable td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #22372c; }
.gtable thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.gtable tr.em td { font-weight: 800; }
.edge { font-weight: 800; white-space: nowrap; }
.edge.good { color: #6ee7a0; } .edge.ok { color: #f2c94c; } .edge.bad { color: #ff8a8d; }
.bschart { font-size: 13px; text-align: center; }
.bschart th, .bschart td { text-align: center; padding: 4px 2px; border: 1px solid #0a120e; }
.bschart tbody th { text-align: left; padding-left: 8px; white-space: nowrap; }
.bschart tr.sub th { text-align: left; background: #101a15; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px; }
.bs { font-weight: 800; color: #0a120e; }
td.bs.h, span.bs.h { background: #f4f1e8; } td.bs.s, span.bs.s { background: #f2c94c; }
td.bs.d, span.bs.d { background: #6ee7a0; } td.bs.p, span.bs.p { background: #74b9ff; } td.bs.r, span.bs.r { background: #ff8a8d; }
.legend { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.legend .bs { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border-radius: 4px; font-size: 12px; margin-right: 4px; }
.guide .cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 10px; }
.guide .cta .btn { text-decoration: none; display: inline-block; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.guide-card { display: block; text-decoration: none; color: var(--ink); background: var(--floor-2); border: 1px solid #22372c; border-radius: 12px; padding: 16px 18px; transition: border-color .15s; }
.guide-card:hover { border-color: var(--gold-deep); }
.guide .guide-card h2 { margin: 0 0 4px; font-size: 17px; color: var(--ink); }
.guide .guide-card p { margin: 0; font-size: 14px; color: var(--muted); }
.guide .more { margin-top: 36px; padding-top: 16px; border-top: 1px solid #1a2b23; display: flex; flex-direction: column; gap: 6px; }
.guide .more h2 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 640px) {
  .guide { padding: 20px 16px 6px; font-size: 15px; }
  .guide .lede { font-size: 16px; }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .bschart { font-size: 11px; }
}

/* Static site only: page headings above each game and the readable copy below it. */
.page-intro { max-width: 1240px; margin: 0 auto; padding: 18px 20px 0; display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.page-intro h1 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--gold); font-size: clamp(24px, 3.6vw, 34px); line-height: 1.1; text-wrap: balance; }
.page-intro p { margin: 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.page-intro + .view .gbar .gtitle { display: none; }
.seo-copy { border-top: 1px solid #1a2b23; margin-top: 26px; }
.seo-copy h2:first-child { margin-top: 6px; }
@media (max-width: 640px) { .page-intro { padding: 12px 16px 0; } }
