* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #e8e8e8;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.index-container {
  max-width: 720px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e8e8e8;
}

.subtitle {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  opacity: 0.8;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.game-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.game-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.game-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.game-card p {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  opacity: 0.75;
  text-align: center;
  line-height: 1.3;
}
