* {
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: 'Cinzel', serif;
}

/* Background layer */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;  
  background: url("genshin-bg.jpg") no-repeat center/cover;
  filter: blur(8px) brightness(0.7);
  transition: filter 1s ease;
  z-index: 1;
}


/* Remove blur after start */
.background.clear {
  filter: blur(0px) brightness(1);
}

/* Start screen */
#start-screen {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.start-box {
  background: rgba(0,0,0,0.6);
  border: 2px solid gold;
  padding: 40px 60px;
  border-radius: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 0 40px gold;
  animation: pulse 2s infinite;
  cursor: pointer;
}

/* Quest box */
.quest-box {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 25, 50, 0.7);
  border: 2px solid gold;
  padding: 45px;
  border-radius: 20px;
  text-align: center;
  color: white;
  width: 420px;
  box-shadow: 0 0 40px gold;
  backdrop-filter: blur(10px);
  animation: fadeIn 1s ease;
}

.buttons {
  margin-top: 25px;
}

button {
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  margin: 10px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  transition: 0.3s;
}

#yes {
  background: linear-gradient(135deg, gold, orange);
  box-shadow: 0 0 15px gold;
}

#yes:hover {
  transform: scale(1.1);
}

/* no btot */
#no {
  position: relative; /* IMPORTANT */
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9b59b6, #6c3483);
  color: white;
  cursor: pointer;
  z-index: 5;

  box-shadow:
    0 0 12px rgba(155, 89, 182, 0.7),
    0 0 24px rgba(155, 89, 182, 0.4);

  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease;
}

#no:hover {
  box-shadow:
    0 0 20px rgba(155, 89, 182, 1),
    0 0 40px rgba(155, 89, 182, 0.8);
}




.hidden {
  display: none;
}


.fade-out {
  animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 20px gold; }
  50% { box-shadow: 0 0 50px hotpink; }
  100% { box-shadow: 0 0 20px gold; }
}

/* charactor */
.character {
  position: fixed;
  width: 400px;
  height: auto;
  z-index: 1;
  pointer-events: none;

  --move-x: 0px;
  --float-y: 0px;

  transform: translateX(var(--move-x)) translateY(var(--float-y));
  animation: float 4s ease-in-out infinite;
}


/* Left character */
.char-left {
  left: calc(25% - 320px);
  bottom: 200px;
}

/* Right character */
.char-right {
  right: calc(25% - 320px);
  bottom: 120px;
  width: 300px;
}
.char-center {
  left: 35%;
  transform: translateX(-50%);
  bottom: 150px;
}

/* Floating animation */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* adjustment for phone */
@media (max-width: 600px) {
  .character {
    width: 60px;
  }

  .char-left {
    left: 20px;
    bottom: 50px;
  }

  .char-right {
    right: 40px;
    bottom: 60px;
  }
  .char-center {
    left: 50%;
    bottom: 70px;
  }
}

/* Movement stages */
.char-left.stage-1 {
  --move-x: 10vw;
}

.char-left.stage-2 {
  --move-x: 20vw;
}

.char-left.stage-final {
  --move-x: 32vw;
}
