:root {
  --bg1: #fff1f6;
  --bg2: #ffe7d1;
  --accent: #ff5c8a;
  --accent-2: #ff9a5c;
  --text: #332531;
  --btn-yes: #ff5c8a;
  --btn-no: #5d5b76;
  --card: #fff7fb;
  --shadow: 0 20px 50px rgba(255, 92, 138, 0.18);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Comfortaa", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% 10%, #ffe4ef, transparent 55%),
              radial-gradient(800px 600px at 90% 20%, #fff0dc, transparent 60%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
  display: grid;
  place-items: center;
  overflow: hidden;
  user-select: none;
}

.bg-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.heart-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  overflow: hidden;
}

.phrase-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 260;
  overflow: hidden;
}

.phrase-fall {
  position: absolute;
  top: -40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 234, 242, 0.95));
  color: #ff4d83;
  font-weight: 600;
  font-size: 1.02rem;
  box-shadow: 0 14px 30px rgba(255, 92, 138, 0.2);
  text-shadow: 0 2px 8px rgba(255, 92, 138, 0.18);
  animation: phraseFall linear forwards;
  white-space: nowrap;
}

.rain-heart {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #ff7aa2;
  transform: rotate(45deg);
  animation: rain 2.4s ease-in forwards;
  opacity: 0.8;
}

.rain-heart::before,
.rain-heart::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: inherit;
}

.rain-heart::before { left: -11px; }
.rain-heart::after { top: -11px; }

.kiss-counter {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #ff5c8a;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(255, 92, 138, 0.2);
  z-index: 120;
  opacity: 0.9;
}

input,
textarea {
  user-select: text;
}

.bg-hearts .heart {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #ff8fb3;
  transform: rotate(45deg);
  animation: float 10s infinite ease-in-out;
  opacity: 0.6;
}

.bg-hearts .heart::before,
.bg-hearts .heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.bg-hearts .heart::before { left: -9px; }
.bg-hearts .heart::after { top: -9px; }

.bg-hearts .heart:nth-child(1) { left: 8%; top: 70%; animation-delay: 0s; }
.bg-hearts .heart:nth-child(2) { left: 20%; top: 20%; animation-delay: 1s; transform: rotate(45deg) scale(1.1); }
.bg-hearts .heart:nth-child(3) { left: 35%; top: 85%; animation-delay: 2.5s; }
.bg-hearts .heart:nth-child(4) { left: 55%; top: 15%; animation-delay: 3.2s; }
.bg-hearts .heart:nth-child(5) { left: 70%; top: 65%; animation-delay: 1.7s; transform: rotate(45deg) scale(0.9); }
.bg-hearts .heart:nth-child(6) { left: 82%; top: 30%; animation-delay: 4s; }
.bg-hearts .heart:nth-child(7) { left: 90%; top: 80%; animation-delay: 2s; }
.bg-hearts .heart:nth-child(8) { left: 12%; top: 40%; animation-delay: 3.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.55; }
  50% { transform: translateY(-40px) rotate(45deg); opacity: 0.85; }
}

@keyframes rain {
  0% { transform: translateY(-20px) rotate(45deg) scale(0.9); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(45deg) scale(1.1); opacity: 0; }
}

@keyframes phraseFall {
  0% { transform: translateY(-20px) scale(var(--scale, 1)); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(115vh) scale(var(--scale, 1)); opacity: 0; }
}

.card {
  width: min(980px, 92vw);
  min-height: 520px;
  background: linear-gradient(160deg, #ffffff, var(--card));
  border-radius: 32px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.3fr;
  gap: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 80% 20%, rgba(255, 92, 138, 0.12), transparent 60%);
  pointer-events: none;
}

.gifs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.gif-sticker {
  position: absolute;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(255, 92, 138, 0.2);
  transform: rotate(-4deg);
  opacity: 0.9;
  pointer-events: auto;
}

.gif-left {
  left: 18px;
  bottom: 24px;
}

.gif-right {
  right: 26px;
  top: 24px;
  transform: rotate(4deg);
}

.corner-sticker {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(255, 92, 138, 0.25);
  transform: rotate(-4deg);
  z-index: 2;
  pointer-events: auto;
}

.photos {
  display: grid;
  gap: 18px;
  align-content: center;
}

.polaroid {
  background: #fff;
  padding: 12px 12px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  animation: pop 0.8s ease both;
}

.polaroid img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.polaroid figcaption {
  font-family: "Pacifico", cursive;
  color: #ff7aa2;
  margin-top: 6px;
}

.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(3deg); }

@keyframes pop {
  from { transform: scale(0.9) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.content {
  display: grid;
  gap: 16px;
  align-content: center;
  position: relative;
  z-index: 1;
}

h1 {
  font-family: "Pacifico", cursive;
  font-size: clamp(2.2rem, 2.6vw + 1.2rem, 3.4rem);
  margin: 0;
  color: #ff5c8a;
  text-shadow: 0 4px 12px rgba(255, 92, 138, 0.25);
}

.subtitle {
  font-size: 1.05rem;
  margin: 0;
  color: #6c5064;
}

.buttons {
  position: relative;
  height: 88px;
  margin-top: 8px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: absolute;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 92, 138, 0.35);
  outline-offset: 2px;
}

.btn-yes {
  left: 12px;
  top: 10px;
  background: var(--btn-yes);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 92, 138, 0.35);
}

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

