:root {
  --bg-page: #000000;
  --grad-from: #9b1d45;
  --grad-to: var(--accent);
  --accent: #f14075;
  --panel-bg: #14060d;
  --text: #fff5f8;
  --muted: rgba(255, 245, 248, 0.68);
  --shell-radius: 28px;
  --shell-inset: 12px;
  --dock-h: 76px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Syne", "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font);
}

body.has-bg-image {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ── Intro ── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  pointer-events: none;
  background: rgba(8, 2, 6, 0.72);
  opacity: 1;
  transition: opacity 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.intro-done .intro {
  opacity: 0;
}

.intro__hey {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 245, 248, 0.8);
  animation: intro-hey 0.75s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.intro__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff5f8;
  background: linear-gradient(180deg, #fff8fb 10%, #ffd0e0 55%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: intro-name 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s both;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .intro__name {
    color: #fff5f8;
    -webkit-text-fill-color: #fff5f8;
    background: none;
  }
}

@keyframes intro-hey {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes intro-name {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body.has-intro .shell {
  animation-delay: 0.15s;
}

body.has-intro .hero__banner {
  animation-delay: 0.55s;
}

body.has-intro .dock {
  animation-delay: 0.75s;
}

.leaves {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.leaf {
  position: absolute;
  top: -12vh;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  font-size: var(--size);
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: var(--opacity, 0.8);
  animation: leaf-fall var(--dur) linear var(--delay) infinite;
  transform-origin: 50% 50%;
  contain: layout style;
  will-change: transform;
}

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(var(--rot-start));
  }
  50% {
    transform: translate3d(var(--drift), 55vh, 0) rotate(calc(var(--rot-start) + 30deg));
  }
  100% {
    transform: translate3d(calc(var(--drift) * -0.25), 115vh, 0) rotate(calc(var(--rot-start) + 12deg));
  }
}

.shell {
  width: calc(100% - var(--shell-inset) * 2);
  height: calc(100vh - var(--shell-inset) * 2 - var(--dock-h) - 10px);
  margin: var(--shell-inset) var(--shell-inset) 0;
  border-radius: var(--shell-radius);
  overflow: hidden;
  background: linear-gradient(125deg, var(--grad-from) 0%, #c4285a 42%, var(--grad-to) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  animation: shell-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  contain: layout paint;
}

.scroll {
  width: 100%;
  height: 100%;
  /* desktop: only JS path-scroll; blocks text-select drag scroll */
  overflow: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.track {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, var(--grad-from) 0%, #c4285a 42%, var(--grad-to) 100%);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.panel {
  position: absolute;
  contain: layout;
}

/* Главная */
.hero {
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: transparent;
  border-radius: var(--shell-radius);
}

.hero__banner {
  display: block;
  height: 80%;
  width: auto;
  max-height: 800px;
  max-width: 100%;
  object-fit: contain;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: banner-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  box-shadow: none;
}

/* Обо мне — координаты считает JS, чтобы в конце скролла быть по центру */
.about {
  width: min(92vw, 760px);
  max-width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(10, 3, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  box-sizing: border-box;
  contain: layout paint;
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
}

.about__identity {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}

.about__identity > div {
  min-width: 0;
  flex: 1;
}

.about__avatar {
  width: 104px;
  height: 104px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  border: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  background: transparent;
  flex-shrink: 0;
}

.about__kicker {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff5f8;
  animation: none;
}

.about__name {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.22em;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.about__wave {
  display: block;
  flex-shrink: 0;
  font-size: 0.7em;
  line-height: 1;
  translate: 0 0.02em;
  animation: wave-hi 2.4s ease-in-out infinite;
  transform-origin: 70% 80%;
}

.about__tag {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 2.6vw, 1rem);
  font-weight: 600;
  min-height: 2.6em;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.about__type {
  display: inline;
}

.about__type::after {
  content: "|";
  margin-left: 2px;
  opacity: 0.65;
  animation: type-blink 0.85s step-end infinite;
}

@keyframes type-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__type::after {
    animation: none;
    opacity: 0.5;
  }
}

.about__bio {
  margin: 0;
  width: 100%;
  max-width: min(52ch, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  min-width: 0;
}

.about__bio p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.about__bio strong {
  color: var(--text);
  font-weight: 800;
}

/* Friends signatures — full viewport panel */
.friends {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  border-radius: var(--shell-radius);
}

.friends__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  border-radius: 28px;
  background: rgba(10, 3, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  contain: layout paint;
}

.friends__header {
  flex-shrink: 0;
}

.friends__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.friends__heart {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.72em;
  line-height: 1;
  color: var(--accent);
  vertical-align: 0.05em;
  animation: heart-beat 1.8s ease-in-out infinite;
  transform-origin: 50% 55%;
}

.friends__sub {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.friends__wall {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.friends__sig {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--w, 28%);
  max-width: 34%;
  max-height: 34%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  left: var(--x, 0%);
  top: var(--y, 0%);
  z-index: var(--z, 1);
  transform: rotate(var(--tilt, 0deg)) translateZ(0);
  transform-origin: center center;
  transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  overflow: visible;
  container-type: inline-size;
  container-name: sig;
}

.friends__sig:hover {
  transform: rotate(calc(var(--tilt, 0deg) * 0.35)) scale(1.05) translateZ(0);
  z-index: 20;
}

.friends__sig img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.friends__sig-name {
  position: absolute;
  left: 50%;
  top: var(--name-y, 78%);
  bottom: auto;
  z-index: 2;
  transform: translate3d(-50%, 6px, 0) rotate(calc(var(--tilt, 0deg) * -1));
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
  max-width: 94%;
  padding: 0 0.1em;
  font-family: var(--display);
  font-size: clamp(0.48rem, calc(13.5cqi - var(--len, 8) * 0.55cqi), 0.78rem);
  font-weight: 800;
  letter-spacing: clamp(0.03em, calc(0.16em - var(--len, 8) * 0.009em), 0.12em);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  background: linear-gradient(180deg, #fff8fb 10%, #ffd0e0 55%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition:
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.friends__sig-name::after {
  content: "";
  display: block;
  width: 0;
  max-width: 100%;
  height: 1.5px;
  margin: 0.18em auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff8ab0 20%, #fff5f8 50%, var(--accent) 80%, transparent);
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.friends__sig:hover .friends__sig-name,
.friends__sig:focus-visible .friends__sig-name {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) rotate(calc(var(--tilt, 0deg) * -0.35));
}

.friends__sig:hover .friends__sig-name::after,
.friends__sig:focus-visible .friends__sig-name::after {
  width: min(100%, 7em);
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.7rem 1.15rem;
  padding-bottom: 2.55rem;
  max-width: 100%;
  overflow: visible;
}

.link {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: rgba(255, 245, 248, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  overflow: visible;
  transition:
    background 0.28s ease,
    color 0.28s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.35s ease;
}

.link::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(20, 6, 13, 0), rgba(20, 6, 13, 0)) padding-box,
    linear-gradient(140deg, rgba(241, 64, 117, 0), rgba(241, 64, 117, 0.85), rgba(255, 245, 248, 0.55), rgba(241, 64, 117, 0)) border-box;
  opacity: 0;
  transform: scale(0.92) rotate(-6deg);
  transition:
    opacity 0.35s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.link__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.link__icon svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.link__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.55rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: max-content;
  max-width: min(42vw, 150px);
  transform: translate3d(-50%, -4px, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link__label-aura {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 120%;
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(241, 64, 117, 0.35) 0%, rgba(241, 64, 117, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.link__label-text {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.12em;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.link__char {
  display: inline-block;
  background: linear-gradient(180deg, #fff8fb 10%, #ffd0e0 55%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  /* arc stays constant — only Y/opacity animate, no scale overshoot */
  transform: translate3d(0, calc(-8px - var(--rise, 0px)), 0) rotate(var(--arc, 0deg));
  transition:
    opacity 0.28s ease,
    transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: 0s;
  backface-visibility: hidden;
}

.link__label-line {
  position: relative;
  display: block;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff8ab0 20%, #fff5f8 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 10px rgba(241, 64, 117, 0.45);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.04s;
}

.link:hover,
.link:focus-visible {
  color: #fff;
  background: rgba(241, 64, 117, 0.22);
  border-color: rgba(241, 64, 117, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(120, 16, 48, 0.28);
  z-index: 4;
}

.link:hover::before,
.link:focus-visible::before {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.link:hover .link__icon svg,
.link:focus-visible .link__icon svg {
  transform: scale(1.08);
}

.link:hover .link__label,
.link:focus-visible .link__label {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.link:hover .link__label-aura,
.link:focus-visible .link__label-aura {
  opacity: 1;
}

.link:hover .link__char,
.link:focus-visible .link__char {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--arc, 0deg));
  transition-delay: calc(var(--i, 0) * 32ms);
}

.link:hover .link__label-line,
.link:focus-visible .link__label-line {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .link,
  .link::before,
  .link__icon svg,
  .link__label,
  .link__label-aura,
  .link__char,
  .link__label-line {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .link__char {
    transform: none;
  }

  .link:hover .link__char,
  .link:focus-visible .link__char {
    transform: none;
  }
}

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Visitor counter ── */
.visits {
  position: fixed;
  left: 18px;
  bottom: calc(18px + var(--dock-h) + 10px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255, 180, 205, 0.2);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff5f8;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  animation: visits-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.visits__glow {
  position: absolute;
  left: -8%;
  bottom: -55%;
  width: 58%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 64, 117, 0.42) 0%, transparent 68%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.visits__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--accent);
  opacity: 0.95;
  transform: translateY(-0.5px);
}

.visits__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1;
}

.visits__count {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #fff8fb 10%, #ffd0e0 55%, var(--accent) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .visits__count {
    color: #fff5f8;
  }
}

.visits__label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 245, 248, 0.62);
}

@keyframes visits-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 720px) {
  .visits {
    left: 12px;
    bottom: 12px;
    padding: 0.48rem 0.8rem 0.48rem 0.65rem;
    gap: 0.45rem;
  }

  .visits__count {
    font-size: 1rem;
  }

  .visits__label {
    font-size: 0.48rem;
    letter-spacing: 0.16em;
  }
}

/* ── Dock player (desktop) ── */
.dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 80;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 24px));
  height: var(--dock-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(140px, 1.3fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 22px;
  background: rgba(20, 6, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--text);
  animation: dock-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.dock__art {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #2a0f1a;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dock.is-playing .dock__art {
  box-shadow: 0 0 0 2px rgba(241, 64, 117, 0.45);
}

.dock__meta {
  min-width: 0;
}

.dock__title,
.dock__artist {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock__title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
}

.dock__artist {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.dock__controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dock__btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 245, 248, 0.88);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dock__btn svg {
  width: 20px;
  height: 20px;
}

.dock__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dock__btn--main {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(241, 64, 117, 0.3);
}

.dock__btn--main:hover {
  background: rgba(241, 64, 117, 0.45);
}

.dock.is-playing .dock__btn--main {
  background: rgba(241, 64, 117, 0.45);
}

.dock__btn .icon-pause {
  display: none;
}

.dock.is-playing .dock__btn--main .icon-play {
  display: none;
}

.dock.is-playing .dock__btn--main .icon-pause {
  display: block;
}

.dock__timeline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dock__timeline input[type="range"],
.dock__volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  cursor: pointer;
}

.dock__timeline input[type="range"]::-webkit-slider-thumb,
.dock__volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  box-shadow: 0 0 0 3px rgba(241, 64, 117, 0.25);
}

.dock__timeline input[type="range"]::-moz-range-thumb,
.dock__volume input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
}

.dock__volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: min(118px, 14vw);
  color: var(--muted);
}

.dock__volume svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes shell-in {
  from {
    opacity: 0;
    transform: scale(0.985) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes banner-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heart-beat {
  0%,
  45%,
  100% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.14);
  }
  65% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

@keyframes wave-hi {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(16deg);
  }
  80% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(12deg);
  }
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(110%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaves,
  .intro {
    display: none;
  }

  .shell,
  .hero__banner,
  .about__wave,
  .leaf,
  .dock,
  .intro__hey,
  .intro__name {
    animation: none !important;
  }

  .dock {
    transform: translateX(-50%);
  }

  .friends__sig-name,
  .friends__sig-name::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 720px) {
  :root {
    --shell-radius: 18px;
    --shell-inset: 8px;
    --dock-h: 0px;
  }

  /* mobile = about only, no player */
  .hero,
  .friends,
  .dock {
    display: none !important;
  }

  .shell {
    height: calc(100dvh - var(--shell-inset) * 2);
    height: calc(100svh - var(--shell-inset) * 2);
    margin: var(--shell-inset);
  }

  .scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .track {
    width: 100% !important;
    height: auto !important;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
    background: transparent;
    animation: none;
  }

  .about {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: min(92vw, 520px);
    max-width: calc(100% - 4px);
    margin: 0 auto;
    padding: 1.15rem 1.1rem 1.35rem;
  }

  .about__avatar {
    width: 72px;
    height: 72px;
  }

  .about__identity {
    gap: 0.85rem;
  }

  .about__tag {
    font-size: 0.8rem;
    min-height: 3.2em;
  }

  .about__bio {
    max-width: 100%;
    font-size: 0.92rem;
  }

  .friends__title {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }
}
