/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #0a5c36;
  --primary-dark: #07482a;
  --primary-light: #0d7a47;
  --accent-color: #ffd700;
  --text-color: #ffffff;
  --text-secondary: #cccccc;
  --background-dark: #121f17;
  --background-medium: #1a2c21;
  --background-light: #223a2b;
  --border-color: #2a4d38;
  --win-color: #4caf50;
  --lose-color: #f44336;
  --button-hover: #0d7a47;
  --button-active: #07482a;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo span:first-child {
  font-size: 18px;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background-color: var(--primary-light);
  color: white;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance {
  background-color: var(--background-medium);
  padding: 8px 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.balance-label {
  color: var(--text-secondary);
}

.balance-amount {
  color: var(--accent-color);
  font-weight: 700;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background-color: var(--primary-light);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-btn:hover {
  background-color: var(--button-hover);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--background-medium);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-content button {
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  border: none;
  background: none;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.dropdown-content button:hover {
  background-color: var(--background-light);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* ===== MAIN CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 100px auto 40px;
  padding: 30px;
  flex: 1;
}

.game-header {
  text-align: center;
  margin-bottom: 30px;
}

.game-header h1 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.game-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== GAME CONTROLS ===== */
.game-controls {
  background-color: var(--background-medium);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.bet-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.bet-amount {
  flex: 1;
  min-width: 250px;
}

.control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-group {
  display: flex;
}

.input-group input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  background-color: var(--background-light);
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 0;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.bet-step {
  padding: 12px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.bet-step:first-child {
  border-radius: 4px 0 0 4px;
}

.bet-step:last-child {
  border-radius: 0 4px 4px 0;
}

.bet-step:hover {
  background-color: var(--primary-light);
}

.multiplier-display {
  background-color: var(--background-light);
  padding: 12px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  justify-content: center;
}

.multiplier-label {
  color: var(--text-secondary);
}

.multiplier-value {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.quick-bets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-bet {
  flex: 1;
  min-width: calc(25% - 10px);
  padding: 10px;
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.quick-bet:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== PACHINKO GAME AREA ===== */
.game-area {
  background-color: var(--background-medium);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.game-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-dark), var(--accent-color), var(--primary-dark));
}

.pachinko-board {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 0 auto 20px;
  background-color: var(--background-light);
  border-radius: 8px;
  overflow: hidden;
}

.pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  z-index: 1;
}

.ball {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #ff4757;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: top 0.1s linear, left 0.1s linear;
}

.slot {
  position: absolute;
  bottom: 0;
  width: calc(100% / 7);
  height: 30px;
  border-top: 2px solid var(--accent-color);
  z-index: 1;
}

.slots-display {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.slot-info {
  flex: 1;
  text-align: center;
  padding: 8px;
  background-color: var(--background-light);
  border-radius: 4px;
  font-weight: 500;
  margin: 0 2px;
}

.slot-info.highlight-slot {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
  transform: scale(1.05);
}

.spin-btn {
  display: block;
  margin: 0 auto;
  padding: 15px 40px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
}

.spin-btn:hover {
  background: linear-gradient(to bottom, var(--primary-light), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.spin-btn:disabled {
  background: var(--background-light);
  color: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
}

.spin-icon {
  font-size: 1.5rem;
}

.result-container {
  margin-top: 30px;
  text-align: center;
}

.result {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  min-height: 40px;
  padding: 10px;
  border-radius: 4px;
  transition: var(--transition);
}

.result.win {
  color: var(--win-color);
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.result.lose {
  color: var(--lose-color);
}

.last-win {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===== STATS ===== */
.game-stats {
  background-color: var(--background-medium);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info {
  flex: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===== FOOTER ===== */
.game-footer {
  background-color: var(--background-medium);
  padding: 20px;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.responsible-gambling {
  margin-top: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
}

.modal-content {
  background-color: var(--background-medium);
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-color);
}

.modal h2 {
  margin-bottom: 20px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 10px 0;
}

.modal-body h3 {
  margin: 20px 0 10px;
  color: var(--text-color);
}

.modal-body p {
  margin-bottom: 10px;
}

.slots-preview {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.slot-preview {
  padding: 10px;
  background-color: var(--background-light);
  border-radius: 4px;
  min-width: 60px;
  text-align: center;
}

.slot-preview.highlight {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
}

.jackpot-info {
  color: var(--accent-color);
  font-weight: 500;
  margin-top: 15px;
  text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes winPulse {
  0% {
    box-shadow: 0 0 5px var(--accent-color), inset 0 0 10px rgba(255, 215, 0, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 20px var(--accent-color), inset 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    padding: 20px;
    margin-top: 90px;
  }
  
  .pachinko-board {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 15px 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-link {
    padding: 12px 15px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .game-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .navbar-container {
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
  }
  
  .logo {
    order: 1;
  }
  
  .mobile-menu-btn {
    order: 2;
    margin-left: auto;
  }
  
  .nav-controls {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  
  .container {
    margin-top: 130px;
    padding: 15px;
  }
  
  .game-area {
    padding: 20px 15px;
  }
  
  .pachinko-board {
    height: 300px;
  }
  
  .slot-info {
    font-size: 0.9rem;
    padding: 5px;
  }
  
  .spin-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .bet-controls {
    flex-direction: column;
  }
  
  .multiplier-display {
    width: 100%;
  }
  
  .quick-bet {
    min-width: calc(50% - 10px);
  }
}
.logo-img{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}