/* Blue Devine Casino — dedicated game UIs */

.casino-page {
  max-width: 1100px;
  margin: 0 auto;
}

.casino-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(18, 22, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.casino-balance-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(240, 193, 77, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
}

.casino-balance-pill .val {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ─── Nexus game lobby ─── */
.casino-lobby-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.casino-lobby-sub {
  margin: 0 0 1.25rem;
}

.casino-lobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.casino-lobby-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(18, 22, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 220px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.casino-lobby-card:hover {
  transform: translateY(-2px);
}

.casino-lobby-card.wide {
  grid-column: span 2;
}

.casino-lobby-card.theme-purple {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.12);
}
.casino-lobby-card.theme-green {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.1);
}
.casino-lobby-card.theme-blue {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}
.casino-lobby-card.theme-gold {
  border-color: rgba(240, 193, 77, 0.45);
  box-shadow: 0 0 24px rgba(240, 193, 77, 0.1);
}
.casino-lobby-card.theme-cyan {
  border-color: rgba(34, 211, 238, 0.4);
}
.casino-lobby-card.theme-orange {
  border-color: rgba(251, 146, 60, 0.45);
}
.casino-lobby-card.theme-silver {
  border-color: rgba(148, 163, 184, 0.4);
}
.casino-lobby-card.theme-teal {
  border-color: rgba(45, 212, 191, 0.4);
}

.casino-lobby-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.casino-lobby-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.casino-lobby-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.casino-lobby-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.casino-lobby-cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.theme-purple .casino-lobby-cta {
  color: #c084fc;
}
.theme-green .casino-lobby-cta {
  color: #4ade80;
}
.theme-blue .casino-lobby-cta {
  color: #38bdf8;
}
.theme-gold .casino-lobby-cta {
  color: #f0c14d;
}
.theme-cyan .casino-lobby-cta {
  color: #22d3ee;
}
.theme-orange .casino-lobby-cta {
  color: #fb923c;
}
.theme-silver .casino-lobby-cta {
  color: #cbd5e1;
}
.theme-teal .casino-lobby-cta {
  color: #2dd4bf;
}

.casino-lobby-cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

.casino-rooms {
  display: block;
}

.casino-back-lobby {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  cursor: pointer;
}

.casino-back-lobby:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.5);
}

.casino-stage {
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(12, 18, 32, 0.98) 0%, rgba(5, 6, 8, 0.99) 60%);
  overflow: hidden;
  position: relative;
}

.casino-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 70%);
  pointer-events: none;
}

.casino-game-ui {
  display: none;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.casino-game-ui.active {
  display: block;
}

.casino-game-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.casino-game-title h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.casino-game-title p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.casino-bet-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.casino-bet-panel label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--font-display);
}

.casino-bet-panel input {
  width: 100px;
  text-align: center;
}

.casino-bet-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.casino-chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: transform 0.15s;
}

.casino-chip:hover {
  transform: scale(1.08);
}

