/* ==========================================================================
   lzyyy — bio page
   ========================================================================== */

:root {
  --ink: #eaf1ff;
  --muted: #a8b9d6;
  --dim: #7488a8;
  --line: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.24);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  --glass-blur: blur(22px) saturate(1.15);
  --accent: #a8dcff;
  --pink: #ff9ad8;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-display: "Rubik Glitch", "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { height: 100%; }

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 92px 20px 156px;
  overflow-x: hidden;
  background: #03060d;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(150, 205, 255, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid rgba(168, 220, 255, 0.85);
  outline-offset: 3px;
}

/* ==========================================================================
   Entry gate
   ========================================================================== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #03060d;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  white-space: nowrap;
  cursor: pointer;
}

.intro__btn::before,
.intro__btn::after {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Background
   ========================================================================== */

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

.bg__image {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle at 50% 42%, #0b1a33, #04070f 70%);
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -10px), 0) scale(1.04);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 1.2s ease;
  animation: kenburns 38s ease-in-out infinite alternate;
  will-change: transform;
}

/* Replaceable background video — drop your own file at assets/background.mp4 */
.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease;
  pointer-events: none;
}

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

.bg.has-video .bg__image {
  opacity: 0;
  animation-play-state: paused;
}

.bg.has-video .bg__glow { opacity: 0.22; }

.bg__scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.45), rgba(3, 8, 18, 0.1) 28%, rgba(3, 8, 18, 0.18) 62%, rgba(3, 8, 18, 0.68)),
    radial-gradient(78% 68% at 50% 45%, transparent 28%, rgba(3, 8, 18, 0.38) 100%);
}

.bg.has-video .bg__scrim { opacity: 1; }

.bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 92% at 9% 50%, rgba(228, 247, 255, 0.72), rgba(132, 202, 255, 0.26) 34%, transparent 68%),
    radial-gradient(80% 70% at 45% 110%, rgba(24, 60, 110, 0.55), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 38%, rgba(2, 5, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.5), transparent 22%, transparent 72%, rgba(2, 5, 12, 0.72));
  pointer-events: none;
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#snow {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   Sound toggle
   ========================================================================== */

.sound {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: 20px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #d9e8ff;
  cursor: pointer;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.sound:hover { border-color: rgba(255, 255, 255, 0.55); color: #fff; }

.sound__speaker {
  width: 19px;
  height: 19px;
  flex: none;
  transition: opacity 0.3s;
}

.sound__wave { transition: opacity 0.3s; }

.sound.is-off .sound__wave { opacity: 0.15; }
.sound.is-off .sound__speaker { opacity: 0.6; }

/* ==========================================================================
   Stage / profile
   ========================================================================== */

.stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.profile { display: flex; flex-direction: column; align-items: center; }

/* Avatar ---------------------------------------------------------------- */

.avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 2px;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(176, 214, 255, 0.16) 46%, transparent 70%);
  filter: blur(16px);
  opacity: 0.85;
  animation: breathe 7s ease-in-out infinite;
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(214, 234, 255, 0.32);
  box-shadow: 0 0 0 6px rgba(150, 200, 255, 0.05);
  pointer-events: none;
}

.avatar-link {
  position: relative;
  display: block;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.avatar-link:focus-visible {
  outline: 2px solid rgba(180, 222, 255, 0.85);
  outline-offset: 8px;
}

.avatar-link .avatar {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.avatar-link:hover .avatar {
  transform: scale(1.035);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 26px -6px rgba(150, 205, 255, 0.5),
    0 18px 40px -14px rgba(0, 0, 0, 0.9),
    inset 0 0 24px rgba(0, 0, 0, 0.4);
}

.avatar-deco {
  position: absolute;
  inset: -10px;
  z-index: 2;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.avatar-deco.is-visible { opacity: 1; }

.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 40% 30%, #2c3f66, #0a1222 70%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 40px -14px rgba(0, 0, 0, 0.9),
    inset 0 0 24px rgba(0, 0, 0, 0.4);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: avatarFloat 8s ease-in-out infinite;
}

.avatar__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 34px;
  color: #ffd9ee;
  opacity: 0;
}

.avatar.is-empty img { display: none; }
.avatar.is-empty .avatar__fallback { opacity: 1; }

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(190, 230, 255, 0.85);
  opacity: 0;
  pointer-events: none;
  animation: twinkle 4.5s ease-in-out infinite;
}

.spark--1 { top: 4px; left: -6px; animation-delay: 0.4s; }
.spark--2 { right: -4px; top: 30px; animation-delay: 1.7s; width: 3px; height: 3px; }
.spark--3 { bottom: 6px; left: 2px; animation-delay: 3s; width: 3px; height: 3px; }

