@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --mystic: #a855f7;
  --violet: #7c3aed;
  --rose: #ec4899;
  --dark-bg: #110820;
  --card-bg: #1a0f2e;
  --parchment: #e8d5f5;
  --faded: #9b8ab8;
  --glow: rgba(168,85,247,0.2);
}

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

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--dark-bg);
  color: var(--parchment);
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.08) 0%, transparent 60%);
  z-index: -1;
}

.ae-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(17,8,32,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168,85,247,0.12);
}

.ae-nav { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; }
.ae-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ae-brand svg { width: 36px; height: 36px; }
.ae-brand span { font-family: 'Cinzel', serif; font-weight: 800; font-size: 1.4rem; color: var(--mystic); letter-spacing: 2px; }

.ae-links ul { list-style: none; display: flex; gap: 2rem; }
.ae-links a { color: var(--faded); text-decoration: none; font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: color 0.25s; }
.ae-links a:hover, .ae-links a.glow { color: var(--mystic); }

.ae-hb { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.ae-hb span { width: 26px; height: 2px; background: var(--mystic); transition: 0.3s; }
.ae-hb.on span:first-child { transform: rotate(45deg) translate(5px,5px); }
.ae-hb.on span:nth-child(2) { opacity: 0; }
.ae-hb.on span:last-child { transform: rotate(-45deg) translate(5px,-5px); }

/* Hero */
.enchant-hero {
  text-align: center; padding: 7rem 2rem 5rem;
  background: linear-gradient(180deg, var(--dark-bg), #1a0f2e, var(--dark-bg));
}

.enchant-hero h1 {
  font-family: 'Cinzel', serif; font-size: 3rem; font-weight: 800;
  color: var(--parchment); margin-bottom: 1.5rem;
  text-shadow: 0 0 30px var(--glow);
}

.enchant-hero p { max-width: 680px; margin: 0 auto 2.5rem; color: var(--faded); font-size: 1.15rem; }

.mystic-btn {
  display: inline-block; padding: 14px 44px;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  color: #fff; text-decoration: none; border-radius: 50px;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 1px; transition: 0.3s;
  box-shadow: 0 4px 20px var(--glow);
}

.mystic-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); }

/* Triple */
.enchant-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 1400px; margin: 0 auto; padding: 3rem 2rem;
}

.ec { background: var(--card-bg); border: 1px solid rgba(168,85,247,0.1); border-radius: 16px; padding: 2.5rem; text-align: center; transition: border-color 0.3s; }
.ec:hover { border-color: var(--mystic); }
.ec .ec-i { font-size: 2.5rem; margin-bottom: 0.8rem; }
.ec h3 { font-family: 'Cinzel', serif; color: var(--mystic); font-size: 1rem; margin-bottom: 0.6rem; }
.ec p { color: var(--faded); font-size: 0.95rem; }

/* Game */
.spell-game { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; text-align: center; }
.spell-game h2 { font-family: 'Cinzel', serif; font-size: 2rem; color: var(--mystic); margin-bottom: 2rem; }
.sg-frame { width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 2px solid rgba(168,85,247,0.2); box-shadow: 0 0 40px var(--glow); }
.sg-frame iframe { width: 100%; height: 100%; border: none; }

/* Two col */
.mystic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; }
.mg-item { background: var(--card-bg); border-radius: 16px; padding: 2.5rem; border: 1px solid rgba(168,85,247,0.08); }
.mg-item h3 { font-family: 'Cinzel', serif; color: var(--rose); margin-bottom: 0.7rem; }
.mg-item p { color: var(--faded); font-size: 0.95rem; }

/* Stats */
.enchant-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 1400px; margin: 0 auto; padding: 2rem; }
.es { background: var(--card-bg); border-radius: 12px; padding: 1.5rem; text-align: center; border: 1px solid rgba(168,85,247,0.08); }
.es .esv { font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 800; color: var(--mystic); }
.es .esl { color: var(--faded); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }

/* Content page */
.arcane-text { max-width: 960px; margin: 0 auto; padding: 4rem 2rem; }
.arcane-text h1 { font-family: 'Cinzel', serif; font-size: 2.4rem; color: var(--mystic); margin-bottom: 1.5rem; }
.arcane-text h2 { font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--rose); margin: 2rem 0 0.7rem; }
.arcane-text p { color: var(--faded); margin-bottom: 1rem; }
.arcane-text ul { color: var(--faded); margin: 0.5rem 0 1rem 1.5rem; }

.play-enchant { text-align: center; padding: 3rem 2rem 1rem; }
.play-enchant h1 { font-family: 'Cinzel', serif; font-size: 2.4rem; color: var(--mystic); margin-bottom: 1rem; }
.play-scroll { max-width: 800px; margin: 0 auto 2rem; background: var(--card-bg); border-radius: 12px; padding: 1.2rem; border: 1px solid rgba(168,85,247,0.1); }
.play-scroll p { color: var(--faded); font-size: 0.95rem; }

/* Footer */
.ae-footer { background: var(--card-bg); border-top: 1px solid rgba(168,85,247,0.1); padding: 2.5rem; text-align: center; }
.aef-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.aef-links a { color: var(--faded); text-decoration: none; font-size: 0.82rem; font-family: 'Cinzel', serif; transition: color 0.25s; }
.aef-links a:hover { color: var(--mystic); }
.aef-rg { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(168,85,247,0.08); }
.aef-rg p { color: var(--faded); font-size: 0.78rem; margin-bottom: 0.4rem; }
.aef-rg a { color: var(--mystic); text-decoration: none; margin: 0 0.6rem; font-size: 0.78rem; }
.aef-rg a:hover { text-decoration: underline; }
.aef-copy { margin-top: 1rem; color: var(--faded); font-size: 0.7rem; opacity: 0.5; }

/* Age */
.age-mist { position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.age-orb { background: var(--card-bg); border: 2px solid var(--mystic); border-radius: 20px; padding: 2.5rem; text-align: center; max-width: 450px; width: 90%; box-shadow: 0 0 50px var(--glow); }
.age-orb h2 { font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--mystic); margin-bottom: 0.8rem; }
.age-orb p { color: var(--faded); margin-bottom: 1.8rem; }
.age-choice { display: flex; gap: 1rem; justify-content: center; }
.age-choice button { padding: 11px 34px; border: none; border-radius: 50px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: 0.25s; }
.ac-yes { background: linear-gradient(135deg, var(--violet), var(--rose)); color: #fff; }
.ac-yes:hover { box-shadow: 0 0 20px var(--glow); }
.ac-no { background: transparent; border: 2px solid var(--faded) !important; color: var(--faded); }
.ac-no:hover { border-color: #ef4444 !important; color: #ef4444; }

@media (max-width: 768px) {
  .ae-hb { display: flex; }
  .ae-links ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(17,8,32,0.98); padding: 1rem 0; }
  .ae-links ul.open { display: flex; }
  .ae-links li { text-align: center; padding: 0.7rem 0; }
  .ae-nav { position: relative; }
  .enchant-hero h1 { font-size: 2rem; }
  .enchant-cards { grid-template-columns: 1fr; }
  .mystic-grid { grid-template-columns: 1fr; }
  .enchant-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .enchant-hero h1 { font-size: 1.6rem; } .enchant-stats { grid-template-columns: 1fr; } }
