/* Map Improvements */
:root {
  --primary-color: #ffd700;
  --primary-color-rgb: 255, 215, 0;
  --primary-dark: #d4af37;
  --secondary-color: #1a1a1a;
  --text-color: #f0f0f0;
  --background-color: #121212;
  --card-bg: #1e1e1e;
  --border-color: #333;
  --success-color: #4caf50;
  --danger-color: #f44336;
  --warning-color: #ffc107;
  --info-color: #2196f3;

  /* New colors */
  --city-color: #4caf50;
  --crime-color: #f44336;
  --shop-color: #2196f3;
  --hideout-color: #9c27b0;
  --airport-color: #ffc107;
  --bullet-factory-color: #ff9800;
  --player-color: #ff5722;
  --other-player-color: #9c27b0;
  --gold-color: #ffd700;
  --gold-mine-color: #d4af37;
  --gold-shop-color: #e6c200;
  --pickaxe-shop-color: #8d6e63;
  --building-color: #607d8b;
  --jail-color: #f44336;
  --casino-color: #e91e63;
  --hospital-color: #4caf50;
  --bank-color: #2196f3;
  --gym-color: #ff5722;

  --gold: #FFD700;
  --dark-gold: #C5A42B;
  --black: #121212;
  --rich-black: #0A0A0A;
  --light-black: #1E1E1E;
  --text-light: #E0E0E0;
  --text-gold: rgba(255, 215, 0, 0.8);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  position: fixed;
overflow: hidden;
height: 100%;
width: 100%;
}

 /* Prevent zooming on input focus */
 input[type="text"],
 input[type="password"],
 input[type="email"],
 input[type="number"],
 input[type="tel"],
 textarea,
 select {
   font-size: 16px;
 }

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
  
}

/* Game Layout */
.game-page {
  position: fixed;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  scrollbar-width: thin;
    scrollbar-color: #d4af37 #2a2a2a;
  
}

.game-container {
  display: flex;
  flex: 1;
  overflow-y: hidden;
 
}


.game-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  padding-bottom: 90px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.5) 0%, rgba(10, 10, 15, 0.8) 100%);
}

/* Header Styles */
.game-header {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
  border-bottom: 1px solid var(--primary-color);
  padding: 0.4rem 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1001;
}

.game-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.5;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.game-logo h1 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  font-weight: 800;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-stats {
  display: flex;
  gap: 1rem;
}

.player-stat {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0,0,0,0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.08);
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.stat-icon {
  font-size: 0.7rem;
  opacity: 0.8;
}

.stat-text {
  font-size: 0.75rem;
  font-weight: 600;
}

.logout-btn {
  background-color: var(--danger-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
}

.logout-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
}

/* User Menu Container */
.user-menu-container {
  position: relative;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(212, 175, 55, 0.1));
  border-radius: 25px;
  border: 2px solid rgba(255, 215, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-avatar:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(212, 175, 55, 0.2));
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.user-avatar:active {
  transform: translateY(0);
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #b8860b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.avatar-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: avatarShine 3s ease-in-out infinite;
}

@keyframes avatarShine {
  0%, 100% { transform: rotate(45deg) translateX(-100%); }
  50% { transform: rotate(45deg) translateX(100%); }
}

.avatar-initial {
  color: #000;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-level {
  color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-arrow {
  color: var(--primary-color);
  font-size: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.user-avatar.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  background: linear-gradient(135deg, rgba(25, 25, 35, 0.98) 0%, rgba(15, 15, 25, 0.98) 100%);
  border-radius: 16px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

@media (max-width: 768px) {
  .user-dropdown {
    right: auto;
    left: 0;
    width: calc(100% - 2rem);
    max-width: 300px;
  }
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #ffd700, var(--primary-color));
  animation: goldGlow 2s ease-in-out infinite;
}

@keyframes goldGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
}

.dropdown-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #b8860b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.dropdown-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: avatarShine 3s ease-in-out infinite;
}

.dropdown-avatar-initial {
  color: #000;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dropdown-user-name {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dropdown-user-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.dropdown-stat {
  color: var(--text-color);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
  margin: 0.75rem 0;
}

.dropdown-menu {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(212, 175, 55, 0.1));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropdown-menu a:hover::before {
  opacity: 1;
}

.dropdown-menu a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.dropdown-menu a span,
.dropdown-menu a i {
  position: relative;
  z-index: 1;
}

.dropdown-menu i {
  width: 22px;
  text-align: center;
  color: var(--primary-color);
  font-size: 1rem;
}

