:root {
	color-scheme: dark;
	font-family: Georgia, "Times New Roman", serif;
	background: #2b0b1b;
}

body {
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	display: grid;
	place-items: center;
	overflow-x: hidden;
	overflow-y: auto;
	background-color: #2b0b1b;
	background-image:
		linear-gradient(135deg, #16071399, #3a0b2788 55%, #09030baa),
		url("COUPLE%20PHOTO.JPG.jpeg"),
		radial-gradient(circle at 18% 20%, #ff9aaf55 0 3px, transparent 4px),
		radial-gradient(circle at 82% 78%, #ffd1dc44 0 2px, transparent 3px),
		radial-gradient(ellipse at 50% 0%, #d82d63 0, #721737 42%, #2b0b1b 100%);
	background-position: center, center, center, center, center;
	background-size: cover, cover, auto, auto, cover;
	background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
	background-attachment: scroll;
}

.photo-gate {
	position: fixed;
	inset: 0;
	z-index: 20;
	overflow: hidden;
	background: #210713;
	transition: opacity .9s ease, visibility .9s ease;
}

.photo-gate.is-open {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.photo-gate-image,
.photo-gate-shade {
	position: absolute;
	inset: 0;
}

.photo-gate-image {
	background: url("COUPLE%20PHOTO.JPG.jpeg") center / cover no-repeat;
	transform: scale(1.03);
}

.photo-gate-shade {
	background: linear-gradient(180deg, #16071333, #16071322 35%, #160713dd);
}

.photo-gate-content {
	position: absolute;
	inset: auto 1.5rem 10vh;
	max-width: 44rem;
	margin: auto;
	text-align: center;
}

.photo-gate-content::before,
.photo-gate-content::after {
	position: absolute;
	color: #ffb6caaa;
	font-size: clamp(1.8rem, 5vw, 3.5rem);
	text-shadow: 0 0 18px #ff4f82;
	content: "♥";
	animation: text-heart-float 3.5s ease-in-out infinite;
}

.photo-gate-content::before {
	top: 1rem;
	left: 8%;
	transform: rotate(-16deg);
}

.photo-gate-content::after {
	right: 8%;
	bottom: 4rem;
	font-size: clamp(1.3rem, 4vw, 2.5rem);
	animation-delay: -1.7s;
}

.photo-gate-kicker {
	color: #ffc6d4;
	font: 700 .72rem Arial, sans-serif;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.photo-gate-content h1 {
	margin: .6rem 0 .5rem;
	color: #fff1f5;
	font-size: clamp(2rem, 7vw, 4.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: .01em;
	text-shadow: 0 3px 8px #21030c, 0 0 28px #ff4778cc;
	animation: romantic-text-in .9s ease both;
}

.photo-gate-content p {
	margin: 0 0 1.3rem;
	color: #ffd3de;
	font: .95rem Arial, sans-serif;
}

.photo-gate-button {
	padding: .85rem 1.25rem;
	border: 1px solid #ffd0dcaa;
	border-radius: 999px;
	background: #ffffff22;
	color: #fff4f7;
	font: 700 .82rem Arial, sans-serif;
	letter-spacing: .04em;
	cursor: pointer;
	box-shadow: 0 0 25px #ff8eaa66;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.photo-gate-button:hover,
.photo-gate-button:focus-visible {
	background: #ffffff3d;
	box-shadow: 0 0 30px #ffd0dc99;
	transform: translateY(-3px);
}

.photo-gate-button span { margin-left: .4rem; }

@keyframes romantic-text-in {
	from { opacity: 0; transform: translateY(12px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes text-heart-float {
	0%, 100% { transform: translateY(0) rotate(-8deg); }
	50% { transform: translateY(-10px) rotate(8deg); }
}

.opening-screen {
	position: fixed;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	z-index: 10;
	background: linear-gradient(145deg, #210713f2, #751537ee 55%, #d82d63dd);
	text-align: center;
	transition: opacity .7s ease, visibility .7s ease;
}

.opening-screen.is-open {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.envelope {
	position: relative;
	width: clamp(150px, 32vw, 220px);
	height: clamp(105px, 22vw, 150px);
	margin-bottom: 2rem;
	border: 2px solid #ffc1d0aa;
	border-radius: 8px;
	background: #ed557b;
	box-shadow: 0 16px 40px #21030c88, 0 0 35px #ff8eaa99;
	transform: rotate(-3deg);
	animation: envelope-float 3s ease-in-out infinite;
}

.envelope::before,
.envelope::after {
	position: absolute;
	content: "";
}

.envelope::before {
	inset: 0;
	background: linear-gradient(140deg, transparent 49%, #ffb1c5aa 50%, transparent 52%), linear-gradient(220deg, transparent 49%, #ffb1c5aa 50%, transparent 52%);
}

.envelope::after {
	top: -2px;
	left: 0;
	width: 0;
	height: 0;
	border-top: 72px solid #ff7797;
	border-right: 108px solid transparent;
	border-left: 108px solid transparent;
	filter: drop-shadow(0 2px 2px #a3214e66);
}

.envelope-heart {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	color: #fff0f4;
	font-size: 2.4rem;
	text-shadow: 0 0 14px #ff285f;
	transform: translate(-50%, -50%);
}

.envelope-line { display: none; }

.opening-kicker {
	color: #ffc6d4;
	font: 700 .72rem Arial, sans-serif;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.opening-screen h1 {
	margin: .65rem 0 .3rem;
	color: #fff1f5;
	font-size: clamp(2.5rem, 9vw, 5.5rem);
	font-weight: 400;
}

.opening-screen p {
	margin: 0 0 1.6rem;
	color: #ffd3de;
	font: 1rem Arial, sans-serif;
}

.name-form {
	display: grid;
	gap: .7rem;
	width: min(88vw, 25rem);
}

.name-form.is-shaking { animation: shake .4s ease; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.name-form input {
	width: 100%;
	box-sizing: border-box;
	padding: .85rem 1rem;
	border: 1px solid #ffd0dc99;
	border-radius: 999px;
	outline: none;
	background: #21071388;
	color: #fff4f7;
	font: 1rem Arial, sans-serif;
	text-align: center;
}

.name-form input::placeholder { color: #ffd0dcaa; }

.name-form input:focus {
	border-color: #fff0f4;
	box-shadow: 0 0 20px #ffb4c988;
}

.name-form .open-button { justify-self: center; }

.pass-message {
	min-height: 1.2rem;
	margin: .7rem 0 0 !important;
	color: #ffe4ec !important;
	font-size: .82rem !important;
}

.pass-message.is-error { color: #ffd0a8 !important; }

.open-button {
	padding: .9rem 1.35rem;
	border: 1px solid #ffd0dcaa;
	border-radius: 999px;
	background: #ffffff1c;
	color: #fff4f7;
	font: 700 .85rem Arial, sans-serif;
	letter-spacing: .05em;
	cursor: pointer;
	box-shadow: 0 0 22px #ff8eaa55;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.open-button:hover,
.open-button:focus-visible {
	background: #ffffff38;
	box-shadow: 0 0 28px #ffd0dc99;
	transform: translateY(-3px);
}

.open-button span {
	display: inline-block;
	margin-left: .45rem;
	font-size: 1.1rem;
}

body::before,
body::after {
	position: fixed;
	color: #ffc0d0aa;
	font-family: Georgia, serif;
	font-size: clamp(4rem, 12vw, 9rem);
	line-height: 1;
	text-shadow: 0 0 25px #ff6f9a99;
	content: "♥";
}

body::before {
	top: 10vh;
	left: 8vw;
	animation: float-left 5s ease-in-out infinite;
}

body::after {
	right: 8vw;
	bottom: 10vh;
	font-size: clamp(3rem, 9vw, 7rem);
	animation-delay: -2.5s;
	animation-name: float-right;
	animation-duration: 5.8s;
}

.romance-art {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	z-index: 2;
	pointer-events: none;
}

.photo-words {
	position: fixed;
	top: 7vh;
	left: 50%;
	z-index: 3;
	width: min(90vw, 760px);
	transform: translateX(-50%);
	color: #050505;
	font-family: Georgia, "Times New Roman", serif;
	text-align: center;
	text-shadow: 0 2px 0 #ffffffcc, 0 0 12px #ffffffaa;
	pointer-events: none;
}

.photo-words strong {
	display: block;
	font-size: clamp(2rem, 7vw, 4.8rem);
	font-weight: 900;
	letter-spacing: .04em;
}

.photo-heart {
	color: #26020b;
	font-size: 1.05em;
}

.photo-words small {
	display: block;
	margin-top: .25rem;
	font: 700 .8rem Arial, sans-serif;
	letter-spacing: .28em;
	text-transform: uppercase;
}

.giant-heart {
	position: absolute;
	width: min(48vw, 520px);
	aspect-ratio: 1;
	transform: rotate(-45deg);
	border-radius: 12% 0 12% 0;
	background: #ff3d72;
	box-shadow: 0 0 65px #ff4c80bb, inset 0 -18px 30px #b20f48aa;
	opacity: .35;
}

.giant-heart::before,
.giant-heart::after {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: inherit;
	content: "";
}

.giant-heart::before { top: -50%; }
.giant-heart::after { right: -50%; }

.cartoon-couple {
	position: relative;
	z-index: 1;
	margin-top: 18vh;
	font-size: clamp(4.5rem, 15vw, 10rem);
	filter: contrast(1.15) drop-shadow(0 12px 18px #000000ee);
	animation: couple-bob 4s ease-in-out infinite;
}

.cartoon-couple.is-dancing {
	animation: couple-dance .65s ease-in-out infinite;
}

.side-couple {
	position: absolute;
	top: 50%;
	z-index: 0;
	font-size: clamp(2.4rem, 7vw, 5rem);
	filter: drop-shadow(0 8px 12px #210512aa);
	animation-duration: 4s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

.side-couple-left {
	left: 3vw;
	animation-name: side-bob-left;
}

.side-couple-right {
	right: 3vw;
	animation-name: side-bob-right;
}

.side-couple.is-dancing {
	animation-name: side-dance;
	animation-duration: .65s;
}

.display {
	position: relative;
	z-index: 4;
	width: min(88vw, 760px);
	overflow: hidden;
	border: 2px solid #ffb0c5aa;
	border-radius: 18px;
	background: #240914dd;
	box-shadow: 0 0 0 5px #5c173766, 0 18px 60px #17030dcc, 0 0 45px #ff4f8299;
	backdrop-filter: blur(5px);
	opacity: .12;
	transform: scale(.96);
	filter: blur(5px);
	transition: opacity .9s ease, transform .9s ease, filter .9s ease;
}

.display.is-open {
	opacity: 1;
	transform: scale(1);
	filter: blur(0);
}

.love-note {
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1.4rem, 6vw, 4rem) 2.5rem;
	text-align: center;
	background: radial-gradient(circle at 50% 0, #ff668c22, transparent 60%);
}

.note-kicker {
	color: #ffc1d0;
	font-family: Arial, sans-serif;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.note-kicker span,
.note-signature span {
	color: #ff7196;
}

.love-note h1 {
	margin: 1rem 0 .9rem;
	color: #fff1f5;
	font-size: clamp(2rem, 6vw, 4.2rem);
	font-weight: 400;
	line-height: 1.08;
	text-shadow: 0 3px 22px #ff3d7299;
}

.love-note p {
	margin: 0 auto 1.6rem;
	color: #f7cbd7;
	font-family: Arial, sans-serif;
	font-size: clamp(.9rem, 2.5vw, 1.1rem);
}

.romantic-lines {
	margin: 1.5rem auto 1.7rem;
	padding: .9rem 1rem;
	border-top: 1px solid #ffb1c544;
	border-bottom: 1px solid #ffb1c544;
	color: #ffd9e3;
	font-size: clamp(.92rem, 2.4vw, 1.05rem);
	line-height: 1.55;
}

.romantic-lines p {
	margin: .3rem 0;
	color: inherit;
	font-family: Georgia, "Times New Roman", serif;
	font-size: inherit;
}

.note-signature {
	color: #ffb5c8;
	font-family: "Brush Script MT", cursive;
	font-size: clamp(1.3rem, 4vw, 1.8rem);
}

.music-player {
	display: none;
	width: min(100%, 23rem);
	margin: 1.4rem auto 0;
	padding: .9rem;
	border: 1px solid #ffb1c566;
	border-radius: 12px;
	background: #12050c66;
}

.music-title {
	margin-bottom: .55rem;
	color: #ffe4ec;
	font: 700 .78rem Arial, sans-serif;
	letter-spacing: .06em;
}

.music-player audio {
	width: 100%;
	height: 2.2rem;
}

.music-player small {
	display: block;
	margin-top: .45rem;
	color: #ffc1d088;
	font: .68rem Arial, sans-serif;
}

.music-status {
	min-height: 1rem;
	margin: .45rem 0 0 !important;
	color: #ffd4df !important;
	font-size: .72rem !important;
}

.surprise-button {
	display: block;
	margin: 1.8rem auto 0;
	padding: .75rem 1.2rem;
	border: 1px solid #ff9ebc99;
	border-radius: 999px;
	background: #ff4e7b22;
	color: #ffe6ed;
	font: 700 .8rem Arial, sans-serif;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.surprise-button:hover,
.surprise-button:focus-visible {
	background: #ff4e7b66;
	box-shadow: 0 0 20px #ff4e7b88;
	transform: translateY(-2px);
}

.surprise-button span { color: #ffd2df; }

.surprise-message {
	max-height: 0;
	margin: 0 auto;
	overflow: hidden;
	color: #ffd4df !important;
	opacity: 0;
	transform: translateY(-8px);
	transition: max-height .45s ease, margin .45s ease, opacity .45s ease, transform .45s ease;
}

.surprise-message.is-visible {
	max-height: 4rem;
	margin-top: 1rem;
	opacity: 1;
	transform: translateY(0);
}

.celebration-heart {
	position: fixed;
	left: var(--heart-x);
	bottom: -2rem;
	z-index: 5;
	color: #ffb0c5;
	font-size: clamp(1rem, 3vw, 2rem);
	pointer-events: none;
	text-shadow: 0 0 14px #ff3d72;
	animation: rise 2.6s var(--heart-delay) ease-out forwards;
}

.question-card {
	margin-top: 2.2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #ff9db833;
}

.question-label {
	color: #ff9fba;
	font: 700 .68rem Arial, sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.question-card h2 {
	margin: .55rem 0 1rem;
	color: #ffeaf0;
	font-size: clamp(1.05rem, 3vw, 1.45rem);
	font-weight: 400;
}

.answer-options {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .55rem;
}

.answer-options button {
	padding: .6rem .8rem;
	border: 1px solid #ffb1c566;
	border-radius: 10px;
	background: #ff668c14;
	color: #ffdce6;
	font: .78rem Arial, sans-serif;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.answer-options button:hover,
.answer-options button:focus-visible {
	border-color: #ff9fba;
	background: #ff668c44;
	transform: translateY(-2px);
}

.answer-options button.selected {
	border-color: #ffd0dc;
	background: #ff668c66;
	box-shadow: 0 0 16px #ff668c55;
}

.answer-reveal {
	min-height: 1.3rem;
	margin: 1rem 0 0;
	color: #ffd0dd;
	font-family: Georgia, serif;
	font-size: .95rem;
	opacity: 0;
	transform: scale(.96);
	transition: opacity .35s ease, transform .35s ease;
}

.answer-reveal.is-visible {
	opacity: 1;
	transform: scale(1);
}

.marquee {
	border-top: 1px solid #ff9db833;
	background: #12050cbb;
}

@keyframes scroll {
	from { transform: translateX(100vw); }
	to { transform: translateX(-100%); }
}

.marquee {
	width: max-content;
	padding: 18px 0;
	color: #ffe4ec;
	font-size: clamp(1.8rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: .08em;
	white-space: nowrap;
	text-shadow: 0 0 10px #ff628c, 0 0 24px #ff285f;
	animation: scroll 12s linear infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0) rotate(-8deg); }
	50% { transform: translateY(-18px) rotate(8deg); }
}

@keyframes float-left {
	0%, 100% { transform: translate(0, 0) rotate(-10deg) scale(1); }
	50% { transform: translate(12px, -24px) rotate(8deg) scale(1.08); }
}

@keyframes float-right {
	0%, 100% { transform: translate(0, 0) rotate(10deg) scale(1); }
	50% { transform: translate(-14px, -20px) rotate(-8deg) scale(.92); }
}

@keyframes couple-bob {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes couple-dance {
	0%, 100% { transform: translateY(0) rotate(-12deg) scale(1); }
	25% { transform: translateY(-24px) rotate(14deg) scale(1.1); }
	50% { transform: translateY(0) rotate(-12deg) scale(1); }
	75% { transform: translateY(-24px) rotate(14deg) scale(1.1); }
}

@keyframes side-bob-left {
	0%, 100% { transform: translateY(-50%) rotate(-5deg); }
	50% { transform: translateY(calc(-50% - 10px)) rotate(5deg); }
}

@keyframes side-bob-right {
	0%, 100% { transform: translateY(-50%) rotate(5deg); }
	50% { transform: translateY(calc(-50% - 10px)) rotate(-5deg); }
}

@keyframes side-dance {
	0%, 100% { transform: translateY(-50%) rotate(-10deg) scale(1); }
	50% { transform: translateY(calc(-50% - 14px)) rotate(10deg) scale(1.08); }
}

@keyframes rise {
	to {
		opacity: 0;
		transform: translateY(-110vh) rotate(360deg) scale(.7);
	}
}

@keyframes envelope-float {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-8px); }
	75% { transform: translateX(8px); }
}

@media (prefers-reduced-motion: reduce) {
	.marquee { animation-duration: 24s; }
	body::before,
	body::after { animation: none; }
	.cartoon-couple,
	.side-couple { animation: none; }
	.surprise-button,
	.surprise-message,
	.answer-options button,
	.answer-reveal,
	.open-button,
	.opening-screen,
	.display { transition: none; }
	.envelope,
	.photo-gate-content::before,
	.photo-gate-content::after,
	.photo-gate-content h1 { animation: none; }
}

@media (max-width: 520px) {
	body { align-content: center; }
	.love-note h1 { font-size: clamp(1.8rem, 9vw, 2.7rem); }
	.giant-heart { width: 70vw; }
	.side-couple { font-size: 2.2rem; }
}
