/* Standalone birthday gift — no framework required */
:root {
	--radius: 1rem;
	--background: oklch(0.975 0.018 5);
	--foreground: oklch(0.31 0.052 18);
	--card: oklch(0.99 0.01 18);
	--card-foreground: oklch(0.31 0.052 18);
	--primary: oklch(0.61 0.16 10);
	--primary-foreground: oklch(0.99 0.01 18);
	--secondary: oklch(0.91 0.055 12);
	--secondary-foreground: oklch(0.38 0.07 15);
	--muted: oklch(0.94 0.024 35);
	--muted-foreground: oklch(0.53 0.045 20);
	--accent: oklch(0.89 0.075 350);
	--accent-foreground: oklch(0.38 0.07 15);
	--border: oklch(0.87 0.055 10);
	--paper: oklch(0.975 0.026 75);
	--rose-deep: oklch(0.46 0.12 12);
	--leaf: oklch(0.52 0.08 142);
	--font-sans: 'DM Sans', sans-serif;
	--font-display: 'Italiana', serif;
	--font-script: 'Parisienne', cursive;
	--shadow-romantic: 0 18px 50px
		color-mix(in oklab, var(--primary) 20%, transparent);
	--shadow-petal: 0 8px 22px
		color-mix(in oklab, var(--primary) 11%, transparent);
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	overflow-x: hidden;
}
body.story-open {
	overflow-x: hidden;
}
h1,
h2,
h3,
p,
figure,
ol {
	margin-top: 0;
}
h1,
h2,
h3 {
	letter-spacing: 0;
}
img,
svg {
	display: block;
	max-width: 100%;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
}
button:focus-visible,
a:focus-visible {
	outline: 3px solid color-mix(in oklab, var(--primary) 45%, transparent);
	outline-offset: 3px;
}
[hidden] {
	display: none !important;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 10px 16px;
	color: var(--foreground);
	background: transparent;
	cursor: pointer;
	transition:
		transform 0.2s,
		background 0.2s,
		box-shadow 0.2s,
		opacity 0.2s;
}
.btn:hover:not(:disabled) {
	transform: translateY(-2px);
}
.btn:disabled {
	opacity: 0.48;
	cursor: not-allowed;
}
.btn svg {
	width: 18px;
	height: 18px;
}
.btn-romantic {
	color: var(--primary-foreground);
	background: var(--primary);
	box-shadow: var(--shadow-petal);
}
.btn-romantic:hover:not(:disabled) {
	box-shadow: var(--shadow-romantic);
}
.btn-ghost:hover:not(:disabled) {
	background: color-mix(in oklab, var(--card) 65%, transparent);
}
.btn-wide {
	width: min(100%, 290px);
}
.btn-icon {
	width: 44px;
	padding: 0;
}
.btn-icon-lg {
	width: 58px;
	height: 58px;
	padding: 0;
	border-radius: 50%;
}
.keypad .btn {
	width: 56px;
	height: 52px;
	padding: 0;
	border-color: color-mix(in oklab, var(--border) 75%, transparent);
	border-radius: 50%;
	background: color-mix(in oklab, var(--card) 62%, transparent);
	box-shadow: 0 5px 16px color-mix(in oklab, var(--rose-deep) 8%, transparent);
}
.keypad .btn:active {
	transform: scale(0.92);
}
.song-list {
	list-style: none;
	padding: 0;
}
.song-list a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
}
.song-list a svg {
	width: 16px;
}
.tree-heart {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
}
.tree-heart div {
	z-index: 5;
}
@media (max-width: 420px) {
	.passcode-card {
		padding-top: 56px;
	}
	.keypad {
		width: 205px;
	}
	.keypad .btn {
		width: 52px;
		height: 48px;
	}
	.passcode-screen {
		padding: 18px;
	}
	.cat-delivery-copy h2 {
		font-size: 1.85rem;
	}
	.cake-secondary {
		max-width: 330px;
	}
}

