:root {
  color-scheme: light;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-gradient: linear-gradient(135deg, #fdf4f5 0%, #f6f1ff 35%, #f0fbff 100%);
  --panel-bg: rgba(255, 255, 255, 0.75);
  --panel-border: rgba(148, 121, 183, 0.35);
  --text-primary: #413659;
  --text-muted: rgba(65, 54, 89, 0.7);
  --accent: #8b7cd6;
  --accent-strong: #f29ab2;
  --accent-secondary: #f29ab2;
  --accent-soft: rgba(139, 124, 214, 0.16);
  --accent-glow: rgba(139, 124, 214, 0.18);
  --accent-border: rgba(139, 124, 214, 0.4);
  --accent-highlight: rgba(139, 124, 214, 0.2);
  --shadow: 0 25px 45px rgba(122, 108, 177, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text-primary);
  background: var(--bg-gradient);
  position: relative;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  background-attachment: fixed;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

main {
  max-width: 1000px;
  width: 100%;
  border-radius: 28px;
  background: rgba(249, 245, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  padding: 48px 40px;
  position: relative;
}

.menu-header {
  text-align: center;
  margin-bottom: 48px;
}

.logo-script {
  font-family: "Pacifico", cursive;
  font-size: 2.5rem;
  color: var(--accent-secondary);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--panel-bg);
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
  box-shadow: 0 15px 25px rgba(122, 108, 177, 0.08);
}

.game-card:hover:not(.coming-soon),
.game-card:focus-visible:not(.coming-soon) {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px var(--accent-glow);
  border-color: var(--accent-border);
  outline: none;
}

.game-card.coming-soon {
  cursor: default;
  opacity: 0.65;
}

.game-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(139, 124, 214, 0.15));
}

.game-name {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.game-description {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.game-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--accent-soft));
  border-radius: 12px;
  border: 1px solid var(--accent-border);
}

.score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-value {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
}

.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  main {
    padding: 32px 24px;
  }

  .logo-script {
    font-size: 2rem;
  }

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

  .game-card {
    padding: 28px 20px;
  }

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

