@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg-dark: #0B0F17;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 35, 55, 0.85);
  --primary-glow: #00E676;
  --accent-gold: #FFD54F;
  --accent-cyan: #00E5FF;
  --accent-purple: #AB47BC;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-glass: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin-bottom: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 1.8rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-glow);
  background: rgba(0, 230, 118, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-glow);
  animation: pulse 1.5s infinite;
}

.pulse-dot.cyan {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.pulse-dot.green {
  background-color: var(--primary-glow);
  box-shadow: 0 0 8px var(--primary-glow);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 800;
}

.stat-value.highlight {
  color: var(--accent-gold);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-glass);
}

/* View Sections */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.3s ease;
}

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

/* Navigation Back Button */
.nav-back-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-2px);
}

/* Game Cards */
.games-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.game-card {
  position: relative;
  padding: 18px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.game-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

.game-badge.hot {
  background: rgba(255, 82, 82, 0.2);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.4);
}

.game-badge.safe {
  background: rgba(0, 229, 255, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.game-badge.fast {
  background: rgba(171, 71, 188, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(171, 71, 188, 0.4);
}

.game-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.game-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-multiplier {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.game-multiplier span {
  color: var(--accent-gold);
  font-weight: 800;
}

.btn-play {
  background: linear-gradient(135deg, var(--primary-glow) 0%, #00b0ff 100%);
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Control Buttons & Action Gradients */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.btn-action {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.primary-gradient {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  color: #000;
}

.btn-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-action:active {
  transform: translateY(1px);
}

.btn-action.loading {
  opacity: 0.8;
  pointer-events: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status Panel */
.status-panel {
  padding: 12px 16px;
  text-align: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Disclaimer Footer */
.app-footer {
  margin-top: auto;
  padding: 16px 8px;
  text-align: center;
}

.disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  opacity: 0.7;
}

/* Large GET SIGNAL Button */
.btn-signal-large {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 18px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00E676 0%, #00B0FF 100%);
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.4);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-signal-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 230, 118, 0.6);
}

.btn-signal-large:active {
  transform: translateY(1px) scale(0.98);
}

/* Game Card Accuracy */
.game-accuracy {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.game-accuracy span {
  color: var(--primary-glow);
  font-weight: 800;
}

/* Unified Bottom Sheet Modal */
.bottom-sheet-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.bottom-sheet-modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 20px 32px 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.95) 0%, rgba(10, 14, 23, 0.98) 100%);
  border-top: 1px solid rgba(0, 230, 118, 0.4);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-sheet-modal.active .modal-content {
  transform: translateY(0);
}

.modal-drag-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  margin: 0 auto 16px auto;
}

.modal-status-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.status-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-pill.safe {
  background: rgba(0, 230, 118, 0.15);
  color: #00E676;
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.status-pill.premium {
  background: rgba(171, 71, 188, 0.2);
  color: #E1BEE7;
  border: 1px solid rgba(171, 71, 188, 0.5);
}

.modal-game-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.modal-signal-hero {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.signal-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.signal-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-glow);
  text-shadow: 0 0 16px rgba(0, 230, 118, 0.5);
}

.coin-mult-timeline {
  display: none !important;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.modal-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-icon { font-size: 1.2rem; }

.modal-stat-card .stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.modal-stat-card .stat-val {
  font-size: 0.88rem;
  font-weight: 800;
}

.modal-stat-card .stat-val.highlight { color: var(--accent-cyan); }
.modal-stat-card .stat-val.green { color: var(--primary-glow); }

.btn-modal-close {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Swamp Land Arena */
.swamp-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swamp-arena {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  background: radial-gradient(circle, #022c43 0%, #051923 100%);
  border-radius: 18px;
  min-height: 260px;
}

.swamp-mult-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.swamp-grid-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  margin: 0 12px;
}

.swamp-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.swamp-cell {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.swamp-cell.revealed-leaf {
  background: rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 12px var(--primary-glow);
}

.swamp-frog-token {
  position: absolute;
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 5;
}

/* Canvas Graph Panels */
.graph-game-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.canvas-panel {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: #090D16;
}

#crash-graph-canvas, #aviator-graph-canvas {
  width: 100%;
  height: 100%;
}

.graph-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-glow);
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
}

.graph-overlay-text.gold {
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 213, 79, 0.6);
}

/* Spin & Win Wheel */
.spinwin-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wheel-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
}

.wheel-pointer {
  position: absolute;
  top: 15px;
  font-size: 1.8rem;
  color: var(--primary-glow);
  z-index: 10;
}

.spin-wheel-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  transition: transform 1.8s cubic-bezier(0.15, 0.9, 0.2, 1);
}

#spin-wheel-canvas {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(0, 230, 118, 0.3);
}

/* Kamikaze Grid */
.kamikaze-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kamikaze-board-panel {
  position: relative;
  padding: 16px;
}

