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

:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1f2937;
  --light: #f3f4f6;
  
  /* Dark Theme Colors */
  --bg-dark: #0a0a0f;
  --bg-dark-secondary: #121218;
  --bg-card: #1a1a24;
  --bg-card-hover: #22222e;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --border-color: #2d2d3d;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  min-height: 100vh;
}

/* Dark Theme Styles */
body.dark-theme {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.header-dark {
  background: var(--bg-dark-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-dark .header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-dark .logo h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.container-dark {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-content {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.user-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.user-banner p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* Games Section */
.games-section-dark {
  margin: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  font-size: 2rem;
}

.section-count {
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Modern Game Cards */
.games-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card-modern {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.game-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card-modern:hover {
  transform: translateY(-8px);
  border-color: var(--accent-purple);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
  background: var(--bg-card-hover);
}

.game-card-modern:hover::before {
  opacity: 1;
}

/* Card Banner with Category Colors */
.card-banner {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  position: relative;
}

.game-card-modern.classic .card-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
}

.game-card-modern.multiplayer .card-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(14, 165, 233, 0.15));
}

.game-card-modern.casino .card-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
}

.game-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.difficulty {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty.easy {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.difficulty.medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
}

.difficulty.hard {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.game-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.game-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  margin: 0 1rem 1rem;
  border-radius: 12px;
  cursor: pointer;
}

.play-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.play-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Fullscreen Modal for Games */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--bg-dark);
  flex-direction: column;
}

.fullscreen-modal.active {
  display: flex;
}

.fullscreen-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-dark-secondary);
  border-bottom: 1px solid var(--border-color);
}

.fullscreen-modal-header h2 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.5rem;
}

.fullscreen-close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.fullscreen-close-btn:hover {
  color: var(--accent-purple);
}

.fullscreen-modal-content {
  flex: 1;
  overflow: auto;
  padding: 2rem;
}

.fullscreen-game-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 2rem;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fullscreen-game-card .card-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border-radius: 12px;
}

.fullscreen-game-card .game-icon {
  font-size: 5rem;
}

.fullscreen-game-card .card-content {
  padding: 0;
}

.fullscreen-game-card h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.fullscreen-game-card .game-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.fullscreen-game-card .game-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.fullscreen-game-card .tag {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.fullscreen-game-card .play-btn {
  margin: 1rem 0;
  font-size: 1.2rem;
  padding: 1.5rem 2rem;
}

/* Fullscreen toggle button */
.fullscreen-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--accent-purple);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.fullscreen-btn:hover {
  background: var(--accent-blue);
  transform: scale(1.1);
}

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

/* Footer */
.footer-dark {
  background: var(--bg-dark-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* Keep Original Styles for Compatibility */

header {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: white;
  font-weight: 500;
}

.coins {
  color: #fbbf24;
  font-size: 1.1rem;
  font-weight: bold;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.user-section {
  margin-bottom: 2rem;
}

.profile-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary);
}

.profile-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.profile-card p {
  color: #666;
  margin: 0.5rem 0;
}

.games-section {
  margin: 3rem 0;
}

.games-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  letter-spacing: 1px;
}

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

.game-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: none;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.game-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25);
}

.game-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.game-card p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  font-size: 1rem;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn.secondary {
  background: #6b7280;
}

.btn.secondary:hover {
  background: #4b5563;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn.danger {
  background: var(--danger);
}

.btn.success {
  background: var(--success);
}

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

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

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

.close {
  color: #999;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: #000;
}

/* Auth Form */
.auth-form h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

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

.auth-form input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-form button {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Notifications */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  max-width: 400px;
}

.notification {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--primary);
  animation: slideInRight 0.3s ease-out;
}

.notification.success {
  border-left-color: var(--success);
}

.notification.error {
  border-left-color: var(--danger);
}

.notification.warning {
  border-left-color: var(--warning);
}

