* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --violet-1: #16041f;
  --violet-2: #35105f;
  --violet-3: #7d32ff;
  --violet-4: #be8dff;
  --violet-5: #f1d9ff;
  --ink: #fbf7ff;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(142, 66, 255, 0.28), transparent 25rem),
    linear-gradient(180deg, #08040f 0%, #12041d 55%, #08040f 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 14px;
}

.crystal-nav {
  position: relative;
  isolation: isolate;
  width: min(720px, 100%);
  border-radius: 10px;
}

.crystal-nav::before,
.crystal-nav::after {
  position: absolute;
  content: "";
  border-radius: inherit;
  pointer-events: none;
}

.crystal-nav::before {
  inset: -2px;
  z-index: -2;
  padding: 2px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.78),
      rgba(157, 78, 255, 0.9) 24%,
      rgba(72, 18, 126, 0.64) 48%,
      rgba(236, 210, 255, 0.84) 72%,
      rgba(91, 33, 182, 0.7)
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 16px rgba(166, 91, 255, 0.65));
}

.crystal-nav::after {
  inset: -10px;
  z-index: -3;
  background: radial-gradient(circle, rgba(129, 60, 255, 0.36), transparent 62%);
  filter: blur(12px);
  opacity: 0.8;
}

.edge-trace {
  position: absolute;
  inset: -3px;
  z-index: 3;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  overflow: visible;
  pointer-events: none;
}

.edge-trace rect {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trace-halo {
  stroke: rgba(178, 93, 255, 0.92);
  stroke-width: 9;
  stroke-dasharray: 13 87;
  stroke-dashoffset: 0;
  filter: url("#edge-blur");
  opacity: 0.8;
  animation: trace-around 4.1s linear infinite;
}

.trace-core {
  stroke: url("#edge-shine");
  stroke-width: 3.2;
  stroke-dasharray: 9 91;
  stroke-dashoffset: 0;
  opacity: 0.98;
  animation: trace-around 4.1s linear infinite;
}

.trace-spark {
  stroke: #ffffff;
  stroke-width: 1.25;
  stroke-dasharray: 2 98;
  stroke-dashoffset: -7;
  opacity: 0.95;
  animation: trace-around 4.1s linear infinite;
}

.nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 18% 78%, rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, rgba(32, 7, 55, 0.98), rgba(88, 25, 141, 0.96) 42%, rgba(25, 5, 45, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -18px 46px rgba(12, 2, 23, 0.42),
    0 22px 70px rgba(38, 4, 72, 0.52);
}

.nav-item {
  position: relative;
  min-width: 0;
  perspective: 900px;
}

.nav-button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(241, 217, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.32) 45%, transparent 57% 100%),
    linear-gradient(180deg, rgba(177, 118, 255, 0.46), rgba(73, 18, 127, 0.88) 48%, rgba(31, 6, 58, 0.98));
  background-size: 240% 100%, 100% 100%;
  color: #fffaff;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -8px 18px rgba(16, 3, 31, 0.62),
    0 8px 20px rgba(35, 4, 66, 0.36);
  transform: translateZ(0);
  animation: button-build 0.56s cubic-bezier(0.2, 0.9, 0.2, 1.15) both;
}

.nav-item:nth-child(2) .nav-button {
  animation-delay: 0.08s;
}

.nav-item:nth-child(3) .nav-button {
  animation-delay: 0.16s;
}

.nav-button::before,
.nav-button::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.nav-button::before {
  inset: 6px 12px auto;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0.58;
}

.nav-button::after {
  right: 12px;
  bottom: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(246, 231, 255, 0.36);
  box-shadow:
    -18px 0 0 rgba(246, 231, 255, 0.2),
    0 -22px 0 rgba(246, 231, 255, 0.18),
    -18px -22px 0 rgba(246, 231, 255, 0.12);
}

