/* ═══════════════════════════════════════
   3D PLAYING CARD
═══════════════════════════════════════ */
.card3d {
  width: 64px;
  height: 90px;
  perspective: 600px;
  display: inline-block;
  flex-shrink: 0;
  margin-left: -14px;
  opacity: 1
}

.card3d:first-child { margin-left: 0 }

.card3d-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  transform: rotateY(180deg)
}

.card3d-inner.flipped { transform: rotateY(0deg) }

.card3d-face,
.card3d-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.4)
}

.card3d-face {
  background: linear-gradient(180deg, #fafafa, #e4e4e4);
  border: 1px solid rgba(200,200,200,.3);
  flex-direction: column;
  color: #111
}

.card3d-face.red-card { color: #cc1133 }

.card3d-face .cv {
  font-size: 22px;
  font-weight: 800;
  line-height: 1
}

.card3d-face .cs {
  font-size: 16px;
  margin-top: 1px
}

.card3d-face .cc {
  position: absolute;
  top: 3px; left: 5px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1
}

.card3d-back {
  background: linear-gradient(135deg, var(--bg3), #1e3347);
  border: 1px solid var(--border2);
  transform: rotateY(180deg);
  overflow: hidden
}

.card3d-back::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 3px,
    rgba(255,255,255,.015) 3px, rgba(255,255,255,.015) 6px
  )
}

/* Baccarat overrides (must live here because cards.css is loaded AFTER games.css) */
#pg-baccarat .card3d.bac-third {
  width: 80px !important;
  height: 112px !important;
  transform-origin: 50% 50%;
  margin-left: -8px;
  margin-right: -2px;
}
#pg-baccarat .card3d.bac-third .card3d-face,
#pg-baccarat .card3d.bac-third .card3d-back {
  border-radius: 12px;
}
#pg-baccarat .card3d.bac-third .card3d-face .cv { font-size: 20px; }
#pg-baccarat .card3d.bac-third .card3d-face .cs { font-size: 14px; }
#pg-baccarat .card3d.bac-third .card3d-face .cc { font-size: 8px; }

/* rotate via class so we don't fight animFromDeck inline transforms */
#pg-baccarat .card3d.bac-third-rot {
  transform: rotate(90deg) !important;
}

/* DECK VISUAL */
.deck-stack {
  position: relative;
  width: 68px;
  height: 94px;
  flex-shrink: 0
}

.deck-card {
  position: absolute;
  width: 64px;
  height: 90px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--bg3), #1e3347);
  border: 1px solid var(--border2);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.4)
}

.deck-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 3px,
    rgba(255,255,255,.015) 3px, rgba(255,255,255,.015) 6px
  )
}

.deck-card:nth-child(1) { top: 0;   left: 0 }
.deck-card:nth-child(2) { top: -2px; left: 2px }
.deck-card:nth-child(3) { top: -4px; left: 4px }
.deck-card:nth-child(4) { top: -6px; left: 6px }

/* ═══════════════════════════════════════
   CRASH
═══════════════════════════════════════ */
.crash-d {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

#crashCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.crash-m {
  position: relative;
  z-index: 2;
  font-size: 80px;
  font-weight: 900;
  transition: all 0.3s ease;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  text-shadow: 0 0 40px rgba(0,234,255,0.6), 0 4px 8px rgba(0,0,0,0.4);
}

@keyframes crashPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 30px rgba(0,234,255,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  }
  50% {
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 50px rgba(0,234,255,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  }
}

.crash-m.x {
  color: var(--red) !important;
  text-shadow: 0 0 40px rgba(255,77,77,0.8), 0 4px 8px rgba(0,0,0,0.4);
  animation: crashShake .5s ease, crashExplode .6s ease;
}

@keyframes crashShake {
  0%, 100% { transform: translateX(0) rotate(0deg) }
  20%       { transform: translateX(-8px) rotate(-2deg) }
  40%       { transform: translateX(8px) rotate(2deg) }
  60%       { transform: translateX(-5px) rotate(-1deg) }
  80%       { transform: translateX(5px) rotate(1deg) }
}

