﻿:root {
  --bg-a: #fff3df;
  --bg-b: #ffe4e1;
  --bg-c: #ffd1a8;
  --ink: #2a1f1b;
  --muted: #6f5a52;
  --accent: #ff6b6b;
  --accent-dark: #ef5252;
  --card: rgba(255, 255, 255, 0.75);
  --stroke: rgba(130, 82, 63, 0.18);
  --shadow: 0 24px 56px rgba(130, 82, 63, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.9), transparent 38%),
    radial-gradient(circle at 94% 82%, rgba(255, 198, 169, 0.75), transparent 34%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b) 52%, var(--bg-c));
  font-family: "STKaiti", "KaiTi", "Times New Roman", serif;
  line-height: 1.55;
}

.page {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.card {
  width: min(760px, 96vw);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(10px);
  padding: clamp(26px, 3.6vw, 42px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.2;
}

.line {
  margin: 0;
  font-size: clamp(1.03rem, 2.1vw, 1.3rem);
  color: var(--muted);
  min-height: 3.2em;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid rgba(239, 82, 82, 0.45);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, #ff7d7d, var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.33);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff8585, var(--accent-dark));
}

.btn-ghost {
  border-color: rgba(42, 31, 27, 0.18);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.heart {
  position: absolute;
  font-size: 24px;
  color: #ff5f7a;
  animation: rise 1300ms ease forwards;
  text-shadow: 0 8px 16px rgba(255, 95, 122, 0.25);
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(0.88) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(-90px) scale(1.08) rotate(14deg);
    opacity: 0;
  }
}

.noscript {
  position: fixed;
  left: 12px;
  bottom: 12px;
  margin: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(130, 82, 63, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.84rem;
  color: #6f5a52;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .heart {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .card {
    border-radius: 22px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
