@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --indigo: #4f46e5;
  --pink: #ec4899;
  --galaxy: #0f0524;
  --deep: #1a0a3e;
  --card: rgba(79,70,229,0.08);
  --glass: rgba(255,255,255,0.06);
  --text: #d4d0f0;
  --muted: #9390b8;
  --white: #f5f3ff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Space Grotesk', sans-serif; background: var(--galaxy); color: var(--text); line-height: 1.75; overflow-x: hidden; }
h1, h2, h3 { font-weight: 700; }
a { color: var(--pink); text-decoration: none; transition: 0.3s; }
a:hover { color: #fff; }

.a-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(15,5,36,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79,70,229,0.2);
}
.a-bar .a-brand { font-weight: 700; font-size: 1.2rem; background: linear-gradient(135deg, var(--indigo), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.a-bar .a-nav { display: flex; gap: 1.6rem; list-style: none; }
.a-bar .a-nav a { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.a-bar .a-nav a:hover, .a-bar .a-nav a.active { color: var(--white); }

.a-ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.a-ham span { width: 24px; height: 2px; background: var(--pink); transition: 0.3s; }
.a-ham.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.a-ham.open span:nth-child(2) { opacity: 0; }
.a-ham.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media(max-width:768px) {
  .a-ham { display: flex; }
  .a-bar .a-nav {
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(15,5,36,0.97);
    flex-direction: column; padding: 1.5rem 2rem;
    transform: translateY(-120%); transition: 0.35s;
  }
  .a-bar .a-nav.open { transform: translateY(0); }
}

.a-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 2rem 4rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(79,70,229,0.2), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(236,72,153,0.12), transparent 50%),
    var(--galaxy);
}
.a-hero-box { max-width: 720px; }
.a-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--white); margin-bottom: 1rem; }
.a-hero h1 span { background: linear-gradient(135deg, var(--indigo), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.a-hero p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

.a-btn {
  display: inline-block; padding: 0.85rem 2.2rem;
  background: linear-gradient(135deg, var(--indigo), var(--pink));
  color: #fff; font-weight: 700; font-size: 0.85rem;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 1px;
  transition: 0.3s; border: none; cursor: pointer;
}
.a-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(236,72,153,0.3); color: #fff; }
.a-btn-line { background: transparent; border: 2px solid var(--pink); color: var(--pink); }
.a-btn-line:hover { background: var(--pink); color: #fff; }

.a-glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

.a-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; padding: 4rem 2rem; max-width: 1100px; margin: 0 auto;
}
@media(max-width:768px) { .a-tiles { grid-template-columns: 1fr; } }
.a-tile { padding: 2.5rem 2rem; text-align: center; }
.a-tile .ico { font-size: 2.4rem; margin-bottom: 0.7rem; }
.a-tile h3 { font-size: 0.95rem; color: var(--pink); margin-bottom: 0.5rem; }
.a-tile p { font-size: 0.9rem; color: var(--muted); }

.a-game-area { padding: 4rem 2rem; text-align: center; max-width: 1100px; margin: 0 auto; }
.a-game-area h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--white); margin-bottom: 1.5rem; }
.a-game-frame {
  width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16/10; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(79,70,229,0.3);
  box-shadow: 0 0 60px rgba(79,70,229,0.15);
}
.a-game-frame iframe { width: 100%; height: 100%; border: none; }

.a-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; padding: 4rem 2rem; max-width: 1100px; margin: 0 auto;
}
@media(max-width:768px) { .a-grid { grid-template-columns: 1fr; } }
.a-grid-item { padding: 2rem; }
.a-grid-item h3 { color: var(--pink); font-size: 0.95rem; margin-bottom: 0.6rem; }
.a-grid-item p { color: var(--muted); font-size: 0.93rem; }

.a-prose { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; }
.a-prose h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1rem; color: var(--white); }
.a-prose p, .a-prose li { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.a-prose ul { padding-left: 1.5rem; }

.a-pg-head { padding: 120px 2rem 3rem; text-align: center; }
.a-pg-head h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); color: var(--white); }

.a-foot {
  margin-top: 4rem; padding: 2.5rem 2rem;
  border-top: 1px solid rgba(79,70,229,0.15);
  text-align: center;
}
.a-foot .fl { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.8rem; }
.a-foot .fl a { color: var(--muted); font-size: 0.85rem; }
.a-foot p { color: rgba(147,144,184,0.5); font-size: 0.78rem; }

.a-age-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,5,36,0.95);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.a-age-card { padding: 3rem 2.5rem; text-align: center; max-width: 430px; width: 90%; }
.a-age-card h2 { font-size: 1.4rem; color: var(--white); margin-bottom: 0.8rem; }
.a-age-card p { color: var(--muted); margin-bottom: 2rem; }
.a-age-acts { display: flex; gap: 1rem; justify-content: center; }
.a-age-acts .a-btn { min-width: 120px; }
.a-age-overlay.hidden { display: none; }
