body {
  background-color: black;
  margin: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
  background-color: #0a0a0a;
  border-bottom: 2px solid blue;
  box-shadow: 0 0 15px blue;
  z-index: 10;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.1em;
  transition: color 0.3s, text-shadow 0.3s, transform 0.2s;
}

nav a:hover {
  color: red;
  text-shadow: 0 0 10px red;
}
h1 {
  color: red;
  font-weight: bold;
  text-align: center;
  margin-top: 120px;
  font-size: 3em;
  font-family: 'Audiowide', sans-serif;
  -webkit-text-stroke: 1px blue;
  text-shadow: 0 0 10px blue, 0 0 20px blue;
  transition: transform 0.3s, text-shadow 0.3s;
}

h1:hover {
  transform: scale(1.1);
  text-shadow: 0 0 15px red, 0 0 30px blue, 0 0 50px blue;
  cursor: pointer;
}

/* ===== music page ===== */

/* slowly moving red/blue glow in the background */
.music-page::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.25), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 255, 0.3), transparent 40%);
  animation: glow-move 12s ease-in-out infinite alternate;
}

/* soft spotlight that follows the mouse (position set in music.js) */
.music-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 255, 255, 0.07), transparent 60%);
}

/* ===== retro neon background scene ===== */
.scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  perspective: 400px;
  perspective-origin: calc(50% - var(--nx, 0) * 300px) 50%;
  background: linear-gradient(to bottom, #050008 0%, #1a0012 58%, #00000f 58%, black 100%);
  transition: perspective 0.6s;
}

/* lightning flash lights up the sky (bolt is drawn in music.js) */
.scene::after {
  content: "";
  position: absolute;
  inset: 0 0 42% 0;
  background: rgba(150, 150, 255, 0.25);
  opacity: 0;
  transition: opacity 0.1s;
}

.scene.flash::after {
  opacity: 1;
}

/* glowing aurora waves in the sky */
.aurora {
  position: absolute;
  inset: -10% -10% 45% -10%;
  background:
    radial-gradient(ellipse 40% 30% at 30% 50%, rgba(255, 0, 80, 0.35), transparent),
    radial-gradient(ellipse 35% 25% at 70% 40%, rgba(60, 0, 255, 0.4), transparent),
    radial-gradient(ellipse 30% 20% at 50% 70%, rgba(255, 0, 200, 0.2), transparent);
  filter: blur(40px);
  animation: aurora 14s ease-in-out infinite alternate;
}

/* neon mountains on the horizon (made in music.js) */
.mountains {
  position: absolute;
  top: 58%;
  left: -10%;
  width: 120%;
  transform: translateY(-100%);
}

.mountains path {
  fill: #07000c;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mountains.far {
  height: 18vh;
  translate: calc(var(--nx, 0) * -60px) 0;
  opacity: 0.8;
}

.mountains.far path {
  filter: drop-shadow(0 0 6px blue);
}

.mountains.near {
  height: 11vh;
  translate: calc(var(--nx, 0) * -120px) 0;
}

.mountains.near path {
  filter: drop-shadow(0 0 6px red);
}

/* the sun shining on the floor */
.sun-reflection {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 360px;
  height: 220px;
  transform: translateX(-50%);
  translate: calc(var(--nx, 0) * -40px) 0;
  background: linear-gradient(to bottom, rgba(255, 0, 100, 0.55), rgba(64, 32, 255, 0.2) 60%, transparent);
  filter: blur(6px);
  -webkit-mask-image: repeating-linear-gradient(to bottom, black 0 6px, transparent 6px 14px);
  mask-image: repeating-linear-gradient(to bottom, black 0 6px, transparent 6px 14px);
  animation: shimmer 2s ease-in-out infinite alternate;
}

/* rings that spread over the floor when you click it */
.ripple {
  position: absolute;
  border: 2px solid;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 1.2s ease-out forwards;
}

