body {
  margin: 0;
  overflow: hidden;
  background-color: #000;
}

canvas {
  display: block;
}

.serve-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  font-size: 16px;
  z-index: 1;
  cursor: pointer;
}

#video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opening-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000, #1a1a1a, #000000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
  overflow: hidden;
}

.opening-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  animation: scanline 8s linear infinite;
  pointer-events: none;
}

.opening-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0%,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 2px
    );
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100px;
  }
}

.opening-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-button {
  padding: 20px 40px;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border: 1px solid #404040;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: 'Arial', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  z-index: 1001;
}

.start-button::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #808080, #404040, #808080);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.start-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  animation: buttonShine 3s infinite;
  pointer-events: none;
}

@keyframes buttonShine {
  0% {
    transform: translateX(-100%);
  }
  20%, 100% {
    transform: translateX(100%);
  }
}

.start-button:hover {
  background: linear-gradient(145deg, #404040, #2c2c2c);
  border-color: #606060;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.start-button:hover::before {
  opacity: 0.8;
}

.start-button:active {
  background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
  transform: scale(0.98);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.ufo-button {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border: 1px solid #404040;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.ufo-button.visible {
  opacity: 1;
  pointer-events: auto;
}

.ufo-button:hover {
  background: linear-gradient(145deg, #404040, #2c2c2c);
  border-color: #606060;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) translateY(-2px);
}

.ufo-button:active {
  background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.ufo-button::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #808080, #404040, #808080);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.ufo-button:hover::before {
  opacity: 0.8;
}

.return-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border: 1px solid #404040;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.return-button.visible {
  opacity: 1;
  pointer-events: auto;
}

.return-button:hover {
  background: linear-gradient(145deg, #404040, #2c2c2c);
  border-color: #606060;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.return-button:active {
  background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
  transform: translateY(0);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.return-button::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #808080, #404040, #808080);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.return-button:hover::before {
  opacity: 0.8;
}

.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border: 1px solid #404040;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.music-control:hover {
  background: linear-gradient(145deg, #404040, #2c2c2c);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.music-control:active {
  transform: scale(0.95);
}

.music-control.playing .music-icon {
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}