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

body {
  background: #202124;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e8eaed;
}

.homepage {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.site-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  background: linear-gradient(90deg, #ef5350, #ff9800, #ffeb3b, #4caf50, #42a5f5, #7e57c2, #ef5350);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 6s linear infinite;
  margin-bottom: 44px;
}

@keyframes rainbow-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: #292a2d;
  border-radius: 16px;
  text-decoration: none;
  color: #e8eaed;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

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

.game-card.disabled {
  cursor: default;
  opacity: 0.5;
}

.game-card.disabled:hover {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.game-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.game-icon svg {
  width: 100%;
  height: 100%;
}

.game-info h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
}

.game-info p {
  font-size: 14px;
  color: #9aa0a6;
}

.badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 20px;
}

@media (max-width: 640px) {
  .homepage {
    padding: 36px 16px 60px;
  }

  .site-title {
    font-size: 36px;
  }

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