* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}


.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(42px) brightness(0.7);
  transform: scale(1.1); /* avoid blurred edges showing */
  transition: filter 1.4s ease;
}

.bg-video.entered {
  filter: blur(0) brightness(1);
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
}

#entry-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
  transition: opacity 1.2s ease;
}

#entry-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#enter-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease;
  line-height: 0;
}

#enter-btn img {
  display: block;
  width: 380px;
  max-width: 80vw;
  height: auto;
}

#enter-btn:hover {
  transform: scale(1.04);
}

#enter-btn.pop {
  animation: enterPop 1s linear(0, 0.2769, 0.5318, 0.7627, 0.9683, 1.1478, 1.3013, 1.4291, 1.5322, 1.6117, 1.6691, 1.7063, 1.7251, 1.7275, 1.7157, 1.6917, 1.6574, 1.615, 1.5663, 1.513, 1.4568, 1.399, 1.3411, 1.2842, 1.2291, 1.1768, 1.1278, 1.0828, 1.042, 1.0056, 0.9739, 0.9467, 0.9241, 0.9059, 0.8919, 0.8817, 0.8751, 0.8718, 0.8714, 0.8735, 0.8777, 0.8838, 0.8913, 0.8999, 0.9093, 0.9193, 0.9295, 0.9397, 0.9498, 0.9595, 0.9688, 0.9774, 0.9854, 0.9926, 0.999, 1.0046, 1.0094, 1.0134, 1.0166, 1.0191, 1.0209, 1.0221, 1.0227, 1.0227, 1.0224, 1.0216, 1.0205, 1.0192, 1.0177, 1.016, 1.0143, 1.0125, 1.0107, 1.0089, 1.0072, 1.0055, 1.004, 1.0026, 1.0013, 1.0002, 0.9992, 0.9983, 0.9976, 0.9971, 0.9966, 0.9963, 0.9961, 0.996, 0.996, 0.996, 0.9962, 0.9964, 0.9966, 0.9969, 0.9972, 0.9975, 0.9978, 0.9981, 0.9984, 0.9987, 1) forwards;
}

@keyframes enterPop {
  to { transform: scale(1.3); }
}

#enter-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

#site-logo {
  position: fixed;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 10;
  width: 135px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

#site-logo.visible {
  opacity: 1;
  pointer-events: auto;
}

#audio-controls {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

#audio-controls:hover {
  background: rgba(0, 0, 0, 0.65);
}

#sound-toggle {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  padding: 0;
}

#sound-toggle img {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}

#sound-toggle:hover {
  transform: scale(1.08);
}

#sound-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 5.5rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

#volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

#volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}