.nav-item:hover .nav-button,
.nav-item:focus-within .nav-button {
  background-position: -120% 0, 0 0;
  border-color: rgba(255, 255, 255, 0.62);
  transform: translateY(-2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 4;
  width: min(230px, calc(100vw - 28px));
  min-height: 140px;
  padding: 12px;
  border: 1px solid rgba(241, 217, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 30% 100%),
    linear-gradient(180deg, rgba(79, 20, 135, 0.98), rgba(23, 4, 44, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 48px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(126, 52, 255, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px) rotateX(-15deg) scale(0.94);
  transform-origin: top center;
  transition:
    opacity 0.14s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dropdown::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(241, 217, 255, 0.24);
  border-top: 1px solid rgba(241, 217, 255, 0.24);
  background: rgba(79, 20, 135, 0.98);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.nav-item:first-child .dropdown {
  left: 0;
  transform: translateY(-10px) rotateX(-15deg) scale(0.94);
}

.nav-item:last-child .dropdown {
  right: 0;
  left: auto;
  transform: translateY(-10px) rotateX(-15deg) scale(0.94);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) rotateX(0) scale(1);
}

.nav-item:first-child:hover .dropdown,
.nav-item:first-child:focus-within .dropdown,
.nav-item:last-child:hover .dropdown,
.nav-item:last-child:focus-within .dropdown {
  transform: translateY(0) rotateX(0) scale(1);
}

.brick-layer {
  position: absolute;
  inset: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  pointer-events: none;
}

.brick-layer span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.34), transparent 0.42rem),
    linear-gradient(145deg, rgba(194, 134, 255, 0.32), rgba(65, 14, 114, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(-18px) rotate(8deg) scale(0.56);
}

.nav-item:hover .brick-layer span,
.nav-item:focus-within .brick-layer span {
  animation: brick-drop 0.42s cubic-bezier(0.16, 1.08, 0.34, 1.18) forwards;
}

.brick-layer span:nth-child(2) { animation-delay: 0.035s; }
.brick-layer span:nth-child(3) { animation-delay: 0.07s; }
.brick-layer span:nth-child(4) { animation-delay: 0.105s; }
.brick-layer span:nth-child(5) { animation-delay: 0.14s; }
.brick-layer span:nth-child(6) { animation-delay: 0.175s; }
.brick-layer span:nth-child(7) { animation-delay: 0.21s; }
.brick-layer span:nth-child(8) { animation-delay: 0.245s; }
.brick-layer span:nth-child(9) { animation-delay: 0.28s; }
.brick-layer span:nth-child(10) { animation-delay: 0.315s; }
.brick-layer span:nth-child(11) { animation-delay: 0.35s; }
.brick-layer span:nth-child(12) { animation-delay: 0.385s; }

.dropdown-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.16s ease 0.34s,
    transform 0.18s ease 0.34s;
}

.nav-item:hover .dropdown-list,
.nav-item:focus-within .dropdown-list {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8efff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.dropdown-list a:hover,
.dropdown-list a:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.17);
  outline: none;
}

