.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  width: auto;
  height: 56px;
  border-radius: 30px;
  background: rgb(0 0 0 / 25%);
  backdrop-filter: blur(1.5px) saturate(150%);
  -webkit-backdrop-filter: blur(1.5px) saturate(150%);
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--white-20);
  z-index: 2410;
}

[data-theme="day"] .bottom-nav {
  background: rgb(255 255 255 / 25%);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.nav-item.active .nav-text {
  color: var(--accent-blue);
  font-weight: 700;
}

.nav-item.active .nav-icon {
  color: var(--accent-blue);
}

.nav-item .nav-icon {
  color: var(--text-primary);
}

/* Live item special styling - red when active */
.nav-item.live-item.active .nav-icon {
  color: var(--accent-red);
}

.nav-text {
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1;
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.nav-text-live {
  color: var(--text-on-accent);
  font-size: 10px;
  line-height: 1;
  font-family: 'Proxima Nova', sans-serif;
  background-color: var(--accent-red);
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-text.active {
  color: var(--accent-blue);
}

.nav-icon {
  margin-bottom: 2px;
}

/* Icon wrapper for badge positioning */
.nav-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-wrapper {
  margin-bottom: 2px;
}

.nav-icon-wrapper .nav-icon {
  margin-bottom: 0;
}

/* Red badge dot for notifications */
.nav-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  border: 1.5px solid var(--white-30);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* Casino Page Styles */

.casino-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 50px);
  min-height: calc(100dvh - 50px);
}

/* ========== NEW GRID-BASED CASINO PAGE ========== */
.casino-page-grid {
  background: linear-gradient(180deg, #0a0a0f 0%, #35356f 50%, #0a0a0f 100%);
  /* padding: 20px 16px; - causes page wobble */
}

/* Casino Header */
.casino-header {
  text-align: center;
  margin: 0;
  padding: 10px 0;
  background: #0a0a0f;
  border: none;
  position: sticky;
  top: 37px;
  z-index: 100;
}

@media (min-width: 768px) {
  .casino-header {
    top: 0;
  }
}

.casino-title {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffd700;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Casino Section */
.casino-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.casino-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 12px;
}

.casino-section-title {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 2px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.casino-section-line {
  flex: 1 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.4) 0%, transparent 100%);
}

/* Games Grid */
.casino-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
  padding-bottom: 8px;
}

@media (min-width: 768px) {
  .casino-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .casino-games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Game Card */
.casino-game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 6 / 4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Mobile - no hover effects */
.casino-game-card:active {
  transform: scale(0.98);
}

/* Desktop - subtle hover */
@media (min-width: 768px) {
  .casino-game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.5),
      0 0 15px rgba(255, 215, 0, 0.15);
  }
}

.game-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 16px 12px;
  text-align: center;
  box-sizing: border-box;
}

.game-card-logo {
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0px 5px 12px rgba(0, 0, 0, 1));
}

.game-card-logo.poker-logo {
  max-height: 65px;
  margin-bottom: 8px;
}

.game-card-logo.keno-logo {
  max-height: 60px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  flex-shrink: 1;
  /* PNG needs different filter */
  filter: drop-shadow(0px 3px 8px rgba(0, 0, 0, 0.8));
}

.keno-logo-text {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 191, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.8);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.game-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
  line-height: 1.2;
}

.game-card-type {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.game-card-lines {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffd700;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* Electric glow effect */
  box-shadow:
    0 0 6px rgba(255, 215, 0, 0.4),
    0 0 12px rgba(255, 215, 0, 0.2),
    inset 0 0 4px rgba(255, 215, 0, 0.1);
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

/* Desktop only - show overlay on hover */
@media (min-width: 768px) {
  .casino-game-card:hover .game-card-overlay {
    opacity: 1;
  }
}

.play-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  color: #000;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* ========== GAME MODAL ========== */
.game-modal-overlay {
  position: fixed;
  top: 37px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}

.game-modal {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  background: #0a0a0f;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .game-modal-overlay {
    top: 0;
    align-items: center;
    padding: 20px;
    overflow: visible;
  }

  .game-modal {
    width: 95%;
    max-width: 550px;
    height: auto;
    max-height: 95vh;
    border-radius: 16px;
    overflow: visible;
  }
}

/* Keno modal - fullwidth on mobile */
.game-modal.keno-modal {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.game-modal-close {
  position: fixed;
  top: 45px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 80, 80, 0.4);
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  font-family: Arial, sans-serif;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
  padding-bottom: 2px; /* Компенсация для визуального центрирования × */
}

@media (min-width: 768px) {
  .game-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
  }
}

