:root {
  --bg-top: #1e1b4b;
  --bg-mid: #312e81;
  --bg-bottom: #0c4a6e;
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.16);
  --text: #eef2ff;
  --muted: #c7d2fe;
  --accent-pink: #f472b6;
  --accent-yellow: #fbbf24;
  --accent-cyan: #38bdf8;
  --accent-green: #34d399;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Baloo 2", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38rem 24rem at 12% -6%, rgba(167, 139, 250, 0.35), transparent 60%),
    radial-gradient(34rem 22rem at 88% 8%, rgba(56, 189, 248, 0.28), transparent 60%),
    radial-gradient(30rem 26rem at 50% 110%, rgba(244, 114, 182, 0.22), transparent 60%);
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
}

.brand-logo {
  height: 3rem;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.45));
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo { transform: scale(1.05) rotate(-1.5deg); }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5.5rem) 1rem 2.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 4px 24px rgba(139, 92, 246, 0.5);
}

.highlight {
  background: linear-gradient(90deg, #c4b5fd, #7dd3fc, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--muted);
}

/* ---------- Grid de jogos ---------- */
main { position: relative; z-index: 1; }

.games {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 3rem) 3rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  justify-items: center;
}

.game-card {
  width: 100%;
  max-width: 24rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}
.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 26px 55px rgba(139, 92, 246, 0.35);
}

.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.card-link { display: block; cursor: pointer; }
.card-link:focus-visible { outline: 3px solid var(--accent-yellow); outline-offset: -3px; }
.card-link .card-cover { transition: transform 0.4s ease, filter 0.3s ease; }
.card-link:hover .card-cover { transform: scale(1.06); filter: brightness(1.08); }
.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover .card-cover { transform: scale(1.06); }

.card-cover--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(199, 210, 254, 0.55);
  background:
    radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(49, 46, 129, 0.9), rgba(12, 74, 110, 0.9));
}

.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}
.badge--live { background: rgba(52, 211, 153, 0.25); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, 0.5); }
.badge--soon { background: rgba(251, 191, 36, 0.22); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.5); }

.card-body {
  padding: 1.1rem 1.3rem 1.4rem;
  text-align: center;
}

.card-title { margin: 0; font-size: 1.5rem; font-weight: 800; }
.card-tagline { margin: 0.25rem 0 1rem; color: var(--muted); font-size: 1rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn--play {
  color: #1e1b4b;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  box-shadow: 0 8px 22px rgba(251, 146, 60, 0.4);
}
.btn--play:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.06); }
.btn--soon {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}
.game-card--soon { opacity: 0.75; }

/* ---------- Sobre / rodapé ---------- */
.about {
  text-align: center;
  padding: 1rem 1rem 3rem;
  color: var(--muted);
}
.about h2 { color: var(--text); font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 0.5rem; }
.about p { margin: 0 auto; max-width: 36rem; font-size: 1.05rem; }

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.4rem 1rem 2rem;
  color: rgba(199, 210, 254, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 34rem) {
  .site-header { flex-direction: column; gap: 0.4rem; }
  .site-nav { gap: 0.8rem; }
}
