:root { --teal:#289A99; --orchid:#8B2A8A; --plum:#642966; --lagoon:#276666; --astral:#2A00FF; --ink:#0B0716; --mist:#F4F0FF; }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--mist); font-family: 'Cormorant Garamond', serif; font-size: 17px;
  background: linear-gradient(130deg, #0B0716, #3a1640, #163c3c, #0B0716); background-size: 400% 400%;
  animation: drift 30s ease infinite; min-height: 100vh; overflow-x: hidden;
}
#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cinzel { font-family: 'Cinzel', serif; }
.mono { font-family: 'JetBrains Mono', monospace; }
@keyframes drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.title {
  letter-spacing: .12em; background: linear-gradient(90deg, var(--teal), var(--orchid), var(--astral), var(--teal));
  background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite; filter: drop-shadow(0 0 18px #2A00FF66);
}
@keyframes shimmer { to { background-position: 300% center; } }
.glow-text { text-shadow: 0 0 12px #289A9988; }
.halo {
  position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  border: 1px dashed #289A9944; box-shadow: 0 0 80px #8B2A8A33 inset; animation: spin 80s linear infinite;
}
.helmet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .08; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-50%, -56%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { display: flex; align-items: center; gap: 14px; max-width: 420px; margin-left: auto; margin-right: auto; color: var(--teal); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); }
.card {
  background: rgba(100,41,102,.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(40,154,153,.3); border-radius: 20px; box-shadow: 0 0 30px #2A00FF22, 0 0 60px #8B2A8A1a;
  animation: rise .9s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.dropzone { border: 2px dashed var(--teal); animation: breatheBorder 4s ease-in-out infinite; transition: .3s; background: rgba(11,7,22,.3); }
.dropzone.drag { background: rgba(40,154,153,.15); transform: scale(1.01); }
@keyframes breatheBorder { 50% { border-color: #8B2A8A; box-shadow: 0 0 30px #289A9944 inset; } }
.reel { display: inline-block; animation: float2 5s ease-in-out infinite; filter: drop-shadow(0 0 12px #289A99); }
@keyframes float2 { 50% { transform: translateY(-8px) rotate(8deg); } }
.thumbglow { box-shadow: 0 0 24px #289A9966; }
.astral-btn {
  font-family: 'Cinzel', serif; letter-spacing: .15em; padding: 14px 30px; border-radius: 999px; color: #fff;
  background: radial-gradient(circle at 30% 20%, #6b4dff, var(--astral)); box-shadow: 0 0 30px #2A00FF66; transition: .3s;
}
.astral-btn:hover { transform: translateY(-2px); box-shadow: 0 0 45px #2A00FFaa, 0 0 70px #8B2A8A55; }
.ghost-btn { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: .1em; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(40,154,153,.5); background: rgba(39,102,102,.25); transition: .3s; }
.ghost-btn:hover { background: rgba(40,154,153,.35); box-shadow: 0 0 20px #289A9955; }
button:disabled { opacity: .45; cursor: not-allowed; }
.breathe { animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 55px #2A00FFcc, 0 0 90px #8B2A8A66; } }
.bar { height: 12px; border-radius: 99px; background: rgba(11,7,22,.6); overflow: hidden; border: 1px solid #27666688; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--astral), var(--orchid), var(--teal)); background-size: 300% 100%; animation: shimmer 2.5s linear infinite; transition: width .3s; box-shadow: 0 0 14px var(--astral); }
.wavebox { background: rgba(11,7,22,.55); border: 1px solid #27666688; }
.seg { border: 1px solid; background: rgba(11,7,22,.4); }
.vignette { -webkit-mask-image: radial-gradient(ellipse, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse, #000 55%, transparent 100%); }
.stat { background: rgba(39,102,102,.25); border: 1px solid #27666688; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 12px; color: #fff; transition: .25s; }
.chip:hover { transform: translateY(-2px); }
.select { background: rgba(11,7,22,.6); border: 1px solid var(--teal); border-radius: 999px; padding: 6px 14px; color: var(--mist); font-family: 'Cinzel', serif; font-size: 13px; }
input[type=range] { accent-color: var(--teal); }
.orb { transition: transform .35s ease-out, box-shadow .5s ease-out, opacity .6s; cursor: pointer; }
.ascend-wrap { position: relative; display: inline-block; padding: 14px; border-radius: 50%; }
.ascend-wrap::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--teal), var(--astral), var(--orchid), var(--teal)); animation: spin 6s linear infinite; filter: blur(3px); }
.ascend {
  position: relative; width: 190px; height: 190px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 30%, #5a3dff, var(--astral) 45%, var(--orchid)); color: #fff; font-size: 22px; letter-spacing: .2em;
  box-shadow: 0 0 40px #2A00FF88; transition: .4s;
}
.ascend:hover { transform: translateY(-6px); box-shadow: 0 0 70px #2A00FFcc, 0 0 110px #8B2A8A88; }
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(11,7,22,.6); backdrop-filter: blur(16px); }
.spin-helm { display: inline-block; animation: spin 4s linear infinite; opacity: .7; filter: drop-shadow(0 0 20px #2A00FF); }
.player { box-shadow: 0 0 40px #2A00FF44, 0 0 0 1px #289A9955; }
.scrub { height: 8px; border-radius: 99px; background: rgba(244,240,255,.1); cursor: pointer; overflow: hidden; }
.scrub-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--astral), var(--orchid)); box-shadow: 0 0 10px var(--astral); }
.footer { position: relative; z-index: 1; background: rgba(100,41,102,.55); border-top: 1px solid #289A9944;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 60%, #fff6, transparent), radial-gradient(1px 1px at 45% 80%, #fff7, transparent); }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 60; padding: 14px 22px; border-radius: 18px; font-size: 18px;
  background: rgba(100,41,102,.5); backdrop-filter: blur(14px); border: 1px solid #289A9966; box-shadow: 0 0 30px #2A00FF55; animation: rise .5s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }