:root {
  color-scheme: dark;
  --wine: #8f1237;
  --rose: #ff9bac;
  --cream: #fff3ec;
  --muted: #d7b9ba;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  color: var(--cream);
  background: #100105 url('assets/romantic-night.png') center / cover no-repeat fixed;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #090003;
  transition: background 1.3s ease, visibility 1.3s ease;
}

.opening[hidden] { display: none; }

.curtain {
  position: absolute;
  inset-block: 0;
  width: 51%;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 106, 126, .22), transparent 44%),
    repeating-linear-gradient(90deg, #26010b 0, #6f0a29 9%, #29000d 18%, #8a1236 27%, #35000f 36%);
  box-shadow: inset 0 0 80px #100005;
  transition: transform 1.45s cubic-bezier(.73, 0, .17, 1);
}

.curtain::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: 2px;
  background: linear-gradient(transparent, #e9ba68 18%, #8b5424 50%, #e9ba68 82%, transparent);
  box-shadow: 0 0 18px rgba(255, 210, 126, .5);
}

.curtain-left { left: 0; }
.curtain-left::after { right: 0; }
.curtain-right { right: 0; }
.curtain-right::after { left: 0; }
.opening.is-leaving .curtain-left { transform: translateX(-102%); }
.opening.is-leaving .curtain-right { transform: translateX(102%); }

.opening-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 4px 35px #180007;
  animation: royal-arrival 1.15s cubic-bezier(.2, .8, .2, 1) both;
  transition: opacity .6s ease, transform .6s ease;
}

.opening-copy p {
  margin: 0 0 18px;
  color: #f5c97a;
  font-size: clamp(.62rem, 1vw, .78rem);
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.opening-copy h2 {
  margin-top: 24px;
  color: #fff6ef;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .9;
}

.opening-copy strong {
  margin-top: 12px;
  color: #ff8fa8;
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-style: italic;
  font-weight: 400;
}

.opening-heart {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: #ff6e91;
  font-size: 4.4rem;
  filter: drop-shadow(0 0 25px rgba(255, 63, 108, .75));
  animation: grand-heartbeat 1.15s ease-in-out infinite;
}

.opening-heart::before,
.opening-heart::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 184, 116, .6);
  border-radius: 50%;
  animation: love-ring 2s ease-out infinite;
}

.opening-heart::after { animation-delay: 1s; }
.opening.is-leaving .opening-copy { opacity: 0; transform: scale(1.15); }
.opening.is-leaving .festival-burst, .opening.is-leaving .skip-intro { opacity: 0; }

.festival-burst {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity .5s ease;
}

.love-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--particle-color);
  font-size: var(--particle-size);
  opacity: 0;
  text-shadow: 0 0 14px currentColor;
  animation: love-burst var(--particle-duration) ease-out var(--particle-delay) infinite;
}

.skip-intro {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 25px;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.45);
  color: rgba(255,255,255,.72);
  background: transparent;
  cursor: pointer;
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: opacity .4s ease, color .2s ease;
}

.skip-intro:hover { color: white; }

.intro-active main,
.intro-active .sound,
.intro-active footer { opacity: 0; transform: scale(.985); }

main,
.sound,
footer { transition: opacity 1.1s ease, transform 1.1s ease; }

.festival-lights {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  pointer-events: none;
  opacity: .75;
  background:
    radial-gradient(circle at 28px 16px, #fff4bc 0 2px, #f6bd62 3px, rgba(242, 162, 51, .22) 6px, transparent 8px) 0 0 / 74px 42px repeat-x,
    linear-gradient(176deg, transparent 46%, rgba(227, 180, 92, .35) 48%, transparent 50%);
  filter: drop-shadow(0 0 6px rgba(255, 203, 111, .45));
  animation: festival-twinkle 2.8s ease-in-out infinite;
}

.festival-frame {
  position: fixed;
  z-index: 4;
  inset: 13px;
  border: 1px solid rgba(226, 180, 100, .2);
  pointer-events: none;
}

.festival-frame::before,
.festival-frame::after {
  content: '✦';
  position: absolute;
  color: rgba(255, 210, 128, .66);
  font-size: 1.1rem;
  text-shadow: 0 0 12px rgba(255, 194, 92, .6);
}

.festival-frame::before { left: -6px; top: -10px; }
.festival-frame::after { right: -6px; bottom: -10px; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 0, 3, .94) 0%, rgba(18, 1, 6, .82) 43%, rgba(18, 1, 6, .22) 100%);
  transition: background 1s ease;
}