@keyframes button-build {
  0% {
    opacity: 0;
    transform: translateY(-18px) rotateX(32deg) scale(0.86);
  }

  55% {
    opacity: 1;
    transform: translateY(3px) rotateX(-8deg) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@keyframes trace-around {
  to {
    stroke-dashoffset: -100;
  }
}

@keyframes brick-drop {
  0% {
    opacity: 0;
    transform: translateY(-18px) rotate(8deg) scale(0.56);
  }

  72% {
    opacity: 1;
    transform: translateY(3px) rotate(-2deg) scale(1.04);
  }

  100% {
    opacity: 0.72;
    transform: translateY(0) rotate(0) scale(1);
  }
}

.moon-player {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  width: 156px;
  height: 196px;
  pointer-events: none;
}

.dancer-button {
  position: absolute;
  bottom: 0;
  left: 0;
  display: grid;
  width: 128px;
  height: 182px;
  place-items: end center;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.dancer-button:focus-visible {
  outline: 2px solid #f1d9ff;
  outline-offset: 4px;
}

.dancer-glitch {
  position: relative;
  display: block;
  width: 126px;
  height: 178px;
  filter:
    drop-shadow(0 0 10px rgba(169, 84, 255, 0.86))
    drop-shadow(0 0 24px rgba(118, 45, 255, 0.58));
  animation: premium-moonwalk-body 1.42s cubic-bezier(0.44, 0, 0.24, 1) infinite;
}

.dancer-glitch::before,
.dancer-glitch::after {
  position: absolute;
  inset: 4px 8px 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(194, 102, 255, 0.72), transparent) 0 20px / 100% 8px no-repeat,
    linear-gradient(90deg, transparent, rgba(194, 102, 255, 0.52), transparent) 0 82px / 100% 10px no-repeat,
    linear-gradient(90deg, transparent, rgba(194, 102, 255, 0.42), transparent) 0 142px / 100% 8px no-repeat;
  clip-path: polygon(22% 3%, 78% 3%, 94% 48%, 76% 100%, 18% 100%, 4% 48%);
  opacity: 0.48;
}

.dancer-glitch::before {
  transform: translate(-5px, 1px);
  animation: premium-glitch-purple 0.86s steps(2, end) infinite;
}

.dancer-glitch::after {
  background:
    linear-gradient(90deg, transparent, rgba(48, 235, 255, 0.56), transparent) 0 42px / 100% 7px no-repeat,
    linear-gradient(90deg, transparent, rgba(48, 235, 255, 0.4), transparent) 0 110px / 100% 9px no-repeat;
  transform: translate(5px, -2px);
  animation: premium-glitch-cyan 1.08s steps(2, end) infinite;
}

.dancer-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dance-shadow {
  fill: rgba(90, 31, 154, 0.38);
  filter: blur(1px);
}

.dancer-person,
.svg-headwear,
.svg-arm,
.svg-leg {
  transform-box: fill-box;
}

.dancer-person {
  transform-origin: 70px 148px;
}

.svg-headwear {
  transform-origin: 69px 43px;
  animation: premium-hat-counter 1.42s cubic-bezier(0.44, 0, 0.24, 1) infinite;
}

.svg-arm-front {
  transform-origin: 54px 86px;
  animation: premium-arm-front 1.42s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.svg-arm-back {
  transform-origin: 87px 86px;
  animation: premium-arm-back 1.42s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.svg-leg-front {
  transform-origin: 60px 123px;
  animation: premium-leg-front 1.42s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.svg-leg-back {
  transform-origin: 75px 122px;
  animation: premium-leg-back 1.42s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.svg-hair path,
.svg-head path,
.svg-hat-crown,
.svg-hat-brim,
.svg-hat-band,
.blazer,
.shirt,
.tie,
.sleeve,
.trouser,
.svg-shoe,
.glove {
  fill: #020107;
  stroke: rgba(223, 185, 255, 0.34);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.svg-hair path,
.hair-outline {
  stroke: rgba(223, 185, 255, 0.52);
}

.svg-hat-band,
.shirt,
.sock {
  fill: #0f0a18;
  stroke: rgba(255, 255, 255, 0.42);
}

.tie {
  fill: #000000;
  stroke: rgba(255, 255, 255, 0.16);
}

.lapel,
.jacket-crease,
.button-line,
.sleeve-crease,
.trouser-crease {
  fill: none;
  stroke: rgba(236, 210, 255, 0.52);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.suit-button {
  fill: rgba(255, 255, 255, 0.5);
}

.svg-shoe {
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 1.7;
}

.glove {
  fill: #f3e9ff;
  stroke: rgba(255, 255, 255, 0.74);
}

.moon-player.is-playing .dancer-glitch {
  animation: premium-tap-body 0.62s cubic-bezier(0.36, 0, 0.2, 1) infinite;
}

.moon-player.is-playing .svg-headwear {
  animation: premium-tap-hat 0.62s cubic-bezier(0.36, 0, 0.2, 1) infinite;
}

.moon-player.is-playing .svg-arm-front {
  animation: premium-tap-arm-front 0.62s cubic-bezier(0.36, 0, 0.2, 1) infinite;
}

.moon-player.is-playing .svg-arm-back {
  animation: premium-tap-arm-back 0.62s cubic-bezier(0.36, 0, 0.2, 1) infinite;
}

.moon-player.is-playing .svg-leg-front {
  animation: premium-tap-leg-front 0.62s cubic-bezier(0.36, 0, 0.2, 1) infinite;
}

.moon-player.is-playing .svg-leg-back {
  animation: premium-tap-leg-back 0.62s cubic-bezier(0.36, 0, 0.2, 1) infinite;
}

.lyric-stream {
  position: absolute;
  bottom: 118px;
  left: 88px;
  z-index: 7;
  min-width: 132px;
  max-width: min(260px, calc(100vw - 96px));
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.44);
  transform: translate(-8px, 4px) scale(0.92);
}

.lyric-stream::before {
  position: absolute;
  bottom: -5px;
  left: 12px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.86);
  content: "";
  transform: rotate(45deg);
}

.lyric-stream.is-popping {
  animation: lyric-pop 2.5s ease both;
}

.music-panel {
  position: absolute;
  bottom: 108px;
  left: 224px;
  z-index: 5;
  width: min(352px, calc(100vw - 118px));
  padding: 14px;
  border: 1px solid rgba(241, 217, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 28% 100%),
    linear-gradient(180deg, rgba(52, 12, 92, 0.96), rgba(12, 2, 23, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -20px 44px rgba(0, 0, 0, 0.42),
    0 18px 64px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(153, 75, 255, 0.46);
  opacity: 0;
  pointer-events: none;
  transform: translate(-16px, 10px) rotateX(-16deg) scale(0.92);
  transform-origin: 0 100%;
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1.18);
}

.music-panel::before {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  opacity: 0.32;
  filter: blur(6px);
}

.moon-player.is-open .music-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0) rotateX(0) scale(1);
}

.electric-tether {
  position: absolute;
  right: calc(100% - 10px);
  bottom: 18px;
  width: 180px;
  height: 68px;
  overflow: visible;
  pointer-events: none;
}

.electric-tether path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 9 11;
  animation: electric-run 0.62s linear infinite;
}

.tether-glow {
  stroke: rgba(161, 79, 255, 0.86);
  stroke-width: 8;
  filter: blur(4px);
}

.tether-core {
  stroke: #f7eaff;
  stroke-width: 2;
}

.track-shell {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}

.track-art {
  display: block;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(172, 86, 255, 0.44);
}

.track-copy {
  min-width: 0;
}

.panel-kicker,
.track-copy h2,
.track-copy p {
  margin: 0;
}

.panel-kicker {
  color: #d9bbff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.track-copy h2 {
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.08;
}

.track-copy p:not(.panel-kicker) {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-controls {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  gap: 9px;
  justify-content: center;
  margin-top: 14px;
}

.transport-button {
  display: grid;
  width: 46px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(196, 137, 255, 0.34), rgba(51, 12, 92, 0.96)),
    #1b0730;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 18px rgba(0, 0, 0, 0.36);
}

.transport-button:active {
  transform: translateY(1px) scale(0.98);
}

.transport-button:focus-visible {
  outline: 2px solid #f1d9ff;
  outline-offset: 3px;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ffffff;
  transform: translateX(2px);
}

.play-toggle.is-playing .play-icon {
  width: 16px;
  height: 18px;
  border: 0;
  background:
    linear-gradient(90deg, #ffffff 0 5px, transparent 5px 10px, #ffffff 10px 15px);
  transform: none;
}

.progress-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
}

.time-readout {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#track-progress {
  width: 100%;
  height: 22px;
  margin: 0;
  accent-color: #c998ff;
}

#track-progress::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(153, 75, 255, 0.92)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 14px rgba(153, 75, 255, 0.5);
}

#track-progress::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: #09030f;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.78);
  appearance: none;
}

#track-progress::-moz-range-track {
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(153, 75, 255, 0.82);
}

#track-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: #09030f;
}