.kamikaze-arena {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.kamikaze-grid-box {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  flex-grow: 1;
}

.kamikaze-cell {
  aspect-ratio: 1;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 10px;
}

.kamikaze-cell.visited {
  background: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.kamikaze-plane-token {
  position: absolute;
  font-size: 1.8rem;
  transition: all 0.35s ease;
  pointer-events: none;
  z-index: 5;
}

.kamikaze-mult-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

/* ==================== 9. WILD WEST GOLD STYLES ==================== */
.wildwest-theme-bg {
  background: radial-gradient(circle at top right, rgba(255, 179, 0, 0.25), transparent 70%);
}
.wildwest-glow {
  background: rgba(255, 179, 0, 0.15);
  box-shadow: 0 0 16px rgba(255, 179, 0, 0.4);
}

.wildwest-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
}

/* Top Bar matching Image 1 */
.wildwest-top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.wildwest-help-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(180deg, #1aa5ba 0%, #087990 100%);
  border: 2px solid #065b6d;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 6px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.wildwest-help-btn:active {
  transform: scale(0.95);
}

.wildwest-top-banner {
  flex: 1;
  height: 48px;
  background: linear-gradient(180deg, #8a2424 0%, #631616 100%);
  border: 2px solid #a33232;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 6px rgba(0, 0, 0, 0.35);
  color: #f7d6a5;
  font-size: 14px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Parchment Board Card matching Image 1 */
.wildwest-parchment-card {
  position: relative;
  margin-top: 14px;
  background: #d8c292 linear-gradient(180deg, #e4d4aa 0%, #ccb47f 100%);
  border: 2px solid #a68c58;
  border-radius: 12px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(100, 70, 25, 0.3);
  padding: 24px 14px 16px 14px;
}

/* Top Tab '2x' or '3x' */
.wildwest-parchment-tab {
  position: absolute;
  top: -16px;
  left: 35px;
  background: linear-gradient(180deg, #e4d4aa 0%, #d8c292 100%);
  border: 2px solid #a68c58;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 2px 28px;
  color: #3b240f;
  font-size: 22px;
  font-weight: 900;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.wildwest-selector-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.wildwest-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wildwest-row {
  display: grid;
  gap: 10px;
}

.wildwest-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wildwest-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Unrevealed Cell */
.wildwest-cell {
  height: 58px;
  background: linear-gradient(180deg, #c3aa79 0%, #a48b59 100%);
  border: 1.5px solid #7d653a;
  border-radius: 10px;
  box-shadow: 
    inset 0 3px 6px rgba(0, 0, 0, 0.45),
    inset 0 -1px 2px rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Safe Cell (Gold Coins Stack) */
.wildwest-cell.safe {
  background: #140d05 url('/assets/wildwest_coins.png') center/cover no-repeat;
  border: 2px solid #ffd700;
  border-radius: 10px;
  box-shadow: 
    0 0 16px rgba(255, 215, 0, 0.7),
    inset 0 0 10px rgba(255, 215, 0, 0.4);
  animation: cellPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wildwest-cell.safe::after {
  content: '💰';
  font-size: 28px;
}

/* Trap Cell (Dynamite Bomb) */
.wildwest-cell.trap {
  background: #140505 url('/assets/wildwest_dynamite.png') center/cover no-repeat;
  border: 2px solid #ef4444;
  border-radius: 10px;
  box-shadow: 
    0 0 16px rgba(239, 68, 68, 0.7),
    inset 0 0 10px rgba(239, 68, 68, 0.4);
  animation: cellShake 0.4s ease-in-out;
}

@keyframes cellPop {
  0% { transform: scale(0.85); opacity: 0.5; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes cellShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* ==================== 10. DRAGON'S GOLD STYLES ==================== */
.dragongold-theme-bg {
  background: radial-gradient(circle at top right, rgba(255, 87, 34, 0.25), transparent 70%);
}
.dragongold-glow {
  background: rgba(255, 87, 34, 0.15);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.4);
}

.dragon-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dragon-board-panel {
  padding: 16px;
  background: rgba(30, 15, 10, 0.5);
  border: 1px solid rgba(255, 87, 34, 0.25);
}

.dragon-board {
  display: flex;
  gap: 12px;
}

.dragon-mult-column {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  gap: 6px;
}

.dragon-mult-badge {
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #FF8A65;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.2);
  border-radius: 8px;
  text-align: center;
}

.dragon-grid-column {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dragon-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.dragon-cell {
  height: 42px;
  background: rgba(255, 87, 34, 0.08);
  border: 1px solid rgba(255, 87, 34, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.dragon-cell.revealed-gold {
  background: rgba(255, 215, 0, 0.25);
  border: 1.5px solid #FFD700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
  animation: applePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==================== 11. ROYAL COIN FLIP STYLES ==================== */
.coinflip-theme-bg {
  background: radial-gradient(circle at top right, rgba(156, 39, 176, 0.3), transparent 70%);
}
.coinflip-glow {
  background: rgba(156, 39, 176, 0.15);
  box-shadow: 0 0 16px rgba(156, 39, 176, 0.4);
}

.coinflip-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coinflip-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.coin-mult-timeline {
  display: flex;
  gap: 6px;
  width: 100%;
  justify-content: space-between;
}

.c-mult {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
}

.c-mult.active {
  background: rgba(156, 39, 176, 0.3);
  border-color: #E040FB;
  color: #fff;
  box-shadow: 0 0 10px rgba(224, 64, 251, 0.4);
}

.coin-arena {
  width: 160px;
  height: 160px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-3d-wrapper {
  width: 130px;
  height: 130px;
  position: relative;
  transform-style: preserve-3d;
}

.coin-3d {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(0.15, 0.9, 0.2, 1);
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 4px solid #EA80FC;
  box-shadow: 0 0 25px rgba(224, 64, 251, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.coin-front {
  background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%);
}

.coin-back {
  background: linear-gradient(135deg, #8E24AA 0%, #311B92 100%);
  transform: rotateY(180deg);
}

.coin-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ==================== SUBMENU POPUP MODAL STYLES ==================== */
@keyframes popupZoom {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.submenu-item-btn {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submenu-item-btn:hover, .submenu-item-btn:active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 176, 255, 0.2));
  border-color: rgba(0, 230, 118, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

.submenu-item-btn .sub-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.submenu-item-btn .sub-title {
  flex-grow: 1;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.3px;
}

.submenu-item-btn .sub-arrow {
  color: rgba(0, 230, 118, 0.8);
  font-size: 16px;
  transition: transform 0.2s ease;
}

.submenu-item-btn:hover .sub-arrow {
  transform: translateX(4px);
  color: #00e676;
}


