:root {
  --bg-obsidian: #060709;
  --bg-charcoal: #0d1014;
  --bg-panel: #13181e;
  --bg-panel-elevated: #1a2029;
  --felt-emerald: #0d2a23;
  --felt-deep: #071915;
  --gold-bright: #f6e0a4;
  --gold-primary: #d6aa54;
  --gold-warm: #b5832e;
  --gold-deep: #785318;
  --amber-glow: #ea8d38;
  --champagne: #f5efe2;
  --text-muted: #939aa4;
  --text-dim: #5e6670;
  --crimson: #c9413b;
  --crimson-deep: #85221e;
  --emerald: #44b883;
  --border-gold: rgba(214, 170, 84, 0.24);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --shadow-luxe: 0 24px 60px rgba(0, 0, 0, 0.65);
  --ease-out: cubic-bezier(0.2, 0.85, 0.25, 1);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-obsidian);
  color: var(--champagne);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================
   APP SHELL & AMBIENT LIGHTING
   ========================================================== */
.casino-app {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 170, 84, 0.11), transparent 46%),
    radial-gradient(circle at 12% 35%, rgba(16, 76, 61, 0.22), transparent 45%),
    radial-gradient(circle at 88% 75%, rgba(145, 76, 26, 0.12), transparent 50%),
    linear-gradient(180deg, #090b0f 0%, #050608 100%);
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.glow-gold {
  width: 48vw;
  height: 48vw;
  top: -22vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(214, 170, 84, 0.14), transparent 68%);
}

.glow-emerald {
  width: 44vw;
  height: 44vw;
  bottom: -18vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(25, 114, 92, 0.16), transparent 68%);
}

.glow-crimson {
  width: 32vw;
  height: 32vw;
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(201, 65, 59, 0.06), transparent 70%);
}

.surface-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.65px, transparent 0.65px);
  background-size: 14px 14px;
}

/* ==========================================================
   HEADER & UNIFIED WALLET
   ========================================================== */
.casino-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px;
  background: rgba(8, 10, 14, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.48);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 4px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  transition: transform 0.25s var(--ease-out);
}

.brand-identity:hover {
  transform: translateY(-1px);
}

.brand-crest {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 12px rgba(214, 170, 84, 0.28));
}

.brand-crest svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.24em;
  background: linear-gradient(120deg, #fff5d6 0%, #DFB45B 55%, #9d7125 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  margin-top: 1px;
}

.game-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 23, 30, 0.9);
  border: 1px solid var(--border-subtle);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.24s var(--ease-out);
}

.nav-pill:hover {
  color: var(--champagne);
  background: rgba(255, 255, 255, 0.04);
}

.nav-pill.is-active {
  color: #161107;
  background: linear-gradient(130deg, #f5df9e 0%, #d6aa54 55%, #a87825 100%);
  border-color: rgba(255, 241, 198, 0.65);
  box-shadow: 0 6px 20px rgba(214, 170, 84, 0.28);
}

.nav-icon {
  font-size: 13px;
}

.wallet-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.95), rgba(12, 15, 20, 0.95));
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.wallet-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.wallet-amount {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--champagne);
  white-space: nowrap;
}

.wallet-amount.is-gold {
  color: var(--gold-bright);
}

.wallet-amount.is-emerald {
  color: #6fe3a8;
}

.wallet-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.09);
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(214, 170, 84, 0.1);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.22s var(--ease-out);
}

.utility-btn:hover {
  background: rgba(214, 170, 84, 0.22);
  transform: translateY(-1px);
}