.dropdown-menu .logout-link {
  color: var(--danger-color);
}

.dropdown-menu .logout-link::before {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(211, 47, 47, 0.1));
}

.dropdown-menu .logout-link:hover {
  color: var(--danger-color);
}

.dropdown-menu .logout-link i {
  color: var(--danger-color);
}

/* Sidebar Styles */
.game-sidebar {
  width: 250px;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  padding: 1rem 0;
  overflow-y: auto;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary-color);
}

.sidebar-nav a.active {
  background-color: rgba(255, 215, 0, 0.1);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

.sidebar-nav .icon {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: sticky;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #121212;
  border-bottom: 1px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .mobile-nav {
  top: 50px;
  }
}

.mobile-nav-list {
  display: inline-flex; /* Changed from flex to inline-flex */
  gap: 0.5rem;
  padding: 0 1rem;
  list-style: none;
  margin: 0;
}

.mobile-nav-item {
  flex-shrink: 0;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  min-width: 60px;
  text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--primary-color);
}

.mobile-nav-icon {
  font-size: 0.7rem;
}

.mobile-nav-text {
  font-size: 0.5rem;
  font-weight: 500;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.98) 0%, rgba(18, 18, 25, 0.95) 100%);
  border-top: 1px solid var(--primary-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
  padding: 0.35rem 0;
  backdrop-filter: blur(20px);
}

.bottom-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
  list-style: none;
  margin: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  justify-content: center;
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 50px;
  text-align: center;
  position: relative;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
  color: var(--primary-color);
  background: rgba(255, 215, 0, 0.1);
}

.bottom-nav-link.active {
  background: rgba(255, 215, 0, 0.15);
}

.bottom-nav-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.bottom-nav-text {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.player-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Improved Bullet Info */
.bullet-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 152, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--bullet-factory-color);
}

.bullet-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.bullet-icon {
  color: var(--bullet-factory-color);
  font-size: 1.2rem;
}

/* Gold Info */
.gold-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 215, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--gold-color);
}

.gold-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.gold-icon {
  color: var(--gold-color);
  font-size: 1.2rem;
}


/* Enhanced Player Markers */
.player-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--player-color);
  border: 2px solid white;
  top: 5px;
  right: 5px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.other-player-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--other-player-color);
  border: 2px solid white;
  z-index: 9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}




/* Improved Modal */
.game-modal {
  position: fixed;
  top: 0;  /* Add this */
  left: 0; /* Add this */
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(5px);
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
 
  overflow: auto;
  justify-content: center;
  align-items: center;
  /* Add this to enable flex centering: */
 
}
.modal-content {
  position: fixed;
  

  background-color: var(--card-bg);
  border-radius: 5px;
  width: calc(100% - 40px);
  max-width: 490px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}





.game-modal.active {
  opacity: 1;
  visibility: visible;
}





.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Shop Styles */
.shop-container {
  padding: 1.5rem;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--shop-color);
}