/* old TV scanlines + dark corners on top of everything */
.crt {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

/* hold the mouse down on the background = warp speed */
.warp {
  user-select: none;
}

.warp .scene {
  perspective: 220px;
}

.warp .grid-floor {
  animation-duration: 0.12s;
}

.warp .sun,
.warp .sun-glow {
  scale: 0.8;
}

/* twinkling stars in the sky */
.stars {
  position: absolute;
  inset: 0 0 42% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, white, transparent),
    radial-gradient(1px 1px at 25% 65%, white, transparent),
    radial-gradient(1.5px 1.5px at 40% 35%, #aab, transparent),
    radial-gradient(1px 1px at 55% 80%, white, transparent),
    radial-gradient(2px 2px at 70% 15%, white, transparent),
    radial-gradient(1px 1px at 85% 50%, #ccf, transparent),
    radial-gradient(1.5px 1.5px at 95% 85%, white, transparent),
    radial-gradient(1px 1px at 5% 90%, #fcc, transparent);
  background-size: 350px 250px;
  translate: calc(var(--nx, 0) * -15px) calc(var(--ny, 0) * -10px);
  animation: twinkle 3s ease-in-out infinite alternate;
}

/* shooting stars */
.shooting-star {
  position: absolute;
  top: 8%;
  left: 85%;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, white);
  transform-origin: left center;
  opacity: 0;
  animation: shoot 7s linear infinite;
}

.shooting-star + .shooting-star {
  top: 20%;
  left: 55%;
  animation-delay: 3.5s;
  animation-duration: 9s;
}

/* striped neon sun on the horizon */
.sun {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  transform: translate(-50%, -88%);
  translate: calc(var(--nx, 0) * -40px) calc(var(--ny, 0) * -15px);
  background: linear-gradient(to bottom, #ff0033, #ff0080 50%, #4020ff);
  -webkit-mask-image: linear-gradient(black 50%, transparent 50%), repeating-linear-gradient(black 0 16px, transparent 16px 24px);
  mask-image: linear-gradient(black 50%, transparent 50%), repeating-linear-gradient(black 0 16px, transparent 16px 24px);
  opacity: 0.85;
  transition: opacity 0.5s, scale 0.6s;
}

/* soft glow behind the sun */
.sun-glow {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  transform: translate(-50%, -60%);
  translate: calc(var(--nx, 0) * -40px) calc(var(--ny, 0) * -15px);
  background: radial-gradient(circle, rgba(255, 0, 80, 0.45), rgba(80, 0, 255, 0.15) 45%, transparent 70%);
}

/* moving neon grid floor */
.grid-floor {
  position: absolute;
  top: 58%;
  left: -50%;
  width: 200%;
  height: 120%;
  transform-origin: top center;
  transform: rotateX(75deg);
  background-image:
    linear-gradient(rgba(255, 0, 60, 0.7) 2px, transparent 2px),
    linear-gradient(90deg, rgba(60, 60, 255, 0.7) 2px, transparent 2px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%);
  mask-image: linear-gradient(to bottom, transparent, black 25%);
  animation: grid-move 1.2s linear infinite;
}

/* glowing horizon line */
.horizon {
  position: absolute;
  top: 58%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, red, #ff00aa, blue, transparent);
  box-shadow: 0 0 20px red, 0 0 40px blue;
}

/* while a song plays the grid races and the sun pulses */
.is-playing .grid-floor {
  animation-duration: 0.4s;
}

.is-playing .sun {
  opacity: 1;
}

.is-playing .sun-glow {
  animation: sun-pulse 0.6s ease-in-out infinite alternate;
}

/* ===== virtual pet "Beat" ===== */
/* position is set in music.js (corner, or under the playing card) */
.pet {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 35;
  width: 130px;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(255, 0, 64, 0.6));
}

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

.pet-face,
.pet-belly {
  fill: #16001f;
  stroke-width: 3;
}

.pet-face {
  stroke: #ff0040;
}

.pet-belly {
  stroke: #4040ff;
}

.pet-foot {
  fill: #4040ff;
}

.pet-band {
  fill: none;
  stroke: #4040ff;
  stroke-width: 6;
  stroke-linecap: round;
}

.pet-cup {
  fill: #ff0040;
}

.pet-eye {
  fill: white;
}

.pupil {
  fill: #16001f;
}

.pet-happy-eyes path,
.pet-sleep-eyes path,
.pet-smile {
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
}

.pet-cheek {
  fill: #ff0080;
  opacity: 0.5;
}

.pet-mouth-open {
  fill: #ff0040;
}

.pet-shadow {
  fill: rgba(255, 0, 64, 0.35);
}

.pet-happy-eyes,
.pet-sleep-eyes,
.pet-mouth-open {
  display: none;
}

.pet-head,
.pet-body,
.pet-eyes,
.pet-shadow {
  transform-box: fill-box;
}

/* idle: gently floats */
.pet-head {
  transform-origin: 50% 95%;
  animation: pet-float 3s ease-in-out infinite alternate;
}

.pet-body {
  transform-origin: 50% 100%;
}

.pet-eyes {
  transform-origin: center;
  transition: transform 0.08s;
}

.pet.blink .pet-eyes {
  transform: scaleY(0.1);
}

/* music on: head-bangs, bounces, happy eyes, open mouth */
.is-playing .pet-head {
  animation: pet-headbang 0.4s ease-in-out infinite alternate;
}

.is-playing .pet-body {
  animation: pet-bounce 0.4s ease-in-out infinite alternate;
}

.is-playing .pet-shadow {
  transform-origin: center;
  animation: pet-shadow 0.4s ease-in-out infinite alternate;
}

.is-playing .pet-eyes,
.is-playing .pet-smile {
  display: none;
}

.is-playing .pet-happy-eyes,
.is-playing .pet-mouth-open {
  display: inline;
}

/* falls asleep when nothing happens for a while */
.pet.sleeping .pet-eyes {
  display: none;
}

.pet.sleeping .pet-sleep-eyes {
  display: inline;
}

.pet.sleeping .pet-head {
  animation: pet-snooze 2.5s ease-in-out infinite alternate;
}

.pet-svg.jump {
  animation: pet-jump 0.5s ease-out;
}

/* big jump to flip the card when a song stops */
.pet-svg.flip-jump {
  transform-origin: 50% 100%;
  animation: pet-flip-jump 0.9s ease-in-out;
}

/* waddles while walking to a card */
.pet.walking .pet-svg {
  transform-origin: 50% 100%;
  animation: pet-waddle 0.25s ease-in-out infinite alternate;
}

/* speech bubble */
.pet-bubble {
  position: absolute;
  right: 10px;
  bottom: 100%;
  margin-bottom: 6px;
  padding: 8px 12px;
  border: 1px solid #ff0040;
  border-radius: 12px;
  background: #0a0a0a;
  color: white;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.75em;
  white-space: nowrap;
  box-shadow: 0 0 10px red;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.pet-bubble.show {
  opacity: 1;
  transform: none;
}

.pet-bubble::after {
  content: "";
  position: absolute;
  right: 40px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #ff0040;
}

/* music notes, hearts and z's that float up */
.pet-note {
  position: absolute;
  left: 45%;
  top: 20%;
  font-size: 1.4em;
  text-shadow: 0 0 8px currentColor;
  pointer-events: none;
  animation: note-float 2s ease-out forwards;
}

/* floating particles (drawn in music.js) */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: -10px;
}

.subtitle p {
  margin: 0;
  color: #ccc;
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 2px;
}

/* little equalizer bars */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.eq span {
  width: 4px;
  height: 100%;
  background: red;
  box-shadow: 0 0 6px red;
  animation: eq-bounce 0.9s ease-in-out infinite alternate both;
  animation-play-state: paused;
}

/* the bars only dance while a song is playing */
.is-playing .eq span {
  animation-play-state: running;
}

.eq span:nth-child(even) {
  background: blue;
  box-shadow: 0 0 6px blue;
}

.eq span:nth-child(2) { animation-delay: 0.2s; }
.eq span:nth-child(3) { animation-delay: 0.4s; }
.eq span:nth-child(4) { animation-delay: 0.1s; }
.eq span:nth-child(5) { animation-delay: 0.3s; }

/* custom glowing cursor (made in music.js) */
.custom-cursor,
.custom-cursor * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: red;
  box-shadow: 0 0 10px red;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid blue;
  box-shadow: 0 0 10px blue;
  transition: width 0.25s, height 0.25s, margin 0.25s, border-color 0.25s, background 0.25s, opacity 0.2s;
}

.cursor-ring.active {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-color: red;
  background: rgba(255, 0, 0, 0.08);
}

.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring {
  opacity: 0;
}

/* dark blurry layer behind a zoomed card */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.no-scroll {
  overflow: hidden;
}

/* secret party mode (type "jbeat") */
.party h1,
.party .subtitle,
.party .cards {
  animation: party-hue 0.8s linear infinite;
}

/* ===== song cards (Pokemon card shape: 63 x 88) ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin: 50px 16px;
}

/* the card itself only tilts (tilt is set in music.js) */
.song-card {
  position: relative;
  width: 320px;
  aspect-ratio: 63 / 88;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
  animation: card-deal 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* cards get dealt one after another */
.song-card:nth-child(2) { animation-delay: 0.2s; }
.song-card:nth-child(3) { animation-delay: 0.4s; }
.song-card:nth-child(4) { animation-delay: 0.6s; }
.song-card:nth-child(5) { animation-delay: 0.8s; }

/* the flipper turns the card around */
.card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 1.4, 0.5, 1);
}

