:root {
  color-scheme: dark;
  --bg: radial-gradient(circle at top, #121826 0%, #050505 60%);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent: #63f5b5;
  --accent-strong: #2cf0ff;
  --text: #f4f7fb;
  --muted: #a0acc4;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 3vw, 4rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand img {
  width: clamp(52px, 10vw, 80px);
  height: clamp(52px, 10vw, 80px);
  filter: drop-shadow(0 0 22px rgba(99, 245, 181, 0.35));
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.08em;
}

.tagline {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

main {
  flex: 1;
  width: min(1200px, 92vw);
  margin: 0 auto 4rem;
}

.hero {
  background: linear-gradient(135deg, rgba(99, 245, 181, 0.12), rgba(44, 240, 255, 0.12));
  border: 1px solid var(--card-border);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero strong {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--accent-strong);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

.game-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease;
  overflow: hidden;
}

.game-card::after {
  content: '';
  position: absolute;
  inset: -40% -40% auto;
  height: 80%;
  background: radial-gradient(circle, rgba(44, 240, 255, 0.18), transparent 65%);
  transform: translateY(-60%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(99, 245, 181, 0.4);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.game-card:hover::after {
  opacity: 1;
}

.game-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.game-meta {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(99, 245, 181, 0.18);
  color: var(--accent-strong);
  font-weight: 600;
  border: 1px solid rgba(99, 245, 181, 0.35);
  transition: background 180ms ease, color 180ms ease;
}

.game-card:hover .cta {
  background: rgba(99, 245, 181, 0.35);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  .brand {
    flex-direction: column;
    text-align: center;
  }

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