@keyframes crashExplode {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.crash-s {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

/* Mobile optimization for Crash */
@media (max-width: 768px) {
  .crash-d {
    min-height: 380px;
    padding: 16px;
  }

  .crash-m {
    font-size: 56px;
  }

  .crash-s {
    font-size: 12px;
    padding: 8px 20px;
    bottom: 16px;
  }
}


/* ═══════════════════════════════════════
   DICE
═══════════════════════════════════════ */
.dice-d {
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  gap: 0;
}

.dv-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.dice-v {
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  color: var(--t1);
  transition: all 0.3s ease;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(0,234,255,0.4), 0 4px 8px rgba(0,0,0,0.3);
}

.dv-lbl {
  font-size: 16px;
  font-weight: 800;
  min-height: 24px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dv-lbl.win {
  color: var(--accent);
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 0 12px rgba(0,234,255,0.6);
}

.dv-lbl.lose {
  color: var(--red);
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 0 12px rgba(255,77,77,0.6);
}

.d-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.dtab {
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--t3);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dtab.active {
  background: linear-gradient(135deg, rgba(0,234,255,0.15) 0%, rgba(0,200,220,0.15) 100%);
  border-color: rgba(0,234,255,0.4);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,234,255,0.25), inset 0 1px 0 rgba(0,234,255,0.15);
  text-shadow: 0 0 8px rgba(0,234,255,0.4);
}

.dtab:hover:not(.active) {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.15);
  color: var(--t2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.dbar-outer {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding-bottom: 28px;
  user-select: none;
}

.dice-bar {
  width: 100%;
  height: 18px;
  border-radius: 10px;
  transition: background .1s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.dbar-interact {
  position: absolute;
  inset: -12px 0 0 0;
  cursor: ew-resize;
  z-index: 10;
  border-radius: 10px;
}

.dbar-thresh {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 38px;
  border-radius: 3px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 6;
  transition: left .08s;
  box-shadow: 0 0 12px currentColor;
}

.dbar-thresh.dtp { animation: dThreshPulse .5s ease infinite }

@keyframes dThreshPulse {
  0%, 100% { opacity: 1 }
  50%       { opacity: .4 }
}

.dbar-badge {
  position: absolute;
  top: -40px;
  font-size: 12px;
  font-weight: 800;
  color: var(--t1);
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 5px 12px;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  z-index: 7;
  transition: left .08s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dbar-ptr {
  position: absolute;
  top: -10px;
  width: 5px;
  height: 38px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(255,255,255,.7);
  z-index: 5;
  display: none;
  transform: translateX(-50%);
  transition: left .9s cubic-bezier(.22,1,.36,1);
}

.dbar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
}

.d-stats {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dstat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  gap: 6px;
}

.dstat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

.dstat-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--t3);
  font-weight: 600;
}

.dstat-v {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════
   BUBBLES
═══════════════════════════════════════ */
.bubbles-d {
  width: 100%;
  height: 100%;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: stretch;
}

#bubCanvas {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
}

.bub-stats {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bub-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  gap: 5px;
}

.bub-stat + .bub-stat {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.bub-stat-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--t3);
  font-weight: 600;
}

.bub-stat-v {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════
   PLINKO
═══════════════════════════════════════ */
.plinko-d {
  width: 100%;
  height: 100%;
  min-height: 560px;
  position: relative;
  padding: 10px;
}

#plinkoCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
}

/* ═══════════════════════════════════════
   MINES
═══════════════════════════════════════ */
.mines-d {
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  gap: 0
}

.ms {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center
}

.ms-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  min-width: 100px;
}

.ms-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.15);
}

.ms-pill .ms-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--t3);
  font-weight: 600;
}

.ms-pill .ms-val {
  color: var(--t1);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ms-pill .ms-val.grn {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,234,255,0.4);
}