body.heat-on::before {
  background: radial-gradient(circle at 30% 52%, rgba(154, 0, 45, .42), transparent 36%), linear-gradient(90deg, rgba(9, 0, 3, .96), rgba(49, 0, 16, .72) 55%, rgba(27, 0, 9, .18));
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.petals::before,
.petals::after {
  content: '♥';
  position: fixed;
  z-index: 1;
  color: rgba(255, 114, 139, .18);
  filter: blur(.2px);
  animation: drift 12s ease-in-out infinite;
}

.petals::before { left: 48%; top: 12%; font-size: 18px; transform: rotate(22deg); }
.petals::after { left: 72%; top: 72%; font-size: 12px; animation-delay: -5s; }

main {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  width: min(92%, 1160px);
  margin: auto;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 720px;
  padding: 80px 0 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease, visibility .7s;
}

.scene.is-active { opacity: 1; visibility: visible; transform: none; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  max-width: 700px;
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-weight: 400;
  line-height: .95;
  text-wrap: balance;
}

h1 { font-size: clamp(4rem, 9vw, 8.8rem); }
h2 { font-size: clamp(3rem, 6vw, 6.2rem); }
em { color: var(--rose); font-weight: 400; }

.heat h2 em {
  color: #ff6f8c;
  text-shadow: 0 0 36px rgba(255, 35, 92, .38);
}

.lead,
.message > p:not(.eyebrow, .permission) {
  max-width: 580px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(.98rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.85;
}

button { font: inherit; }

.primary,
.secondary {
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.primary {
  padding: 17px 25px;
  border: 1px solid rgba(255, 198, 204, .35);
  color: white;
  background: linear-gradient(135deg, #a91743, #681027);
  box-shadow: 0 14px 45px rgba(143, 18, 55, .35);
}

.primary span { margin-left: 18px; }
.primary:hover { transform: translateY(-3px); box-shadow: 0 20px 55px rgba(176, 25, 68, .5); }
.primary:focus-visible, .secondary:focus-visible, .choice-card:focus-visible, .sound:focus-visible { outline: 2px solid white; outline-offset: 4px; }

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(700px, 100%);
  margin-top: 38px;
}

.choice-card {
  min-height: 210px;
  padding: 25px;
  border: 1px solid rgba(255, 206, 212, .16);
  border-radius: 2px;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  background: rgba(49, 8, 20, .48);
  backdrop-filter: blur(12px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.choice-card:hover { transform: translateY(-7px); border-color: rgba(255, 155, 172, .7); background: rgba(83, 11, 33, .64); }
.choice-card.featured { background: linear-gradient(150deg, rgba(139, 16, 53, .76), rgba(51, 5, 19, .62)); }
.card-icon { display: block; margin-bottom: 34px; color: var(--rose); font-family: Georgia, serif; font-size: 1.9rem; }
.choice-card strong { display: block; margin-bottom: 11px; font-family: Didot, "Bodoni MT", Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.choice-card small { color: var(--muted); font-size: .76rem; line-height: 1.6; }

blockquote {
  max-width: 580px;
  margin: 0 0 30px;
  padding-left: 20px;
  border-left: 1px solid var(--rose);
  color: #f3cdd1;
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.5;
}

.secondary { padding: 9px 0; border: 0; border-bottom: 1px solid #c98a94; border-radius: 0; color: #d6a8ae; background: transparent; }
.secondary:hover { color: white; }
.answer-row { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.permission { margin: 19px 0 23px; color: #bd9299; font-size: .72rem; letter-spacing: .02em; }
.pulse { animation: pulse 2.5s infinite; }

.heat::after {
  content: 'DESIRE';
  position: fixed;
  z-index: -1;
  right: -2vw;
  bottom: -3vw;
  color: rgba(255, 81, 123, .055);
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-size: clamp(8rem, 22vw, 23rem);
  line-height: .8;
  letter-spacing: -.07em;
  pointer-events: none;
}

.sound {
  position: fixed;
  z-index: 5;
  top: 28px;
  right: 4%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #d9b7bb;
  background: rgba(20, 2, 7, .52);
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sound-icon { margin-right: 7px; color: var(--rose); }
footer { position: fixed; z-index: 4; right: 4%; bottom: 26px; color: rgba(239, 208, 211, .54); font-size: .62rem; letter-spacing: .08em; }

@keyframes drift { 50% { transform: translate(30px, 50px) rotate(65deg); opacity: .35; } }
@keyframes pulse { 50% { box-shadow: 0 16px 60px rgba(195, 29, 75, .6); } }
@keyframes royal-arrival {
  from { opacity: 0; filter: blur(12px); transform: translateY(24px) scale(.9); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes grand-heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  43% { transform: scale(1.1); }
}
@keyframes love-ring {
  from { opacity: .8; transform: scale(.6); }
  to { opacity: 0; transform: scale(2.15); }
}
@keyframes love-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0); }
  12% { opacity: 1; }
  78% { opacity: .75; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--particle-x)), calc(-50% + var(--particle-y))) scale(1.2) rotate(var(--particle-rotation)); }
}
@keyframes festival-twinkle { 50% { opacity: .42; filter: drop-shadow(0 0 11px rgba(255, 203, 111, .8)); } }

@media (max-width: 700px) {
  body { overflow-y: auto; background-position: 62% center; }
  body::before { background: rgba(13, 0, 4, .78); }
  main { min-height: 100svh; }
  .scene { position: relative; inset: auto; display: none; min-height: 100svh; justify-content: flex-start; padding-top: 125px; }
  .scene.is-active { display: flex; }
  .choices { grid-template-columns: 1fr; margin-top: 28px; padding-bottom: 90px; }
  .choice-card { min-height: auto; padding: 20px; }
  .card-icon { display: inline; margin: 0 12px 0 0; }
  .choice-card strong { display: inline; }
  .choice-card small { display: block; margin: 9px 0 0 39px; }
  h1 { font-size: clamp(3.35rem, 16vw, 4.7rem); }
  h2 { font-size: clamp(3rem, 14vw, 4.25rem); }
  .eyebrow { max-width: 90%; line-height: 1.7; letter-spacing: .2em; }
  .answer-row { gap: 20px; }
  .opening-copy { width: calc(100% - 42px); }
  .opening-copy p { max-width: 280px; line-height: 1.8; letter-spacing: .22em; text-wrap: balance; }
  .opening-copy h2 { width: 100%; font-size: clamp(2.35rem, 11vw, 3.5rem); text-wrap: balance; }
  .opening-copy strong { font-size: clamp(2rem, 10vw, 3.2rem); }
  .opening-heart { width: 76px; height: 76px; font-size: 3.5rem; }
  .skip-intro { right: 22px; bottom: 20px; }
  .festival-frame { inset: 7px; }
  footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .opening { display: none; }
  .intro-active main, .intro-active .sound, .intro-active footer { opacity: 1; transform: none; }
}