.panel-lyric {
  min-height: 35px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
}

@keyframes premium-moonwalk-body {
  0%,
  100% {
    transform: translateX(3px) translateY(0) rotate(-1.5deg);
  }

  25% {
    transform: translateX(-2px) translateY(-1px) rotate(1deg);
  }

  50% {
    transform: translateX(-7px) translateY(1px) rotate(1.6deg);
  }

  75% {
    transform: translateX(-1px) translateY(-1px) rotate(-0.5deg);
  }
}

@keyframes premium-hat-counter {
  0%,
  100% {
    transform: translateX(-1px) rotate(1deg);
  }

  50% {
    transform: translateX(2px) rotate(-2deg);
  }
}

@keyframes premium-arm-front {
  0%,
  100% {
    transform: rotate(15deg) translate(-2px, 1px);
  }

  50% {
    transform: rotate(-20deg) translate(2px, -1px);
  }
}

@keyframes premium-arm-back {
  0%,
  100% {
    transform: rotate(-18deg) translate(2px, -1px);
  }

  50% {
    transform: rotate(17deg) translate(-2px, 1px);
  }
}

@keyframes premium-leg-front {
  0%,
  100% {
    transform: rotate(6deg) translateX(-1px);
  }

  35% {
    transform: rotate(-12deg) translateX(15px);
  }

  65% {
    transform: rotate(3deg) translateX(27px);
  }
}