/* Name ------------------------------------------------------------------ */

.name {
  position: relative;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.015em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(175, 220, 255, 0.55),
    0 0 54px rgba(90, 150, 255, 0.4),
    0 2px 0 rgba(10, 20, 40, 0.55);
  animation: nameGlow 6s ease-in-out infinite;
}

.name::before,
.name::after,
.intro__btn::before,
.intro__btn::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}

.name::before,
.intro__btn::before { color: #ff7ad9; }
.name::after,
.intro__btn::after { color: #7de9ff; }

.no-glitch .name::before,
.no-glitch .name::after,
.no-glitch .intro__btn::before,
.no-glitch .intro__btn::after { display: none !important; }

/* JS-driven bursts (CSS animation timelines can be frozen in some viewers) */
.name[data-glitch="1"]::before,
.intro__btn[data-glitch="1"]::before { opacity: 0.85; transform: translate(-4px, -2px); clip-path: inset(6% 0 62% 0); }
.name[data-glitch="1"]::after,
.intro__btn[data-glitch="1"]::after { opacity: 0.7; transform: translate(4px, 2px); clip-path: inset(58% 0 6% 0); }
.name[data-glitch="2"]::before,
.intro__btn[data-glitch="2"]::before { opacity: 0.55; transform: translate(3px, 1px); clip-path: inset(34% 0 40% 0); }
.name[data-glitch="2"]::after,
.intro__btn[data-glitch="2"]::after { opacity: 0.5; transform: translate(-3px, -1px); clip-path: inset(68% 0 12% 0); }
.name[data-glitch="3"]::before,
.intro__btn[data-glitch="3"]::before { opacity: 0.9; transform: translate(-5px, 0); clip-path: inset(14% 0 56% 0); }
.name[data-glitch="3"]::after,
.intro__btn[data-glitch="3"]::after { opacity: 0.65; transform: translate(3px, 2px); clip-path: inset(50% 0 14% 0); }

/* Bio ------------------------------------------------------------------- */

.bio {
  max-width: 470px;
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0.008em;
  color: #e4edfc;
  text-shadow: 0 1px 2px rgba(2, 8, 20, 0.55), 0 0 30px rgba(2, 8, 20, 0.6);
}

/* Pills / meta ---------------------------------------------------------- */

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #dbe8ff;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pill svg { color: #a8dcff; opacity: 0.9; }

/* Presence card --------------------------------------------------------- */

.presence {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(430px, 100%);
  margin: 26px auto 0;
  padding: 12px 18px 12px 12px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    0 24px 50px -26px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.35s, box-shadow 0.35s, background 0.35s;
}

.presence:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 28px 56px -26px rgba(0, 0, 0, 0.7),
    0 0 40px -18px rgba(120, 180, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.presence__avatar {
  position: relative;
  display: block;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--glass-border), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  -webkit-tap-highlight-color: transparent;
}

.presence__avatar:focus-visible {
  outline: 2px solid rgba(180, 222, 255, 0.85);
  outline-offset: 4px;
}

.presence__avatar-box {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.presence__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.presence__avatar:hover img { transform: scale(1.06); }

.presence__deco {
  position: absolute;
  inset: -9px;
  z-index: 2;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.presence__deco.is-visible { opacity: 1; }

.presence__dot {
  --dot: #ff4d5e;
  position: absolute;
  z-index: 3;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot);
  border: 2.5px solid #101a2d;
  box-shadow: 0 0 10px var(--dot);
  animation: dotPulse 2.6s ease-in-out infinite;
  transition: background 0.35s, box-shadow 0.35s;
}

.presence__dot[data-status="online"] { --dot: #3ba55d; }
.presence__dot[data-status="idle"] { --dot: #faa61a; }
.presence__dot[data-status="dnd"] { --dot: #ff4d5e; }
.presence__dot[data-status="offline"] { --dot: #747f8d; }

.presence__body { min-width: 0; }

.presence__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.presence__name {
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f2f7ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 5px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffd9ef;
  background: var(--glass);
  border: 1px solid rgba(255, 180, 222, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 14px -4px rgba(255, 143, 208, 0.6);
}

.badge svg { color: #ffb7e6; }

.presence__flags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.flag {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  color: var(--flag, #a8dcff);
  background: var(--glass);
  border: 1px solid color-mix(in srgb, var(--flag, #a8dcff) 40%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 10px -4px var(--flag, #a8dcff);
  transition: transform 0.25s, background 0.25s;
}

.flag svg { width: 10px; height: 10px; }

.flag:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.presence__status {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

#dcStatus {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence__status-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: #1ed760;
}

.presence__status-icon svg { width: 11px; height: 11px; }

/* Socials --------------------------------------------------------------- */

.socials {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-top: 24px;
}

.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #cfe0ff;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s, border-color 0.3s, box-shadow 0.35s;
}

.social svg { width: 19px; height: 19px; }

.social:hover,
.social:focus-visible {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand, #a8dcff) 55%, transparent);
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 14px 30px -14px var(--brand, #a8dcff),
    0 0 22px -6px color-mix(in srgb, var(--brand, #a8dcff) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.social[data-brand="tiktok"] { --brand: #25f4ee; }
.social[data-brand="discord"] { --brand: #7289ff; }
.social[data-brand="roblox"] { --brand: #ff6a6a; }
.social[data-brand="facebook"] { --brand: #4d94ff; }

/* ==========================================================================
   Music player
   ========================================================================== */

.player {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(640px, calc(100% - 32px));
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.player__art {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--glass-border), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player__art-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(168, 220, 255, 0.28);
  opacity: 0;
  transition: opacity 0.5s;
}

.player.is-playing .player__art-glow {
  opacity: 1;
  animation: artGlow 2.8s ease-in-out infinite;
}

.player__main { min-width: 0; }

.player__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.player__title {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #eaf2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.player__dash { opacity: 0.4; margin: 0 3px; }

.player__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 16px;
  cursor: pointer;
  touch-action: none;
  border-radius: 99px;
}

.player__track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(186, 212, 255, 0.16);
  overflow: hidden;
  transition: height 0.2s ease, background 0.2s;
}

.player__bar:hover .player__track,
.player__bar:focus-visible .player__track { height: 6px; }

.player__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8fdcff, #ffffff);
  box-shadow: 0 0 12px rgba(160, 225, 255, 0.7);
}

.player__thumb {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(160, 220, 255, 0.22), 0 0 14px rgba(160, 225, 255, 0.9);
  translate: 0 -50%;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.player__bar:hover .player__thumb,
.player__bar:focus-visible .player__thumb { opacity: 1; }

.player__volume {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.volume__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c3d5f2;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}

.volume__btn:hover { color: #fff; background: rgba(160, 205, 255, 0.12); }
.volume__btn svg { width: 14px; height: 14px; }
.volume__muted { display: none; }
.volume__btn.is-muted .volume__wave { display: none; }
.volume__btn.is-muted .volume__muted { display: block; }

.volume__range {
  --vol: 80%;
  flex: 1;
  min-width: 0;
  height: 14px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.volume__range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) var(--vol), rgba(186, 212, 255, 0.18) var(--vol));
}

.volume__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(160, 225, 255, 0.8);
}

.volume__range::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(186, 212, 255, 0.18);
}

.volume__range::-moz-range-progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
}

.volume__range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(160, 225, 255, 0.8);
}

.volume__value {
  flex: none;
  width: 32px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ctrl {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c3d5f2;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.ctrl svg { width: 15px; height: 15px; }

.ctrl:hover { background: rgba(160, 205, 255, 0.12); color: #fff; }
.ctrl:active { transform: scale(0.92); }

.ctrl--play {
  width: 40px;
  height: 40px;
  margin: 0 2px;
  color: #08101f;
  background: linear-gradient(180deg, #eaf7ff, #a9dcff);
  box-shadow: 0 6px 18px -6px rgba(140, 210, 255, 0.9), inset 0 1px 0 #fff;
}

.ctrl--play svg { width: 17px; height: 17px; }

.ctrl--play:hover {
  background: linear-gradient(180deg, #ffffff, #bfe8ff);
  color: #06101f;
  box-shadow: 0 8px 24px -6px rgba(160, 225, 255, 1), inset 0 1px 0 #fff;
}

.icon-pause { display: none; }
.player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; }

/* ==========================================================================
   Reveal + keyframes
   ========================================================================== */

.reveal {
  opacity: 0;
  translate: 0 18px;
  filter: blur(6px);
  animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}

@keyframes kenburns {
  from { scale: 1.02; }
  to { scale: 1.1; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0) scale(1.02); }
  50% { transform: translateY(-2px) scale(1.05); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  40%, 60% { opacity: 0.9; transform: scale(1); }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px var(--dot, #ff4d5e); }
  50% { box-shadow: 0 0 14px var(--dot, #ff4d5e); }
}

@keyframes artGlow {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(168, 220, 255, 0.25); }
  50% { box-shadow: inset 0 0 0 1px rgba(168, 220, 255, 0.6), 0 0 18px rgba(140, 210, 255, 0.5); }
}

@keyframes nameGlow {
  0%, 100% { text-shadow: 0 0 18px rgba(175, 220, 255, 0.5), 0 0 54px rgba(90, 150, 255, 0.35), 0 2px 0 rgba(10, 20, 40, 0.55); }
  50% { text-shadow: 0 0 24px rgba(200, 235, 255, 0.75), 0 0 70px rgba(110, 170, 255, 0.5), 0 2px 0 rgba(10, 20, 40, 0.55); }
}

@keyframes glitchA {
  0%, 8%, 42%, 54%, 80%, 92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
  1% { opacity: 0.85; transform: translate(-4px, -2px); clip-path: inset(6% 0 62% 0); }
  3% { opacity: 0.5; transform: translate(3px, 1px); clip-path: inset(34% 0 40% 0); }
  5% { opacity: 0.75; transform: translate(-2px, 0); clip-path: inset(14% 0 56% 0); }
  44% { opacity: 0.8; transform: translate(4px, 0); clip-path: inset(18% 0 54% 0); }
  48% { opacity: 0.45; transform: translate(-3px, 2px); clip-path: inset(46% 0 28% 0); }
  52% { opacity: 0.7; transform: translate(2px, -1px); clip-path: inset(8% 0 66% 0); }
  82% { opacity: 0.9; transform: translate(-5px, -1px); clip-path: inset(2% 0 70% 0); }
  86% { opacity: 0.55; transform: translate(2px, 2px); clip-path: inset(28% 0 46% 0); }
  90% { opacity: 0.8; transform: translate(-3px, 0); clip-path: inset(12% 0 60% 0); }
}

@keyframes glitchB {
  0%, 7%, 40%, 52%, 78%, 90%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(100% 0 0 0); }
  1% { opacity: 0.8; transform: translate(4px, 2px); clip-path: inset(58% 0 6% 0); }
  3% { opacity: 0.45; transform: translate(-3px, -1px); clip-path: inset(68% 0 12% 0); }
  5% { opacity: 0.7; transform: translate(2px, 1px); clip-path: inset(52% 0 18% 0); }
  42% { opacity: 0.85; transform: translate(5px, 1px); clip-path: inset(50% 0 14% 0); }
  46% { opacity: 0.5; transform: translate(-2px, -2px); clip-path: inset(72% 0 4% 0); }
  50% { opacity: 0.75; transform: translate(3px, 2px); clip-path: inset(56% 0 10% 0); }
  80% { opacity: 0.75; transform: translate(-4px, 2px); clip-path: inset(62% 0 8% 0); }
  84% { opacity: 0.6; transform: translate(3px, -1px); clip-path: inset(46% 0 20% 0); }
  88% { opacity: 0.8; transform: translate(-2px, 1px); clip-path: inset(66% 0 6% 0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  body { padding: 86px 16px 148px; }

  .avatar-wrap { width: 100px; height: 100px; }
  .avatar { width: 86px; height: 86px; }

  .name { font-size: clamp(2.2rem, 12vw, 3rem); }

  .bio { font-size: 14px; max-width: 340px; }
  .bio__br { display: none; }

  .presence { width: 100%; max-width: 400px; }

  .player {
    gap: 11px;
    padding: 10px 12px;
    border-radius: 18px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }

  .player__art { width: 42px; height: 42px; border-radius: 10px; }
  .player__title { font-size: 10.5px; letter-spacing: 0.12em; }
  .player__head { margin-bottom: 4px; }
  .player__volume { gap: 6px; margin-top: 3px; }
  .volume__btn { width: 18px; height: 18px; }
  .volume__value { display: none; }
  .player__controls { gap: 0; }
  .ctrl { width: 28px; height: 28px; }
  .ctrl--play { width: 36px; height: 36px; }
  .ctrl svg { width: 13px; height: 13px; }
  .ctrl--play svg { width: 15px; height: 15px; }
}

@media (max-width: 480px) {
  .player__title { font-size: 10px; letter-spacing: 0.08em; }
  .player__dash,
  #durTime { display: none; }
}

@media (max-width: 380px) {
  .player__time { display: none; }
}

@media (max-height: 700px) and (min-width: 641px) {
  body { padding-top: 72px; padding-bottom: 132px; }
  .bio { margin-top: 14px; }
  .presence { margin-top: 18px; }
  .socials { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; translate: none; filter: none; }
  .bg__image { transform: none; animation: none; }
  .bg.video-off .bg__video { display: none !important; }
  .bg.has-video .bg__image { opacity: 1; }
  #snow { display: none; }
}

/* ==========================================================================
   Cursor trail
   ========================================================================== */

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The name glitch is JS-driven, so it is unaffected by reduced motion. */