/* zoomed card flies to the middle of the screen */
.song-card.zoomed {
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.song-card.raised {
  z-index: 50;
}

/* other cards fade back while you hover one */
.cards:has(.song-card:hover) .song-card:not(:hover) .card-face {
  filter: brightness(0.45) saturate(0.6);
}

/* card picked with the arrow keys */
.song-card.selected .card-face {
  box-shadow: 0 0 0 3px white, 0 0 30px red;
}

.song-card.flipped .card-flipper {
  transform: rotateY(180deg);
}

/* front and back share the glowing red/blue frame */
.card-face {
  position: absolute;
  inset: 0;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, red, blue, red);
  background-size: 300% 300%;
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow 0.3s, filter 0.3s;
  animation: border-flow 6s linear infinite alternate;
}

.card-back {
  transform: rotateY(180deg);
}

.song-card:hover .card-face {
  box-shadow: 0 0 30px red, 0 25px 50px rgba(0, 0, 0, 0.8);
}

/* rainbow holo foil that shifts with the mouse (position set in music.js) */
.card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, #ff0040 0%, #ff00d4 8%, #3c3cff 16%, #00e5ff 24%, #a200ff 32%, #ff0040 40%);
  background-size: 300% 300%;
  background-position: var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s;
}

/* bright glare that follows the mouse */
.card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.3), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.song-card:hover .card-face::before {
  opacity: 0.5;
}

