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

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

:root {
  --lavender: #a78bfa;
  --pink: #f472b6;
  --sky: #7dd3fc;
  --mint: #6ee7b7;
  --bg-main: #f0f0ff;
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-dark: rgba(255, 255, 255, 0.35);
  --text-dark: #1e1b4b;
  --text-mid: #4c4680;
  --text-light: #7c7aad;
  --border-glass: rgba(255, 255, 255, 0.5);
  --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 30%, #e0f2fe 60%, #d1fae5 100%);
  background-attachment: fixed;
  color: var(--text-dark); min-height: 100vh; line-height: 1.7;
}
a { color: var(--lavender); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pink); }

/* FLOATING BLOBS */
.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
  animation: float-blob 20s ease-in-out infinite;
}
.blob-1 { width: 400px; height: 400px; background: var(--lavender); top: -10%; left: -5%; }
.blob-2 { width: 350px; height: 350px; background: var(--pink); bottom: -10%; right: -5%; animation-delay: -7s; }
.blob-3 { width: 300px; height: 300px; background: var(--sky); top: 40%; right: 20%; animation-delay: -14s; }
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

main { position: relative; z-index: 1; }

/* NAV */
.glass-nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}
.glass-nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.5rem;
}
.brand-area { display: flex; align-items: center; gap: 0.6rem; }
.brand-area svg { width: 34px; height: 34px; }
.brand-label { font-weight: 700; font-size: 1.1rem; color: var(--text-dark); }
.nav-items { display: flex; gap: 1.5rem; list-style: none; }
.nav-items a { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.nav-items a:hover, .nav-items a.sel { color: var(--lavender); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 4px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s; }
.menu-toggle.on span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.on span:nth-child(2) { opacity: 0; }
.menu-toggle.on span:last-child { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-items {
    position: fixed; top: 56px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-glass);
    backdrop-filter: blur(16px); padding: 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--border-glass);
    transform: translateY(-120%); transition: transform 0.3s;
  }
  .nav-items.open { transform: translateY(0); }
}

/* HERO */
.aether-hero {
  padding: 8rem 1.5rem 4rem; text-align: center;
}
.aether-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 1.2rem; line-height: 1.15;
}
.aether-hero p { font-size: 1.1rem; color: var(--text-mid); max-width: 680px; margin: 0 auto 2rem; }
.gradient-btn {
  display: inline-block; padding: 0.8rem 2.2rem;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  color: #fff; font-weight: 600; border-radius: 50px;
  transition: all 0.3s; box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}
.gradient-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4); color: #fff; }

/* GLASS CARDS */
.glass-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
}
@media (max-width: 768px) { .glass-cards { grid-template-columns: 1fr; } }
.g-card {
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass); border-radius: 20px;
  padding: 2rem; text-align: center; box-shadow: var(--shadow-glass);
  transition: transform 0.3s;
}
.g-card:hover { transform: translateY(-4px); }
.g-card .gc-icon { font-size: 2.5rem; margin-bottom: 0.7rem; }
.g-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.g-card p { color: var(--text-light); font-size: 0.92rem; }

/* GAME */
.game-zone { max-width: 1300px; margin: 3rem auto; padding: 0 1.5rem; }
.game-zone h2 { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1.5rem; }
.game-glass {
  max-width: 960px; margin: 0 auto;
  background: var(--bg-glass); backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-glass);
}
.game-glass iframe { display: block; width: 100%; height: 620px; border: none; }
@media (max-width: 768px) { .game-glass iframe { height: 400px; } }

/* FEATURES */
.feat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 1300px; margin: 3rem auto; padding: 0 1.5rem;
}
.feat-item {
  background: var(--bg-glass); backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass); border-radius: 16px; padding: 1.5rem;
}
.feat-item h4 { font-weight: 600; margin-bottom: 0.3rem; }
.feat-item p { color: var(--text-light); font-size: 0.9rem; }

/* ABOUT */
.about-aether {
  max-width: 1300px; margin: 3rem auto; padding: 2.5rem 1.5rem; text-align: center;
}
.about-aether h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 1rem; }
.about-aether p { color: var(--text-mid); max-width: 800px; margin: 0 auto 1rem; }

/* CONTENT PAGE */
.page-body { max-width: 860px; margin: 0 auto; padding: 7rem 1.5rem 3rem; }
.page-body h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 1.3rem; }
.page-body h2 { font-size: 1.15rem; font-weight: 700; color: var(--lavender); margin: 1.8rem 0 0.6rem; }
.page-body p, .page-body li { color: var(--text-mid); margin-bottom: 0.7rem; font-size: 0.95rem; }
.page-body ul, .page-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* PLAY */
.play-stage { max-width: 1300px; margin: 0 auto; padding: 7rem 1.5rem 3rem; }
.play-stage h1 { text-align: center; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 0.8rem; }
.play-stage .pnote { text-align: center; color: var(--text-mid); max-width: 680px; margin: 0 auto 2rem; }

/* FOOTER */
.glass-footer {
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glass);
  padding: 2.5rem 1.5rem; margin-top: 4rem;
}
.gf-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.gf-col p { color: var(--text-light); font-size: 0.88rem; margin-top: 0.3rem; }
.gf-col h4 { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.7rem; }
.gf-col ul { list-style: none; }
.gf-col li { margin-bottom: 0.3rem; }
.gf-col a { color: var(--text-light); font-size: 0.88rem; }
.gf-col a:hover { color: var(--lavender); }
.gf-bottom { text-align: center; color: var(--text-light); font-size: 0.82rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-glass); }

/* AGE POPUP */
.age-blur {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(224, 231, 255, 0.7);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.age-blur.off { display: none; }
.age-glass {
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass); border-radius: 24px;
  padding: 2.5rem; text-align: center;
  max-width: 430px; width: 92%; box-shadow: var(--shadow-glass);
}
.age-glass .aicon { font-size: 3rem; margin-bottom: 0.8rem; }
.age-glass h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
.age-glass p { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 1.5rem; }
.age-flex { display: flex; gap: 0.8rem; justify-content: center; }
.age-yes {
  padding: 0.65rem 1.8rem;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  color: #fff; border: none; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.age-yes:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3); }
.age-no {
  padding: 0.65rem 1.8rem; background: #fff; color: var(--text-light);
  border: 1px solid #ddd; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.age-no:hover { border-color: #ef4444; color: #ef4444; }
