/* ===================================
  SCENE VIEW
  =================================== */

/* ETO YUNG BUTTONS SA FRONT SCREEN */
#sceneView {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-slow) var(--ease-out);
}

#sceneView.active {
  opacity: 1;
}

/* ETO YUNG BG NG MAP */
#sceneBackground {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
}

#characterArea {
  width: 100%;
  height: 65%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: var(--space-lg);
}

.character-portrait {
  max-width: 400px;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(var(--shadow-lg));
  animation: characterEnter 0.5s var(--ease-out);
}

#dialogueBox {
  width: 100%;
  height: 60%;
  max-height: 500px;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  border-top: 4px solid var(--color-primary);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
#skipButton,
#skipActivityButton {
  position: absolute;
  top: 65px;
  right: var(--space-sm);
  width: var(--top-button-size);
  height: var(--top-button-size);
  background: rgba(251, 255, 236, 0.95); /* same as .top-button */
  color: var(--color-text-light);
  border: none;
  border-radius: clamp(10px, 1vw, 16px);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal) var(--ease-out);
  display: none;
  z-index: 110;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  
}



#skipButton:hover,
#skipActivityButton:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: rgb(101, 113, 153); /* hover like .top-button */
}

#skipButton:active,
#skipActivityButton:active {
  transform: translateY(0);
}

#skipButton::after,
#skipActivityButton::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#skipButton.show,
#skipActivityButton.show {
  display: flex;
  animation: fadeInUp 0.4s var(--ease-out);
}


/* Optional: subtle entrance animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


#speakerName {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: var(--space-sm);
}

#dialogueText {
  font-size: 18px;
  color: var(--color-text-primary);
  line-height: 1.8;
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-sm);
  margin-bottom: var(--space-md);
}

#choicesContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-sm);
}

.choice-button {
  min-height: 96px;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-hover) 100%);
  color: var(--color-text-light);
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal) var(--ease-out);
  box-shadow: var(--shadow-md);
  text-align: left;
  font-family: inherit;
}

.choice-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--color-secondary-hover) 0%, #3A9B8F 100%);
}

.choice-button:active {
  transform: translateY(0);
}

#continueButton {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 96px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: var(--color-text-light);
  border: none;
  border-radius: 48px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal) var(--ease-out);
  font-family: inherit;
}

#continueButton:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #E63946 100%);
}

#continueButton:active {
  transform: translateX(-50%) translateY(-2px);
}

/* Optional fade-in animation for choices */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
