* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: #f6f3ec;
  background:
    radial-gradient(circle at 50% 38%, rgba(183, 139, 255, 0.16), transparent 30%),
    radial-gradient(circle at 20% 115%, rgba(127, 255, 232, 0.08), transparent 30%),
    radial-gradient(circle at 80% 115%, rgba(120, 84, 255, 0.1), transparent 34%),
    #010201;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.18;
  pointer-events: none;
  transform: translateZ(0);
  animation: scanlinesFloat 9s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(circle at 45% 42%, rgba(201, 168, 255, 0.13), transparent 18%),
    conic-gradient(from 180deg, transparent, rgba(127, 255, 232, 0.055), rgba(120, 84, 255, 0.075), transparent 34%);
  filter: blur(34px);
  opacity: 0.55;
  pointer-events: none;
  will-change: opacity, transform;
  animation:
    neonDrift 12s ease-in-out infinite,
    auraHueShift 18s ease-in-out infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  width: min(100%, 980px);
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
  border: 1px solid rgba(201, 168, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 44%),
    rgba(0, 0, 0, 0.46);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.62),
    inset 0 0 92px rgba(183, 139, 255, 0.04);
  backdrop-filter: blur(10px);
  will-change: transform, box-shadow;
  animation: heroFloat 9.5s ease-in-out infinite;
}

/* Anti-flicker: avoid GPU/backdrop glitches on some devices */
.hero,
.logo-wrap,
.release,
.presave-links a,
.transport-controls {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* iOS Safari often flickers with backdrop-filter + animations */
@supports (-webkit-touch-callout: none) {
  .hero {
    backdrop-filter: none;
  }
}

.hero::before {
  content: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 255, 0.24);
  border-radius: inherit;
  opacity: 0.64;
  pointer-events: none;
  box-shadow:
    0 0 24px rgba(201, 168, 255, 0.22),
    inset 0 0 38px rgba(127, 255, 232, 0.08);
  animation: borderColorFlow 8s ease-in-out infinite;
}

.topline {
  margin: 0 0 26px;
  color: #c9a8ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation:
    softBlink 4.8s ease-in-out infinite,
    accentColorFlow 9s ease-in-out infinite;
}

.logo-wrap {
  position: relative;
  --bass-glow: 0.12;
  --bass-scale: 1;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 0;
  border-radius: 12px;
  background: #000;
  box-shadow:
    0 0 46px rgba(201, 168, 255, var(--bass-glow)),
    0 0 140px rgba(127, 255, 232, 0.035);
  cursor: pointer;
  will-change: transform, filter;
  animation: logoFloat 8.8s ease-in-out infinite;
}

.logo-wrap:focus-visible {
  outline: 2px solid rgba(201, 168, 255, 0.78);
  outline-offset: 6px;
}

.logo-wrap.is-charging {
  box-shadow:
    0 0 70px rgba(201, 168, 255, 0.2),
    0 0 170px rgba(127, 255, 232, 0.06);
}

.logo-wrap.is-stable {
  animation: none;
  transform: none;
  filter: none;
}

.logo-wrap.is-long-chaos {
  box-shadow:
    0 0 74px rgba(201, 168, 255, 0.24),
    0 0 190px rgba(127, 255, 232, 0.07);
}

.logo-wrap img {
  width: 100%;
  border-radius: 10px;
  opacity: 0;
  filter:
    contrast(1.2)
    brightness(0.7)
    drop-shadow(0 0 12px rgba(201, 168, 255, 0.16));
  transition:
    opacity 260ms ease,
    filter 260ms ease;
}

.logo-wrap.is-assembled img {
  opacity: 1;
  filter:
    contrast(1.12)
    brightness(1.1)
    drop-shadow(0 0 18px rgba(201, 168, 255, 0.24));
}

.logo-particles {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  perspective: 900px;
}

.logo-particle {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(100% / var(--cols));
  height: calc(100% / var(--rows));
  background-image: url("assets/logo.jpg");
  background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
  background-position: var(--bg-x) var(--bg-y);
  opacity: 0.22;
  filter:
    contrast(1.08)
    brightness(0.68);
  transform:
    translate3d(var(--scatter-x), var(--scatter-y), var(--scatter-z))
    rotate(var(--scatter-r))
    scale(var(--scatter-scale));
  transition:
    opacity 1800ms ease,
    filter 1800ms ease,
    transform 3200ms cubic-bezier(0.2, 0.72, 0.18, 1);
  will-change: transform, opacity;
}

