:root {
  color-scheme: dark;
  --ink: #f4f4f1;
  --muted: #b9b5b0;
  --panel: rgba(24, 22, 22, 0.62);
  --line: rgba(255, 255, 255, 0.34);
  --cyan: #61f5ff;
  --rose: #ff315d;
  --green: #28d17c;
  --warm: #f1ded3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #050507;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.scene {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  isolation: isolate;
}

.scene::before {
  position: absolute;
  inset: 0;
  z-index: -4;
  content: "";
  background:
    linear-gradient(180deg, rgba(2, 2, 4, 0.26), rgba(2, 2, 4, 0.94)),
    url("glitched-image.gif") center / cover;
  filter: grayscale(1) contrast(1.12) brightness(0.72);
  transform: scale(1.04);
}

.scene::after {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 50% 18%, rgba(245, 237, 224, 0.2), transparent 18rem),
    linear-gradient(115deg, transparent 0 46%, rgba(97, 245, 255, 0.12) 47%, transparent 49%),
    linear-gradient(245deg, transparent 0 52%, rgba(255, 49, 93, 0.1) 53%, transparent 55%);
  mix-blend-mode: screen;
}

.sky-noise,
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky-noise {
  z-index: -2;
  opacity: 0.22;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(97, 245, 255, 0.12) 0 1px, transparent 1px 80px);
  animation: staticShift 4s steps(4) infinite;
}

.scanlines {
  z-index: 4;
  opacity: 0.23;
  background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(255, 255, 255, 0.08) 5px, transparent 7px);
}

.meteor {
  position: absolute;
  width: 14rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--warm));
  box-shadow: 0 0 18px rgba(97, 245, 255, 0.72);
  opacity: 0.62;
  transform: rotate(-28deg);
  animation: meteor 5.5s linear infinite;
}

.meteor-one {
  top: 13%;
  left: -20%;
}

.meteor-two {
  top: 31%;
  left: -28%;
  animation-delay: 2.1s;
  animation-duration: 7s;
  opacity: 0.42;
}

.profile-shell {
  width: min(100%, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px) saturate(1.2);
}

.banner {
  position: relative;
  height: clamp(132px, 22vw, 190px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
}

.profile-body {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 30px);
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.avatar {
  width: clamp(72px, 16vw, 96px);
  aspect-ratio: 1;
  border: 3px solid rgba(218, 225, 255, 0.78);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  box-shadow: -3px 0 0 rgba(255, 49, 93, 0.62), 3px 0 0 rgba(97, 245, 255, 0.62), 0 12px 28px rgba(0, 0, 0, 0.42);
}

.status-dot {
  position: absolute;
  right: 5px;
  bottom: 8px;
  width: 20px;
  aspect-ratio: 1;
  border: 4px solid #1c191a;
  border-radius: 50%;
  background: var(--green);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
.handle,
.bio {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 9vw, 4.9rem);
  line-height: 0.9;
  text-shadow: -3px 0 var(--rose), 3px 0 var(--cyan);
}

.handle,
.bio {
  color: var(--muted);
}

.bio {
  max-width: 58ch;
  font-size: clamp(0.98rem, 2.5vw, 1.08rem);
  line-height: 1.55;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badges span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #efece7;
  font-size: 0.84rem;
  font-weight: 700;
}

.music-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px 14px 14px 16px;
  background: rgba(255, 255, 255, 0.07);
}

.music-panel strong {
  display: block;
  font-size: clamp(1rem, 4vw, 1.35rem);
}

.play-button {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(97, 245, 255, 0.88), rgba(255, 49, 93, 0.86));
  color: #08080a;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.play-button:hover {
  filter: brightness(1.12);
}

.play-button:focus-visible,
.discord-link:focus-visible,
.quiet-link:focus-visible {
  outline: 3px solid rgba(97, 245, 255, 0.72);
  outline-offset: 3px;
}

.audio-meter {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  height: 48px;
  gap: 7px;
}

.audio-meter span {
  display: block;
  height: 26%;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--rose));
  opacity: 0.58;
  transform-origin: bottom;
}

.is-playing .audio-meter span {
  animation: pulse 0.9s ease-in-out infinite alternate;
}

.audio-meter span:nth-child(2) {
  animation-delay: 0.12s;
}

.audio-meter span:nth-child(3) {
  animation-delay: 0.24s;
}

.audio-meter span:nth-child(4) {
  animation-delay: 0.06s;
}

.audio-meter span:nth-child(5) {
  animation-delay: 0.3s;
}

.audio-meter span:nth-child(6) {
  animation-delay: 0.18s;
}

.audio-meter span:nth-child(7) {
  animation-delay: 0.36s;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.discord-link,
.quiet-link {
  color: inherit;
  text-decoration: none;
}

.discord-link {
  border-radius: 8px;
  padding: 12px 16px;
  background: #f0e1da;
  color: #141112;
  font-weight: 900;
}

.quiet-link {
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes staticShift {
  50% {
    transform: translate3d(1.5%, -1%, 0);
  }
}

@keyframes meteor {
  from {
    transform: translate3d(0, 0, 0) rotate(-28deg);
  }

  to {
    transform: translate3d(150vw, 62vh, 0) rotate(-28deg);
  }
}

@keyframes pulse {
  from {
    transform: scaleY(0.36);
  }

  to {
    transform: scaleY(1.55);
  }
}

@media (max-width: 560px) {
  .scene {
    min-height: 100svh;
    align-items: end;
    padding: 18px;
  }

  .identity-row {
    align-items: flex-start;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .discord-link,
  .quiet-link {
    text-align: center;
  }
}

@media (max-height: 760px) and (min-width: 680px) {
  .scene {
    padding-block: 18px;
  }

  .banner {
    height: 132px;
  }

  .profile-body {
    gap: 12px;
    padding-block: 18px;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 4rem);
  }

  .bio {
    line-height: 1.42;
  }

  .audio-meter {
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
