/* ═══════════════════════════════════════════════════════════
   ENNA MAI — base.css
   "the path of the lost child ends here"
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;
  background: #07080c;
  color: #c2c8d8;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23b094d0' opacity='0.9'%3E%3Crect x='9' y='0' width='2' height='20'/%3E%3Crect x='4' y='7' width='12' height='2'/%3E%3C/svg%3E") 10 10, crosshair;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── CSS VARIABLES ── */
:root {
  /* backgrounds */
  --bg:          #07080c;
  --bg-2:        #0d0e15;
  --bg-card:     rgba(12, 13, 22, 0.85);
  --bg-card-h:   rgba(17, 18, 30, 0.92);
  --bg-input:    rgba(10, 11, 18, 0.80);

  /* borders */
  --border:      rgba(100, 80, 140, 0.28);
  --border-h:    rgba(176, 148, 208, 0.55);
  --border-faint:rgba(70, 60, 100, 0.18);

  /* text */
  --text:        #c2c8d8;
  --text-soft:   rgba(170, 178, 205, 0.85);
  --text-muted:  rgba(120, 128, 160, 0.65);
  --text-faint:  rgba(80, 88, 115, 0.50);
  --text-bright: rgba(220, 225, 240, 0.95);

  /* accents — orb colors */
  --lilac:       #b094d0;   /* fear / entities / magic */
  --lilac-soft:  rgba(176, 148, 208, 0.15);
  --lilac-glow:  rgba(176, 148, 208, 0.30);
  --pink:        #d4a0b8;   /* joy / rare warmth */
  --pink-soft:   rgba(212, 160, 184, 0.15);

  /* nature accents */
  --green:       #7aab85;   /* plants she tries to grow */
  --green-soft:  rgba(122, 171, 133, 0.15);
  --gold:        #c4a46a;   /* small found objects */
  --gold-soft:   rgba(196, 164, 106, 0.15);

  /* glows */
  --glow-sm:  0 0 12px rgba(176, 148, 208, 0.15);
  --glow-md:  0 0 24px rgba(176, 148, 208, 0.20), 0 0 48px rgba(176, 148, 208, 0.08);
  --glow-lg:  0 0 40px rgba(176, 148, 208, 0.25), 0 0 80px rgba(176, 148, 208, 0.10);

  /* spacing */
  --gap:    14px;
  --radius: 0px; /* flat, Y2K-adjacent */

  /* transitions */
  --ease: 0.28s ease;
}

/* ── ANIMATIONS ── */

@keyframes fogDrift {
  0%   { transform: translateX(0) translateY(0) scale(1);   opacity: 0.18; }
  33%  { transform: translateX(30px) translateY(-15px) scale(1.05); opacity: 0.28; }
  66%  { transform: translateX(-20px) translateY(10px) scale(0.97); opacity: 0.22; }
  100% { transform: translateX(0) translateY(0) scale(1);   opacity: 0.18; }
}
@keyframes fogDrift2 {
  0%   { transform: translateX(0) scale(1.1);   opacity: 0.12; }
  50%  { transform: translateX(-40px) scale(1); opacity: 0.20; }
  100% { transform: translateX(0) scale(1.1);   opacity: 0.12; }
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-6px); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg);   }
  50%       { opacity: 1; transform: scale(1)   rotate(180deg); }
}
@keyframes teruSway {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate( 4deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes glitchX {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-2px); }
  40%  { transform: translateX(2px);  }
  60%  { transform: translateX(-1px); }
  80%  { transform: translateX(1px);  }
}

/* ── FOG LAYERS (fixed background) ── */
.fog-layer {
  position: fixed;
  inset: -20% -30%;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}
.fog-1 {
  background: radial-gradient(ellipse 70% 55% at 30% 40%,
    rgba(100, 80, 150, 0.18) 0%, transparent 65%);
  animation: fogDrift 32s ease-in-out infinite;
}
.fog-2 {
  background: radial-gradient(ellipse 60% 45% at 75% 65%,
    rgba(80, 100, 160, 0.14) 0%, transparent 60%);
  animation: fogDrift2 40s ease-in-out infinite;
}
.fog-3 {
  background: radial-gradient(ellipse 50% 40% at 55% 20%,
    rgba(120, 90, 160, 0.10) 0%, transparent 55%);
  animation: fogDrift 52s ease-in-out infinite reverse;
}

/* ── PAGE WRAPPER ── */
.site-bg {
  position: relative;
  min-height: 100vh;
  background:
    url('https://myoshi-c.jinxxy-cdn.com/backgrounds/user_01kjtay5vgeh0svxy07ya5b2n8/7904a95d-3116-47b1-a50b-35b728fd7683.jpg')
    center top / cover fixed;
}
.site-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%,
    transparent 20%, rgba(4, 5, 10, 0.82) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── CONTAINER ── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--narrow { max-width: 760px; }
.wrap--wide   { max-width: 1280px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  line-height: 1.3;
}
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(18px, 3vw, 26px); letter-spacing: 0.12em; }
h3 { font-size: clamp(14px, 2vw, 18px); letter-spacing: 0.10em; }
h4 { font-size: 13px; letter-spacing: 0.20em; text-transform: uppercase; }

p {
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
}
p + p { margin-top: 0.9em; }

.mono {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ── DECORATIVE DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--text-faint);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(176, 148, 208, 0.20) 40%,
    rgba(176, 148, 208, 0.20) 60%,
    transparent);
}
.divider--crow::before { content: '🐦‍⬛'; flex: none; width: auto; height: auto; background: none; }
.divider--crow::after  { content: '🐦‍⬛'; flex: none; width: auto; height: auto; background: none; }

/* ── GLOW TEXT ── */
.glow-lilac {
  text-shadow:
    0 0 16px rgba(176, 148, 208, 0.55),
    0 0 40px rgba(176, 148, 208, 0.25);
}
.glow-soft {
  text-shadow:
    0 0 20px rgba(176, 148, 208, 0.35),
    0 0 50px rgba(176, 148, 208, 0.12);
}

/* ── TERU TERU BOZU (decorative) ── */
.teru {
  display: inline-block;
  width: 18px; height: 24px;
  position: relative;
  animation: teruSway 3s ease-in-out infinite;
  transform-origin: top center;
  opacity: 0.55;
}
.teru::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: rgba(200, 195, 220, 0.70);
  border-radius: 50%;
}
.teru::after {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 14px;
  background: rgba(200, 195, 220, 0.70);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

/* ── SPARKLE ── */
.sparkle {
  display: inline-block;
  animation: sparkle var(--dur, 2.4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  color: var(--lilac);
  font-size: 10px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 8px 22px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  transition: all var(--ease);
  border: 1px solid var(--border);
  background: rgba(100, 80, 140, 0.08);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lilac-soft);
  opacity: 0;
  transition: opacity var(--ease);
}
.btn:hover {
  border-color: var(--border-h);
  color: var(--text-bright);
  box-shadow: var(--glow-sm);
}
.btn:hover::after { opacity: 1; }

.btn--accent {
  border-color: var(--border-h);
  color: var(--lilac);
  background: var(--lilac-soft);
}
.btn--accent:hover {
  box-shadow: var(--glow-md);
  color: var(--text-bright);
}
