:root {
  --bg: #050914;
  --bg-gradient: radial-gradient(circle at 15% 15%, #0d1b3e 0%, #050914 75%);
  --card-bg: rgba(11, 20, 39, 0.74);
  --card-border: rgba(56, 189, 248, 0.16);
  --card-border-hover: rgba(56, 189, 248, 0.45);
  --primary: #2563eb;
  --accent-cyan: #38bdf8;
  --accent-blue: #60a5fa;
  --accent-violet: #a78bfa;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-glow: rgba(56, 189, 248, 0.22);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(14px, 3.5vw, 40px) clamp(10px, 2.5vw, 24px);
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* Ambient Floating Glow Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.26;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
.orb-1 { width: clamp(240px, 40vw, 480px); height: clamp(240px, 40vw, 480px); background: #1d4ed8; top: -10%; left: 5%; }
.orb-2 { width: clamp(220px, 35vw, 420px); height: clamp(220px, 35vw, 420px); background: #0284c7; bottom: -5%; right: 5%; animation-delay: -9s; }
.orb-3 { width: clamp(180px, 30vw, 340px); height: clamp(180px, 30vw, 340px); background: #7c3aed; top: 40%; right: 25%; animation-delay: -4.5s; }

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.06); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Water Particle Canvas */
#net {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
}

/* Toast Popup */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #091326;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.35);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10000;
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
  text-align: center;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Intro Splash Screen */
#splash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #050914;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#splash.hide {
  opacity: 0;
  pointer-events: none;
}
.splash-avatar {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid #0d1b3e;
  position: relative;
  z-index: 1;
  animation: splashAvatarIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes splashAvatarIn {
  from { opacity: 0; transform: scale(0.7) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.splash-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  animation: splashRingExpand 1.4s ease-out infinite;
  pointer-events: none;
}
.splash-ring:nth-child(2) { animation-delay: 0.4s; }
.splash-ring:nth-child(3) { animation-delay: 0.8s; }
@keyframes splashRingExpand {
  0%   { width: 100px; height: 100px; opacity: 0.7; }
  100% { width: 240px; height: 240px; opacity: 0; }
}
.splash-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, #38bdf8 80%, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: splashNameIn 0.6s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes splashNameIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-sub {
  font-family: 'Maple Mono', monospace;
  font-size: 0.76rem;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: splashNameIn 0.6s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.splash-bar-wrap {
  width: 150px;
  height: 3px;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 99px;
  overflow: hidden;
  animation: splashNameIn 0.4s 0.55s both;
}
.splash-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #a78bfa);
  border-radius: 99px;
  animation: splashBarFill 1.1s 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes splashBarFill {
  to { width: 100%; }
}