.logo-wrap.is-assembled .logo-particle {
  opacity: 0;
  filter:
    contrast(1.08)
    brightness(1.02);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.logo-wrap.is-assembling .logo-particle {
  transition:
    opacity 300ms ease,
    filter 300ms ease,
    transform 300ms cubic-bezier(0.18, 0.9, 0.24, 1);
}

.logo-wrap.is-assembling .logo-particle {
  opacity: 1;
}

.logo-wrap.is-charging .logo-particle {
  opacity: 0.76;
  filter:
    contrast(1.14)
    brightness(1.18);
  transform:
    translate3d(
      calc(var(--scatter-x) * 0.28),
      calc(var(--scatter-y) * 0.28),
      calc(var(--scatter-z) * 0.18)
    )
    rotate(calc(var(--scatter-r) * 0.22))
    scale(1.04);
}

.logo-wrap.is-stable .logo-particle {
  transition: none;
  opacity: 0;
  filter:
    contrast(1.08)
    brightness(1.02);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.logo-wrap.is-long-chaos .logo-particle {
  opacity: 0.96;
  filter:
    contrast(1.12)
    brightness(1.08);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  transition:
    opacity 80ms linear,
    filter 80ms linear;
}

.logo-matrix {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.02rem, 0.45vw, 0.42rem);
  color: rgba(201, 168, 255, 0.76);
  font-family: "Inter", monospace;
  font-size: clamp(1.7rem, 5.6vw, 4.3rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  opacity: 0.34;
  pointer-events: none;
  text-shadow:
    0 0 8px rgba(201, 168, 255, 0.38),
    0 0 22px rgba(127, 255, 232, 0.14);
  mix-blend-mode: screen;
  animation: logoMatrixPulse 2.4s ease-in-out infinite;
}

.logo-wrap.is-stable .logo-matrix {
  animation: none;
  opacity: 0.12;
}

.logo-letter {
  display: inline-block;
  min-width: 0.45em;
  transition:
    opacity 1100ms ease,
    transform 2600ms ease,
    filter 1200ms ease;
  will-change: transform, opacity;
}

.logo-letter.is-shuffled {
  opacity: 0.55;
  filter: blur(0.8px);
}

.logo-wrap.is-assembled .logo-matrix {
  opacity: 0.16;
}

.logo-wrap.is-assembled .logo-letter {
  filter: blur(0.35px);
}

.logo-wrap.is-assembling .logo-letter {
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    filter 300ms ease;
}

.logo-wrap.is-stable .logo-letter {
  transition: none;
  opacity: 0.2;
  filter: blur(0.35px);
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.logo-wrap.is-long-chaos .logo-letter {
  opacity: 0;
  transition: opacity 160ms ease;
}

.label {
  margin: 0 0 12px;
  color: rgba(246, 243, 236, 0.58);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
}

.text {
  max-width: 460px;
  margin: 0 auto;
  color: rgba(246, 243, 236, 0.78);
  font-size: clamp(1.05rem, 2.8vw, 1.32rem);
  line-height: 1.7;
}

.ours {
  margin: 20px 0 0;
  color: #c9a8ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: accentColorFlow 10s ease-in-out infinite;
}

.release {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(100%, 520px);
  margin: 28px auto 0;
  padding: 12px;
  border: 1px solid rgba(174, 144, 255, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(174, 144, 255, 0.13), rgba(111, 132, 255, 0.065)),
    rgba(66, 44, 124, 0.18);
  text-align: left;
  will-change: transform, box-shadow;
  animation: releaseFloat 8s ease-in-out infinite;
}

.release-cover {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  cursor: zoom-in;
  box-shadow:
    0 0 30px rgba(174, 144, 255, 0.18),
    0 18px 46px rgba(0, 0, 0, 0.42);
  animation: coverGlow 5.5s ease-in-out infinite;
}

.cover-preview {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cover-preview.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cover-preview img {
  width: auto;
  height: auto;
  max-width: min(92vw, 920px);
  max-height: calc(100vh - 36px);
  border-radius: 28px;
  opacity: 0.18;
  cursor: zoom-out;
  object-fit: contain;
  animation:
    coverBreath 7.2s ease-in-out infinite,
    coverOpacityDrift 11.7s ease-in-out infinite;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.72);
}

body.cover-open::after {
  opacity: 0.78;
}

body.cover-open .hero,
body.cover-open .player-button,
body.cover-open .native-player {
  filter: blur(5px) brightness(0.64);
}

.release-date {
  margin: 0;
  color: #c9a8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: accentColorFlow 11s ease-in-out infinite;
}

.release-title {
  margin: 8px 0 0;
  color: rgba(246, 243, 236, 0.88);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 700;
}

.presave {
  width: min(100%, 520px);
  margin: 18px auto 0;
  text-align: center;
}

.presave-title {
  margin: 0 0 10px;
  color: rgba(201, 168, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: accentColorFlow 12s ease-in-out infinite;
}

.presave-title span {
  display: inline-block;
  transform-origin: 50% 70%;
  animation: presaveLetterWave 6.4s ease-in-out infinite;
}

.presave-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.presave-links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(146, 172, 255, 0.3);
  border-radius: 999px;
  color: rgba(246, 243, 236, 0.78);
  background:
    linear-gradient(135deg, rgba(111, 132, 255, 0.13), rgba(127, 255, 232, 0.045)),
    rgba(52, 43, 118, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 220ms ease;
  animation: presaveButtonBreath 5.8s ease-in-out infinite;
}

.presave-links a:nth-child(2) {
  animation-delay: 360ms;
}

.presave-links a:nth-child(3) {
  animation-delay: 720ms;
}

.presave-links a:nth-child(4) {
  animation-delay: 1080ms;
}

.presave-links a > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presave-links a:hover,
.presave-links a:focus-visible {
  outline: none;
  border-color: rgba(146, 172, 255, 0.64);
  color: #f6f3ec;
  transform: translateY(-1px) scale(1.01);
  background:
    linear-gradient(135deg, rgba(146, 172, 255, 0.18), rgba(127, 255, 232, 0.075)),
    rgba(52, 43, 118, 0.24);
  box-shadow: 0 0 26px rgba(111, 132, 255, 0.22);
}

.presave-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  line-height: 0;
  overflow: visible;
}

.presave-icon img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.presave-note {
  max-width: 360px;
  margin: 10px auto 0;
  color: rgba(246, 243, 236, 0.54);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
}

.player-button {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  color: #c9a8ff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: clamp(9rem, 28vw, 22rem);
  font-weight: 900;
  line-height: 0.8;
  -webkit-text-stroke: clamp(8px, 1.25vw, 18px) #010201;
  paint-order: stroke fill;
  text-shadow:
    0 0 6px #010201,
    0 0 14px #010201,
    0 0 34px rgba(201, 168, 255, 0.58),
    0 0 90px rgba(127, 255, 232, 0.18),
    0 28px 80px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%);
  transition:
    opacity 220ms ease,
    text-shadow 160ms ease;
  will-change: opacity, text-shadow, transform;
  pointer-events: auto;
  animation:
    playPulse 2.8s ease-in-out infinite,
    accentColorFlow 8s ease-in-out infinite;
}

body:not(.is-playback-active) .presave-links a,
body:not(.is-playback-active) .logo-wrap,
body:not(.is-playback-active) .release-cover {
  pointer-events: none;
}

.player-button:hover,
.player-button:focus-visible {
  outline: none;
  text-shadow:
    0 0 48px rgba(201, 168, 255, 0.78),
    0 0 120px rgba(127, 255, 232, 0.26),
    0 28px 80px rgba(0, 0, 0, 0.7);
}

.play-icon {
  display: block;
  padding-left: 0.08em;
  color: currentColor;
  font-size: 1em;
  line-height: 1;
}

.player-button.is-playing {
  inset: auto 24px 24px auto;
  font-size: 3.4rem;
  -webkit-text-stroke-width: 6px;
  transform: none;
  opacity: 0;
  pointer-events: none;
  animation: smallPulse 3.2s ease-in-out infinite;
}

.player-button.is-playing:hover,
.player-button.is-playing:focus-visible {
  transform: translateY(-1px);
}

.player-button.is-playing .play-icon {
  font-size: 1em;
}

.transport-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 21;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 34px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.transport-button:first-child {
  grid-column: 1;
  justify-self: start;
}

.transport-button:last-child {
  grid-column: 3;
  justify-self: end;
}

body.is-playback-active .transport-controls {
  opacity: 1;
  pointer-events: none;
  transform: none;
}

body.is-playback-active .player-button {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.transport-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #c9a8ff;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  font: inherit;
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 0.9;
  -webkit-text-stroke: 3px #010201;
  paint-order: stroke fill;
  text-shadow:
    0 0 5px #010201,
    0 0 18px rgba(201, 168, 255, 0.46);
  transition:
    opacity 160ms ease,
    text-shadow 160ms ease,
    transform 160ms ease;
}

.transport-button:hover,
.transport-button:focus-visible {
  outline: none;
  text-shadow:
    0 0 5px #010201,
    0 0 28px rgba(201, 168, 255, 0.68);
  transform: translateY(-1px);
}

.transport-button:disabled,
.transport-button.is-disabled {
  cursor: default;
  opacity: 0.38;
  transform: none;
}

.now-playing {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: rgba(246, 243, 236, 0.44);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.native-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 19;
  width: min(520px, calc(100vw - 32px));
  margin: 0 auto;
  opacity: 0.78;
  filter: invert(1) hue-rotate(245deg) saturate(1.25);
}

.visit-counter {
  position: fixed;
  right: 14px;
  top: 12px;
  z-index: 12;
  display: inline-flex;
  gap: 10px;
  color: rgba(246, 243, 236, 0.32);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.visit-counter b {
  color: rgba(201, 168, 255, 0.5);
  font-weight: 700;
}

.matrix-text {
  text-shadow: 0 0 14px rgba(201, 168, 255, 0.18);
}

.matrix-text.is-matrixing {
  color: #c9a8ff;
  text-shadow:
    0 0 12px rgba(201, 168, 255, 0.54),
    0 0 30px rgba(127, 255, 232, 0.18);
}

.label.matrix-text.is-matrixing,
.text.matrix-text.is-matrixing,
.release-title.matrix-text.is-matrixing,
.now-playing.matrix-text.is-matrixing {
  animation: accentColorFlow 10s ease-in-out infinite;
}

.matrix-text.is-readable {
  text-shadow:
    0 0 18px rgba(246, 243, 236, 0.22),
    0 0 34px rgba(201, 168, 255, 0.24);
}

@keyframes neonDrift {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(-1.5%, -1%, 0) rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.62;
    transform: translate3d(1.5%, 1%, 0) rotate(6deg) scale(1.03);
  }
}

@keyframes auraHueShift {
  0%,
  100% {
    filter: blur(34px) hue-rotate(0deg) saturate(1);
  }
  50% {
    filter: blur(38px) hue-rotate(22deg) saturate(1.18);
  }
}

@keyframes accentColorFlow {
  0%,
  100% {
    color: #c9a8ff;
  }
  42% {
    color: #f0c7ff;
  }
  72% {
    color: #7fffe8;
  }
}

@keyframes scanlinesFloat {
  to {
    background-position: 0 28px;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow:
      0 34px 110px rgba(0, 0, 0, 0.62),
      inset 0 0 92px rgba(183, 139, 255, 0.04);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.006);
    box-shadow:
      0 48px 134px rgba(0, 0, 0, 0.66),
      inset 0 0 124px rgba(201, 168, 255, 0.065);
  }
}

@keyframes borderColorFlow {
  0%,
  100% {
    border-color: rgba(201, 168, 255, 0.32);
  }
  45% {
    border-color: rgba(127, 255, 232, 0.28);
  }
  72% {
    border-color: rgba(240, 199, 255, 0.36);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(var(--bass-scale));
    filter: brightness(1) saturate(1);
  }
  50% {
    transform: translate3d(0, 7px, 0) rotate(-0.18deg) scale(calc(var(--bass-scale) * 1.008));
    filter: brightness(1.1) saturate(1.08);
  }
}

@keyframes logoMatrixPulse {
  0%,
  100% {
    opacity: 0.18;
    transform: translate3d(-1px, 0, 0);
  }
  50% {
    opacity: 0.38;
    transform: translate3d(1px, 0, 0);
  }
}

@keyframes releaseFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 0 0 rgba(174, 144, 255, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0) scale(1.006);
    box-shadow: 0 0 48px rgba(174, 144, 255, 0.16);
  }
}

