body {
  animation: fadeIn 3s ease-in-out;
  -webkit-animation: fadeIn 3s ease-in-out;
}

@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: url('spiral-bg.png') center center / cover no-repeat fixed;
  font-family: 'Lora', serif;
  color: white;
  overflow-x: hidden;
  background-color: black;
}

.overlay {
  position: absolute;
  top: 50vh;
  left: 3vh;
  font-size: 32px;
  opacity: 0.5;
  z-index: 1;
  cursor: default;
}

#zodiac-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 10px;
  z-index: 1000;
  position: relative;
  transition: color .4s ease;
}

.zodiac-item {
  font-size: 32px;
  cursor: pointer;
  position: relative;
  z-index: 900;
  transition: color 0.4s ease;
  font-family: 'Lora', serif;
}

#zodiac-menu .zodiac-item:nth-child(1)  { color: rgba(255,102,102,0.75); !important; } /* Aries  #FF6666 */
#zodiac-menu .zodiac-item:nth-child(2)  { color: rgba(255,178,102,0.75); !important; } /* Taurus #FFB266 */
#zodiac-menu .zodiac-item:nth-child(3)  { color: rgba(255,224,102,0.75); !important; } /* Gemini #FFE066 */
#zodiac-menu .zodiac-item:nth-child(4)  { color: rgba(204,255,102,0.75); !important; } /* Cancer #CCFF66 */
#zodiac-menu .zodiac-item:nth-child(5)  { color: rgba(102,255,153,0.75); !important; } /* Leo    #66FF99 */
#zodiac-menu .zodiac-item:nth-child(6)  { color: rgba(102,255,255,0.75); !important; } /* Virgo  #66FFFF */
#zodiac-menu .zodiac-item:nth-child(7)  { color: rgba(102,153,255,0.75); !important; } /* Libra  #6699FF */
#zodiac-menu .zodiac-item:nth-child(8)  { color: rgba(153,102,255,0.75); !important; } /* Scorpio#9966FF */
#zodiac-menu .zodiac-item:nth-child(9)  { color: rgba(204,102,255,0.75); !important; } /* Sag    #CC66FF */
#zodiac-menu .zodiac-item:nth-child(10) { color: rgba(255,102,204,0.75); !important; } /* Cap    #FF66CC */
#zodiac-menu .zodiac-item:nth-child(11) { color: rgba(255,102,153,0.75); !important; } /* Aqua   #FF6699 */
#zodiac-menu .zodiac-item:nth-child(12) { color: rgba(153,153,153,0.75); !important; } /* Pisces #999999 */

.zodiac-tooltip {
  position: absolute;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.1);
  color: white;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;
  white-space: nowrap;
  display: none;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.zodiac-item:hover .zodiac-tooltip {
  display: block;
  color: currentColor; filter: brightness(1.2);
}

.zt-line {
  opacity: 0;
  transform: translateY(-6px);
  will-change: opacity, transform;
  animation: ztFade 0.6s ease forwards;
}

.zodiac-item:hover .zodiac-tooltip .zt-line:nth-child(1) { animation-delay: 0s; }
.zodiac-item:hover .zodiac-tooltip .zt-line:nth-child(2) { animation-delay: 0.2s; }
.zodiac-item:hover .zodiac-tooltip .zt-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes ztFade {
  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

.zt-line + .zt-line {
  margin-top: 4px;
}

#zodiac-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20vw;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  opacity: 0.12;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 3;
  pointer-events: none;
}

#now-playing {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  opacity: 0.25;
  background-color: rgba(0,0,0,0.3);
  padding: 10px 20px;
  border-radius: 12px;
  z-index: 2;
}

#play-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 2;
}

#play-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.position-432 {
  position: absolute;
  top: 50vh;
  right: 10vh;
  font-size: 20px;
  font-weight: 300;
  opacity: 0.2;
  letter-spacing: 1px;
  z-index: 2;
}

#zodiac-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: transparent;
  z-index: 5;
}

#fade-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  backdrop-filter: blur(1px);
  mix-blend-mode: multiply;
  transition: background-color 10s ease, background-image 1.5s ease;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

#progress-container {
  position: fixed;
  bottom: 20px;
  left: 25%;
  width: 50%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  z-index: 2;
  touch-action: none;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background-color: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

#location-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-family: 'Lora', serif;
  font-size: 16px;
  padding: 12px 20px;
  text-align: center;
  z-index: 9999;
}

#location-confirm {
  margin-left: 16px;
  padding: 6px 12px;
  font-size: 14px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

@media (max-width: 600px) {
  .overlay {
    font-size: 30px;
    top: 40vh;
    left: 2vh;
  }

  #now-playing {
    font-size: 12px;
    padding: 6px 12px;
    bottom: 40px;
  }

  .zodiac-tooltip {
    bottom: -64px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .position-432 {
    font-size: 14px;
    top: 40vh;
    right: 3vh;
  }

  #play-button {
    width: 52px;
    height: 52px;
    font-size: 22px;
    bottom: 16px;
    right: 16px;
  }

  #progress-container {
    bottom: 20px;
    left: 5%;
    width: 90%;
  }

  #location-warning {
    font-size: 14px;
    padding: 10px 16px;
  }

  #location-confirm {
    font-size: 13px;
    padding: 5px 10px;
  }
}