.game-modal-close:hover {
  background: rgba(255, 80, 80, 0.6);
}

/* Скрываем game-modal когда слот в fullscreen */
.game-modal:has(.slot-machine.fullscreen-mode) {
  background: transparent;
  pointer-events: none;
}

.game-modal:has(.slot-machine.fullscreen-mode) .slot-machine.fullscreen-mode,
.game-modal:has(.slot-machine.fullscreen-mode) .gamble-overlay {
  pointer-events: auto;
}

.game-modal-overlay:has(.slot-machine.fullscreen-mode) {
  background: transparent;
}

.game-modal:has(.slot-machine.fullscreen-mode) .game-modal-close {
  display: none;
}

/* ========== SLOT GAME WRAPPER ========== */
.slot-game-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  flex: 1 1;
  min-height: 0;
}

/* Royal Crown Theme - Gold */
.slot-game-wrapper.royal-crown,
.slot-game-wrapper.royal-crown-v2 {
  background: linear-gradient(180deg, #5a4510 0%, #3a2a08 50%, #1a1204 100%);
}

/* 20 Crown Theme */
.slot-game-wrapper.\32 0-crown {
  background: linear-gradient(180deg, #0a1628 0%, #051018 100%);
}

/* Clover Hot Theme */
.slot-game-wrapper.clover-hot,
.slot-game-wrapper.clover-hot-v2 {
  background: linear-gradient(180deg, #0a280a 0%, #051005 100%);
}

/* 20 Super 7 Theme */
.slot-game-wrapper.\32 0-super-7 {
  background: linear-gradient(180deg, #2a0a0a 0%, #180505 100%);
}

/* 777 Theme - Dark Red */
.slot-game-wrapper.\37 77 {
  background: linear-gradient(180deg, #8b0000 0%, #4a0000 50%, #1a0000 100%);
}

/* Champion Theme - Purple */
.slot-game-wrapper.champion {
  background: linear-gradient(180deg, #6a3093 0%, #3d1a5c 50%, #1a0a2e 100%);
}

/* Egypt Treasures Theme - background set via inline style in JSX */

/* Rise of Ra Theme - background set via inline style in JSX */

/* Dice and Roll Theme - Blue/Green */
.slot-game-wrapper.dice-and-roll {
  background: linear-gradient(180deg, #062A54 0%, #0A3D6B 50%, #128A5C 100%);
}

/* Star Fruits Theme - Orange/Green/Blue */
.slot-game-wrapper.star-fruits {
  background: linear-gradient(180deg, #95670E 0%, #62A217 50%, #016CE9 100%);
}

/* Desktop - borders and glow */
@media (min-width: 768px) {
  .slot-game-wrapper {
    border-radius: 16px;
    padding-bottom: 24px;
    flex: none;
    min-height: auto;
  }

  /* Royal Crown - Gold */
  .slot-game-wrapper.royal-crown,
  .slot-game-wrapper.royal-crown-v2 {
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
  }

  /* 20 Crown - Blue */
  .slot-game-wrapper.\32 0-crown {
    border: 1px solid rgba(0, 150, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.15);
  }

  /* Clover Hot - Green */
  .slot-game-wrapper.clover-hot,
  .slot-game-wrapper.clover-hot-v2 {
    border: 1px solid rgba(50, 205, 50, 0.4);
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.15);
  }

  /* 20 Super 7 - Red */
  .slot-game-wrapper.\32 0-super-7 {
    border: 1px solid rgba(255, 99, 71, 0.4);
    box-shadow: 0 0 15px rgba(255, 99, 71, 0.15);
  }

  /* 777 - Deep Red */
  .slot-game-wrapper.\37 77 {
    border: 1px solid rgba(255, 50, 50, 0.5);
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.2);
  }

  /* Champion - Purple */
  .slot-game-wrapper.champion {
    border: 1px solid rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  }

  /* Egypt Treasures - Gold */
  .slot-game-wrapper.egypt-treasures {
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }

  /* Rise of Ra - Purple/Gold */
  .slot-game-wrapper.rise-of-ra {
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }

  /* Dice and Roll - Gold */
  .slot-game-wrapper.dice-and-roll {
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }

  /* Star Fruits - Green */
  .slot-game-wrapper.star-fruits {
    border: 1px solid rgba(98, 162, 23, 0.5);
    box-shadow: 0 0 20px rgba(98, 162, 23, 0.2);
  }
}

/* ========== GAME-SPECIFIC SPIN BUTTON COLORS ========== */
/* Royal Crown - Bright Red */
.slot-game-wrapper.royal-crown .spin-btn,
.slot-game-wrapper.royal-crown-v2 .spin-btn {
  background: linear-gradient(180deg, #D04040 0%, #A03030 100%);
}
.slot-game-wrapper.royal-crown .spin-btn:hover:not(:disabled),
.slot-game-wrapper.royal-crown-v2 .spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #E05050 0%, #B84040 100%);
}

/* 20 Crown - Blue */
.slot-game-wrapper.\32 0-crown .spin-btn {
  background: linear-gradient(180deg, #0096FF 0%, #0066CC 100%);
}
.slot-game-wrapper.\32 0-crown .spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #33AAFF 0%, #0080E6 100%);
}

/* Clover Hot - Green */
.slot-game-wrapper.clover-hot .spin-btn,
.slot-game-wrapper.clover-hot-v2 .spin-btn {
  background: linear-gradient(180deg, #22A849 0%, #1A8A3A 100%);
}
.slot-game-wrapper.clover-hot .spin-btn:hover:not(:disabled),
.slot-game-wrapper.clover-hot-v2 .spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #2BC655 0%, #22A849 100%);
}

/* 20 Super 7 - Red (like Seven) */
.slot-game-wrapper.\32 0-super-7 .spin-btn {
  background: linear-gradient(180deg, #D04040 0%, #A03030 100%);
}
.slot-game-wrapper.\32 0-super-7 .spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #E05050 0%, #B84040 100%);
}

/* Champion - Purple */
.slot-game-wrapper.champion .spin-btn {
  background: linear-gradient(180deg, #8B5CF6 0%, #6D28D9 100%);
}
.slot-game-wrapper.champion .spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #A78BFA 0%, #8B5CF6 100%);
}

/* Egypt Treasures - Gold */
.slot-game-wrapper.egypt-treasures .spin-btn {
  background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
}
.slot-game-wrapper.egypt-treasures .spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #FFE033 0%, #DAA520 100%);
}

/* Rise of Ra - Gold */
.slot-game-wrapper.rise-of-ra .spin-btn {
  background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
}
.slot-game-wrapper.rise-of-ra .spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #FFE033 0%, #DAA520 100%);
}

/* Dice and Roll - Gold */
.slot-game-wrapper.dice-and-roll .spin-btn {
  background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
}
.slot-game-wrapper.dice-and-roll .spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #FFE033 0%, #DAA520 100%);
}

/* Star Fruits - Green */
.slot-game-wrapper.star-fruits .spin-btn {
  background: linear-gradient(135deg, #62A217 0%, #4a8012 100%);
}
.slot-game-wrapper.star-fruits .spin-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #74B31E 0%, #5a9618 100%);
}

/* Game Header with Logo */
.slot-game-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
}

.slot-game-logo {
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0px 5px 12px rgba(0, 0, 0, 1));
}

.slot-game-wrapper.egypt-treasures .slot-game-logo {
  padding: 30px 0;
}

.slot-game-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  padding: 8px 0;
}

