@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&display=swap');

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

:root {
  --ae-bg: #f8f9ff;
  --ae-white: #ffffff;
  --ae-indigo: #6366f1;
  --ae-purple: #8b5cf6;
  --ae-blue: #3b82f6;
  --ae-dark: #1e1b4b;
  --ae-text: #334155;
  --ae-muted: #64748b;
  --ae-light: #e0e7ff;
  --ae-glow: rgba(99,102,241,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--ae-bg);
  color: var(--ae-text);
  line-height: 1.7;
  font-weight: 400;
}

/* HEADER */
.ae-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(248,249,255,0.9);
  backdrop-filter: blur(16px);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  border-bottom: 1px solid var(--ae-light);
}

.ae-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ae-indigo);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.ae-nav { display: flex; list-style: none; gap: 2rem; }

.ae-nav a {
  color: var(--ae-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}

.ae-nav a:hover, .ae-nav a.on { color: var(--ae-indigo); }

.ae-ham {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 4px;
}

.ae-ham span { display: block; width: 22px; height: 2px; background: var(--ae-indigo); transition: 0.3s; }
.ae-ham.open span:first-child { transform: rotate(45deg) translate(4px,4px); }
.ae-ham.open span:nth-child(2) { opacity: 0; }
.ae-ham.open span:last-child { transform: rotate(-45deg) translate(4px,-4px); }

/* HERO */
.ae-hero {
  margin-top: 60px;
  padding: 7rem 3rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--ae-white), var(--ae-bg));
}

.ae-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--ae-dark);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.ae-hero h1 span {
  background: linear-gradient(135deg, var(--ae-indigo), var(--ae-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ae-hero p { color: var(--ae-muted); font-size: 1.1rem; max-width: 580px; margin: 0 auto 2.5rem; }

.ae-btn {
  display: inline-block;
  padding: 13px 36px;
  background: var(--ae-indigo);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}

.ae-btn:hover { background: var(--ae-purple); transform: translateY(-2px); }

/* CHIPS */
.ae-chips {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 3rem;
  background: var(--ae-white);
  border-bottom: 1px solid var(--ae-light);
  flex-wrap: wrap;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--ae-glow);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ae-indigo);
}

.chip .ic { font-size: 1.1rem; }

/* GAME */
.ae-game {
  padding: 5rem 3rem;
  text-align: center;
}

.ae-game h2 { font-size: 2rem; font-weight: 700; color: var(--ae-dark); margin-bottom: 0.8rem; }
.ae-game .sub { color: var(--ae-muted); margin-bottom: 2rem; }

.ae-frame {
  width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(99,102,241,0.12);
  background: var(--ae-dark);
}

.ae-frame iframe { width: 100%; height: 100%; border: none; }

/* CARDS */
.ae-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 4rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ae-card {
  background: var(--ae-white);
  border: 1px solid var(--ae-light);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.ae-card:hover {
  box-shadow: 0 8px 30px rgba(99,102,241,0.1);
  transform: translateY(-3px);
}

.ae-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ae-indigo); margin-bottom: 0.7rem; }
.ae-card p { color: var(--ae-muted); font-size: 0.92rem; }

/* ABOUT */
.ae-about {
  padding: 4rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ae-about h2 { font-size: 2rem; font-weight: 700; color: var(--ae-dark); margin-bottom: 1.2rem; }
.ae-about p { color: var(--ae-muted); margin-bottom: 1rem; }

/* INNER PAGE */
.ae-page { max-width: 800px; margin: 0 auto; padding: 100px 2rem 60px; }
.ae-page h1 { font-size: 2.4rem; font-weight: 800; color: var(--ae-dark); margin-bottom: 1.5rem; }
.ae-page h2 { font-size: 1.2rem; font-weight: 700; color: var(--ae-indigo); margin: 2rem 0 0.8rem; }
.ae-page p { margin-bottom: 1rem; }
.ae-page ul { margin: 1rem 0 1rem 1.5rem; }
.ae-page li { margin-bottom: 0.5rem; }

/* PLAY */
.ae-play { padding: 100px 3rem 60px; text-align: center; }
.ae-play h1 { font-size: 2.2rem; font-weight: 800; color: var(--ae-dark); margin-bottom: 1rem; }
.ae-play .note { color: var(--ae-muted); max-width: 580px; margin: 0 auto 2rem; }

.ae-play-frame {
  width: 100%; max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(99,102,241,0.12);
  background: var(--ae-dark);
}

.ae-play-frame iframe { width: 100%; height: 100%; border: none; }

/* FOOTER */
.ae-footer {
  padding: 3rem;
  background: var(--ae-dark);
  text-align: center;
  color: #94a3b8;
}

.af-nav { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.af-nav a { color: #94a3b8; text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.af-nav a:hover { color: #fff; }

.af-resp { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.af-resp p { font-size: 0.82rem; margin-bottom: 0.5rem; }
.af-resp a { color: var(--ae-light); text-decoration: none; margin: 0 0.7rem; font-size: 0.82rem; }
.af-resp a:hover { color: #fff; }

.af-copy { margin-top: 1.2rem; font-size: 0.78rem; }

/* AGE */
.ae-gate {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(30,27,75,0.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}

.ae-age-box {
  background: var(--ae-white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 410px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ae-age-box h2 { font-weight: 700; font-size: 1.5rem; color: var(--ae-dark); margin-bottom: 0.8rem; }
.ae-age-box p { color: var(--ae-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.ae-age-btns { display: flex; gap: 1rem; justify-content: center; }

.a-yes {
  padding: 11px 28px;
  background: var(--ae-indigo);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.a-no {
  padding: 11px 28px;
  background: transparent;
  border: 1px solid var(--ae-muted);
  color: var(--ae-muted);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 0.9rem;
  cursor: pointer;
}

.a-yes:hover { background: var(--ae-purple); }
.a-denied { color: #ef4444; font-weight: 600; margin-top: 1rem; display: none; font-size: 0.9rem; }

@media (max-width: 900px) {
  .ae-cards { grid-template-columns: 1fr; }
  .ae-hero h1 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
  .ae-ham { display: flex; }
  .ae-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; width: 100%;
    background: rgba(248,249,255,0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0.8rem;
    border-bottom: 1px solid var(--ae-light);
  }
  .ae-nav.show { display: flex; }
  .ae-page { padding: 90px 1.2rem 40px; }
  .ae-play { padding: 90px 1.2rem 40px; }
  .ae-game { padding: 3rem 1.2rem; }
  .ae-chips { padding: 1.5rem 1rem; }
}
