
/* Modern UI Enhancements - Auto-generated */
@import url('css/cs2-modern.css');

/* Integration with existing styles */
/* Casino Page Styles */

.casino-screen {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

#mainCasinoScreen.casino-screen {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.casino-container {
  max-width: 500px;
  width: 100%;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  animation: fadeInUp 0.5s ease-out;
}

html[data-theme="light"] .casino-container {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.6);
}

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

.casino-welcome {
  text-align: center;
}

.casino-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.casino-subtitle {
  color: var(--color-muted);
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.signin-form input {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 2px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  color: var(--color-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

html[data-theme="light"] .signin-form input {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
}

.signin-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(148, 163, 184, 0.3);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.auth-tab:hover {
  color: var(--color-text);
}

.auth-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Auth Forms */
.auth-form {
  margin-bottom: 1rem;
}

.error-message {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.success-message {
  color: #22c55e;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.credits-info {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.credit-amount {
  color: #f59e0b;
  font-weight: bold;
  font-size: 1.2em;
}

/* Casino Header */
.casino-header {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .casino-header {
  background: linear-gradient(
    to bottom,
    rgba(241, 245, 249, 0.98),
    rgba(226, 232, 240, 0.95),
    transparent
  );
  border-bottom-color: rgba(148, 163, 184, 0.6);
}

.casino-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  flex-wrap: nowrap; /* Always keep header in one row */
  width: 100%;
  box-sizing: border-box;
}

.player-info {
  display: flex;
  align-items: center;
  gap: clamp(0.375rem, 1.2vw, 0.5rem);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  /* Ensure text doesn't overflow */
  overflow: hidden;
}

.player-icon {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  flex-shrink: 0;
}

.player-info span:not(.player-icon):not(.credits-separator) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-info #playerNameDisplay {
  max-width: clamp(80px, 20vw, 120px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credits-separator {
  color: var(--color-muted);
  margin: 0 clamp(0.15rem, 0.5vw, 0.25rem);
  font-weight: 400;
  flex-shrink: 0;
}

.credits-label {
  color: var(--color-muted);
  white-space: nowrap;
  font-weight: 500;
  margin-right: clamp(0.15rem, 0.5vw, 0.25rem);
  flex-shrink: 0;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
}

.credit-amount {
  color: #f59e0b;
  font-weight: bold;
  white-space: nowrap;
  font-size: clamp(0.9rem, 2vw, 1.2em);
}

/* Header action buttons grouped together */
.casino-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
}

.btn-small {
  padding: 0.5rem 0.875rem;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-logout {
  padding: clamp(0.35rem, 1.2vw, 0.4rem) clamp(0.65rem, 1.8vw, 0.75rem);
  font-size: clamp(0.7rem, 1.6vw, 0.8rem);
  flex-shrink: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Game Selection */
.game-selection {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 2.5rem;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Responsive games grid: 3 columns on desktop, 2 on tablet, 1 on mobile */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.game-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .game-card {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.6);
}

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

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

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.7);
}

.game-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.game-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.game-card p {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.game-card .play-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Game Container */
.game-container {
  max-width: 1200px;
  margin: 0.5rem auto;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: clamp(0.35rem, 1vw, 0.45rem) clamp(0.75rem, 1.8vw, 0.9rem);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--color-text);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

html[data-theme="light"] .back-btn {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.7);
}

.back-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--color-primary);
  transform: translateX(-3px);
}

.game-view {
  background: transparent;
  border-radius: 15px;
  padding: clamp(0.5rem, 1.5vw, 1rem);
  border: none;
  box-shadow: none;
  min-height: auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

html[data-theme="light"] .game-view {
  background: transparent;
  border-color: transparent;
}

/* Keep visible game-view styling for non-CS2 games */
#blackjackGame.game-view:not(.hidden),
#coinflipGame.game-view:not(.hidden),
#rouletteGame.game-view:not(.hidden) {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.7);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

html[data-theme="light"] #blackjackGame.game-view:not(.hidden),
html[data-theme="light"] #coinflipGame.game-view:not(.hidden),
html[data-theme="light"] #rouletteGame.game-view:not(.hidden) {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.6);
}

/* Responsive - Mobile-First Enhancements */
@media (max-width: 768px) {
  .casino-container {
    padding: 2rem 1.5rem;
  }

  .casino-header-content {
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    padding: 0 clamp(0.75rem, 2vw, 1rem);
  }

  .player-info {
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(0.3rem, 1vw, 0.4rem);
  }

  .player-info #playerNameDisplay {
    max-width: clamp(80px, 18vw, 100px);
  }

  .credits-separator {
    margin: 0 clamp(0.15rem, 0.5vw, 0.2rem);
  }

  .casino-header-actions {
    gap: 0.4rem;
  }

  .casino-header-actions .btn-small {
    padding: 0.35rem 0.6rem;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    min-height: 32px;
  }

  .btn-logout {
    padding: clamp(0.3rem, 1vw, 0.35rem) clamp(0.55rem, 1.5vw, 0.65rem);
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  }

  /* Grid layout now defined at top level with proper breakpoints */

  .game-view {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .game-container {
    padding: 0 0.5rem;
    margin: 0.5rem auto;
  }
}

@media (max-width: 480px) {
  .game-view {
    padding: 0.5rem 0.25rem;
    border-radius: 12px;
  }

  .game-container {
    padding: 0 0.25rem;
    margin: 0.25rem auto;
  }
}

/* Mobile Menu Dropdown */
.mobile-menu-toggle {
  display: none;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--color-text);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  min-width: 44px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* Mobile actions dropdown — see consolidated styles below (line ~1377) */

/* Mobile dropdown backdrop */
.mobile-dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

.mobile-dropdown-backdrop.active {
  display: block;
}

/* ========== COINFLIP GAME STYLES ========== */
.coinflip-casino-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.game-section {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin-bottom: 1.5rem;
}

.room-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.room-selection-header h3 {
  margin: 0;
  color: var(--color-text);
}

.btn-create-room {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100px;
}

.room-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.room-item:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--color-primary);
}

