* { box-sizing: border-box; }
:root {
  --pink: #ff4d8d;
  --hot: #ff2f6d;
  --purple: #6d28d9;
  --dark: #170716;
  --glass: rgba(255,255,255,.12);
  --white: #fff;
}
html, body { margin: 0; min-height: 100%; overflow: hidden; }
body {
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--white);
  background: radial-gradient(circle at 10% 20%, #ff8fb3 0 16%, transparent 35%),
              radial-gradient(circle at 90% 10%, #7c3aed 0 15%, transparent 34%),
              linear-gradient(135deg, #190018, #3d0a2b 45%, #0b0615);
}
.aurora {
  position: fixed; inset: -20%; z-index: 0;
  background: conic-gradient(from 180deg at 50% 50%, #ff4d8d, #7c3aed, #00d4ff, #ffb703, #ff4d8d);
  opacity: .18; filter: blur(70px); animation: aurora 12s linear infinite;
}
@keyframes aurora { to { transform: rotate(360deg) scale(1.05); } }
#sparkles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.app { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.hero-card {
  width: min(1120px, 96vw); height: min(720px, 92vh);
  display: grid; grid-template-columns: 1.12fr .88fr;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  backdrop-filter: blur(18px); border-radius: 34px; overflow: hidden;
  box-shadow: 0 35px 100px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08);
}
.cinema-frame { position: relative; min-height: 100%; overflow: hidden; background: #111; }
.slides, .slide { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12) rotate(.7deg);
  transition: opacity 1.2s ease, transform 7s ease;
  filter: saturate(1.08) contrast(1.04);
}
.slide.active { opacity: 1; transform: scale(1.02) rotate(0deg); }
.slide.active.alt { transform: scale(1.16) translateX(-4%) rotate(-1deg); }
.film-gradient { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,0,12,.15), rgba(12,0,12,.55)); }
.floating-polaroids { position: absolute; inset: 0; pointer-events: none; }
.polaroid {
  position: absolute; width: 135px; height: 170px; padding: 8px 8px 28px;
  background: rgba(255,255,255,.92); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transform: rotate(var(--r)); animation: drift var(--t) ease-in-out infinite alternate;
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
@keyframes drift { to { transform: translateY(-18px) rotate(calc(var(--r) * -1)); } }
.content { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 44px 36px; text-align: center; position: relative; }
.eyebrow { margin: 0 0 8px; color: #ffd1e1; letter-spacing: 1px; font-weight: 700; }
h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.05; margin: 0; font-weight: 900; text-shadow: 0 10px 30px rgba(255,47,109,.45); }
.subtitle { max-width: 430px; margin: 18px auto 28px; font-size: 18px; color: rgba(255,255,255,.86); }
.buttons { display: grid; gap: 14px; width: min(360px, 100%); }
.choice {
  border: 0; cursor: pointer; color: #fff; font-family: inherit; font-size: 22px; font-weight: 900;
  padding: 17px 24px; border-radius: 999px; position: relative; overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.24); transition: transform .25s, box-shadow .25s;
}
.choice:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 24px 44px rgba(0,0,0,.35); }
.love { background: linear-gradient(135deg, #ff2f6d, #ff8fab); }
.kiss { background: linear-gradient(135deg, #8b5cf6, #f472b6); }
.choice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%); }
.choice:hover::after { animation: shine .7s; }
@keyframes shine { to { transform: translateX(120%); } }
.hint { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.62); }
.emoji { position: fixed; z-index: 5; pointer-events: none; font-size: var(--s); left: var(--x); bottom: -60px; animation: fly var(--d) linear forwards; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
@keyframes fly { to { transform: translateY(-112vh) rotate(520deg); opacity: 0; } }
.result { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(18,0,18,.62); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: .35s; }
.result.show { opacity: 1; pointer-events: auto; }
.result-inner { width: min(520px, 90vw); text-align: center; border-radius: 34px; padding: 42px 28px; background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.big-emoji { font-size: 76px; animation: pop 1s ease infinite alternate; }
@keyframes pop { to { transform: scale(1.12) rotate(5deg); } }
.result h2 { margin: 12px 0 6px; font-size: 38px; }
.result p { margin: 0; font-size: 20px; color: rgba(255,255,255,.82); }
.close { position: fixed; top: 20px; left: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; color: #fff; background: rgba(255,255,255,.18); font-size: 32px; cursor: pointer; }
@media (max-width: 820px) {
  body { overflow: auto; }
  .app { min-height: 100svh; padding: 12px; }
  .hero-card { height: auto; min-height: 94svh; grid-template-columns: 1fr; }
  .cinema-frame { height: 48svh; }
  .content { padding: 30px 20px 34px; }
  .polaroid { width: 96px; height: 124px; }
}