@keyframes premium-leg-back {
  0%,
  100% {
    transform: rotate(-8deg) translateX(4px);
  }

  35% {
    transform: rotate(10deg) translateX(-11px);
  }

  65% {
    transform: rotate(-4deg) translateX(-20px);
  }
}

@keyframes premium-tap-body {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(3px) rotate(1deg);
  }
}

@keyframes premium-tap-hat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-2px) rotate(-1deg);
  }
}

@keyframes premium-tap-arm-front {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(-7deg) translateY(2px);
  }
}

@keyframes premium-tap-arm-back {
  0%,
  100% {
    transform: rotate(-10deg) translateY(0);
  }

  50% {
    transform: rotate(8deg) translateY(2px);
  }
}

@keyframes premium-tap-leg-front {
  0%,
  100% {
    transform: rotate(-5deg) translate(4px, 0);
  }

  50% {
    transform: rotate(6deg) translate(5px, 3px);
  }
}

@keyframes premium-tap-leg-back {
  0%,
  100% {
    transform: rotate(5deg) translate(-3px, 0);
  }

  50% {
    transform: rotate(-5deg) translate(-4px, 3px);
  }
}

@keyframes premium-glitch-purple {
  0%,
  100% {
    opacity: 0.34;
    clip-path: inset(4% 0 74% 0);
  }

  35% {
    opacity: 0.62;
    clip-path: inset(38% 0 38% 0);
  }

  70% {
    opacity: 0.48;
    clip-path: inset(70% 0 8% 0);
  }
}

@keyframes premium-glitch-cyan {
  0%,
  100% {
    opacity: 0.28;
    clip-path: inset(72% 0 4% 0);
  }

  45% {
    opacity: 0.52;
    clip-path: inset(20% 0 62% 0);
  }
}

@keyframes electric-run {
  to {
    stroke-dashoffset: -40;
  }
}

@keyframes lyric-pop {
  0% {
    opacity: 0;
    transform: translate(-8px, 4px) scale(0.92);
  }

  12%,
  78% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(14px, -10px) scale(0.98);
  }
}

@media (max-width: 520px) {
  #app {
    padding-top: 16px;
  }

  .nav-inner {
    gap: 6px;
    padding: 8px;
  }

  .nav-button {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .dropdown {
    width: min(216px, calc(100vw - 28px));
  }

  .moon-player {
    bottom: 10px;
    left: 10px;
    transform: scale(0.9);
    transform-origin: bottom left;
  }

  .music-panel {
    bottom: 142px;
    left: 24px;
    width: min(340px, calc(100vw - 20px));
  }

  .electric-tether {
    display: none;
  }
}