.utility-btn.icon-only {
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* ==========================================================
   VIEW SECTIONS & TRANSITIONS
   ========================================================== */
.view-section {
  display: none;
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 24px 28px 40px;
  animation: viewEnter 0.42s var(--ease-out) both;
}

.view-section.is-active {
  display: block;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   VIEW 1: BENSINO LOBBY
   ========================================================== */
.lobby-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 36px;
  padding: 42px 46px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 45%, rgba(214, 170, 84, 0.18), transparent 52%),
    radial-gradient(circle at 20% 90%, rgba(16, 86, 68, 0.32), transparent 55%),
    linear-gradient(135deg, rgba(22, 27, 34, 0.94), rgba(9, 12, 16, 0.97));
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-luxe), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(214, 170, 84, 0.1);
  border: 1px solid rgba(214, 170, 84, 0.3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.gold-gradient-text {
  background: linear-gradient(120deg, #fff5d1 0%, #e0b55c 48%, #b37e24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.gold-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 239, 194, 0.65);
  background: linear-gradient(125deg, #f3dc99 0%, #d4a64c 52%, #9e6f1e 100%);
  color: #171208;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(214, 170, 84, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, filter 0.25s ease;
}

.gold-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 36px rgba(214, 170, 84, 0.36);
}

.ghost-cta {
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: rgba(255, 255, 255, 0.03);
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out);
}

.ghost-cta:hover {
  background: rgba(214, 170, 84, 0.12);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.vip-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.stat-box strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--champagne);
}

/* Hero Art Showcase */
.hero-showcase {
  position: relative;
  height: 310px;
  display: grid;
  place-items: center;
}

.showcase-halo {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 1px solid rgba(214, 170, 84, 0.28);
  box-shadow: inset 0 0 50px rgba(214, 170, 84, 0.12);
  animation: slowSpin 26s linear infinite;
}

.showcase-wheel-ring {
  position: absolute;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  border: 2px dashed rgba(214, 170, 84, 0.32);
  animation: slowSpinReverse 20s linear infinite;
}