/* Back button (legacy, keep for compatibility) */
.back-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #3D3D42;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background: #4D4D52;
}

.casino-balance {
  font-size: 16px;
  font-weight: 600;
  color: #22A849;
  background: rgba(34, 168, 73, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
}

/* Loading */
.casino-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 16px;
  color: #8E8E93;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #3D3D42;
  border-top-color: #0A84FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Error */
.casino-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 16px;
  color: #FF453A;
}

.casino-error button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: #0A84FF;
  color: #fff;
  cursor: pointer;
}

/* Games List - Scrollable Tabs */
.games-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.games-list::-webkit-scrollbar {
  display: none;
}

.game-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(145deg, #3a3a40 0%, #25252a 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  font-weight: 700;
  color: #d0d0d5;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.game-card:focus,
.game-card:focus-visible {
  outline: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover:not(.active) {
  background: linear-gradient(145deg, #454550 0%, #2a2a30 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.game-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.game-card.active {
  background: linear-gradient(145deg, #4a3a10 0%, #2a2510 100%);
  color: #FFD700;
  box-shadow:
    0 2px 6px rgba(255, 215, 0, 0.2),
    inset 0 0 0 2px rgba(255, 215, 0, 0.6);
}

.game-card.active:hover {
  background: linear-gradient(145deg, #5a4a15 0%, #3a3015 100%);
  box-shadow:
    0 2px 8px rgba(255, 215, 0, 0.25),
    inset 0 0 0 2px rgba(255, 215, 0, 0.7);
}

.game-card-emoji {
  font-size: 14px;
  margin-right: 5px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.game-card-icon {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.game-card-name {
  position: relative;
}

/* Video Poker Card - same style as slots, no special color */

/* Game Info Bar */
.game-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #29292c;
  border-bottom: 1px solid #3D3D42;
}

.game-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.game-actions {
  display: flex;
  gap: 8px;
}

.info-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #3D3D42;
  background: transparent;
  color: #8E8E93;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.info-btn:hover {
  border-color: #0A84FF;
  color: #0A84FF;
}

/* Login Overlay (popup style like VideoPoker) */
.casino-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.casino-login-prompt {
  background: linear-gradient(180deg, #1a1a4e 0%, #0d0d2b 100%);
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #FFD700;
}

.casino-login-prompt p {
  color: #fff;
  font-size: 16px;
  margin: 0 0 16px 0;
}

.casino-login-prompt button {
  padding: 12px 32px;
  background: linear-gradient(180deg, #FFD700 0%, #b8860b 100%);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* Modal Overlay - выше game-modal чтобы PayTable/History были поверх */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
}

.modal-content {
  background: #29292c;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #3D3D42;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.modal-header .close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #3D3D42;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Paytable Modal */
.paytable-modal {
  max-width: 450px;
  max-height: 85vh;
}

/* Champion paytable modal background */
.paytable-modal.game-champion {
  background: linear-gradient(180deg, #6a3093 0%, #3d1a5c 50%, #1a0a2e 100%);
}

/* Royal Crown paytable modal background */
.paytable-modal.game-royal-crown,
.paytable-modal.game-royal-crown-v2 {
  background: linear-gradient(180deg, #5a4510 0%, #3a2a08 50%, #1a1204 100%);
}

/* Clover Hot paytable modal background */
.paytable-modal.game-clover-hot,
.paytable-modal.game-clover-hot-v2 {
  background: linear-gradient(180deg, #0a4d0a 0%, #063206 50%, #020a02 100%);
}

/* 20 Super 7 paytable modal background */
.paytable-modal.game-20-super-7 {
  background: linear-gradient(180deg, #c43030 0%, #8a1a1a 50%, #300808 100%);
}

.paytable-content {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(85vh - 60px);
}

/* Game Info Bar */
.paytable-game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a1a1d 0%, #2d2d30 100%);
  border-radius: 10px;
  margin-bottom: 16px;
}

.game-lines {
  font-size: 14px;
  font-weight: 700;
  color: #FFD700;
  background: rgba(255, 215, 0, 0.15);
  padding: 6px 12px;
  border-radius: 16px;
}

.game-rtp {
  font-size: 13px;
  color: #22A849;
  font-weight: 600;
}

/* Symbols Table */
.paytable-table {
  background: #1a1a1d;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.paytable-header-row {
  display: grid;
  grid-template-columns: 1fr 50px 50px 50px 50px;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px 12px;
  background: #3a3a40;
  border-bottom: 1px solid #4a4a50;
  border-radius: 8px 8px 0 0;
}

.paytable-header-row span {
  font-size: 11px;
  font-weight: 600;
  color: #8E8E93;
  text-transform: uppercase;
}

.paytable-data-row {
  display: grid;
  grid-template-columns: 1fr 50px 50px 50px 50px;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #2d2d30;
  transition: background 0.2s;
}

.paytable-data-row:last-child {
  border-bottom: none;
}

.paytable-data-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pt-col-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pt-col-symbol .sym-emoji {
  font-size: 20px;
}

.pt-symbol-svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pt-col-symbol .sym-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-transform: capitalize;
}

.pt-col-mult {
  font-size: 13px;
  font-weight: 600;
  color: #FFD700;
  text-align: center;
}

/* Wild/Scatter badges in paytable */
.paytable-wild-row,
.paytable-scatter-row {
  background: rgba(255, 215, 0, 0.1);
  /* border-radius: 6px; */
  /* margin: 4px 0; */
}

.wild-badge,
.scatter-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 4px;
}

.wild-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: white;
}

.scatter-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a1a1d;
}

.pt-wild-info {
  flex: 1 1;
  text-align: center;
  font-size: 11px;
  color: #aaa;
  font-style: italic;
}

/* Special symbol payouts text */
.special-payouts {
  font-size: 12px;
  font-weight: 600;
  color: #FFD700;
  margin-top: 4px;
}

.special-rule {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 2px;
}

/* Special Symbols */
.paytable-specials {
  background: #1a1a1d;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.paytable-specials h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.special-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.special-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.special-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.special-icon-svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-icon-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}

.special-desc {
  flex: 1 1;
}

.special-desc strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.special-desc p {
  margin: 0;
  font-size: 12px;
  color: #8E8E93;
  line-height: 1.4;
}

/* Paylines Visualization */
.paylines-section {
  background: #1a1a1d;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.paylines-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #FFD700;
}

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

@media (max-width: 420px) {
  .paylines-visual-all {
    grid-template-columns: repeat(4, 1fr);
  }
}

.payline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #29292c;
  border-radius: 6px;
}

.pl-num {
  font-size: 12px;
  font-weight: 700;
}

.pl-grid-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-gap: 1px;
  gap: 1px;
  width: 50px;
  height: 24px;
}

/* 3x3 grid для 777 */
.pl-grid-mini.pl-grid-3x3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 30px;
  height: 30px;
}

.pl-cell-mini {
  background: #1a1a1d;
  border-radius: 1px;
}

.pl-cell-mini.active {
  background: #FFD700;
}

.pl-name {
  font-size: 8px;
  color: #8E8E93;
  text-align: center;
  white-space: nowrap;
}

/* Game Info Section */
.paytable-lines-info {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
}

.paytable-lines-info h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0A84FF;
}

.game-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 12px;
}

.info-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.info-label {
  display: block;
  font-size: 10px;
  color: #8E8E93;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.info-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.game-features {
  margin-bottom: 10px;
}

.game-features h5 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #FFD700;
}

.game-features ul {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.game-features li {
  font-size: 12px;
  color: #8E8E93;
  margin-bottom: 3px;
  position: relative;
}

.game-features li::before {
  content: '✓';
  position: absolute;
  left: -14px;
  color: #22A849;
  font-size: 10px;
}

.wins-note {
  margin: 0;
  font-size: 11px;
  color: #636366;
  font-style: italic;
}

/* History Modal */
.history-content {
  padding: 16px;
  overflow-y: auto;
}

.history-loading,
.history-empty {
  text-align: center;
  padding: 32px;
  color: #8E8E93;
}

.history-item {
  padding: 12px;
  background: #1a1a1d;
  border-radius: 8px;
  margin-bottom: 8px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.history-game {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.history-id {
  font-size: 11px;
  color: #666;
  font-family: monospace;
}

.history-details {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.history-bet {
  color: #8E8E93;
}

.history-win {
  color: #8E8E93;
}

.history-win.positive {
  color: #22A849;
}

.history-date {
  font-size: 11px;
  color: #636366;
}

/* Mobile */
@media (max-width: 400px) {
  .casino-header {
    padding: 12px;
  }

  .casino-title {
    font-size: 18px;
  }

  .casino-balance {
    font-size: 14px;
    padding: 6px 12px;
  }

  .games-list {
    padding: 12px;
  }

  .game-card {
    padding: 12px 16px;
  }
}

/* Mobile fullscreen paytable */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    padding-top: 37px; /* под хедером страницы */
  }

  .modal-content.paytable-modal {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: 100%;
    border-radius: 0;
  }

  .paytable-content {
    max-height: calc(100vh - 60px - 37px);
    max-height: calc(100dvh - 60px - 37px);
  }
}

/* Bonus Poker - Only BP-specific styles */
/* All game UI uses VideoPoker.css (vp-* classes) */

/* Override vp-container max-width/margin when in modal */
.vp-container.bonus-poker-game.vp-in-modal {
  max-width: 100%;
  margin: 0;
}

