:root {
  --bg: #030812;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --text: #eaf6ff;
  --muted: #6b8299;
  --card-bg: rgba(9, 18, 32, 0.5);
  --card-border: rgba(34, 211, 238, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(34, 211, 238, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

/* ---- Intro / click to enter ---- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 18, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro.hidden { opacity: 0; visibility: hidden; }

.intro-inner {
  position: relative;
  display: grid;
  place-items: center;
}
.intro-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 65%);
  filter: blur(20px);
  animation: pulse 2.6s ease-in-out infinite;
}
.intro-text {
  position: relative;
  font-size: 15px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 300;
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ---- Particles + vignette ---- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,0.7) 100%);
}

/* ---- Stage / profile card ---- */
.stage {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}
.stage.visible { opacity: 1; transform: scale(1); }

.profile {
  width: min(92vw, 380px);
  background: var(--card-bg);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 34px 28px 30px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(34, 211, 238, 0.08);
}

.avatar-ring {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  animation: spin 6s linear infinite;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.4);
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #071324;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  animation: spin 6s linear infinite reverse;
}

.username {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
}
.badge { width: 20px; height: 20px; flex-shrink: 0; }

.tagline {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  margin-top: 4px;
}

.views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}
.views svg { width: 15px; height: 15px; color: var(--accent); }

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.socials a svg { width: 20px; height: 20px; }
.socials a:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}
.socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .avatar-ring, .avatar, .intro-glow, .intro-text { animation: none; }
  .stage { transition: opacity 0.3s ease; }
}