.showcase-card {
  position: absolute;
  width: 116px;
  height: 164px;
  border-radius: 13px;
  padding: 11px;
  background: linear-gradient(145deg, #fffdf9 0%, #e7dfd0 100%);
  color: #16171a;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(20, 20, 20, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-card.card-left {
  transform: rotate(-14deg) translate(-34px, 6px);
  animation: floatCardLeft 6s ease-in-out infinite;
}

.showcase-card.card-right {
  transform: rotate(12deg) translate(38px, -6px);
  animation: floatCardRight 6s ease-in-out infinite;
}

.sc-corner {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sc-corner span {
  font-size: 13px;
}

.sc-corner.bottom {
  align-self: flex-end;
  transform: rotate(180deg);
}

.sc-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 52px;
}

.is-red {
  color: var(--crimson);
}

.showcase-chip {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
}

.showcase-chip.chip-gold {
  bottom: 18px;
  left: 22%;
  background: radial-gradient(circle at 30% 30%, #8a4ca8, #3f1d52);
  color: var(--gold-bright);
}

.showcase-chip.chip-emerald {
  top: 22px;
  right: 18%;
  background: radial-gradient(circle at 30% 30%, #2f9e79, #15523e);
  color: #fff;
}

/* Lobby Games Grid */
.lobby-games-section {
  margin-top: 34px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-kicker {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.subtle-link-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 0 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.subtle-link-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24, 30, 38, 0.94), rgba(12, 15, 20, 0.98));
  border: 1px solid var(--border-gold);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.7), 0 0 28px rgba(214, 170, 84, 0.16);
}

.game-card-visual {
  height: 175px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.visual-blackjack {
  background: radial-gradient(circle at 50% 40%, #16493b 0%, #081915 78%);
}

.visual-slots {
  background: radial-gradient(circle at 50% 35%, #4a3212 0%, #120d07 80%);
}

.visual-roulette {
  background: radial-gradient(circle at 50% 40%, #461717 0%, #0f0809 80%);
}

.visual-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 9, 12, 0.78);
  border: 1px solid rgba(214, 170, 84, 0.35);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.mini-cards-art {
  display: flex;
  align-items: center;
}

.mini-card {
  width: 66px;
  height: 94px;
  border-radius: 9px;
  background: linear-gradient(140deg, #fffdf8, #e6decb);
  color: #151618;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.mini-card.mc-1 {
  transform: rotate(-10deg) translateX(8px);
}

.mini-card.mc-2 {
  transform: rotate(10deg) translateX(-6px);
}

.mini-card b {
  font-size: 26px;
  align-self: center;
}

.mini-reels-art {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid rgba(246, 224, 164, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.mini-reels-art span {
  width: 52px;
  height: 62px;
  border-radius: 9px;
  background: linear-gradient(180deg, #241b0f, #110d07);
  border: 1px solid rgba(214, 170, 84, 0.35);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--gold-bright);
}

.mini-wheel-art .mw-outer {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 6px solid #c99d45;
  background: conic-gradient(
    #1f8a58 0deg 15deg,
    #b8322c 15deg 45deg,
    #171a1f 45deg 75deg,
    #b8322c 75deg 105deg,
    #171a1f 105deg 135deg,
    #b8322c 135deg 165deg,
    #171a1f 165deg 195deg,
    #b8322c 195deg 225deg,
    #171a1f 225deg 255deg,
    #b8322c 255deg 285deg,
    #171a1f 285deg 315deg,
    #b8322c 315deg 345deg,
    #171a1f 345deg 360deg
  );
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.mini-wheel-art .mw-inner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b2113, #110d08);
  border: 2px solid var(--gold-bright);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
}

.game-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 7px;
}

.game-card-body h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.game-card-body p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.game-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: var(--text-muted);
}

.play-link {
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================
   SHARED CASINO CHIPS
   ========================================================== */
.chip-rack {
  display: flex;
  align-items: center;
  gap: 10px;
}

.casino-chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.72);
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.45),
    0 10px 20px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transition: transform 0.2s var(--ease-out), filter 0.2s ease, box-shadow 0.2s ease;
}

.casino-chip::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.casino-chip span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.casino-chip:hover {
  transform: translateY(-5px) scale(1.04);
  filter: brightness(1.1);
}

.casino-chip:active {
  transform: translateY(0);
}

.casino-chip.is-selected {
  transform: translateY(-6px) scale(1.08);
  box-shadow:
    0 0 0 2px var(--gold-bright),
    0 10px 24px rgba(214, 170, 84, 0.45);
}

.chip-v1 {
  background: radial-gradient(circle at 30% 30%, #f1ece1, #b8afa0);
  color: #1f1d19;
  border-color: rgba(60, 52, 40, 0.55);
}
.chip-v1 span {
  text-shadow: none;
}
.chip-v5 {
  background: radial-gradient(circle at 30% 30%, #d44d44, #7e211b);
}
.chip-v25 {
  background: radial-gradient(circle at 30% 30%, #2ea37c, #14543e);
}
.chip-v100 {
  background: radial-gradient(circle at 30% 30%, #3757a6, #182752);
}
.chip-v500 {
  background: radial-gradient(circle at 30% 30%, #8e52ab, #3f1d52);
  border-color: var(--gold-bright);
}

/* ==========================================================
   VIEW 2: BLACKJACK SALON
   ========================================================== */
.stage-Ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(16, 20, 26, 0.9);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  font-size: 11px;
}

.ribbon-left,
.ribbon-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.salon-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(214, 170, 84, 0.14);
  border: 1px solid rgba(214, 170, 84, 0.35);
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.shoe-indicator {
  color: var(--text-muted);
  font-size: 11px;
}

.ribbon-center {
  color: var(--champagne);
  font-weight: 600;
}

.ribbon-right {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.bj-felt-table {
  position: relative;
  min-height: 500px;
  padding: 32px 42px 38px;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(28, 96, 78, 0.82), transparent 60%),
    radial-gradient(ellipse at 50% 100%, #04100d, transparent 65%),
    var(--felt-deep);
  border: 2px solid rgba(214, 170, 84, 0.44);
  box-shadow:
    var(--shadow-luxe),
    inset 0 0 0 10px rgba(6, 15, 13, 0.65),
    inset 0 0 0 11px rgba(214, 170, 84, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.bj-zone {
  position: relative;
  z-index: 2;
}

.bj-zone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bj-role-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
}

.bj-zone-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.bj-score-pill {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(246, 224, 164, 0.45);
  background: rgba(8, 12, 11, 0.75);
  color: var(--gold-bright);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.bj-cards-track {
  min-height: 124px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bj-dealer-sub {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(245, 239, 226, 0.6);
}

.bj-table-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0;
  opacity: 0.45;
}

.emblem-line {
  height: 1px;
  width: 22%;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.emblem-text {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--gold-bright);
}

.bj-hands-container {
  min-height: 155px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bj-hand-box {
  min-width: 200px;
  padding: 12px 16px 14px;
  border-radius: 16px;
  background: rgba(6, 15, 13, 0.52);
  border: 1px solid rgba(214, 170, 84, 0.18);
  position: relative;
  transition: all 0.25s var(--ease-out);
}

.bj-hand-box.is-active {
  border-color: var(--gold-bright);
  background: rgba(14, 38, 32, 0.74);
  box-shadow: 0 0 26px rgba(214, 170, 84, 0.22);
  transform: translateY(-4px);
}

.bj-hand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.bj-hand-bet {
  color: var(--gold-bright);
  font-weight: 700;
}

.bj-hand-cards {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bj-hand-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.bj-hand-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-win,
.status-blackjack {
  background: rgba(68, 184, 131, 0.22);
  color: #84f2b9;
  border: 1px solid rgba(68, 184, 131, 0.5);
}

.status-lose,
.status-bust {
  background: rgba(201, 65, 59, 0.22);
  color: #ff9c97;
  border: 1px solid rgba(201, 65, 59, 0.5);
}

.status-push {
  background: rgba(214, 170, 84, 0.2);
  color: var(--gold-bright);
  border: 1px solid rgba(214, 170, 84, 0.45);
}

.bj-table-footer-msg {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.55);
  margin-top: 10px;
}

/* Playing Cards */
.playing-card {
  width: 76px;
  height: 110px;
  perspective: 700px;
  position: relative;
  animation: cardDealIn 0.42s var(--ease-out) both;
}

@keyframes cardDealIn {
  from {
    opacity: 0;
    transform: translateY(-26px) translateX(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
}

.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-out);
}

.playing-card.is-facedown .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  backface-visibility: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.48);
}

.card-front {
  padding: 8px;
  background: linear-gradient(140deg, #fffef9 0%, #e7dfd0 100%);
  color: #17181b;
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-front.is-red {
  color: var(--crimson);
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 0.92;
}

.card-corner span {
  font-size: 11px;
  margin-top: 2px;
}

.card-corner.bottom {
  align-self: flex-end;
  transform: rotate(180deg);
}

.card-pip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 36px;
}

.card-back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(214, 170, 84, 0.14) 0 4px, transparent 4px 8px),
    linear-gradient(135deg, #163d33, #091d18);
  border: 1px solid var(--gold-primary);
  display: grid;
  place-items: center;
}

.card-back::after {
  content: "B";
  width: 38px;
  height: 52px;
  border-radius: 6px;
  border: 1px solid rgba(246, 224, 164, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 20px;
}

/* Blackjack Control Deck */
.bj-controls-bar {
  margin-top: 18px;
  padding: 18px 24px;
  border-radius: 20px;
  background: rgba(16, 20, 26, 0.94);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.control-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.control-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.control-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.bj-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, #1d242e, #11161c);
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--ease-out);
}

.table-btn:hover:not(:disabled) {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.table-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.table-btn.is-gold {
  background: linear-gradient(130deg, #f3dc99 0%, #d4a64c 55%, #9c6e1d 100%);
  color: #181206;
  border-color: #fae6ad;
  font-weight: 800;
}

/* ==========================================================
   VIEW 3: AURUM ROYALE 5x3 SLOT MACHINE
   ========================================================== */
.slot-marquee {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.jackpot-tier {
  padding: 13px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(25, 30, 38, 0.95), rgba(12, 15, 20, 0.98));
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.jackpot-tier span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.jackpot-tier strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-bright);
}

.tier-grand {
  border-color: rgba(246, 224, 164, 0.65);
  box-shadow: 0 0 28px rgba(214, 170, 84, 0.16);
}

.slot-cabinet {
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 170, 84, 0.18), transparent 60%),
    linear-gradient(180deg, #171c24 0%, #0b0e13 100%);
  border: 2px solid rgba(214, 170, 84, 0.45);
  box-shadow: var(--shadow-luxe), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slot-frame-outer {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 12px;
}

.payline-pins {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 14px 0;
  gap: 6px;
}

.pl-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 23, 30, 0.95);
  border: 1px solid rgba(214, 170, 84, 0.35);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.pl-pin.is-lit {
  background: var(--gold-primary);
  color: #151006;
  border-color: #fff;
  box-shadow: 0 0 14px var(--gold-bright);
}

.slot-viewport {
  position: relative;
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(4, 6, 9, 0.95) 0%, rgba(12, 16, 22, 0.9) 50%, rgba(4, 6, 9, 0.95) 100%);
  border: 2px solid rgba(214, 170, 84, 0.5);
  box-shadow: inset 0 18px 36px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.slot-reels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.slot-reel-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #12171f 0%, #19202b 50%, #10151c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease;
}

.slot-reel-col.is-spinning .slot-cell {
  animation: reelBlurPulse 0.14s linear infinite;
}

@keyframes reelBlurPulse {
  0% {
    transform: translateY(-5px) scale(0.97);
    filter: blur(1.2px);
  }
  50% {
    transform: translateY(5px) scale(0.97);
    filter: blur(1.8px);
  }
  100% {
    transform: translateY(-5px) scale(0.97);
    filter: blur(1.2px);
  }
}

.slot-cell {
  height: 112px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(36, 44, 58, 0.85), rgba(14, 18, 24, 0.96));
  border: 1px solid rgba(214, 170, 84, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, box-shadow 0.28s ease;
}

.slot-cell.is-winning {
  border-color: var(--gold-bright);
  background: radial-gradient(circle at 50% 40%, rgba(214, 170, 84, 0.34), rgba(22, 28, 22, 0.95));
  box-shadow: 0 0 24px rgba(246, 224, 164, 0.42), inset 0 0 14px rgba(246, 224, 164, 0.25);
  animation: winSymbolPulse 0.9s ease-in-out infinite;
}

@keyframes winSymbolPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.slot-symbol-svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}

.slot-symbol-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.slot-paylines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.payline-beam {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(246, 224, 164, 0.9));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawBeam 0.55s var(--ease-out) forwards;
}

@keyframes drawBeam {
  to {
    stroke-dashoffset: 0;
  }
}

.slot-win-banner {
  margin: 16px 0;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(9, 12, 16, 0.85);
  border: 1px solid rgba(214, 170, 84, 0.25);
  text-align: center;
  font-size: 13px;
  color: var(--gold-bright);
  font-weight: 600;
}

.slot-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.slot-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stepper-control {
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  background: #0d1117;
  border: 1px solid var(--border-gold);
  overflow: hidden;
}

.step-btn {
  width: 38px;
  height: 40px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-bright);
  font-size: 18px;
  font-weight: 700;
}

.step-btn:hover {
  background: rgba(214, 170, 84, 0.2);
}

.step-value {
  min-width: 84px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
}

.lines-selector {
  display: inline-flex;
  gap: 6px;
}

.line-opt {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #0d1117;
  color: var(--text-muted);
  font-weight: 700;
}

.line-opt.is-active {
  border-color: var(--gold-bright);
  background: rgba(214, 170, 84, 0.2);
  color: var(--gold-bright);
}

.slot-readout {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--champagne);
}

.slot-readout.is-win {
  color: #74f0b1;
}

.slot-cta-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-aux-btn {
  height: 48px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: #121720;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.slot-aux-btn[aria-pressed="true"],
.slot-aux-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(214, 170, 84, 0.16);
}

.slot-spin-btn {
  min-width: 140px;
  height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid #fff0be;
  background: linear-gradient(135deg, #f8e4a8 0%, #d6aa54 52%, #9c6c19 100%);
  color: #161005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(214, 170, 84, 0.34);
  transition: transform 0.2s var(--ease-out), filter 0.2s ease;
}

.slot-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.slot-spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spin-main {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.spin-sub {
  font-size: 8px;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.slot-paytable-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.paytable-chip {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(16, 20, 26, 0.9);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.paytable-chip strong {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.paytable-chip small {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================
   VIEW 4: EUROPEAN ROULETTE ROYALE
   ========================================================== */
.roulette-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(16, 20, 26, 0.92);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rl-status-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.rl-history-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.history-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hist-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hist-num.is-red {
  background: #b8322c;
  color: #fff;
}
.hist-num.is-black {
  background: #181c22;
  color: #f0ece1;
}
.hist-num.is-green {
  background: #1f8a58;
  color: #fff;
}

.roulette-main-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 22px;
  align-items: start;
}

.wheel-stage-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(10, 13, 18, 0.98));
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-luxe);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

#rouletteWheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wheel-result-badge {
  position: absolute;
  pointer-events: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 15, 10, 0.96), rgba(7, 9, 12, 0.98));
  border: 2px solid var(--gold-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wb-label {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.wb-number {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
  color: var(--gold-bright);
}

.wb-color {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--champagne);
}

.racetrack-bar {
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.racetrack-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.sector-btn {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(214, 170, 84, 0.07);
  color: var(--champagne);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sector-btn:hover {
  background: rgba(214, 170, 84, 0.2);
  border-color: var(--gold-bright);
}

/* Roulette Table Felt */
.roulette-table-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rl-felt-container {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(22, 85, 68, 0.88), rgba(7, 25, 21, 0.98));
  border: 2px solid rgba(214, 170, 84, 0.45);
  box-shadow: var(--shadow-luxe);
  overflow-x: auto;
}

.rl-board {
  min-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rl-inside-grid {
  display: grid;
  grid-template-columns: 58px repeat(12, minmax(0, 1fr)) 58px;
  grid-template-rows: repeat(3, 54px);
  gap: 4px;
}

.rl-cell {
  position: relative;
  border-radius: 7px;
  border: 1px solid rgba(246, 224, 164, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rl-cell:hover {
  border-color: #fff;
  box-shadow: inset 0 0 14px rgba(246, 224, 164, 0.35);
  z-index: 2;
}

.rl-cell.is-winning-spot {
  border-color: #fff;
  box-shadow: 0 0 22px var(--gold-bright), inset 0 0 18px rgba(246, 224, 164, 0.65);
  animation: winSymbolPulse 0.8s ease-in-out infinite;
}

.rl-zero {
  grid-row: 1 / span 3;
  background: linear-gradient(180deg, #1f8a58, #125636);
  font-size: 20px;
}

.rl-num-red {
  background: linear-gradient(180deg, #bf3731, #8a201b);
}

.rl-num-black {
  background: linear-gradient(180deg, #1e232b, #101318);
}

.rl-col-bet {
  background: rgba(8, 22, 18, 0.8);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.rl-dozens-row {
  display: grid;
  grid-template-columns: 58px repeat(3, 1fr) 58px;
  gap: 4px;
}

.rl-outside-row {
  display: grid;
  grid-template-columns: 58px repeat(6, 1fr) 58px;
  gap: 4px;
}

.rl-spacer {
  pointer-events: none;
}

.rl-outside-cell {
  height: 46px;
  background: rgba(8, 22, 18, 0.78);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rl-outside-cell.outside-red {
  background: linear-gradient(180deg, rgba(191, 55, 49, 0.75), rgba(122, 26, 22, 0.85));
}

.rl-outside-cell.outside-black {
  background: linear-gradient(180deg, rgba(28, 33, 41, 0.9), rgba(12, 15, 20, 0.95));
}

/* Rendered Chip Token on Roulette Spot */
.spot-chip {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8e4a8, #c7963b);
  color: #161005;
  border: 2px dashed #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.rl-controls-bar {
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(16, 20, 26, 0.94);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.rl-chip-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rl-action-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rl-btn {
  height: 44px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: #141922;
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rl-btn:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.rl-spin-cta {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid #fff0be;
  background: linear-gradient(130deg, #f6e0a4 0%, #d6aa54 55%, #9c6c19 100%);
  color: #171105;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 26px rgba(214, 170, 84, 0.3);
}

/* ==========================================================
   MODALS, CELEBRATION BANNER, TOAST & PARTICLES
   ========================================================== */
.celebration-banner {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.cb-inner {
  padding: 28px 44px;
  border-radius: 24px;
  background: rgba(8, 10, 14, 0.94);
  border: 2px solid var(--gold-bright);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(214, 170, 84, 0.35);
  text-align: center;
  animation: viewEnter 0.35s var(--ease-out) both;
}

.cb-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--gold-primary);
}

.cb-inner h2 {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--champagne);
}

.cb-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: #74f0b1;
  margin-bottom: 6px;
}

.cb-inner p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.casino-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(160deg, #171d26, #0c0f14);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-luxe);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  font-size: 22px;
}

.modal-card h2 {
  margin: 4px 0 22px;
  font-family: var(--font-display);
  font-size: 28px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.modal-block {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.modal-block h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 18px;
}

.modal-block ul {
  margin: 0;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.modal-block li + li {
  margin-top: 8px;
}

.casino-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(130deg, #f5df9e, #d4a64c);
  color: #171105;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: opacity 0.26s ease, transform 0.26s var(--ease-out);
}

.casino-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 65;
  overflow: hidden;
}

.gold-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-bright);
  animation: particleBurst 1.35s var(--ease-out) forwards;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(520deg);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes slowSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes floatCardLeft {
  0%, 100% {
    transform: rotate(-14deg) translate(-34px, 6px);
  }
  50% {
    transform: rotate(-11deg) translate(-34px, -6px);
  }
}
@keyframes floatCardRight {
  0%, 100% {
    transform: rotate(12deg) translate(38px, -6px);
  }
  50% {
    transform: rotate(9deg) translate(38px, 6px);
  }
}

/* ==========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================== */
@media (max-width: 1080px) {
  .lobby-hero {
    grid-template-columns: 1fr;
  }
  .hero-showcase {
    height: 240px;
  }
  .games-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .roulette-main-layout {
    grid-template-columns: 1fr;
  }
  .slot-paytable-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .casino-header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
  }
  .header-left,
  .header-right {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .game-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  .hide-sm {
    display: none;
  }
  .view-section {
    padding: 16px 14px 32px;
  }
  .lobby-hero {
    padding: 26px 22px;
  }
  .vip-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .slot-marquee {
    grid-template-columns: repeat(2, 1fr);
  }
  .slot-frame-outer {
    grid-template-columns: 1fr;
  }
  .payline-pins {
    display: none;
  }
  .slot-cell {
    height: 86px;
  }
  .slot-symbol-svg {
    width: 40px;
    height: 40px;
  }
  .bj-felt-table {
    padding: 22px 16px;
  }
}
