:root {
  --ink: #f3f5ff;
  --muted: #c3c8dd;
  --accent: #4be3ff;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #020306;
  color: var(--ink);
  font-family: "Martian Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #020306;
}

.bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.stage {
  position: relative;
  z-index: 4;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.enter {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 8, .78);
  backdrop-filter: blur(7px);
  cursor: pointer;
  transition: opacity .7s var(--ease), visibility .7s;
}

.enter.hide { opacity: 0; visibility: hidden; }

.enter-label {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile {
  width: min(360px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: #0a0d16 center / cover;
  border: 2px solid rgba(255, 255, 255, .3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-size: 40px;
  color: var(--accent);
}

.username {
  margin: 18px 0 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .01em;
  background: linear-gradient(90deg, #ff5c5c, #ffb84d, #ffe14d, #5cff8f, #4be3ff, #7c5cff, #ff5cf0, #ff5c5c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5));
  animation: rainbow 6s linear infinite;
}

@keyframes rainbow {
  to { background-position: 200% center; }
}

.bio {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

.socials {
  margin: 22px 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  transition: .18s var(--ease);
}

.socials a:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .3);
}

.socials svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .username { animation: none; }
}