.song-card:hover .card-face::after {
  opacity: 1;
}

.card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #111;
  border-radius: 10px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-family: 'Audiowide', sans-serif;
  color: white;
}

.card-name {
  flex: 1;
  font-size: 0.9em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-number {
  color: red;
  font-size: 0.8em;
  text-shadow: 0 0 6px red;
}

/* round buttons that flip / zoom the card */
.flip-btn,
.inspect-btn {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid #555;
  border-radius: 50%;
  background: #1a1a1a;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.4s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.flip-btn:hover,
.inspect-btn:hover {
  transform: rotate(180deg);
  color: red;
  border-color: red;
  box-shadow: 0 0 10px red;
}

.inspect-btn:hover {
  transform: scale(1.2);
}

.card-art {
  flex: 1;
  margin: 0 10px;
  border: 2px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

.card-art iframe {
  display: block;
}

/* song progress bar (click it to jump in the song) */
.card-progress {
  position: relative;
  z-index: 4;
  height: 5px;
  margin: 10px 10px 0;
  background: #222;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: height 0.2s;
}

.card-progress:hover {
  height: 9px;
}

.card-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, red, blue);
  box-shadow: 0 0 8px red;
  transition: width 0.25s linear;
}

.card-footer {
  position: relative;
  z-index: 4;
  padding: 8px 12px 10px;
  text-align: center;
}

.card-footer a,
.back-info a {
  color: #ccc;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.8em;
  text-decoration: none;
}

.card-footer a:hover,
.back-info a:hover {
  color: red;
}

/* back of the card */
.card-back img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}

