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

body {
  font-family: 'Cinzel', serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFB6C1 0%, #E6B3FF 20%, #B8E6FF 40%, #FFC0CB 60%, #D4A5FF 80%, #A8D8FF 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 1s ease-out;
}

.splash-content {
  text-align: center;
  opacity: 0;
  animation: fadeInScale 2s ease-out forwards;
}

.splash-title {
  font-family: 'Cinzel', serif;
  color: white;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 12px;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 182, 193, 0.6),
    3px 3px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  line-height: 1.2;
}

.splash-presents {
  font-family: 'Cinzel', serif;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 20px;
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 182, 193, 0.4),
    2px 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeInPresents 1.5s ease-out 0.8s forwards;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  60% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInPresents {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.video-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.video-screen.hidden {
  display: none;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
  position: absolute;
  top: 0;
  left: 0;
}

.start-button {
  position: absolute;
  bottom: 40px;
  width: 320px;
  height: 75px;
  background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 30%, #FF1493 70%, #FFB6C1 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transform: skewX(-12deg);
  box-shadow: 
    0 6px 25px rgba(255, 105, 180, 0.5),
    inset 0 3px 15px rgba(255, 255, 255, 0.4),
    inset 0 -3px 15px rgba(200, 50, 120, 0.3),
    -4px 4px 0 rgba(255, 20, 147, 0.8),
    -6px 6px 0 rgba(219, 112, 147, 0.6);
  transition: all 0.3s ease;
  overflow: visible;
  z-index: 10;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 15px;
  right: 15px;
  height: 25px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
  border-radius: 4px 4px 50% 50%;
}

.start-button::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 4px solid rgba(255, 182, 193, 0.8);
  border-radius: 10px;
  pointer-events: none;
}

.button-text {
  font-family: 'Cinzel', serif;
  color: white;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 10px;
  transform: skewX(12deg);
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 182, 193, 0.5),
    3px 3px 6px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.start-button:hover {
  transform: skewX(-12deg) scale(1.08);
  box-shadow: 
    0 8px 35px rgba(255, 105, 180, 0.7),
    inset 0 3px 15px rgba(255, 255, 255, 0.5),
    inset 0 -3px 15px rgba(200, 50, 120, 0.3),
    -5px 5px 0 rgba(255, 20, 147, 0.9),
    -8px 8px 0 rgba(219, 112, 147, 0.7);
}

.start-button:active {
  transform: skewX(-12deg) scale(0.98);
}

.start-button.hidden {
  display: none;
}

@media (max-width: 768px) {
  .splash-title {
    font-size: 2.5rem;
    letter-spacing: 6px;
  }
  
  .splash-presents {
    font-size: 1.5rem;
    letter-spacing: 10px;
  }
  
  .start-button {
    width: 200px;
    height: 55px;
  }
  
  .button-text {
    font-size: 1.4rem;
    letter-spacing: 4px;
  }
}

@media (max-width: 480px) {
  .splash-title {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
  
  .splash-presents {
    font-size: 1.2rem;
    letter-spacing: 6px;
  }
  
  .start-button {
    width: 160px;
    height: 45px;
  }
  
  .button-text {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }
}

.game-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
}

.game-screen.hidden {
  display: none;
}

#renderCanvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}

.loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFB6C1 0%, #E6B3FF 20%, #B8E6FF 40%, #FFC0CB 60%, #D4A5FF 80%, #A8D8FF 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
  transition: opacity 1s ease-out;
}

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

.loading-screen.hidden {
  display: none;
}

.loading-content {
  text-align: center;
}

.loading-title {
  font-family: 'Cinzel', serif;
  color: white;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 8px;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 182, 193, 0.6),
    3px 3px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
}

.loading-bar-container {
  width: 400px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FF69B4, #FF1493, #FF69B4);
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

.loading-text {
  font-family: 'Cinzel', serif;
  color: white;
  font-size: 1.2rem;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .loading-title {
    font-size: 2rem;
    letter-spacing: 4px;
  }
  
  .loading-bar-container {
    width: 280px;
  }
}
