:root {
  --fg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a {
	color:#e0d6bf;
	 transition:  1s ease;
}
a:hover {
	color:#7bd6d9;
	 transition:  1s ease;
}
.slide {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  filter: brightness(1) blur(0px);
  transition: opacity 3s ease, transform 12s linear, filter 0.6s ease;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.slide.is-blurred {
  filter: brightness(0.5) blur(16px);
}

.slide.is-hidden {
  opacity: 0;
}

.slide.is-zoomed {
  transform: scale(1.1);
}

.slide.no-zoom-transition {
  transition: opacity 3s ease, transform 0s;
}

.credit {
  position: fixed;
  left: 30px;
  top: 50%;
  z-index: 10;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.credit.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.collection-name {
  position: fixed;
  right: 30px;
  top: 50%;
  z-index: 10;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.collection-name.is-hidden {
  opacity: 0;
}

.text-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.text-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.text-overlay-content {
  max-width: 720px;
  font-family: 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  line-height: 1.9;
}

.text-overlay-content p {
  margin: 0 0 28px;
}

.text-overlay-content p:last-child {
  margin-bottom: 0;
}

.char {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.is-revealed .char {
  opacity: 1;
}

.no-char-transition .char {
  transition: none;
}

.music-toggle {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: top 1.5s ease, left 1.5s ease, transform 1.5s ease;
}

.music-toggle.is-moved {
  top: calc(100% - 24px);
  left: calc(100% - 24px);
  transform: translate(-100%, -100%);
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

.music-toggle:hover {
  background: rgba(0, 0, 0, 0.75);
}

@media (max-width: 959px) {
  .credit {
    left: 50%;
    right: auto;
    top: 50%;
    font-size: 13px;
    transform: translate(-50%, 6px);
  }

  .collection-name {
    left: 50%;
    right: auto;
    top: 50%;
    font-size: 18px;
    transform: translate(-50%, calc(-100% - 6px));
  }

  .music-toggle {
    top: calc(50% + 70px);
  }
}