.back-info {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  font-family: 'Audiowide', sans-serif;
  color: white;
  text-align: center;
}

.back-number {
  color: red;
  font-size: 2em;
  text-shadow: 0 0 10px red, 0 0 20px blue;
}

.card-back .flip-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* the card that is playing pulses and its frame flows faster */
.song-card.playing .card-face {
  animation: border-flow 1.5s linear infinite alternate, pulse 0.8s ease-in-out infinite alternate;
}

.song-card.playing .card-footer a {
  display: none;
}

.song-card.playing .card-footer::before {
  content: "\25CF  NOW PLAYING";
  color: red;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.8em;
  text-shadow: 0 0 8px red;
  animation: blink 1s ease-in-out infinite alternate;
}

/* ===== live visitor counter (made in visitors.js) ===== */
.visitor-counter {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 36;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(80, 80, 255, 0.7);
  border-radius: 20px;
  background: rgba(10, 0, 20, 0.8);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(0, 0, 255, 0.5);
  color: #ccc;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.75em;
  letter-spacing: 1px;
}

.visitor-counter.ready {
  display: flex;
}

/* pulsing "live" dot */
.vc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: red;
  box-shadow: 0 0 8px red;
  animation: blink 1s ease-in-out infinite alternate;
}

.vc-number {
  color: white;
  text-shadow: 0 0 6px red;
}

.vc-number.bump {
  animation: vc-bump 0.5s ease-out;
}

.vc-sep {
  width: 1px;
  height: 12px;
  margin: 0 4px;
  background: #555;
}

/* ===== home page ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  text-align: center;
}

.home-kicker {
  margin: 130px 0 0;
  color: #ccc;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.9em;
  letter-spacing: 6px;
  text-transform: uppercase;
}

/* giant logo with red/blue glitch copies */
.home-title {
  position: relative;
  margin: 10px 0 0;
  font-size: clamp(2.6em, 9vw, 6em);
}

.home-title::before,
.home-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 0;
  text-shadow: none;
  pointer-events: none;
}

.home-title::before {
  color: blue;
  animation: glitch-a 3s steps(1) infinite;
}

.home-title::after {
  color: red;
  animation: glitch-b 2.5s steps(1) infinite;
}

.home-tagline {
  margin: 6px 0 0;
  color: white;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.1em;
  letter-spacing: 4px;
  text-shadow: 0 0 10px blue;
}

/* bouncing bars (made in home.js) */
.visualizer {
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(600px, 100%);
  height: 80px;
  margin: 30px 0;
}

.visualizer span {
  flex: 1;
  height: 35%;
  border-radius: 3px;
  background: linear-gradient(to top, red, #ff00aa, blue);
  box-shadow: 0 0 8px rgba(255, 0, 100, 0.6);
  animation: vis-bounce 1s ease-in-out infinite alternate;
  transition: height 0.2s ease-out;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.home-btn {
  position: relative;
  overflow: hidden;
  padding: 16px 30px;
  border-radius: 12px;
  color: white;
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 2px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
}

.home-btn:hover {
  transform: translateY(-3px);
}

.home-btn.primary {
  background: linear-gradient(90deg, red, blue);
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.6);
}

.home-btn.primary:hover {
  box-shadow: 0 0 35px red, 0 0 60px blue;
}

.home-btn.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3s ease-in-out infinite;
}