.shop-title {
  color: var(--shop-color);
  margin: 0;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.shop-item {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.item-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.item-price {
  color: var(--gold-color);
  font-weight: bold;
}

.item-description {
  margin-bottom: 0.75rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.item-stats {
  margin-bottom: 1rem;
}

.header-stat-bonus {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.buy-item-btn {
  width: 100%;
  background-color: var(--shop-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.buy-item-btn:hover {
  background-color: #1976d2;
  transform: translateY(-2px);
}

.buy-item-btn:disabled {
  background-color: #666;
  cursor: not-allowed;
  transform: none;
}

/* Casino Styles */
.casino-container {
  padding: 1.5rem;
}

.casino-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--casino-color);
}

.casino-title {
  color: var(--casino-color);
  margin: 0;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.casino-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

/* Roulette Styles */
.roulette-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  background: linear-gradient(to bottom, #004d00, #006400);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 3px solid #8b0000;
}

.roulette-wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.roulette-wheel {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border: 15px solid #8b0000;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.roulette-wheel:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: conic-gradient(
    #006400 0deg 9.73deg,
    #8b0000 9.73deg 19.46deg,
    #000 19.46deg 29.19deg,
    #8b0000 29.19deg 38.92deg,
    #000 38.92deg 48.65deg,
    #8b0000 48.65deg 58.38deg,
    #000 58.38deg 68.11deg,
    #8b0000 68.11deg 77.84deg,
    #000 77.84deg 87.57deg,
    #8b0000 87.57deg 97.3deg,
    #000 97.3deg 107.03deg,
    #000 107.03deg 116.76deg,
    #8b0000 116.76deg 126.49deg,
    #000 126.49deg 136.22deg,
    #8b0000 136.22deg 145.95deg,
    #000 145.95deg 155.68deg,
    #8b0000 155.68deg 165.41deg,
    #000 165.41deg 175.14deg,
    #8b0000 175.14deg 184.87deg,
    #000 184.87deg 194.6deg,
    #8b0000 194.6deg 204.33deg,
    #000 204.33deg 214.06deg,
    #8b0000 214.06deg 223.79deg,
    #000 223.79deg 233.52deg,
    #8b0000 233.52deg 243.25deg,
    #000 243.25deg 252.98deg,
    #8b0000 252.98deg 262.71deg,
    #000 262.71deg 272.44deg,
    #8b0000 272.44deg 282.17deg,
    #000 282.17deg 291.9deg,
    #8b0000 291.9deg 301.63deg,
    #000 301.63deg 311.36deg,
    #8b0000 311.36deg 321.09deg,
    #000 321.09deg 330.82deg,
    #8b0000 330.82deg 340.55deg,
    #000 340.55deg 350.28deg,
    #8b0000 350.28deg 360deg
  );
  opacity: 0.9;
  z-index: 0;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #f5f5f5, #999);
  border-radius: 50%;
  border: 3px solid #666;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 5px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.wheel-numbers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  z-index: 1;
}

.wheel-number {
  position: absolute;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transform-origin: center 150px;
  z-index: 1;
}

.wheel-ball {
  position: absolute;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #fff, #ccc);
  border-radius: 50%;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  z-index: 3;
  transition: all 0.3s ease;
}

.roulette-wheel.spinning {
  animation: wheelSpin 5s cubic-bezier(0.35, 0, 0.25, 1) forwards;
}

.wheel-ball.spinning {
  animation: ballSpin 5s cubic-bezier(0.35, 0, 0.25, 1) forwards;
}

@keyframes wheelSpin {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(360deg); }
  20% { transform: rotate(720deg); }
  30% { transform: rotate(1080deg); }
  40% { transform: rotate(1440deg); }
  50% { transform: rotate(1800deg); }
  60% { transform: rotate(2160deg); }
  70% { transform: rotate(2520deg); }
  80% { transform: rotate(2880deg); }
  90% { transform: rotate(3240deg); }
  100% { transform: rotate(3600deg + var(--random-rotation, 0deg)); }
}

@keyframes ballSpin {
  0% { 
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
  }
  10% {
    top: 20px;
    left: 80%;
    transform: translateX(-50%);
  }
  20% {
    top: 40%;
    left: 90%;
    transform: translateX(-50%);
  }
  30% {
    top: 80%;
    left: 80%;
    transform: translateX(-50%);
  }
  40% {
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
  }
  50% {
    top: 80%;
    left: 20%;
    transform: translateX(-50%);
  }
  60% {
    top: 40%;
    left: 10%;
    transform: translateX(-50%);
  }
  70% {
    top: 20px;
    left: 20%;
    transform: translateX(-50%);
  }
  80% {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  90% {
    top: 30%;
    left: 60%;
    transform: translateX(-50%);
  }
  100% { 
    top: var(--final-ball-top, 50%); 
    left: var(--final-ball-left, 50%);
    transform: translate(-50%, -50%);
  }
}

.roulette-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bet-amount-container, .bet-type-container {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-amount-buttons, .bet-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bet-amount-btn, .bet-type-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.bet-amount-btn:hover, .bet-type-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bet-amount-btn.selected, .bet-type-btn.selected {
  background: var(--casino-color);
  border-color: var(--casino-color);
  color: white;
}

.roulette-board {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  background: #006400;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.5);
  border: 2px solid #004d00;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
}

.roulette-board:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23006400"/><rect width="10" height="10" fill="%23005400" x="0" y="0"/><rect width="10" height="10" fill="%23005400" x="20" y="0"/><rect width="10" height="10" fill="%23005400" x="40" y="0"/><rect width="10" height="10" fill="%23005400" x="60" y="0"/><rect width="10" height="10" fill="%23005400" x="80" y="0"/><rect width="10" height="10" fill="%23005400" x="10" y="10"/><rect width="10" height="10" fill="%23005400" x="30" y="10"/><rect width="10" height="10" fill="%23005400" x="50" y="10"/><rect width="10" height="10" fill="%23005400" x="70" y="10"/><rect width="10" height="10" fill="%23005400" x="90" y="10"/><rect width="10" height="10" fill="%23005400" x="0" y="20"/><rect width="10" height="10" fill="%23005400" x="20" y="20"/><rect width="10" height="10" fill="%23005400" x="40" y="20"/><rect width="10" height="10" fill="%23005400" x="60" y="20"/><rect width="10" height="10" fill="%23005400" x="80" y="20"/><rect width="10" height="10" fill="%23005400" x="10" y="30"/><rect width="10" height="10" fill="%23005400" x="30" y="30"/><rect width="10" height="10" fill="%23005400" x="50" y="30"/><rect width="10" height="10" fill="%23005400" x="70" y="30"/><rect width="10" height="10" fill="%23005400" x="90" y="30"/><rect width="10" height="10" fill="%23005400" x="0" y="40"/><rect width="10" height="10" fill="%23005400" x="20" y="40"/><rect width="10" height="10" fill="%23005400" x="40" y="40"/><rect width="10" height="10" fill="%23005400" x="60" y="40"/><rect width="10" height="10" fill="%23005400" x="80" y="40"/><rect width="10" height="10" fill="%23005400" x="10" y="50"/><rect width="10" height="10" fill="%23005400" x="30" y="50"/><rect width="10" height="10" fill="%23005400" x="50" y="50"/><rect width="10" height="10" fill="%23005400" x="70" y="50"/><rect width="10" height="10" fill="%23005400" x="90" y="50"/><rect width="10" height="10" fill="%23005400" x="0" y="60"/><rect width="10" height="10" fill="%23005400" x="20" y="60"/><rect width="10" height="10" fill="%23005400" x="40" y="60"/><rect width="10" height="10" fill="%23005400" x="60" y="60"/><rect width="10" height="10" fill="%23005400" x="80" y="60"/><rect width="10" height="10" fill="%23005400" x="10" y="70"/><rect width="10" height="10" fill="%23005400" x="30" y="70"/><rect width="10" height="10" fill="%23005400" x="50" y="70"/><rect width="10" height="10" fill="%23005400" x="70" y="70"/><rect width="10" height="10" fill="%23005400" x="90" y="70"/><rect width="10" height="10" fill="%23005400" x="0" y="80"/><rect width="10" height="10" fill="%23005400" x="20" y="80"/><rect width="10" height="10" fill="%23005400" x="40" y="80"/><rect width="10" height="10" fill="%23005400" x="60" y="80"/><rect width="10" height="10" fill="%23005400" x="80" y="80"/><rect width="10" height="10" fill="%23005400" x="10" y="90"/><rect width="10" height="10" fill="%23005400" x="30" y="90"/><rect width="10" height="10" fill="%23005400" x="50" y="90"/><rect width="10" height="10" fill="%23005400" x="70" y="90"/><rect width="10" height="10" fill="%23005400" x="90" y="90"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.roulette-table {
  display: flex;
  width: 100%;
  position: relative;
  z-index: 1;
}

.roulette-zero {
  width: 40px;
  height: 120px;
  background: #00a000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1px solid white;
  cursor: pointer;
  margin-right: 5px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.roulette-zero:after {
  content: '0';
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.roulette-numbers {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  flex: 1;
  padding: 5px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.roulette-betting-options {
  display: flex;
  margin-top: 10px;
  width: 100%;
  gap: 3px;
}

.bet-option {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.bet-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bet-option.selected {
  background: rgba(139, 0, 0, 0.6);
  border-color: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.bet-option-red {
  background: rgba(139, 0, 0, 0.6);
}

.bet-option-black {
  background: rgba(0, 0, 0, 0.6);
}

.dozen-bet, .column-bet {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.dozen-bet:hover, .column-bet:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dozen-bet.selected, .column-bet.selected {
  background: rgba(139, 0, 0, 0.6);
  border-color: white;
}

.dozen-bets, .column-bets {
  display: flex;
  width: 100%;
  gap: 3px;
  margin-top: 3px;
}

.roulette-number {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.roulette-number:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 4px 4px 0 0;
}

.roulette-number.red {
  background: #8b0000;
  color: white;
}

.roulette-number.black {
  background: #000;
  color: white;
}

.roulette-number.selected, .roulette-zero.selected {
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.8), inset 0 0 10px rgba(255, 255, 0, 0.5);
  border-color: #ffcc00;
  transform: scale(1.05);
}

.roulette-number.selected:after, .roulette-zero.selected:after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffcc00, #ff9900);
  border: 2px solid #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.roulette-number:hover, .roulette-zero:hover {
  transform: scale(1.05);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.roulette-results {
  margin-top: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.2rem;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.roulette-results:before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="25" cy="25" r="5" fill="%23222"/><circle cx="75" cy="25" r="5" fill="%23222"/><circle cx="25" cy="75" r="5" fill="%23222"/><circle cx="75" cy="75" r="5" fill="%23222"/><circle cx="50" cy="50" r="5" fill="%23222"/></svg>');
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.roulette-results h4 {
  position: relative;
  z-index: 1;
  color: #ffcc00;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

/* Result message styling */
.win-message {
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

.lose-message {
  color: #ff6666;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Pulse animation for winning results */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Winning number highlight effect */
@keyframes winningNumberHighlight {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.8), inset 0 0 10px rgba(255, 204, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
}

.winning-number {
  animation: winningNumberHighlight 1.5s ease-in-out infinite;
  border: 2px solid #ffcc00 !important;
  z-index: 2;
  position: relative;
}

/* Casino chip styling */
.chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ff9900, #ff6600);
  border: 2px dashed rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.chip:before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #f5f5f5;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.result-history {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.3s ease;
}

.result-item:hover {
  transform: scale(1.1);
  z-index: 2;
}

.result-item.red {
  background: linear-gradient(135deg, #a00000, #8b0000);
}

.result-item.black {
  background: linear-gradient(135deg, #333, #000);
}

.result-item.green {
  background: linear-gradient(135deg, #008000, #006400);
}

.result-item:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

#spin-button {
  background: linear-gradient(to bottom, #ffcc00, #ff9900);
  color: #000;
  font-weight: bold;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#spin-button:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

#spin-button:hover {
  background: linear-gradient(to bottom, #ffdd33, #ffaa33);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

#spin-button:hover:before {
  opacity: 1;
}

#spin-button:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.casino-game {
  background-color: rgba(233, 30, 99, 0.1);
  border: 1px solid var(--casino-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.casino-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.game-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.game-description {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Building Styles */
.building {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-origin: bottom center;
}

.building:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.building-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.building:hover .building-tooltip {
  opacity: 1;
}

/* Hospital Building */
.hospital-building {
  width: 40px;
  height: 40px;
  background-image: url('../img/hospital.png');
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.hospital-building:before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.hospital-building.owned {
  filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.6));
}

/* Fishing Spot */
.fishing-spot {
  width: 40px;
  height: 40px;
  background-image: url('../img/fishing.png');
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
  animation: gentle-float 3s infinite ease-in-out;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Casino Building */
.casino-building {
  width: 50px;
  height: 50px;
  background-image: url('../img/casino.png');
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.casino-building:before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 10px;
  background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.3));
  border-radius: 50% 50% 0 0;
  animation: casino-glow 2s infinite alternate;
}

@keyframes casino-glow {
  0% { opacity: 0.3; height: 8px; }
  100% { opacity: 0.8; height: 15px; }
}

/* Fruit Machine */
.fruit-machine {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  border: 2px solid gold;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Roulette Styling */
.roulette-wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.roulette-wheel-container:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.5), transparent);
}

.bet-amount-container {
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.bet-amount-container h4 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #f5f5f5;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bet-amount-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bet-amount-btn {
  background: linear-gradient(to bottom, #666, #333);
  color: white;
  border: 1px solid #888;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
}

.bet-amount-btn:hover {
  background: linear-gradient(to bottom, #888, #555);
  transform: translateY(-2px);
}

.bet-amount-btn.selected {
  background: linear-gradient(to bottom, #8b0000, #600);
  border-color: #ff9999;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.bet-type-container {
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.bet-type-container h4 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #f5f5f5;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bet-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}

.bet-type-btn {
  background: linear-gradient(to bottom, #444, #222);
  color: white;
  border: 1px solid #666;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.bet-type-btn:hover {
  background: linear-gradient(to bottom, #666, #444);
  transform: translateY(-2px);
}

.bet-type-btn.selected {
  background: linear-gradient(to bottom, #006400, #004400);
  border-color: #99ff99;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.roulette-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #1a1a1a, #333);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.player-money-display {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.player-money-display h3 {
  margin: 0;
  color: gold;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slot-machine {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.slot-reel {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: spin 0.5s ease-in-out;
}

@keyframes spin {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.bet-controls {
  margin: 1rem 0;
}

.bet-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bet-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.spin-btn {
  background-color: var(--casino-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.spin-btn:hover {
  transform: scale(1.05);
}

.spin-btn:disabled {
  background-color: #666;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced Notification System */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(30, 30, 30, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 300px;
  animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
  border-left: 4px solid var(--primary-color);
  font-weight: bold;
}

.notification.bullet {
  border-left-color: var(--bullet-factory-color);
}

.notification.crime {
  border-left-color: var(--crime-color);
}

.notification.attack {
  border-left-color: var(--danger-color);
}

.notification.gold {
  border-left-color: var(--gold-color);
}

.notification.success {
  border-left-color: var(--success-color);
}

.notification.error {
  border-left-color: var(--danger-color);
}

.notification.casino {
  border-left-color: var(--casino-color);
}

/* Opensheet Purchase Notification Style */
.notification.purchase {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
  border-left: 4px solid var(--gold-color);
  max-width: 350px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.1);
}

.notification.purchase img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 12px;
  border-radius: 4px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.notification.purchase .notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification.purchase .item-icon {
  font-size: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.notification.purchase .purchase-text {
  font-weight: 600;
  color: var(--gold-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notification.purchase .purchase-amount {
  color: var(--text-light);
  font-weight: 400;
  margin-left: 4px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .game-container {
    flex-direction: column;
    
  }

  .game-sidebar {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .game-logo {
    display: none;
  }

  .player-info {
    width: 100%;
    justify-content: space-between;
  }

  .player-stats {
    gap: 0.3rem;
  }

  .player-stat {
    padding: 0.1rem 0.3rem;
    font-size: 0.7rem;
  }

  .stat-text {
    font-size: 0.7rem;
  }

  .game-header {
    padding: 0.3rem 0.5rem;
  }

  .logout-btn {
    display: none;
  }

 

  .player-resources {
    gap: 0.5rem;
  }

  .bullet-info,
  .gold-info {
    padding: 0.3rem 0.6rem;
  }

  .bullet-count,
  .gold-count {
    font-size: 0.9rem;
  }

  .shop-items {
    grid-template-columns: 1fr;
  }

  .casino-games {
    grid-template-columns: 1fr;
  }

  .slot-machine {
    gap: 0.5rem;
  }

  .slot-reel {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .notification {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  
  .modal-content {
    width: 95%;
    padding: 1rem;
    max-height: 80vh;
  }

  .modal-header h3 {
    font-size: 1.3rem;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  
  .mobile-nav-text {
    font-size: 0.6rem;
  }

  .mobile-nav-icon {
    font-size: 0.7rem;
  }

  .player-stat {
    padding: 0.15rem 0.3rem;
    font-size: 0.7rem;
  }

  .header-stat-icon {
    font-size: 0.8rem;
  }

  .casino-title {
    font-size: 1.5rem;
  }

  .game-icon {
    font-size: 2rem;
  }

  .slot-reel {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .spin-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Building Specific Styles */
.building-container {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.building-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.building-description {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.building-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.action-button.danger {
  background-color: var(--danger-color);
}

.action-button.success {
  background-color: var(--success-color);
}

.action-button.info {
  background-color: var(--info-color);
}

/* Gym Styles */
.gym-container {
  padding: 1.5rem;
}

.training-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.training-option {
  background-color: rgba(255, 87, 34, 0.1);
  border: 1px solid var(--gym-color);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.training-cost {
  color: var(--gold-color);
  font-weight: bold;
  margin: 0.5rem 0;
}

/* Hospital Styles */
.hospital-container {
  padding: 1.5rem;
}

.health-status {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--hospital-color);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.health-bar {
  width: 100%;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.health-fill {
  height: 100%;
  background-color: var(--hospital-color);
  transition: width 0.3s;
}

/* Bank Styles */
.bank-container {
  padding: 1.5rem;
}

.bank-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.bank-service {
  background-color: rgba(33, 150, 243, 0.1);
  border: 1px solid var(--bank-color);
  border-radius: 10px;
  padding: 1rem;
}

.service-title {
  color: var(--bank-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.amount-input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-color);
  margin: 0.5rem 0;
}


/* Add this to your stylesheet */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::before {
  content: attr(tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background-color: #1a1a1a; /* Dark black background */
  color: #D4AF37; /* Gold text */
  border: 1px solid #D4AF37; /* Gold border */
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border-width: 5px;
  border-style: solid;
  border-color: #1a1a1a transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

[data-tooltip]:hover::before {
  transform: translateX(-50%) translateY(-8px);
}

[data-tooltip]:hover::after {
  transform: translateX(-50%) translateY(0);
}