@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap");

:root {
  color-scheme: dark;
  --bg: #020106;
  --purple: #8f35ff;
  --purple-soft: #c69bff;
  --pink: #ff4fd8;
  --cyan: #62f5ff;
  --panel: rgba(18, 9, 34, 0.76);
  --edge: rgba(198, 155, 255, 0.3);
  --text: #f6efff;
  --muted: #b9a8cb;
  --vhs-noise-opacity: 0.11;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 0, 80, 0.07), rgba(0, 255, 255, 0.04), rgba(98, 245, 255, 0.07)),
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.44) 100%);
  background-size: 7px 100%, 100% 100%;
  mix-blend-mode: soft-light;
  opacity: 0.5;
}

body::after {
  background:
    repeating-radial-gradient(circle at 18% 32%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 3px);
  background-size: 180px 180px;
  opacity: var(--vhs-noise-opacity);
  filter: contrast(180%) brightness(130%);
  mix-blend-mode: screen;
  animation: vhsFuzz 180ms steps(2, end) infinite;
}

button,
input {
  font: inherit;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.profile-card {
  position: relative;
  width: min(420px, calc(100vw - 40px));
  min-height: 520px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 28px;
  padding: 44px 32px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 36%),
    var(--panel);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.62),
    inset 0 0 42px rgba(143, 53, 255, 0.1);
  backdrop-filter: blur(18px);
  animation: chromaDrift 5.5s ease-in-out infinite;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 12px;
  background: rgba(143, 53, 255, 0.18);
  filter: blur(24px);
  opacity: 0.72;
}

.avatar-wrap {
  --hover-x: 50%;
  --hover-y: 50%;
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background:
    radial-gradient(circle at var(--hover-x) var(--hover-y), rgba(255, 255, 255, 0.9), rgba(198, 155, 255, 0.7) 13%, transparent 25%),
    conic-gradient(from 110deg, var(--pink), var(--purple), var(--cyan), var(--pink));
  transition: filter 180ms ease, transform 180ms ease;
  overflow: visible;
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  left: var(--hover-x);
  top: var(--hover-y);
  width: 48px;
  aspect-ratio: 1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(255, 79, 216, 0.42) 34%, transparent 66%);
  opacity: 0;
  filter: blur(16px);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, left 80ms linear, top 80ms linear;
  z-index: -1;
  pointer-events: none;
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  background: #10071e;
}

.avatar-wrap:hover {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.35);
}

.avatar-wrap:hover::after {
  opacity: 0.9;
}

.identity {
  text-align: center;
}

.identity h1 {
  --hover-x: 50%;
  --hover-y: 50%;
  margin: 0;
  font-family: "Google Sans Flex", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(var(--text), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 14px rgba(198, 155, 255, 0.22);
  transition: background 160ms ease, text-shadow 160ms ease, transform 180ms ease;
  cursor: default;
}

.identity h1:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(circle at var(--hover-x) var(--hover-y), #fff 0 8%, var(--purple-soft) 15%, var(--pink) 23%, transparent 33%),
    linear-gradient(var(--text), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.22),
    0 0 20px rgba(198, 155, 255, 0.38),
    0 0 34px rgba(255, 79, 216, 0.28);
}

.identity p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 14px;
}

.icon-link,
.player-button {
  width: 48px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(198, 155, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: inset 0 0 18px rgba(143, 53, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.icon-link:hover,
.player-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 79, 216, 0.72);
  background: rgba(143, 53, 255, 0.18);
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.28), inset 0 0 18px rgba(143, 53, 255, 0.22);
}

.icon-link svg,
.icon-link img,
.player-button svg {
  width: 25px;
  height: 25px;
}

.icon-link svg,
.player-button svg {
  fill: currentColor;
}

.icon-link img {
  display: block;
  object-fit: contain;
  filter: invert(1) brightness(1.12);
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: pointer;
  background: #000;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.enter-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-transform: lowercase;
  font-size: clamp(1rem, 2vw, 3rem);
  letter-spacing: 0;
  cursor: pointer;
  text-shadow:
    0 0 18px rgba(198, 155, 255, 0.9),
    0 0 46px rgba(143, 53, 255, 0.75);
  animation: pulseText 2s ease-in-out infinite;
}

.music-player {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(300px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid rgba(198, 155, 255, 0.28);
  border-radius: 8px;
  background: rgba(11, 5, 21, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  transform: translateY(150%);
  transition: transform 300ms ease;
}

.music-player.visible {
  transform: translateY(0);
}

.player-button {
  flex: 0 0 44px;
  width: 44px;
  border: 0;
  cursor: pointer;
}

.player-button .play-icon,
.player-button.paused .pause-icon {
  display: none;
}

.player-button.paused .play-icon {
  display: block;
}

.player-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}

.player-meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.82rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--purple-soft);
  cursor: pointer;
}

@keyframes pulseText {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes vhsFuzz {
  0% {
    transform: translate3d(0, 0, 0);
    background-position: 0 0;
  }

  25% {
    transform: translate3d(-1px, 1px, 0);
    background-position: 48px -32px;
  }

  50% {
    transform: translate3d(1px, -1px, 0);
    background-position: -56px 64px;
  }

  75% {
    transform: translate3d(2px, 0, 0);
    background-position: 84px 36px;
  }

  100% {
    transform: translate3d(0, 0, 0);
    background-position: -24px 92px;
  }
}

@keyframes chromaDrift {
  0%,
  100% {
    text-shadow: 1px 0 rgba(255, 79, 216, 0.08), -1px 0 rgba(98, 245, 255, 0.08);
  }

  50% {
    text-shadow: 2px 0 rgba(255, 79, 216, 0.13), -2px 0 rgba(98, 245, 255, 0.13);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .profile-card {
    animation: none;
  }
}

@media (max-width: 520px) {
  body {
    overflow: auto;
  }

  .site-shell {
    padding: 24px 20px 112px;
  }

  .profile-card {
    min-height: 460px;
    padding: 36px 24px;
  }

  .avatar-wrap {
    width: 142px;
  }

  .music-player {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}