.home-btn.secondary {
  border: 2px solid blue;
  background: rgba(10, 0, 20, 0.6);
  box-shadow: 0 0 15px rgba(0, 0, 255, 0.5);
}

.home-btn.secondary:hover {
  border-color: red;
  box-shadow: 0 0 25px red;
}

/* Beat sits next to the buttons on the home page */
.pet.home-pet {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
  width: 100px;
}

/* song preview cards */
.home-latest {
  margin: 110px 16px 80px;
  text-align: center;
}

.home-heading {
  margin: 0 0 36px;
  color: white;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.8em;
  letter-spacing: 3px;
  text-shadow: 0 0 10px red, 0 0 20px blue;
}

.home-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}

.mini-card {
  position: relative;
  overflow: hidden;
  width: 200px;
  aspect-ratio: 63 / 88;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(135deg, red, blue, red);
  background-size: 300% 300%;
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.5);
  text-decoration: none;
  transition: transform 0.3s ease-out, box-shadow 0.3s;
  animation: border-flow 6s linear infinite alternate;
}

.mini-card:hover {
  box-shadow: 0 0 30px red, 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* holo shine that follows the mouse */
.mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.mini-card:hover::after {
  opacity: 1;
}

.mini-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  font-family: 'Audiowide', sans-serif;
}

.mini-inner img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
}

.mini-number {
  margin-top: 10px;
  color: red;
  font-size: 1.3em;
  text-shadow: 0 0 10px red;
}

.mini-name {
  padding: 4px 8px 14px;
  color: white;
  font-size: 0.85em;
}

.home-more {
  display: inline-block;
  margin-top: 36px;
  color: #ccc;
  font-family: 'Audiowide', sans-serif;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.home-more:hover {
  color: red;
  text-shadow: 0 0 10px red;
}

/* ===== about page ===== */

/* sections slide in when scrolled to (about.js adds "visible") */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.about-heading {
  margin: 0 0 18px;
  color: white;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.6em;
  letter-spacing: 2px;
  text-shadow: 0 0 10px red, 0 0 20px blue;
}

.about-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 16px;
}

/* trading-card style profile */
.profile-card {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 300px;
  aspect-ratio: 63 / 88;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 18px;
  background: linear-gradient(135deg, red, blue, red);
  background-size: 300% 300%;
  box-shadow: 0 0 30px rgba(0, 0, 255, 0.6);
  transition: transform 0.3s ease-out, box-shadow 0.3s;
  animation: border-flow 6s linear infinite alternate;
}

.profile-card:hover {
  box-shadow: 0 0 40px red, 0 25px 50px rgba(0, 0, 0, 0.8);
}

/* holo + glare that follow the mouse */
.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.profile-card::before {
  background: repeating-linear-gradient(115deg, #ff0040 0%, #ff00d4 8%, #3c3cff 16%, #00e5ff 24%, #a200ff 32%, #ff0040 40%);
  background-size: 300% 300%;
  background-position: var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: overlay;
}

.profile-card::after {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 45%);
}

.profile-card:hover::before {
  opacity: 0.5;
}

.profile-card:hover::after {
  opacity: 1;
}

.profile-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  font-family: 'Audiowide', sans-serif;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: white;
}

.profile-type {
  padding: 2px 8px;
  border: 1px solid red;
  border-radius: 10px;
  color: red;
  font-size: 0.65em;
  text-shadow: 0 0 6px red;
}

.profile-inner img {
  flex: 1;
  min-height: 0;
  margin: 0 10px;
  border: 2px solid #333;
  border-radius: 6px;
  object-fit: cover;
}

.profile-stats {
  padding: 10px 12px 12px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #222;
  color: #888;
  font-size: 0.75em;
}

.profile-row b {
  color: white;
  font-weight: normal;
}