.room-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.room-creator {
  font-weight: 600;
  color: var(--color-text);
}

.room-bet {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.btn-join-room {
  min-height: 44px;
  min-width: 80px;
}

/* Game room styles */
.game-room-section {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.room-id-display {
  font-weight: 600;
  color: var(--color-text);
}

.players-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.player-card {
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.player-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.player-card-name {
  font-weight: 600;
  color: var(--color-text);
}

.player-card-bet {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.player-card-choice {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Coin animation */
.coin-container {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.coin {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out;
  cursor: pointer;
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  backface-visibility: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.coin-front {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 3px solid #d97706;
}

.coin-back {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: 3px solid #3730a3;
  transform: rotateY(180deg);
}

.coin.flipping {
  animation: coinFlip 2s ease-in-out forwards;
}

@keyframes coinFlip {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  25% { transform: rotateY(450deg) rotateX(180deg); }
  50% { transform: rotateY(900deg) rotateX(360deg); }
  75% { transform: rotateY(1350deg) rotateX(540deg); }
  100% { transform: rotateY(1800deg) rotateX(720deg); }
}

/* Modal styles */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.bet-setup-section, .confirmation-section {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  position: relative;
}

.bet-setup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.bet-setup-header h4 {
  margin: 0;
  color: var(--color-text);
}

.btn-close {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
}

.bet-input-group {
  margin-bottom: 1rem;
}

.bet-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.bet-input-group input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.quick-bet-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.btn-quick-bet {
  padding: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

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

.choice-section {
  margin-bottom: 1.5rem;
}

.choice-section label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.choice-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.btn-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.05);
  color: var(--color-text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
}

.btn-choice:hover {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
}

.btn-choice.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}

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

.game-status {
  text-align: center;
  margin: 2rem 0;
}

.status-message {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.results-section {
  text-align: center;
  padding: 2rem;
  background: rgba(148, 163, 184, 0.05);
  border-radius: 8px;
  margin-top: 2rem;
}

.result-message {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.result-message.win {
  color: #22c55e;
}

.result-message.loss {
  color: #ef4444;
}

.result-message.tie {
  color: #fbbf24;
}

/* Mobile layout for Coinflip */
@media (max-width: 768px) {
  .coinflip-casino-container {
    padding: 0.5rem;
  }

  .game-section, .game-room-section {
    padding: 1rem;
  }

  .room-selection-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .btn-create-room {
    width: 100%;
    justify-content: center;
  }

  .room-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    text-align: center;
  }

  .players-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .coin-container {
    order: -1;
    margin: 1rem 0;
  }

  .coin {
    width: 60px;
    height: 60px;
  }

  .coin-face {
    font-size: 1.5rem;
  }

  .choice-buttons {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .quick-bet-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .btn-quick-bet {
    padding: 0.4rem;
    font-size: 0.85rem;
  }

  .confirmation-modal {
    padding: 0.5rem;
  }

  .bet-setup-section, .confirmation-section {
    padding: 1rem;
    margin: 0;
  }
}

/* ========== ROULETTE GAME STYLES ========== */
.roulette-casino-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.roulette-game-area {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1.5rem;
  align-items: start;
}

.roulette-wheel-section {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.digital-roulette-display {
  text-align: center;
  margin-bottom: 2rem;
}

.roulette-display {
  background: #000;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  border: 3px solid #333;
}

.number-display {
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.color-indicator {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto;
  border: 2px solid #333;
  background: #666;
}

.winning-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.next-spin-timer {
  font-size: 1.1rem;
  color: var(--color-text);
  background: rgba(148, 163, 184, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.roulette-history-section h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.roulette-history {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.history-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  color: white;
  border: 2px solid #333;
}

.history-number.red {
  background: #ef4444;
  border-color: #dc2626;
}

.history-number.black {
  background: #1f2937;
  border-color: #111827;
}

.history-number.green {
  background: #22c55e;
  border-color: #16a34a;
}

.betting-section-roulette {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  height: fit-content;
}

.betting-controls h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.bet-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.bet-input-group input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.betting-table {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.bet-section {
  margin-bottom: 1.5rem;
}

.bet-section h4 {
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-size: 1rem;
}

.bet-options {
  display: grid;
  gap: 0.5rem;
}

.bet-options.numbers {
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
}

.bet-options.colors {
  grid-template-columns: repeat(3, 1fr);
}

.bet-options.groups {
  grid-template-columns: repeat(2, 1fr);
}

.bet-btn {
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bet-btn:hover {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
}

.bet-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.bet-btn.red {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.bet-btn.black {
  background-color: rgba(31, 41, 55, 0.8);
  color: white;
  border-color: rgba(107, 114, 128, 0.3);
}

.bet-btn.green {
  background-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.current-bet-display {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.current-bet-display h4 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.current-bet-info {
  color: var(--color-text);
  font-size: 0.9rem;
}

.clear-bet-btn {
  width: 100%;
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  margin-top: 0.75rem;
}

.clear-bet-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
}

/* Mobile layout for Roulette */
@media (max-width: 768px) {
  .roulette-casino-container {
    padding: 0.5rem;
  }

  .roulette-game-area {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .betting-section-roulette {
    order: -1;
    padding: 1rem;
  }

  .roulette-wheel-section {
    padding: 1rem;
  }

  .number-display {
    font-size: 2.5rem;
  }

  .color-indicator {
    width: 40px;
    height: 40px;
  }

  .bet-options.numbers {
    grid-template-columns: repeat(6, 1fr);
  }

  .bet-options.colors, .bet-options.groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .bet-btn {
    padding: 0.6rem 0.4rem;
    font-size: 0.75rem;
  }

  .roulette-history {
    max-height: 120px;
  }

  .history-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

.mobile-actions-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  z-index: 1000;
  min-width: 200px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  display: none;
}

html[data-theme="light"] .mobile-actions-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.4);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-actions-dropdown.show,
.mobile-actions-dropdown.open {
  display: flex !important;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 1 !important;
  transform: translateY(0);
}

.mobile-actions-dropdown .btn-small {
  width: 100%;
  margin-bottom: 0.5rem;
  justify-content: flex-start;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--color-text);
  transition: all 0.2s ease;
  position: relative;
  overflow: visible;
}

.mobile-actions-dropdown .btn-small:last-child {
  margin-bottom: 0;
}

.mobile-actions-dropdown .btn-small:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.4);
}

@media (max-width: 480px) {
  .casino-header-content {
    gap: clamp(0.375rem, 1.2vw, 0.5rem);
    padding: 0 clamp(0.5rem, 1.5vw, 0.75rem);
    flex-wrap: nowrap; /* Keep header in one row on mobile */
  }

  .player-info {
    font-size: clamp(0.8rem, 1.8vw, 0.85rem);
    gap: clamp(0.25rem, 0.8vw, 0.3rem);
    flex: 1 1 auto;
    min-width: 0; /* Allow shrinking — don't force wrapping */
  }

  .player-icon {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    flex-shrink: 0;
  }

  .player-info #playerNameDisplay {
    max-width: clamp(70px, 25vw, 120px);
  }

  .credits-label {
    font-size: clamp(0.75rem, 1.6vw, 0.8rem);
  }

  .credit-amount {
    font-size: clamp(0.8rem, 1.8vw, 0.85rem);
  }

  .credits-separator {
    margin: 0 clamp(0.1rem, 0.4vw, 0.15rem);
    font-size: clamp(0.85rem, 1.8vw, 0.9rem);
  }

  .btn-logout {
    padding: clamp(0.25rem, 1vw, 0.3rem) clamp(0.5rem, 1.3vw, 0.55rem);
    font-size: clamp(0.65rem, 1.4vw, 0.7rem);
    flex-shrink: 0;
  }

  .casino-header-actions {
    gap: 0.3rem;
  }

  /* Hide individual action buttons on mobile, but NOT ones inside the dropdown */
  .casino-header-actions > .btn-small:not(.btn-logout) {
    display: none;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hide header buttons and show hamburger on tablet/mobile */
@media (max-width: 768px) {
  .casino-header-actions > .btn-small:not(.btn-logout) {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hidden utility */
.hidden {
  display: none !important;
}


/* Mobile-First Responsive Improvements */
@media screen and (max-width: 768px) {
  .main-container {
    padding: 10px;
    margin: 0;
  }

  .betting-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .team-logo {
    width: 32px;
    height: 32px;
  }

  .odds-button {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 60px;
  }

  .match-header {
    font-size: 16px;
    text-align: center;
  }

  .vs-separator {
    font-size: 12px;
    margin: 5px;
  }

  .balance-display {
    font-size: 18px;
    text-align: center;
    margin: 10px 0;
  }

  /* Touch-friendly buttons */
  button, .clickable {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improved form inputs */
  input[type="number"] {
    font-size: 16px;
    padding: 12px;
  }
}

@media screen and (max-width: 480px) {
  .odds-grid {
    grid-template-columns: 1fr;
  }
  
  .team-names {
    font-size: 14px;
  }
}

/* ========== Bet History Modal ========== */
.bet-history-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); z-index: 10000; display: flex;
  align-items: center; justify-content: center; padding: 1rem;
  animation: bhFadeIn 0.2s ease;
}
@keyframes bhFadeIn { from { opacity: 0; } to { opacity: 1; } }
.bet-history-content {
  background: #1a1f2e; border-radius: 16px; width: 100%; max-width: 600px;
  max-height: 80vh; display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.bet-history-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bet-history-header h2 { margin: 0; font-size: 1.25rem; color: #fff; }
.bet-history-close {
  background: none; border: none; color: #94a3b8; font-size: 1.5rem;
  cursor: pointer; padding: 0.25rem; line-height: 1; transition: color 0.2s;
}
.bet-history-close:hover { color: #fff; }
.bet-history-summary {
  display: flex; gap: 1rem; padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bh-stat { flex: 1; text-align: center; }
.bh-label { display: block; font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px; }
.bh-value { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; }
.bh-value.profit { color: #22c55e; }
.bh-value.loss { color: #ef4444; }
.bet-history-list { overflow-y: auto; padding: 0.75rem 1rem; flex: 1; }
.bh-empty { text-align: center; color: #64748b; padding: 2rem; }
.bh-row {
  display: grid; grid-template-columns: 100px 1fr auto auto;
  gap: 0.5rem; align-items: center; padding: 0.6rem 0.75rem;
  border-radius: 8px; margin-bottom: 0.4rem; font-size: 0.85rem;
}

/* Desktop: hide the mobile-specific top row wrapper */
.bh-row-top {
  display: contents;
}
.bh-row.win { background: rgba(34,197,94,0.08); }
.bh-row.loss { background: rgba(239,68,68,0.08); }
.bh-game { color: #e2e8f0; font-weight: 600; white-space: nowrap; }
.bh-details { color: #94a3b8; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bh-bet { color: #cbd5e1; }
.bh-mult { color: #fbbf24; font-weight: 600; }
.bh-result { color: #94a3b8; }
.bh-payout { font-weight: 700; text-align: right; white-space: nowrap; }
.bh-payout.profit { color: #22c55e; }
.bh-payout.loss { color: #ef4444; }
.bh-time { color: #475569; font-size: 0.7rem; text-align: right; white-space: nowrap; }
@media (max-width: 600px) {
  /* Make modal full-screen on mobile */
  .bet-history-modal {
    padding: 0;
    align-items: stretch;
  }
  
  .bet-history-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
  }
  
  /* Improve header spacing */
  .bet-history-header {
    padding: 1rem 1rem;
    min-height: 60px;
  }
  
  .bet-history-header h2 {
    font-size: 1.1rem;
  }
  
  .bet-history-close {
    font-size: 1.8rem;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve summary layout on mobile */
  .bet-history-summary {
    flex-direction: row;
    gap: 0.75rem;
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .bh-stat {
    min-width: calc(50% - 0.375rem);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  /* Redesign bet history rows for mobile */
  .bh-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.75rem;
  }
  
  /* Top row: Game and Payout */
  .bh-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .bh-game {
    font-size: 1rem;
    font-weight: 700;
  }
  
  .bh-payout {
    font-size: 1.1rem;
    font-weight: 700;
  }
  
  /* Middle row: Details */
  .bh-details {
    margin-bottom: 0.25rem;
    gap: 0.75rem;
  }
  
  .bh-bet, .bh-mult, .bh-result {
    font-size: 0.9rem;
  }
  
  /* Hide time column completely on mobile */
  .bh-time {
    display: none;
  }
  
  /* Ensure history button in modals is easily tappable — but not header buttons */
  .bet-history-content .btn-small {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  /* Improve list scrolling on mobile */
  .bet-history-list {
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better empty state on mobile */
  .bh-empty {
    padding: 3rem 1rem;
    font-size: 1rem;
  }
}

/* ========== LEADERBOARD MODAL ========== */
.leaderboard-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: modalFadeIn 0.3s ease-out;
  backdrop-filter: blur(8px);
}

.leaderboard-content {
  background: var(--color-surface);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.leaderboard-header h2 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leaderboard-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.leaderboard-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
}

.leaderboard-tabs {
  display: flex;
  gap: 0;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.leaderboard-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.leaderboard-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.leaderboard-tab:hover:not(.active) {
  color: var(--color-text);
}

.leaderboard-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  background: rgba(148, 163, 184, 0.05);
  transition: all 0.2s;
}

.lb-row:hover {
  background: rgba(148, 163, 184, 0.1);
}

.lb-row.current-user {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.lb-rank {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  min-width: 2.5rem;
  position: relative;
}

/* Rank badges for top 3 */
.lb-rank[data-rank="1"]::before { content: "🥇"; margin-right: 0.25rem; }
.lb-rank[data-rank="2"]::before { content: "🥈"; margin-right: 0.25rem; }
.lb-rank[data-rank="3"]::before { content: "🥉"; margin-right: 0.25rem; }

.lb-player {
  flex: 1;
}

.lb-username {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.lb-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.lb-profits {
  text-align: right;
}

.lb-netpl {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.lb-netpl.profit { color: #22c55e; }
.lb-netpl.loss { color: #ef4444; }

.lb-biggest {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.lb-empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-muted);
}

/* Game leaderboard specific styles */
.games-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.game-tab {
  padding: 0.75rem;
  background: rgba(148, 163, 184, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.game-tab:hover {
  background: rgba(148, 163, 184, 0.2);
}

.game-tab.active {
  background: var(--color-primary);
  color: white;
}

.lb-score {
  text-align: right;
}

.lb-value {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.lb-metric {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ========== ACHIEVEMENTS MODAL ========== */
.achievements-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.achievements-content {
  background: var(--color-surface);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
}

.achievements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.achievements-header h2 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.achievements-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.achievements-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
}

.achievements-list {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.achievements-summary {
  margin-bottom: 2rem;
  text-align: center;
}

.ach-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ach-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.ach-progress-text {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.2s;
}

.achievement-card.earned {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.achievement-card.locked {
  background: rgba(148, 163, 184, 0.05);
  opacity: 0.6;
}

.achievement-card.earned:hover {
  background: rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
}

.ach-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.ach-info {
  flex: 1;
}

.ach-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.ach-description {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.ach-earned {
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ========== STATS MODAL ========== */
.stats-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.stats-content {
  background: var(--color-surface);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.stats-header h2 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.stats-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
}

.stats-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(148, 163, 184, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-card.profit {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

.stat-card.loss {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card.profit .stat-value { color: #22c55e; }
.stat-card.loss .stat-value { color: #ef4444; }

.stat-label {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.stats-details {
  display: grid;
  gap: 2rem;
}

.stats-section h3 {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-size: 1.2rem;
}

.stats-grid {
  display: grid;
  gap: 0.75rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(148, 163, 184, 0.05);
  border-radius: 8px;
}

.stat-name {
  color: var(--color-text);
}

.stat-val {
  font-weight: 600;
}

.stat-val.profit { color: #22c55e; }
.stat-val.loss { color: #ef4444; }

.game-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.game-stat {
  padding: 1rem;
  background: rgba(148, 163, 184, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.game-stat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

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

.game-name {
  font-weight: 600;
}

.game-stat-details {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ========== ACHIEVEMENT TOAST ========== */
.achievement-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
  z-index: 1100;
  max-width: 350px;
  cursor: pointer;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInToast 0.5s ease-out forwards, celebrate 0.8s ease-in-out 0.2s;
  position: relative;
  overflow: hidden;
}

/* Celebration effects */
.achievement-toast::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.3) 1.5px, transparent 1.5px);
  animation: confetti 2s ease-out;
  pointer-events: none;
}

@keyframes confetti {
  0% {
    opacity: 0;
    transform: translateY(100%) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100%) rotate(180deg);
  }
}

@keyframes celebrate {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(-5px) scale(1.02);
  }
}

@keyframes slideInToast {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toast-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.toast-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.toast-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== ACHIEVEMENT BADGE ========== */
.achievement-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.achievement-badge.hidden {
  display: none;
}

/* ========== MODAL ANIMATIONS ========== */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.leaderboard-content,
.achievements-content,
.stats-content {
  animation: modalSlideIn 0.3s ease-out;
}

/* Apply backdrop blur to all modals */
.achievements-modal,
.stats-modal {
  backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease-out;
}

/* ========== PACHINKO GAME STYLES ========== */
.pachinko-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.pachinko-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.pachinko-canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

#pachinkoCanvas {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pachinko-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  height: fit-content;
}

.pach-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pach-group label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.pach-group input {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  font-size: 1rem;
}

.pach-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.pqb, .prb, .pbb {
  padding: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.pqb:hover, .prb:hover, .pbb:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: var(--color-primary);
}

.prb.active, .pbb.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.pach-risk-btns, .pach-ball-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.pach-drop-btn {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary), #3b82f6);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.pach-drop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.pach-results {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
}

.pach-result {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  margin-bottom: 0.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.pach-result.big-win {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.pach-result.win {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.pach-result.loss {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Mobile layout for Pachinko */
@media (max-width: 768px) {
  .pachinko-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Move controls above canvas on mobile */
  .pachinko-controls {
    order: -1;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.9);
  }

  .pachinko-canvas-wrap {
    padding: 0.5rem;
  }

  /* Compact controls layout for mobile */
  .pach-group {
    gap: 0.25rem;
  }

  .pach-group label {
    font-size: 0.8rem;
  }

  .pach-quick {
    grid-template-columns: repeat(2, 1fr);
  }

  .pach-risk-btns {
    grid-template-columns: repeat(3, 1fr);
  }

  .pach-ball-btns {
    grid-template-columns: repeat(3, 1fr);
  }

  .pach-drop-btn {
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .pach-results {
    max-height: 120px;
    margin-top: 0.5rem;
  }
}

/* ========== CRASH GAME STYLES ========== */
.crash-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.crash-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.crash-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crash-canvas-wrap {
  position: relative;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

#crashCanvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.crash-multiplier {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  z-index: 10;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.crash-multiplier.betting-label {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  font-size: 2rem;
  top: 40%;
}

.crash-multiplier.running {
  color: #22c55e;
  animation: pulse 1s infinite;
}

.crash-multiplier.crashed {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  animation: shake 0.5s;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes shake {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  25% { transform: translate(-50%, -50%) translateY(-2px); }
  75% { transform: translate(-50%, -50%) translateY(2px); }
}

.crash-status {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.3);
  z-index: 10;
  font-size: 1rem;
  min-width: 200px;
  text-align: center;
}

.crash-status.betting {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.crash-status.crashed {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.crash-history {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.crash-hist-pill {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.crash-hist-pill.high {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.crash-hist-pill.mid {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.crash-hist-pill.low {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.crash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.crash-bet-section, .crash-feed-section {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.crash-bet-section h3, .crash-feed-section h3 {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 600;
}

.crash-bet-group {
  margin-bottom: 1rem;
}

.crash-bet-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.crash-bet-group input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  font-size: 1rem;
}

.crash-quick-bets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cqb {
  padding: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.cqb:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: var(--color-primary);
}

.crash-cashout-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: white !important;
  border: none !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

.crash-cashout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.crash-bet-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.crash-bet-status.ok {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.crash-bet-status.win {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.crash-bet-status.loss {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.crash-bet-status.err {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.crash-feed {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(148, 163, 184, 0.05);
  border-radius: 6px;
  font-size: 0.85rem;
}

.feed-name {
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-mult {
  color: #fbbf24;
  font-weight: 600;
  margin: 0 0.5rem;
}

.feed-win {
  color: #22c55e;
  font-weight: 600;
}

.feed-empty {
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
  padding: 1rem;
}

/* Mobile layout for Crash */
@media (max-width: 768px) {
  .crash-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .crash-sidebar {
    order: -1;
  }

  .crash-multiplier {
    font-size: 2rem;
  }

  .crash-status {
    font-size: 0.9rem;
    min-width: 150px;
    padding: 0.5rem;
  }

  .crash-bet-section, .crash-feed-section {
    padding: 1rem;
  }

  .crash-quick-bets {
    grid-template-columns: repeat(4, 1fr);
  }

  .crash-history {
    padding: 0.75rem;
  }
}

/* ========== BLACKJACK GAME STYLES ========== */
.blackjack-container {
  max-width: 800px;
  margin: 0 auto;
}

.betting-section {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin-bottom: 1rem;
}

.betting-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.bet-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bet-input-group input {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  font-size: 1rem;
}

.quick-bets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.quick-bet-btn {
  padding: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.quick-bet-btn:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: var(--color-primary);
}

.game-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dealer-section, .player-section {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.dealer-section h3, .player-section h3 {
  margin: 0 0 0.5rem;
  color: var(--color-text);
  font-size: 1.2rem;
}

.score-display {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.cards-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 100px;
  align-items: center;
}

.card {
  width: 60px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.card:hover {
  transform: translateY(-5px);
}

.card.card-back {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  font-size: 2rem;
}

.result-display {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-display.win {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.result-display.loss {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-display.push {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.insurance-section {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.insurance-prompt p {
  margin: 0.5rem 0;
  color: var(--color-text);
}

.insurance-info {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.insurance-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.game-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.game-controls .btn {
  min-width: 120px;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.game-controls .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.game-controls .btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Mobile layout for Blackjack */
@media (max-width: 768px) {
  .blackjack-container {
    padding: 0.5rem;
  }

  .betting-section, .dealer-section, .player-section {
    padding: 1rem;
  }

  .cards-container {
    gap: 0.25rem;
    justify-content: center;
  }

  .card {
    width: 50px;
    height: 70px;
  }

  .game-controls {
    gap: 0.5rem;
  }

  .game-controls .btn {
    min-width: 100px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .quick-bets {
    grid-template-columns: repeat(2, 1fr);
  }

  .insurance-buttons {
    flex-direction: column;
    align-items: center;
  }

  .insurance-buttons .btn {
    min-width: 150px;
  }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .leaderboard-modal,
  .achievements-modal,
  .stats-modal {
    padding: 0;
    align-items: stretch;
  }
  
  .leaderboard-content,
  .achievements-content,
  .stats-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
  }
  
  .leaderboard-header,
  .achievements-header,
  .stats-header {
    padding: 1rem;
  }
  
  .leaderboard-header h2,
  .achievements-header h2,
  .stats-header h2 {
    font-size: 1.2rem;
  }
  
  .leaderboard-list,
  .achievements-list,
  .stats-body {
    padding: 1rem;
  }
  
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .game-stats {
    grid-template-columns: 1fr;
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .achievement-toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .toast-content {
    gap: 0.75rem;
  }
  
  .toast-icon {
    font-size: 1.5rem;
  }
}
