/* Mines, Crash and Crapless Craps. Built on the casino shell (casino.css, games.css) and /site.css tokens. */
.road-mult.bad { color: var(--bad); }

/* ---- mines ---- */
.mn-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); }
.mn-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: min(100%, 380px); margin-inline: auto; }
.mn-tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: var(--line); font-size: clamp(24px, 8vw, 36px); line-height: 1; transition: transform 140ms var(--ease-out), background-color 160ms, opacity 200ms; }
.mn-tile:not(:disabled):active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .mn-tile:not(:disabled):hover { background: rgb(var(--acc) / .3); transform: translateY(-2px); } }
.mn-tile:disabled { cursor: default; }
.mn-tile.safe { background: rgb(var(--acc) / .22); }
.mn-tile.mine { background: color-mix(in srgb, var(--bad) 22%, transparent); }
.mn-tile.mine.hit { background: var(--bad); }
.mn-tile.dim { opacity: .45; }
.mn-tile.pop { animation: pop 260ms var(--ease-out) both; }
.mn-controls { display: grid; gap: var(--sp-sm); justify-items: center; }
.mn-controls .btn { width: 100%; }

/* ---- crash: the chosen ship rides the curve through its own themed scene ---- */
.cr-screen {
  --alt: 0; --rise: 0px; --ship-w: 25; --ship-ax: .2; --ship-ay: .7;
  --trail: #8a3b1c; --boom1: #ffd23f; --boom2: #ff5a1f; --flame1: #fff7c2; --flame2: #ffb02e;
  position: relative; container-type: inline-size; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--r-control); border: 1px solid var(--line); background: #10162a;
}
@media (max-width: 560px) { .cr-screen { aspect-ratio: 4 / 3; } }
.cr-scene { position: absolute; inset: 0; pointer-events: none; }
.cr-scene > * { position: absolute; inset: 0; }
.cr-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Parallax: as the ship climbs, the far hills sink slowly and the near ground drops out of frame. */
.cr-far { transform: translateY(calc(var(--alt) * 40%)); }
.cr-near { transform: translateY(calc(var(--alt) * 110%)); }
.cr-high { opacity: var(--alt); }
.cr-stars {
  opacity: 0; background-size: 190px 130px; background-position: 0 calc(var(--rise) * .25);
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff 60%, transparent 70%), radial-gradient(1.2px 1.2px at 38% 68%, #fff 60%, transparent 70%),
    radial-gradient(1px 1px at 61% 14%, #fff 60%, transparent 70%), radial-gradient(1.8px 1.8px at 83% 47%, #fff 60%, transparent 70%),
    radial-gradient(1px 1px at 27% 88%, #fff 60%, transparent 70%), radial-gradient(1.3px 1.3px at 92% 84%, #fff 60%, transparent 70%);
}
.cr-clouds { background-repeat: repeat; background-size: 440px 440px; background-position: 30px var(--rise); }
.cr-storm { display: none; }
.cr-graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.cr-line { fill: none; stroke: var(--trail); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cr-area { fill: color-mix(in srgb, var(--trail) 14%, transparent); stroke: none; }

/* Desert canyon (ACME Rocket): warm afternoon sky, cartoon clouds, dusk and stars higher up. */
.cr-screen[data-theme="acme"] .cr-sky { background: linear-gradient(#f2954c, #ffc47c 46%, #ffe5b6 76%); }
.cr-screen[data-theme="acme"] .cr-high { background: linear-gradient(#150e30, #3a2361 58%, rgb(58 35 97 / 0)); }
.cr-screen[data-theme="acme"] .cr-stars { opacity: calc(var(--alt) * 1.3 - .35); }
.cr-screen[data-theme="acme"] .cr-clouds { opacity: calc(1 - var(--alt) * .5); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='440' height='440'><g fill='%23fff1d2'><path d='M40 96 Q36 72 62 70 Q70 46 98 54 Q118 38 136 58 Q164 56 160 84 Q176 96 154 104 H50 Q30 104 40 96Z'/><path d='M262 300 Q258 282 278 280 Q286 262 306 268 Q322 256 336 272 Q358 270 354 292 Q366 302 348 306 H272 Q256 306 262 300Z'/></g></svg>"); }

/* Island (Battle Bus): bright daylight, puffy clouds, the storm wall closing in from the right. */
.cr-screen[data-theme="bus"] { --trail: #ffffff; --boom1: #ffffff; --boom2: #8f5cff; --flame1: #c9f5ff; --flame2: #5ad1ff; }
.cr-screen[data-theme="bus"] .cr-sky { background: linear-gradient(#2a84de, #61bcfa 54%, #bfe8ff 84%); }
.cr-screen[data-theme="bus"] .cr-high { background: linear-gradient(#0d3a82, #1d5cb4 62%, rgb(29 92 180 / 0)); }
.cr-screen[data-theme="bus"] .cr-clouds { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='440' height='440'><g fill='%23ffffff'><path d='M30 120 Q26 92 56 90 Q62 58 98 64 Q120 40 148 62 Q182 58 180 92 Q200 104 178 120Z'/><path d='M250 330 Q248 310 270 308 Q276 286 300 292 Q318 276 336 294 Q362 292 360 316 Q374 326 356 330Z'/></g><g fill='%23d9eefc'><path d='M30 120 H178 Q170 128 150 128 H48 Q30 128 30 120Z'/><path d='M250 330 H356 Q350 336 336 336 H262 Q250 336 250 330Z'/></g></svg>"); }
.cr-screen[data-theme="bus"] .cr-storm { display: block; opacity: calc(.7 + var(--alt) * .3); background: linear-gradient(90deg, rgb(123 63 228 / 0) 70%, rgb(123 63 228 / .32) 86%, rgb(150 92 255 / .58)); }
.cr-screen[data-theme="bus"] .cr-line { filter: drop-shadow(0 1px 2px rgb(0 40 90 / .45)); }

/* Retro-future city (Planet Express): neon skyline under a pink horizon, open space with a ringed planet above. */
.cr-screen[data-theme="express"] { --trail: #3ef2d0; --boom1: #fff36b; --boom2: #ff5fa2; --flame1: #e8fdff; --flame2: #6fe9ff; }
.cr-screen[data-theme="express"] .cr-sky { background: linear-gradient(#0e0a2c, #291961 44%, #6c3a8e 74%, #e36f9b 100%); }
.cr-screen[data-theme="express"] .cr-high { background: radial-gradient(circle at 48% 16%, #f2b765 0 5.5%, #c97d3c 6.6%, transparent 7%), radial-gradient(ellipse 15% 3% at 48% 16%, transparent 62%, rgb(255 220 170 / .8) 66%, transparent 76%), linear-gradient(#04051a, #0a0b2a 62%, rgb(10 11 42 / 0)); }
.cr-screen[data-theme="express"] .cr-stars { opacity: calc(.45 + var(--alt) * .55); }
.cr-screen[data-theme="express"] .cr-clouds { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='440' height='440'><g fill='%2393f5ff' opacity='.55'><circle cx='60' cy='80' r='2'/><circle cx='300' cy='40' r='1.5'/><circle cx='380' cy='260' r='2.2'/><circle cx='140' cy='340' r='1.6'/></g><g fill='%23ff8fc0' opacity='.5'><circle cx='220' cy='180' r='1.8'/><circle cx='30' cy='260' r='1.4'/><circle cx='410' cy='400' r='1.6'/></g></svg>"); }
.cr-screen[data-theme="express"] .cr-line { filter: drop-shadow(0 0 4px rgb(62 242 208 / .8)); }

.cr-screen.crashed { --trail: #ff4d4d; }
.cr-screen.won { --trail: #3ddc8a; }

/* The ship: its exhaust point sits on the curve's tip; the rotor leans it into the climb. */
.cr-ship { position: absolute; left: 8%; top: 90%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.cr-rotor { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.cr-ship-img { position: absolute; left: 0; top: 0; width: calc(var(--ship-w) * 1cqi); max-width: none; height: auto; translate: calc(var(--ship-ax) * -100%) calc(var(--ship-ay) * -100%); filter: drop-shadow(0 6px 10px rgb(0 0 0 / .35)); user-select: none; -webkit-user-drag: none; }
.cr-rotor::before {
  content: ""; position: absolute; right: 0; top: -1.6cqi; width: 7cqi; height: 3.2cqi; border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse at 100% 50%, var(--flame1), var(--flame2) 38%, rgb(255 90 30 / 0) 72%);
}
.cr-screen.live .cr-rotor::before { opacity: 1; animation: cr-flame 120ms steps(2) infinite alternate; }
.cr-screen[data-theme="bus"] .cr-rotor::before { display: none; }
.cr-screen.live .cr-ship-img { animation: cr-bob 1.3s ease-in-out infinite alternate; }

/* After a cash-out the ship keeps climbing on a dashed line to where the round would have crashed. */
.cr-ghost-line { fill: none; stroke: #ff6b6b; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; vector-effect: non-scaling-stroke; opacity: .9; }
.cr-cash-dot { position: absolute; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #3ddc8a; box-shadow: 0 0 0 3px rgb(8 10 22 / .6), 0 2px 6px rgb(0 0 0 / .4); pointer-events: none; }
.cr-ghost-tag { position: absolute; z-index: 3; translate: calc(-100% - 14px) calc(-100% - 10px); padding: 4px 10px 5px; border-radius: 10px; background: rgb(8 10 22 / .72); color: #ff9a9a; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.cr-ghost-tag[hidden], .cr-cash-dot[hidden] { display: none; }
.cr-ghost-tag.done { animation: cr-tag-in 320ms var(--ease-out) both; }
@keyframes cr-tag-in { from { opacity: 0; scale: .92; } }
.cr-screen.ghosting .cr-rotor::before { opacity: 1; animation: cr-flame 120ms steps(2) infinite alternate; }
.cr-screen.ghosting .cr-ship-img { animation: cr-bob 1.3s ease-in-out infinite alternate; }
.cr-ship.ghost .cr-ship-img { opacity: .72; }
@keyframes cr-flame { to { transform: scaleX(1.25); opacity: .8; } }
@keyframes cr-bob { to { transform: translateY(-.6cqi); } }

/* Crash: a comic burst where the ship was, then it tumbles out of the sky. Cash out: it flies off. */
.cr-burst {
  position: absolute; width: calc(var(--ship-w) * .9cqi); aspect-ratio: 1; opacity: 0; scale: .2; pointer-events: none;
  left: calc((.5 - var(--ship-ax)) * var(--ship-w) * 1cqi); top: calc((.5 - var(--ship-ay)) * var(--ship-w) * .6cqi); translate: -50% -50%;
  background: radial-gradient(circle, #fff 0 12%, var(--boom1) 26%, var(--boom2) 50%, rgb(0 0 0 / 0) 70%);
  clip-path: polygon(50% 0, 61% 30%, 95% 18%, 73% 46%, 100% 70%, 66% 70%, 62% 100%, 46% 76%, 20% 96%, 26% 64%, 0 52%, 28% 38%, 12% 10%, 40% 26%);
}
.cr-ship.boom .cr-burst { animation: cr-burst 700ms var(--ease-out) forwards; }
.cr-ship.boom .cr-rotor { animation: cr-fall 1.1s cubic-bezier(.55, 0, 1, .45) 120ms forwards; }
.cr-ship.away .cr-rotor { animation: cr-away 900ms cubic-bezier(.5, 0, .8, .2) forwards; }
.cr-ship.gone { visibility: hidden; }
@keyframes cr-burst { 15% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.6; } }
@keyframes cr-fall { to { translate: 6cqi 70cqi; rotate: 150deg; opacity: 0; } }
@keyframes cr-away { to { translate: 45cqi -50cqi; opacity: 0; } }

/* Multiplier readout: top left, clear of the flight path, on a dark plate so every sky stays readable. */
.cr-over { position: absolute; left: 3.5%; top: 6%; z-index: 3; display: grid; justify-items: start; gap: 2px; padding: 8px 14px 9px; border-radius: 12px; background: rgb(8 10 22 / .64); color: #fff; pointer-events: none; }
.cr-mult { font-size: clamp(28px, 7.5cqi, 56px); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; color: #fff; }
.cr-sub { font-size: 13px; font-weight: 700; color: rgb(255 255 255 / .78); }
.cr-screen.crashed .cr-mult { color: #ff6b6b; }
.cr-screen.won .cr-mult { color: #3ddc8a; }

/* Ship picker: each choice shows its ship on a swatch of its own sky. */
.cr-ships { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-sm); }
.cr-pick { display: grid; gap: 6px; padding: 6px 6px 8px; border-radius: 14px; background: var(--field); border: 1px solid var(--glass-edge); color: var(--muted); text-align: center; transition: border-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out), color 160ms, transform 160ms var(--ease-out); }
.cr-pick-art { display: grid; place-items: center; height: 64px; border-radius: 10px; overflow: hidden; }
.cr-pick[data-ship="acme"] .cr-pick-art { background: linear-gradient(#f2954c, #ffe5b6); }
.cr-pick[data-ship="bus"] .cr-pick-art { background: linear-gradient(#2a84de, #bfe8ff); }
.cr-pick[data-ship="express"] .cr-pick-art { background: linear-gradient(#291961, #e36f9b); }
.cr-pick-art img { width: 86%; height: 56px; object-fit: contain; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .3)); transition: transform 220ms var(--ease-out); }
.cr-pick-name { font-size: 13px; font-weight: 800; line-height: 1.2; }
.cr-pick[aria-checked="true"] { border-color: rgb(var(--acc)); box-shadow: 0 0 0 2px rgb(var(--acc) / .35); color: var(--fg); }
.cr-pick:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cr-pick:hover .cr-pick-art img { transform: translateY(-3px) rotate(-4deg); } .cr-pick:hover { color: var(--fg); } }
@media (prefers-reduced-motion: reduce) { .cr-screen.live .cr-ship-img, .cr-screen.live .cr-rotor::before, .cr-screen.ghosting .cr-ship-img, .cr-screen.ghosting .cr-rotor::before, .cr-ghost-tag.done { animation: none; } }
.cr-controls { display: grid; gap: var(--sp-sm); }
.cr-cash { min-height: 56px; font-size: 20px; font-weight: 900; }
.cr-auto-wrap { display: inline-flex; align-items: center; gap: 6px; }
.cr-auto { width: 72px; min-height: 32px; font-size: 15px; }
.cr-history { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cr-history:empty { display: none; }
.cr-chip { padding: 3px 10px; border-radius: 999px; background: var(--line); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-chip.good { color: var(--good); }
.cr-chip.bad { color: var(--bad); }

/* ======== Dice, Limbo, Coinflip, Hi-Lo, Wheel, Keno, Roulette, Crapless Craps ======== */
.dc-result:empty { display: none; }
.dc-result { display: grid; justify-items: center; }
.dc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-sm); }
.dc-stat { display: grid; gap: 2px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 18px; }
.dc-in, .lm-in { width: 100%; min-height: 40px; font-size: 18px; text-align: left; padding: 0 var(--sp-sm); }

/* dice */
.dc-screen { display: grid; gap: var(--sp-md); padding: var(--sp-md) var(--sp-sm) var(--sp-sm); border-radius: var(--r-control); background: var(--field); border: 1px solid var(--line); }
.dc-big { text-align: center; font-size: clamp(52px, 14vw, 80px); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dc-big.won { color: var(--good); } .dc-big.lost { color: var(--bad); }
.dc-track { position: relative; height: 18px; border-radius: 999px; background: color-mix(in srgb, var(--bad) 55%, var(--line)); margin-top: var(--sp-sm); }
.dc-win { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--good); transition: left 160ms var(--ease-out), width 160ms var(--ease-out); }
.dc-marker { position: absolute; top: -8px; width: 4px; height: 34px; margin-left: -2px; border-radius: 2px; background: var(--fg); transition: left 300ms var(--ease-out); }
.dc-marker-n { position: absolute; bottom: 38px; left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-slider { width: 100%; margin: 0; accent-color: rgb(var(--acc)); }
@media (max-width: 420px) { .dc-stats { grid-template-columns: 1fr 1fr; } }

/* limbo */
.lm-screen { display: grid; place-content: center; justify-items: center; gap: 4px; min-height: 150px; border-radius: var(--r-control); background: var(--field); border: 1px solid var(--line); }
.lm-big { font-size: clamp(56px, 16vw, 88px); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lm-screen.won .lm-big { color: var(--good); } .lm-screen.lost .lm-big { color: var(--bad); }
.lm-screen.rolling .lm-big { color: rgb(var(--acc)); }

/* coinflip */
.cf-stage { display: grid; place-items: center; padding: var(--sp-md) 0; perspective: 600px; }
.cf-coin { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fde68a, #eab308 55%, #a16207); box-shadow: inset 0 0 0 5px rgb(255 255 255 / .25), 0 10px 24px -8px rgb(0 0 0 / .55); }
.cf-face { font-size: 44px; font-weight: 900; color: #5b3b04; }
.cf-coin.flip { animation: cf-flip 750ms cubic-bezier(.3, .6, .3, 1) both; }
@keyframes cf-flip { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(var(--end, 1800deg)) translateY(-36px); } to { transform: rotateY(var(--end, 1800deg)) translateY(0); } }
.cf-ladder { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.cf-step { padding: 3px 7px; border-radius: 8px; background: var(--line); color: var(--muted); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cf-step.done { background: var(--good); color: var(--on-good); }
.cf-step.next { outline: 2px solid rgb(var(--acc)); color: var(--fg); }
.cf-controls { display: grid; gap: var(--sp-sm); }
.cf-call { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.cf-call .btn { min-height: 52px; font-size: 18px; font-weight: 800; }

/* hi-lo */
.hl-table { display: grid; place-items: center; padding: var(--sp-md); border-radius: var(--r-control); background: color-mix(in srgb, rgb(var(--acc)) 14%, var(--field)); border: 1px solid var(--line); }
.hl-card .pc { --w: 92px; }
.hl-trail { display: flex; gap: 4px; justify-content: center; min-height: 0; }
.hl-trail .pc + .pc { margin-left: -10px; }
.hl-controls { display: grid; gap: var(--sp-sm); }
.hl-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.hl-btn { display: grid; gap: 2px; min-height: 64px; padding: 6px var(--sp-sm); }
.hl-btn strong { font-size: 16px; }
.hl-sub { font-size: 12px; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }

/* wheel */
.wh-wheel { position: relative; width: min(100%, 340px); margin-inline: auto; aspect-ratio: 1; }
.wh-svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .4)); }
.wh-rotor { transform-origin: 150px 150px; }
.wh-pointer { position: absolute; z-index: 2; top: -6px; left: 50%; translate: -50% 0; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--fg); filter: drop-shadow(0 2px 3px rgb(0 0 0 / .5)); }
.wh-readout { position: absolute; inset: 0; display: grid; place-content: center; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; pointer-events: none; }
.wh-wheel.won .wh-readout { color: var(--good); } .wh-wheel.lost .wh-readout { color: var(--muted); }

/* keno */
.kn-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.kn-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--line); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; transition: transform 120ms var(--ease-out), background-color 140ms, color 140ms; }
.kn-cell:not(:disabled):active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .kn-cell:not(:disabled):hover { background: rgb(var(--acc) / .3); } }
.kn-cell.picked { background: rgb(var(--acc)); color: var(--on-acc); }
.kn-cell.drawn { background: color-mix(in srgb, var(--fg) 24%, transparent); animation: pop 220ms var(--ease-out) both; }
.kn-cell.hit { background: var(--good); color: var(--on-good); animation: pop 260ms var(--ease-out) both; }
.kn-cell:disabled { cursor: default; }
.kn-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); }
.kn-tool-btns { display: flex; gap: var(--sp-sm); }
.kn-pay { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.kn-pay-cell { flex: 1 0 64px; display: grid; gap: 1px; justify-items: center; padding: 6px 4px; border-radius: 10px; background: var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.kn-pay-cell.zero { opacity: .5; }
.kn-pay-cell.now { outline: 2px solid var(--good); }
.kn-pay-hits { font-size: 11px; color: var(--muted); }

/* roulette */
.rl-layout { display: grid; gap: var(--sp-md); }
@media (min-width: 820px) { .rl-layout { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; } }
.rl-board { display: grid; grid-template-columns: 54px repeat(3, minmax(0, 1fr)) 64px; grid-auto-rows: 40px; gap: 3px; }
.rl-spot { position: relative; display: grid; place-items: center; border-radius: 6px; background: var(--line); color: #fff; font-weight: 800; font-size: 15px; transition: filter 140ms, transform 120ms var(--ease-out); }
.rl-spot:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .rl-spot:hover { filter: brightness(1.2); } }
.rl-spot.red { background: #b4232a; } .rl-spot.black { background: #20242e; } .rl-spot.green { background: #15803d; }
.rl-spot.out { background: color-mix(in srgb, var(--fg) 14%, transparent); color: var(--fg); font-size: 12px; }
.rl-spot.out.red { background: #b4232a; color: #fff; } .rl-spot.out.black { background: #20242e; color: #fff; }
.rl-spot.vert .rl-label { writing-mode: vertical-rl; rotate: 180deg; }
.rl-spot.win { box-shadow: 0 0 0 3px var(--good); z-index: 1; }
.rl-spot.hit { box-shadow: 0 0 0 3px #fff, 0 0 18px 4px rgb(255 255 255 / .6); z-index: 2; }
.rl-stack { position: absolute; z-index: 1; min-width: 26px; padding: 2px 5px; border-radius: 999px; background: #fde68a; color: #4a3200; border: 2px dashed #a16207; font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; pointer-events: none; }
.rl-side { display: grid; gap: var(--sp-sm); align-content: start; min-width: 0; }
.rl-strip { position: relative; overflow: hidden; border-radius: var(--r-control); background: var(--field); border: 1px solid var(--line); padding: 8px 0; }
.rl-marker { position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fde68a; box-shadow: 0 0 10px #fde68a; }
.rl-reel { display: flex; gap: 6px; will-change: transform; }
.rl-pocket { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.rl-pocket.red { background: #b4232a; } .rl-pocket.black { background: #20242e; } .rl-pocket.green { background: #15803d; }
.rl-last { text-align: center; font-size: 22px; font-weight: 900; text-transform: capitalize; min-height: 1.3em; }
.rl-last.red { color: #f87171; } .rl-last.green { color: #4ade80; }
.rl-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rl-chip { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 900; font-size: 13px; color: #fff; border: 3px dashed rgb(255 255 255 / .75); box-shadow: 0 3px 0 rgb(0 0 0 / .35); transition: transform 140ms var(--ease-out); }
.rl-chip.c1 { background: #64748b; } .rl-chip.c5 { background: #dc2626; } .rl-chip.c25 { background: #16a34a; } .rl-chip.c100 { background: #1e293b; } .rl-chip.c500 { background: #7c3aed; }
.rl-chip.on { transform: translateY(-4px) scale(1.1); outline: 3px solid var(--fg); outline-offset: 2px; }
.rl-tools { display: flex; gap: var(--sp-sm); flex-wrap: wrap; justify-content: center; }
.rl-total { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.rl-spin { min-height: 52px; font-size: 18px; font-weight: 900; }

/* crapless craps table */
.cp-table-panel { display: grid; gap: var(--sp-md); background: radial-gradient(120% 80% at 50% 0%, rgb(14 165 233 / .14), transparent 60%), var(--surface); }
.cp-marquee { display: flex; justify-content: center; gap: .4em; flex-wrap: wrap; font-size: clamp(26px, 7vw, 44px); font-weight: 900; letter-spacing: .04em; line-height: 1; text-align: center; padding: 6px 0 2px; }
.cp-m1 { color: #e0f2ff; text-shadow: 0 0 6px #38bdf8, 0 0 14px #0ea5e9, 0 0 30px #0284c7; }
.cp-m2 { color: #ffe9d6; text-shadow: 0 0 6px #fb923c, 0 0 14px #f97316, 0 0 30px #ea580c; }
@media (prefers-reduced-motion: no-preference) { .cp-marquee { animation: cp-flicker 5s steps(1) infinite; } }
@keyframes cp-flicker { 0%, 94%, 100% { opacity: 1; } 95% { opacity: .75; } 96% { opacity: 1; } 97% { opacity: .85; } }
.cp-top { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-md); align-items: center; }
.cp-dome { position: relative; width: 138px; display: grid; justify-items: center; }
.cp-glass { display: flex; gap: 6px; align-items: center; justify-content: center; width: 112px; height: 104px; border-radius: 18px 18px 8px 8px; background: linear-gradient(90deg, rgb(255 255 255 / .22), rgb(255 255 255 / .05) 45%, rgb(255 255 255 / .14)); border: 2px solid rgb(255 255 255 / .35); box-shadow: inset 0 0 22px rgb(56 189 248 / .25); overflow: hidden; }
.cp-base { width: 132px; height: 14px; margin-top: -2px; border-radius: 0 0 14px 14px; background: linear-gradient(#14532d, #052e16); box-shadow: 0 0 22px 4px rgb(34 197 94 / .55); }
.cp-die { font-size: 50px; line-height: 1; color: #fff; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .5)); }
.cp-die.roll { animation: cp-bounce 340ms ease-in-out infinite; }
.cp-die.roll + .cp-die.roll { animation-delay: 120ms; }
@keyframes cp-bounce { 25% { transform: translateY(-22px) rotate(-18deg); } 55% { transform: translateY(0) rotate(14deg); } 80% { transform: translateY(-8px) rotate(-6deg); } }
.cp-total { position: absolute; right: -4px; top: -6px; min-width: 32px; padding: 2px 8px; border-radius: 999px; background: #fde68a; color: #4a3200; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.cp-total:empty { display: none; }
.cp-info { display: grid; gap: var(--sp-sm); min-width: 0; }
.cp-status { font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.cp-status.point { color: #fde68a; }
.cp-rolls { display: flex; gap: 5px; flex-wrap: wrap; }
.cp-chip { min-width: 28px; padding: 2px 7px; border-radius: 8px; background: var(--line); text-align: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.cp-chip.seven { background: var(--bad); color: #111; }
.cp-chip.first { outline: 1.5px solid #fde68a; }

.cp-felt { position: relative; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; padding: 8px; border-radius: 16px; background: radial-gradient(120% 120% at 50% 20%, #167a45, #0b4d2b 70%); border: 3px solid #3b2a16; box-shadow: inset 0 0 40px rgb(0 0 0 / .45); }
.cp-box { position: relative; display: grid; align-content: center; justify-items: center; gap: 1px; min-height: 66px; padding: 4px 2px; border-radius: 8px; border: 2px solid rgb(253 230 138 / .7); background: rgb(0 0 0 / .12); color: #fde68a; text-align: center; transition: background-color 140ms, transform 120ms var(--ease-out), box-shadow 140ms; }
.cp-box:not(:disabled):active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cp-box:not(:disabled):hover { background: rgb(253 230 138 / .16); } }
.cp-box:disabled { opacity: .45; cursor: not-allowed; }
.cp-box.has { background: rgb(253 230 138 / .14); }
.cp-n { font-size: 22px; font-weight: 900; line-height: 1; }
.cp-pay { font-size: 11px; font-weight: 700; opacity: .9; line-height: 1.2; text-wrap: balance; }
.cp-box.num { grid-column: span 2; }
.cp-box.num.point { box-shadow: 0 0 0 3px #fff, 0 0 18px rgb(255 255 255 / .5); }
.cp-box.fieldbet { grid-column: span 20; min-height: 54px; }
.cp-box.fieldbet .cp-n { font-size: 18px; letter-spacing: .12em; }
.cp-box.come { grid-column: span 8; }
.cp-box.hard { grid-column: span 2; }
.cp-box.hard .cp-n { font-size: 13px; }
.cp-box.any7 { grid-column: span 4; border-color: #f87171; color: #fecaca; }
.cp-box.pass { grid-column: span 20; min-height: 62px; }
.cp-box.pass .cp-n { font-size: 20px; letter-spacing: .1em; }
.cp-stack { position: absolute; z-index: 1; right: 4px; top: 4px; min-width: 28px; padding: 2px 6px; border-radius: 999px; background: #fde68a; color: #4a3200; border: 2px dashed #a16207; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cp-flag { position: absolute; z-index: 1; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: #38bdf8; color: #00253b; font-size: 11px; font-weight: 900; }
.cp-puck { position: absolute; z-index: 2; left: 4px; top: 4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 10px; font-weight: 900; box-shadow: 0 2px 5px rgb(0 0 0 / .5); pointer-events: none; }
.cp-puck.on { background: #fff; color: #111; }
.cp-puck.off { background: #111; color: #fff; border: 2px solid #fff; }
.cp-felt.takedown .cp-box.has { box-shadow: 0 0 0 3px var(--bad); }
.cp-felt.takedown .cp-box:not(.has) { opacity: .55; }
@media (max-width: 640px) {
  .cp-box.num { grid-column: span 4; min-height: 62px; }
  .cp-box.come { grid-column: span 10; }
  .cp-box.any7 { grid-column: span 10; }
  .cp-box.hard { grid-column: span 5; }
  .cp-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cp-rolls { justify-content: center; }
}
.cp-tray { display: grid; gap: var(--sp-sm); justify-items: center; }
.cp-tools { display: flex; gap: var(--sp-sm); flex-wrap: wrap; justify-content: center; }
.cp-tools .btn.on { background: var(--bad); color: #fff; box-shadow: none; }
.cp-roll { width: 100%; min-height: 56px; font-size: 18px; font-weight: 900; }
.cp-log { display: grid; gap: 3px; justify-items: center; }
.cp-line { font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-line.good { color: var(--good); } .cp-line.bad { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .cp-die.roll, .cf-coin.flip, .cp-marquee { animation: none; } }

/* double down madness and three card poker */
.dd-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-sm); }
.dd-wager { text-align: center; }
.dd-rules { margin: 0; }
.dd-controls, .tc-controls { display: grid; gap: var(--sp-sm); }
.dd-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-sm); }
.dd-actions .btn { min-height: 52px; font-weight: 800; padding: 0 var(--sp-sm); white-space: normal; line-height: 1.15; }
@media (max-width: 420px) { .dd-actions { grid-template-columns: 1fr 1fr; } .dd-actions .btn:last-child { grid-column: 1 / -1; } }
.tc-hand .pc { --w: 64px; }
.tc-summary { display: grid; gap: 3px; justify-items: center; min-height: 20px; }
.tc-line { font-weight: 800; font-variant-numeric: tabular-nums; }
.tc-line.good { color: var(--good); } .tc-line.bad { color: var(--bad); }
.tc-outcome { text-align: center; }
.tc-pp { display: grid; gap: var(--sp-xs); }
.tc-pp .bet-input { width: 100%; text-align: left; padding: 0 var(--sp-md); min-height: 44px; }
.tc-tables { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.tc-pay { display: flex; justify-content: space-between; gap: var(--sp-sm); font-size: 13px; padding: 2px 0; }
.tc-pay strong { font-variant-numeric: tabular-nums; }
.dd-actions.two { grid-template-columns: 1fr 1fr; }
