:root {
  color-scheme: dark;
  --bg: #08090d;
  --text: #f6f7fb;
  --muted: #a8adbc;
  --soft: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(11, 13, 19, 0.62);
  --panel-strong: rgba(14, 17, 25, 0.82);
  --cyan: #76f7d1;
  --rose: #ff6f91;
  --amber: #ffc857;
  --blue: #8bb7ff;
  --shadow: rgba(0, 0, 0, 0.48);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

.page-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 4vw, 56px);
  isolation: isolate;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #07080c;
}

.ambient::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.12), rgba(5, 6, 10, 0.64)),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.64), transparent 48%);
  pointer-events: none;
}

.ambient__poster,
.ambient__video,
.ambient__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ambient__poster {
  object-fit: cover;
  transform: scale(1.02);
}

.ambient__video {
  object-fit: fill;
  transform: none;
}

.ambient__poster {
  filter: saturate(1.12) contrast(1.08);
}

.ambient__video {
  background: #000;
  opacity: 0;
  transition: opacity 700ms ease;
}

.ambient__video.is-ready {
  opacity: 1;
}

.ambient__canvas {
  opacity: 0.74;
  mix-blend-mode: screen;
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  background: rgba(5, 6, 9, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: clamp(1.15rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
}

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

body.is-gated .profile,
body.is-gated .sound-toggle {
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
}

body.has-entered .profile,
body.has-entered .sound-toggle {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.profile {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 640px;
  min-height: 350px;
  padding: clamp(36px, 5vw, 42px) clamp(22px, 5vw, 34px) 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(12, 14, 20, 0.62);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  text-align: center;
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
  backdrop-filter: blur(18px) saturate(1.06);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.profile__topline {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: block;
  margin: 0;
}

.view-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
}

.sound-toggle {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 4;
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 7, 12, 0.72);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.sound-toggle.is-visible {
  display: inline-flex;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: rgba(118, 247, 209, 0.7);
  background: rgba(8, 11, 18, 0.86);
  outline: none;
  transform: translateY(-2px);
}

.avatar {
  display: grid;
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background:
    var(--avatar-image, linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(225, 225, 225, 0.7))),
    #d6d6d6;
  background-position: center;
  background-size: cover;
  color: #08090d;
  font-size: 2.45rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.22);
}

.handle {
  margin: 8px 0 22px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.08rem;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.62);
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 8vw, 3.95rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.68);
  text-wrap: balance;
}

.bio {
  max-width: 34ch;
  margin: 12px auto 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.44);
}

.links {
  display: flex;
  min-width: 0;
  width: min(100%, 520px);
  max-width: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 20px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.link-button {
  position: relative;
  display: flex;
  width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.8));
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.link-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  content: "";
  opacity: 0;
  transform: translateX(-60%);
  transition:
    opacity 180ms ease,
    transform 260ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  border-color: transparent;
  background: transparent;
  outline: none;
  transform: translateY(-3px) scale(1.12) rotate(-3deg);
}

.link-button:hover::before,
.link-button:focus-visible::before {
  opacity: 1;
  transform: translateX(60%);
}

.link-button.is-disabled {
  cursor: default;
  color: rgba(255, 255, 255, 0.92);
}

.link-button.is-disabled:hover,
.link-button.is-disabled:focus-visible {
  border-color: rgba(255, 255, 255, 0.15);
  transform: none;
}

.link-button.is-shaking {
  animation: shake 240ms ease both;
}

.link-button.is-copied {
  color: #fff;
  filter:
    drop-shadow(0 0 6px rgba(118, 247, 209, 1))
    drop-shadow(0 0 18px rgba(118, 247, 209, 0.88));
}

.icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.15;
}

.icon svg[data-fill-icon="true"] {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(-4px);
  }

  70% {
    transform: translateX(4px);
  }
}

@media (max-width: 560px) {
  .page-shell {
    align-items: flex-start;
    padding: 10px;
  }

  .profile {
    min-height: 330px;
    padding: 34px 14px 44px;
    border-radius: 18px;
  }

  .profile__topline {
    margin-bottom: 18px;
  }

  .links {
    width: 100%;
  }

  .link-button {
    width: clamp(34px, 10vw, 42px);
    height: clamp(34px, 10vw, 42px);
    min-height: clamp(34px, 10vw, 42px);
  }

  .avatar {
    width: 104px;
    height: 104px;
    font-size: 2.1rem;
  }
}

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

  .ambient__canvas {
    display: none;
  }
}