.btn-no {
  left: 160px;
  top: 10px;
  background: #fff;
  color: var(--btn-no);
  border: 2px dashed rgba(93, 91, 118, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, left 0.32s ease, top 0.32s ease;
  will-change: left, top, transform;
}

.btn-no:hover { transform: translateY(-1px); }

.btn-ok {
  position: static;
  background: var(--btn-yes);
  color: #fff;
}

.btn-secret {
  position: static;
  background: linear-gradient(120deg, #ff7aa2, #ffc26c);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 122, 162, 0.35);
  padding: 14px 30px;
  font-size: 1.05rem;
  min-width: 150px;
}

.btn-ghost {
  position: static;
  background: transparent;
  color: #6c5064;
  border: 1px solid rgba(108, 80, 100, 0.3);
}

.btn-no.shake {
  animation: shake 0.2s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

@keyframes glow {
  0% { box-shadow: 0 0 0 0 rgba(60, 179, 113, 0.35); }
  100% { box-shadow: 0 0 0 8px rgba(60, 179, 113, 0); }
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.btn-secret.pulse {
  animation: pulse 1.2s ease-in-out infinite;
}

.result {
  display: none;
  background: linear-gradient(120deg, rgba(255, 92, 138, 0.12), rgba(255, 154, 92, 0.14));
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 92, 138, 0.2);
  position: relative;
  overflow: hidden;
}

.result h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  color: #ff5c8a;
}

.result p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.result-image {
  width: min(320px, 80%);
  margin-top: 14px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(255, 92, 138, 0.2);
}

.bonus-gif {
  width: min(220px, 70%);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(255, 92, 138, 0.2);
}

.result-burst {
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at 20% 20%, rgba(255, 255, 255, 0.7), transparent 60%),
              radial-gradient(140px 140px at 80% 30%, rgba(255, 255, 255, 0.6), transparent 60%);
  opacity: 0;
  transform: scale(0.9);
}

.result.show {
  display: block;
  animation: reveal 0.6s ease forwards;
}

.result.show .result-burst {
  animation: burst 0.8s ease forwards;
}

.secret-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.secret-area.locked {
  opacity: 0.55;
  pointer-events: none;
}

.secret-note {
  font-size: 0.9rem;
  color: #8e6b82;
}

.bonus-card {
  width: min(760px, 92vw);
  background: linear-gradient(140deg, #ffffff, #fff6fb);
  border: 1px dashed rgba(255, 92, 138, 0.25);
}

.bonus-lead {
  margin: 0 0 6px;
  color: #5c3c50;
}

.bonus-media {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.bonus-media img {
  width: min(260px, 80%);
  max-width: 260px;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(255, 92, 138, 0.2);
}

.bonus-text {
  font-size: 1rem;
  color: #6c5064;
  display: grid;
  gap: 8px;
}

.bonus-line {
  margin: 0;
}

.blur-text {
  margin: 12px 0 0;
  font-size: 1rem;
  color: #6c5064;
  filter: blur(3px);
  cursor: pointer;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.blur-text.revealed {
  filter: blur(0);
}

.answers-panel {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.answers-output {
  margin-top: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  max-height: 200px;
  overflow: auto;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 92, 138, 0.2);
  white-space: pre-wrap;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes burst {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(50, 30, 45, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px 28px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  min-width: min(320px, 80vw);
  animation: pop 0.5s ease;
}

.video-card {
  width: min(880px, 92vw);
}

.video-frame {
  margin: 12px 0 16px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.kinky-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(800px 400px at 10% 10%, rgba(255, 182, 193, 0.4), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(255, 212, 186, 0.5), transparent 60%),
              linear-gradient(135deg, #ffeef6, #ffe3ec);
  display: none;
  z-index: 400;
  overflow: hidden;
}

.kinky-overlay.show {
  display: block;
}

.kinky-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kinky-word {
  position: absolute;
  font-weight: 700;
  color: #ff4d83;
  text-shadow: 0 4px 12px rgba(255, 92, 138, 0.2);
  opacity: 0.9;
  white-space: nowrap;
  line-height: 1.05;
}

.kinky-close {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.secret-card,
.test-card {
  min-width: min(360px, 85vw);
}

.secret-title {
  margin: 0 0 8px;
  color: #ff5c8a;
}

.test-intro {
  margin: 0 0 10px;
  color: #6c5064;
  font-size: 0.98rem;
}

.secret-question {
  margin: 0 0 12px;
  color: #5c3c50;
}

.secret-input {
  width: 100%;
  border: 1px solid rgba(255, 92, 138, 0.3);
  border-radius: 14px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.test-textarea {
  display: none;
  resize: vertical;
}

.secret-input:focus {
  outline: 2px solid rgba(255, 92, 138, 0.35);
}

.secret-input.error {
  border-color: #e0456b;
  box-shadow: 0 0 0 3px rgba(224, 69, 107, 0.2);
  animation: shake 0.25s ease;
}

.secret-input.correct {
  border-color: #3cb371;
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.2);
  animation: glow 0.4s ease;
}

.test-card.correct {
  animation: successPulse 0.5s ease;
}

.secret-progress {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #8e6b82;
}

.test-hint {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #a05b7f;
  min-height: 1.2em;
}

.secret-error {
  margin: 0 0 12px;
  color: #e0456b;
  min-height: 1.2em;
}

.secret-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.modal-text {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

@media (max-width: 760px) {
  .card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .gif-sticker {
    width: 90px;
    height: 90px;
  }

  .corner-sticker {
    right: 16px;
    bottom: 16px;
    width: 90px;
    height: 90px;
  }

  .photos {
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    overflow: hidden;
    justify-content: center;
  }

  .buttons {
    height: 110px;
  }

  .btn-yes { left: 10px; }
  .btn-no { left: 140px; }
}

@media (max-width: 520px) {
  .photos { display: none; }
  .buttons { height: 120px; }
  .btn { position: static; margin-right: 12px; }
  .buttons { display: flex; gap: 12px; }
  .corner-sticker { display: none; }
  .gifs { display: none; }
}
