/* Real-world casino & table-game visual system for Kaspa Games Hub & Arcade Studio */

:root {
  --felt-green-deep: #072a1e;
  --felt-green-mid: #0b4a35;
  --felt-green-bright: #106649;
  --table-wood-dark: #3a2210;
  --table-wood-mid: #5c381c;
  --table-wood-light: #7a4d29;
  --table-gold: #f5a623;
  --table-gold-foil: #ffd700;
  --table-gold-glow: rgba(245, 166, 35, 0.35);
  --table-line-gold: rgba(255, 215, 120, 0.45);
}

/* Master Casino Felt Surface */
.casino-felt {
  background:
    radial-gradient(ellipse 120% 80% at 50% 15%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(circle at 50% 50%, var(--felt-green-bright) 0%, var(--felt-green-mid) 45%, var(--felt-green-deep) 100%);
  border: 4px solid var(--table-wood-mid);
  border-radius: 18px;
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.casino-felt::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--table-line-gold);
  border-radius: 14px;
  pointer-events: none;
}

/* Casino Leather Padded Rail */
.table-padded-rail {
  border: 8px solid #23160c;
  outline: 2px solid #5a381e;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 12px 28px rgba(0, 0, 0, 0.6);
}

/* Sound Mute Button */
.sound-toggle-btn {
  background: rgba(16, 22, 34, 0.8);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.sound-toggle-btn:hover {
  color: #fff;
  border-color: var(--gold);
}

/* —— Realistic Casino Chips —— */
.casino-chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.chip-token {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    inset 0 2px 3px rgba(255, 255, 255, 0.5),
    inset 0 -2px 3px rgba(0, 0, 0, 0.4);
  border: 3px dashed rgba(255, 255, 255, 0.8);
}
.chip-token::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: inherit;
  z-index: 0;
}
.chip-token span {
  position: relative;
  z-index: 1;
}
.chip-token:hover {
  transform: translateY(-3px) scale(1.05);
}
.chip-token.selected {
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 0 16px var(--table-gold-glow), 0 6px 12px rgba(0, 0, 0, 0.6);
  border-color: #fff;
}
.chip-token.c1 { background: radial-gradient(circle, #f8fafc 40%, #cbd5e1 100%); color: #0f172a; border-color: #3b82f6; }
.chip-token.c5 { background: radial-gradient(circle, #ef4444 40%, #b91c1c 100%); color: #fff; }
.chip-token.c25 { background: radial-gradient(circle, #22c55e 40%, #15803d 100%); color: #fff; }
.chip-token.c100 { background: radial-gradient(circle, #1e293b 40%, #0f172a 100%); color: #fbbf24; border-color: #fbbf24; }
.chip-token.c500 { background: radial-gradient(circle, #a855f7 40%, #6b21a8 100%); color: #fff; border-color: #fbbf24; }

.table-placed-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: radial-gradient(circle, #f59e0b, #d97706);
  color: #000;
  border: 1.5px dashed #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}
.table-placed-chip.c1 { background: radial-gradient(circle, #f8fafc 40%, #cbd5e1 100%); color: #0f172a; }
.table-placed-chip.c5 { background: radial-gradient(circle, #ef4444 40%, #b91c1c 100%); color: #fff; }
.table-placed-chip.c25 { background: radial-gradient(circle, #22c55e 40%, #15803d 100%); color: #fff; }
.table-placed-chip.c100 { background: radial-gradient(circle, #1e293b 40%, #0f172a 100%); color: #fbbf24; }
.table-placed-chip.c500 { background: radial-gradient(circle, #a855f7 40%, #6b21a8 100%); color: #fff; }

/* —— Playing Cards System —— */
.playing-card {
  width: 52px;
  height: 74px;
  border-radius: 6px;
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  box-shadow:
    0 2px 0 #94a3b8,
    0 8px 16px rgba(0, 0, 0, 0.45);
  position: relative;
  flex-shrink: 0;
  font-family: Georgia, "Times New Roman", serif;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.playing-card:hover {
  transform: translateY(-2px);
}
.playing-card.red { color: #dc2626; }
.playing-card.black { color: #0f172a; }
.playing-card .pc-corner {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.playing-card .pc-corner.top { top: 4px; left: 5px; }
.playing-card .pc-corner.bottom {
  bottom: 4px;
  right: 5px;
  transform: rotate(180deg);
}
.playing-card .pc-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
}
.playing-card.card-back {
  background: repeating-linear-gradient(
    45deg,
    #1e3a5f,
    #1e3a5f 6px,
    #102238 6px,
    #102238 12px
  );
  border: 1px solid #334155;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
.playing-card.card-back::after {
  content: "♠";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.25);
}

/* —— Blackjack Table Styling —— */
.bj-felt-layout {
  padding: 18px;
  position: relative;
}
.bj-felt-header {
  text-align: center;
  margin-bottom: 14px;
  pointer-events: none;
}
.bj-felt-header .bj-arc-title {
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  font-family: Georgia, serif;
}
.bj-felt-header .bj-felt-rules {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
}
.bj-felt-header .bj-insurance-line {
  font-size: 9px;
  color: rgba(255, 215, 120, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1px;
}
.bj-table-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bj-spot {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px dashed rgba(255, 215, 120, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
}
.bj-spot.active-hand {
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.3);
  background: rgba(0, 0, 0, 0.35);
}
.bj-hand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bj-score-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  font-family: var(--font-mono);
  width: fit-content;
}

/* Insurance Prompt Banner */
.insurance-banner {
  background: linear-gradient(135deg, #1e3a5f, #0d1b2a);
  border: 2px solid #38bdf8;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  color: #fff;
  font-size: 12px;
}

/* —— Roulette Realistic Felt Grid —— */
.roulette-felt-board {
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: none;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--table-wood-mid);
  border-radius: 12px;
  padding: 8px;
}
.rl-grid-main {
  display: grid;
  grid-template-columns: 48px repeat(12, 1fr) 48px;
  grid-template-rows: repeat(3, 38px);
  gap: 3px;
}
.rl-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
  font-family: var(--font-mono);
}
.rl-cell:hover {
  transform: scale(1.04);
  border-color: #fff;
  z-index: 2;
}
.rl-cell.red { background: linear-gradient(145deg, #dc2626, #991b1b); }
.rl-cell.black { background: linear-gradient(145deg, #262626, #0f0f0f); }
.rl-cell.green {
  background: linear-gradient(145deg, #059669, #047857);
  grid-row: 1 / span 3;
  grid-column: 1;
  font-size: 18px;
}
.rl-cell.col-bet {
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--text-secondary);
}
.rl-dozens-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr 1fr 48px;
  gap: 3px;
  margin-top: 2px;
}
.rl-outside-row {
  display: grid;
  grid-template-columns: 48px repeat(6, 1fr) 48px;
  gap: 3px;
  margin-top: 2px;
}
.rl-box-bet {
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.12s ease;
}
.rl-box-bet:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.rl-box-bet.red-box { background: rgba(220, 38, 38, 0.3); border-color: #dc2626; }
.rl-box-bet.black-box { background: rgba(0, 0, 0, 0.5); border-color: #64748b; }

/* Brass Dolly Winning Marker */
.roulette-dolly {
  position: absolute;
  width: 24px;
  height: 36px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 30%, #fff2a3, #d4a017 60%, #8b6914);
  border-radius: 6px 6px 12px 12px;
  border: 2px solid #ffe566;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 10;
  animation: dollyDrop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes dollyDrop {
  0% { transform: translate(-50%, -100px) scale(1.4); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* History Marquee */
.roulette-history-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
}
.rl-hist-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.rl-hist-badge.red { background: #dc2626; }
.rl-hist-badge.black { background: #1e293b; }
.rl-hist-badge.green { background: #059669; }

/* —— Authentic Craps Table Layout (classic casino diagram) —— */
.craps-felt-layout {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
}

.craps-board {
  position: relative;
  display: grid;
  grid-template-columns: 52px 44px minmax(0, 1fr) 48px minmax(168px, 0.36fr);
  grid-template-areas:
    "passv dontv inner ce props"
    "passv dontv inner ce props"
    "passv dontv inner ce props"
    "passh passh passh ce props";
  min-height: 360px;
  min-width: 680px;
  background: linear-gradient(180deg, #2f8a55 0%, #1f6b3e 55%, #185833 100%);
  border: 3px solid #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.craps-board [data-bet] {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.craps-pass-v {
  grid-area: passv;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #fff;
  border-right: 2px solid #fff;
  overflow: hidden;
}

.craps-dont-v {
  grid-area: dontv;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.05em;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.craps-inner {
  grid-area: inner;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px 6px 0 0;
  gap: 4px;
}

.craps-top-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 4px;
  min-height: 58px;
}

.craps-dont-come {
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-style: italic;
  color: #fff;
  padding: 4px;
}

.craps-place-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
}

.craps-come {
  flex: 1;
  min-height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #dc2626;
}

.craps-dont-h {
  height: 26px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: italic;
  color: #fff;
}

.craps-pass-h {
  grid-area: passh;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  border-top: 2px solid #fff;
}

.craps-ce-rail {
  grid-area: ce;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 8px 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.craps-board .table-placed-chip {
  z-index: 6;
}

.craps-ce-strip {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.craps-ce-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #fff;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.craps-ce-c .craps-ce-dot { background: #facc15; }
.craps-ce-e .craps-ce-dot { background: #86efac; }

.craps-props {
  grid-area: props;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 8px 4px;
  background: rgba(0, 0, 0, 0.18);
}

.craps-props-title {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.craps-prop-seven,
.craps-prop-craps {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  padding: 6px 4px;
  text-align: center;
  color: #fecaca;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.craps-prop-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.craps-prop-cell {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 42px;
}

.craps-prop-cell strong {
  font-size: 10px;
  color: #fff;
  font-weight: 700;
}

.craps-prop-cell .prop-odds {
  font-size: 9px;
  color: #fde68a;
  visibility: visible;
}

.craps-board .craps-big-68 {
  grid-area: passv;
  position: absolute;
  left: 8px;
  bottom: 40px;
  width: 58px;
  pointer-events: none;
  z-index: 3;
}

.craps-board .craps-big-num {
  pointer-events: auto;
  color: #dc2626;
}

.craps-board [data-bet]:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.55);
}

.craps-board .craps-inner {
  padding: 6px 6px 0 0;
  height: auto;
  gap: 4px;
}

.craps-board .craps-ce-strip.craps-ce-c,
.craps-board .craps-ce-strip.craps-ce-e {
  width: auto;
  height: auto;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  font-size: inherit;
  color: inherit;
}

@media (max-width: 720px) {
  .craps-board {
    grid-template-columns: 28px 22px minmax(0, 1fr);
    grid-template-areas:
      "passv dontv inner"
      "passv dontv inner"
      "passh passh passh"
      "ce ce ce"
      "props props props";
    min-height: 0;
    min-width: 0;
  }

  .craps-ce-rail {
    flex-direction: row;
    grid-template-columns: 1fr 1fr;
    min-height: 48px;
    padding: 6px;
  }

  .craps-ce-strip {
    flex-direction: row;
    gap: 6px;
    justify-content: center;
  }

  .craps-top-row {
    grid-template-columns: 1fr;
  }

  .craps-dont-come {
    min-height: 36px;
  }

  .craps-place-row {
    min-height: 44px;
  }

  .craps-props {
    min-height: 180px;
  }
}
.craps-casino-wrap {
  background-color: #0d3d28;
}
.craps-casino-wrap:not(.craps-reference-art) {
  background-image: url("/ui/games/assets/craps-table-reference.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
.craps-classic-grid {
  display: grid;
  grid-template-columns: 1fr 36px minmax(120px, 28%);
  gap: 6px;
  align-items: stretch;
  min-height: 280px;
}
.craps-main-panel {
  position: relative;
  min-width: 0;
}
.craps-pass-shell {
  position: relative;
  height: 100%;
  min-height: 260px;
  padding: 28px 12px 36px 36px;
  box-sizing: border-box;
}
.craps-pass-edge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  text-align: center;
  background: rgba(0, 0, 0, 0.08);
}
.craps-pass-edge:hover,
.craps-dont-edge:hover {
  background: rgba(255, 255, 255, 0.12);
}
.craps-pass-vertical {
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.craps-pass-horizontal {
  left: 28px;
  right: 0;
  bottom: 0;
  height: 28px;
}
.craps-dont-edge {
  position: absolute;
  font-size: 9px;
  font-style: italic;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
}
.craps-dont-vertical {
  left: 28px;
  top: 0;
  bottom: 28px;
  width: 22px;
  writing-mode: vertical-rl;
}
.craps-dont-horizontal {
  left: 28px;
  right: 0;
  bottom: 28px;
  height: 18px;
}
.craps-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 4px 4px 26px;
}
.craps-dont-come-bar {
  border: 1px solid #fff;
  padding: 4px 8px;
  font-size: 10px;
  font-style: italic;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.craps-place-classic {
  margin-top: 2px;
}
.craps-place-classic .place-num {
  font-size: 14px;
  font-family: Georgia, serif;
  color: #fff;
}
.craps-come-zone {
  flex: 1;
  min-height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: 0.12em;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.08);
}
.craps-come-zone:hover {
  background: rgba(220, 38, 38, 0.15);
}
.craps-field-classic {
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 6px 8px;
  cursor: pointer;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
}
.craps-field-classic .craps-field-title {
  font-size: 22px;
  color: #facc15;
  font-family: Georgia, serif;
  letter-spacing: 0.15em;
}
.craps-field-classic .craps-field-numbers {
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: #fef08a;
}
.craps-field-classic .field-dbl {
  font-weight: 800;
  border: 2px solid #facc15;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.craps-field-classic .field-dbl-note {
  font-size: 8px;
  color: #fef9c3;
  display: block;
}
.craps-field-classic .field-mid {
  font-weight: 700;
  margin: 0 6px;
}
.craps-big-68 {
  position: absolute;
  left: 4px;
  bottom: 36px;
  width: 52px;
  text-align: center;
  pointer-events: none;
}
.craps-big-label {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
}
.craps-big-num {
  font-size: 26px;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
}
.craps-ce-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}
.craps-ce-pair {
  display: flex;
  gap: 3px;
  justify-content: center;
}
.craps-ce-c,
.craps-ce-e {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.craps-ce-c {
  background: #15803d;
  color: #fff;
  border: 1px solid #fff;
}
.craps-ce-e {
  background: #facc15;
  color: #1a1208;
  border: 1px solid #fff;
}
.craps-props-panel {
  border: 3px solid #fff;
  border-radius: 16px;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.craps-props-title {
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  color: #fff;
  letter-spacing: 0.08em;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 2px 4px;
  margin-bottom: 4px;
}
.craps-props-classic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.craps-prop-row {
  text-align: center;
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
  color: #dc2626;
  font-size: 11px;
}
.craps-prop-row em {
  font-style: italic;
  display: block;
}
.craps-prop-row span {
  color: #fff;
  font-size: 9px;
}
.craps-prop-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.craps-prop-cell {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 8px 2px;
  text-align: center;
  cursor: pointer;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.craps-prop-cell .prop-odds {
  color: #fff;
  font-size: 9px;
}
@media (max-width: 720px) {
  .craps-classic-grid {
    grid-template-columns: 1fr;
  }
  .craps-ce-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .craps-reference-art .craps-ce-column {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
  }
}

@media (max-width: 640px) {
  .lobby-table-preview {
    padding: 10px 8px;
    margin: 6px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .roulette-felt-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .rl-grid-main {
    min-width: min(100%, 520px);
    grid-template-columns: 40px repeat(12, minmax(22px, 1fr)) 40px;
    grid-template-rows: repeat(3, 34px);
  }

  .rl-dozens-row {
    min-width: min(100%, 520px);
    grid-template-columns: 40px 1fr 1fr 1fr 40px;
  }

  .rl-outside-row {
    min-width: min(100%, 520px);
    grid-template-columns: 40px repeat(6, 1fr) 40px;
  }

  .rl-cell {
    font-size: 12px;
  }

  .craps-reference-art.craps-casino-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .craps-reference-art .craps-table-stage {
    min-width: min(100%, 320px);
  }

  .craps-felt-layout.craps-casino-wrap:not(.craps-reference-art) .craps-top-place-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .slot-machine {
    max-width: 100%;
  }

  .casino-felt-wrap,
  .realistic-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.craps-puck-row {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  margin-bottom: 4px;
}
.craps-puck-rail {
  position: relative;
  min-width: 120px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 215, 120, 0.35);
  border-radius: 10px;
  padding: 8px 16px;
}
.craps-top-place-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
/* Chip stacks anchor to each bet cell, not the whole table shell */
.craps-felt-layout .craps-place-box,
.craps-felt-layout .craps-prop-cell,
.craps-felt-layout .craps-prop-row[data-bet],
.craps-felt-layout .craps-ce-c,
.craps-felt-layout .craps-ce-e,
.craps-felt-layout .craps-big-num,
.craps-felt-layout .craps-dont-come-bar,
.craps-felt-layout .craps-come-zone,
.craps-felt-layout .craps-field-classic {
  position: relative;
  z-index: 2;
}

.craps-place-box {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--table-line-gold);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.craps-place-box:hover {
  background: rgba(255, 215, 120, 0.1);
  border-color: #fff;
}
.craps-place-box.point-active {
  background: rgba(251, 191, 36, 0.25);
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}
.craps-place-box .place-num {
  font-size: 22px;
  font-weight: 800;
  color: #fbbf24;
  font-family: Georgia, serif;
}
.craps-place-box .place-odds {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* The Authentic Craps Puck (ON / OFF) */
.craps-puck {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: absolute;
  top: -12px;
  right: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  z-index: 10;
  transition: all 0.35s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.craps-puck.on {
  background: #ffffff;
  color: #000000;
  border-color: #ffd700;
}
.craps-puck.off {
  background: #111111;
  color: #ffffff;
  border-color: #64748b;
}

/* Craps Main Bars */
.craps-main-bars {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 10px;
}
.craps-come-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.craps-come-bet {
  border-color: #38bdf8;
  color: #bae6fd;
}
.craps-dont-come-bet {
  border-color: #f472b6;
  color: #fbcfe8;
}
.craps-line-bet {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--table-line-gold);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  font-weight: 800;
  font-size: 15px;
  color: #fbbf24;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.craps-line-bet:hover {
  background: rgba(255, 215, 120, 0.12);
  border-color: #fff;
}
.craps-field-bet {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--table-line-gold);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: all 0.15s ease;
}
.craps-field-bet:hover {
  background: rgba(255, 215, 120, 0.12);
}
.craps-field-title {
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.1em;
}
.craps-field-numbers {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}
.craps-field-numbers span.double-pay {
  color: #38bdf8;
  font-size: 18px;
}

/* Center Propositions Grid */
.craps-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.craps-prop-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  position: relative;
  transition: all 0.15s ease;
}
.craps-prop-box:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--table-gold);
}
.craps-prop-box .prop-odds {
  font-size: 9px;
  color: #fbbf24;
  display: block;
}

/* Translucent Red Casino Dice */
.casino-red-die {
  width: 58px;
  height: 58px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}
.casino-red-die .die-face {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(153, 27, 27, 0.95));
  border: 2px solid #b91c1c;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}
.casino-red-die .die-face .pip {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* —— Texas Hold'em Poker Table —— */
.poker-oval-table {
  background:
    radial-gradient(ellipse 110% 70% at 50% 50%, #0d4a7a 0%, #082d4c 55%, #051a2d 100%);
  border: 8px solid #23160c;
  outline: 2px solid #5a381e;
  border-radius: 60px;
  padding: 20px;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.7),
    0 12px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}
.poker-oval-table::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 54px;
  pointer-events: none;
}
.poker-pot-badge {
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #fbbf24;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  font-family: var(--font-mono);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.poker-community-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  min-height: 74px;
}
.dealer-button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  border: 2px solid #000;
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Gold Coin 3D */
.coin-stage {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 720px;
  margin: 4px 0;
}
.coin-3d {
  width: 76px;
  height: 76px;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.coin-3d.flipping {
  animation: coinFlipSpin 0.85s ease-in-out infinite;
}
.coin-3d.show-tails {
  transform: rotateY(180deg);
}
@keyframes coinFlipSpin {
  0% { transform: rotateY(0deg) translateY(0); }
  40% { transform: rotateY(540deg) translateY(-8px); }
  100% { transform: rotateY(1080deg) translateY(0); }
}
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 3px solid #c9a227;
  box-shadow:
    inset 0 3px 8px rgba(255, 255, 255, 0.55),
    inset 0 -4px 10px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.45);
}
.coin-face.heads {
  background: radial-gradient(circle at 35% 30%, #ffe566, #d4a017 55%, #8b6914);
  color: #3d2a06;
  transform: rotateY(0deg) translateZ(3px);
}
.coin-face.tails {
  background: radial-gradient(circle at 35% 30%, #e8e8e8, #a8a8a8 55%, #606060);
  color: #222;
  transform: rotateY(180deg) translateZ(3px);
}
.coin-face .coin-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* 3D Dice Pad */
.lobby-dice-pad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.lobby-die-btn {
  padding: 6px 4px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.lobby-die-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.lobby-die-btn.selected {
  border-color: #f5a623;
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.35);
  transform: translateY(-2px);
}
.lobby-die {
  width: 40px;
  height: 40px;
  position: relative;
  transform-style: preserve-3d;
  pointer-events: none;
}
.lobby-die-face {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #fafafa, #d8d8d8);
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 4px;
  backface-visibility: hidden;
}
.lobby-die-face .pip {
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
  margin: auto;
  visibility: hidden;
}
.lobby-die-face .pip.on { visibility: visible; }
.lobby-die-face.f1 { transform: rotateY(0) translateZ(20px); }
.lobby-die-face.f2 { transform: rotateY(180deg) translateZ(20px); }
.lobby-die-face.f3 { transform: rotateY(90deg) translateZ(20px); }
.lobby-die-face.f4 { transform: rotateY(-90deg) translateZ(20px); }
.lobby-die-face.f5 { transform: rotateX(90deg) translateZ(20px); }
.lobby-die-face.f6 { transform: rotateX(-90deg) translateZ(20px); }

/* Mini Lobby Previews */
.lobby-table-preview {
  padding: 14px;
  margin: 8px 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lobby-craps-dice { display: flex; gap: 20px; }
.mini-roulette {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background-image: url("/ui/games/assets/roulette-wheel.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 3px solid #5c3d1e;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.mini-craps-table {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1.55;
  background: url("/ui/games/assets/craps-table-reference.png") center / contain no-repeat;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Photo reference underlay: keep hit targets, hide duplicate painted labels */
.craps-reference-art .craps-pass-edge,
.craps-reference-art .craps-dont-edge,
.craps-reference-art .craps-dont-come-bar,
.craps-reference-art .craps-come-zone,
.craps-reference-art .craps-field-classic,
.craps-reference-art .craps-place-box .place-num,
.craps-reference-art .craps-big-label,
.craps-reference-art .craps-big-num,
.craps-reference-art .craps-ce-c,
.craps-reference-art .craps-ce-e,
.craps-reference-art .craps-props-title,
.craps-reference-art .craps-prop-row,
.craps-reference-art .craps-prop-cell {
  color: transparent !important;
  text-shadow: none;
  background: transparent;
}
.craps-reference-art .craps-pass-edge,
.craps-reference-art .craps-dont-edge,
.craps-reference-art .craps-dont-come-bar,
.craps-reference-art .craps-come-zone,
.craps-reference-art .craps-field-classic,
.craps-reference-art .craps-place-box,
.craps-reference-art .craps-prop-row,
.craps-reference-art .craps-prop-cell {
  border-color: rgba(255, 255, 255, 0.1);
}
.craps-reference-art .craps-field-classic .field-dbl,
.craps-reference-art .craps-field-classic .field-dbl-note,
.craps-reference-art .craps-field-classic .field-mid {
  visibility: hidden;
}
.craps-reference-art .craps-ce-c,
.craps-reference-art .craps-ce-e {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}
.craps-reference-art .craps-props-panel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}
.craps-reference-art .craps-prop-row span,
.craps-reference-art .prop-odds {
  visibility: hidden;
}
.craps-reference-art [data-bet]:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.45);
}
.craps-reference-art .craps-classic-grid {
  min-height: 320px;
  background: transparent;
}
.craps-reference-art .craps-main-panel,
.craps-reference-art .craps-pass-shell,
.craps-reference-art .craps-inner {
  background: transparent;
}
.craps-reference-art .craps-place-box {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.craps-reference-art .craps-place-box .place-odds,
.craps-reference-art .place-odds {
  display: none !important;
}
.craps-reference-art .craps-pass-edge,
.craps-reference-art .craps-dont-edge,
.craps-reference-art .craps-dont-come-bar,
.craps-reference-art .craps-come-zone,
.craps-reference-art .craps-field-classic,
.craps-reference-art .craps-props-panel {
  border: none !important;
}
.craps-reference-art .craps-puck-rail {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 215, 120, 0.2);
}

/* Reference PNG is 851×597 — percentage hit map aligned to art */
.craps-reference-art.craps-casino-wrap {
  width: min(100%, 851px);
  margin: 0 auto;
}
.craps-reference-art .craps-table-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 851 / 597;
  margin-top: 4px;
  background-color: #0d3d28;
  background-image: url("/ui/games/assets/craps-table-reference.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
}
.craps-reference-art .craps-classic-grid {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  gap: 0;
}
.craps-reference-art .craps-main-panel,
.craps-reference-art .craps-pass-shell,
.craps-reference-art .craps-inner {
  position: absolute;
  inset: 0;
  padding: 0;
  min-height: 0;
  height: auto;
}
.craps-reference-art .craps-pass-vertical {
  left: 1.6%;
  top: 11%;
  width: 3.8%;
  height: 76%;
  transform: none;
  writing-mode: horizontal-tb;
}
.craps-reference-art .craps-pass-horizontal {
  left: 5.5%;
  right: 27%;
  bottom: 3.5%;
  height: 5.5%;
}
.craps-reference-art .craps-dont-vertical {
  left: 5.8%;
  top: 13%;
  width: 3.2%;
  height: 70%;
  writing-mode: horizontal-tb;
}
.craps-reference-art .craps-dont-horizontal {
  left: 9%;
  right: 27%;
  bottom: 9.5%;
  height: 4.5%;
}
.craps-reference-art .craps-dont-come-bar {
  left: 9.5%;
  right: 27%;
  top: 11.5%;
  height: 5%;
  position: absolute;
}
.craps-reference-art .craps-top-place-row {
  position: absolute;
  left: 10%;
  right: 27%;
  top: 19%;
  height: 11%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.craps-reference-art .craps-come-zone {
  position: absolute;
  left: 10%;
  right: 27%;
  top: 33%;
  height: 8%;
}
.craps-reference-art .craps-field-classic {
  position: absolute;
  left: 10%;
  right: 27%;
  top: 44%;
  height: 17%;
}
.craps-reference-art .craps-big-68 {
  position: absolute;
  left: 12%;
  width: 22%;
  top: 66%;
  height: 14%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  pointer-events: none;
}
.craps-reference-art .craps-big-num {
  pointer-events: auto;
}
.craps-reference-art .craps-ce-column {
  position: absolute;
  top: 14%;
  right: 23.5%;
  width: 4.5%;
  height: 72%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.craps-reference-art .craps-props-panel {
  position: absolute;
  top: 7%;
  right: 1.5%;
  width: 20%;
  height: 86%;
  display: flex;
  flex-direction: column;
}
.craps-reference-art .craps-props-classic {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
}
.lobby-keno-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  width: 100%;
  max-width: 280px;
}
.lobby-keno-grid span {
  aspect-ratio: 1;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lobby-keno-grid span.pick {
  background: #1d4ed8;
  border-color: #93c5fd;
}
.chess-board-preview {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  max-width: 240px;
  margin: 8px auto;
  border: 3px solid #4a3728;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.chess-board-preview span {
  aspect-ratio: 1;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chess-board-preview span.light { background: #e8d4b0; }
.chess-board-preview span.dark { background: #7a5c3a; color: #1a1208; }
.vs-cpu-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  max-width: 280px;
  margin: 10px auto;
  border: 3px solid #4a3728;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.vs-cpu-cell {
  aspect-ratio: 1;
  border: none;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-cpu-cell.light { background: #e8d4b0; }
.vs-cpu-cell.dark { background: #7a5c3a; color: #1a1208; }
.vs-cpu-cell:disabled { cursor: default; opacity: 0.35; }
.vs-cpu-cell.selected { box-shadow: inset 0 0 0 3px #38bdf8; }
.vs-cpu-cell.legal { box-shadow: inset 0 0 0 3px #4ade80; }
.vs-cpu-status {
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}
.checkers-play .vs-cpu-cell.dark { font-size: 18px; color: #f8fafc; }

.lobby-slots-mini {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
}
.lobby-slot-reel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 64px;
  font-size: 28px;
  background: linear-gradient(180deg, #1a1028, #0a0610);
  border: 2px solid #c9a227;
  border-radius: 8px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}

.slot-machine { max-width: 420px; margin: 0 auto; }
.slot-reels {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.slot-reel-window {
  width: 88px;
  height: 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1028 0%, #0a0610 45%, #1a1028 100%);
  border: 3px solid #5c4a1e;
  border-radius: 10px;
  box-shadow:
    inset 0 4px 16px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(201, 162, 39, 0.15);
  position: relative;
}
.slot-reel-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.slot-reel-shine {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 96px;
  margin-top: -48px;
  pointer-events: none;
  z-index: 2;
  border-top: 2px solid rgba(250, 204, 21, 0.55);
  border-bottom: 2px solid rgba(250, 204, 21, 0.55);
  background: linear-gradient(
    180deg,
    rgba(250, 204, 21, 0.08) 0%,
    rgba(250, 204, 21, 0.18) 45%,
    rgba(250, 204, 21, 0.08) 100%
  );
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.25);
}
.slot-reel-window.reel-active {
  box-shadow:
    inset 0 4px 16px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(250, 204, 21, 0.35);
}
.slot-reel-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.slot-reel-strip.spinning .slot-symbol-face {
  filter: blur(1.5px);
  opacity: 0.92;
}
.slot-symbol {
  height: 96px;
  flex: 0 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 800;
  color: #fef3c7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.slot-symbol-face {
  font-size: 42px;
  line-height: 1;
}
.slot-symbol-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #7dd3fc;
  font-weight: 700;
}
.slot-symbol.cyber .slot-symbol-face {
  font-size: 36px;
  color: #fde68a;
  text-shadow:
    0 0 12px rgba(56, 189, 248, 0.55),
    0 0 24px rgba(168, 85, 247, 0.35);
}
.slot-symbol.neon .slot-symbol-face {
  text-shadow:
    0 0 10px rgba(244, 114, 182, 0.7),
    0 0 18px rgba(56, 189, 248, 0.45);
}
.slot-cabinet {
  animation: slot-cabinet-glow 3.5s ease-in-out infinite;
}
@keyframes slot-cabinet-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); }
}
.slot-theme-fruit .slot-cabinet {
  background: linear-gradient(180deg, #4a2c14 0%, #2a180c 55%, #1a0f08 100%);
  border-color: #d4a017;
}
.slot-theme-neon .slot-cabinet {
  background: linear-gradient(180deg, #1a0a2e 0%, #0d0518 50%, #1a0a2e 100%);
  border-color: #f472b6;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    inset 0 0 32px rgba(244, 114, 182, 0.12),
    0 0 24px rgba(56, 189, 248, 0.15);
}
.slot-machine.slot-win .slot-cabinet {
  animation: slot-win-pulse 0.55s ease-in-out 3;
  border-color: #fde047;
}
@keyframes slot-win-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(250, 204, 21, 0.35); }
  50% { box-shadow: 0 0 28px rgba(250, 204, 21, 0.75); }
}
.slot-theme-cyber .slot-cabinet {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 28px rgba(56, 189, 248, 0.12);
}
.spanish21-table {
  padding: 14px;
  background: linear-gradient(160deg, #0f3d2e 0%, #062218 100%);
  border: 3px solid #5c3d1e;
  border-radius: 14px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.video-poker-machine {
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #4c1d95;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.bingo-board-wrap {
  padding: 12px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-radius: 14px;
  border: 2px solid #334155;
  max-width: 320px;
  margin: 0 auto;
}
.bingo-cell:not(.marked):hover {
  background: rgba(56, 189, 248, 0.15);
}
.slot-paytable {
  font-size: 11px;
  color: #94a3b8;
  text-align: left;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}
.slot-pay-title { font-weight: 700; color: #cbd5e1; margin-bottom: 4px; }
.slot-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}
.slot-status {
  margin-top: 10px;
  font-size: 13px;
  color: #e2e8f0;
  text-align: center;
}

.solitaire-table {
  max-width: 100%;
  padding: 4px 0 12px;
}
.sol-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.sol-stock.pile,
.sol-waste.pile,
.sol-foundation.pile,
.sol-free.pile {
  min-width: 56px;
  min-height: 80px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  font-size: 11px;
  color: #94a3b8;
  padding: 4px;
}
.sol-stock {
  cursor: pointer;
  border-style: solid;
  border-color: rgba(201, 162, 39, 0.45);
  color: #fde68a;
  font-weight: 600;
}
.sol-foundations,
.sol-freecells {
  display: flex;
  gap: 6px;
}
.sol-tableau {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
}
.sol-tableau.freecell-cols .sol-column { min-width: 52px; }
.sol-column {
  position: relative;
  min-width: 58px;
  min-height: 100px;
}
.sol-card-btn {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.sol-card-btn.selected .playing-card {
  box-shadow: 0 0 0 3px #38bdf8;
}
.sol-card-btn.small .playing-card {
  width: 48px;
  height: 68px;
  font-size: 11px;
}
.sol-card-btn.blocked { opacity: 0.55; cursor: not-allowed; }
.sol-card-btn.empty { pointer-events: none; }
.sol-status {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
}
.sol-pyramid { text-align: center; margin-bottom: 10px; }
.sol-pyramid-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}
.sol-pyramid-pad { width: 52px; }
.sol-pyramid-gap { width: 52px; height: 68px; }
.sol-pyramid-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.baccarat-felt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(145deg, #0d3d2e, #062018);
  border: 3px solid #5c3d1e;
  border-radius: 12px;
  margin-bottom: 12px;
}
.baccarat-zone { text-align: center; }
.baccarat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fde68a;
  margin-bottom: 6px;
}
.baccarat-cards {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 90px;
}
.baccarat-points {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
}
.baccarat-bets .baccarat-bet.active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}
.casino-hand-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 88px;
  margin: 8px 0;
}
.casino-extra-status {
  font-size: 13px;
  color: #cbd5e1;
  text-align: center;
  margin: 10px 0;
}
.video-poker-cards {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.video-poker-slot {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}
.vp-card-mount {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-card-placeholder {
  width: 56px;
  height: 80px;
  border: 2px dashed #475569;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 22px;
  background: rgba(15, 23, 42, 0.6);
}
.video-poker-machine .playing-card {
  width: 56px;
  height: 80px;
  font-size: 14px;
}
.video-poker-machine .studio-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.vp-hold {
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid #4a5568;
  background: #1a2332;
  color: #e2e8f0;
  cursor: pointer;
}
.vp-hold.held {
  border-color: #4ade80;
  color: #4ade80;
}
.vp-paytable {
  font-size: 11px;
  color: #94a3b8;
  max-width: 320px;
  margin: 0 auto 12px;
}
.bingo-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 280px;
  margin: 0 auto 6px;
  text-align: center;
}
.bingo-letter {
  font-weight: 800;
  color: #fde68a;
  font-size: 14px;
}
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 280px;
  margin: 0 auto 12px;
}
.bingo-cell {
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: #1a2332;
  color: #f8fafc;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.bingo-cell.marked {
  background: linear-gradient(145deg, #0d6b2e, #065f46);
  border-color: #4ade80;
}
.bingo-ball {
  width: 64px;
  height: 64px;
  margin: 8px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef3c7, #c9a227);
  color: #1a1208;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
#arcadeStudio .studio-casino-extra-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.pot-display.slot-frame {
  border: 3px solid #5c3d1e;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent),
    linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(168, 85, 247, 0.1));
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}
