:root {
  --primary-color: #646cff;
  --primary-hover: #7d85ff;
  --bg-dark: #1a1a1a;
  --bg-darker: #0f0f0f;
  --bg-card: #242424;
  --text-light: #ffffff;
  --text-muted: #888;
  --border-color: #646cff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-darker);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  margin-bottom: 60px;
  padding: 20px 0;
}

header h1 {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -1px;
}

.tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 300;
}

main {
  flex: 1;
  margin-bottom: 60px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.game-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(100, 108, 255, 0.4);
  border-color: var(--primary-hover);
}

.game-card.coming-soon {
  border-style: dashed;
  opacity: 0.75;
  border-color: var(--text-muted);
}

.game-card.coming-soon:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(100, 108, 255, 0.2);
}

.game-icon {
  font-size: 5rem;
  margin-bottom: 10px;
  line-height: 1;
}

.game-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 700;
}

.game-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.game-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px 0;
}

.feature {
  background: rgba(100, 108, 255, 0.15);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(100, 108, 255, 0.3);
}

.game-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 108, 255, 0.4);
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(100, 108, 255, 0.15);
  transform: translateY(-2px);
}

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

footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  margin-top: auto;
}

footer p {
  margin: 8px 0;
  font-size: 0.95rem;
}

.footer-tagline {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

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

  .game-card {
    padding: 30px 25px;
  }

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

  .game-card h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 30px 15px;
  }

  header {
    margin-bottom: 40px;
  }

  header h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .game-features {
    flex-direction: column;
    gap: 8px;
  }

  .feature {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
