@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #0d0014;
  color: #ffeaff;
  font-family: "VT323", monospace;
  overflow: hidden;
}

/* Main scene */
#scene {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 40px;
  background: url('https://i.pinimg.com/1200x/cd/34/32/cd3432b41d848ae9994b1840cf4b4b3d.jpg') center/cover no-repeat;
}

/* Sprites */
#sprites {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 10px;
  z-index: 5;
}

.sprite {
  width: 260px;
  filter: drop-shadow(0 0 12px #ffb3ff);
}

/* Dialogue box */
#dialogueBox {
  width: 80%;
  max-width: 900px;
  background: rgba(0,0,0,0.85);
  border: 2px solid #ffb3ff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 0 20px #ffb3ff;
  font-size: 20px;
  line-height: 1.5;
  z-index: 10;
}

#nameplate {
  font-weight: bold;
  color: #ffb3ff;
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-size: 22px;
}

#text {
  min-height: 90px;
  white-space: pre-wrap;
}

/* Next button */
#nextBtn {
  margin-top: 10px;
  padding: 4px 18px;
  border-radius: 999px;
  border: 1px solid #ffb3ff;
  background: transparent;
  color: #ffb3ff;
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s;
}

#nextBtn:hover {
  background: #ffb3ff;
  color: #1b0024;
}

/* Fade + ending text */
#fade {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease-in-out;
  z-index: 50;
}

#endingText {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #ffb3ff;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 60;
  letter-spacing: 4px;
  text-align: center;
}