.ms-pill .ms-val.cyan {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,234,255,0.4);
}

.ms-pill .ms-val.gold {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255,215,0,0.4);
}

.mines-coeff-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0;
  width: 100%;
  max-width: 450px;
  margin-bottom: 16px;
  scrollbar-width: none;
  height: 56px;
  align-items: center;
}

.mines-coeff-strip::-webkit-scrollbar { display: none }

.mines-coeff-item {
  min-width: 52px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--t3);
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mines-coeff-item.active {
  background: linear-gradient(135deg, rgba(0,234,255,0.15) 0%, rgba(0,200,220,0.15) 100%);
  border-color: rgba(0,234,255,0.5);
  color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,234,255,0.3), inset 0 1px 0 rgba(0,234,255,0.2);
}

.mines-coeff-item.passed {
  background: linear-gradient(135deg, rgba(0,234,255,0.08) 0%, rgba(0,200,220,0.08) 100%);
  border-color: rgba(0,234,255,0.25);
  color: rgba(0,234,255,0.7);
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 450px;
}

.mc {
  aspect-ratio: 1;
  perspective: 800px;
  cursor: pointer;
  position: relative;
}

.mc-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .52s cubic-bezier(.4,0,.2,1);
}

.mc.rv .mc-inner { transform: rotateY(180deg) }

.mc-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.mc-front-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.25s ease;
  box-shadow: 0 0 8px rgba(255,255,255,0.1);
}

.mc:not(.rv):hover .mc-front {
  border-color: rgba(0,234,255,0.4);
  background: linear-gradient(135deg, rgba(0,234,255,0.12) 0%, rgba(0,200,220,0.12) 100%);
  box-shadow: 0 6px 16px rgba(0,234,255,0.2), inset 0 1px 0 rgba(0,234,255,0.15);
  transform: translateY(-2px);
}

.mc:not(.rv):hover .mc-front-dot {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0,234,255,0.6);
  transform: scale(1.3);
}

.mc:not(.rv):active .mc-front {
  transform: scale(.95);
}

.mc-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* Safe cell */
.mc.rv.sf .mc-back {
  background: linear-gradient(135deg, rgba(0,234,255,0.15) 0%, rgba(0,200,220,0.15) 100%);
  border: 2px solid rgba(0,234,255,0.35);
  box-shadow: 0 4px 12px rgba(0,234,255,0.25), inset 0 1px 0 rgba(0,234,255,0.2);
}

/* Mine cell */
.mc.rv.mn .mc-back {
  background: linear-gradient(135deg, rgba(255,77,77,0.18) 0%, rgba(231,76,60,0.18) 100%);
  border: 2px solid rgba(255,77,77,0.4);
  box-shadow: 0 4px 12px rgba(255,77,77,0.25), inset 0 1px 0 rgba(255,77,77,0.15);
}

/* Gem reveal bounce */
.mc.rv.sf .mc-back > * {
  animation: gemPop .45s .25s cubic-bezier(.2,1.7,.4,1) both;
  filter: drop-shadow(0 0 8px rgba(0,234,255,0.6));
}

@keyframes gemPop {
  0%   { transform: scale(0) rotate(-25deg); opacity: 0 }
  100% { transform: scale(1) rotate(0deg);   opacity: 1 }
}

/* Mine reveal - no animation for regular mines */
.mc.rv.mn .mc-inner { transform: rotateY(180deg) }

/* Hit mine - explosion animation */
.mc.rv.mn.hit .mc-inner {
  animation: mineExplode .4s ease both;
}

@keyframes mineExplode {
  0%   { transform: rotateY(180deg) scale(1) }
  40%  { transform: rotateY(180deg) scale(1.2) }
  100% { transform: rotateY(180deg) scale(1) }
}

/* Red flash on hit mine */
.mc.rv.mn.hit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: radial-gradient(circle, rgba(255,77,77,.6) 0%, transparent 70%);
  animation: mineFlash .3s ease-out forwards;
  pointer-events: none;
  z-index: 5;
}