.about-text {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

/* typewriter text with blinking cursor */
.typewriter {
  min-height: 7.5em;
  margin: 0 0 28px;
  color: #ddd;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.05em;
  line-height: 1.6;
}

.typewriter::after {
  content: "|";
  margin-left: 2px;
  color: red;
  animation: blink 0.6s steps(1) infinite alternate;
}

.about-text .home-btn {
  display: inline-block;
}

/* stats */
.about-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 110px 16px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  padding: 24px 0;
  border: 1px solid rgba(80, 80, 255, 0.6);
  border-radius: 16px;
  background: rgba(10, 0, 20, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.35);
  font-family: 'Audiowide', sans-serif;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px red;
}

.stat-number {
  color: red;
  font-size: 2.6em;
  text-shadow: 0 0 10px red, 0 0 20px blue;
}

.stat-label {
  margin-top: 6px;
  color: #ccc;
  font-size: 0.85em;
  letter-spacing: 2px;
}

/* songs timeline */
.about-songs {
  max-width: 600px;
  margin: 110px auto 0;
  padding: 0 16px;
  text-align: center;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 40px;
  text-align: left;
}

/* the glowing line */
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 14px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, red, blue);
  box-shadow: 0 0 10px red;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #333;
  border-radius: 12px;
  background: rgba(10, 0, 20, 0.75);
  backdrop-filter: blur(8px);
  color: white;
  font-family: 'Audiowide', sans-serif;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
  transform: translateX(10px);
  border-color: red;
  box-shadow: 0 0 20px red;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  width: 14px;
  height: 14px;
  border: 3px solid #111;
  border-radius: 50%;
  background: red;
  box-shadow: 0 0 10px red;
}

.timeline-item:hover .timeline-dot {
  background: white;
  box-shadow: 0 0 15px white, 0 0 25px red;
}

.timeline-number {
  color: red;
  text-shadow: 0 0 8px red;
}

/* meet Beat */
.about-beat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 800px;
  margin: 110px auto 100px;
  padding: 0 16px;
}

.about-beat .pet.home-pet {
  width: 150px;
}

.about-beat-text {
  flex: 1;
  min-width: 260px;
  color: #ccc;
  font-family: 'Audiowide', sans-serif;
  line-height: 1.6;
}

/* ===== contact page ===== */
.contact-sub {
  margin: -10px 16px 0;
  color: #ccc;
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 1px;
  text-align: center;
}

/* big card that links to SoundCloud */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  margin: 50px auto 80px;
  padding: 40px 28px 32px;
  border-radius: 22px;
  background: rgba(10, 0, 20, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 0, 255, 0.35), inset 0 0 30px rgba(255, 0, 64, 0.08);
  color: white;
  font-family: 'Audiowide', sans-serif;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease-out, box-shadow 0.3s;
}

/* flowing red/blue border */
.contact-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: 24px;
  background: linear-gradient(135deg, red, blue, red);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-flow 6s linear infinite alternate;
}

.contact-card:hover {
  box-shadow: 0 0 45px red, 0 0 90px rgba(0, 0, 255, 0.6);
}

/* artwork with pulsing rings */
.contact-avatar {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 10px;
}

.contact-avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid red;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px red;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border: 2px solid blue;
  border-radius: 50%;
  animation: ring-pulse 2.4s ease-out infinite;
}

.avatar-ring + .avatar-ring {
  border-color: red;
  animation-delay: 1.2s;
}

.contact-name {
  font-size: 1.8em;
  color: red;
  text-shadow: 0 0 10px blue, 0 0 20px blue;
}

.contact-handle {
  color: #aaa;
  font-size: 0.85em;
}

.contact-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 8px;
}

.step {
  padding: 8px 14px;
  border: 1px solid #444;
  border-radius: 20px;
  color: #ccc;
  font-size: 0.8em;
}

.step b {
  margin-right: 4px;
  color: red;
}

