:root{
  --glass: rgba(255, 255, 255, 0.82);
  --shadow: rgba(0,0,0,0.12);
  --text: #1b1b1b;
}

*{ box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background-image: url('valentine.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.container {
  width: min(680px, 92vw);
  padding: 22px 18px;
  background: var(--glass);
  border-radius: 18px;
  box-shadow: 0 18px 45px var(--shadow);
  position: relative;
  backdrop-filter: blur(6px);
}

.title{
  margin: 6px 0 16px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.buttons{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 6px;
  min-height: 52px;
}

.btn {
  margin: 0;
  padding: 12px 18px;
  font-size: 16px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.btn:hover {
  transform: scale(1.07);
  filter: brightness(1.03);
}

.btn:active {
  transform: scale(0.98);
}

.btn-yes{
  background: #ff4d8d;
  color: white;
}

.btn-no{
  background: #2b2b2b;
  color: white;
}

.message{
  margin: 12px 0 10px;
  font-size: 16px;
  padding: 8px 10px;
  border-radius: 12px;
  display: none;
}

.message.show{
  display: block;
}

.media{
  margin: 10px 0 0;
}

.image {
  width: min(420px, 80vw);
  height: auto;
  border-radius: 16px;
  margin-top: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.signature{
  margin: 12px 0 2px;
  font-weight: 650;
}

.footer{
  margin-top: 10px;
}

.linkish{
  border: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
}

.linkish:hover{
  background: rgba(0,0,0,0.06);
}

/* Hearts */
.heart {
  position: fixed;
  bottom: -20px;
  font-size: 20px;
  animation: floatUp 6s linear forwards;
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

@keyframes floatUp {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-110vh); opacity: 0; }
}

/* Fade-in used after "Yes" */
.fade {
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; }
  .heart { animation: none; display: none; }
  .fade { animation: none; }
}




.caption-outside {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

/* Caption fade-out */
.caption-hidden {
    opacity: 0;
}