@keyframes coverGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 30px rgba(174, 144, 255, 0.18),
      0 18px 46px rgba(0, 0, 0, 0.42);
  }
  50% {
    transform: scale(1.025);
    box-shadow:
      0 0 48px rgba(174, 144, 255, 0.26),
      0 18px 52px rgba(0, 0, 0, 0.46);
  }
}

@keyframes coverBreath {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1) contrast(1.04);
  }
  50% {
    transform: scale(1.035);
    filter: brightness(1.12) contrast(1.08);
  }
}

@keyframes coverOpacityDrift {
  0%,
  100% {
    opacity: 0.18;
  }
  37% {
    opacity: 0.82;
  }
  68% {
    opacity: 0.34;
  }
}

@keyframes softBlink {
  0%,
  100% {
    opacity: 0.78;
    text-shadow: 0 0 16px rgba(201, 168, 255, 0.3);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 28px rgba(127, 255, 232, 0.28);
  }
}

@keyframes presaveLetterWave {
  0%,
  58%,
  100% {
    transform: translateY(0) scale(1);
  }
  64% {
    transform: translateY(-1px) scale(1.11);
  }
  70% {
    transform: translateY(0) scale(1);
  }
}

@keyframes presaveButtonBreath {
  0%,
  72%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 18px rgba(111, 132, 255, 0.13);
  }
  80% {
    transform: translateY(-1px) scale(1.018);
    box-shadow:
      0 0 24px rgba(111, 132, 255, 0.2),
      0 0 34px rgba(127, 255, 232, 0.08);
  }
  88% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 18px rgba(111, 132, 255, 0.13);
  }
}