.notification.fade-out {
  animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* Game Pages */
.game-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.game-header h1 {
  color: var(--primary);
  font-size: 1.8rem;
}

.game-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 1rem;
  background: var(--light);
  border-radius: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Bet Chips Styling */
.bet-chip {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid;
  border-radius: 8px;
  background: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-size: 0.95rem;
}

.bet-chip:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bet-chip:active {
  transform: scale(0.95);
}

/* Multiplayer Lobby */
.lobby-container {
  text-align: center;
}

.lobby-players {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.player {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  min-width: 150px;
}

.player.ready {
  background: #d1fae5;
  border: 2px solid var(--success);
}

.waiting {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.spinner {
  border: 4px solid var(--light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .auth-buttons {
    justify-content: center;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    margin: 0;
  }

  .modal-content {
    width: 95%;
    margin: 20% auto;
  }

  .games-section h2 {
    font-size: 1.5rem;
  }

  .game-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .lobby-players {
    flex-direction: column;
  }
}

/* Multiplayer Server Section Styles */
.server-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
}

.server-controls {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.create-server-btn,
.refresh-servers-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-server-btn {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  flex: 1;
  min-width: 200px;
}

.create-server-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.refresh-servers-btn {
  background: var(--bg-dark-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.refresh-servers-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.servers-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.server-card {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.server-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.server-card.playing {
  border-left: 4px solid var(--accent-orange);
}

.server-card.waiting {
  border-left: 4px solid var(--accent-green);
}

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

.server-game {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.server-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.server-status.waiting {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.server-status.playing {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-orange);
}

.server-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.server-players,
.server-host {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-icon {
  font-size: 1rem;
}

.join-server-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.join-server-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.join-server-btn:disabled {
  background: var(--bg-dark);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

.no-servers-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-servers-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-servers-message h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.no-servers-message p {
  font-size: 1rem;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Better scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 10px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

/* Improved container scrolling */
.container-dark {
  overflow-y: visible;
  max-height: none;
}

/* Responsive adjustments for server section */
@media (max-width: 768px) {
  .server-section {
    padding: 1.25rem;
  }
  
  .servers-container {
    grid-template-columns: 1fr;
  }
  
  .server-controls {
    flex-direction: column;
  }
  
  .create-server-btn,
  .refresh-servers-btn {
    width: 100%;
    min-width: unset;
  }
}

/* ===== GAME CONTAINER (BOXED DISPLAY) ===== */

.game-container-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.95);
  z-index: 9999;
  padding: 2rem;
  overflow: auto;
}

.game-container-wrapper.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-container-box {
  width: 100%;
  max-width: 1000px;
  height: 80vh;
  background: var(--bg-dark-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.game-container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

#gameContainerTitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.game-container-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

#fullscreenToggleBtn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#fullscreenToggleBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

#fullscreenToggleBtn:active {
  transform: translateY(0);
}

.close-game-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-red), #c41e3a);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.close-game-btn:active {
  transform: translateY(0);
}

.game-iframe {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
}

/* Fullscreen Mode */
.game-container-wrapper:fullscreen .game-container-box {
  max-width: 100%;
  height: 100vh;
  border-radius: 0;
  padding: 0;
}

.game-container-wrapper:fullscreen .game-container-header {
  border-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .game-container-wrapper {
    padding: 1rem;
  }

  .game-container-box {
    height: 75vh;
  }

  .game-container-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  #gameContainerTitle {
    font-size: 1.2rem;
  }

  #fullscreenToggleBtn,
  .close-game-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .game-container-wrapper {
    padding: 0.5rem;
  }

  .game-container-box {
    height: 85vh;
    border-radius: 12px;
  }

  .game-container-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  #gameContainerTitle {
    font-size: 1.1rem;
    width: 100%;
  }

  .game-container-controls {
    width: 100%;
    gap: 0.5rem;
  }

  #fullscreenToggleBtn,
  .close-game-btn {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-height: 600px) {
  .game-container-box {
    height: 90vh;
  }
}

