/* ============================================================
 * STAKED CASINO v2 shell (Stake.com 準拠デスクトップレイアウト)
 * サイドバー / ヘッダー / ロビー / フッター / サポートFAB。
 * v1のゲーム内スタイルは下方で流用。
 * ============================================================ */

body { background: #0B1620 !important; }

.shell-v2 {
  background: #0F212E !important;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
  padding: 0;
  margin-left: 210px !important;
  max-width: none !important;
  width: auto !important;
}

/* ===== LEFT SIDEBAR (STEP 6) ===== */
.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 210px;
  background: #0F212E;
  border-right: 1px solid #1F2937;
  z-index: 60;
  overflow-y: auto;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-brand {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #D4AF37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  padding: 0 16px 12px;
  border-bottom: 1px solid #1F2937;
  white-space: nowrap;
  overflow: hidden;
}
.sb-brand-dot { color: #1FFF20; margin: 0 1px; }
.sb-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 120ms;
}
.sb-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sb-item.active {
  background: rgba(212, 175, 55, 0.12);
  color: #D4AF37;
  border-left-color: #D4AF37;
  font-weight: 800;
}
.sb-item .sb-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sb-divider {
  margin: 4px 0;
  padding: 6px 16px 4px;
  border-top: 1px solid #1F2937;
}
.sb-divider span {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

/* ===== HEADER (STEP 7 — 3 ブロック) ===== */
.v2-header {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 18px !important;
  background: linear-gradient(180deg, #0A1822 0%, #0F212E 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.hdr-left { display: flex; align-items: center; gap: 8px; }
.hdr-menu {
  width: 36px; height: 36px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  color: #D4AF37;
  font-size: 16px;
  cursor: pointer;
}
.hdr-tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 120ms;
}
.hdr-tab.active {
  background: linear-gradient(180deg, #D4AF37, #b6912a);
  color: #0a0a0a;
  border-color: #D4AF37;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}
.hdr-tab.disabled { opacity: 0.45; cursor: not-allowed; }
.hdr-tab:hover:not(.active) { color: #fff; background: rgba(255, 255, 255, 0.04); }

.hdr-center {
  text-align: center;
  font-weight: 900;
  letter-spacing: 2.5px;
  font-size: 18px;
  color: #D4AF37;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  white-space: nowrap;
}
.hdr-brand-dot { color: #1FFF20; margin: 0 2px; }

.hdr-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.hdr-currency {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.hdr-currency-yen { color: #1FFF20; font-size: 14px; font-weight: 900; }
.hdr-currency-arrow { font-size: 8px; color: rgba(255, 255, 255, 0.55); }
.hdr-wallet {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 12px;
  background: #051018;
  border: 1px solid #1F2937;
  border-radius: 8px;
  line-height: 1.1;
}
.hdr-wallet strong { color: #1FFF20; font-size: 14px; font-weight: 900; }
.hdr-wallet small { color: #D4AF37; font-size: 9px; font-weight: 600; margin-top: 2px; }

.hdr-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: transform 80ms;
}
.hdr-btn:active { transform: scale(0.95); }
.hdr-btn.deposit {
  background: linear-gradient(180deg, #D4AF37, #b6912a);
  color: #0a0a0a;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}
.hdr-btn.withdraw {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hdr-bell {
  position: relative;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}
.hdr-bell-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ff2929;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0F212E;
}

.hdr-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  cursor: pointer;
}
.hdr-profile-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #b6912a);
  color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 13px;
}
.hdr-profile-vip { color: #D4AF37; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; }

/* ===== LOBBY (STEP 8) ===== */
.shell-v2 .lobby.active { padding: 18px 22px !important; gap: 18px !important; }

.lobby-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lobby-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.lobby-section-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 0;
}
.lobby-section-all {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.lobby-section-all:hover { color: #D4AF37; }

.lobby-grid { display: grid; gap: 8px; }
.lobby-grid.grid-8 { grid-template-columns: repeat(8, 1fr); }
.lobby-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 2タイル横並び：VEGAS ROYAL 70% / BLACKJACK 28% / gap 2% / height 320px */
.lobby-row.two-tile {
  display: flex;
  gap: 2%;
  width: 100%;
}
.lobby-row.two-tile .lobby-tile {
  height: 320px;
  aspect-ratio: auto !important;
  flex-shrink: 0;
}
.lobby-row.two-tile .lobby-tile.hero { width: 70%; }
.lobby-row.two-tile .lobby-tile:not(.hero) { width: 28%; }
.lobby-row.two-tile .lobby-tile .tile-emoji { font-size: 96px; }
.lobby-row.two-tile .tile-provider {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
}
.lobby-row.two-tile .provider-pragmatic { background: #ff6b00; color: #fff; }
.lobby-row.two-tile .provider-evolution { background: #000; color: #fff; border: 1px solid #D4AF37; }
.lobby-row.two-tile .tile-name-bar { font-size: 14px; padding: 8px 12px; bottom: 32px; }
.lobby-row.two-tile .tile-players { bottom: 10px; left: 12px; font-size: 11px; }

@media (max-width: 900px) {
  .lobby-row.two-tile { flex-direction: column; gap: 8px; }
  .lobby-row.two-tile .lobby-tile.hero,
  .lobby-row.two-tile .lobby-tile:not(.hero) { width: 100%; height: 200px; }
}

/* tile reset (override earlier .lobby-tile) */
.shell-v2 .lobby-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  background: linear-gradient(180deg, #1a2a3a, #0a1622);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms, box-shadow 140ms, filter 140ms;
}
.shell-v2 .lobby-tile.hero { aspect-ratio: 1 / 1 !important; min-height: 0 !important; }
.shell-v2 .lobby-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.18);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  border-color: #D4AF37;
}
.shell-v2 .lobby-tile:active { transform: translateY(0) scale(0.98); }
.shell-v2 .lobby-tile .tile-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shell-v2 .lobby-tile .tile-emoji {
  font-size: 56px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

/* tile art variants */
.tile-art-vegas {
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.6), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255, 0, 80, 0.5), transparent 55%),
    linear-gradient(135deg, #2a1a05 0%, #5a0a0a 50%, #1a0a05 100%);
}
.tile-art-bj { background: radial-gradient(ellipse at center, #0E5C2F 0%, #073E1F 60%, #051018 100%); }
.tile-art-plinko { background: linear-gradient(135deg, #6a3093, #a044ff); }
.tile-art-mines { background: linear-gradient(135deg, #2c0a0a, #6a0010); }
.tile-art-hilo { background: linear-gradient(135deg, #1a3a5a, #0a1628); }
.tile-art-crash { background: linear-gradient(135deg, #ff5722, #b71c1c); }
.tile-art-dice { background: linear-gradient(135deg, #ff5252, #c62828); }
.tile-art-wheel { background: linear-gradient(135deg, #ffa726, #c66900); }

.slot-tile.slot-1 { background: linear-gradient(135deg, #ff80ab, #c2185b); }
.slot-tile.slot-2 { background: linear-gradient(135deg, #4527a0, #1a237e); }
.slot-tile.slot-3 { background: linear-gradient(135deg, #ff5e00, #ff80ab); }
.slot-tile.slot-4 { background: linear-gradient(135deg, #0277bd, #01579b); }
.slot-tile.slot-5 { background: linear-gradient(135deg, #5d4037, #3e2723); }
.slot-tile.slot-6 { background: linear-gradient(135deg, #f9a825, #e65100); }
.slot-tile.slot-7 { background: linear-gradient(135deg, #424242, #1a1a1a); }
.slot-tile.slot-8 { background: linear-gradient(135deg, #1de9b6, #00bfa5); }

.live-tile.live-1 { background: linear-gradient(135deg, #d4af37, #6a0010); }
.live-tile.live-2 { background: linear-gradient(135deg, #e91e63, #4a148c); }
.live-tile.live-3 { background: linear-gradient(135deg, #d32f2f, #b71c1c); }
.live-tile.live-4 { background: linear-gradient(135deg, #ff80ab, #f48fb1); }
.live-tile.live-5 { background: linear-gradient(135deg, #ffd54f, #ff8f00); }
.live-tile.live-6 { background: linear-gradient(135deg, #7b1fa2, #4a148c); }
.live-tile.live-7 { background: linear-gradient(135deg, #00897b, #004d40); }
.live-tile.live-8 { background: linear-gradient(135deg, #b71c1c, #d4af37); }

.show-tile.show-1 { background: linear-gradient(135deg, #fdd835, #f57f17); }
.show-tile.show-2 { background: linear-gradient(135deg, #ef5350, #c62828); }
.show-tile.show-3 { background: linear-gradient(135deg, #5d4037, #3e2723); }
.show-tile.show-4 { background: linear-gradient(135deg, #ff5722, #d84315); }

.tile-name-bar {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  padding: 4px 6px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-align: center;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-players {
  position: absolute;
  bottom: 4px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  z-index: 2;
}
.green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00E700;
  box-shadow: 0 0 6px rgba(0, 231, 0, 0.7);
  flex-shrink: 0;
  animation: greenPulse 2.5s ease-in-out infinite;
}
@keyframes greenPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.tile-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 140ms;
  z-index: 3;
}
.shell-v2 .lobby-tile:hover .tile-hover-overlay { opacity: 1; }
.tile-hover-overlay span {
  background: linear-gradient(180deg, #D4AF37, #b6912a);
  color: #0a0a0a;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 3px;
  padding: 8px 22px;
  border-radius: 22px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.6);
}

/* ===== FOOTER (STEP 9 強化版) ===== */
.v2-footer {
  margin-top: auto;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom)) !important;
  background: #06121A;
  border-top: 1px solid #1F2937;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.v2-footer-payments-head {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.v2-footer-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.pay-chip {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
}
.v2-footer-licrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid #1F2937;
  border-bottom: 1px solid #1F2937;
}
.v2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.v2-footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 11px;
}
.v2-footer-links a:hover { color: #D4AF37; }

/* ===== SUPPORT FAB (STEP 9) ===== */
.support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2A3441;
  border: 1px solid #3a4554;
  color: #D4AF37;
  font-size: 22px;
  cursor: pointer;
  z-index: 80;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms, background 120ms;
}
.support-fab:hover { background: #3a4554; transform: scale(1.05); }
.support-fab-tip {
  position: absolute;
  right: 100%;
  margin-right: 12px;
  background: #0F212E;
  color: #D4AF37;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 140ms;
  pointer-events: none;
}
.support-fab:hover .support-fab-tip { opacity: 1; }

/* On narrow screens hide sidebar (movie prop targets desktop) */
@media (max-width: 900px) {
  .left-sidebar { display: none; }
  .shell-v2 { margin-left: 0 !important; }
  .lobby-grid.grid-8 { grid-template-columns: repeat(4, 1fr); }
  .lobby-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

/* ----- HEADER ----- */
.v2-header {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, #0A1822 0%, #0F212E 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.v2-menu {
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  color: #D4AF37;
  font-size: 18px;
  cursor: pointer;
}
.v2-brand {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  color: #D4AF37;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
  white-space: nowrap;
}
.v2-brand-dot { color: #1FFF20; margin: 0 1px; }
.v2-brand-tail { color: #D4AF37; }
.v2-header-right { display: flex; gap: 8px; align-items: center; }
.v2-vip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05));
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
}
.v2-vip-icon { color: #D4AF37; font-size: 14px; }
.v2-vip-text { display: flex; flex-direction: column; line-height: 1; }
.v2-vip-text small { font-size: 8px; color: rgba(212,175,55,0.7); letter-spacing: 1.5px; }
.v2-vip-text strong { font-size: 10px; color: #D4AF37; font-weight: 800; letter-spacing: 0.5px; }
.v2-wallet {
  display: flex;
  align-items: baseline;
  gap: 1px;
  padding: 6px 10px;
  background: #051018;
  border: 1px solid rgba(31, 255, 32, 0.5);
  border-radius: 8px;
  color: #1FFF20;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 0 8px rgba(31, 255, 32, 0.18);
}
.v2-wallet-yen { font-size: 11px; }
.v2-wallet strong { font-size: 14px; font-weight: 900; }

/* ----- STAGE / SCREENS ----- */
.v2-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.shell-v2 .screen { display: none; }
.shell-v2 .screen.active { display: block; }
.shell-v2 .lobby.active { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.shell-v2 .game-screen.active { display: flex; flex-direction: column; padding: 0 14px 14px; }

/* ----- LOBBY: promo banners ----- */
.promo-banners {
  position: relative;
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease-out;
  display: flex;
  align-items: center;
  padding: 16px 20px;
}
.promo-slide.active { opacity: 1; }
.promo-bg { position: absolute; inset: 0; z-index: 0; }
.promo-bg-1 { background: radial-gradient(ellipse at top right, #c8102e 0%, #6a0010 60%, #1a0004 100%); }
.promo-bg-2 { background: radial-gradient(ellipse at bottom left, #3a1d6e 0%, #1a0a35 70%, #0a0418 100%); }
.promo-bg-3 { background: radial-gradient(ellipse at center, #0E5C2F 0%, #073E1F 60%, #02160c 100%); }
.promo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, transparent 60%);
  mix-blend-mode: screen;
}
.promo-text { position: relative; z-index: 1; color: #fff; }
.promo-kicker { font-size: 10px; letter-spacing: 2px; color: #D4AF37; font-weight: 800; margin-bottom: 4px; }
.promo-text h2 { font-size: 22px; font-weight: 900; letter-spacing: 0.5px; line-height: 1.1; margin: 0; }
.promo-sub { font-size: 11px; color: rgba(255, 255, 255, 0.85); margin-top: 6px; letter-spacing: 0.5px; }
.promo-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.promo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer; transition: all 200ms;
}
.promo-dot.active { background: #D4AF37; width: 18px; border-radius: 3px; }

/* ----- LOBBY: category tabs ----- */
.cat-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.cat-tab {
  padding: 8px 4px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 150ms;
}
.cat-tab.active {
  background: linear-gradient(180deg, #D4AF37, #b6912a);
  color: #0a0a0a;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* ----- LOBBY: tiles ----- */
.lobby-tiles { display: flex; flex-direction: column; gap: 10px; }
.lobby-tile {
  position: relative;
  display: block;
  background: linear-gradient(180deg, #1a2a3a 0%, #0a1622 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 120ms;
}
.lobby-tile:active { transform: scale(0.98); }
.lobby-tile.hero { aspect-ratio: 16 / 9; min-height: 160px; }
.lobby-tile:not(.hero) { aspect-ratio: 16 / 7; min-height: 92px; }
.tile-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tile-art-vegas {
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.5), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255, 0, 80, 0.45), transparent 55%),
    linear-gradient(135deg, #2a1a05 0%, #5a0a0a 50%, #1a0a05 100%);
}
.tile-art-bj {
  background:
    radial-gradient(ellipse at center, #0E5C2F 0%, #073E1F 60%, #051018 100%);
}
.tile-emoji { font-size: 56px; opacity: 0.25; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); }
.lobby-tile.hero .tile-emoji { font-size: 92px; }
.tile-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 50% 100%, rgba(212,175,55,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.tile-overlay {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.tile-kicker { font-size: 9px; letter-spacing: 2px; color: #1FFF20; font-weight: 800; margin-bottom: 4px; }
.tile-name { font-size: 17px; font-weight: 900; color: #fff; letter-spacing: 1px; margin: 0; }
.lobby-tile.hero .tile-name { font-size: 22px; }
.tile-sub { font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 4px; letter-spacing: 0.5px; }
.tile-provider {
  position: absolute;
  right: 10px; bottom: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.provider-pragmatic { background: #ff6b00; color: #fff; }
.provider-evolution { background: #000; color: #fff; border: 1px solid #D4AF37; }

/* ----- LOBBY: jackpot meter ----- */
.lobby-jp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 10px;
}
.lobby-jp-cell { text-align: center; padding: 4px 2px; border-radius: 6px; }
.lobby-jp-cell span { display: block; font-size: 8px; letter-spacing: 1px; color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.lobby-jp-cell strong { font-size: 12px; font-weight: 900; color: #D4AF37; }
.lobby-jp-cell.grand { background: linear-gradient(180deg, #c8102e, #7a0010); }
.lobby-jp-cell.grand strong { color: #fff; text-shadow: 0 0 8px rgba(255, 215, 0, 0.7); }

/* ----- GAME SCREEN: top bar ----- */
.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  margin-bottom: 8px;
}
.back-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #D4AF37;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.back-btn:active { transform: scale(0.96); }
.game-topbar-title { font-size: 13px; font-weight: 900; letter-spacing: 2px; color: #D4AF37; margin: 0; }
.game-topbar-prov { font-size: 9px; color: rgba(255,255,255,0.55); letter-spacing: 1.5px; font-weight: 700; }

/* ----- FOOTER ----- */
.v2-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  z-index: 50;
}
.v2-footer-badge {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1FFF20;
  box-shadow: 0 0 6px rgba(31,255,32,0.7);
  flex-shrink: 0;
}
.v2-footer-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.v2-footer-link:hover { color: #D4AF37; }
.v2-footer-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1.5px solid #ff5252;
  border-radius: 50%;
  color: #ff5252;
  font-weight: 900;
  font-size: 9px;
  flex-shrink: 0;
}

/* ----- COMING SOON modal ----- */
.coming-soon-modal .modal-panel { max-width: 320px; text-align: center; }
.coming-soon-modal .label { color: #D4AF37; letter-spacing: 3px; font-weight: 800; font-size: 11px; margin-bottom: 6px; }
.coming-soon-modal h2 { color: #fff; font-size: 28px; letter-spacing: 2px; margin-bottom: 12px; }
.coming-soon-modal .cs-sub { color: rgba(255,255,255,0.7); font-size: 12px; line-height: 1.6; margin-bottom: 12px; }

/* ----- P-mode (?mode=inkaji) ----- */
body.p-mode .v2-wallet-yen { font-size: 12px; }
body.p-mode .v2-wallet { border-color: #D4AF37; color: #D4AF37; box-shadow: 0 0 8px rgba(212,175,55,0.25); }

/* ============================================================
 * v1 INHERITED STYLES BELOW (game screens)
 * ============================================================ */

/* 映画劇中用・架空オンラインゲーム画面／実在サービスとは無関係 */
:root {
  --bg: #08080d;
  --panel: #11131d;
  --panel-2: #171a28;
  --line: rgba(255,255,255,.1);
  --text: #f2f4ff;
  --sub: #9aa3b8;
  --muted: #687086;
  --gold: #f7c95f;
  --cyan: #48d7ff;
  --pink: #ff4f9a;
  --green: #42e58a;
  --red: #ff5d65;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% -10%, rgba(72,215,255,.18), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(255,79,154,.14), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

body {
  padding: var(--safe-top) 0 var(--safe-bottom);
}

button {
  font: inherit;
}

.fictional-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 6px 10px;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 12px;
  text-align: center;
}

body.qa .fictional-banner {
  display: block;
}

.phone-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

.topbar,
.brand,
.wallet,
.charge-panel,
.game-head,
.action-row,
.section-title {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  padding: 4px 0 12px;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--gold), #f37e50);
  color: #1b1200;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-kicker,
.label {
  margin: 0;
  color: var(--sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 21px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 22px;
}

.notice-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

.wallet {
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(247,201,95,.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(247,201,95,.14), rgba(72,215,255,.08)), var(--panel);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}

.coin-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 3px;
}

.coin-line strong {
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
}

.coin-icon {
  color: var(--gold);
  font-size: 18px;
}

.wallet-side {
  text-align: right;
}

.wallet-side strong {
  display: block;
  margin: 2px 0 7px;
  color: var(--gold);
  font-size: 17px;
}

.vip-badge {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid rgba(255,93,101,.5);
  border-radius: 999px;
  color: #ffb1b5;
  font-size: 10px;
  font-weight: 800;
}

.risk-strip {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,93,101,.28);
  border-radius: 8px;
  background: rgba(255,93,101,.08);
}

.risk-strip span {
  color: #ffb1b5;
  font-size: 12px;
  font-weight: 800;
}

.charge-panel {
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.charge-panel strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.charge-button,
.primary-action,
.secondary-action {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.charge-button {
  flex: 0 0 auto;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--pink), #ff8a4c);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255,79,154,.24);
}

.game-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 10px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--sub);
  font-size: 12px;
  font-weight: 900;
}

.tab.active {
  border-color: rgba(72,215,255,.55);
  background: rgba(72,215,255,.14);
  color: var(--text);
}

.bet-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.chip {
  min-height: 36px;
  border: 1px solid rgba(247,201,95,.3);
  border-radius: 999px;
  background: rgba(247,201,95,.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.chip.danger {
  border-color: rgba(255,93,101,.5);
  background: rgba(255,93,101,.14);
  color: #ffb1b5;
}

.game-screen {
  display: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23,26,40,.96), rgba(13,15,24,.96));
  overflow: hidden;
}

.game-screen.active {
  display: block;
}

.game-head {
  justify-content: space-between;
  gap: 12px;
}

.bet-box {
  min-width: 74px;
  padding: 8px 10px;
  border: 1px solid rgba(247,201,95,.35);
  border-radius: 8px;
  text-align: right;
  background: rgba(247,201,95,.08);
}

.bet-box span {
  display: block;
  color: var(--sub);
  font-size: 10px;
  font-weight: 800;
}

.bet-box strong {
  color: var(--gold);
  font-size: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(247,188,32,.38);
}

.dealer-area,
.player-area {
  padding-top: 14px;
}

.seat-label {
  color: var(--sub);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.seat-label span {
  color: var(--gold);
}

.cards {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

.card {
  width: 54px;
  height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  background: #f7f7fb;
  color: #11131d;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.card span {
  align-self: flex-end;
  font-size: 16px;
}

.card.red {
  color: #d7243f;
}

.card.back {
  background:
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.08) 75%),
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.08) 75%),
    linear-gradient(135deg, #1d6cff, #823fff);
  background-position: 0 0, 8px 8px, 0 0;
  background-size: 16px 16px, 16px 16px, auto;
}

.table-glow {
  margin: 16px -4px 4px;
  padding: 18px;
  border: 1px solid rgba(66,229,138,.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66,229,138,.2), rgba(66,229,138,.04) 62%, transparent 63%);
  text-align: center;
}

.pot span,
.jackpot span {
  display: block;
  color: var(--sub);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.pot strong,
.jackpot strong {
  color: var(--green);
  font-size: 25px;
}

.table-glow p,
.slot-status {
  margin-top: 4px;
  color: var(--sub);
  font-size: 12px;
}

.action-row {
  gap: 8px;
  margin-top: 14px;
}

.primary-action,
.secondary-action {
  flex: 1;
  color: var(--text);
}

.primary-action {
  background: linear-gradient(135deg, var(--cyan), #496dff);
  box-shadow: 0 8px 20px rgba(72,215,255,.18);
}

.primary-action.spin {
  flex: 1.35;
  background: linear-gradient(135deg, var(--gold), #ff754f);
  color: #1f1200;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.jackpot {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(247,201,95,.28);
  border-radius: 8px;
  background: rgba(247,201,95,.07);
  text-align: center;
}

.jackpot strong {
  color: var(--gold);
}

.slot-machine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(72,215,255,.2);
  border-radius: 8px;
  background: #070911;
}

.reel {
  aspect-ratio: 1 / 1.15;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #bcc6d9);
  color: #141622;
  font-size: 38px;
  font-weight: 900;
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.12);
}

.slot-machine.spinning .reel {
  animation: reelPulse .18s linear infinite;
}

@keyframes reelPulse {
  50% { transform: translateY(3px); filter: blur(1px); }
}

.slot-status {
  min-height: 20px;
  text-align: center;
}

.history {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.section-title {
  justify-content: space-between;
}

.section-title h2 {
  font-size: 15px;
}

.section-title span {
  color: var(--muted);
  font-size: 11px;
}

.history ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.history li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 13px;
}

.history li strong {
  color: var(--text);
  white-space: nowrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.68);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(100%, 410px);
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121522;
  box-shadow: 0 -14px 50px rgba(0,0,0,.42);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 22px;
}

.pack-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--text);
}

.pack.hot {
  border-color: rgba(255,79,154,.48);
  background: rgba(255,79,154,.12);
}

.pack em {
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.pack span {
  font-size: 21px;
  font-weight: 900;
}

.pack strong {
  color: var(--gold);
}

.fine-print {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 80;
  width: min(calc(100% - 28px), 390px);
  transform: translate(-50%, 120%);
  padding: 12px 14px;
  border: 1px solid rgba(72,215,255,.35);
  border-radius: 8px;
  background: rgba(10,13,22,.96);
  color: var(--text);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

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

@media (min-width: 700px) {
  body {
    padding: 22px 0;
  }

  .phone-shell {
    min-height: auto;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 24px;
    background: rgba(8,8,13,.78);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
  }
}

/* Royale visual pass: reference-style luxury casino prop */
:root {
  --bg: #030201;
  --panel: #090603;
  --text: #fff2c9;
  --sub: #a98639;
  --muted: #6f5a2a;
  --gold: #f7bc20;
  --gold-deep: #8f5d00;
  --ruby: #d9234e;
  --felt: #023c25;
  --felt-dark: #001c12;
  --line: rgba(247, 188, 32, .22);
}

html,
body {
  background: #171717;
}

.phone-shell {
  width: min(100%, 420px);
  padding: 0 10px;
  background:
    radial-gradient(circle at 50% 28%, rgba(103, 54, 10, .34), transparent 26%),
    linear-gradient(180deg, #201006 0, #070200 17%, #050200 100%);
  color: var(--text);
  overflow: hidden;
}

.topbar {
  padding: 15px 13px 10px;
  border-bottom: 1px solid rgba(247, 188, 32, .15);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

h1 {
  color: #ffd866;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: .03em;
  text-shadow: 0 0 12px rgba(247, 188, 32, .32);
}

.brand-kicker,
.label {
  color: #9b7833;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .03em;
}

.icon-button {
  border: 0;
  background: transparent;
  color: #b99a55;
}

.notice-dot {
  background: #fff0d0;
  box-shadow: 0 0 8px #fff0d0;
}

.wallet {
  position: relative;
  margin: 0 12px;
  padding: 12px 5px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.money-pulse {
  position: absolute;
  right: 18px;
  top: 36px;
  z-index: 50;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .02em;
  pointer-events: none;
  animation: moneyPulse 1.4s cubic-bezier(.18,.85,.22,1) forwards;
}

.money-pulse.debit {
  color: #ff5a72;
  text-shadow:
    0 0 12px rgba(255,74,98,.95),
    0 0 22px rgba(255,30,60,.65),
    0 2px 0 rgba(60,0,0,.85);
}

.money-pulse.credit {
  color: #ffd86c;
  text-shadow:
    0 0 12px rgba(255,220,80,.95),
    0 0 22px rgba(247,188,32,.7),
    0 2px 0 rgba(80,40,0,.85);
}

@keyframes moneyPulse {
  0%   { opacity: 0; transform: translateY(10px) scale(.7); }
  14%  { opacity: 1; transform: translateY(0) scale(1.18); }
  35%  { opacity: 1; transform: translateY(-6px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-44px) scale(1.0); }
}

/* LCD meter flash on change (debit = red, credit = gold) */
.cabinet-meter.flash-debit .meter-display {
  animation: meterFlashDebit .8s ease;
}
.cabinet-meter.flash-credit .meter-display {
  animation: meterFlashCredit .8s ease;
}
@keyframes meterFlashDebit {
  0%, 100% { box-shadow: inset 0 0 6px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,60,60,.15); }
  35%      { box-shadow: 0 0 16px rgba(255,80,80,.95), inset 0 0 8px rgba(0,0,0,.85), inset 0 0 0 2px rgba(255,80,80,.85); }
}
@keyframes meterFlashCredit {
  0%, 100% { box-shadow: inset 0 0 6px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,60,60,.15); }
  35%      { box-shadow: 0 0 18px rgba(255,220,80,1), inset 0 0 8px rgba(0,0,0,.85), inset 0 0 0 2px rgba(255,220,80,.95); }
}

.wallet.wallet-debit {
  animation: walletDebit .62s ease;
}

.wallet.wallet-credit {
  animation: walletCredit .62s ease;
}

@keyframes walletDebit {
  0% { filter: none; }
  30% { filter: drop-shadow(0 0 16px rgba(255, 52, 76, .72)); transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  100% { filter: none; transform: translateX(0); }
}

@keyframes walletCredit {
  0% { filter: none; }
  35% { filter: drop-shadow(0 0 18px rgba(247, 188, 32, .9)); transform: scale(1.018); }
  100% { filter: none; transform: scale(1); }
}

.player-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar-ring {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: #ffe08a;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.avatar-ring em {
  position: absolute;
  right: -3px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1d99ff;
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.player-name {
  display: block;
  color: #fff0bd;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

.player-name small {
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #1265d5;
  color: #fff;
  font-size: 8px;
}

.player-level {
  margin-top: 3px;
  color: #b8842d;
  font-size: 10px;
  font-weight: 700;
}

.wallet-side {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 136px;
  padding: 7px 8px;
  border: 1px solid rgba(247, 188, 32, .5);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(114, 60, 8, .58), rgba(35, 14, 2, .65));
  text-align: left;
}

.coin-line {
  gap: 5px;
}

.coin-line strong {
  color: #f8d06c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(247,188,32,.38);
}

.coin-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(#ffd96d, #cc7b00);
  color: #5a3100;
  font-size: 13px;
  font-weight: 900;
}

.wallet-plus {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(#ff5576, #cf1643);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.charge-panel {
  margin: 10px 13px 13px;
  padding: 12px;
  border: 1px solid rgba(255, 79, 119, .65);
  border-radius: 9px;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 105, 140, .22), transparent 25%),
    linear-gradient(100deg, #350015, #8d1120 58%, #4b0709);
  box-shadow: inset 0 0 18px rgba(255,255,255,.04), 0 12px 22px rgba(0,0,0,.28);
}

.promo-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ff6589;
  font-size: 27px;
}

.charge-panel strong {
  color: #ffe1c2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.1;
}

.charge-panel span {
  display: block;
  color: #ffd257;
  font-size: 12px;
  font-weight: 900;
}

.charge-button {
  min-height: 24px;
  padding: 0 12px;
  border: 1px solid #ffcc57;
  border-radius: 7px;
  background: linear-gradient(#ffe777, #d88a00);
  color: #5a2200;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(247, 188, 32, .32);
}

.game-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 11px 13px 9px;
}

.tab {
  min-height: 38px;
  border: 1px solid rgba(247, 188, 32, .36);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(51, 28, 6, .94), rgba(9, 4, 1, .94));
  color: #8f7a46;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.tab.active {
  border-color: rgba(247, 188, 32, .78);
  background: linear-gradient(180deg, #ffd05a, #bd7300);
  color: #2a1200;
  box-shadow: 0 0 18px rgba(247, 188, 32, .32);
}

.game-screen {
  margin: 0 13px;
  padding: 16px 14px 18px;
  border: 1px solid rgba(247, 188, 32, .48);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 63%, rgba(0, 133, 72, .48), transparent 28%),
    radial-gradient(circle at 50% 50%, #045b39 0, #013a25 48%, #01180f 100%);
  box-shadow: inset 0 0 42px rgba(0,0,0,.6), 0 0 0 1px rgba(115, 74, 0, .5);
}

#slotsScreen.active {
  display: block;
}

.game-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dealer-area,
.player-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.seat-label {
  margin-bottom: 4px;
  color: #c8a44d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
}

.seat-label span {
  display: inline-grid;
  min-width: 24px;
  height: 18px;
  place-items: center;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #e7d7a0;
}

.cards {
  justify-content: center;
  gap: 7px;
  margin-top: 0;
}

.card {
  width: 47px;
  height: 65px;
  padding: 5px 6px;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff, #e6edf0);
  color: #111;
  font-size: 17px;
  box-shadow: 0 11px 18px rgba(0,0,0,.28);
}

.card span {
  font-size: 16px;
}

.table-glow {
  width: 100%;
  margin: 10px auto 7px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0, rgba(184, 142, 45, .42) 35%, rgba(184, 142, 45, .42) 65%, transparent 100%);
  background-size: 100% 1px;
  background-position: center 33%;
  background-repeat: no-repeat;
}

.pot {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 7px dashed rgba(255,255,255,.85);
  border-radius: 50%;
  background: radial-gradient(circle, #ef3358 0 40%, #8b001a 42% 100%);
  box-shadow: 0 0 0 5px rgba(100, 66, 8, .35), 0 0 26px rgba(247, 188, 32, .32);
}

.pot span {
  display: none;
}

.pot strong {
  color: #fff;
  font-size: 11px;
}

.table-glow p {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(#f3b73c, #d57900);
  color: #251000;
  font-size: 11px;
  font-weight: 900;
}

.bet-controls {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px auto 13px;
  max-width: 260px;
}

.chip {
  position: relative;
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0 auto;
  border: 6px dashed rgba(255,255,255,.8);
  border-radius: 50%;
  background: radial-gradient(circle, #b9102d 0 43%, #5b0612 45% 100%);
  color: #fff;
  font-size: 9px;
  box-shadow: 0 8px 14px rgba(0,0,0,.35);
}

.chip.active {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 0 24px rgba(255, 220, 100, .55);
}

.chip.danger {
  border-color: rgba(255,255,255,.82);
  background: radial-gradient(circle, #4f111b 0 43%, #28070d 45% 100%);
  color: #fff;
}

.action-row {
  gap: 8px;
  margin: 0 13px 10px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  flex: 1 1 calc(25% - 8px);
  min-height: 38px;
  min-width: 82px;
  border-radius: 10px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(0,0,0,.34);
}

#dealButton {
  background: linear-gradient(#17d89d, #009465);
}

#hitButton {
  background: linear-gradient(#23e0ad, #079c72);
}

#standButton {
  background: linear-gradient(#ff5c83, #c71342);
}

#doubleButton {
  background: linear-gradient(#ffd05f, #e58d00);
}

#spinButton {
  background: linear-gradient(#ffd05f, #e58d00);
  color: #2c1300;
}

#autoSpinButton {
  background: linear-gradient(#a56cff, #6427c7);
}

.trap-action {
  background: linear-gradient(#45414f, #17141d);
  color: #e6d0ff;
}

.history {
  margin: 10px 13px;
  padding: 8px;
  border-color: rgba(247,188,32,.24);
  border-radius: 7px;
  background: rgba(0,0,0,.38);
}

.section-title h2 {
  color: #a98435;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: .06em;
}

.history li {
  color: #927435;
  font-size: 11px;
}

.history li strong {
  color: #1be299;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 -10px;
  padding: 11px 8px calc(12px + var(--safe-bottom));
  border-top: 1px solid rgba(247,188,32,.2);
  background: linear-gradient(180deg, #0b0907, #010101);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 1px;
  border: 0;
  background: transparent;
  color: #6b665d;
  font-size: 20px;
}

.bottom-nav small {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
}

.bottom-nav .active {
  color: var(--gold);
}

.slot-machine.spinning {
  box-shadow: inset 0 0 24px rgba(247, 188, 32, .16), 0 0 26px rgba(247, 188, 32, .18);
}

.slot-machine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 9px 0 7px;
  padding: 6px;
  border-color: rgba(247,188,32,.42);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(247,188,32,.12), transparent 18%, transparent 82%, rgba(247,188,32,.12)),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.08), transparent 38%),
    #070301;
  box-shadow: inset 0 0 28px rgba(0,0,0,.68), 0 0 18px rgba(247,188,32,.12);
  position: relative;
}

.slot-machine .reel-col {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.18));
}
/* Padding-bottom trick: column height = column width × 4.2 (3 cells of aspect 1/1.4) */
.slot-machine .reel-col::before {
  content: "";
  display: block;
  padding-bottom: 420%;
}

.slot-machine .reel-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.slot-machine .reel-col .slot-cell {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1.4;
  margin: 0;
  border-radius: 5px;
}

.reel,
.slot-cell {
  min-width: 0;
  aspect-ratio: 1 / .94;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(228,229,235,.95) 46%, rgba(185,194,210,.95)),
    radial-gradient(circle at 50% 20%, #fff, transparent 48%);
  color: #11131d;
  font-family: Georgia, "Times New Roman", serif;
  padding: 0 1px;
  font-size: clamp(10px, 2.75vw, 15px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: inset 0 -8px 12px rgba(0,0,0,.16), 0 6px 12px rgba(0,0,0,.22);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

.slot-cell.symbol-royal {
  background:
    linear-gradient(135deg, rgba(247,188,32,.22), transparent 38%),
    linear-gradient(180deg, #fff, #eef2f5);
  color: #241300;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 3.7vw, 20px);
}

.slot-cell.symbol-r7 {
  background: radial-gradient(circle at 50% 30%, #fff2b4, #e01e3c 45%, #6b0014 100%);
  color: #fff9d1;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 7.4vw, 40px);
  text-shadow: 0 2px 0 #6f0000, 0 0 18px rgba(255,220,80,.88);
}

.slot-cell.symbol-b7 {
  background: radial-gradient(circle at 50% 30%, #d8f0ff, #2d6cff 45%, #08164a 100%);
  color: #f3faff;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 7.4vw, 40px);
  text-shadow: 0 2px 0 #061235, 0 0 18px rgba(120,180,255,.88);
}

.slot-cell.symbol-y7 {
  background: radial-gradient(circle at 50% 30%, #fff7c7, #f0c500 50%, #6c4400 100%);
  color: #fffae0;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 7.4vw, 40px);
  text-shadow: 0 2px 0 #5e3a00, 0 0 18px rgba(255,220,80,.88);
}

.slot-cell.symbol-bar1,
.slot-cell.symbol-bar2,
.slot-cell.symbol-bar3 {
  background: linear-gradient(180deg, #ffffff 0%, #d0d0d0 100%);
  color: #1a1a1a;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(11px, 2.95vw, 14px);
  letter-spacing: .04em;
}

.slot-cell.symbol-bell {
  background: radial-gradient(circle at 50% 35%, #fff7c7, #f0a700 52%, #6c3b00 100%);
  color: #fff1a1;
  font-size: clamp(15px, 4vw, 20px);
}

.slot-cell.symbol-dia {
  background: radial-gradient(circle at 50% 30%, #ffffff, #65d6ff 45%, #052848 100%);
  color: #f0fbff;
  font-size: clamp(15px, 4vw, 20px);
}

.slot-cell.symbol-chry {
  background: radial-gradient(circle at 50% 30%, #fff0f0, #d6004a 50%, #3c0010 100%);
  color: #fff;
  font-size: clamp(15px, 4vw, 20px);
}

.slot-cell.symbol-lmn {
  background: radial-gradient(circle at 50% 30%, #fffde0, #ffd400 50%, #6c4400 100%);
  color: #1a1a00;
  font-size: clamp(15px, 4vw, 20px);
}

.slot-cell.symbol-wild {
  background: radial-gradient(circle at 50% 35%, #fff, #39d7ff 42%, #11207d 100%);
  color: #fff;
  font-size: clamp(8px, 2.35vw, 11px);
  letter-spacing: 0;
  text-shadow: 0 0 15px rgba(255,255,255,.7);
}

.slot-cell.symbol-scatter {
  background: radial-gradient(circle at 50% 35%, #ffffff, #65e8ff 45%, #063f70 100%);
  color: #eaffff;
  font-size: clamp(8px, 2.35vw, 11px);
  text-shadow: 0 0 18px rgba(142,239,255,.9);
}

.slot-cell.symbol-multiplier {
  background: radial-gradient(circle at 50% 35%, #fff, #a65cff 46%, #220060 100%);
  color: #fff;
  font-size: clamp(13px, 4vw, 20px);
}

.slot-cell.symbol-orb {
  background: radial-gradient(circle at 50% 35%, #fff2b5, #ff283d 40%, #720009 100%);
  color: #fff;
  font-size: clamp(8px, 2.45vw, 11px);
  box-shadow: inset 0 -12px 18px rgba(0,0,0,.16), 0 0 22px rgba(255,40,61,.45);
}

.slot-cell.win-symbol {
  border-color: #fff2a8;
  color: #fff8cf;
  filter: brightness(1.13) saturate(1.22);
  transform: translateY(-1px);
  box-shadow:
    inset 0 -10px 16px rgba(0,0,0,.14),
    0 0 0 1px rgba(255,242,168,.58),
    0 0 18px rgba(247,188,32,.72);
}

/* During spin, the strip slides via JS transform; cells get a slight motion blur for feel */
.slot-machine.spinning .reel-strip {
  filter: blur(.6px);
}

.slot-machine .slot-cell.stopped {
  animation: reelStop .34s cubic-bezier(.2, 1.45, .4, 1);
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.12), 0 0 20px rgba(247, 188, 32, .45);
}

@keyframes reelStop {
  0% { transform: translateY(-6px); }
  60% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

.vip-progress {
  width: 124px;
  height: 4px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.vip-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0a700, #fff0a3, #8be7ff);
  box-shadow: 0 0 10px rgba(247,188,32,.55);
}

.lobby-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 13px 10px;
  overflow: visible;
}

.lobby-card {
  min-width: 0;
  min-height: 58px;
  padding: 8px 7px;
  border: 1px solid rgba(247,188,32,.28);
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(55,28,5,.9), rgba(6,3,1,.94));
  color: #f8d983;
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
}

.lobby-card span {
  display: block;
  margin-bottom: 5px;
  color: #a98742;
  font-size: 8px;
  letter-spacing: .03em;
  white-space: nowrap;
}

.lobby-card.hot {
  background: linear-gradient(155deg, #7f071c, #1b0208);
}

.lobby-card.live {
  background: linear-gradient(155deg, #073b2b, #030806);
}

.lobby-card.tourney {
  background: linear-gradient(155deg, #2c164a, #080310);
}

.lobby-card.active,
.lobby-card:active {
  border-color: rgba(247,188,32,.75);
  box-shadow: 0 0 16px rgba(247,188,32,.2);
}

.jackpot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
}

.jackpot-tier {
  padding: 7px 5px;
  border: 1px solid rgba(247,188,32,.22);
  border-radius: 8px;
  background: rgba(0,0,0,.36);
  text-align: center;
}

.jackpot-tier span {
  display: block;
  color: #b79445;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.jackpot-tier strong {
  display: block;
  margin-top: 2px;
  color: #ffd76e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  text-shadow: 0 0 11px rgba(247,188,32,.32);
}

.jackpot-tier.major {
  border-color: rgba(154, 95, 255, .42);
}

.jackpot-tier.grand {
  border-color: rgba(255, 65, 106, .52);
  background: linear-gradient(155deg, rgba(116, 7, 28, .75), rgba(0,0,0,.42));
}

.ticker {
  margin: 0 13px 49px;
  overflow: hidden;
  border: 1px solid rgba(247,188,32,.22);
  border-radius: 8px;
  background: rgba(0,0,0,.58);
}

#slotsScreen {
  padding: 11px 14px 9px;
}

#slotsScreen .bet-controls {
  gap: 5px;
  margin-top: 8px;
}

#slotsScreen .chip {
  min-height: 31px;
  font-size: 11px;
}

#slotsScreen .slot-status {
  min-height: 17px;
  margin-top: 3px;
  font-size: 11px;
}

#slotsScreen .action-row {
  gap: 7px;
  margin-top: 8px;
}

#slotsScreen .primary-action,
#slotsScreen .secondary-action {
  min-height: 39px;
}

.ticker div {
  width: max-content;
  padding: 7px 0;
  color: #ffd76e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  animation: tickerMove 22s linear infinite;
}

@keyframes tickerMove {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.pack.best {
  border-color: rgba(247,188,32,.58);
  background: rgba(247,188,32,.12);
}

.pack.danger {
  border-color: rgba(255,93,101,.55);
  background: rgba(255,93,101,.13);
}

.pack.black {
  border-color: rgba(255,220,126,.5);
  background: linear-gradient(155deg, #0b0b0e, #251700);
}

/* === Sugar Party 2nd slot === */

.slot-view-tabs {
  display: flex;
  gap: 8px;
  padding: 0 18px;
  margin: 6px 0 8px;
}

.slot-view-tabs button {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,18,28,.6);
  color: #d8d2c2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  cursor: pointer;
  transition: all .18s ease;
}

.slot-view-tabs button[data-slot-view="dragon"].active {
  background: linear-gradient(150deg, #2c0a0a, #6b1717 60%, #f7bc20);
  color: #ffe69b;
  border-color: rgba(247,188,32,.55);
  box-shadow: 0 6px 16px rgba(247,188,32,.18);
}

.slot-view-tabs button[data-slot-view="sugar"].active {
  background: linear-gradient(150deg, #ff8ad6 0%, #c879ff 55%, #6fc7ff 100%);
  color: #2a0e3a;
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 6px 16px rgba(255,138,214,.36);
}

.slot-view {
  display: none;
}

.slot-view.active {
  display: block;
}

#slotsScreen.is-sugar {
  background: linear-gradient(170deg, #ffd9ee 0%, #ffc0e7 30%, #c8a8ff 65%, #87cdff 100%);
  border-radius: 18px;
  padding: 14px 14px 18px;
  margin-bottom: 12px;
}

#slotsScreen.is-sugar .game-head h2 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(106,16,103,.55), 0 0 12px rgba(255,138,214,.6);
  font-weight: 900;
  letter-spacing: .04em;
}

#slotsScreen.is-sugar .game-head .label {
  color: #ffe1f5;
  letter-spacing: .12em;
}

#slotsScreen.is-sugar .bet-box {
  background: rgba(255,255,255,.85);
  border-color: #ff8ad6;
  color: #6a1067;
}

#slotsScreen.is-sugar .bet-box span {
  color: #b13c8e;
}

#slotsScreen.is-sugar .bet-box strong {
  color: #6a1067;
}

.sugar-jackpot {
  display: flex;
  gap: 6px;
  padding: 8px 4px 0;
}

.sugar-jackpot div {
  flex: 1;
  background: linear-gradient(155deg, rgba(255,255,255,.85), rgba(255,224,243,.7));
  border: 1px solid rgba(255,138,214,.45);
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
}

.sugar-jackpot span {
  display: block;
  font-size: 9px;
  color: #b13c8e;
  letter-spacing: .14em;
  font-weight: 800;
}

.sugar-jackpot strong {
  display: block;
  font-size: 13px;
  color: #6a1067;
  font-weight: 900;
  margin-top: 2px;
}

#slotsScreen.is-sugar .bet-controls .chip {
  background: rgba(255,255,255,.85);
  border-color: rgba(255,138,214,.4);
  color: #6a1067;
}

#slotsScreen.is-sugar .bet-controls .chip.danger {
  background: linear-gradient(155deg, #ff6aa9, #c33b8a);
  color: #fff;
  border-color: transparent;
}

.sugar-machine {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 12px 0 8px;
  padding: 10px 8px 12px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg,
      #ffffff 0 12px,
      #ff3559 12px 24px) padding-box;
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 3px #ff3559,
    0 14px 30px rgba(106,16,103,.35),
    inset 0 0 0 6px rgba(255,255,255,.55);
}

.sugar-machine::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #4b1c66 0%, #1f0833 100%);
  z-index: 0;
}

.sugar-cell {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%), rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  text-shadow: 0 2px 3px rgba(0,0,0,.4);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sugar-cell.bomb {
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.25), rgba(0,0,0,0) 55%), #181126;
  border-color: #ff5d65;
  box-shadow: 0 0 12px rgba(255,93,101,.45);
}

.sugar-cell.bomb::after {
  content: attr(data-bomb-mult);
  position: absolute;
  bottom: 1px;
  right: 3px;
  font-size: 9px;
  font-weight: 900;
  color: #ffd76e;
  text-shadow: 0 1px 2px #000;
  background: rgba(0,0,0,.5);
  padding: 1px 4px;
  border-radius: 6px;
}

.sugar-cell.scatter {
  background: radial-gradient(circle at 50% 35%, #fff7c2, #ffb6e6 60%, #c879ff 100%);
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.5);
}

.sugar-cell.win-symbol {
  animation: sugarPulse 0.55s ease infinite;
  box-shadow: 0 0 18px rgba(255,255,255,.85), 0 0 28px rgba(255,138,214,.7);
  border-color: #fff;
}

.sugar-cell.tumbling {
  animation: sugarFall 0.36s ease;
}

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

@keyframes sugarFall {
  from { transform: translateY(-32px); opacity: 0.2; }
  to { transform: translateY(0); opacity: 1; }
}

.sugar-status {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #6a1067;
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 6px 12px;
  margin: 6px auto;
  width: fit-content;
  max-width: 90%;
}

.tumble-counter {
  display: inline-block;
  background: linear-gradient(120deg, #ffd76e, #ff7eb3);
  color: #2a0e3a;
  font-weight: 900;
  border-radius: 8px;
  padding: 2px 8px;
  margin-left: 6px;
}

.primary-action.spin.sugar {
  background: linear-gradient(155deg, #ff6aa9 0%, #c33b8a 50%, #6a1067 100%);
  color: #fff;
  border: 1px solid #ffd6ec;
  box-shadow: 0 8px 22px rgba(195,59,138,.5);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

#slotsScreen.is-sugar .secondary-action {
  background: rgba(255,255,255,.85);
  color: #6a1067;
  border: 1px solid rgba(255,138,214,.55);
}

/* === Dragon Fortune Free Spin Mode === */

#dragonView {
  position: relative;
}

.bonus-mode-ribbon {
  display: none;
}

#slotsScreen.is-bonus .bonus-mode-ribbon {
  display: block;
  text-align: center;
  padding: 6px 12px;
  margin: 0 0 8px;
  background: linear-gradient(120deg, #4a1466 0%, #b340ff 30%, #ffd76e 50%, #b340ff 70%, #4a1466 100%);
  background-size: 220% 100%;
  color: #fff;
  font-weight: 900;
  letter-spacing: .26em;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,214,236,.6);
  text-shadow: 0 0 8px rgba(247,188,32,.7), 0 2px 3px rgba(0,0,0,.4);
  animation: bonusRibbonShine 3.4s linear infinite;
  box-shadow: 0 6px 18px rgba(180,80,255,.4);
}

@keyframes bonusRibbonShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.dragon-bonus-hud {
  display: none;
}

#slotsScreen.is-bonus .dragon-bonus-hud {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 10px;
}

#slotsScreen.is-bonus .dragon-bonus-hud > div {
  flex: 1;
  background: linear-gradient(155deg, rgba(120,40,180,.92) 0%, rgba(50,15,80,.96) 100%);
  border: 1px solid rgba(255,214,236,.55);
  border-radius: 14px;
  padding: 8px 10px 10px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(120,40,180,.45), inset 0 0 0 1px rgba(255,214,236,.18);
}

#slotsScreen.is-bonus .dragon-bonus-hud .label {
  color: #ffd6ec;
  font-size: 9px;
  letter-spacing: .18em;
  font-weight: 800;
  margin: 0 0 4px;
}

#slotsScreen.is-bonus .dragon-bonus-hud .bonus-counter-wrap strong {
  display: inline-block;
  font-size: 30px;
  font-weight: 900;
  color: #ffe69b;
  text-shadow: 0 0 14px rgba(247,188,32,.7), 0 2px 3px rgba(0,0,0,.45);
  line-height: 1;
}

#slotsScreen.is-bonus .dragon-bonus-hud .bonus-counter-wrap .initial {
  font-size: 13px;
  color: #d8b4ff;
  font-weight: 800;
  letter-spacing: .04em;
}

#slotsScreen.is-bonus .dragon-bonus-hud .bonus-win-wrap strong {
  display: inline-block;
  font-size: 19px;
  font-weight: 900;
  color: #fff7c2;
  text-shadow: 0 0 12px rgba(255,247,194,.7), 0 2px 3px rgba(0,0,0,.45);
  line-height: 1;
}

#slotsScreen.is-bonus .bonus-counter-wrap strong.flash {
  animation: bonusCountFlash 0.3s ease;
}

@keyframes bonusCountFlash {
  0% { transform: scale(1.5); color: #ffffff; text-shadow: 0 0 22px rgba(255,255,255,.95); }
  100% { transform: scale(1); color: #ffe69b; }
}

#slotsScreen.is-bonus {
  background:
    radial-gradient(circle at 20% 30%, rgba(180,80,255,.55), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(80,140,255,.5), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(150,60,200,.4), transparent 60%),
    linear-gradient(160deg, #1a0a30 0%, #08051a 100%);
  background-size: 240% 240%, 220% 220%, 200% 200%, 100% 100%;
  border-radius: 18px;
  padding: 12px 12px 16px;
  margin-bottom: 12px;
  animation: bonusAurora 5s ease-in-out infinite;
}

@keyframes bonusAurora {
  0%, 100% { background-position: 0% 30%, 100% 70%, 50% 50%, 0 0; }
  33%      { background-position: 100% 50%, 0% 50%, 30% 70%, 0 0; }
  66%      { background-position: 50% 100%, 50% 0%, 70% 30%, 0 0; }
}

#slotsScreen.is-bonus .game-head h2 {
  color: #fff;
  text-shadow: 0 0 18px rgba(180,80,255,.85), 0 2px 4px rgba(0,0,0,.55);
}

#slotsScreen.is-bonus .game-head .label {
  color: #d8b4ff;
}

#slotsScreen.is-bonus .slot-machine {
  box-shadow: 0 0 0 2px rgba(247,188,32,.6), 0 0 28px rgba(180,80,255,.6), inset 0 0 0 1px rgba(255,214,236,.18);
}

.free-spin-unlock-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6,4,15,.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 50;
  border-radius: 18px;
}

.free-spin-unlock-overlay.show {
  display: flex;
  animation: unlockFadeIn .35s ease;
}

@keyframes unlockFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.free-spin-unlock-overlay .unlock-inner {
  text-align: center;
  padding: 22px 26px;
  animation: unlockPop .55s cubic-bezier(.2,1.4,.4,1);
}

@keyframes unlockPop {
  0% { transform: scale(.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.free-spin-unlock-overlay .kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3em;
  color: #ffd76e;
  margin: 0 0 14px;
  text-shadow: 0 0 8px rgba(247,188,32,.6);
}

.free-spin-unlock-overlay h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffe69b 0%, #f7bc20 35%, #b340ff 75%, #4a1466 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)) drop-shadow(0 4px 14px rgba(247,188,32,.55)) drop-shadow(0 0 28px rgba(180,80,255,.6));
}

.free-spin-unlock-overlay strong {
  display: inline-block;
  margin: 0 0 12px;
  padding: 9px 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4a1466, #b340ff 50%, #4a1466);
  color: #ffe69b;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .14em;
  box-shadow: 0 8px 24px rgba(180,80,255,.55), inset 0 0 0 1px rgba(255,214,236,.45);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.free-spin-unlock-overlay .hint {
  display: block;
  font-size: 11px;
  color: #d8b4ff;
  letter-spacing: .2em;
  font-weight: 800;
}

.bonus-complete-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,3,12,.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  padding: 24px;
}

.bonus-complete-modal.show {
  display: flex;
  animation: unlockFadeIn .35s ease;
}

.bonus-complete-panel {
  width: min(340px, 92%);
  text-align: center;
  padding: 28px 24px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 30%, rgba(180,80,255,.6), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(247,188,32,.45), transparent 55%),
    linear-gradient(165deg, #1a0a30, #2a0e3a);
  border: 1px solid rgba(255,214,236,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 40px rgba(180,80,255,.5);
  animation: unlockPop .6s cubic-bezier(.2,1.4,.4,1);
}

.bonus-complete-panel .kicker {
  font-size: 10px;
  letter-spacing: .3em;
  color: #ffd76e;
  font-weight: 800;
  margin: 0 0 8px;
}

.bonus-complete-panel h2 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffe69b 0%, #f7bc20 40%, #b340ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(247,188,32,.5));
}

.bonus-complete-panel .label {
  font-size: 10px;
  color: #d8b4ff;
  letter-spacing: .24em;
  font-weight: 800;
  margin: 6px 0 4px;
}

.bonus-complete-panel strong {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: #ffe69b;
  text-shadow: 0 0 16px rgba(247,188,32,.65), 0 2px 4px rgba(0,0,0,.55);
  margin: 0 0 18px;
}

.bonus-collect-btn {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,214,236,.6);
  background: linear-gradient(155deg, #b340ff 0%, #4a1466 60%, #f7bc20 130%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2em;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  box-shadow: 0 8px 22px rgba(180,80,255,.5);
  transition: transform .15s ease;
}

.bonus-collect-btn:hover { transform: translateY(-1px); }

.bonus-complete-panel .auto-hint {
  margin: 12px 0 0;
  font-size: 10px;
  color: #d8b4ff;
  letter-spacing: .16em;
}

/* === overflow guards (2026-05-07 23:40) === */

.history {
  padding-right: 16px;
}

.history li > span {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history li > strong {
  flex: 0 0 auto;
}

#slotsScreen.is-bonus .dragon-bonus-hud .bonus-win-wrap strong {
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* === Stage 5: Gorgeous overlays (2026-05-07 23:55) === */

#slotsScreen { position: relative; }

.gold-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  border-radius: inherit;
}

.gold-particle {
  position: absolute;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, #ffd700 60%, rgba(255,215,0,0) 100%);
  filter: blur(0.4px);
  opacity: 0;
  animation: goldDrift linear infinite;
  will-change: transform, opacity;
}

#slotsScreen.is-bonus .gold-particle {
  background: radial-gradient(circle, #ffffff 0%, #d8b4ff 55%, rgba(216,180,255,0) 100%);
}

@keyframes goldDrift {
  0%   { transform: translateY(-24px); opacity: 0; }
  15%  { opacity: var(--p-opacity, 0.5); }
  85%  { opacity: var(--p-opacity, 0.5); }
  100% { transform: translateY(var(--p-distance, 700px)); opacity: 0; }
}

.live-ticker-top {
  display: block;
  margin: 6px 12px 8px;
  padding: 5px 0;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,215,0,.6);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255,215,0,.28), inset 0 0 12px rgba(255,215,0,.15);
}

.live-ticker-top.hidden { display: none; }

.live-ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: liveTickerScroll 10s linear infinite;
  will-change: transform;
}

.live-ticker-track span {
  display: inline-block;
  padding: 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: .02em;
  text-shadow: 0 0 6px rgba(255,215,0,.55), 0 1px 2px rgba(0,0,0,.65);
}

.live-ticker-track .dot {
  color: rgba(255,215,0,.5);
  padding: 0 4px;
  text-shadow: none;
}

@keyframes liveTickerScroll {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}

.win-banner {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  pointer-events: none;
  overflow: hidden;
}

.win-banner.show { display: flex; }

.win-banner-text {
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff7c2 0%, #ffd700 30%, #ff8f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 18px rgba(255,215,0,.85))
    drop-shadow(0 0 38px rgba(255,143,0,.55))
    drop-shadow(0 6px 8px rgba(0,0,0,.6));
  animation: winBannerBounce .8s cubic-bezier(.2,1.4,.4,1) both;
  text-align: center;
  white-space: nowrap;
}

.win-banner.tier-big    .win-banner-text { font-size: 4rem; }
.win-banner.tier-mega   .win-banner-text { font-size: 6rem; }
.win-banner.tier-epic   .win-banner-text { font-size: 8rem; }
.win-banner.tier-jackpot .win-banner-text { font-size: 10rem; }

@keyframes winBannerBounce {
  0%   { transform: scale(0); opacity: 0; }
  55%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.win-banner-amount {
  margin-top: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: #ffe69b;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,215,0,.55);
  text-shadow: 0 0 10px rgba(255,215,0,.7), 0 2px 3px rgba(0,0,0,.65);
  box-shadow: 0 8px 22px rgba(0,0,0,.55);
  animation: winBannerBounce .8s cubic-bezier(.2,1.4,.4,1) both;
  animation-delay: .12s;
  opacity: 0;
}

body.screen-shake {
  animation: screenShake .5s cubic-bezier(.36,.07,.19,.97);
}

@keyframes screenShake {
  0%,100% { transform: translate(0,0); }
  10%     { transform: translate(-8px, -4px); }
  20%     { transform: translate( 8px,  4px); }
  30%     { transform: translate(-7px,  3px); }
  40%     { transform: translate( 7px, -3px); }
  50%     { transform: translate(-5px,  2px); }
  60%     { transform: translate( 5px, -2px); }
  70%     { transform: translate(-3px,  1px); }
  80%     { transform: translate( 3px, -1px); }
  90%     { transform: translate(-1px,  0); }
}

.coin-shower {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1100;
}

.coin-particle {
  position: absolute;
  bottom: -28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff7c2 0%, #ffd700 45%, #b8860b 100%);
  box-shadow: 0 0 8px rgba(255,215,0,.7), inset -2px -2px 4px rgba(139,109,0,.45);
  animation: coinShowerArc 3s cubic-bezier(.32,.04,.65,1) forwards;
  will-change: transform, opacity;
  --x-end: 0px;
  --y-mid: -800px;
  --y-end: 240px;
  --rot: 720deg;
}

@keyframes coinShowerArc {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translate(calc(var(--x-end) * 0.55), var(--y-mid)) rotate(calc(var(--rot) * 0.5)); opacity: 1; }
  100% { transform: translate(var(--x-end), var(--y-end)) rotate(var(--rot)); opacity: 0; }
}

/* === Stage 6: Ornate Dragon Fortune (2026-05-08 00:10) === */

#dragonView {
  position: relative;
  padding: 12px 12px 16px;
  margin-bottom: 12px;
  border-radius: 18px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><circle cx='40' cy='40' r='1.5' fill='%23ffd76e' fill-opacity='0.12'/><circle cx='40' cy='40' r='14' fill='none' stroke='%23ffd76e' stroke-opacity='0.08' stroke-width='1'/><circle cx='40' cy='40' r='28' fill='none' stroke='%23ffd76e' stroke-opacity='0.05' stroke-width='1'/></svg>"),
    radial-gradient(circle at 50% 30%, rgba(255, 215, 100, .12) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(255, 60, 60, .14) 0%, transparent 50%),
    linear-gradient(180deg, #1c0405 0%, #320709 30%, #1a0303 100%);
  background-size: 80px 80px, auto, auto, auto;
  overflow: hidden;
}

#dragonView .game-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff7c2 0%, #ffd76e 30%, #b8860b 70%, #ffd76e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 0 #6b0014)
    drop-shadow(0 4px 8px rgba(0, 0, 0, .55))
    drop-shadow(0 0 14px rgba(247, 188, 32, .6));
}

#dragonView::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 200, 80, .10) 35deg,
    transparent 70deg,
    transparent 290deg,
    rgba(255, 200, 80, .10) 325deg,
    transparent 360deg);
  pointer-events: none;
  animation: dragonRays 18s linear infinite;
  z-index: 0;
  opacity: .55;
}

#dragonView > * { position: relative; z-index: 1; }
#dragonView > .gold-particles { z-index: 0; }

@keyframes dragonRays {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#dragonView .game-head h2 {
  text-shadow: 0 0 12px rgba(247, 188, 32, .55), 0 2px 4px rgba(0, 0, 0, .65);
}

/* 上部4段ジャックポット派手化 */
#dragonView .jackpot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 6px 0 12px;
  padding: 7px 6px;
  border: 2px solid #f7bc20;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #2a0810 0%, #50111a 50%, #2a0810 100%);
  box-shadow:
    0 0 18px rgba(247, 188, 32, .4),
    inset 0 0 12px rgba(247, 188, 32, .25),
    inset 0 0 0 1px rgba(255, 220, 80, .35);
}

#dragonView .jackpot-tier {
  padding: 7px 3px;
  border: 1px solid rgba(247, 188, 32, .55);
  border-radius: 8px;
  background: linear-gradient(180deg, #6b0e1c 0%, #420717 60%, #2a0410 100%);
  text-align: center;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .55);
  animation: jackpotPulse 2.4s ease-in-out infinite;
}

#dragonView .jackpot-tier:nth-child(2) { animation-delay: -0.6s; }
#dragonView .jackpot-tier:nth-child(3) { animation-delay: -1.2s; }
#dragonView .jackpot-tier:nth-child(4) { animation-delay: -1.8s; }

#dragonView .jackpot-tier span {
  display: block;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  color: #ffd76e;
  text-shadow: 0 0 4px rgba(247, 188, 32, .7);
}

#dragonView .jackpot-tier strong {
  display: block;
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  color: #fff7c2;
  text-shadow:
    0 0 6px rgba(255, 220, 80, .9),
    0 0 12px rgba(247, 188, 32, .55),
    0 1px 2px rgba(0, 0, 0, .65);
  letter-spacing: -0.02em;
}

#dragonView .jackpot-tier.major {
  border-color: rgba(180, 100, 255, .65);
}
#dragonView .jackpot-tier.major strong {
  color: #fff2ff;
  text-shadow:
    0 0 6px rgba(180, 100, 255, .85),
    0 0 12px rgba(180, 100, 255, .5),
    0 1px 2px rgba(0, 0, 0, .65);
}

#dragonView .jackpot-tier.grand {
  border-color: rgba(255, 80, 100, .75);
  background: linear-gradient(180deg, #8a0a1a 0%, #5e0510 60%, #2a020a 100%);
}
#dragonView .jackpot-tier.grand strong {
  color: #ffe69b;
  text-shadow:
    0 0 8px rgba(255, 100, 120, .9),
    0 0 14px rgba(255, 60, 80, .6),
    0 1px 2px rgba(0, 0, 0, .7);
}

@keyframes jackpotPulse {
  0%, 100% {
    box-shadow: inset 0 0 8px rgba(0, 0, 0, .55), 0 0 0 rgba(247, 188, 32, 0);
  }
  50% {
    box-shadow: inset 0 0 8px rgba(0, 0, 0, .55), 0 0 14px rgba(247, 188, 32, .65);
  }
}

/* リール枠を額装フレーム化 + サイドドラゴン */
#dragonView .slot-machine {
  position: relative;
  width: auto;
  max-width: none;
  margin: 14px 36px 12px;
  padding: 14px 8px 12px;
  border: 4px solid;
  border-image: linear-gradient(180deg, #fff7c2, #f7bc20 30%, #b8860b 60%, #f7bc20 100%) 1;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 80, 80, .25), transparent 60%),
    linear-gradient(180deg, #4a0010 0%, #2a0008 60%, #1a0004 100%);
  box-shadow:
    0 0 0 2px rgba(247, 188, 32, .4),
    0 0 22px rgba(247, 188, 32, .35),
    inset 0 0 24px rgba(0, 0, 0, .8);
}

/* old side-star decorations removed — cabinet wrapper now provides framing */
#dragonView .slot-machine::before { content: none; }
#dragonView .slot-machine::after  { content: none; }

/* Payline indicator inside the cabinet (override: keep specificity high) */
#dragonView .vegas-cabinet .slot-machine::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 60, 60, .85) 8%,
    rgba(255, 80, 80, .95) 50%,
    rgba(255, 60, 60, .85) 92%,
    transparent 100%);
  box-shadow: 0 0 6px rgba(255, 50, 50, .85);
  pointer-events: none;
  z-index: 2;
  transform: translateY(-50%);
}

/* シンボル: A/K/Q/J/10/9 を金縁ガラスカードに */
#dragonView .slot-cell.symbol-royal {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #fff8d5 0%, #f7d24a 35%, #b8860b 100%);
  color: #5a1d00;
  border: 1.5px solid #ffd76e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 7.4vw, 38px);
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .55),
    0 -1px 0 rgba(0, 0, 0, .35),
    0 2px 5px rgba(0, 0, 0, .55);
  box-shadow:
    inset 0 -6px 10px rgba(139, 0, 0, .4),
    inset 0 2px 4px rgba(255, 255, 255, .6),
    0 4px 9px rgba(0, 0, 0, .55);
}

/* RED 7 = 赤白光 */
#dragonView .slot-cell.symbol-r7 {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 40%, #fff 0%, #ffd24a 14%, #e01e3c 45%, #4a000c 100%);
  color: #fff9d1;
  border: 1.5px solid #ffd76e;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 8.8vw, 48px);
  text-shadow:
    0 0 12px rgba(255, 220, 80, .95),
    0 0 18px rgba(255, 60, 60, .8),
    0 2px 2px rgba(0, 0, 0, .8);
  box-shadow:
    inset 0 -6px 10px rgba(80, 0, 0, .55),
    inset 0 2px 4px rgba(255, 235, 180, .55),
    0 4px 14px rgba(224, 30, 60, .65);
  animation: sevenPulse 1.6s ease-in-out infinite;
}

/* BLUE 7 */
#dragonView .slot-cell.symbol-b7 {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 40%, #fff 0%, #c9e7ff 14%, #2d6cff 45%, #061235 100%);
  color: #f3faff;
  border: 1.5px solid #ffd76e;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 8.8vw, 48px);
  text-shadow:
    0 0 12px rgba(120, 200, 255, .95),
    0 0 18px rgba(60, 100, 255, .8),
    0 2px 2px rgba(0, 0, 0, .8);
  box-shadow:
    inset 0 -6px 10px rgba(0, 8, 60, .55),
    inset 0 2px 4px rgba(255, 235, 180, .45),
    0 4px 14px rgba(45, 108, 255, .55);
}

/* YELLOW 7 */
#dragonView .slot-cell.symbol-y7 {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 40%, #fff 0%, #fffadf 14%, #f0c500 45%, #5e3a00 100%);
  color: #fffae0;
  border: 1.5px solid #ffd76e;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 8.8vw, 48px);
  text-shadow:
    0 0 12px rgba(255, 220, 80, .95),
    0 2px 2px rgba(80, 50, 0, .85);
  box-shadow:
    inset 0 -6px 10px rgba(80, 50, 0, .55),
    inset 0 2px 4px rgba(255, 235, 180, .55),
    0 4px 14px rgba(240, 197, 0, .55);
}

@keyframes sevenPulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.18) saturate(1.3); }
}

/* BAR (1/2/3) = 銀白 / 金 トリプル */
#dragonView .slot-cell.symbol-bar1,
#dragonView .slot-cell.symbol-bar2,
#dragonView .slot-cell.symbol-bar3 {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #ffffff 0%, #f0f0f0 50%, #b8b8b8 100%);
  color: #1a1a1a;
  border: 1.5px solid #ffd76e;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 5.4vw, 28px);
  letter-spacing: .03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
  box-shadow:
    inset 0 -6px 10px rgba(80, 80, 80, .35),
    inset 0 2px 4px rgba(255, 255, 255, .85),
    0 4px 9px rgba(0, 0, 0, .55);
}
#dragonView .slot-cell.symbol-bar3 {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #fff7c2 0%, #ffd76e 50%, #b8860b 100%);
  color: #2a1404;
}

/* BELL = 真鍮金 */
#dragonView .slot-cell.symbol-bell {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 40%, #fffbd5 0%, #f0a700 38%, #6c3b00 100%);
  color: #fff5c2;
  border: 1.5px solid #ffd76e;
  font-size: clamp(28px, 7.4vw, 40px);
  box-shadow:
    inset 0 -6px 10px rgba(80, 35, 0, .55),
    inset 0 2px 4px rgba(255, 235, 180, .55),
    0 4px 9px rgba(184, 134, 11, .55);
}

/* DIAMOND = 水色光沢 */
#dragonView .slot-cell.symbol-dia {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 40%, #ffffff 0%, #b9f3ff 25%, #4cc6ff 60%, #052848 100%);
  color: #f0fbff;
  border: 1.5px solid #ffd76e;
  font-size: clamp(28px, 7.4vw, 40px);
  text-shadow: 0 0 14px rgba(170, 240, 255, .95);
  box-shadow:
    inset 0 -6px 10px rgba(0, 30, 60, .55),
    inset 0 2px 4px rgba(255, 255, 255, .8),
    0 4px 12px rgba(76, 198, 255, .55);
  animation: sevenPulse 2s ease-in-out infinite;
}

/* CHERRY = 朱赤グロス */
#dragonView .slot-cell.symbol-chry {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 40%, #ffe4e8 0%, #ff5478 25%, #d6004a 55%, #3c0010 100%);
  color: #fff;
  border: 1.5px solid #ffd76e;
  font-size: clamp(28px, 7.4vw, 40px);
  box-shadow:
    inset 0 -6px 10px rgba(60, 0, 14, .55),
    inset 0 2px 4px rgba(255, 235, 180, .45),
    0 4px 12px rgba(214, 0, 74, .55);
}

/* LEMON = 黄色グロス */
#dragonView .slot-cell.symbol-lmn {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 40%, #fffde0 0%, #fff0a0 25%, #ffd400 55%, #6c4400 100%);
  color: #2a1a00;
  border: 1.5px solid #ffd76e;
  font-size: clamp(28px, 7.4vw, 40px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 -6px 10px rgba(80, 50, 0, .35),
    inset 0 2px 4px rgba(255, 255, 255, .65),
    0 4px 12px rgba(255, 212, 0, .55);
}

/* WILD = 虹光 */
#dragonView .slot-cell.symbol-wild {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 40%, #fff 0%, #39d7ff 30%, #b340ff 70%, #11207d 100%);
  color: #fff;
  border: 1.5px solid #ffffff;
  font-weight: 900;
  font-size: clamp(10px, 2.7vw, 12px);
  text-shadow:
    0 0 12px rgba(255, 255, 255, .95),
    0 0 18px rgba(57, 215, 255, .7),
    0 1px 2px rgba(0, 0, 0, .55);
  box-shadow:
    inset 0 -6px 10px rgba(20, 0, 50, .55),
    inset 0 2px 4px rgba(255, 255, 255, .8),
    0 4px 12px rgba(57, 215, 255, .55);
  animation: wildShine 2.2s ease-in-out infinite;
}

@keyframes wildShine {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.18) saturate(1.3); }
}

/* SCAT = 白金光 */
#dragonView .slot-cell.symbol-scatter {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 50% 40%, #ffffff 0%, #ffe69b 25%, #65e8ff 60%, #063f70 100%);
  color: #fff;
  border: 1.5px solid #fff7c2;
  font-weight: 900;
  font-size: clamp(10px, 2.7vw, 12px);
  text-shadow:
    0 0 14px rgba(255, 255, 255, .95),
    0 0 18px rgba(142, 239, 255, .8);
  box-shadow:
    inset 0 -6px 10px rgba(0, 30, 60, .55),
    inset 0 2px 4px rgba(255, 255, 255, .8),
    0 4px 12px rgba(142, 239, 255, .55);
}

/* ×5 = 紫金 */
#dragonView .slot-cell.symbol-multiplier {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 220, .65) 0%, rgba(255, 255, 220, 0) 50%),
    radial-gradient(circle at 50% 40%, #fff 0%, #ffd76e 18%, #a65cff 50%, #220060 100%);
  color: #fff;
  border: 1.5px solid #ffe69b;
  font-weight: 900;
  font-size: clamp(20px, 5.4vw, 28px);
  text-shadow:
    0 0 10px rgba(255, 220, 80, .95),
    0 1px 2px rgba(0, 0, 0, .8);
  box-shadow:
    inset 0 -6px 10px rgba(20, 0, 50, .55),
    inset 0 2px 4px rgba(255, 255, 255, .65),
    0 4px 12px rgba(166, 92, 255, .55);
}

/* ORB = 朱赤金 (jackpot orb) */
#dragonView .slot-cell.symbol-orb {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 220, .65) 0%, rgba(255, 255, 220, 0) 45%),
    radial-gradient(circle at 50% 40%, #fff 0%, #ffd76e 14%, #ff283d 45%, #720009 100%);
  color: #fff;
  border: 1.5px solid #ffe69b;
  font-weight: 900;
  font-size: clamp(10px, 2.85vw, 12.5px);
  text-shadow:
    0 0 12px rgba(255, 200, 80, .9),
    0 0 18px rgba(255, 60, 60, .7),
    0 1px 2px rgba(0, 0, 0, .8);
  box-shadow:
    inset 0 -8px 12px rgba(60, 0, 0, .65),
    inset 0 2px 4px rgba(255, 235, 180, .65),
    0 4px 14px rgba(255, 40, 61, .65);
  animation: orbPulse 1.8s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.15) saturate(1.25); }
}

/* WHL = 金緑グラデ (bonus wheel trigger) */
#dragonView .slot-cell.symbol-wheel {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 220, .65) 0%, rgba(255, 255, 220, 0) 45%),
    radial-gradient(circle at 50% 40%, #fffdcd 0%, #ffd76e 18%, #25b06a 55%, #093020 100%);
  color: #fff;
  border: 1.5px solid #ffe69b;
  font-weight: 900;
  font-size: clamp(20px, 5.4vw, 28px);
  text-shadow:
    0 0 10px rgba(120, 255, 160, .85),
    0 0 14px rgba(255, 220, 80, .8),
    0 1px 2px rgba(0, 0, 0, .8);
  box-shadow:
    inset 0 -6px 10px rgba(0, 40, 20, .55),
    inset 0 2px 4px rgba(255, 255, 255, .55),
    0 4px 14px rgba(60, 200, 110, .55);
  animation: wheelSymPulse 1.8s ease-in-out infinite;
}

@keyframes wheelSymPulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.18) saturate(1.3); }
}

/* TBX = 茶金 (treasure box trigger) */
#dragonView .slot-cell.symbol-tbox {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 220, .65) 0%, rgba(255, 255, 220, 0) 45%),
    radial-gradient(circle at 50% 40%, #fffdcd 0%, #ffd76e 18%, #c47220 50%, #3a1a05 100%);
  color: #fff;
  border: 1.5px solid #ffe69b;
  font-weight: 900;
  font-size: clamp(20px, 5.4vw, 28px);
  text-shadow:
    0 0 10px rgba(255, 200, 80, .85),
    0 1px 2px rgba(0, 0, 0, .8);
  box-shadow:
    inset 0 -6px 10px rgba(40, 14, 0, .65),
    inset 0 2px 4px rgba(255, 235, 180, .55),
    0 4px 14px rgba(196, 114, 32, .55);
  animation: wheelSymPulse 1.8s ease-in-out infinite;
}

/* ===== Bonus Wheel Overlay ===== */
.bonus-wheel-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1700;
  background:
    radial-gradient(ellipse at center, rgba(40, 4, 0, .82) 0%, rgba(8, 0, 0, .96) 75%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
  box-sizing: border-box;
}
.bonus-wheel-overlay.show {
  display: flex;
  animation: bonusOverlayFade .35s ease-out;
}
@keyframes bonusOverlayFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.bonus-wheel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  width: 100%;
}
.bonus-wheel-kicker {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 13px;
  letter-spacing: .35em;
  color: #ffd76e;
  text-shadow: 0 0 8px rgba(255, 200, 80, .8);
}
.bonus-wheel-title {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 36px;
  line-height: .95;
  text-align: center;
  background: linear-gradient(180deg, #fff7c2 0%, #ffd76e 50%, #b8860b 80%, #ffd76e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(120, 30, 0, .9))
    drop-shadow(0 0 18px rgba(255, 200, 80, .7));
}
.bonus-wheel-box {
  position: relative;
  width: min(86vw, 320px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bonus-wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: #fff7c2;
  text-shadow:
    0 0 8px rgba(255, 200, 80, .9),
    0 2px 0 #720009;
  z-index: 4;
}
.bonus-wheel-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #b8860b 0deg 30deg,
      #720009 30deg 60deg
    );
  box-shadow:
    0 0 0 6px #2a1404,
    0 0 0 9px #ffd76e,
    0 0 0 12px #5a3008,
    0 0 32px rgba(255, 200, 80, .55),
    inset 0 0 24px rgba(0, 0, 0, .45);
  transition: transform 4.2s cubic-bezier(0.18, 0.85, 0.22, 1);
}
.bonus-wheel-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 29.5deg,
      rgba(255, 215, 110, .85) 29.5deg 30.5deg
    );
  pointer-events: none;
}
.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.wheel-label > span {
  position: absolute;
  top: -130px;
  left: -40px;
  width: 80px;
  text-align: center;
  font-family: "Georgia", serif;
  font-weight: 900;
  font-size: 17px;
  color: #fff7c2;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, .8),
    0 0 6px rgba(255, 200, 80, .65);
  letter-spacing: .02em;
}
.wheel-label.is-grand > span {
  font-size: 14px;
  color: #ffd76e;
  text-shadow:
    0 0 8px rgba(255, 230, 100, 1),
    0 1px 0 rgba(60, 0, 0, .9);
}
.bonus-wheel-spin {
  position: relative;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 220, .85) 0%, rgba(255, 255, 220, 0) 50%),
    radial-gradient(circle at 50% 50%, #fff7c2 0%, #ffd76e 30%, #b8860b 70%, #5a3008 100%);
  border: 3px solid #2a1404;
  color: #2a1404;
  font-family: "Georgia", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  box-shadow:
    0 0 0 4px #ffd76e,
    0 0 24px rgba(255, 200, 80, .85),
    inset 0 -8px 14px rgba(60, 30, 0, .5),
    inset 0 4px 8px rgba(255, 255, 255, .65);
  animation: wheelSpinPulse 1.4s ease-in-out infinite;
}
.bonus-wheel-spin:disabled {
  cursor: default;
  filter: brightness(.7) saturate(.8);
  animation: none;
}
.bonus-wheel-spin.hidden {
  display: none;
}
@keyframes wheelSpinPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.bonus-wheel-result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 215, 110, .15) 0%, rgba(0, 0, 0, .55) 100%);
  border: 1px solid rgba(255, 215, 110, .55);
}
.bonus-wheel-result.show {
  display: flex;
  animation: bonusResultPop .55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bonusResultPop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.bonus-wheel-result .label {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 15px;
  letter-spacing: .25em;
  color: #ffd76e;
}
.bonus-wheel-result strong {
  font-family: "Georgia", serif;
  font-size: 32px;
  background: linear-gradient(180deg, #fff7c2, #ffd76e, #b8860b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 200, 80, .85));
}

/* ===== 3-Treasure Pick Overlay ===== */
.treasure-pick-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1700;
  background:
    radial-gradient(ellipse at center, rgba(40, 4, 0, .82) 0%, rgba(8, 0, 0, .96) 75%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
  box-sizing: border-box;
}
.treasure-pick-overlay.show {
  display: flex;
  animation: bonusOverlayFade .35s ease-out;
}
.treasure-pick-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 360px;
  width: 100%;
}
.treasure-pick-kicker {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 13px;
  letter-spacing: .35em;
  color: #ffd76e;
  text-shadow: 0 0 8px rgba(255, 200, 80, .8);
}
.treasure-pick-title {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 36px;
  line-height: .95;
  text-align: center;
  background: linear-gradient(180deg, #fff7c2 0%, #ffd76e 50%, #b8860b 80%, #ffd76e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(120, 30, 0, .9))
    drop-shadow(0 0 18px rgba(255, 200, 80, .7));
}
.treasure-box-row {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}
.treasure-box {
  position: relative;
  width: 90px;
  height: 110px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 220, .55) 0%, rgba(255, 255, 220, 0) 45%),
    linear-gradient(180deg, #c47220 0%, #7a3a08 60%, #3a1a05 100%);
  border: 2px solid #ffd76e;
  box-shadow:
    inset 0 -8px 16px rgba(20, 6, 0, .65),
    inset 0 4px 6px rgba(255, 235, 180, .35),
    0 6px 18px rgba(0, 0, 0, .65),
    0 0 18px rgba(255, 200, 80, .35);
  animation: treasureFloat 2.4s ease-in-out infinite;
  animation-delay: var(--tb-delay, 0s);
}
.treasure-box[data-box="1"] { --tb-delay: 0.2s; }
.treasure-box[data-box="2"] { --tb-delay: 0.4s; }
@keyframes treasureFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1deg); }
}
.treasure-box-front,
.treasure-box-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", serif;
  font-weight: 900;
  transition: opacity .35s ease, transform .35s ease;
}
.treasure-box-front {
  font-size: 14px;
  letter-spacing: .15em;
  color: #fff7c2;
  text-shadow:
    0 0 8px rgba(255, 200, 80, .8),
    0 1px 0 rgba(0, 0, 0, .85);
}
.treasure-box-back {
  font-size: 36px;
  color: #ffd76e;
  text-shadow:
    0 0 14px rgba(255, 220, 100, 1),
    0 1px 0 rgba(60, 0, 0, .9);
  opacity: 0;
  transform: scale(.5);
}
.treasure-box.revealed .treasure-box-front {
  opacity: 0;
  transform: scale(.7);
}
.treasure-box.revealed .treasure-box-back {
  opacity: 1;
  transform: scale(1);
}
.treasure-box.revealed::after {
  content: attr(data-prize);
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Georgia", serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff7c2;
  text-shadow: 0 0 8px rgba(255, 200, 80, .9), 0 1px 0 rgba(0, 0, 0, .9);
}
.treasure-box.picked {
  animation: treasureBurst .8s ease-out;
  border-color: #fff7c2;
  box-shadow:
    inset 0 -8px 16px rgba(20, 6, 0, .65),
    inset 0 4px 6px rgba(255, 235, 180, .55),
    0 0 28px rgba(255, 220, 100, 1);
}
@keyframes treasureBurst {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1.05); }
}
.treasure-box.dim {
  filter: brightness(.55) saturate(.7);
  animation: none;
}
.treasure-pick-result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 215, 110, .15) 0%, rgba(0, 0, 0, .55) 100%);
  border: 1px solid rgba(255, 215, 110, .55);
}
.treasure-pick-result.show {
  display: flex;
  animation: bonusResultPop .55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.treasure-pick-result .label {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 15px;
  letter-spacing: .25em;
  color: #ffd76e;
}
.treasure-pick-result strong {
  font-family: "Georgia", serif;
  font-size: 32px;
  background: linear-gradient(180deg, #fff7c2, #ffd76e, #b8860b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 200, 80, .85));
}

/* shared: collect button hidden state */
.bonus-collect-btn.hidden {
  display: none;
}

/* ===== Declutter: hide noisy panels for a cleaner play screen ===== */
.lobby-strip,
.charge-panel,
#dragonView .jackpot,
/* On the Vegas slot, the cabinet's LCD already shows BET — drop the redundant outer game-head */
#dragonView .game-head {
  display: none;
}
.action-row .secondary-action.hidden,
.action-row .primary-action.hidden,
button.hidden {
  display: none !important;
}

/* Compact bet chip row above the cabinet */
#dragonView .bet-controls {
  gap: 8px;
  margin: 6px 0 4px;
}
#dragonView .bet-controls .chip {
  width: 52px;
  height: 52px;
  font-size: 13px;
}

/* Bigger SPIN button */
#dragonView .action-row {
  gap: 10px;
  margin-top: 10px;
}
#spinButton {
  font-size: 22px;
  padding: 18px 0;
  letter-spacing: .12em;
  flex: 1.6 1 0;
}
#autoSpinButton {
  font-size: 14px;
  padding: 14px 0;
  flex: 1 1 0;
}

/* ===== Vegas Royal classic cabinet wrapper ===== */
.vegas-cabinet {
  position: relative;
  margin: 8px 4px 10px;
  padding: 8px 6px 8px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 235, 150, .2) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #ffd76e 0%, #b8860b 18%, #8b5a06 50%, #b8860b 82%, #5a3008 100%);
  border: 2px solid #2a1404;
  box-shadow:
    0 0 0 3px #ffd76e,
    0 0 0 5px #2a1404,
    0 8px 22px rgba(0, 0, 0, .8),
    inset 0 -10px 18px rgba(0, 0, 0, .55),
    inset 0 4px 8px rgba(255, 255, 230, .55);
}
.vegas-cabinet::before,
.vegas-cabinet::after {
  content: "●";
  position: absolute;
  width: 8px;
  height: 8px;
  font-size: 8px;
  line-height: 1;
  color: #2a1404;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  top: 50%;
  transform: translateY(-50%);
}
.vegas-cabinet::before { left: 4px; }
.vegas-cabinet::after  { right: 4px; }

/* Top LED marquee */
.cabinet-marquee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a0d04 0%, #07030a 100%);
  border: 2px solid #2a1404;
  box-shadow:
    inset 0 0 14px rgba(255, 60, 30, .25),
    inset 0 0 0 1px #ffd76e,
    0 2px 6px rgba(0, 0, 0, .8);
}
.marquee-flourish {
  flex: 0 0 auto;
  font-family: "Georgia", serif;
  font-size: 18px;
  color: #ffd76e;
  text-shadow:
    0 0 6px rgba(255, 220, 120, .9),
    0 0 12px rgba(255, 200, 80, .6);
}
.marquee-window {
  flex: 1 1 auto;
  position: relative;
  height: 22px;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #08020a 0%, #1a0205 100%);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .85);
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Courier New", "Courier", monospace;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  color: #ff3030;
  text-shadow:
    0 0 4px rgba(255, 60, 60, .95),
    0 0 8px rgba(255, 30, 30, .65),
    0 0 14px rgba(255, 0, 0, .35);
  animation: cabinetMarquee 18s linear infinite;
}
@keyframes cabinetMarquee {
  from { transform: translate(0, -50%); }
  to   { transform: translate(-50%, -50%); }
}

/* LED dot grain overlay on marquee */
.marquee-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .55) 0.5px, transparent 1.2px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: .85;
}

/* Cabinet body wraps the slot-machine */
.cabinet-body {
  position: relative;
  padding: 6px 12px 6px;
  border-radius: 8px;
}

.cabinet-payline-tag,
.cabinet-coins-tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: .12em;
  text-align: center;
  line-height: 1.05;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 1.5px solid #2a1404;
  border-radius: 6px;
  padding: 4px 2px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .65),
    inset 0 1px 2px rgba(255, 255, 255, .55);
}
.cabinet-payline-tag {
  left: -2px;
  background: linear-gradient(180deg, #4ec0ff 0%, #0e64a8 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.cabinet-coins-tag {
  right: -2px;
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
  color: #c01020;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

/* Make the slot reels look like a backlit black panel */
.vegas-cabinet .slot-machine {
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 220, 120, .12) 0%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #07030a 0%, #1a0d04 100%);
  border: 2px solid #2a1404;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, .85),
    inset 0 0 0 1px #ffd76e,
    0 2px 6px rgba(0, 0, 0, .75);
  border-radius: 6px;
}

/* Payline indicator: thin red line through the middle row */
.vegas-cabinet .slot-machine::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 60, 60, .85) 8%,
    rgba(255, 80, 80, .95) 50%,
    rgba(255, 60, 60, .85) 92%,
    transparent 100%);
  box-shadow: 0 0 6px rgba(255, 50, 50, .85);
  pointer-events: none;
  z-index: 2;
  transform: translateY(-50%);
}
/* Override the Vegas star side decorations inside cabinet (already removed via content) */
.vegas-cabinet .slot-machine::after { content: none; }

/* LCD-style meter row */
.cabinet-meters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.cabinet-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 4px 6px;
  border: 1.5px solid #2a1404;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff7c2 0%, #ffd76e 50%, #b8860b 100%);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, .65),
    inset 0 1px 2px rgba(255, 255, 255, .65);
}
.cabinet-meter.accent {
  background: linear-gradient(180deg, #ffd76e 0%, #f0a700 50%, #6c3b00 100%);
}
.meter-label {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #2a1404;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.meter-display {
  display: block;
  width: 100%;
  text-align: center;
  padding: 3px 4px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #0a0a0a 0%, #1a0205 100%);
  border: 1px solid #2a1404;
  font-family: "Courier New", "Courier", monospace;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .04em;
  color: #ff3030;
  text-shadow:
    0 0 4px rgba(255, 60, 60, .95),
    0 0 8px rgba(255, 30, 30, .55);
  box-shadow:
    inset 0 0 6px rgba(0, 0, 0, .85),
    inset 0 0 0 1px rgba(255, 60, 60, .15);
}

.cabinet-fineprint {
  margin: 6px 0 0;
  text-align: center;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: 7.5px;
  letter-spacing: .12em;
  color: #2a1404;
  opacity: .75;
}