@keyframes mineFlash {
  0%   { opacity: 1 }
  100% { opacity: 0 }
}

/* Particle explosion */
.mine-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #ff4d4d, #ff8800);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,77,77,.8);
  pointer-events: none;
  animation: particleFly .6s ease-out forwards;
}

@keyframes particleFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Green flash on gem */
.mc.rv.sf::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: radial-gradient(circle, rgba(46,204,113,.3) 0%, transparent 70%);
  animation: gemFlash .35s .2s ease-out forwards;
  pointer-events: none;
  z-index: 5
}

@keyframes gemFlash {
  0%   { opacity: 1 }
  100% { opacity: 0 }
}

/* Mobile optimization for Mines */
@media (max-width: 768px) {
  .mines-d {
    padding: 12px 8px;
    min-height: 380px;
  }

  .ms {
    width: 100%;
    gap: 8px;
    margin-bottom: 14px;
  }

  .ms-pill {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    gap: 3px;
  }

  .ms-pill .ms-label {
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  .ms-pill .ms-val {
    font-size: 14px;
  }

  .mines-coeff-strip {
    max-width: 100%;
    margin-bottom: 12px;
    padding: 6px 0;
  }

  .mines-coeff-item {
    min-width: 48px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .mines-grid {
    max-width: 100%;
    gap: 8px;
  }

  .mc-front {
    border-radius: 12px;
  }

  .mc-back {
    border-radius: 12px;
    font-size: 24px;
  }

  .mc-front-dot {
    width: 7px;
    height: 7px;
  }

  /* Move main button to top on mobile */
  .gcp {
    display: flex;
    flex-direction: column;
  }

  #mBtn {
    order: -1;
    margin-bottom: 12px;
  }

  /* Dice mobile */
  .dice-d {
    min-height: 400px;
    padding: 20px 12px;
  }

  .dice-v {
    font-size: 80px;
    padding: 18px 30px;
    border-radius: 16px;
  }

  .dv-lbl {
    font-size: 14px;
  }

  .d-tabs {
    gap: 6px;
    margin-bottom: 20px;
  }

  .dtab {
    padding: 8px 18px;
    font-size: 12px;
    border-radius: 10px;
  }

  .dbar-outer {
    max-width: 100%;
    padding-bottom: 24px;
  }

  .dice-bar {
    height: 16px;
  }

  .dbar-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .d-stats {
    max-width: 100%;
  }

  .dstat {
    padding: 14px 6px;
  }

  .dstat-v {
    font-size: 18px;
  }

  /* Bubbles mobile */
  .bubbles-d {
    min-height: 400px;
  }

  #bubCanvas {
    min-height: 400px;
  }

  .bub-stat {
    padding: 12px 6px;
  }

  .bub-stat-v {
    font-size: 16px;
  }

  /* Plinko mobile */
  .plinko-d {
    min-height: 480px;
    padding: 8px;
  }

  /* HiLo mobile */
  .hilo-d {
    min-height: 420px;
    padding: 24px 16px;
    gap: 24px;
  }

  .hilo-cr {
    gap: 24px;
  }

  .hilo-cr .card3d {
    width: 100px;
    height: 140px;
  }

  .hilo-cr .card3d-face .cv { font-size: 36px }
  .hilo-cr .card3d-face .cs { font-size: 24px }
  .hilo-cr .card3d-face .cc { font-size: 12px }

  .hilo-cr .deck-stack { width: 100px; height: 140px }
  .hilo-cr .deck-card { width: 96px; height: 136px }

  .hilo-arrow {
    font-size: 24px;
  }

  .ha {
    max-width: 100%;
    gap: 10px;
  }

  .hbtn {
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 12px;
  }

  .hb-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .hb-label {
    font-size: 14px;
  }

  .hb-c {
    font-size: 18px;
  }

  .hb-p {
    font-size: 10px;
  }

  /* Wheel mobile */
  .wheel-canvas-area {
    padding: 20px 16px;
  }

  .wheel-wrap {
    width: 320px;
    height: 320px;
  }

  .wheel-d {
    width: 320px;
    height: 320px;
  }

  .w-opts {
    gap: 6px;
  }

  .w-opt {
    padding: 8px 12px;
    gap: 10px;
  }

  .w-dot {
    width: 12px;
    height: 12px;
  }

  .w-mul {
    font-size: 13px;
    min-width: 30px;
  }

  .w-name {
    font-size: 11px;
  }

  /* Roulette mobile */
  .roul-d {
    min-height: 440px;
    padding: 16px;
    gap: 12px;
  }

  .roul-num {
    font-size: 48px;
    min-height: 60px;
    padding: 16px 32px;
    border-radius: 16px;
  }

  .roul-timer {
    font-size: 12px;
  }

  .rt-bar {
    width: 180px;
    height: 6px;
  }

  .roul-bets-area {
    gap: 8px;
  }

  .rbb {
    padding: 12px 20px;
    font-size: 13px;
    border-radius: 12px;
  }

  .roul-hist {
    gap: 5px;
  }

  .rhi {
    width: 28px;
    height: 28px;
    font-size: 9px;
    border-radius: 6px;
  }

  /* Blackjack mobile */
  .bj-d {
    min-height: 420px;
    padding: 12px 8px;
  }

  .bj-table {
    max-width: 100%;
    min-height: 320px;
    padding: 24px 16px 20px;
  }

  .bj-d .card3d {
    width: 70px;
    height: 98px;
    margin-left: -16px;
  }

  .bj-d .card3d-face .cv { font-size: 24px }
  .bj-d .card3d-face .cs { font-size: 18px }
  .bj-d .card3d-face .cc { font-size: 9px }

  .bj-hand {
    min-height: 100px;
  }
}

