/* ── Halloween Free Play Screen Style ── */

.page-halloween {
  position: relative;
  width: 100%;
  height: 932px;
  margin: 0;
  overflow: hidden;
  background: #000 !important;
  background-color: #000 !important;
  background-image: none !important;
}

#screen-halloween {
  overflow: hidden;
  height: var(--content-height, 932px) !important;
  background: #000 !important;
  container-type: inline-size;
}

.halloween-content-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #000 !important;
}

/* Centered background image */
.halloween-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  pointer-events: none;
  background-color: #000 !important;
}

.halloween-bg-image {
  height: 100%;
  width: auto;
  display: block;
}

/* Layout container centered on screen */
.halloween-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 626px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* 1. Speech Bubble ("Trick Or Treat?") positioned near character */
.halloween-speech-bubble {
  position: absolute;
  top: 36.57%; /* Figma Y: 588px / 1608px */
  left: 61.38%; /* Figma Center X: 329px / 536px */
  transform: translateX(-50%);
  width: 19.78%; /* Figma W: 106px / 536px */
  max-width: 124px;
  height: auto;
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  animation: halloween-float 3s ease-in-out infinite;
}

/* 2. Win2Dao Logo on the Pot of Gold */
.halloween-logo {
  position: absolute;
  top: 52.11%; /* Figma Y: 838px / 1608px */
  left: 50%;
  transform: translateX(-50%);
  width: 22.76%; /* Figma W: 122px / 536px */
  max-width: 142px;
  height: auto;
  z-index: 15;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
}

/* 3. Main Title Banner ("FREE PLAY IS YOUR TREAT") */
.halloween-title-container {
  position: absolute;
  top: 65.55%; /* Figma Y: 1054px / 1608px */
  left: 50%;
  transform: translateX(-50%);
  width: 75.0%; /* Figma W: 402px / 536px */
  max-width: 460px;
  z-index: 18;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.halloween-title-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.9));
}

/* 4. Action Button ("EXPLORE NOW") */
.halloween-btn-container {
  position: absolute;
  top: 88.06%; /* Figma Y: 1416px / 1608px */
  left: 50%;
  transform: translateX(-50%);
  width: 54.85%; /* Figma W: 294px / 536px */
  max-width: 340px;
  z-index: 22;
  pointer-events: auto;
}

.halloween-action-btn {
  display: inline-flex;
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
  animation: halloween-pulse 2s infinite ease-in-out;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.halloween-action-btn:hover {
  animation-play-state: paused;
  transform: scale(1.06);
  filter: brightness(1.18) drop-shadow(0 0 14px rgba(61, 227, 139, 0.6));
}

.halloween-action-btn:active {
  animation-play-state: paused;
  transform: scale(0.95);
}

.halloween-btn-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Floating speech bubble animation */
@keyframes halloween-float {
  0% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
  100% { transform: translate(-50%, 0); }
}

/* Pulse button animation */
@keyframes halloween-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 14px rgba(61, 227, 139, 0.4));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  }
}

/* Responsive tweaking for smaller viewports */
@media (max-width: 600px) {
  .halloween-container {
    max-width: 100%;
  }
}