.contact-btn {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 16px 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, red, blue);
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
  font-size: 1em;
  letter-spacing: 2px;
  transition: box-shadow 0.3s;
}

.contact-card:hover .contact-btn {
  box-shadow: 0 0 35px red, 0 0 60px blue;
}

/* shine that sweeps over the button */
.contact-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3s ease-in-out infinite;
}

/* ===== animations ===== */
@keyframes glow-move {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 6%) scale(1.15); }
}

@keyframes eq-bounce {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

@keyframes card-deal {
  from { opacity: 0; transform: translateY(-250px) rotateY(180deg) rotateZ(-20deg) scale(0.5); }
  to { opacity: 1; transform: none; }
}

@keyframes border-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes pulse {
  from { box-shadow: 0 0 20px red, 0 0 40px blue; }
  to { box-shadow: 0 0 45px red, 0 0 90px blue; }
}

@keyframes grid-move {
  from { background-position: 0 0; }
  to { background-position: 0 60px; }
}

@keyframes aurora {
  from { transform: translateX(-5%) skewX(-5deg); }
  to { transform: translateX(5%) skewX(5deg) scaleY(1.2); }
}

@keyframes shimmer {
  from { scale: 0.9 1; opacity: 0.7; }
  to { scale: 1.05 1; opacity: 1; }
}

@keyframes ripple {
  from { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@keyframes pet-float {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

@keyframes pet-headbang {
  from { transform: translateY(-3px) rotate(-4deg); }
  to { transform: translateY(6px) rotate(3deg); }
}

@keyframes pet-bounce {
  from { transform: scale(1, 1); }
  to { transform: scale(1.06, 0.92); }
}

@keyframes pet-shadow {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

@keyframes pet-snooze {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(3px) rotate(-6deg); }
}

@keyframes pet-jump {
  0% { transform: translateY(0); }
  40% { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}

@keyframes pet-flip-jump {
  0% { transform: translateY(0) scale(1, 1); }
  15% { transform: translateY(4px) scale(1.15, 0.8); }
  40% { transform: translateY(-70px) rotate(-15deg) scale(0.95, 1.1); }
  55% { transform: translateY(-70px) rotate(20deg) scale(1.05, 0.95); }
  85% { transform: translateY(0) rotate(0deg) scale(1.1, 0.9); }
  100% { transform: translateY(0) scale(1, 1); }
}

@keyframes pet-waddle {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}

@keyframes note-float {
  from { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  to { transform: translate(var(--drift), -120px) rotate(var(--spin)); opacity: 0; }
}

@keyframes twinkle {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes shoot {
  0% { opacity: 0; transform: rotate(158deg) translateX(0); }
  2% { opacity: 1; }
  12% { opacity: 0; transform: rotate(158deg) translateX(600px); }
  100% { opacity: 0; transform: rotate(158deg) translateX(600px); }
}

@keyframes sun-pulse {
  from { opacity: 0.7; scale: 1; }
  to { opacity: 1; scale: 1.15; }
}

@keyframes party-hue {
  to { filter: hue-rotate(360deg); }
}

@keyframes vc-bump {
  0% { color: red; text-shadow: 0 0 12px red, 0 0 24px blue; }
  100% { color: white; text-shadow: 0 0 6px red; }
}

@keyframes vis-bounce {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

@keyframes glitch-a {
  0% { clip-path: inset(10% 0 80% 0); transform: translateX(4px); }
  4% { clip-path: inset(60% 0 20% 0); transform: translateX(-4px); }
  8% { clip-path: inset(40% 0 45% 0); transform: translateX(3px); }
  12%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
}

@keyframes glitch-b {
  0%, 50% { clip-path: inset(100% 0 0 0); transform: none; }
  52% { clip-path: inset(70% 0 10% 0); transform: translateX(-5px); }
  56% { clip-path: inset(20% 0 65% 0); transform: translateX(5px); }
  60%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
}

@keyframes ring-pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.6); opacity: 0; }
}

@keyframes btn-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.3; }
}