@keyframes petal-fall {
	0% {
		transform: translate3d(0, -12vh, 0) rotate(0);
	}
	100% {
		transform: translate3d(70px, 112vh, 0) rotate(540deg);
	}
}
@keyframes soft-float {
	50% {
		transform: translateY(-10px) rotate(1deg);
	}
}
@keyframes bloom {
	from {
		opacity: 0;
		transform: translateY(25px) scale(0.6);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes shake {
	20%,
	60% {
		transform: translateX(-8px);
	}
	40%,
	80% {
		transform: translateX(8px);
	}
}
@keyframes spin-record {
	to {
		transform: rotate(360deg);
	}
}
@keyframes pulse-glow {
	50% {
		box-shadow: 0 0 70px color-mix(in oklab, var(--primary) 30%, transparent);
	}
}
@keyframes cat-arrive {
	from {
		opacity: 0;
		transform: translateX(34%) rotate(2deg) scale(0.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.animate-shake {
	animation: shake 0.45s ease;
}
.font-display {
	font-family: var(--font-display);
}
.font-script {
	font-family: var(--font-script);
}

.passcode-screen {
	min-height: 100svh;
	display: grid;
	place-items: center;
	overflow: hidden;
	position: relative;
	padding: 24px;
	background:
		radial-gradient(
			circle at 50% 15%,
			color-mix(in oklab, var(--card) 65%, transparent),
			transparent 32%
		),
		linear-gradient(
			155deg,
			var(--secondary),
			var(--background) 48%,
			var(--accent)
		);
	transition:
		opacity 0.8s,
		filter 0.8s;
}
.passcode-success {
	opacity: 0;
	filter: blur(12px);
}
.passcode-card {
	width: min(100%, 430px);
	position: relative;
	z-index: 5;
	text-align: center;
	padding: 64px 36px 34px;
	border: 1px solid color-mix(in oklab, var(--card) 70%, var(--primary));
	border-radius: 32px;
	background: color-mix(in oklab, var(--card) 77%, transparent);
	box-shadow: 0 32px 90px color-mix(in oklab, var(--rose-deep) 18%, transparent);
	backdrop-filter: blur(18px);
}
.passcode-seal {
	position: absolute;
	left: 50%;
	top: 0;
	translate: -50% -50%;
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	color: var(--primary-foreground);
	background: var(--primary);
	border: 6px solid var(--secondary);
	box-shadow: var(--shadow-romantic);
}
.passcode-seal svg {
	width: 25px;
}
.eyebrow,
.section-kicker {
	color: var(--primary);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 600;
}
.passcode-card h1 {
	margin: 12px 0 8px;
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 7vw, 2.5rem);
	line-height: 1.15;
}
.passcode-hint {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	color: var(--muted-foreground);
	font-size: 0.78rem;
}
.passcode-hint svg {
	width: 14px;
}
.code-dots {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 24px 0;
}
.code-dots span {
	display: grid;
	place-items: center;
	width: 44px;
	height: 52px;
	border-bottom: 2px solid var(--border);
	font-size: 1rem;
	color: var(--primary);
	transition: 0.25s;
}
.code-dots span.filled {
	border-color: var(--primary);
	transform: translateY(-3px);
}
.keypad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	justify-items: center;
	gap: 10px;
	width: 220px;
	margin: 0 auto 22px;
}
.error-note {
	height: 18px;
	margin-top: 13px;
	color: var(--primary);
	font-size: 0.76rem;
	opacity: 0;
	transition: 0.2s;
}
.error-note.visible {
	opacity: 1;
}
.floral-corner {
	position: absolute;
	left: -16px;
	bottom: -55px;
	display: flex;
	align-items: flex-end;
	opacity: 0.7;
	transform: rotate(8deg);
}
.floral-corner-right {
	left: auto;
	right: -16px;
	transform: scaleX(-1) rotate(8deg);
}
.tulip {
	overflow: visible;
	transform-origin: 50% 100%;
	animation: soft-float 5s ease-in-out infinite;
}
.tulip-stem {
	stroke: var(--leaf);
	stroke-width: 5;
	fill: none;
	stroke-linecap: round;
}
.tulip-leaf {
	fill: color-mix(in oklab, var(--leaf) 82%, var(--background));
}
.tulip-head {
	fill: var(--primary);
}
.tulip-head-blush {
	fill: var(--accent);
}
.tulip-head-cream {
	fill: var(--paper);
	stroke: var(--secondary);
	stroke-width: 1;
}
.petal-field {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}
.petal-field i {
	--i: 0;
	position: absolute;
	top: -10%;
	left: calc((var(--i) * 37) % 100 * 1%);
	width: 10px;
	height: 17px;
	border-radius: 90% 10% 80% 20%;
	background: color-mix(in oklab, var(--primary) 52%, var(--secondary));
	opacity: 0.45;
	animation: petal-fall calc(9s + (var(--i) % 5) * 2s) linear
		calc(var(--i) * -0.7s) infinite;
}
.story {
	background: var(--background);
}
.story-chapter {
	position: relative;
	min-height: 100svh;
	padding: 100px max(24px, calc((100vw - 1180px) / 2));
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.reveal-chapter > *:not(.petal-field) {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.9s ease,
		transform 0.9s ease;
}
.reveal-chapter.is-visible > * {
	opacity: 1;
	transform: none;
}
.reveal-chapter.is-visible > *:nth-child(3) {
	transition-delay: 0.14s;
}
.reveal-chapter.is-visible > *:nth-child(4) {
	transition-delay: 0.26s;
}
.chapter-number {
	position: absolute;
	top: 42px;
	left: max(24px, calc((100vw - 1180px) / 2));
	font-family: var(--font-display);
	color: var(--primary);
	font-size: 1.15rem;
	border-bottom: 1px solid var(--border);
	padding-bottom: 8px;
}
.chapter-number span {
	font-family: var(--font-sans);
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin-left: 8px;
	color: var(--muted-foreground);
}
.intro-chapter {
	text-align: center;
	background: linear-gradient(var(--background), var(--secondary));
}
.intro-copy {
	max-width: 760px;
	margin: auto;
}
.script-kicker {
	font-family: var(--font-script);
	font-size: clamp(2.4rem, 8vw, 4.8rem);
	color: var(--primary);
	margin-bottom: 4px;
}
.intro-copy h1,
.story h2 {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 8vw, 5.8rem);
	line-height: 1.06;
}
.intro-copy > p:last-child {
	max-width: 650px;
	margin: 26px auto 0;
	color: var(--muted-foreground);
	line-height: 1.9;
}
.intro-garden {
	height: 210px;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	margin-top: 30px;
}
.intro-garden .tulip {
	width: 72px;
	margin: 0 -11px;
}
.intro-garden .tulip-short {
	width: 62px;
	transform: scale(0.82);
}
.scroll-cue {
	color: var(--rose-deep);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}
.scroll-cue span {
	display: block;
	font-size: 1.2rem;
	animation: soft-float 2s infinite;
}
.bouquet-chapter {
	align-items: center;
	text-align: center;
	background: linear-gradient(var(--secondary), var(--background));
}
.bouquet-chapter h2 {
	max-width: 800px;
	font-size: clamp(2.3rem, 6vw, 4.5rem);
	margin: 14px auto;
}
.bouquet {
	position: relative;
	width: min(94vw, 620px);
	height: 560px;
	margin-top: 10px;
}
.bouquet-glow {
	position: absolute;
	z-index: 0;
	inset: 8% 7% 17%;
	border-radius: 50%;
	background: color-mix(in oklab, var(--primary) 12%, transparent);
	filter: blur(35px);
	animation: pulse-glow 4s infinite;
}
.bouquet-blooms {
	position: absolute;
	z-index: 2;
	inset: 0;
}
.bouquet-tulip {
	position: absolute;
	bottom: 92px;
	left: 50%;
	width: 104px;
	height: 370px;
	transform-origin: 50% 100%;
}
.bouquet-tulip:nth-child(1) {
	margin-left: -52px;
	height: 430px;
}
.bouquet-tulip:nth-child(2) {
	margin-left: -126px;
	height: 410px;
	rotate: -12deg;
}
.bouquet-tulip:nth-child(3) {
	margin-left: 22px;
	height: 405px;
	rotate: 12deg;
}
.bouquet-tulip:nth-child(4) {
	margin-left: -190px;
	height: 370px;
	rotate: -22deg;
}
.bouquet-tulip:nth-child(5) {
	margin-left: 86px;
	height: 370px;
	rotate: 22deg;
}
.bouquet-tulip:nth-child(6) {
	margin-left: -90px;
	height: 355px;
	rotate: -7deg;
}
.bouquet-tulip:nth-child(7) {
	margin-left: -14px;
	height: 350px;
	rotate: 7deg;
}
.bouquet-tulip:nth-child(8) {
	margin-left: -230px;
	height: 325px;
	rotate: -28deg;
}
.bouquet-tulip:nth-child(9) {
	margin-left: 126px;
	height: 325px;
	rotate: 28deg;
}
.bouquet-tulip:nth-child(10) {
	margin-left: -158px;
	height: 325px;
	rotate: -17deg;
}
.bouquet-tulip:nth-child(11) {
	margin-left: 54px;
	height: 320px;
	rotate: 17deg;
}
.bouquet-tulip:nth-child(12) {
	margin-left: -206px;
	height: 285px;
	rotate: -26deg;
}
.bouquet-tulip:nth-child(13) {
	margin-left: 110px;
	height: 285px;
	rotate: 26deg;
}
.bouquet-tulip:nth-child(14) {
	margin-left: -113px;
	height: 292px;
	rotate: -10deg;
}
.bouquet-tulip:nth-child(15) {
	margin-left: 10px;
	height: 290px;
	rotate: 10deg;
}
.is-visible .bouquet-tulip {
	animation: bloom 0.9s both;
}
.bouquet-wrap {
	position: absolute;
	left: 50%;
	translate: -50%;
	background: var(--paper);
	border: 1px solid color-mix(in oklab, var(--primary) 20%, var(--paper));
	box-shadow: var(--shadow-petal);
}
.bouquet-wrap-back {
	z-index: 1;
	bottom: 40px;
	width: 430px;
	height: 330px;
	clip-path: polygon(3% 0, 50% 28%, 97% 0, 73% 100%, 27% 100%);
	background: color-mix(in oklab, var(--paper) 82%, var(--secondary));
}
.bouquet-wrap-front {
	z-index: 3;
	bottom: 38px;
	width: 390px;
	height: 275px;
	clip-path: polygon(0 0, 50% 24%, 100% 0, 69% 100%, 31% 100%);
	background: color-mix(in oklab, var(--paper) 92%, var(--card));
}
.wrap-fold {
	position: absolute;
	inset: 0;
	clip-path: polygon(0 0, 50% 24%, 31% 100%);
	background: color-mix(in oklab, var(--secondary) 42%, transparent);
}
.bouquet-tie {
	position: absolute;
	z-index: 4;
	left: 50%;
	bottom: 87px;
	translate: -50%;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: var(--shadow-petal);
}
.bouquet-tie i {
	position: absolute;
	top: 22px;
	width: 88px;
	height: 28px;
	background: var(--primary);
	border-radius: 70% 12% 70% 12%;
}
.bouquet-tie i:first-child {
	right: 22px;
	rotate: -18deg;
}
.bouquet-tie i:last-child {
	left: 22px;
	rotate: 18deg;
	transform: scaleX(-1);
}
.bouquet-ribbon {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 26px;
	translate: -50%;
	width: 250px;
	padding: 12px 14px;
	background: var(--paper);
	color: var(--rose-deep);
	font-family: var(--font-script);
	font-size: 1.5rem;
	rotate: -3deg;
	box-shadow: var(--shadow-petal);
}
.cat-delivery-chapter {
	position: relative;
	height: 400svh;
	background: linear-gradient(
		var(--background),
		var(--secondary) 48%,
		var(--background)
	);
}
.cat-delivery-sticky {
	position: sticky;
	top: 0;
	height: 100svh;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	place-items: center;
	gap: 14px;
	overflow: hidden;
	padding: 46px 24px 26px;
}
.cat-delivery-copy {
	position: relative;
	z-index: 3;
	text-align: center;
}
.cat-delivery-copy h2 {
	max-width: 760px;
	margin: 8px auto 0;
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.05;
}
.cat-photo-stage {
	position: relative;
	z-index: 2;
	height: min(64svh, 620px);
	aspect-ratio: 4/5;
	max-width: 90vw;
}
.cat-photo {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border: 9px solid var(--card);
	border-bottom-width: 42px;
	border-radius: 6px;
	background: var(--card);
	box-shadow: 0 28px 70px color-mix(in oklab, var(--rose-deep) 24%, transparent);
	opacity: 0;
	transform: translateX(34%) rotate(2deg) scale(0.97);
	transition:
		opacity 0.55s ease,
		transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.cat-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 1px solid color-mix(in oklab, var(--primary) 12%, transparent);
	pointer-events: none;
}
.cat-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cat-photo figcaption {
	position: absolute;
	right: 10px;
	bottom: -33px;
	font-family: var(--font-display);
	font-size: 0.82rem;
	color: var(--muted-foreground);
}
.cat-photo.is-active {
	opacity: 1;
	transform: none;
}
.cat-photo.is-past {
	opacity: 0;
	transform: translateX(-34%) rotate(-2deg) scale(0.97);
}
.cat-progress {
	position: relative;
	z-index: 3;
	display: flex;
	gap: 8px;
}
.cat-progress i {
	width: 22px;
	height: 3px;
	border-radius: 3px;
	background: var(--border);
	transition: 0.35s;
}
.cat-progress i.active {
	width: 46px;
	background: var(--primary);
}
.cat-delivery-note {
	position: relative;
	z-index: 3;
	margin: 0;
	text-align: center;
	font-family: var(--font-script);
	font-size: clamp(1.25rem, 3vw, 1.7rem);
	color: var(--rose-deep);
}
.letter-chapter {
	background: linear-gradient(165deg, var(--background), var(--muted));
}
.letter-paper {
	position: relative;
	max-width: 760px;
	margin: auto;
	padding: clamp(38px, 7vw, 82px);
	border: 1px solid var(--border);
	background: var(--paper);
	box-shadow: 0 28px 70px color-mix(in oklab, var(--rose-deep) 12%, transparent);
	transform: rotate(-1deg) !important;
	background-image: repeating-linear-gradient(
		0deg,
		transparent 0,
		transparent 31px,
		color-mix(in oklab, var(--border) 28%, transparent) 32px
	);
}
.letter-paper h2 {
	font-size: clamp(2.3rem, 6vw, 4rem);
	margin: 10px 0 28px;
}
.letter-body {
	font-family: var(--font-script);
	font-size: clamp(1.3rem, 3.5vw, 1.75rem);
	line-height: 1.55;
}
.letter-body p {
	opacity: 0;
	transform: translateY(8px);
}
.is-visible .letter-body p {
	animation: bloom 0.6s calc(var(--line) * 80ms + 300ms) forwards;
}
.letter-tulip {
	position: absolute;
	right: 28px;
	top: 26px;
	font-size: 2rem;
}
.wax-seal {
	position: absolute;
	right: 45px;
	bottom: 35px;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--primary-foreground);
	background: var(--primary);
	box-shadow: var(--shadow-petal);
}
.memories-chapter {
	background: var(--secondary);
	min-height: 120vh;
}
.chapter-heading {
	text-align: center;
	margin-bottom: 45px;
}
.chapter-heading .chapter-number {
	position: static;
	display: inline-block;
}
.chapter-heading h2 {
	margin-top: 12px;
}
.scrapbook {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 28px;
	align-items: start;
}
.memory-card {
	background: var(--card);
	padding: 14px 14px 24px;
	box-shadow: 0 18px 40px color-mix(in oklab, var(--rose-deep) 13%, transparent);
	transition: 0.35s;
}
.memory-card:hover {
	transform: rotate(0) translateY(-8px) !important;
	z-index: 2;
}
.memory-card .photo-wrap {
	aspect-ratio: 4/5;
	overflow: hidden;
}
.memory-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.5s;
}
.memory-card:hover img {
	transform: scale(1.035);
}
.memory-card h3 {
	font-family: var(--font-script);
	font-size: 1.6rem;
	color: var(--rose-deep);
}
.memory-card > p {
	font-size: 0.78rem;
	color: var(--muted-foreground);
	line-height: 1.5;
}
.memory-date {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-top: 14px;
}
.memory-1 {
	grid-column: 1/5;
	transform: rotate(-3deg);
}
.memory-2 {
	grid-column: 5/9;
	margin-top: 70px;
	transform: rotate(2deg);
}
.memory-3 {
	grid-column: 9/13;
	transform: rotate(-1deg);
}
.memory-4 {
	grid-column: 4/9;
	margin-top: -35px;
	transform: rotate(2.5deg);
}
.gallery-note {
	text-align: center;
	margin-top: 40px;
	font-family: var(--font-script);
	color: var(--rose-deep);
}
.playlist-chapter {
	background: linear-gradient(150deg, var(--background), var(--accent));
}
.playlist-layout {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 8vw;
	align-items: center;
}
.record-side {
	text-align: center;
	color: var(--muted-foreground);
}
.record {
	width: min(70vw, 350px);
	aspect-ratio: 1;
	margin: auto;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: repeating-radial-gradient(
		circle,
		var(--rose-deep) 0 3px,
		color-mix(in oklab, var(--rose-deep) 85%, var(--foreground)) 4px 7px
	);
	box-shadow: var(--shadow-romantic);
}
.record-playing {
	animation: spin-record 8s linear infinite;
}
.record-label {
	width: 34%;
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--secondary);
	color: var(--primary);
}
.record-label svg {
	width: 35%;
}
.record-side p {
	font-family: var(--font-script);
	font-size: 1.45rem;
	margin-top: 24px;
}
.player {
	max-width: 600px;
}
.player h2 {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	margin: 12px 0 30px;
}
.now-playing {
	display: grid;
	gap: 2px;
}
.now-playing span,
.now-playing small {
	color: var(--muted-foreground);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.13em;
}
.now-playing strong {
	font-family: var(--font-display);
	font-size: 1.6rem;
}
.progress {
	height: 3px;
	background: var(--border);
	margin: 18px 0;
}
.progress i {
	display: block;
	height: 100%;
	background: var(--primary);
	transition: 1s;
}
.player-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin: 18px;
}
.song-list {
	display: grid;
	gap: 6px;
}
.song-list li {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--border);
	border-radius: 10px;
}
.song-list li.active {
	background: color-mix(in oklab, var(--card) 60%, transparent);
}
.song-list button {
	flex: 1;
	display: grid;
	grid-template-columns: 36px 1fr auto;
	align-items: center;
	text-align: left;
	padding: 14px;
	cursor: pointer;
}
.song-list button > span:nth-child(2) {
	display: grid;
}
.song-list svg {
	width: 17px;
	color: var(--primary);
}
.song-list small {
	color: var(--muted-foreground);
}
.song-list time {
	font-size: 0.75rem;
	color: var(--muted-foreground);
}
.tree-chapter {
	background: linear-gradient(var(--accent), var(--background));
	text-align: center;
	min-height: 125vh;
}
.date-arrow {
	color: var(--primary);
}
.days-together {
	color: var(--muted-foreground);
}
.days-together strong {
	font-family: var(--font-display);
	font-size: 2rem;
	color: var(--primary);
}
.heart-tree {
	position: relative;
	width: min(96vw, 760px);
	margin: 0 auto;
	height: 640px;
}
.heart-tree > svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}
.tree-trunk,
.tree-ground {
	fill: none;
	stroke: var(--rose-deep);
	stroke-width: 5;
	stroke-linecap: round;
	stroke-dasharray: 400;
	stroke-dashoffset: 400;
	transition: stroke-dashoffset 2.5s ease;
}
.is-visible .tree-trunk,
.is-visible .tree-ground {
	stroke-dashoffset: 0;
}
.tree-leaves {
	fill: var(--leaf);
	opacity: 0.15;
}
.tree-heart {
	position: absolute;
	color: var(--primary);
	opacity: 0 !important;
	transform: scale(0) !important;
	transition: 0.5s var(--heart-delay) !important;
}
.is-visible .tree-heart {
	opacity: 1 !important;
	transform: scale(1) !important;
}
.tree-heart > svg {
	width: 55px;
	height: 55px;
	filter: drop-shadow(
		0 6px 8px color-mix(in oklab, var(--primary) 25%, transparent)
	);
}
.tree-heart div {
	position: absolute;
	left: 50%;
	bottom: 63px;
	translate: -50%;
	width: 175px;
	padding: 10px;
	border-radius: 8px;
	background: color-mix(in oklab, var(--card) 90%, transparent);
	box-shadow: var(--shadow-petal);
	display: grid;
	opacity: 0;
	transition: 0.25s;
	pointer-events: none;
}
.tree-heart:hover div,
.tree-heart:focus-within div {
	opacity: 1;
}
.tree-heart span {
	font-size: 0.7rem;
	color: var(--muted-foreground);
}
.tree-ending {
	font-family: var(--font-script);
	font-size: 2rem;
}
.love-you {
	font-family: var(--font-display);
	font-size: clamp(2rem, 6vw, 4rem);
	color: var(--primary);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}