.casino-chip.c25 {
  background: linear-gradient(145deg, #1e3a5f, #0f2744);
  color: #7dd3fc;
}
.casino-chip.c50 {
  background: linear-gradient(145deg, #14532d, #052e16);
  color: #86efac;
}
.casino-chip.c100 {
  background: linear-gradient(145deg, #713f12, #422006);
  color: #fcd34d;
}
.casino-chip.c250 {
  background: linear-gradient(145deg, #7f1d1d, #450a0a);
  color: #fca5a5;
}

.casino-play-main {
  min-width: 140px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.casino-result-banner {
  text-align: center;
  min-height: 2rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.casino-result-banner.win {
  color: var(--online);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.casino-result-banner.lose {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
}

/* ─── Coin flip ─── */
.coinflip-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.coin-3d-wrap {
  perspective: 800px;
  width: 160px;
  height: 160px;
}

.coin-3d {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.coin-3d.flipping {
  animation: coin-spin 1.1s ease-in-out;
}

@keyframes coin-spin {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(1800deg);
  }
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backface-visibility: hidden;
  border: 4px solid rgba(240, 193, 77, 0.6);
}

.coin-face.heads {
  background: linear-gradient(145deg, #d4a84b, #8b6914);
  color: #1a1200;
  transform: rotateY(0deg);
}

.coin-face.tails {
  background: linear-gradient(145deg, #94a3b8, #475569);
  color: #0f172a;
  transform: rotateY(180deg);
}

.coin-pick-row {
  display: flex;
  gap: 1rem;
}

.coin-pick-btn {
  min-width: 120px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  cursor: pointer;
}

.coin-pick-btn.active {
  border-color: var(--gold);
  background: rgba(240, 193, 77, 0.15);
  color: var(--gold);
}

/* ─── Dice ─── */
.dice-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dice-visual {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #f8fafc, #cbd5e1);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 -4px 0 #94a3b8;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  transition: transform 0.15s;
}

.dice-visual.rolling {
  animation: dice-shake 0.5s ease-in-out infinite;
}

@keyframes dice-shake {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.05);
  }
}

.dice-roll-display {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-height: 1.2em;
}

.dice-range-bar {
  width: 100%;
  max-width: 320px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #22c55e 49%, #334155 49%, #334155 51%, #ef4444 51%, #ef4444 100%);
  position: relative;
  margin: 0.5rem 0;
}

.dice-marker {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 24px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 12px #fff;
  transition: left 0.4s ease-out;
}

.dice-pick-row {
  display: flex;
  gap: 0.75rem;
}

.dice-pick-btn {
  flex: 1;
  max-width: 140px;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.dice-pick-btn.low {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.dice-pick-btn.high {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.dice-pick-btn.active {
  box-shadow: 0 0 20px currentColor;
}

/* ─── Roulette ─── */
.roulette-stage {
  padding: 0.5rem 0 1rem;
}

.roulette-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem;
}

.roulette-wheel-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.roulette-wheel-wrap {
  position: relative;
  width: 300px;
  height: 300px;
}

.roulette-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #2a1810;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.roulette-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #f0c14d;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.roulette-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0c14d, #b8860b);
  border: 3px solid #2a1810;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #1a1200;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.roulette-result-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  min-height: 1.5em;
}

.roulette-result-num.red {
  color: #f87171;
}
.roulette-result-num.black {
  color: #e2e8f0;
}
.roulette-result-num.green {
  color: #4ade80;
}

.roulette-table-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.roulette-bet-hint {
  margin: 0;
}

.roulette-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
}

.roulette-table > .roulette-cell.green {
  width: 100%;
  min-height: 2.5rem;
  font-size: 1.1rem;
}

.roulette-numbers-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}

.roulette-cell {
  min-width: 2.1rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: #fff;
  transition: outline 0.1s, transform 0.1s;
}

.roulette-cell.red {
  background: #991b1b;
}
.roulette-cell.black {
  background: #0f172a;
}
.roulette-cell.green {
  background: #166534;
}

.roulette-cell.active {
  outline: 3px solid #f0c14d;
  outline-offset: 1px;
  transform: scale(1.05);
  z-index: 1;
}

.roulette-cell.flash {
  animation: roulette-flash 0.6s ease 3;
}

@keyframes roulette-flash {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(240, 193, 77, 0);
  }
  50% {
    box-shadow: 0 0 16px rgba(240, 193, 77, 0.9);
  }
}

.roulette-outside-bets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.roulette-selected {
  margin: 0;
  font-weight: 600;
}

.roulette-bet {
  min-width: 90px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
}

.roulette-bet.red {
  background: #991b1b;
  color: #fff;
}
.roulette-bet.black {
  background: #1e293b;
  color: #fff;
}
.roulette-bet.green {
  background: #166534;
  color: #fff;
}

.roulette-bet.active {
  outline: 3px solid #f0c14d;
  outline-offset: 2px;
}

/* ─── Dino race ─── */
.race-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.race-track {
  position: relative;
  height: 200px;
  background: linear-gradient(180deg, #1a3050 0%, #0d1a2d 40%, #1a4d2e 70%, #14532d 100%);
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.race-lane {
  position: absolute;
  left: 8%;
  right: 4%;
  height: 22%;
  display: flex;
  align-items: center;
}

.race-lane:nth-child(1) {
  top: 6%;
}
.race-lane:nth-child(2) {
  top: 28%;
}
.race-lane:nth-child(3) {
  top: 50%;
}
.race-lane:nth-child(4) {
  top: 72%;
}

.race-lane::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 12px, transparent 12px 24px);
}

.race-dino {
  position: absolute;
  left: 0;
  font-size: 1.75rem;
  transition: left 2.8s cubic-bezier(0.25, 0.9, 0.35, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.race-dino.winner {
  animation: race-bounce 0.6s ease infinite alternate;
}

@keyframes race-bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

.race-finish {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: repeating-linear-gradient(
    0deg,
    #f8fafc 0 8px,
    #0f172a 8px 16px
  );
  opacity: 0.85;
}

.race-picks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.race-pick {
  padding: 0.65rem;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
}

.race-pick .emoji {
  display: block;
  font-size: 1.5rem;
}

.race-pick.active {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

/* ─── Slots ─── */
.slots-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.slots-machine {
  width: 100%;
  max-width: 420px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #2a1f4e 0%, #1a1230 50%, #0f0a18 100%);
  border: 4px solid #f0c14d;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(240, 193, 77, 0.15), inset 0 4px 0 rgba(255, 255, 255, 0.08);
}

.slots-marquee {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  animation: slots-blink 2s ease-in-out infinite;
}

@keyframes slots-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.slots-reels-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  background: #050508;
  border-radius: 12px;
  border: 2px inset rgba(0, 0, 0, 0.8);
}

.slots-reel-window {
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #1a1a2e, #0a0a12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.slots-reel-window::before,
.slots-reel-window::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  z-index: 2;
  pointer-events: none;
}

.slots-reel-window::before {
  top: 0;
  background: linear-gradient(to bottom, #0a0a12, transparent);
}

.slots-reel-window::after {
  bottom: 0;
  background: linear-gradient(to top, #0a0a12, transparent);
}

.slots-reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.1s;
}

.slots-reel-strip.spinning {
  animation: reel-blur 0.08s linear infinite;
}

@keyframes reel-blur {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-40px);
  }
}

.slots-symbol {
  height: 120px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.slots-paytable {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.slots-paytable span {
  white-space: nowrap;
}

.slots-jackpot {
  text-align: center;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
}

.slots-free-banner {
  margin: 0 1rem 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 193, 77, 0.45);
  background: linear-gradient(90deg, rgba(240, 193, 77, 0.15), rgba(168, 85, 247, 0.12));
  text-align: center;
  font-weight: 600;
  color: var(--gold);
}

.slots-free-banner.active {
  animation: bonus-pulse 1.5s ease-in-out infinite;
}

@keyframes bonus-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(240, 193, 77, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(240, 193, 77, 0.35);
  }
}

.slots-symbol.wild {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.9));
}

.slots-symbol.bonus {
  filter: drop-shadow(0 0 8px rgba(240, 193, 77, 0.9));
}

/* Blackjack */
.blackjack-stage {
  padding: 1rem 1.25rem 0.5rem;
  display: grid;
  gap: 1rem;
}

.bj-table {
  display: grid;
  gap: 1.25rem;
  max-width: 520px;
  margin: 0 auto;
}

.bj-hand {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bj-dealer {
  border-color: rgba(239, 68, 68, 0.25);
}

.bj-player {
  border-color: rgba(56, 189, 248, 0.25);
}

.bj-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.bj-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 3.5rem;
}

.bj-card {
  display: grid;
  place-items: center;
  min-width: 2.6rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bj-card.hidden-card {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: #94a3b8;
}

.bj-total {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.bj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Scratch */
.scratch-stage {
  padding: 1rem 1.25rem;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 320px;
  margin: 0 auto;
}

.scratch-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(240, 193, 77, 0.35);
  background: linear-gradient(145deg, #2a3548, #1a2030);
  font-size: 2rem;
  cursor: default;
  transition: transform 0.2s, background 0.2s;
}

.scratch-cell.covered {
  background: repeating-linear-gradient(
    45deg,
    #3d4f6a,
    #3d4f6a 8px,
    #2a3548 8px,
    #2a3548 16px
  );
  color: transparent;
}

.scratch-cell.win-cell {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(240, 193, 77, 0.5);
}

.scratch-hint {
  text-align: center;
  margin-top: 0.75rem;
}

/* Prize wheel */
.wheel-stage {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.wheel-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}

.wheel-wrap .wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #f0c14d;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

#wheel-canvas {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
}

.wheel-center-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0a0c10;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  z-index: 2;
  pointer-events: none;
}

.wheel-result {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--text);
}

@media (max-width: 900px) {
  .casino-lobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .casino-lobby-card.wide {
    grid-column: span 2;
  }
  .roulette-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .casino-stage {
    min-height: 360px;
  }
  .casino-lobby-grid {
    grid-template-columns: 1fr;
  }
  .casino-lobby-card.wide {
    grid-column: span 1;
  }
  .roulette-wheel-wrap {
    width: 260px;
    height: 260px;
  }
  .roulette-numbers-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .race-picks {
    grid-template-columns: repeat(2, 1fr);
  }
}