/* ═══════════════════════════════════════
   HILO
═══════════════════════════════════════ */
.hilo-d {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  gap: 32px;
  position: relative;
}

.hilo-cr {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hilo-cr .card3d {
  width: 120px;
  height: 168px;
  perspective: 1000px;
  margin-left: 0;
}

.hilo-cr .card3d-face,
.hilo-cr .card3d-back {
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.8), 0 2px 8px rgba(255,255,255,.06) inset;
}

.hilo-cr .card3d-face .cv { font-size: 44px }
.hilo-cr .card3d-face .cs { font-size: 28px; margin-top: 2px }
.hilo-cr .card3d-face .cc { font-size: 14px; top: 8px; left: 10px }

.hilo-cr .deck-stack { width: 120px; height: 168px }

.hilo-cr .deck-card {
  width: 116px;
  height: 164px;
  border-radius: 14px;
}

.hilo-cr .deck-card:nth-child(2) { top: -3px; left: 3px }
.hilo-cr .deck-card:nth-child(3) { top: -6px; left: 6px }
.hilo-cr .deck-card:nth-child(4) { top: -9px; left: 9px }

.hilo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 28px;
  animation: hiloArrowPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(0,234,255,0.4));
}

@keyframes hiloArrowPulse {
  0%, 100% { opacity: .4; transform: translateX(0) }
  50%       { opacity: 1;  transform: translateX(6px) }
}