@keyframes playPulse {
  0%,
  100% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1);
    text-shadow:
      0 0 6px #010201,
      0 0 14px #010201,
      0 0 34px rgba(201, 168, 255, 0.58),
      0 0 90px rgba(127, 255, 232, 0.18),
      0 28px 80px rgba(0, 0, 0, 0.7);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.035);
    text-shadow:
      0 0 6px #010201,
      0 0 16px #010201,
      0 0 48px rgba(201, 168, 255, 0.82),
      0 0 130px rgba(127, 255, 232, 0.24),
      0 28px 80px rgba(0, 0, 0, 0.7);
  }
}

@keyframes smallPulse {
  0%,
  100% {
    opacity: 0.78;
    text-shadow:
      0 0 4px #010201,
      0 0 10px #010201,
      0 0 22px rgba(201, 168, 255, 0.54);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 4px #010201,
      0 0 12px #010201,
      0 0 40px rgba(127, 255, 232, 0.32);
  }
}

@media (max-width: 640px) {
  .page {
    min-height: 100svh;
    padding: 58px 14px 14px;
    place-items: start center;
    align-items: start;
  }

  .visit-counter {
    left: auto;
    right: 10px;
    top: 10px;
    transform: none;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    opacity: 0.72;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px 22px;
    border-radius: 22px;
    transform: none;
  }

  .hero > * {
    flex-shrink: 0;
  }

  .logo-wrap {
    max-width: 100%;
    margin-bottom: 14px;
  }

  .topline {
    margin-bottom: 14px;
  }

  .release {
    margin-top: 14px;
  }

  .presave {
    margin-top: 10px;
  }

  .presave-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presave-links a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(146, 172, 255, 0.34);
    background:
      linear-gradient(135deg, rgba(111, 132, 255, 0.14), rgba(127, 255, 232, 0.05)),
      rgba(52, 43, 118, 0.2);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    box-shadow: 0 0 18px rgba(111, 132, 255, 0.13);
  }

  .presave-icon {
    display: block;
    flex-basis: 24px !important;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    overflow: visible;
  }

  .presave-icon img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }

  .now-playing {
    margin-top: 10px;
    letter-spacing: 0.04em;
  }

  .release {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
  }

  .release-cover {
    width: 86px;
    border-radius: 12px;
  }

  .topline,
  .label,
  .ours,
  .release-date,
  .player-button {
    letter-spacing: 0.18em;
  }

  .native-player {
    bottom: env(safe-area-inset-bottom, 0px);
  }

  .player-button.is-playing {
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 54px);
  }

  .transport-controls {
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 64px);
    padding: 0 22px;
  }

  .transport-button {
    font-size: 1.34rem;
    -webkit-text-stroke-width: 2px;
  }

}

