* { box-sizing: border-box; }
body {
  margin: 0;
  height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
}

.container {
  width: 420px;
  max-width: 92%;
  text-align: center;
}

.container.setup { perspective: none; }

h1, h2 { margin: 0.4em 0; }

label {
  display: block;
  margin: 1.2em 0 0.5em;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ffb6c1;
  border-radius: 12px;
  font-size: 16px;
}

textarea { min-height: 110px; resize: vertical; }

button {
  padding: 12px 42px;
  font-size: 19px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
  margin: 1em 0.8em;
}

#yesBtn, #createBtn {
  background: #ff6b6b;
  color: white;
}

#yesBtn:hover, #createBtn:hover {
  background: #ff5252;
  transform: scale(1.06);
}

#noBtn {
  background: #f8f8f8;
  color: #444;
  position: relative;
}

#noBtn.moving {
  position: absolute;
  transition: top 0.45s ease-out, left 0.45s ease-out;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  border-radius: 999px;
}

#noBtn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.hint { 
    color: #777; 
    font-size: 0.95em; 
    margin-top: 1.5em;
    opacity: 0;
    transition: opacity 0.6s ease; 
}

.hint.visible {
    opacity: 1;
}

.card {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  transition: transform 0.85s cubic-bezier(0.68,-0.55,0.265,1.55);
  transform-style: preserve-3d;
}

.card.flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
}

.back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #fff0f5, #ffe6f0);
}

.cat { font-size: 90px; margin-bottom: 0.5em; }

.buttons-area {
  position: relative;
  width: 100%;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#backMessage {
  font-size: 1.1em;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: center;
  padding: 0 20px;
}