.ha {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

.hbtn {
  width: 100%;
  padding: 18px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hbtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.hbtn:active { transform: translateY(-1px) }

.hb-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hb-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0,0,0,.3);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hb-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

.hb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.hb-c {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hb-p {
  font-size: 11px;
  font-weight: 600;
  opacity: .7;
  letter-spacing: .5px;
}

.hbtn.hi {
  background: linear-gradient(135deg, rgba(0,234,255,0.15) 0%, rgba(0,200,220,0.15) 100%);
  border-color: rgba(0,234,255,0.35);
  color: var(--accent);
}

.hbtn.hi .hb-icon {
  background: rgba(0,234,255,.15);
  box-shadow: 0 0 12px rgba(0,234,255,0.3);
}

.hbtn.hi .hb-c {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,234,255,0.4);
}

.hbtn.hi:hover {
  border-color: rgba(0,234,255,.5);
  box-shadow: 0 6px 20px rgba(0,234,255,0.3);
}

.hbtn.lo {
  background: linear-gradient(135deg, rgba(255,77,77,0.15) 0%, rgba(231,76,60,0.15) 100%);
  border-color: rgba(255,77,77,0.35);
  color: #ff8080;
}

.hbtn.lo .hb-icon {
  background: rgba(255,77,77,.15);
  box-shadow: 0 0 12px rgba(255,77,77,0.3);
}

.hbtn.lo .hb-c {
  color: var(--red);
  text-shadow: 0 0 12px rgba(255,77,77,0.4);
}

.hbtn.lo:hover {
  border-color: rgba(255,77,77,.5);
  box-shadow: 0 6px 20px rgba(255,77,77,0.3);
}

.hbtn.eq {
  background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(240,180,41,0.15) 100%);
  border-color: rgba(255,215,0,0.35);
  color: var(--gold);
}

.hbtn.eq .hb-icon {
  background: rgba(255,215,0,.12);
  box-shadow: 0 0 12px rgba(255,215,0,0.3);
}

.hbtn.eq .hb-c {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255,215,0,0.4);
}

.hbtn.eq:hover {
  border-color: rgba(255,215,0,.5);
  box-shadow: 0 6px 20px rgba(255,215,0,0.3);
}

/* ═══════════════════════════════════════
   WHEEL
═══════════════════════════════════════ */
.wheel-canvas-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.wheel-wrap {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
}

.wheel-wrap canvas {
  display: block;
  border-radius: 50%;
}

.w-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.w-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.w-opt:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.w-opt.sel {
  background: linear-gradient(135deg, rgba(0,234,255,0.15) 0%, rgba(0,200,220,0.15) 100%);
  border-color: rgba(0,234,255,0.4);
  box-shadow: 0 4px 12px rgba(0,234,255,0.25);
}

.w-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.w-mul {
  font-size: 14px;
  font-weight: 800;
  color: var(--t1);
  min-width: 35px;
  font-variant-numeric: tabular-nums;
}

.w-name {
  font-size: 12px;
  color: var(--t2);
  flex: 1;
  font-weight: 600;
}

.wheel-d { width: 400px; height: 400px; position: relative; margin: 0 auto }
.wptr    { display: none }

/* ═══════════════════════════════════════
   ROULETTE
═══════════════════════════════════════ */
.roul-d {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 16px;
}

.roul-top { position: relative }