.love-you svg {
	width: 0.8em;
}
.final-chapter {
	text-align: center;
	align-items: center;
	background:
		radial-gradient(circle at 50% 40%, var(--card), transparent 30%),
		linear-gradient(150deg, var(--secondary), var(--accent));
	min-height: 100svh;
}
.final-bloom {
	position: relative;
	width: 150px;
	height: 230px;
	margin-bottom: 20px;
}
.final-bloom .tulip {
	width: 100%;
	height: 100%;
}
.final-bloom span {
	position: absolute;
	bottom: 4px;
	width: 80px;
	height: 1px;
	background: var(--primary);
	transform: rotate(12deg);
}
.final-bloom span:last-child {
	transform: rotate(-12deg);
}
.final-chapter h2 {
	max-width: 900px;
	margin: 18px 0 30px;
}
.final-chapter > p:not(.section-kicker) {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 3vw, 1.6rem);
	margin: 7px;
}
.final-sign {
	margin-top: 55px;
	font-family: var(--font-script);
	font-size: 2rem;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 8px;
}
.final-sign svg {
	width: 20px;
}

@media (max-width: 700px) {
	.passcode-card {
		padding-inline: 22px;
	}
	.floral-corner {
		opacity: 0.4;
	}
	.story-chapter {
		padding: 90px 22px;
	}
	.chapter-number {
		top: 28px;
	}
	.intro-garden {
		height: 170px;
	}
	.intro-garden .tulip {
		width: 52px;
	}
	.bouquet {
		height: 465px;
		scale: 0.76;
		margin: -32px 0 -42px;
	}
	.cat-delivery-sticky {
		padding: 28px 18px 18px;
		gap: 10px;
	}
	.cat-photo-stage {
		height: min(65svh, 570px);
		max-width: 88vw;
	}
	.cat-photo {
		border-width: 6px;
	}
	.scrapbook {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 15px 26px 38px;
		margin-inline: -22px;
	}
	.memory-card {
		flex: 0 0 78vw;
		margin: 0 !important;
		scroll-snap-align: center;
		transform: rotate(-2deg) !important;
	}
	.memory-card:nth-child(even) {
		transform: rotate(2deg) !important;
	}
	.playlist-layout {
		grid-template-columns: 1fr;
	}
	.record {
		width: 200px;
	}
	.record-side p {
		font-size: 1.2rem;
	}
	.player h2 {
		text-align: center;
	}
	.heart-tree {
		height: 530px;
		margin-inline: -22px;
		width: calc(100% + 44px);
	}
	.tree-heart > svg {
		width: 42px;
	}
	.tree-heart div {
		width: 130px;
		font-size: 0.7rem;
	}
	.letter-paper {
		padding: 55px 28px;
	}
	.letter-tulip {
		right: 14px;
		top: 15px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.petal-field {
		display: none;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.cake-chapter {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: 110px max(24px, calc((100vw - 1180px) / 2)) 90px;
	overflow: hidden;
	text-align: center;
	background: linear-gradient(var(--background), var(--secondary));
}
.cake-copy {
	position: relative;
	z-index: 3;
	max-width: 720px;
}
.cake-copy h2 {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 6vw, 4.2rem);
	line-height: 1.06;
	margin: 8px 0 14px;
}
.cake-note {
	color: var(--muted-foreground);
	font-family: var(--font-script);
	font-size: 1.5rem;
}
.cake {
	position: relative;
	z-index: 2;
	width: min(92vw, 360px);
	height: 330px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
}
.cake-glow {
	position: absolute;
	inset: -6% 6% 22%;
	border-radius: 50%;
	background: color-mix(in oklab, var(--primary) 14%, transparent);
	filter: blur(40px);
	animation: pulse-glow 4s infinite;
}
.cake-candles {
	position: absolute;
	bottom: 196px;
	display: flex;
	gap: 26px;
	z-index: 3;
}
.candle {
	position: relative;
	width: 13px;
	height: 56px;
}
.candle .wax {
	position: absolute;
	inset: 0;
	border-radius: 6px;
	background: linear-gradient(
		var(--paper),
		color-mix(in oklab, var(--primary) 35%, var(--paper))
	);
	box-shadow: var(--shadow-petal);
}
.candle .flame {
	position: absolute;
	left: 50%;
	top: -24px;
	translate: -50%;
	width: 14px;
	height: 22px;
	border-radius: 50% 50% 50% 50%/62% 62% 38% 38%;
	background: radial-gradient(
		circle at 50% 70%,
		#fff8e1,
		color-mix(in oklab, var(--primary) 60%, #ffb703)
	);
	box-shadow: 0 0 22px color-mix(in oklab, #ffb703 55%, transparent);
	transform-origin: 50% 100%;
	animation: flame-dance 1.1s ease-in-out infinite;
	transition:
		opacity 0.3s,
		transform 0.3s;
}
.cake.is-blowing .flame {
	animation-duration: 0.28s;
	transform: translateX(-50%) rotate(-18deg) scaleY(0.7);
}
.candle.is-out .flame {
	opacity: 0;
	transform: translateX(-50%) scale(0.2);
}
.candle .smoke {
	position: absolute;
	left: 50%;
	top: -22px;
	translate: -50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: color-mix(in oklab, var(--muted-foreground) 45%, transparent);
	opacity: 0;
}
.candle.is-out .smoke {
	animation: smoke-rise 1.6s ease-out forwards;
}
.cake-tier {
	position: relative;
	border-radius: 14px 14px 10px 10px;
	background: linear-gradient(
		var(--paper),
		color-mix(in oklab, var(--secondary) 70%, var(--paper))
	);
	box-shadow: 0 18px 40px color-mix(in oklab, var(--rose-deep) 20%, transparent);
}
.cake-tier-top {
	width: 170px;
	height: 74px;
}
.cake-tier-bottom {
	width: 250px;
	height: 92px;
	margin-top: 4px;
}
.cake-tier .drip {
	position: absolute;
	inset: 0 0 auto;
	height: 30px;
	border-radius: 14px 14px 40% 40%/14px 14px 100% 100%;
	background: color-mix(in oklab, var(--primary) 45%, var(--card));
}
.cake-plate {
	width: 300px;
	height: 14px;
	border-radius: 50%;
	margin-top: 6px;
	background: color-mix(in oklab, var(--card) 80%, var(--secondary));
	box-shadow: 0 14px 30px color-mix(in oklab, var(--rose-deep) 18%, transparent);
}
.cake-sparkles {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.cake-sparkles i {
	position: absolute;
	left: calc(6% + (var(--s) * 13) % 88 * 1%);
	top: calc(8% + (var(--s) * 27) % 70 * 1%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: color-mix(in oklab, var(--primary) 60%, #fff);
	animation: sparkle-pop 1.8s ease-out calc(var(--s) * 90ms) infinite;
}
.cake-controls {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.listening-note {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--primary);
	font-size: 0.85rem;
}
.listening-note svg {
	width: 16px;
}
.cake-secondary {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}
.cake-error {
	color: var(--rose-deep);
	font-size: 0.78rem;
	max-width: 320px;
}
@keyframes flame-dance {
	50% {
		transform: translateX(-50%) rotate(4deg) scaleY(1.12);
	}
}
@keyframes smoke-rise {
	from {
		opacity: 0.5;
		transform: translate(-50%, 0) scale(0.6);
	}
	to {
		opacity: 0;
		transform: translate(-50%, -52px) scale(2);
	}
}
@keyframes sparkle-pop {
	0%,
	100% {
		opacity: 0;
		transform: scale(0.4);
	}
	50% {
		opacity: 1;
		transform: scale(1);
	}
}
@media (max-width: 700px) {
	.cake {
		width: 88vw;
		height: 300px;
	}
	.cake-candles {
		gap: 18px;
		bottom: 176px;
	}
	.cake-tier-bottom {
		width: 220px;
	}
	.cake-tier-top {
		width: 150px;
	}
	.cake-plate {
		width: 260px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.flame,
	.cake-sparkles i,
	.cake-glow {
		animation: none;
	}
}
