/* Shared rules extracted without changing their values. */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

* { cursor: none !important; }

#cursor svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(200,140,255,0.6)); transition: transform 0.15s cubic-bezier(.34,1.56,.64,1), filter 0.15s; }

#cursor.hovering svg { transform: scale(1.35) rotate(-12deg); filter: drop-shadow(0 3px 12px rgba(255,160,200,0.8)); }

#cursor.clicking svg { transform: scale(0.85) rotate(10deg); }

#cursor-trail { position: fixed; pointer-events: none; z-index: 999998; top:0; left:0; transform: translate(-50%,-50%); width:8px; height:8px; border-radius:50%; background: radial-gradient(circle, rgba(249,168,201,0.9), rgba(201,184,240,0.6)); }

#cursor-ring { position: fixed; pointer-events: none; z-index: 999997; top:0; left:0; transform: translate(-50%,-50%); width:44px; height:44px; border-radius:50%; border: 1.5px solid rgba(249,168,201,0.4); transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s; }

#cursor-ring.hovering { width:58px; height:58px; border-color: rgba(249,168,201,0.7); animation: ringPulse 0.8s ease-in-out infinite; }

html, body { height: 100%; }

body::before { content:''; position:fixed; top:-20%;left:-20%; width:70vw;height:70vw; border-radius:50%; background:radial-gradient(circle,rgba(180,140,255,0.12) 0%,transparent 70%); pointer-events:none; }

body::after  { content:''; position:fixed; bottom:-10%;right:-10%; width:60vw;height:60vw; border-radius:50%; background:radial-gradient(circle,rgba(255,140,180,0.10) 0%,transparent 70%); pointer-events:none; }

#starfield { position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }

.glow { position:fixed; border-radius:50%; pointer-events:none; z-index:0; filter:blur(90px); }

.glow-a { width:500px;height:500px; background:rgba(120,60,220,0.16); top:-10%;left:-10%; }

.glow-b { width:400px;height:400px; background:rgba(220,80,160,0.12); bottom:-5%;right:-5%; }

.glow-c { width:300px;height:300px; background:rgba(40,160,255,0.09); top:40%;left:40%; }

#particles { position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden; }

#burst-layer { position:fixed;inset:0;pointer-events:none;z-index:99990;overflow:hidden; }

html.has-intro #page-intro { display: flex; }

html.has-intro body { overflow: hidden; }

#page-intro::before {
  content: '';
  position: absolute;
  inset: -100%;
  z-index: -2;
  opacity: 0.78;
  background:
    conic-gradient(from 120deg at 50% 50%,
      transparent 0deg,
      rgba(201,184,240,0.18) 58deg,
      rgba(249,168,201,0.20) 118deg,
      rgba(168,216,240,0.14) 190deg,
      transparent 276deg,
      transparent 360deg);
  filter: blur(22px) saturate(1.18);
  animation: introAuroraSpin 5.2s linear infinite;
}

#page-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.74;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,0.10) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(249,168,201,0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 82%, rgba(201,184,240,0.12) 0 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 78px);
  animation: introGridDrift 2.7s ease-in-out infinite alternate;
}

html.has-intro body.page-ready #page-intro {
  animation: introVanish 1.08s 1.58s cubic-bezier(.76,0,.24,1) forwards;
}

.intro-orbit::before,
.intro-orbit::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f9a8c9;
  box-shadow: 0 0 16px rgba(249,168,201,0.85), 0 0 36px rgba(201,184,240,0.55);
}

.intro-orbit::before { top: 12%; left: 18%; }

.intro-orbit::after { right: 13%; bottom: 22%; background: #c9b8f0; }

.intro-orbit-a { top: -16%; left: -8%; }

.intro-orbit-b { right: -10%; bottom: -18%; animation-duration: 11s; animation-direction: reverse; opacity: 0.42; }

.intro-loader {
  width: min(210px, 76%);
  height: 5px;
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.intro-loader span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  background: linear-gradient(90deg, #c9b8f0, #f9a8c9, #a8d8f0, #f9a8c9);
  box-shadow: 0 0 18px rgba(249,168,201,0.58);
  animation: introLoad 1.38s 0.25s cubic-bezier(.16,1,.3,1) both;
}

.intro-sparks span {
  position: absolute;
  z-index: 1;
  display: inline-block;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 0 18px rgba(249,168,201,0.7);
  animation: introSparkFloat 2.7s ease-in-out infinite;
}

.intro-sparks span:nth-child(1) { left: 17%; top: 24%; font-size: 18px; animation-delay: 0.05s; }

.intro-sparks span:nth-child(2) { left: 76%; top: 23%; font-size: 15px; animation-delay: 0.35s; }

.intro-sparks span:nth-child(3) { left: 25%; top: 72%; font-size: 16px; animation-delay: 0.7s; }

.intro-sparks span:nth-child(4) { left: 82%; top: 68%; font-size: 20px; animation-delay: 1.0s; }

.intro-sparks span:nth-child(5) { left: 50%; top: 16%; font-size: 12px; animation-delay: 1.25s; }

.intro-sparks span:nth-child(6) { left: 42%; top: 84%; font-size: 14px; animation-delay: 1.5s; }

body.page-ready #starfield { animation: skyReveal 2.6s 0.16s ease-out both; }

body.page-ready .glow-a { animation: glowWake 2.5s 0.55s ease-out both; }

body.page-ready .glow-b { animation: glowWake 2.5s 0.72s ease-out both; }

body.page-ready .glow-c { animation: glowWake 2.5s 0.86s ease-out both; }

html::after {
  content:''; position:fixed; inset:0; z-index:1000000;
  background:#07040f; opacity:0; pointer-events:none;
  transition:opacity 420ms ease-in-out;
}

html.navigation-covered::after { opacity:1; pointer-events:all; }

html.navigation-arriving::after { transition:none; }

html.quick-entry #page-intro { display:none !important; }

html.quick-entry body { overflow-y:auto; }

a[data-page-link]:focus-visible { outline:2px solid #f9a8c9; outline-offset:4px; }

html.aurora-cached #page-intro::before { background:var(--intro-aurora-raster) center / 100% 100%; filter:none; }

html.entrance-complete .stage,html.entrance-complete .roulette-card { animation:none; opacity:1; transform:none; filter:none; }

html.entrance-complete .av-frame,html.entrance-complete .links-scroll > *,
html.entrance-complete .right-top,html.entrance-complete .right-top-brand,
html.entrance-complete .paper-brand,html.entrance-complete .profile-name,html.entrance-complete .profile-handle,
html.entrance-complete .profile-note,html.entrance-complete .profile-facts,
html.entrance-complete .profile-tags,html.entrance-complete .wave-sep,
html.entrance-complete .roulette-page-head,html.entrance-complete .page-footer-link { filter:none!important; }

/* Shared particle keyframes. */

@keyframes burst{0%{opacity:1;transform:translate(-50%,-50%) scale(1.2);}60%{opacity:.8;}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.3) rotate(180deg);}}
@keyframes trailFade{0%{opacity:.95;transform:translate(-50%,-50%) scale(1);}40%{opacity:.7;transform:translate(-50%,-130%) scale(.8);}100%{opacity:0;transform:translate(-50%,-220%) scale(.2) rotate(60deg);}}
@keyframes hoverSpark{0%{opacity:1;transform:translate(-50%,-50%) scale(1);}100%{opacity:0;transform:translate(calc(-50% + var(--hx)),calc(-50% + var(--hy))) scale(.2);}}