.roul-num {
  font-size: 64px;
  font-weight: 900;
  min-height: 72px;
  transition: all 0.3s ease;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px currentColor, 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.roul-timer {
  font-size: 13px;
  color: var(--t2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.rt-bar {
  width: 220px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.rt-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s linear;
  box-shadow: 0 0 12px currentColor;
}

.roul-bets-area {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.rbb {
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  letter-spacing: 0.3px;
}

.rbb svg {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.rbb i {
  font-size: 12px;
  vertical-align: middle;
}

.rbb.red {
  background: linear-gradient(135deg, rgba(255,77,77,0.18) 0%, rgba(220,50,50,0.18) 100%);
  color: #ff6666;
  border-color: rgba(255,77,77,0.3);
}

.rbb.red.sel {
  background: linear-gradient(135deg, rgba(255,77,77,0.3) 0%, rgba(220,50,50,0.3) 100%);
  border-color: #ff4444;
  box-shadow: 0 4px 16px rgba(255,77,77,0.4);
  text-shadow: 0 0 8px rgba(255,77,77,0.6);
}

.rbb.blk {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  color: var(--t1);
  border-color: rgba(255,255,255,0.15);
}

.rbb.blk.sel {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
  border-color: var(--t1);
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.rbb.grn {
  background: linear-gradient(135deg, rgba(0,234,255,0.15) 0%, rgba(0,200,220,0.15) 100%);
  color: var(--accent);
  border-color: rgba(0,234,255,0.3);
}

.rbb.grn.sel {
  background: linear-gradient(135deg, rgba(0,234,255,0.25) 0%, rgba(0,200,220,0.25) 100%);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,234,255,0.4);
  text-shadow: 0 0 8px rgba(0,234,255,0.6);
}

.rbb:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.roul-hist {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.rhi {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════
   BLACKJACK
═══════════════════════════════════════ */
.bj-d {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 16px;
  position: relative
}

.bj-d .card3d {
  width: 80px;
  height: 112px;
  perspective: 700px;
  margin-left: -20px
}

.bj-d .card3d:first-child { margin-left: 0 }

.bj-d .card3d-face,
.bj-d .card3d-back {
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.65)
}

.bj-d .card3d-face .cv { font-size: 28px }
.bj-d .card3d-face .cs { font-size: 20px }
.bj-d .card3d-face .cc { font-size: 10px; top: 5px; left: 6px }

.bj-table {
  width: 100%;
  max-width: 520px;
  min-height: 360px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(20,90,40,.6) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(5,40,15,.8) 0%, transparent 60%),
    #051a0c;
  border: 3px solid transparent;
  border-radius: 200px / 110px;
  position: relative;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow:
    0 0 0 3px #1a6a30,
    0 0 0 5px rgba(255,215,0,.12),
    0 0 0 6px #1a6a30,
    inset 0 0 80px rgba(0,0,0,.45),
    0 16px 60px rgba(0,0,0,.7)
}

.bj-table::before {
  content: 'ONLYBET · BLACKJACK PAYS 3:2';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(255,215,0,.07);
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none
}

.bj-table::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    transparent, transparent 3px,
    rgba(255,255,255,.012) 3px, rgba(255,255,255,.012) 4px
  );
  pointer-events: none
}

.bj-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2
}

.bj-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,215,0,.35);
  font-weight: 800
}

.bj-hand {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: center
}

.bj-hands-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap
}

.bj-hand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all .3s
}

.bj-hand-wrap.active-hand {
  border-color: rgba(46,204,113,.3);
  background: rgba(46,204,113,.04)
}

@keyframes bjHandPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(46,204,113,.25) }
  50%       { box-shadow: 0 0 22px rgba(46,204,113,.5) }
}

.bj-hand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color .3s, background .3s, opacity .3s, box-shadow .3s
}

.bj-hand-box.active-hand {
  border-color: rgba(46,204,113,.5);
  background: rgba(46,204,113,.06);
  animation: bjHandPulse 1.6s ease-in-out infinite
}

.bj-hand-box.inactive-hand {
  opacity: .45;
  filter: saturate(.4)
}

.bj-score {
  font-size: 14px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(0,0,0,.65);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.12);
  min-width: 38px;
  text-align: center;
  transition: all .3s;
  letter-spacing: .5px
}

.bj-score.bust {
  background: rgba(231,76,60,.2);
  color: var(--red);
  border-color: rgba(231,76,60,.35)
}

.bj-score.bjn {
  background: rgba(255,215,0,.15);
  color: var(--gold);
  border-color: rgba(255,215,0,.4)
}

.bj-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 520px
}

.bj-abtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  transition: all .25s ease;
  min-width: 80px;
  flex: 1;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bj-abtn i { font-size: 22px; line-height: 1 }
.bj-abtn span { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase }

.bj-abtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.bj-abtn:active { transform: translateY(0) }

/* Selected state (used by baccarat bet-side buttons and some other UIs) */
.bj-abtn.sel {
  border-color: rgba(255,255,255,0.55);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.45),
    0 0 0 3px rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.bj-abtn.sel:hover {
  transform: translateY(-3px);
}

