* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: "Gowun Dodum", sans-serif;
  background: linear-gradient(135deg, #fff4f8 0%, #ffe3ec 45%, #ffd6e7 100%);
  color: #7a2e4d;
  position: relative;
}

.background-hearts::before,
.background-hearts::after {
  content: "♡ ♡ ♡ ♡ ♡";
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 2rem;
  color: rgba(255, 105, 180, 0.18);
  letter-spacing: 18px;
  z-index: 0;
}

.background-hearts::before {
  top: 12%;
}

.background-hearts::after {
  bottom: 10%;
}

.lang-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #c44574;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12vh;
}

.hero {
  width: min(900px, 92vw);
  text-align: center;
}

.hero h1 {
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  color: #d94f86;
  text-shadow: 2px 4px 12px rgba(217, 79, 134, 0.18);
  margin-bottom: 60px;
}

.button-area {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 260px;
  margin: 0 auto;
}

.btn {
  min-width: 150px;
  height: 64px;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.yes-btn {
  background: linear-gradient(135deg, #ff7eb3, #ff4f8b);
  color: white;
  position: absolute;
  left: 32%;
  top: 80px;
  z-index: 1;
}

.no-btn {
  background: linear-gradient(135deg, #ffffff, #ffe9f1);
  color: #c44574;
  position: absolute;
  left: 56%;
  top: 80px;
  z-index: 10;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(88, 33, 58, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999;
}

.hidden {
  display: none;
}

.modal {
  width: min(500px, 92vw);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 36px 28px 30px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(114, 41, 75, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.modal h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.modal p {
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #c63d78;
  line-height: 1.4;
  margin-bottom: 24px;
}

.retry-btn {
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #ff8fb8, #ff5f99);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 95, 153, 0.24);
  transition: transform 0.2s ease;
}

.retry-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .container {
    padding-top: 14vh;
  }

  .button-area {
    max-width: 360px;
    height: 300px;
  }

  .yes-btn {
    left: 12%;
    top: 90px;
  }

  .no-btn {
    left: 55%;
    top: 90px;
  }

  .lang-toggle {
    top: 16px;
    right: 16px;
  }
}