:root {
  --bg: #05060a;
  --panel: #10121a;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef0f6;
  --muted: #9aa0b4;
  --spark-yellow: #fae45b;
  --spark-red: #e53b44;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.site-header, .hero, .games, footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
}
.logo span {
  color: var(--spark-yellow);
  font-weight: 400;
  margin-left: 0.4rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
nav a:hover { color: var(--spark-yellow); }

.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #fff 30%, var(--spark-yellow) 70%, var(--spark-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.cta {
  color: var(--bg);
  background: var(--spark-yellow);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 24px rgba(250, 228, 91, 0.25);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(250, 228, 91, 0.45);
}

.games {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.games h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

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

.game-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--spark-yellow);
}

.game-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.embed-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.embed-wrap iframe {
  display: block;
}

.game-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
}

.play-link {
  color: var(--spark-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.play-link:hover { color: var(--spark-yellow); }

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--panel-border);
}
footer a {
  color: var(--spark-yellow);
  text-decoration: none;
}