.bj-abtn.hit {
  background: linear-gradient(135deg, rgba(0,230,118,0.12) 0%, rgba(0,200,100,0.12) 100%);
  border-color: rgba(0,230,118,0.35);
  color: #00e676;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bj-abtn.hit:hover {
  background: linear-gradient(135deg, rgba(0,230,118,0.18) 0%, rgba(0,200,100,0.18) 100%);
  border-color: rgba(0,230,118,0.5);
  box-shadow: 0 6px 16px rgba(0,230,118,0.25);
}

.bj-abtn.stand {
  background: linear-gradient(135deg, rgba(255,61,107,0.12) 0%, rgba(231,76,60,0.12) 100%);
  border-color: rgba(255,61,107,0.35);
  color: #ff6b6b;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bj-abtn.stand:hover {
  background: linear-gradient(135deg, rgba(255,61,107,0.18) 0%, rgba(231,76,60,0.18) 100%);
  border-color: rgba(255,61,107,0.5);
  box-shadow: 0 6px 16px rgba(255,61,107,0.25);
}

.bj-abtn.double {
  background: linear-gradient(135deg, rgba(255,215,0,0.12) 0%, rgba(240,180,41,0.12) 100%);
  border-color: rgba(255,215,0,0.35);
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bj-abtn.double:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.18) 0%, rgba(240,180,41,0.18) 100%);
  border-color: rgba(255,215,0,0.5);
  box-shadow: 0 6px 16px rgba(255,215,0,0.25);
}

.bj-abtn.split {
  background: linear-gradient(135deg, rgba(168,85,247,0.12) 0%, rgba(155,89,182,0.12) 100%);
  border-color: rgba(168,85,247,0.35);
  color: #c39bd3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bj-abtn.split:hover {
  background: linear-gradient(135deg, rgba(168,85,247,0.18) 0%, rgba(155,89,182,0.18) 100%);
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 6px 16px rgba(168,85,247,0.25);
}

.bj-abtn:disabled {
  opacity: .22;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important
}

.bj-result-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s
}

.bj-result-overlay.show { opacity: 1 }

.bj-result-text {
  font-size: 26px;
  font-weight: 900;
  padding: 14px 36px;
  border-radius: 12px;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.3
}

.bj-result-text.win {
  background: rgba(46,204,113,.12);
  color: var(--accent);
  border: 2px solid rgba(46,204,113,.3)
}

.bj-result-text.lose {
  background: rgba(231,76,60,.12);
  color: var(--red);
  border: 2px solid rgba(231,76,60,.3)
}

.bj-result-text.push {
  background: rgba(240,180,41,.1);
  color: var(--gold);
  border: 2px solid rgba(240,180,41,.25)
}

.bj-result-text.blackjack {
  background: rgba(255,215,0,.15);
  color: var(--gold);
  border: 2px solid rgba(255,215,0,.35);
  font-size: 30px
}

.bj-deck-pos {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 3
}

.hilo-deck-pos { flex-shrink: 0 }

/* ═══════════════════════════════════════
   INFO PAGE
═══════════════════════════════════════ */
.info-page {
  padding: 20px 0;
  width: 100%
}

.info-page h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--t1)
}

.info-page .info-sub {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px
}

.info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: .2s
}

.info-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px)
}

.info-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent)
}

.info-card p {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.7
}

.info-card .tag {
  display: inline-block;
  background: rgba(46,204,113,.08);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 8px;
  text-transform: uppercase
}

.faq-list { display: flex; flex-direction: column; gap: 2px }
.faq-item { border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; background: var(--bg2) }
.faq-q { font-weight: 700; font-size: 14px; cursor: pointer; color: var(--t1); display: flex; justify-content: space-between; align-items: center; padding: 16px 20px }
.faq-q::after { content: '▸'; transition: .3s; color: var(--accent) }
.faq-item.open .faq-q::after { transform: rotate(90deg) }