@media (max-width: 430px) {
  .presave-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) and (max-height: 740px) {
  .page {
    padding: 40px 10px 10px;
  }

  .visit-counter {
    top: 8px;
    font-size: 0.54rem;
    gap: 7px;
  }

  .hero {
    padding: 12px 12px 14px;
    border-radius: 18px;
  }

  .topline {
    margin-bottom: 8px;
    font-size: 0.62rem;
  }

  .logo-wrap {
    max-width: 88%;
    margin-bottom: 8px;
  }

  .label {
    margin-bottom: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.24em;
  }

  .text {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .release {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
    padding: 9px;
    border-radius: 18px;
  }

  .release-cover {
    width: 68px;
    border-radius: 10px;
  }

  .release-date {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .release-title {
    margin-top: 5px;
    font-size: 0.98rem;
  }

  .presave {
    margin-top: 8px;
  }

  .presave-title {
    margin-bottom: 7px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .presave-links {
    gap: 6px;
  }

  .presave-links a {
    min-height: 34px;
    padding: 5px 10px;
    gap: 8px;
    font-size: 0.64rem;
  }

  .presave-icon {
    flex-basis: 22px !important;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }

  .presave-icon img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }

  .ours {
    margin-top: 10px;
    font-size: 0.66rem;
  }

  .now-playing {
    margin-top: 7px;
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
