*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background-color: #ffe4ec;
  background-image: url('../assets/background/bg.svg');
  background-repeat: repeat;
  background-size: 15vmin;
}
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal {
  background: #fff0f5;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 590px;
  width: 90vw;
  box-shadow:
    0 8px 32px rgba(233, 30, 99, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  animation: modalAppear 0.5s ease-out;
  transition: max-width 0.4s ease, padding 0.4s ease;
}
.avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.avatar {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f06292;
  box-shadow: 0 2px 12px rgba(233, 30, 99, 0.25);
  transition: width 0.4s ease, height 0.4s ease;
}
.title {
  font-family: 'Satisfy', cursive;
  font-size: 4.9rem;
  color: #c2185b;
  margin-bottom: 32px;
  line-height: 1.3;
  transition: font-size 0.4s ease, margin-bottom 0.4s ease;
}
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn {
  font-size: 1.21rem;
  font-weight: 600;
  padding: 13.2px 39.6px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  outline: none;
}
.btn:active {
  transform: scale(0.96);
}
.btn-yes {
  background: linear-gradient(135deg, #e91e63, #f06292);
  color: #fff;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
}
.btn-yes:hover {
  background: linear-gradient(135deg, #d81b60, #ec407a);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.45);
  transform: scale(1.05);
}
.btn-no {
  background: #f3e5f5;
  color: #7b1fa2;
  box-shadow: 0 4px 14px rgba(123, 31, 162, 0.15);
  transition: top 0.3s ease, left 0.3s ease, transform 0.2s, box-shadow 0.2s;
}
.btn-no:hover {
  box-shadow: 0 6px 20px rgba(123, 31, 162, 0.25);
}
.btn-no.escaped {
  position: fixed;
  z-index: 1000;
}
.hidden {
  display: none;
}
.success-text {
  margin-bottom: 24px;
  font-size: 2.8rem;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gif-wrapper {
  display: flex;
  justify-content: center;
}
.happy-gif {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 16px 8px rgba(255, 240, 245, 0.8),
    0 0 30px 14px rgba(233, 30, 99, 0.15);
  animation: popIn 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes modalAppear {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 480px) {
  .modal {
    padding: 32px 24px;
  }
  .title {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }
  .btn {
    padding: 10px 28px;
    font-size: 1rem;
  }
  .success-text {
    font-size: 2.2rem;
  }
}
@media (max-height: 1000px) {
  .modal {
    padding: 32px 28px;
    max-width: 480px;
  }
  .avatar {
    width: 250px;
    height: 250px;
  }
  .title {
    font-size: 3.6rem;
    margin-bottom: 24px;
  }
}
@media (max-height: 750px) {
  .modal {
    padding: 24px 20px;
    max-width: 400px;
  }
  .avatar {
    width: 160px;
    height: 160px;
  }
  .title {
    font-size: 2.6rem;
    margin-bottom: 16px;
  }
  .btn {
    padding: 10px 28px;
    font-size: 1rem;
  }
}
.intro-body {
  background-color: #e3f2fd;
  background-image: url('../assets/background/bg-question.svg');
  background-repeat: repeat;
  background-size: 15vmin;
}
.intro-modal {
  background: #bbdefb;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 90vw;
  box-shadow:
    0 8px 32px rgba(21, 101, 192, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  animation: modalAppear 0.5s ease-out;
}
.intro-title {
  font-family: 'Satisfy', cursive;
  font-size: 2.8rem;
  color: #1565c0;
  margin-bottom: 32px;
  line-height: 1.3;
}
.btn-proceed {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
}
.btn-proceed:hover {
  background: linear-gradient(135deg, #0d47a1, #1e88e5);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.45);
  transform: scale(1.05);
}
@media (max-width: 480px) {
  .intro-modal {
    padding: 32px 24px;
  }
  .intro-title {
    font-size: 2rem;
    margin-bottom: 24px;
  }
}
