:root {
  --bg: #090909;
  --box-color: 20, 20, 23;
  --box-opacity: 0.5;
  --box-radius: 10px;
  --box-blur: 40px;
  --box-padding: 35px;
  --box-shadow: none;
  --box-border: 1px solid rgba(120, 114, 109, 0.2);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --discord: #5865f2;
  --reveal-blur: 15px;
  --font: "Unbounded", sans-serif;
  --page-width: 880px;
  --enter-speed: 350ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  min-height: 100vh;
}

body.is-revealed {
  overflow-y: auto;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #090909;
}

body.is-revealed .bg {
  background: #000;
}

.bg__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: blur(var(--reveal-blur));
}

body.is-revealed .bg__video {
  filter: none;
}

.bg__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

body.is-revealed .bg__shade {
  background: transparent;
}

.audio-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(12, 12, 14, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

body.is-revealed .audio-toggle {
  opacity: 1;
  pointer-events: auto;
}

.audio-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.audio-toggle__icon {
  width: 20px;
  height: 20px;
}

.audio-toggle.is-muted .audio-toggle__icon--wave,
.audio-toggle:not(.is-muted) .audio-toggle__icon--muted {
  display: none;
}

.reveal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.reveal.is-gone {
  display: none;
}

.reveal__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  animation: reveal-wobble var(--enter-speed) ease 1 both;
}

.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page[hidden] {
  display: none !important;
}

.stack {
  width: min(var(--page-width), 100%);
  max-width: var(--page-width);
  display: grid;
  gap: 14px;
  transform-style: preserve-3d;
  will-change: transform;
}

.stack.is-wobbling {
  animation: reveal-wobble var(--enter-speed) ease 1 both;
}

@keyframes reveal-wobble {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  15% {
    transform: translateX(-8px) rotate(-2.2deg);
  }
  30% {
    transform: translateX(7px) rotate(1.8deg);
  }
  45% {
    transform: translateX(-5px) rotate(-1.4deg);
  }
  60% {
    transform: translateX(4px) rotate(1deg);
  }
  75% {
    transform: translateX(-2px) rotate(-0.5deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

.box {
  background: rgba(var(--box-color), var(--box-opacity));
  border: var(--box-border);
  border-radius: var(--box-radius);
  backdrop-filter: blur(var(--box-blur));
  -webkit-backdrop-filter: blur(var(--box-blur));
  box-shadow: var(--box-shadow);
}

.profile {
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.profile__banner-wrap {
  position: relative;
  height: 120px;
  background: #0b0b0d;
}

.profile__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile__views {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.profile__views-eye {
  position: relative;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
}

.profile__views-eye svg {
  width: 15px;
  height: 15px;
  position: relative;
  z-index: 1;
}

.profile__views-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.85) 28%,
    rgba(255, 255, 255, 0.25) 58%,
    transparent 75%
  );
  filter: blur(0.4px);
  box-shadow:
    0 0 6px 2px rgba(255, 255, 255, 0.75),
    0 0 12px 4px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 0;
}

.profile__body {
  position: relative;
  z-index: 1;
  margin-top: -3.5rem;
  padding: 0 var(--box-padding) var(--box-padding);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.profile__header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #141417;
  display: block;
  flex-shrink: 0;
  background: #1a1a1c;
}

.profile__name {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.45),
    0 0 28px rgba(255, 255, 255, 0.2);
}

.profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.profile__details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.profile__bio,
.profile__meta-line {
  margin: 0;
  font-family: var(--font);
  font-size: 0.82rem;
  color: #8d8885;
  line-height: 1.45;
}

.profile__bio {
  font-weight: 400;
}

.profile__meta-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.profile__meta-line strong {
  font-weight: 700;
  color: #fff;
}

.profile__meta-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font);
}

.link-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(88, 101, 242, 0.14);
  color: var(--discord);
}

.link-card__icon svg {
  width: 22px;
  height: 22px;
}

.link-card__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.link-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.link-card__subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  color: #8d8885;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__arrow {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
}

.link-card__arrow svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 760px) {
  .page {
    padding: 20px 12px;
    align-content: center;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .profile__banner-wrap {
    height: 100px;
  }

  .profile__body {
    --box-padding: 22px;
    margin-top: -2.75rem;
    gap: 1rem;
  }

  .profile__avatar {
    width: 76px;
    height: 76px;
  }

  .profile__name {
    font-size: 1.25rem;
  }

  .audio-toggle {
    top: 12px;
    right: 12px;
  }

  .tilt-box {
    transform: none !important;
  }
}

@media (hover: none) {
  .tilt-box {
    transform: none !important;
  }
}
