:root {
  --fg: oklch(22% .08 15);
  --muted: #8a6e74;
  --primary: oklch(62% .22 18);
  --primary-fg: #fffafb;
  --secondary: #f8e8ec;
  --border: #efd5dc;
  --toast-bg: #ffffff;
  --toast-fg: #1c1917;
  --toast-muted: #78716c;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Dancing Script", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, #fff5f3 0%, transparent 60%),
    radial-gradient(circle at 10% 15%, #ffd1dc 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, #ffc2d1 0%, transparent 38%),
    radial-gradient(circle at 15% 90%, #ffb3c6 0%, transparent 40%),
    radial-gradient(circle at 85% 95%, #ffd6e0 0%, transparent 42%),
    oklch(96% .04 20);
  overflow: hidden;
}

.page {
  position: relative;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.3rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--primary) !important;
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.cat {
  width: min(300px, 25vh, 70vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 8px solid #fff;
  box-shadow: 0 20px 50px -10px rgba(225, 29, 72, 0.35);
  transform: rotate(-3deg);
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
}

.wobble {
  margin: 0;
  max-width: 48rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1.05;
  color: var(--fg);
  animation: wobble 3.2s ease-in-out infinite;
}

.accent {
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
}

.sub {
  margin: 1.25rem 0 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}

.yes-wrap {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
}

.yes {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ff5c8a, oklch(62% .22 18));
  color: var(--primary-fg);
  box-shadow: 0 12px 40px -10px rgba(225, 29, 72, 0.65);
  animation: pulse 1.8s ease-in-out infinite;
}

.yes:hover {
  transform: scale(1.05);
}

.yes:active {
  transform: scale(0.95);
}

.no {
  position: absolute;
  left: 58%;
  top: 68%;
  z-index: 20;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: var(--secondary);
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(61, 36, 40, 0.08);
  transition: left 0.15s ease-out, top 0.15s ease-out, transform 0.15s ease-out;
}

.result {
  margin: 1.5rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-style: italic;
  color: var(--primary);
  animation: pop 0.35s ease both;
}

.footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  padding: 0 1rem;
  margin: 0;
  font-size: 11px;
  color: rgba(138, 110, 116, 0.75);
  text-align: center;
}

/* Sonner-style toast */
.toaster {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  margin: 0;
  padding: 0;
  list-style: none;
  width: min(calc(100vw - 2rem), 356px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  border-left: 4px solid var(--primary) !important;
  pointer-events: auto;
  background: var(--toast-bg);
  color: var(--toast-fg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04);
  animation: toast-in 0.28s ease both;
}

.toast[data-leaving="true"] {
  animation: toast-out 0.22s ease both;
}

.toast-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.toast-desc {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--toast-muted);
  line-height: 1.35;
}

.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hearts span {
  position: absolute;
  bottom: -40px;
  opacity: 0.7;
  animation: rise linear forwards;
}
.page > * { position: relative; z-index: 1; }
.page > .no { position: absolute; z-index: 20; }
.page > .eyebrow, .page > .footer { position: absolute; }

@keyframes rise {
  to { transform: translateY(-110vh) rotate(25deg); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 40px -10px rgba(225, 29, 72, 0.65), 0 0 0 0 rgba(255, 92, 138, 0.45); }
  50% { box-shadow: 0 12px 40px -10px rgba(225, 29, 72, 0.65), 0 0 0 14px rgba(255, 92, 138, 0); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
}

@media (max-width: 640px) {
  .cat {
    width: min(240px, 26vh, 65vw);
  }

  .yes {
    padding: 1.1rem 2.1rem;
    font-size: 1.15rem;
  }

  .no {
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
  }
}

.cat.flip {
  animation: cat-flip 0.6s ease-in-out both, float 4s ease-in-out 0.6s infinite;
}

@keyframes cat-flip {
  0% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(0deg) scale(0.6) rotateY(90deg); opacity: 0.4; }
  100% { transform: rotate(-3deg) scale(1); }
}

.yes-wrap .result {
  margin: 0;
  max-width: 22rem;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  line-height: 1.25;
}
.footer { transition: opacity 0.4s ease; }
.yes-wrap { flex-direction: column; gap: 1rem; }
.yes-wrap .result { visibility: hidden; animation: none; }
.yes-wrap .result.show { visibility: visible; animation: pop 0.35s ease both; }

/* eyebrow in de flow zodat de foto er nooit overheen valt */
.page > .eyebrow {
  position: static;
  transform: none;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cat { width: min(380px, 29vh); }
  .page > .eyebrow { margin-bottom: 1.5rem; }
  .sub { margin-top: 0.75rem; }
  .yes-wrap { margin-top: 1.25rem; }
}
