/* =========================================================================
   Say In Love – trang xem lời nhắn
   ========================================================================= */

:root {
	--sans: "Inter", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--script: "Dancing Script", "Segoe Script", cursive;
	--pink: #ff3d7f;
	--pink-2: #ff7eb6;
}

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

html, body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: #14061f;
	color: #fff;
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	overscroll-behavior: none;
}

button { font: inherit; }

.sil-stage {
	position: fixed;
	inset: 0;
	overflow: hidden;
	touch-action: manipulation;
}

.sil-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

.sil-noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }

.sil-typing::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-left: 2px;
	vertical-align: -0.12em;
	background: currentColor;
	animation: sil-blink 0.8s steps(2) infinite;
}
@keyframes sil-blink { 50% { opacity: 0; } }

/* ---------- Trái tim bay ---------- */
.sil-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.sil-heart {
	position: absolute;
	bottom: -48px;
	color: var(--pink-2);
	animation: sil-rise linear forwards;
	will-change: transform;
	text-shadow: 0 0 12px currentColor;
}
@keyframes sil-rise {
	from { transform: translate(0, 0) rotate(0); }
	to { transform: translate(var(--drift, 0), calc(-100vh - 80px)) rotate(25deg); opacity: 0; }
}

.sil-confetti { z-index: 30; }

/* ---------- Bìa mở đầu & nền dùng chung ---------- */
.sil-cover { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; transition: opacity 0.7s ease, transform 0.7s ease; }
.sil-cover.is-out { opacity: 0; transform: scale(1.05); pointer-events: none; }
.sil-cover__title { margin: 0 0 6px; max-width: 90%; text-align: center; font: 700 clamp(26px, 7.5vw, 38px)/1.2 var(--script); color: var(--accent, #c04a68); }
.sil-cover__obj { position: relative; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: sil-bob 3.4s ease-in-out infinite; }
.sil-cover.is-opening .sil-cover__obj { animation: none; }
@keyframes sil-bob { 50% { transform: translateY(-6px) rotate(-0.6deg); } }
.sil-cover__hint { display: grid; justify-items: center; gap: 2px; color: var(--accent, #c04a68); font-size: 12px; transition: opacity 0.3s; }
.sil-cover__hint svg { width: 40px; height: 26px; transform: translateX(10px); animation: sil-nudge 1.8s ease-in-out infinite; }
.sil-cover__hint span { color: var(--hint, #7b6a70); }
.sil-cover.is-opening .sil-cover__hint { opacity: 0; }
@keyframes sil-nudge { 50% { transform: translate(10px, -4px); } }
.sil-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sil-floaters span { position: absolute; color: var(--accent, #c04a68); opacity: 0.28; animation: sil-floaty ease-in-out infinite alternate; }
@keyframes sil-floaty { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-26px) rotate(8deg); } }
.sil-paper { background: #fffdf9; border-radius: 18px; box-shadow: 0 18px 40px rgba(80, 30, 45, 0.12), 0 2px 6px rgba(80, 30, 45, 0.06); }
.sil-paper-noise { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sil-kick { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent, #c04a68); }
.sil-script { font-family: var(--script); font-weight: 700; color: var(--accent, #c04a68); }
.sil-pillbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #0a0a12; color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.sil-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.sil-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Màn mở đầu / mật khẩu ---------- */
.sil-gate {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.sil-gate.is-visible { opacity: 1; }
.sil-gate.is-leaving { opacity: 0; pointer-events: none; }
.sil-gate__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 61, 127, 0.45), transparent 45%),
		radial-gradient(circle at 80% 80%, rgba(124, 77, 255, 0.45), transparent 45%),
		#1a0b26;
}
.sil-gate__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
	background-size: 44px 44px;
	opacity: 0.12;
}
.sil-view--404 .sil-gate { opacity: 1; background: linear-gradient(160deg, #2a0f3a, #12061b); }
.sil-gate__card {
	position: relative;
	width: min(420px, 100%);
	padding: 34px 28px 30px;
	text-align: center;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	transform: translateY(14px) scale(0.98);
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sil-gate.is-visible .sil-gate__card { transform: none; }
.sil-gate__card.is-shake { animation: sil-shake 0.45s; }
@keyframes sil-shake {
	20%, 60% { transform: translateX(-10px); }
	40%, 80% { transform: translateX(10px); }
}
.sil-gate__envelope, .sil-gate__icon {
	font-size: 64px;
	line-height: 1;
	margin-bottom: 12px;
	filter: drop-shadow(0 10px 24px rgba(255, 61, 127, 0.5));
}
.sil-gate__envelope span { display: inline-block; animation: sil-float 2.4s ease-in-out infinite; }
@keyframes sil-float { 50% { transform: translateY(-10px) rotate(-6deg); } }
.sil-gate__title { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.sil-gate__text { margin: 0 0 22px; color: rgba(255, 255, 255, 0.78); line-height: 1.55; }
.sil-gate__hint {
	margin: -8px 0 18px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffe0ec;
	font-size: 14px;
}
.sil-gate__form { display: grid; gap: 12px; }
.sil-gate__error { min-height: 1.4em; margin: 12px 0 0; color: #ffb4c8; font-size: 14px; }

.sil-input-wrap { position: relative; }
.sil-input {
	width: 100%;
	height: 52px;
	padding: 0 52px 0 18px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font: 500 16px var(--sans);
	outline: none;
	transition: border-color 0.2s, background 0.2s;
}
.sil-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.sil-input:focus { border-color: var(--pink-2); background: rgba(255, 255, 255, 0.18); }
.sil-input-toggle {
	position: absolute;
	right: 6px;
	top: 6px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0.7;
}

.sil-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 30px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #ff2d78, #ff6a9a 50%, #8a5cff);
	background-size: 200% 100%;
	color: #fff;
	font: 700 16px var(--sans);
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(255, 45, 120, 0.4);
	transition: transform 0.2s, background-position 0.4s;
}
.sil-btn:hover { background-position: 100% 0; transform: translateY(-1px); }
.sil-btn:active { transform: scale(0.97); }
.sil-btn:disabled { opacity: 0.7; cursor: wait; }
.sil-btn.is-loading span { opacity: 0.4; }
.sil-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-right-color: transparent;
	border-radius: 50%;
	animation: sil-spin 0.7s linear infinite;
}
@keyframes sil-spin { to { transform: rotate(360deg); } }
.sil-btn--pulse::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(255, 61, 127, 0.6);
	animation: sil-pulse 1.8s infinite;
}
@keyframes sil-pulse { to { box-shadow: 0 0 0 18px rgba(255, 61, 127, 0); } }

/* ---------- Nút nhạc, thanh demo ---------- */
.sil-yt { position: fixed; width: 1px; height: 1px; left: -9999px; top: 0; opacity: 0; pointer-events: none; }
.sil-music {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 90;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(20, 10, 30, 0.45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.sil-music__icon { display: inline-block; }
.sil-music.is-playing .sil-music__icon { animation: sil-spin 3s linear infinite; }
.sil-music:not(.is-playing)::after {
	content: "";
	position: absolute;
	left: 11px;
	right: 11px;
	top: 50%;
	height: 2px;
	background: #fff;
	transform: rotate(-45deg);
	border-radius: 2px;
}

.sil-demobar {
	position: fixed;
	bottom: max(14px, env(safe-area-inset-bottom));
	left: 50%;
	z-index: 95;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 24px);
	padding: 8px 8px 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #2a1838;
	font-size: 13px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	white-space: nowrap;
}
.sil-demobar span { overflow: hidden; text-overflow: ellipsis; }
.sil-demobar__cta {
	flex: none;
	padding: 7px 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, #ff2d78, #8a5cff);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.sil-made-with {
	position: fixed;
	left: max(16px, env(safe-area-inset-left));
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 90;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: #3a1b4a;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	animation: sil-in-up 0.6s ease both;
}
@keyframes sil-in-up { from { opacity: 0; transform: translateY(14px); } }

/* =========================================================================
   1. Chữ rơi yêu thương (3D Galaxy Space)
   ========================================================================= */
body.sil-view--chu-roi {
	background: #000000 !important;
	color: #ffffff;
	overflow: hidden;
}
.sil-stage.fx-cr {
	background: #000000 !important;
	color: #ffffff;
	position: absolute;
	inset: 0;
	overflow: hidden;
	touch-action: none;
}
.fx-cr__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	display: block;
	z-index: 1;
	outline: none;
	touch-action: none;
}
.sil-view--chu-roi .sil-music {
	top: max(14px, env(safe-area-inset-top));
	bottom: auto;
	right: 16px;
	width: 44px;
	height: 44px;
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.fx-cr__hint {
	position: absolute;
	bottom: max(20px, env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	font: 500 13px/1.4 "Noto Sans", sans-serif;
	color: rgba(255, 255, 255, 0.65);
	letter-spacing: 0.02em;
	pointer-events: none;
	text-align: center;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	animation: fx-cr-fadeout 1s ease 6s forwards;
}
@keyframes fx-cr-fadeout {
	to { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* =========================================================================
   2. Thư tình niêm phong – bàn hoa
   Số đo chuẩn theo khung 393×852 (xem docs/anh-thu-tinh.md)
   ========================================================================= */
.fx-bl { --wine: #8e2333; --ink: #3b2a23; --paper: #fbf6ec; --serif: "Cormorant Garamond", Georgia, serif; --vibes: "Great Vibes", "Dancing Script", cursive; background: #efe6d8; color: #382b26; }
.fx-bl--night { background: #2a1a12; }

/* Lớp 1: cảnh */
.fx-bl__scene { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
/* Ảnh cảnh máy tính thường không cùng tỉ lệ màn hình (vd. ảnh vuông): "cover" cắt mất mép trên/dưới.
   Hai dải 23% lấy lại mép trên và mép dưới của ảnh (rộng 100%) rồi mờ dần vào giữa, để nến, ly, ruy băng… ở mép vẫn hiện. */
.fx-bl__scene.has-img::before, .fx-bl__scene.has-img::after { content: ""; position: absolute; left: 0; right: 0; height: 23%; background-image: var(--scene-d); background-size: 100% auto; background-repeat: no-repeat; pointer-events: none; }
.fx-bl__scene.has-img::before { top: 0; background-position: center top; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.fx-bl__scene.has-img::after { bottom: 0; background-position: center bottom; -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
@media (max-width: 767px), (max-aspect-ratio: 4 / 5) { .fx-bl__scene.has-img::before, .fx-bl__scene.has-img::after { display: none; } }
.fx-bl__scene.has-img { background-image: var(--scene-m); }
@media (min-aspect-ratio: 4 / 5) { .fx-bl__scene.has-img { background-image: var(--scene-d); } }
.fx-bl__scene.is-fallback {
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 45% at 50% 47%, rgba(255, 255, 255, 0.55), transparent 70%),
		repeating-linear-gradient(0deg, rgba(120, 100, 80, 0.05) 0 1px, transparent 1px 3px),
		repeating-linear-gradient(90deg, rgba(120, 100, 80, 0.05) 0 1px, transparent 1px 3px),
		#ede3d3;
}
.fx-bl--night .fx-bl__scene.is-fallback {
	background:
		radial-gradient(circle at 85% 12%, rgba(255, 190, 110, 0.32), transparent 40%),
		radial-gradient(ellipse 70% 45% at 50% 47%, rgba(255, 210, 160, 0.16), transparent 70%),
		repeating-linear-gradient(96deg, rgba(0, 0, 0, 0.13) 0 2px, transparent 2px 9px),
		linear-gradient(180deg, #4b2d1d, #2b170e);
}
.fx-bl__scene.is-fallback span { position: absolute; line-height: 1; filter: drop-shadow(0 6px 10px rgba(60, 30, 20, 0.28)); }
.fx-bl__scene.is-fallback .fx-bl__candle { left: 86%; top: 13%; font-size: 40px; filter: drop-shadow(0 0 18px rgba(255, 190, 90, 0.85)); }

/* Lớp 2: cánh hoa, bướm */
.fx-bl__air { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.fx-bl__petal { position: absolute; top: -30px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, var(--petal1), var(--petal2) 85%); opacity: 0.7; animation-name: fx-bl-fall, fx-bl-spin; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite; animation-direction: normal, alternate; }
@keyframes fx-bl-fall { from { translate: 0 0; } to { translate: var(--drift) calc(100vh + 60px); } }
@keyframes fx-bl-spin { from { rotate: -40deg; } to { rotate: 220deg; } }
.fx-bl__fly { position: absolute; width: 28px; height: 22px; animation: fx-bl-path ease-in-out infinite alternate; }
.fx-bl__fly i { position: absolute; top: 0; width: 14px; height: 20px; background: radial-gradient(circle at 50% 40%, #fff 0 12%, var(--hue) 40%, color-mix(in srgb, var(--hue) 70%, #000) 100%); opacity: 0.9; animation: fx-bl-flap 0.28s ease-in-out infinite alternate; }
.fx-bl__fly i:first-child { left: 0; border-radius: 80% 20% 40% 60%; transform-origin: right center; }
.fx-bl__fly i:last-child { right: 0; border-radius: 20% 80% 60% 40%; transform-origin: left center; }
@keyframes fx-bl-flap { to { transform: scaleX(0.35); } }
@keyframes fx-bl-path { 0% { translate: 0 0; } 33% { translate: 60px -40px; } 66% { translate: -30px -90px; } 100% { translate: 40px -150px; } }

/* Lớp 3: bìa */
.fx-bl__cover { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 7vh; }
.fx-bl__cover.is-handoff { z-index: 6; pointer-events: none; animation: fx-bl-stage-out 0.55s ease-out 0.05s both; }
.fx-bl__address, .fx-bl__bottom { text-align: center; }
.fx-bl__cover.is-opening .fx-bl__address, .fx-bl__cover.is-opening .fx-bl__bottom { animation: fx-bl-fade 0.5s ease both; }
.fx-bl__address { max-width: 90%; margin-bottom: 31px; }
.fx-bl__eyebrow { display: block; font: 600 11px/16.5px var(--sans); letter-spacing: 0.21em; text-transform: uppercase; color: var(--wine); }
.fx-bl__name { margin: 8px 0 0; font: italic 500 clamp(32px, 10.2vw, 48px)/1.02 var(--serif); color: var(--ink); overflow-wrap: anywhere; }

/*
 * Phong bì – 6 lớp xếp chồng (dưới → trên): bóng, lòng phong bì, thiệp, túi trước, nắp (mặt ngoài / mặt trong), sáp.
 * Lớp có ảnh quản trị (.has-*) vẽ ảnh đã cắt sẵn hình 100% × 100%; lớp trống vẽ bằng màu --env-* + hoa văn.
 */
.fx-bl__env { position: relative; flex: none; width: min(440px, 84vw, calc((100vh - 330px) * 1.692)); aspect-ratio: 1100 / 650; transform: perspective(1200px) rotateX(8deg); transform-origin: 50% 85%; }
@media (max-width: 767px) { .fx-bl__env { width: min(400px, 86vw, calc((100vh - 330px) * 1.692)); } }
.fx-bl__env::before { content: ""; position: absolute; left: 3%; right: 1%; bottom: -2.5%; height: 6%; border-radius: 50%; background: radial-gradient(50% 50%, rgba(40, 20, 12, 0.34), rgba(40, 20, 12, 0)); filter: blur(4px); pointer-events: none; }
.fx-bl__env > span { position: absolute; display: block; pointer-events: none; }
.fx-bl__env-shadow { inset: 3% -1% -7% 1%; border-radius: 14px; filter: blur(12px); background: radial-gradient(58% 52% at 54% 62%, rgba(59, 31, 20, 0.42), rgba(59, 31, 20, 0) 74%), radial-gradient(90% 80% at 50% 55%, rgba(59, 31, 20, 0.16), rgba(59, 31, 20, 0) 78%); }
.fx-bl__env-interior { inset: 0; z-index: 1; border-radius: 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--env-liner, #e9dcc4) 82%, #000), var(--env-liner, #e9dcc4) 55%); box-shadow: inset 0 10px 18px rgba(40, 25, 10, 0.25); }
.fx-bl__env-card {
	left: 7%; top: 6%; width: 86%; aspect-ratio: 1000 / 597; z-index: 3; display: flex !important; flex-direction: column; align-items: center; padding-top: 9%; text-align: center;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #fffaf0; filter: drop-shadow(0 6px 8px rgba(59, 31, 20, 0.16)); transform-origin: 50% 40%;
}
.fx-bl__card-eyebrow { display: block; font: 600 9px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--wine); opacity: 0.85; }
.fx-bl__card-name { display: block; margin-top: 6px; max-width: 80%; font: italic 500 clamp(24px, 7.4vw, 34px)/1.05 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-bl__card-sprig { position: absolute; right: 5%; top: 6%; width: 17%; height: auto; aspect-ratio: 1; object-fit: contain; transform: rotate(14deg); opacity: 0.92; }
.fx-bl__card-sprig.is-emoji { display: grid; place-items: center; font-size: clamp(20px, 6vw, 30px); }
.fx-bl__env-pocket {
	inset: 0; z-index: 4; border-radius: 4px;
	background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(90, 60, 30, 0.13) 50%, transparent calc(50% + 1px)), linear-gradient(to top left, transparent calc(50% - 1px), rgba(90, 60, 30, 0.13) 50%, transparent calc(50% + 1px)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(200deg, var(--env-paper, #f5eddd), var(--env-paper2, #e6d8bd) 78%);
	clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.fx-bl__env-flap { left: 0; top: 0; width: 100%; height: 80%; z-index: 6; transform-origin: 50% 0; transform-style: preserve-3d; filter: drop-shadow(0 2px 2px rgba(80, 50, 20, 0.22)); }
.fx-bl__env-flap > i { position: absolute; inset: 0; display: block; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.fx-bl__flap-out { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, color-mix(in srgb, var(--env-paper, #f5eddd) 70%, #fff), color-mix(in srgb, var(--env-paper2, #e6d8bd) 82%, var(--env-paper, #f5eddd))); }
.fx-bl__flap-out::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(59, 31, 20, 0), rgba(59, 31, 20, 0.28)); opacity: 0; }
.fx-bl__flap-in { background: linear-gradient(0deg, color-mix(in srgb, var(--env-liner, #e9dcc4) 90%, #000), color-mix(in srgb, var(--env-liner, #e9dcc4) 82%, #fff)); transform: rotateX(180deg); opacity: 0; }
/* Hoa văn (chỉ khi lớp chưa có ảnh) */
.fx-bl__env-pocket::after, .fx-bl__flap-out::after { content: ""; position: absolute; inset: 0; background-image: var(--env-pat, none); background-size: var(--env-pat-size, auto); pointer-events: none; }
.fx-bl__env--pat-stars { --env-pat: radial-gradient(circle at 20% 30%, rgba(243, 221, 160, 0.95) 0 1.1px, transparent 1.7px), radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.85) 0 0.8px, transparent 1.3px), radial-gradient(circle at 45% 85%, rgba(243, 221, 160, 0.7) 0 0.7px, transparent 1.2px); --env-pat-size: 34px 30px, 46px 40px, 58px 52px; }
.fx-bl__env--pat-flowers { --env-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='%23f6e7d8' opacity='.9'%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3Ccircle cx='16' cy='13' r='2.6'/%3E%3Ccircle cx='14' cy='18' r='2.6'/%3E%3Ccircle cx='9' cy='17' r='2.6'/%3E%3Ccircle cx='8' cy='12' r='2.6'/%3E%3C/g%3E%3Ccircle cx='12' cy='14' r='1.6' fill='%23e2a93b'/%3E%3Cg fill='%23d98b8b' opacity='.85'%3E%3Ccircle cx='40' cy='36' r='2.1'/%3E%3Ccircle cx='43.5' cy='38.5' r='2.1'/%3E%3Ccircle cx='42' cy='42.5' r='2.1'/%3E%3Ccircle cx='38' cy='42' r='2.1'/%3E%3Ccircle cx='37' cy='38' r='2.1'/%3E%3C/g%3E%3Ccircle cx='40' cy='39.6' r='1.3' fill='%23f3dc9a'/%3E%3Cpath d='M12 20 q-2 8 2 14 M40 45 q2 6 -1 10' stroke='%23748a55' stroke-width='1' fill='none' opacity='.75'/%3E%3Cellipse cx='15' cy='28' rx='3' ry='1.3' fill='%23748a55' opacity='.7' transform='rotate(-35 15 28)'/%3E%3Ccircle cx='30' cy='14' r='1.2' fill='%23f6e7d8' opacity='.8'/%3E%3Ccircle cx='50' cy='18' r='1.4' fill='%23d98b8b' opacity='.6'/%3E%3Ccircle cx='24' cy='46' r='1.3' fill='%23f6e7d8' opacity='.7'/%3E%3C/svg%3E"); --env-pat-size: 56px 56px; }
.fx-bl__env--pat-leaves { --env-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%235f7a4c' stroke-width='.9' opacity='.55'%3E%3Cpath d='M10 40 C18 30 24 22 30 10'/%3E%3Cpath d='M42 58 C46 50 52 44 60 40'/%3E%3C/g%3E%3Cg fill='%235f7a4c' opacity='.4'%3E%3Cellipse cx='15' cy='33' rx='4.5' ry='1.8' transform='rotate(-30 15 33)'/%3E%3Cellipse cx='22' cy='28' rx='4.5' ry='1.8' transform='rotate(30 22 28)'/%3E%3Cellipse cx='24' cy='19' rx='4.5' ry='1.8' transform='rotate(-35 24 19)'/%3E%3Cellipse cx='30' cy='14' rx='4' ry='1.6' transform='rotate(25 30 14)'/%3E%3Cellipse cx='48' cy='49' rx='4' ry='1.6' transform='rotate(-40 48 49)'/%3E%3Cellipse cx='54' cy='46' rx='4' ry='1.6' transform='rotate(20 54 46)'/%3E%3C/g%3E%3C/svg%3E"); --env-pat-size: 64px 64px; }
.fx-bl__env--pat-gold .fx-bl__env-pocket::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23c9a24f' vector-effect='non-scaling-stroke'%3E%3Cpath d='M2 98 L50 60 L98 98' stroke-width='1.3' vector-effect='non-scaling-stroke'/%3E%3Crect x='2.2' y='2.2' width='95.6' height='95.6' stroke-width='1.1' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.fx-bl__env--pat-gold .fx-bl__flap-out::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23c9a24f'%3E%3Cpath d='M2.5 1 L50 96 L97.5 1' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M9 1 L50 83 L91 1' stroke-width='.8' opacity='.6' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
/* Ảnh lớp từ quản trị */
.fx-bl__env.has-interior .fx-bl__env-interior { background: var(--env-interior) center / 100% 100% no-repeat; box-shadow: none; border-radius: 0; }
.fx-bl__env.has-card .fx-bl__env-card { background: var(--env-card) center / 100% 100% no-repeat; }
.fx-bl__env.has-pocket .fx-bl__env-pocket { background: var(--env-pocket) center / 100% 100% no-repeat; clip-path: none; border-radius: 0; }
.fx-bl__env.has-flap-out .fx-bl__env-flap { filter: none; }
.fx-bl__env.has-flap-out .fx-bl__flap-out { background: var(--env-flap-out) center / 100% 100% no-repeat; clip-path: none; }
.fx-bl__env.has-flap-out .fx-bl__flap-out::before { -webkit-mask: var(--env-flap-out) center / 100% 100% no-repeat; mask: var(--env-flap-out) center / 100% 100% no-repeat; }
.fx-bl__env.has-flap-in .fx-bl__flap-in { background: var(--env-flap-in) center / 100% 100% no-repeat; clip-path: none; }
.fx-bl__env.has-pocket .fx-bl__env-pocket::after, .fx-bl__env.has-flap-out .fx-bl__flap-out::after { display: none; }
/* Sáp niêm phong = nút mở thư (ảnh sáp của phong bì → của loài hoa → sáp vẽ theo màu --seal) */
.fx-bl__seal { position: absolute; left: 38.5%; top: 54.5%; z-index: 7; width: 23%; aspect-ratio: 480 / 468; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; filter: drop-shadow(0 5px 5px rgba(59, 31, 20, 0.28)) drop-shadow(0 1px 1px rgba(59, 31, 20, 0.25)); transition: transform 0.25s; }
.fx-bl__seal img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.fx-bl__seal-wax {
	display: grid; place-items: center; width: 100%; height: 100%; border-radius: 47% 53% 51% 49% / 52% 46% 54% 48%;
	background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--seal) 65%, #fff), var(--seal) 40%, color-mix(in srgb, var(--seal) 60%, #000) 85%);
	box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.25), inset 0 3px 4px rgba(255, 255, 255, 0.22), 5px 2px 0 -3px color-mix(in srgb, var(--seal) 70%, #000), -4px 5px 0 -3px color-mix(in srgb, var(--seal) 70%, #000);
}
.fx-bl__seal-wax svg { width: 70%; height: 70%; }
.fx-bl__seal:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
@media (hover: hover) { .fx-bl__cover:not(.is-opening) .fx-bl__seal:hover { transform: scale(1.04) rotate(-3deg); } }
/* Mở thư: sáp bung → nắp lật (đổi mặt ở 50%) → thiệp trồi lên → phong bì rơi xuống, thiệp phóng to */
.fx-bl__cover.is-opening .fx-bl__env { animation: fx-bl-env-level 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.fx-bl__cover.is-opening .fx-bl__seal { animation: fx-bl-env-seal 0.55s cubic-bezier(0.3, 0.7, 0.3, 1) both; pointer-events: none; }
.fx-bl__cover.is-opening .fx-bl__env-flap { animation: fx-bl-env-flap 0.85s cubic-bezier(0.5, 0.05, 0.25, 1) 0.38s both, fx-bl-env-drop 0.9s cubic-bezier(0.55, 0, 0.8, 0.3) 1.9s both; }
.fx-bl__cover.is-opening .fx-bl__flap-out { animation: fx-bl-env-face-out 0.85s linear 0.38s both; }
.fx-bl__cover.is-opening .fx-bl__flap-in { animation: fx-bl-env-face-in 0.85s linear 0.38s both; }
.fx-bl__cover.is-opening .fx-bl__flap-out::before { animation: fx-bl-env-shade 0.85s linear 0.38s both; }
.fx-bl__cover.is-opening .fx-bl__env-interior, .fx-bl__cover.is-opening .fx-bl__env-pocket, .fx-bl__cover.is-opening .fx-bl__env-shadow, .fx-bl__cover.is-opening .fx-bl__env::before { animation: fx-bl-env-drop 0.9s cubic-bezier(0.55, 0, 0.8, 0.3) 1.9s both; }
.fx-bl__cover.is-opening .fx-bl__env-card { animation: fx-bl-env-card-rise 0.9s cubic-bezier(0.2, 0.7, 0.15, 1) 1.08s both, fx-bl-env-card-grow 1s cubic-bezier(0.45, 0, 0.2, 1) 1.95s forwards; }
@keyframes fx-bl-env-level { 100% { transform: perspective(1200px) rotateX(0deg); } }
@keyframes fx-bl-fade { 100% { opacity: 0; translate: 0 -6px; } }
@keyframes fx-bl-env-seal { 0% { transform: none; opacity: 1; } 22% { transform: scale(0.92); } 58% { transform: translateY(-8%) scale(1.1) rotate(-6deg); opacity: 1; } 100% { transform: translateY(-24%) scale(1.22) rotate(-12deg); opacity: 0; } }
@keyframes fx-bl-env-flap { 0% { transform: rotateX(0deg); z-index: 6; } 49% { z-index: 6; } 50% { z-index: 2; } 100% { transform: rotateX(180deg); z-index: 2; } }
@keyframes fx-bl-env-face-out { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fx-bl-env-face-in { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes fx-bl-env-shade { 0% { opacity: 0; } 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes fx-bl-env-drop { 0% { translate: 0 0; opacity: 1; } 100% { translate: 0 55%; opacity: 0; } }
@keyframes fx-bl-env-card-rise { 0% { transform: translateY(0); } 100% { transform: translateY(-56%); } }
@keyframes fx-bl-env-card-grow { 0% { transform: translateY(-56%) scale(1); opacity: 1; z-index: 8; } 55% { opacity: 1; z-index: 8; } 100% { transform: translateY(2%) scale(1.32); opacity: 0; z-index: 8; } }
@keyframes fx-bl-stage-out { 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-bl__env, .fx-bl__env * { animation: none !important; } }

/*
 * Phong bì kiểu thư tay (Hồng, Ngà, Đêm sao, Hoa dại, Xanh xô thơm…): ảnh giấy phủ thân + nắp (nắp = phần trên của cùng ảnh,
 * background-size 100% 164%), 2 nếp gấp, sáp 76px tâm ở 41%, dòng Gửi/Từ viết tay ở 62% và 76%.
 */
.fx-bl__lenv {
	--env-paper: #fff5f6; --env-paper2: #f8dce5;
	position: relative; display: block; flex: none; width: min(360px, calc(100vw - 34px), calc((100vh - 330px) * 1.34)); aspect-ratio: 1.34 / 1; margin: 0; padding: 0;
	border: 1px solid rgba(226, 140, 169, 0.24); border-radius: 12px; background: none; color: #4b454f; font: inherit; cursor: pointer; perspective: 900px;
	box-shadow: 0 24px 56px rgba(91, 61, 75, 0.1); transition: transform 0.3s, box-shadow 0.3s;
}
@media (min-width: 700px) { .fx-bl__lenv { width: min(480px, 84vw, calc((100vh - 330px) * 1.34)); } }
.fx-bl__lenv:hover { transform: translateY(-4px); box-shadow: 0 32px 80px rgba(104, 64, 82, 0.18); }
.fx-bl__lenv:focus-visible { outline: 3px solid rgba(215, 120, 150, 0.38); outline-offset: 7px; }
.fx-bl__lenv > span { position: absolute; display: block; pointer-events: none; }
.fx-bl__lenv-paper { inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; background: var(--lenv-img, none) center / 100% 100% no-repeat, linear-gradient(160deg, var(--env-paper), var(--env-paper2)); background-color: var(--env-paper2); }
.fx-bl__lenv-paper::before, .fx-bl__lenv-flap::before { content: ""; position: absolute; inset: 0; background-image: var(--env-pat, none); background-size: var(--env-pat-size, auto); }
.fx-bl__lenv-paper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, 0.72) 49%, transparent 62%); transform: translateX(-115%); transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1); }
.fx-bl__lenv:hover .fx-bl__lenv-paper::after, .fx-bl__lenv:focus-visible .fx-bl__lenv-paper::after { transform: translateX(115%); }
.fx-bl__lenv.has-paper .fx-bl__lenv-paper::before, .fx-bl__lenv.has-paper .fx-bl__lenv-flap::before { display: none; }
.fx-bl__lenv-sheet { inset: 13% 9% 9%; z-index: 2; display: grid !important; align-content: center; justify-items: center; gap: 9px; border: 1px solid rgba(196, 99, 130, 0.13); border-radius: 8px; background: #fffdfc; box-shadow: 0 18px 42px rgba(81, 53, 67, 0.12); opacity: 0; transform: translateY(28%) scale(0.94); }
.fx-bl__lenv-sheet i { font-style: normal; font-size: 18px; line-height: 1; color: #cf6f8d; }
.fx-bl__lenv-sheet b { display: block; width: 54%; height: 2px; border-radius: 2px; background: rgba(117, 95, 107, 0.15); }
.fx-bl__lenv-sheet b:nth-of-type(2) { width: 64%; }
.fx-bl__lenv-sheet b:nth-of-type(3) { width: 43%; }
.fx-bl__lenv-fold { inset: 0; z-index: 3; border-radius: inherit; }
.fx-bl__lenv-fold--l { background: linear-gradient(150deg, transparent 49.5%, rgba(222, 154, 176, 0.23) 50%, transparent 50.8%); }
.fx-bl__lenv-fold--r { background: linear-gradient(210deg, transparent 49.5%, rgba(222, 154, 176, 0.23) 50%, transparent 50.8%); }
.fx-bl__lenv-flap { left: 0; right: 0; top: 0; height: 61%; z-index: 4; overflow: hidden; border-radius: 12px 12px 0 0; transform-origin: 50% 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--lenv-img, none) center top / 100% 164% no-repeat, linear-gradient(160deg, color-mix(in srgb, var(--env-paper) 85%, #fff), var(--env-paper2)); background-color: var(--env-paper2); }
.fx-bl__lenv-flap::before { background-size: var(--env-pat-size, auto); }
.fx-bl__lenv.fx-bl__env--pat-gold .fx-bl__lenv-flap::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23c9a24f'%3E%3Cpath d='M2.5 1 L50 96 L97.5 1' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.fx-bl__lenv.fx-bl__env--pat-gold .fx-bl__lenv-paper::before { background: none; box-shadow: inset 0 0 0 4px var(--env-paper2), inset 0 0 0 5.5px #c9a24f; border-radius: inherit; }
.fx-bl__lenv-address { inset: 0; z-index: 5; }
.fx-bl__lenv-address > span { position: absolute; left: 10%; right: 10%; display: flex; justify-content: center; align-items: baseline; gap: 7px; }
.fx-bl__lenv-address > span:first-child { top: 62%; }
.fx-bl__lenv-address > span:last-child { top: 76%; }
.fx-bl__lenv-address small { flex: none; font: 600 19px/1 "Dancing Script", cursive; color: #60364b; }
.fx-bl__lenv-address strong { min-width: 0; max-width: 78%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 24px/1.15 "Dancing Script", cursive; color: #63243f; }
.fx-bl__lenv.is-dark .fx-bl__lenv-address small { color: rgba(246, 231, 200, 0.8); }
.fx-bl__lenv.is-dark .fx-bl__lenv-address strong { color: #f6e7c8; }
.fx-bl__lenv.is-dark .fx-bl__lenv-fold--l { background: linear-gradient(150deg, transparent 49.5%, rgba(255, 255, 255, 0.12) 50%, transparent 50.8%); }
.fx-bl__lenv.is-dark .fx-bl__lenv-fold--r { background: linear-gradient(210deg, transparent 49.5%, rgba(255, 255, 255, 0.12) 50%, transparent 50.8%); }
.fx-bl__lenv-seal { left: 50%; top: 41%; z-index: 6; width: 76px; height: 76px; transform: translate(-50%, -50%); background: var(--lenv-seal, none) center / contain no-repeat; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.28)); transition: transform 0.45s, opacity 0.3s; }
.fx-bl__lenv-seal.is-wax { width: 64px; height: 62px; }
.fx-bl__lenv-seal .fx-bl__seal-wax { width: 100%; height: 100%; }
.fx-bl__lenv:hover .fx-bl__lenv-seal, .fx-bl__lenv:focus-visible .fx-bl__lenv-seal { transform: translate(-50%, -50%) scale(1.08) rotate(-3deg); }
/* Mở: nắp lật lên, tờ thư trồi ra, sáp bay lên, chữ mờ đi, phong bì rời xuống */
.fx-bl__cover.is-opening .fx-bl__lenv { animation: fx-bl-lenv-release 0.88s cubic-bezier(0.16, 1, 0.3, 1) both; pointer-events: none; }
.fx-bl__cover.is-opening .fx-bl__lenv-flap { animation: fx-bl-lenv-flap 0.72s cubic-bezier(0.2, 0.72, 0.2, 1) both; }
.fx-bl__cover.is-opening .fx-bl__lenv-sheet { animation: fx-bl-lenv-sheet 0.86s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fx-bl__cover.is-opening .fx-bl__lenv-seal { animation: fx-bl-lenv-seal 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fx-bl__cover.is-opening .fx-bl__lenv-address { animation: fx-bl-lenv-address 0.36s ease both; }
@keyframes fx-bl-lenv-release { 0%, 48% { opacity: 1; transform: translate(0, 0) scale(1); } 66% { opacity: 1; transform: translateY(8px) scale(1.012); } 100% { opacity: 0; transform: translateY(48px) scale(0.96); } }
@keyframes fx-bl-lenv-flap { 0%, 14% { filter: brightness(1); transform: rotateX(0deg); } 60%, 100% { filter: brightness(0.98); transform: rotateX(-178deg); } }
@keyframes fx-bl-lenv-sheet { 0%, 20% { opacity: 0; transform: translateY(28%) scale(0.94); } 45% { opacity: 1; transform: translateY(-12%) scale(0.98); } 78% { opacity: 1; transform: translateY(-48%) scale(1); } 100% { opacity: 0; transform: translateY(-56%) scale(1.015); } }
@keyframes fx-bl-lenv-address { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes fx-bl-lenv-seal { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 55% { opacity: 1; transform: translate(-50%, -64%) scale(1.12) rotate(-7deg); } 100% { opacity: 0; transform: translate(-50%, -92%) scale(0.68) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .fx-bl__lenv, .fx-bl__lenv * { animation: none !important; transition: none !important; } }
.fx-bl__bottom { margin-top: 25px; }
.fx-bl__bottom.is-letter .fx-bl__open { margin-top: 8px; }
.fx-bl__sign { margin: 0; font: 400 26px/1.1 var(--vibes); color: var(--wine); }
.fx-bl__sign b { font-weight: 400; }
.fx-bl__open { margin-top: 17px; padding: 15px 26px; border: 0; border-radius: 40px; background: #8e2433; color: #fff9f4; font: 600 15px/18px var(--sans); letter-spacing: 0.01em; box-shadow: 0 8px 23px rgba(142, 36, 51, 0.14); cursor: pointer; }
.fx-bl__open:hover { background: #7a1d2b; }
.fx-bl--night .fx-bl__eyebrow { color: #e6b775; }
.fx-bl--night .fx-bl__name { color: #f7efdf; }
.fx-bl--night .fx-bl__sign { color: #e6b775; }
.fx-bl--night .fx-bl__open { background: #f2b1c8; color: #1d120c; box-shadow: 0 8px 23px rgba(0, 0, 0, 0.18); }
.fx-bl--night .fx-bl__open:hover { background: #f6c3d5; }
/* Máy tính (≥ 768px): bìa canh giữa với đệm 76/20/18px, chữ lớn theo chiều rộng màn hình như bản desktop của bàn hoa. */
@media (min-width: 768px) {
	.fx-bl__cover { padding: 76px 20px 18px; }
	.fx-bl__address { margin-bottom: 25px; }
	.fx-bl__name { font-size: clamp(40px, 4.5vw, 66px); }
	.fx-bl__sign { font-size: clamp(26px, 2.75vw, 40px); }
}

/* Bên trong: các trang khoảnh khắc */
.fx-bl__reader { position: absolute; inset: 0; z-index: 4; opacity: 0; transition: opacity 0.7s ease; }
.fx-bl__reader.is-in { opacity: 1; }
.fx-bl__reader.is-instant { transition: none; }
.fx-bl__track { position: absolute; inset: 0; }
.fx-bl__slide { position: absolute; inset: 0; overflow-y: auto; opacity: 0; transform: translateX(40px); pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease; -webkit-overflow-scrolling: touch; }
.fx-bl__slide.is-before { transform: translateX(-40px); }
.fx-bl__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.fx-bl__pad { min-height: 100%; padding: 78px 14px 116px; }
.fx-bl__pad--center { display: grid; place-items: center; }
.fx-bl__sheet {
	position: relative; width: min(100%, 560px); margin: 0 auto; padding: 40px 27.5px 72px; border-radius: 3px; color: #33241d;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), var(--paper);
	box-shadow: 0 15px 40px rgba(59, 42, 35, 0.19);
}
/* Nhánh hoa trang trí (ảnh "Nhánh hoa trang trí" trong quản trị): nằm trong góc trên-phải, góc dưới-trái xoay 180° và lấn nhẹ ra mép trái. */
.fx-bl__art { position: absolute; z-index: 1; height: auto; aspect-ratio: 1; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(59, 42, 35, 0.16)); }
.fx-bl__art.is-emoji { display: grid; place-items: center; font-size: 34px; line-height: 1; }
.fx-bl__art--tr { right: 8px; top: 8px; width: clamp(54px, 16.5%, 92px); }
.fx-bl__art--bl { left: -6px; bottom: 7px; width: clamp(62px, 19%, 104px); transform: rotate(180deg); }
.fx-bl__art--bl.is-emoji { left: 6px; }
.fx-bl__gold { position: absolute; display: none; width: 46px; height: 46px; color: #c9a24f; }
.fx-bl__gold svg { width: 100%; height: 100%; }
.fx-bl.has-gold .fx-bl__gold { display: block; }
.fx-bl__gold--tl { left: 10px; top: 10px; }
.fx-bl__gold--br { right: 10px; bottom: 10px; transform: rotate(180deg); }
.fx-bl__kicker { position: relative; z-index: 2; display: block; padding-right: 60px; font: 600 10px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine); }
.fx-bl__dear { position: relative; z-index: 2; margin: 8px 0 18px; padding-right: 40px; font: 400 38px/1.05 var(--vibes); color: var(--wine); }
.fx-bl__copy { position: relative; z-index: 2; white-space: pre-wrap; font: 500 21px/1.55 "Dancing Script", cursive; color: #33241d; }
.fx-bl__copy::first-letter { float: left; margin: 6px 8px 0 0; font: 400 58px/0.8 var(--vibes); color: var(--wine); }
.fx-bl__closing { position: relative; z-index: 2; margin: 22px 0 0; font: italic 500 19px/1.4 var(--serif); color: #5a453d; }
.fx-bl__signoff { position: relative; z-index: 2; margin: 6px 0 0; text-align: right; font: 400 38px/1.1 var(--vibes); color: var(--wine); }
.fx-bl__polaroid { margin: 0; padding: 7px 7px 22px; background: #fff; box-shadow: 0 8px 18px rgba(59, 42, 35, 0.16); transform: rotate(var(--r, -3deg)); }
.fx-bl__polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fx-bl__polaroid--letter { position: relative; z-index: 2; width: 62%; margin: 22px auto 0; }
.is-ph { color: #9a8a82 !important; font-style: italic; }
.fx-bl__copy.is-ph::first-letter { color: #b9a39a; }
.fx-bl__action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 25px; border: 0; border-radius: 999px; background: #8e2433; color: #fff9f4; font: 600 15px var(--sans); cursor: pointer; box-shadow: 0 10px 24px rgba(142, 36, 51, 0.22); }
.fx-bl__action i { font-style: normal; }
.fx-bl__action:disabled { opacity: 0.55; cursor: default; }

/* Bó hoa lý do (Style & Hiệu ứng OpenYourLetter) */
.bloom-reasons {
	--lean: -3deg;
	--bw: min(78vw, 340px, calc((100dvh - 175px) * 0.5));
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 440px;
	flex: none;
	margin: auto;
	padding: 64px 14px 112px;
	text-align: left;
	box-sizing: border-box;
}
.bloom-reasons-bouquet {
	position: relative;
	z-index: 1;
	flex: none;
	width: var(--bw);
	height: calc(var(--bw) * 1.25);
	transform: rotate(var(--lean));
	transform-origin: 50% 60%;
	pointer-events: none;
}
.bloom-reasons-shade {
	position: absolute;
	left: 18%;
	right: 18%;
	top: 46%;
	height: 32%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(59, 31, 20, 0.22), transparent);
	opacity: 0.7;
}
.bloom-reasons-stem {
	position: absolute;
	left: 28.1%;
	width: 43.8%;
	top: 13.8%;
	height: 66%;
	transform-origin: 50% 70%;
	transform: rotate(var(--stem-turn)) scale(var(--stem-scale));
	opacity: 0;
	visibility: hidden;
	will-change: transform;
}
.bloom-reasons-stem.is-placed {
	opacity: 1;
	visibility: visible;
}
.bloom-reasons-stem > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 0;
	filter: drop-shadow(0 6px 8px rgba(60, 20, 20, 0.25));
}
.bloom-reasons-stem.is-mirrored > img {
	transform: scaleX(-1);
}
.bloom-reasons-knot {
	position: absolute;
	left: 50%;
	top: 60%;
	width: 0;
	height: 0;
	z-index: 20;
}
.bloom-jute-wrap {
	position: absolute;
	left: calc(var(--bw) * -0.075);
	top: calc(var(--bw) * -0.051);
	width: calc(var(--bw) * 0.15);
	height: calc(var(--bw) * 0.102);
	overflow: visible;
}
.bloom-jute {
	fill: none;
	stroke: #b4976a;
	stroke-width: 2.2;
	stroke-linecap: round;
}
.bloom-jute-wrap .bloom-jute {
	stroke-width: 2.6;
}
.bloom-jute-twist {
	fill: none;
	stroke: #7e6341;
	stroke-width: 1.1;
	stroke-dasharray: 2.4 2.2;
	stroke-linecap: round;
	opacity: 0.75;
}
.bloom-reasons-bow {
	position: absolute;
	left: 0;
	top: 0;
	width: calc(var(--bw) * 0.52);
	aspect-ratio: 322 / 560;
	transform: translate(-50%, -24%) scale(0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.3, 1);
	filter: drop-shadow(0 8px 12px rgba(50, 25, 15, 0.3));
}
.bloom-reasons-bow img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.bloom-reasons.is-tied .bloom-reasons-bow {
	transform: translate(-50%, -24%) scale(1);
	opacity: 1;
	visibility: visible;
}
.bloom-reasons-string {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	z-index: 3;
}
.bloom-reasons-tagwrap {
	position: relative;
	z-index: 2;
	flex: none;
	width: min(100%, 390px);
	margin-top: calc(var(--bw) * -0.22);
	transform: rotate(calc(var(--lean) * 0.25));
}
.bloom-reasons-shadow {
	position: absolute;
	inset: 6px 4px -6px;
	border-radius: 10px;
	background: #3b1f14;
	opacity: 0.2;
	filter: blur(14px);
	transform: translateY(10px);
}
.bloom-reasons-tag {
	position: relative;
	display: grid;
	gap: 10px;
	box-sizing: border-box;
	margin: 0;
	padding: clamp(38px, 10vw, 48px) clamp(20px, 6vw, 28px) clamp(20px, 5vw, 24px);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #f7f0e2;
	color: #3b2a23;
	clip-path: polygon(0 26px, 26px 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
	text-align: left;
}
.bloom-reasons-eyelet {
	position: absolute;
	left: 50%;
	top: 14px;
	width: 18px;
	height: 18px;
	margin-left: -9px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 46%, #aba59d 0 38%, #b89a6c 41% 66%, #7d6343 70% 100%);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.bloom-reasons-tag > header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.bloom-reasons-tag > header h2 {
	margin: 0;
	font: 600 11px/1.4 var(--sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bloom-paper-accent, #8e2433);
}
.bloom-reasons-count {
	font-size: 13px;
	color: #8b7a72;
	font-variant-numeric: tabular-nums;
}
.bloom-reasons-words {
	position: relative;
	display: grid;
	align-items: center;
	min-height: 58px;
	margin: 6px 0 10px;
}
.bloom-reasons-quote {
	position: absolute;
	left: -0.42em;
	top: -0.46em;
	font: italic 500 54px/1 var(--serif);
	color: var(--bloom-paper-accent, #8e2433);
	opacity: 0.25;
	pointer-events: none;
}
.bloom-reasons-text {
	margin: 0;
	font: italic 500 clamp(19px, 5vw, 22px)/1.35 var(--serif);
	color: #3b2a23;
}
.bloom-reasons-text.is-closing {
	color: var(--bloom-paper-accent, #8e2433);
	font-weight: 600;
}
.bloom-reasons-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}
.bloom-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--bloom-paper-accent, #8e2433);
	color: #fffaf2;
	font: 600 15px/1.2 var(--sans);
	cursor: pointer;
	box-shadow: 0 12px 22px -12px rgba(142, 36, 51, 0.6);
	transition: background 0.25s, transform 0.2s;
}
.bloom-action:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
}
.bloom-action:active {
	transform: scale(0.98);
}
@media (min-width: 768px) {
	.bloom-reasons {
		--bw: min(380px, 42vw);
		flex-direction: row;
		justify-content: center;
		gap: clamp(16px, 5vw, 64px);
		max-width: 960px;
		padding: 80px 24px 120px;
	}
	.bloom-reasons-bouquet {
		width: var(--bw);
		height: calc(var(--bw) * 1.25);
	}
	.bloom-reasons-tagwrap {
		width: clamp(300px, 36vw, 420px);
		margin-top: 0;
	}
	.bloom-reasons-tag {
		clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px), 0 26px);
		padding: 26px 28px 24px 50px;
	}
	.bloom-reasons-eyelet {
		left: 17px;
		top: 50%;
		margin: -9px 0 0;
	}
}

/* Sổ ép hoa */
.fx-jr-wrap { display: flex; flex-direction: column; align-items: center; min-height: 100%; padding: 76px 15px 112px; }
.fx-jr { position: relative; width: min(100%, 380px); padding: 0 0 22px 18px; border-radius: 4px 12px 12px 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #f1e7d1; box-shadow: 0 18px 40px rgba(59, 42, 35, 0.24), inset 18px 0 14px -14px rgba(80, 50, 20, 0.25); }
.fx-jr::before { content: ""; position: absolute; left: 9px; top: 14px; bottom: 14px; border-left: 2px dashed rgba(140, 100, 60, 0.35); }
.fx-jr__botanical { position: relative; display: grid; place-items: center; height: 260px; }
.fx-jr__pressed { width: 190px; height: 230px; object-fit: contain; filter: saturate(0.8) sepia(0.15) drop-shadow(0 3px 2px rgba(80, 50, 20, 0.25)); transform: rotate(-6deg); }
.fx-jr__pressed.is-emoji { display: grid; place-items: center; font-size: 130px; line-height: 1; }
.fx-jr__tape { position: absolute; top: 58%; width: 54px; height: 20px; background: rgba(240, 226, 196, 0.75); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.fx-jr__tape--l { left: 30%; transform: rotate(-28deg); }
.fx-jr__tape--r { right: 28%; transform: rotate(24deg); }
.fx-jr__latin { position: absolute; right: 18px; bottom: 6px; padding: 6px 12px; border: 1px solid rgba(120, 90, 60, 0.3); background: #faf5ea; font: 400 18px var(--vibes); color: #4a3a30; transform: rotate(-3deg); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08); }
.fx-jr__page { padding: 18px 26px 4px 20px; text-align: center; }
.fx-jr__page .fx-bl__kicker { padding: 0; }
.fx-jr__text { margin: 12px 0 0; min-height: 70px; white-space: pre-wrap; font: 500 23px/1.45 "Dancing Script", cursive; color: #33241d; }
.fx-jr__text.is-turn { animation: fx-jr-turn 0.5s ease; }
@keyframes fx-jr-turn { from { opacity: 0; transform: translateX(14px); } }
.fx-jr__num { display: block; margin-top: 14px; text-align: center; font: 500 15px var(--serif); color: #8b6b52; }
.fx-jr__num::before, .fx-jr__num::after { content: "—"; margin: 0 10px; opacity: 0.5; }
.fx-jr__nav { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 6px 10px; border-radius: 999px; background: rgba(251, 246, 238, 0.92); box-shadow: 0 8px 20px rgba(59, 42, 35, 0.16); }
.fx-jr__nav-btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: #3b2a23; font: 400 24px/1 var(--serif); cursor: pointer; }
.fx-jr__nav-btn:disabled { opacity: 0.3; cursor: default; }
.fx-jr__nav-label { font: 500 18px var(--serif); color: #3b2a23; }

/* Ảnh in trên bàn */
.fx-pr { display: flex; flex-direction: column; align-items: center; min-height: 100%; padding: 96px 16px 116px; }
.fx-pr__empty { margin: 14vh 0 0; padding: 8px 18px; border-radius: 999px; background: rgba(251, 246, 238, 0.85); font: italic 500 19px var(--serif); color: #3b2a23; }
.fx-pr__stack { position: relative; width: min(74vw, 300px); aspect-ratio: 3 / 3.7; cursor: pointer; }
.fx-pr__print { position: absolute; inset: 0; margin: 0; padding: 10px 10px 40px; background: #fffdf8; box-shadow: 0 14px 30px rgba(59, 42, 35, 0.25); transform: translateX(var(--x)) rotate(var(--r)); transition: transform 0.7s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.6s; }
.fx-pr__print img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-pr__print.is-gone { transform: translate(-115%, 6%) rotate(-24deg); opacity: 0; }
.fx-pr__flower { position: absolute; z-index: 30; width: 60px; height: 60px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(60, 20, 20, 0.25)); }
.fx-pr__flower.is-emoji { display: grid; place-items: center; font-size: 46px; }
.fx-pr__cap { margin: 26px 0 0; padding: 6px 16px; border-radius: 999px; background: rgba(251, 246, 238, 0.88); font: italic 500 16px var(--serif); color: #3b2a23; }

/* Tờ lịch */
.fx-cal { position: relative; width: min(100%, 368px); padding: 26px 18px 18px; text-align: center; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #fbf6ec; box-shadow: 0 15px 40px rgba(59, 42, 35, 0.19); border-radius: 3px; }
.fx-cal__spray { position: absolute; top: -22px; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(60, 20, 20, 0.22)); }
.fx-cal__spray.is-emoji { display: grid; place-items: center; font-size: 40px; }
.fx-cal__spray--l { left: -14px; transform: rotate(-18deg); }
.fx-cal__spray--r { right: -14px; transform: rotate(22deg) scale(0.86); }
.fx-cal__head { margin: 0; font: 600 11px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine); }
.fx-cal__head i { font: italic 500 14px var(--serif); letter-spacing: 0; text-transform: none; color: #7a5a4c; }
.fx-cal__center { position: relative; width: min(100%, 236px); aspect-ratio: 1; margin: 12px auto 0; display: grid; place-items: center; }
.fx-cal__wreath { position: absolute; inset: 0; }
.fx-cal__bloom { position: absolute; width: 50px; height: 50px; object-fit: contain; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s)); filter: drop-shadow(0 4px 4px rgba(60, 20, 20, 0.2)); animation: fx-cal-bloom 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes fx-cal-bloom { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(0); } }
.fx-cal__bloom.is-emoji { display: grid; place-items: center; font-size: 38px; }
.fx-cal__day { position: relative; z-index: 2; font: 500 clamp(52px, 15vw, 72px)/1 var(--serif); color: #3b1a28; font-variant-numeric: tabular-nums; }
.fx-cal__day.is-heart { font-size: 84px; color: var(--wine); }
.fx-cal__unit { display: block; margin-top: 10px; font: 600 9px var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: #7a5a4c; }
.fx-cal__gold { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin-top: 14px; padding: 8px 10px; border-top: 1px solid #d8bd7c; border-bottom: 1px solid #d8bd7c; color: var(--wine); }
.fx-bl:not(.has-gold) .fx-cal__gold { border-color: rgba(120, 90, 60, 0.2); }
.fx-cal__gold em { font: italic 500 16px var(--serif); color: #4a3a30; }

/* Bản đồ */
.fx-map { position: relative; min-height: 100%; padding: 72px 14px 0; }
.fx-map__paper { position: relative; height: 46vh; min-height: 280px; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.5), transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(170, 130, 80, 0.18), transparent 60%), #efe2c6; box-shadow: 0 16px 36px rgba(59, 42, 35, 0.24), inset 0 0 40px rgba(140, 100, 50, 0.25); }
.fx-map__paper svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-map__pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--seal); color: #fff; font: 700 12px var(--sans); transform: translate(-50%, -100%) rotate(-45deg); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25); animation: fx-map-drop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; transition: transform 0.25s; }
.fx-map__pin { text-indent: 0; }
.fx-map__pin.is-on { transform: translate(-50%, -100%) rotate(-45deg) scale(1.3); }
@keyframes fx-map-drop { from { opacity: 0; margin-top: -30px; } }
.fx-map__rose { position: absolute; right: 12px; bottom: 8px; font-size: 30px; color: rgba(120, 90, 60, 0.5); }
.fx-map__sheet { position: relative; z-index: 3; margin: -24px 0 0; padding: 12px 20px 108px; border-radius: 22px 22px 0 0; background: #fbf6ee; text-align: center; box-shadow: 0 -10px 30px rgba(59, 42, 35, 0.14); }
.fx-map__grip { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(59, 42, 35, 0.2); }
.fx-map__sheet .fx-bl__kicker { padding: 0; }
.fx-map__sheet h2 { margin: 4px 0 12px; font: 500 28px var(--serif); color: #3b2a23; }
.fx-map__list { list-style: none; margin: 0; padding: 0; text-align: left; }
.fx-map__list li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid rgba(59, 42, 35, 0.08); font: 500 17px var(--serif); color: #3b2a23; cursor: pointer; }
.fx-map__list li.is-on { color: var(--wine); }
.fx-map__list b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--seal); color: #fff; font: 700 11px var(--sans); }
.fx-map__empty { margin: 0; font: italic 500 17px var(--serif); color: #7a6a62; }

/* Bồ công anh (Style ảnh & Hiệu ứng bay OpenYourLetter) */
.bloom-dreams {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	text-align: center;
	padding: 80px 16px 110px;
	box-sizing: border-box;
}
.bloom-dreams-sky {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 520px;
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent);
	mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.bloom-dreams-sky::-webkit-scrollbar {
	display: none;
}
.bloom-dreams-sky-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 14px 20px;
	gap: 6px;
}
.bloom-dreams-head {
	display: grid;
	gap: 4px;
	justify-items: center;
}
.bloom-dreams-head > span {
	font: 600 11px/1.4 var(--sans);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bloom-paper-accent, #8e2433);
}
.bloom-dreams-head h2 {
	margin: 0;
	font: 500 clamp(26px, 7vw, 36px)/1.12 var(--serif);
	color: #3b2a23;
}
.bloom-dreams-progress {
	margin: 4px 0 8px;
	font: italic 500 clamp(16px, 4.4vw, 19px) var(--serif);
	color: #5a453d;
}
.bloom-dreams-slips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
	width: 100%;
	max-width: 440px;
}
.bloom-dreams-slot {
	position: relative;
	margin: var(--drop) var(--after) 0 var(--before);
	padding: 24px 0 0;
	visibility: hidden;
	box-sizing: border-box;
}
.bloom-dreams-slot.is-landed {
	visibility: visible;
}
.bloom-dreams-slip {
	position: relative;
	display: inline-block;
	padding: 10px 18px 11px 22px;
	border-radius: 3px;
	background: #fdfaf3;
	color: #3b2a23;
	text-align: center;
	box-shadow: 0 10px 20px -8px rgba(59, 42, 35, 0.28), 0 2px 4px rgba(59, 42, 35, 0.12);
	transform: rotate(var(--tilt));
}
.bloom-dreams-slip > span {
	font: italic 500 clamp(17px, 4.5vw, 20px)/1.35 var(--serif);
	overflow-wrap: anywhere;
}
.bloom-dream-carrier {
	position: absolute;
	left: -8px;
	top: -34px;
	width: 26px;
	height: 48px;
	object-fit: contain;
	transform: rotate(-22deg);
	pointer-events: none;
}
.bloom-dreams-flyer {
	pointer-events: none;
	will-change: transform;
}
.bloom-dreams-plant {
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: -20px;
	width: min(72vw, 260px);
	height: min(45vh, 320px);
	transform: translateX(-50%);
	pointer-events: none;
	transform-origin: 50% 100%;
}
.bloom-dreams-gust {
	position: absolute;
	inset: 0;
	transform-origin: 50% 100%;
}
.bloom-dreams-stem {
	position: absolute;
	left: calc(50% - 30px);
	top: 90px;
	width: 60px;
	height: calc(100% - 90px);
}
.bloom-dandelion-stem-art {
	display: block;
	width: 100%;
	height: 100%;
}
.bloom-dandelion-stem-art path {
	fill: none;
	stroke: #5c7848;
	stroke-width: 3.4;
	stroke-linecap: round;
}
.bloom-dandelion-stem-art .bloom-stem-light {
	stroke: #a2c286;
	stroke-width: 1.2;
	opacity: 0.65;
}
.bloom-dreams-head-art {
	position: absolute;
	left: 50%;
	top: 0;
	width: min(52vw, 200px);
	height: min(52vw, 200px);
	transform: translateX(-50%);
}
.bloom-dandelion-photo {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}
.bloom-dandelion-full {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 16px rgba(45, 30, 20, 0.28));
	opacity: var(--left, 1);
	transition: opacity 0.8s ease;
}
.bloom-dreams-drift {
	position: absolute;
	z-index: 4;
	width: 24px;
	height: 42px;
	transform-origin: 50% 100%;
	pointer-events: none;
	will-change: transform;
}
.bloom-dreams-drift img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.bloom-dreams-controls {
	position: relative;
	z-index: 3;
	margin-top: auto;
	padding-top: 10px;
	display: grid;
	justify-items: center;
	gap: 10px;
}
.bloom-dreams-closing {
	margin: 0;
	padding: 12px 20px;
	border-radius: 4px;
	background: #fdfaf3;
	color: var(--bloom-paper-accent, #8e2433);
	font: italic 500 18px/1.35 var(--serif);
	box-shadow: 0 12px 24px -10px rgba(59, 42, 35, 0.3);
	animation: fx-closing-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes fx-closing-in {
	from { opacity: 0; transform: translateY(12px) rotate(-3deg); }
	to { opacity: 1; transform: rotate(-1.2deg); }
}
@media (min-width: 768px) {
	.bloom-dreams {
		flex-direction: row;
		justify-content: center;
		align-items: center;
		padding: 80px 40px 120px;
		gap: 60px;
	}
	.bloom-dreams-plant {
		position: relative;
		left: auto;
		bottom: auto;
		transform: none;
		width: 280px;
		height: 440px;
	}
	.bloom-dreams-sky {
		max-width: 560px;
		height: 100%;
	}
	.bloom-dreams-controls {
		position: absolute;
		left: 28%;
		bottom: 120px;
	}
}

/* Đĩa than */
.fx-vn { display: flex; flex-direction: column; align-items: center; min-height: 100%; padding: 90px 20px 118px; text-align: center; }
.fx-vn__deck { position: relative; width: min(66vw, 260px); aspect-ratio: 1; margin-bottom: 26px; }
.fx-vn__disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 0 33%, rgba(255, 255, 255, 0.06) 33.5% 34%, transparent 34.5%), repeating-radial-gradient(circle, #141414 0 2px, #222 2px 3.2px); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #000; }
.fx-vn__disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, 0.12) 14%, transparent 20% 60%, rgba(255, 255, 255, 0.1) 64%, transparent 70%); }
.fx-vn__label { position: absolute; inset: 34%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #f3e6cc 0 8%, var(--seal) 9%); }
.fx-vn__label-art { width: 70%; height: 70%; object-fit: contain; }
.fx-vn__label-art.is-emoji { display: grid; place-items: center; font-size: clamp(22px, 7vw, 34px); }
.fx-vn.is-playing .fx-vn__disc { animation: fx-vn-spin 3.2s linear infinite; }
@keyframes fx-vn-spin { to { transform: rotate(360deg); } }
.fx-vn__arm { position: absolute; right: -6%; top: -4%; width: 10px; height: 62%; border-radius: 6px; background: linear-gradient(90deg, #a9a090, #e3ddd0 50%, #a9a090); transform-origin: 50% 6%; transform: rotate(14deg); transition: transform 0.8s ease; box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.25); }
.fx-vn__arm::before { content: ""; position: absolute; left: -9px; top: -9px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #e3ddd0 0 30%, #9a907e 32% 100%); }
.fx-vn.is-playing .fx-vn__arm { transform: rotate(26deg); }
.fx-vn .fx-bl__kicker, .fx-vn__title, .fx-vn__artist, .fx-vn__note { position: relative; padding: 0 14px; }
.fx-vn .fx-bl__kicker { padding: 6px 14px; border-radius: 999px 999px 0 0; background: rgba(251, 246, 238, 0.9); }
.fx-vn__title { margin: 0; padding: 2px 18px 4px; background: rgba(251, 246, 238, 0.9); font: italic 500 30px/1.15 var(--serif); color: #3b2a23; }
.fx-vn__artist { margin: 0; padding: 0 18px 4px; background: rgba(251, 246, 238, 0.9); font: 500 14px var(--sans); color: #6d5a52; }
.fx-vn__note { margin: 0; padding: 0 18px 8px; background: rgba(251, 246, 238, 0.9); font: italic 500 17px var(--serif); color: #5a453d; }
.fx-vn .fx-bl__action { margin-top: 18px; }

/* Màn Bàn hoa (Style OpenYourLetter - Image 3) */
.bloom-table-view {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 50px 16px 120px;
	text-align: center;
	box-sizing: border-box;
}
.bloom-table-bouquet-wrap {
	position: relative;
	z-index: 2;
	width: min(65vw, 270px);
	margin-bottom: -46px;
	pointer-events: none;
}
.bloom-table-bouquet-img {
	width: 100%;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 14px 22px rgba(45, 20, 20, 0.35));
}
.bloom-table-card {
	position: relative;
	z-index: 1;
	width: min(100%, 360px);
	padding: 56px 26px 34px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #f7eedc;
	box-shadow: 0 20px 42px rgba(45, 25, 15, 0.28);
	border-radius: 4px;
	text-align: center;
}
.bloom-table-eyebrow {
	display: block;
	font: 600 11px/1.4 var(--sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bloom-paper-accent, #8e2433);
	margin-bottom: 4px;
}
.bloom-table-dear {
	margin: 0 0 14px;
	font-family: var(--serif);
	line-height: 1.15;
}
.bloom-table-dear span {
	display: block;
	font: italic 400 clamp(28px, 7vw, 36px) var(--vibes, cursive);
	color: var(--bloom-paper-accent, #8e2433);
}
.bloom-table-dear b {
	display: block;
	font: italic 500 clamp(24px, 6vw, 30px) var(--serif);
	color: #3b2a23;
}
.bloom-table-intro {
	margin: 0;
	font: italic 500 clamp(16px, 4vw, 18px)/1.45 var(--serif);
	color: #4a382f;
}
.bloom-table-seal {
	position: absolute;
	right: -10px;
	bottom: -16px;
	width: 58px;
	height: 58px;
	filter: drop-shadow(0 6px 10px rgba(50, 15, 15, 0.4));
}
.bloom-table-seal img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.bloom-table-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 8px;
	max-width: 360px;
	margin: 24px auto 0;
}
.bloom-table-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: #fbf5eb;
	box-shadow: 0 4px 10px rgba(50, 30, 20, 0.12);
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
}
.bloom-table-pill:hover {
	transform: translateY(-2px);
	background: #fffdf9;
}
.bloom-table-pill-label {
	font: italic 500 15px/1 var(--serif);
	color: #3b2a23;
}
.bloom-table-pill-check {
	display: none;
	font-style: normal;
	font-weight: 700;
	font-size: 11px;
	color: var(--bloom-paper-accent, #8e2433);
}
.bloom-table-pill.is-seen .bloom-table-pill-check {
	display: inline;
}
.bloom-table-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: min(100%, 320px);
	margin: 22px auto 0;
}
.bloom-table-btn {
	width: 100%;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	font: 600 15px/1.2 var(--sans);
	cursor: pointer;
	transition: transform 0.2s;
}
.bloom-table-btn.is-primary {
	background: var(--bloom-paper-accent, #8e2433);
	color: #fff9f4;
	box-shadow: 0 10px 22px -8px rgba(142, 36, 51, 0.55);
}
.bloom-table-btn.is-secondary {
	background: #fbf5eb;
	color: #3b2a23;
	border: 1px solid rgba(59, 42, 35, 0.16);
}
.bloom-table-btn:hover {
	transform: translateY(-1px);
}

/* Thanh điều hướng */
.fx-bl__nav { position: absolute; left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; gap: 6px; max-width: 520px; margin: 0 auto; padding: 7px; border-radius: 999px; background: #fbf6ee; box-shadow: 0 18px 50px rgba(40, 20, 10, 0.32); }
.fx-bl__nav-prev { flex: none; width: 48px; height: 48px; border: 1px solid rgba(59, 42, 35, 0.12); border-radius: 50%; background: rgba(255, 244, 220, 0.3); color: var(--ink); font: 400 20px/1 var(--sans); cursor: pointer; }
.fx-bl__nav-prev:disabled { opacity: 0.35; cursor: default; }
.fx-bl__nav-up { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #6d5a52; font: 700 18px/1 var(--sans); cursor: pointer; }
.fx-bl__nav-up.is-active { background: rgba(142, 36, 51, 0.1); color: var(--wine); }
.fx-bl__nav-mid { flex: 1; min-width: 0; text-align: left; padding-left: 6px; }
.fx-bl__nav-title { display: block; font: 500 15px/1.2 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-bl__nav-mid div { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.fx-bl__nav-dots { display: inline-flex; gap: 4px; }
.fx-bl__nav-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(59, 42, 35, 0.18); transform: rotate(45deg); }
.fx-bl__nav-dots i.is-seen { background: rgba(142, 36, 51, 0.45); }
.fx-bl__nav-dots i.is-on { background: var(--wine); width: 7px; height: 7px; }
.fx-bl__nav-count { font-size: 11px; color: #8b7a72; font-variant-numeric: tabular-nums; }
.fx-bl__nav-next { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: #8e2433; color: #fff9f4; font: 600 15px var(--sans); cursor: pointer; }
.fx-bl__nav-next i { font-style: normal; }
/* Ban đêm: chữ trực tiếp trên mặt bàn sáng lên */
.fx-bl--night .fx-tb__title, .fx-bl--night .fx-dd__head-text h2 { color: #fbefe2; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.fx-bl--night .fx-dd__progress { color: #f1d9cc; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.fx-bl--night .fx-tb .fx-bl__kicker, .fx-bl--night .fx-dd .fx-bl__kicker { color: #f3c4b3; }
/* Nút nhạc / thanh demo chuyển lên trên để không đè thanh điều hướng */
.sil-view--bao-thu .sil-music { top: max(12px, env(safe-area-inset-top)); bottom: auto; right: 14px; width: 44px; height: 44px; border-color: rgba(59, 42, 35, 0.12); background: rgba(244, 236, 224, 0.95); color: #3b2a23; font-size: 20px; }
.sil-view--bao-thu .sil-music:not(.is-playing)::after { background: #3b2a23; }
.sil-view--bao-thu .sil-made-with { top: max(14px, env(safe-area-inset-top)); bottom: auto; }
.sil-view--bao-thu .sil-demobar { top: max(12px, env(safe-area-inset-top)); bottom: auto; }

/* =========================================================================
   3. Đếm ngày yêu
   ========================================================================= */
.fx-dn { --accent: #c04a68; background: radial-gradient(circle at 50% 30%, #fff8fa, #fbeaf0 75%); color: #3b2a31; overflow-y: auto; }
.fx-dn__page { position: relative; z-index: 2; min-height: 100%; display: grid; place-items: center; padding: 28px 16px 90px; }
.fx-dn__card { width: min(100%, 440px); padding: 30px 22px 26px; text-align: center; opacity: 0; transform: translateY(24px); transition: 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fx-dn__card.is-in { opacity: 1; transform: none; }
.fx-dn__couple { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 18px; }
.fx-dn__person { width: 110px; }
.fx-dn__avatar { width: 84px; height: 84px; margin: 0 auto 8px; padding: 3px; border-radius: 50%; border: 1px solid #ecd3db; background: #fff; }
.fx-dn__avatar img, .fx-dn__avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fx-dn__avatar span { background: linear-gradient(135deg, #f7d4de, #f1b9c9); color: #fff; font-size: 30px; font-weight: 600; }
.fx-dn__person--b .fx-dn__avatar span { background: linear-gradient(135deg, #e2d6f7, #c9b6ef); }
.fx-dn__name { margin: 0; font: 700 26px/1.2 var(--script); color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-dn__link { position: relative; width: 48px; height: 1px; margin-bottom: 30px; background: repeating-linear-gradient(90deg, #e3a9ba 0 4px, transparent 4px 8px); }
.fx-dn__link i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--accent); font-style: normal; font-size: 20px; animation: fx-dn-beat 1.2s ease-in-out infinite; }
@keyframes fx-dn-beat { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 15% { transform: translate(-50%, -50%) scale(1.3); } 30% { transform: translate(-50%, -50%) scale(1); } 45% { transform: translate(-50%, -50%) scale(1.15); } }
.fx-dn__days { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.fx-dn__num { font-size: clamp(64px, 19vw, 96px); font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: #3b1a28; font-variant-numeric: tabular-nums; }
.fx-dn__unit { font: 700 30px var(--script); color: var(--accent); }
.fx-dn__ymd { margin: 8px 0 18px; font-size: 14px; color: #7b6a70; }
.fx-dn__clock { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.fx-dn__clock div { width: 66px; padding: 8px 0 6px; border: 1px solid #f0dde3; border-radius: 14px; background: #fff; }
.fx-dn__clock b { display: block; font-size: 22px; font-weight: 500; color: #3b1a28; font-variant-numeric: tabular-nums; }
.fx-dn__clock span { font-size: 11px; color: #9a8890; }
.fx-dn__since { margin: 0 0 8px; font-size: 13px; color: #8b7a80; }
.fx-dn__next { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; background: #fbe9ef; color: var(--accent); font-size: 13px; font-weight: 600; }
.fx-dn__caption { margin: 18px 0 0; font: 700 clamp(22px, 6vw, 27px)/1.35 var(--script); color: var(--accent); }
/* Bìa: lịch để bàn */
.fx-dn__cal { position: relative; display: block; width: 200px; height: 230px; perspective: 900px; }
.fx-dn__cal-back { position: absolute; inset: 14px 0 0; border-radius: 16px; background: #fffaf7; box-shadow: 0 22px 44px rgba(80, 30, 45, 0.16), 0 2px 6px rgba(80, 30, 45, 0.08); }
.fx-dn__cal-sheet {
	position: absolute; inset: 14px 0 0; z-index: 2; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border-radius: 16px; background: #fffdf9;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); transform-origin: top center; transition: transform 0.9s cubic-bezier(0.4, 0.1, 0.3, 1), opacity 0.5s ease 0.5s;
}
.fx-dn__cal-head { padding: 22px 10px 10px; background: linear-gradient(180deg, #e06684, #c94b6c); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.fx-dn__cal-heart { display: grid; place-items: center; color: #d9577a; font-size: 74px; line-height: 1; }
.fx-dn__cal-names { padding: 0 10px 16px; font: 700 22px/1.2 var(--script); color: #b03a5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-dn__cal-rings { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; justify-content: space-around; padding: 0 44px; }
.fx-dn__cal-rings i { width: 12px; height: 28px; border-radius: 8px; background: linear-gradient(90deg, #b9b2b6, #f1edef 50%, #b9b2b6); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18); }
.sil-cover.is-opening .fx-dn__cal-sheet { transform: rotateX(-160deg); opacity: 0; }

/* =========================================================================
   4. Bong bóng tình yêu (Sunset Sky & Iridescent Heart Bubbles)
   ========================================================================= */
.fx-bb {
	--accent: #ff6b8b;
	background: #23122c url('bong-bong/sunset-clouds-bg.jpg') center bottom / cover no-repeat fixed;
	color: #fff;
	overflow: hidden;
}
.fx-bb__clouds {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at 50% 25%, rgba(255, 235, 210, 0.22) 0%, transparent 60%);
	mix-blend-mode: screen;
}
.fx-bb__head {
	position: absolute;
	top: max(22px, 4vh);
	left: 0;
	right: 0;
	z-index: 8;
	padding: 0 20px;
	text-align: center;
	pointer-events: none;
	animation: sil-in-up 0.9s ease both;
}
.fx-bb__title {
	margin: 0;
	font: 700 clamp(32px, 8.5vw, 54px)/1.15 var(--script);
	color: #ffffff;
	text-shadow: 0 2px 18px rgba(255, 100, 150, 0.85), 0 0 35px rgba(255, 200, 130, 0.65);
}
.fx-bb__count {
	display: inline-block;
	margin: 10px 0 0;
	padding: 6px 18px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.24);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 18px rgba(50, 15, 40, 0.25);
}
.fx-bb__layer {
	position: absolute;
	inset: 0;
	z-index: 3;
	overflow: hidden;
}
.fx-bb__bubble {
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	will-change: transform;
	-webkit-tap-highlight-color: transparent;
	outline: none;
	filter: drop-shadow(0 10px 22px rgba(255, 140, 180, 0.35));
	transition: filter 0.2s;
}
.fx-bb__bubble:hover {
	filter: drop-shadow(0 14px 30px rgba(255, 160, 200, 0.65)) brightness(1.08);
}
.fx-bb__bubble:active {
	transform: scale(0.94);
}
.fx-bb__bubble-body {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	animation: fx-bb-wobble var(--wobble-dur, 3.4s) ease-in-out infinite;
	animation-delay: var(--wobble-delay, 0s);
	filter: hue-rotate(var(--hue, 0deg));
	transform-origin: center center;
}
@keyframes fx-bb-wobble {
	0%, 100% { transform: scale(1, 1) rotate(0deg); }
	25% { transform: scale(1.05, 0.95) rotate(-3deg); }
	50% { transform: scale(0.96, 1.04) rotate(2deg); }
	75% { transform: scale(1.03, 0.97) rotate(3deg); }
}
.fx-bb__bubble-art {
	position: absolute;
	inset: 0;
	background: url('bong-bong/heart-bubble.png') center center / contain no-repeat;
	pointer-events: none;
}
/* Kích cỡ bong bóng (Hero to / Vừa / Nhỏ / Bé xíu) */
.fx-bb__bubble.is-hero {
	filter: drop-shadow(0 12px 28px rgba(255, 130, 170, 0.48));
}
.fx-bb__bubble.is-hero.has-item {
	filter: drop-shadow(0 14px 34px rgba(255, 100, 150, 0.65)) drop-shadow(0 0 20px rgba(255, 230, 180, 0.55));
}
.fx-bb__bubble.is-tiny {
	filter: drop-shadow(0 4px 10px rgba(255, 180, 200, 0.3));
	opacity: 0.88;
}
/* Nội dung bên trong bong bóng trái tim */
.fx-bb__bubble-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transform: translateY(-4%);
}
.fx-bb__inner-heart {
	display: block;
	width: 48%;
	height: 48%;
	filter: drop-shadow(0 0 10px rgba(255, 180, 210, 0.75));
	animation: fx-bb-heart-float 2.2s ease-in-out infinite alternate;
}
.fx-bb__inner-heart svg {
	width: 100%;
	height: 100%;
	display: block;
}
.fx-bb__inner-heart.is-ambient {
	width: 38%;
	height: 38%;
	opacity: 0.75;
}
@keyframes fx-bb-heart-float {
	0% { transform: scale(0.94) translateY(2px); }
	100% { transform: scale(1.06) translateY(-3px); }
}
.fx-bb__badge-text {
	margin-top: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #d14976;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 8px rgba(120, 30, 60, 0.25);
	animation: fx-bb-badge-pulse 1.8s ease-in-out infinite;
}
@keyframes fx-bb-badge-pulse {
	50% { transform: scale(1.08); background: #ffffff; }
}
.fx-bb__thumb-wrap {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.fx-bb__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fx-bb__badge-cam {
	margin-top: 2px;
	font-size: 13px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
/* Hiệu ứng vỡ bong bóng & giọt nước bắn */
.fx-bb__bubble.is-pop {
	pointer-events: none;
}
.fx-bb__bubble.is-pop .fx-bb__bubble-body {
	animation: fx-bb-burst 0.28s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}
@keyframes fx-bb-burst {
	0% { transform: scale(1); opacity: 1; }
	40% { transform: scale(1.35); opacity: 0.8; filter: brightness(1.6); }
	100% { transform: scale(1.65); opacity: 0; }
}
.fx-bb__drop {
	position: absolute;
	z-index: 5;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffc5dd 55%, #bce6ff 100%);
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 170, 210, 0.7);
	pointer-events: none;
	animation: fx-bb-drop 0.55s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}
@keyframes fx-bb-drop {
	to { transform: translate(var(--dx), var(--dy)) scale(0.15); opacity: 0; }
}
.fx-bb__sparkle {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	font-size: 14px;
	color: #fff9e6;
	text-shadow: 0 0 8px #ffaa00, 0 0 16px #ff758c;
	animation: fx-bb-sparkle 0.65s ease-out forwards;
}
@keyframes fx-bb-sparkle {
	0% { transform: translate(0, 0) scale(0.3) rotate(0deg); opacity: 1; }
	100% { transform: translate(var(--dx), var(--dy)) scale(1.4) rotate(90deg); opacity: 0; }
}
.fx-bb__ambient-sparkle {
	position: absolute;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 6px #fff, 0 0 12px #ffcce0;
	pointer-events: none;
	opacity: 0.6;
	animation: fx-bb-float-sparkle var(--dur, 6s) linear infinite;
}
@keyframes fx-bb-float-sparkle {
	0% { transform: translateY(0) scale(0.4); opacity: 0; }
	30% { opacity: 0.85; transform: translateY(-30vh) scale(1); }
	80% { opacity: 0.7; }
	100% { transform: translateY(-105vh) scale(0.3); opacity: 0; }
}
/* Modal hiện lời nhắn / ảnh */
.fx-bb__modal {
	position: absolute;
	inset: 0;
	z-index: 15;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(30, 15, 40, 0.45);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	opacity: 0;
	transition: opacity 0.35s ease;
}
.fx-bb__modal.is-in { opacity: 1; }
.fx-bb__card {
	width: min(100%, 390px);
	padding: 28px 24px 24px;
	text-align: center;
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 24px 60px rgba(70, 20, 50, 0.32), 0 4px 16px rgba(255, 140, 180, 0.25);
	transform: scale(0.85) translateY(20px);
	transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.fx-bb__modal.is-in .fx-bb__card { transform: none; }
.fx-bb__card .sil-kick {
	color: #d1567d;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 12px;
	margin-bottom: 8px;
}
.fx-bb__msg {
	min-height: 56px;
	margin: 12px 0 24px;
	white-space: pre-wrap;
	font: 700 clamp(24px, 6.5vw, 32px)/1.4 var(--script);
	color: #3d1b38;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}
.fx-bb__photo {
	display: block;
	width: 100%;
	max-height: 52vh;
	margin: 12px 0 22px;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.fx-bb__card .sil-pillbtn {
	background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #ffa07a 100%);
	color: #fff;
	border: none;
	font-weight: 600;
	padding: 11px 30px;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(255, 117, 140, 0.42);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}
.fx-bb__card .sil-pillbtn:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 10px 28px rgba(255, 117, 140, 0.55);
}
/* Màn kết thúc hoành tráng */
.fx-bb__finale {
	position: absolute;
	inset: 0;
	z-index: 12;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: scale(0.85);
	transition: 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
	padding: 24px;
	background: radial-gradient(circle at center, rgba(35, 15, 45, 0.45) 0%, transparent 75%);
}
.fx-bb__finale.is-in { opacity: 1; transform: none; }
.fx-bb__finale-heart {
	margin: 0;
	font-size: clamp(95px, 28vw, 160px);
	line-height: 1;
	background: linear-gradient(135deg, #ff8da1, #ff6b8b, #ffbe88);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 10px 30px rgba(255, 107, 139, 0.65));
	animation: fx-bb-heart-pulse 1.3s ease-in-out infinite;
}
@keyframes fx-bb-heart-pulse {
	0%, 100% { transform: scale(1); }
	25% { transform: scale(1.12); }
	45% { transform: scale(1.04); }
	65% { transform: scale(1.15); }
}
.fx-bb__finale-text {
	margin: 14px 0 0;
	font: 700 clamp(32px, 8.5vw, 48px) var(--script);
	color: #ffffff;
	text-shadow: 0 2px 20px rgba(255, 110, 160, 0.8), 0 0 40px rgba(255, 190, 120, 0.6);
}
/* Bìa: chùm bong bóng trái tim hoàng hôn */
.fx-bb__bunch { position: relative; display: block; width: 230px; height: 320px; }
.fx-bb__balloon {
	position: absolute;
	width: 125px;
	height: 125px;
	background: url('bong-bong/heart-bubble.png') center center / contain no-repeat;
	filter: drop-shadow(0 10px 25px rgba(255, 140, 170, 0.45));
	transition: transform 1.3s cubic-bezier(0.5, 0, 0.4, 1);
}
.fx-bb__balloon--1 { left: 0px; top: 38px; transform: rotate(-14deg); filter: hue-rotate(-20deg) drop-shadow(0 10px 24px rgba(255, 130, 170, 0.4)); }
.fx-bb__balloon--2 { left: 52px; top: 0; z-index: 2; transform: scale(1.12); filter: hue-rotate(10deg) drop-shadow(0 14px 30px rgba(255, 150, 190, 0.5)); }
.fx-bb__balloon--3 { left: 104px; top: 42px; transform: rotate(14deg); filter: hue-rotate(35deg) drop-shadow(0 10px 24px rgba(255, 170, 150, 0.4)); }
.fx-bb__strings {
	position: absolute;
	left: 50%;
	top: 140px;
	width: 90px;
	height: 120px;
	margin-left: -45px;
	background:
		linear-gradient(to bottom right, transparent 49.3%, rgba(255, 230, 240, 0.8) 49.6%, rgba(255, 230, 240, 0.8) 50.4%, transparent 50.7%),
		linear-gradient(to bottom left, transparent 49.3%, rgba(255, 230, 240, 0.8) 49.6%, rgba(255, 230, 240, 0.8) 50.4%, transparent 50.7%),
		linear-gradient(90deg, transparent 49.3%, rgba(255, 230, 240, 0.8) 49.6%, rgba(255, 230, 240, 0.8) 50.4%, transparent 50.7%);
	transition: opacity 0.5s;
}
.fx-bb__bow {
	position: absolute;
	left: 50%;
	top: 245px;
	margin-left: -20px;
	font-size: 34px;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
	transition: opacity 0.5s;
}
.fx-bb__tag {
	position: absolute;
	left: 50%;
	top: 284px;
	transform: translateX(-50%) rotate(-2deg);
	max-width: 220px;
	padding: 6px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	color: #c9406f;
	font: 700 19px/1.2 var(--script);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 8px 24px rgba(80, 20, 50, 0.22);
	transition: opacity 0.5s;
}
.sil-cover.is-opening .fx-bb__balloon--1 { transform: translate(-80px, -135vh) rotate(-25deg); }
.sil-cover.is-opening .fx-bb__balloon--2 { transform: translate(15px, -145vh) scale(1.25); transition-delay: 0.1s; }
.sil-cover.is-opening .fx-bb__balloon--3 { transform: translate(80px, -135vh) rotate(25deg); transition-delay: 0.05s; }
.sil-cover.is-opening .fx-bb__strings, .sil-cover.is-opening .fx-bb__bow, .sil-cover.is-opening .fx-bb__tag { opacity: 0; }

/* =========================================================================
   5. Chữ đom đóm
   ========================================================================= */
.fx-dom { --accent: #ffe7a3; --hint: rgba(255, 240, 205, 0.75); background: linear-gradient(180deg, #0c1230 0%, #1b1838 55%, #2a1d3c 100%); }
.fx-dom__stars { z-index: 0; opacity: 0.7; }
.fx-dom__hills { position: absolute; left: 0; right: 0; bottom: 0; height: 24vh; z-index: 1; pointer-events: none; background: radial-gradient(120% 100% at 25% 100%, #0f0c22 58%, transparent 59%), radial-gradient(110% 90% at 85% 100%, #15112b 58%, transparent 59%); }
.fx-dom .sil-canvas:not(.fx-dom__stars) { z-index: 2; }
.fx-dom__hint { position: absolute; left: 0; right: 0; bottom: 80px; z-index: 3; margin: 0; text-align: center; font-size: 13px; color: rgba(255, 240, 200, 0.7); transition: opacity 1s; pointer-events: none; }
.fx-dom__hint.is-out { opacity: 0; }
.fx-dom__cover .sil-cover__title { color: #ffe7a3; text-shadow: 0 0 18px rgba(255, 220, 120, 0.5); }
.fx-dom__jar { position: relative; display: block; width: 150px; height: 204px; }
.fx-dom__jar-glow { position: absolute; left: 50%; top: 56%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 120, 0.35), rgba(255, 220, 120, 0) 65%); z-index: 0; animation: fx-dom-pulse 3s ease-in-out infinite; }
@keyframes fx-dom-pulse { 50% { transform: scale(1.12); opacity: 0.8; } }
.fx-dom__jar-lid { position: absolute; left: 50%; top: 0; z-index: 3; width: 82px; height: 26px; margin-left: -41px; border-radius: 7px; background: linear-gradient(180deg, #8a6a4a, #5d442c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); transition: transform 0.7s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.6s ease 0.3s; }
.sil-cover.is-opening .fx-dom__jar-lid { transform: translate(-36px, -120px) rotate(-40deg); opacity: 0; }
.fx-dom__jar-body { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; z-index: 1; border-radius: 34px 34px 30px 30px; background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)); border: 2px solid rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 26px rgba(255, 230, 150, 0.25); }
.fx-dom__jar-body::before { content: ""; position: absolute; left: 14%; top: 10%; width: 11%; height: 60%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); }
.fx-dom__jar-flies { position: absolute; inset: 12px; }
.fx-dom__jar-flies i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff6c2; box-shadow: 0 0 8px 3px rgba(255, 225, 120, 0.8); animation: fx-dom-fly 4s ease-in-out infinite alternate, fx-dom-flick 1.6s ease-in-out infinite; transition: transform 1s ease, opacity 1s ease; }
@keyframes fx-dom-fly { to { translate: 12px -18px; } }
@keyframes fx-dom-flick { 50% { opacity: 0.35; } }
.sil-cover.is-opening .fx-dom__jar-flies i { transform: translateY(-160px) scale(0.6); opacity: 0; }

/* =========================================================================
   6. Thiệp cào bí mật
   ========================================================================= */
.fx-cao { --accent: #b0476a; background: radial-gradient(circle at 50% 22%, #fffaf6, #fbeee9 68%, #f5e5ee); color: #4a2a36; overflow-y: auto; }
.fx-cao__wrap { position: relative; z-index: 2; width: min(92vw, 440px); margin: 0 auto; padding: max(40px, 7vh) 0 110px; text-align: center; opacity: 0; transform: translateY(20px); transition: 0.8s ease; }
.fx-cao__wrap.is-in { opacity: 1; transform: none; }
.fx-cao__title { margin: 0; font: 700 clamp(32px, 8.5vw, 48px)/1.15 var(--script); color: var(--accent); }
.fx-cao__sub { margin: 6px 0 22px; color: #8b6a78; font-size: 14px; }
.fx-cao__card { position: relative; width: min(100%, 340px); aspect-ratio: 4 / 5; margin: 0 auto; overflow: hidden; border: 10px solid #fff; border-radius: 22px; background: #fff; box-shadow: 0 22px 46px rgba(120, 50, 70, 0.18); user-select: none; -webkit-user-select: none; }
.fx-cao__img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.fx-cao__art { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; background: radial-gradient(circle, #fff1f5, #f6c6d4); color: #d9577a; font-size: 110px; }
.fx-cao__art span { animation: fx-dn-beat-s 1.3s ease-in-out infinite; }
.fx-cao__scratch { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; cursor: grab; touch-action: none; transition: opacity 0.8s; }
.fx-cao__card.is-revealed .fx-cao__scratch { opacity: 0; pointer-events: none; }
.fx-cao__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #8a5a20; font-size: 12.5px; font-weight: 600; pointer-events: none; box-shadow: 0 4px 12px rgba(120, 80, 20, 0.18); animation: fx-nudge 1.6s ease-in-out infinite; transition: opacity 0.3s; }
.fx-cao__hint.is-out { opacity: 0; }
@keyframes fx-nudge { 50% { transform: translateX(-50%) translateY(-6px); } }
.fx-cao__msg { margin: 26px 0 0; white-space: pre-wrap; font: 700 clamp(22px, 6vw, 28px)/1.45 var(--script); color: #8e2f50; opacity: 0; transition: opacity 0.6s; }
.fx-cao__msg.is-in { opacity: 1; }
.fx-cao__album { opacity: 0; transition: opacity 0.8s; }
.fx-cao__album.is-in { opacity: 1; }
.fx-cao__album-title { margin: 34px 0 14px; font: 700 26px var(--script); color: var(--accent); }
.fx-cao__album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.fx-cao__polaroid { margin: 0; padding: 8px 8px 24px; background: #fff; box-shadow: 0 10px 20px rgba(80, 30, 45, 0.12); transform: rotate(var(--r)); animation: fx-drop-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fx-cao__polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
@keyframes fx-drop-in { from { opacity: 0; transform: translateY(-30px) rotate(0); } }
/* Bìa: thiệp gập có nơ */
.fx-cao__fold { position: relative; display: block; width: 220px; height: 280px; perspective: 1000px; }
.fx-cao__fold-back { position: absolute; inset: 0; border-radius: 10px; background: #fffaf6; box-shadow: 0 22px 44px rgba(80, 30, 45, 0.18); }
.fx-cao__fold-front {
	position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 30px 18px 34px; border-radius: 10px; text-align: center;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(160deg, #f1b8c6, #dd8aa1);
	transform-origin: left center; transition: transform 1s cubic-bezier(0.4, 0.1, 0.3, 1);
	box-shadow: inset -6px 0 12px rgba(0, 0, 0, 0.06);
}
.fx-cao__fold-title { max-width: 100%; font: 700 26px/1.2 var(--script); color: #fffaf6; text-shadow: 0 2px 6px rgba(120, 30, 60, 0.3); }
.fx-cao__fold-heart { color: #fffaf6; font-size: 38px; }
.fx-cao__ribbon { position: absolute; left: 0; right: 0; top: 50%; z-index: 3; height: 20px; margin-top: -10px; background: linear-gradient(180deg, #fbe3a6, #e7c06a); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); transition: transform 0.6s ease, opacity 0.5s; }
.fx-cao__bow { position: absolute; left: 50%; top: 50%; z-index: 4; margin: -24px 0 0 -22px; font-size: 44px; line-height: 1; transition: transform 0.6s ease, opacity 0.5s; }
.sil-cover.is-opening .fx-cao__ribbon { transform: translateX(120%); opacity: 0; }
.sil-cover.is-opening .fx-cao__bow { transform: translate(140px, -60px) rotate(40deg); opacity: 0; }
.sil-cover.is-opening .fx-cao__fold-front { transform: rotateY(-165deg); transition-delay: 0.35s; }

/* =========================================================================
   7. Chúc thi tốt (Cute Wishes Card)
   ========================================================================= */
body.sil-view--chuc-thi-tot {
	background-color: #fbf2eb;
	background: radial-gradient(circle at 50% 15%, #fffdf4 0%, #fff7dc 40%, #ffeed1 100%);
	color: #2d3436;
	font-family: 'Quicksand', sans-serif;
	overflow-x: hidden;
}

.sil-stage.fx-tt {
	--color-pink-light: #fff0f1;
	--color-pink-border: #ffd5d8;
	--color-pink-primary: #ff6b81;
	--color-orange: #ff5252;
	--color-gold: #ffc048;
	--font-primary: 'Quicksand', sans-serif;
	--font-header: 'Comfortaa', sans-serif;
	--transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 20px;
	overflow-x: hidden;
	box-sizing: border-box;
}

/* Layout wrapper */
.fx-tt__wrapper {
	position: relative;
	width: 100%;
	max-width: 1120px;
	min-height: 720px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Canvas Sparkles */
.fx-tt__sparkles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
}

/* Background Drifters */
.fx-tt__drifters {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
	z-index: 2;
}

.fx-tt__drifter {
	position: absolute;
	font-size: 1.5rem;
	opacity: 0;
	animation: fx-tt-driftUp 10s linear infinite;
	pointer-events: none;
}

@keyframes fx-tt-driftUp {
	0% { transform: translateY(110vh) translateX(0) rotate(0deg) scale(0.6); opacity: 0; }
	10% { opacity: 0.45; }
	90% { opacity: 0.45; }
	100% { transform: translateY(-10vh) translateX(100px) rotate(360deg) scale(1.2); opacity: 0; }
}

/* Static Background Hearts and Stars */
.fx-tt__static-bg {
	position: absolute;
	pointer-events: none;
	user-select: none;
	font-size: 1.15rem;
	z-index: 2;
	animation: fx-tt-staticPulse 4s ease-in-out infinite alternate;
}

@keyframes fx-tt-staticPulse {
	0% { transform: scale(0.85) rotate(0deg); opacity: 0.55; }
	100% { transform: scale(1.08) rotate(8deg); opacity: 0.85; }
}

.fx-tt__static-heart { color: #ffb8b8; filter: drop-shadow(0 2px 5px rgba(255, 107, 129, 0.15)); }
.fx-tt__static-star { color: #ffd060; filter: drop-shadow(0 2px 5px rgba(255, 192, 72, 0.15)); }

.fx-tt__h-1 { top: 12%; left: 16%; animation-delay: 0.2s; }
.fx-tt__s-1 { top: 8%; left: 41%; animation-delay: 0.5s; font-size: 1.3rem; }
.fx-tt__h-2 { top: 38%; left: 15%; animation-delay: 0.8s; }
.fx-tt__s-2 { top: 68%; left: 18%; animation-delay: 1.1s; }
.fx-tt__h-3 { top: 58%; left: 8%; animation-delay: 0.4s; }
.fx-tt__s-3 { bottom: 1%; left: 26%; animation-delay: 1.4s; }
.fx-tt__s-4 { bottom: 3%; right: 29%; animation-delay: 0.7s; }
.fx-tt__h-4 { top: 22%; right: 25%; animation-delay: 1.8s; }

/* Floating Decorative Assets */
.fx-tt__decorations {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
}

.fx-tt__decor {
	position: absolute;
	pointer-events: auto;
	cursor: pointer;
	transition: var(--transition-bounce);
	animation: fx-tt-float-gentle 6s ease-in-out infinite alternate;
}

.fx-tt__decor img {
	width: 100%;
	height: auto;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

@keyframes fx-tt-float-gentle {
	0% { transform: translateY(0) rotate(0deg); }
	100% { transform: translateY(-12px) rotate(2deg); }
}

.fx-tt__decor--notebook { animation-duration: 5.5s; animation-delay: 0.2s; }
.fx-tt__decor--sticky { animation-duration: 6.5s; animation-delay: 0.5s; }
.fx-tt__decor--pencil { animation-duration: 4.8s; animation-delay: 0.1s; }
.fx-tt__decor--exam { animation-duration: 7s; animation-delay: 0.8s; }
.fx-tt__decor--backpack { animation-duration: 8s; animation-delay: 0.3s; }
.fx-tt__decor--books { animation-duration: 7.5s; animation-delay: 0.6s; }
.fx-tt__decor--cup { animation-duration: 6.2s; animation-delay: 0.4s; }

/* Desktop Positions */
@media (min-width: 992px) {
	.fx-tt__decor--notebook { width: 165px; top: 10px; left: 108px; transform: rotate(-23deg) !important; }
	.fx-tt__decor--sticky { width: 155px; top: 20px; right: 160px; transform: rotate(20deg) !important; }
	.fx-tt__decor--pencil { width: 50px; top: 300px; left: 270px; transform: rotate(-25deg) !important; }
	.fx-tt__decor--exam { width: 160px; top: 180px; right: 139px; }
	.fx-tt__decor--backpack { width: 202px; bottom: 0px; left: 110px; }
	.fx-tt__decor--books { width: 245px; bottom: -23px; right: 65px; }
	.fx-tt__decor--cup { width: 170px; bottom: -30px; right: 210px; }
}

/* Micro animations */
.fx-tt__decor--notebook:hover { transform: scale(1.1) rotate(-5deg); filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.08)); }
.fx-tt__decor--sticky:hover { transform: scale(1.1) rotate(5deg) skewX(-2deg); }
.fx-tt__decor--pencil:hover { animation: fx-tt-pencilWiggle 0.6s ease-in-out infinite; }
@keyframes fx-tt-pencilWiggle {
	0%, 100% { transform: translateY(-5px) rotate(0deg); }
	25% { transform: translateY(-5px) rotate(-15deg); }
	75% { transform: translateY(-5px) rotate(10deg); }
}
.fx-tt__decor--exam:hover { transform: scale(1.08) translateY(-15px) rotate(3deg); filter: drop-shadow(0 20px 25px rgba(255, 107, 129, 0.15)); }
.fx-tt__decor--backpack img { animation: fx-tt-backpackBounce 5.5s ease-in-out infinite; transform-origin: bottom center; }
@keyframes fx-tt-backpackBounce {
	0%, 78%, 100% { transform: scale(1) translateY(0); }
	81% { transform: scale(1.15, 0.85) translateY(3px); }
	86% { transform: scale(0.92, 1.12) translateY(-20px); }
	91% { transform: scale(1.04, 0.96) translateY(0); }
}
.fx-tt__decor--books img { animation: fx-tt-booksJump 6s ease-in-out infinite; transform-origin: bottom center; }
@keyframes fx-tt-booksJump {
	0%, 75%, 100% { transform: translateY(0) rotate(0); }
	81% { transform: translateY(-16px) rotate(-4deg); }
	88% { transform: translateY(-3px) rotate(3deg); }
}
.fx-tt__decor--cup:hover { animation: fx-tt-cupShake 0.6s ease-in-out; }
@keyframes fx-tt-cupShake {
	0%, 100% { transform: rotate(0); }
	20%, 60% { transform: rotate(-5deg) translateX(-3px); }
	40%, 80% { transform: rotate(5deg) translateX(3px); }
}

/* Main Card */
.fx-tt__card {
	background: #ffffff;
	border-radius: 40px;
	width: 100%;
	max-width: 580px;
	padding: 35px 35px 30px 35px;
	box-shadow: 0 25px 50px rgba(255, 180, 170, 0.22), 0 10px 20px rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 5;
	border: 3px solid #ffb8b8;
	transition: var(--transition-bounce);
}

.fx-tt__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 35px 65px rgba(255, 180, 170, 0.3), 0 15px 25px rgba(0, 0, 0, 0.03);
}

/* Header image */
.fx-tt__header-img {
	position: relative;
	width: 240px;
	height: 180px;
	margin-bottom: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.fx-tt__book-img {
	width: 100%;
	height: auto;
	object-fit: contain;
	z-index: 2;
	animation: fx-tt-bookFloat 4s ease-in-out infinite alternate;
}

@keyframes fx-tt-bookFloat {
	0% { transform: translateY(0) scale(1); }
	100% { transform: translateY(-8px) scale(1.03); }
}

.fx-tt__star-glow {
	position: absolute;
	top: 25%;
	left: 45%;
	transform: translate(-50%, -50%);
	width: 70px;
	height: 70px;
	background: radial-gradient(circle, rgba(255, 230, 140, 0.8) 0%, rgba(255, 230, 140, 0) 70%);
	z-index: 1;
	border-radius: 50%;
	animation: fx-tt-glowStar 2s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes fx-tt-glowStar {
	0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
	100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.3); }
}

/* Title & Subtitle */
.fx-tt__title {
	font-family: var(--font-header);
	font-size: 2.3rem;
	font-weight: 700;
	color: #2d3436;
	margin: 0 0 8px;
	letter-spacing: -0.5px;
}

.fx-tt__highlight {
	color: var(--color-pink-primary);
	position: relative;
	display: inline-block;
}

.fx-tt__highlight::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 0;
	width: 100%;
	height: 6px;
	background-color: rgba(255, 107, 129, 0.18);
	border-radius: 4px;
	z-index: -1;
}

.fx-tt__subtitle {
	font-size: 1rem;
	color: #636e72;
	font-weight: 500;
	margin: 0 0 25px;
	padding: 0 10px;
}

/* Message Bubble */
.fx-tt__bubble {
	width: 100%;
	background-color: var(--color-pink-light);
	border: 2.5px dashed var(--color-pink-border);
	border-radius: 28px;
	padding: 22px 28px;
	position: relative;
	margin-bottom: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: inset 0 2px 10px rgba(255, 107, 129, 0.02);
}

.fx-tt__quote {
	font-family: var(--font-header);
	font-size: 3.5rem;
	color: #ffb8b8;
	position: absolute;
	line-height: 1;
	user-select: none;
}

.fx-tt__quote--start { top: 5px; left: 15px; }
.fx-tt__quote--end { bottom: -22px; right: 18px; }

.fx-tt__message-box {
	width: 100%;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.fx-tt__typewriter {
	font-size: 1.05rem;
	line-height: 1.6;
	font-weight: 600;
	color: #4a4a4a;
	text-align: center;
	white-space: pre-line;
	margin: 0;
}

.fx-tt__cursor {
	font-weight: 700;
	color: var(--color-pink-primary);
	font-size: 1.1rem;
	margin-left: 2px;
	animation: fx-tt-blinkCursor 0.7s step-end infinite;
	display: inline-block;
	vertical-align: middle;
}

@keyframes fx-tt-blinkCursor {
	from, to { color: transparent; }
	50% { color: var(--color-pink-primary); }
}

.fx-tt__bubble-heart {
	position: absolute;
	top: -15px;
	right: 15px;
	font-size: 1.8rem;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
	animation: fx-tt-heartbeat 2.5s infinite alternate ease-in-out;
}

@keyframes fx-tt-heartbeat {
	0% { transform: scale(1) rotate(0deg); }
	100% { transform: scale(1.15) rotate(5deg); }
}

/* Timeline */
.fx-tt__timeline {
	width: 85%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
	position: relative;
}

.fx-tt__dot {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #f7d5d7;
	border: 3px solid #ffffff;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 6px 15px rgba(255, 107, 129, 0.12);
	z-index: 3;
	transition: var(--transition-bounce);
}

.fx-tt__dot.is-active {
	background-color: var(--color-pink-light);
	border-color: var(--color-pink-primary);
}

.fx-tt__dot.is-completed {
	background-color: #ffeaa7;
	border-color: var(--color-gold);
	animation: fx-tt-pulseGold 2s infinite;
}

@keyframes fx-tt-pulseGold {
	0% { box-shadow: 0 0 0 0 rgba(255, 192, 72, 0.4); }
	70% { box-shadow: 0 0 0 10px rgba(255, 192, 72, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 192, 72, 0); }
}

.fx-tt__dot-icon { font-size: 1.3rem; line-height: 1; }
.fx-tt__dot--star { background-color: #fcebb6; }

.fx-tt__timeline-line {
	flex-grow: 1;
	margin: 0 -5px;
	position: relative;
	height: 12px;
}

.fx-tt__timeline-svg { display: block; }
.fx-tt__line-bg { stroke: #f7d5d7; stroke-width: 3px; stroke-dasharray: 6 5; }
.fx-tt__line-fill { stroke: var(--color-pink-primary); stroke-width: 3px; stroke-dasharray: 6 5; }

.fx-tt__plane {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(-50%, -50%) rotate(0deg);
	width: 34px;
	height: 34px;
	background-color: #ffffff;
	border: 2px solid var(--color-pink-primary);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 4px 10px rgba(255, 107, 129, 0.2);
	z-index: 4;
}

.fx-tt__plane svg {
	width: 18px;
	height: 18px;
	transform: rotate(45deg);
	fill: #ff6b81;
}

/* Status footer */
.fx-tt__footer { width: 100%; text-align: center; }
.fx-tt__status-main {
	font-family: var(--font-header);
	font-size: 1.15rem;
	font-weight: 700;
	color: #2d3436;
	margin: 0 0 4px;
}
.fx-tt__status-sub {
	font-size: 0.9rem;
	color: #636e72;
	font-weight: 600;
	margin: 0;
}
.fx-tt__sparkle-spin {
	display: inline-block;
	animation: fx-tt-spinSparkle 1.8s infinite linear;
}
@keyframes fx-tt-spinSparkle {
	0% { transform: rotate(0deg) scale(1); }
	50% { transform: rotate(180deg) scale(1.2); }
	100% { transform: rotate(360deg) scale(1); }
}

/* Music Button on Chuc Thi Tot */
.sil-view--chuc-thi-tot .sil-music {
	top: auto;
	bottom: 25px;
	right: 25px;
	width: auto;
	height: auto;
	border-radius: 30px;
	padding: 10px 18px;
	background: rgba(255, 255, 255, 0.9);
	border: 2px solid #ffd5d8;
	color: #ff6b81;
	font-family: 'Quicksand', sans-serif;
	font-weight: 700;
	font-size: 14px;
	box-shadow: 0 8px 20px rgba(255, 107, 129, 0.15);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	gap: 8px;
}
.sil-view--chuc-thi-tot .sil-music:not(.is-playing)::after { display: none; }
.sil-view--chuc-thi-tot .sil-music.is-playing {
	background-color: #ff6b81;
	color: #ffffff;
	border-color: #ff6b81;
}

/* Mobile responsive – bố cục theo mẫu: thẻ gần vuông ở giữa, phụ kiện bám 4 góc + 2 bên, không đè chữ.
   Mọi kích thước tính theo --u = 1% chiều rộng màn hình (tối đa 4.4px ⇒ khung 440px trên máy tính bảng). */
@media (max-width: 991px) {
	body.sil-view--chuc-thi-tot { background: radial-gradient(circle at 50% 12%, #fff8f3 0%, #fdefe9 55%, #fbe5de 100%); }
	.sil-stage.fx-tt {
		--u: min(1vw, 4.4px);
		min-height: 100vh;
		min-height: 100svh;
		align-items: center;
		padding: 24px 0 72px;
	}
	.fx-tt__wrapper {
		display: block;
		max-width: 440px;
		min-height: 0;
		margin: 0 auto;
		padding: calc(var(--u) * 18) 0 calc(var(--u) * 14);
	}

	/* Thẻ */
	.fx-tt__card {
		width: auto;
		max-width: none;
		margin: 0 calc(var(--u) * 3);
		padding: calc(var(--u) * 6.5) calc(var(--u) * 5) calc(var(--u) * 5.5);
		border: 2.5px solid #ffbcc2;
		border-radius: calc(var(--u) * 10);
		background: rgba(255, 255, 255, 0.42);
		box-shadow: 0 18px 40px rgba(255, 170, 160, 0.16);
	}
	.fx-tt__card:hover { transform: none; box-shadow: 0 18px 40px rgba(255, 170, 160, 0.16); }
	.fx-tt__header-img { width: calc(var(--u) * 35); height: auto; aspect-ratio: 380 / 255; margin: 0 0 calc(var(--u) * 1.5); }
	.fx-tt__star-glow { width: calc(var(--u) * 14); height: calc(var(--u) * 14); }
	.fx-tt__title { max-width: calc(var(--u) * 66); margin: 0 auto calc(var(--u) * 2); font-size: max(20px, calc(var(--u) * 5.85)); line-height: 1.2; text-wrap: balance; }
	.fx-tt__subtitle { max-width: calc(var(--u) * 62); margin: 0 auto calc(var(--u) * 3.5); padding: 0; text-wrap: balance; font-size: max(11.5px, calc(var(--u) * 3.1)); line-height: 1.45; }

	/* Khung lời chúc */
	.fx-tt__bubble {
		min-height: calc(var(--u) * 21);
		margin-bottom: calc(var(--u) * 5);
		padding: calc(var(--u) * 4) calc(var(--u) * 6);
		border-width: 2px;
		border-color: #ffc9cf;
		border-radius: calc(var(--u) * 6);
		background: #fdeef0;
	}
	.fx-tt__message-box { min-height: 0; }
	.fx-tt__typewriter { font-size: max(12.5px, calc(var(--u) * 3.4)); line-height: 1.6; }
	.fx-tt__quote--start { display: none; }
	.fx-tt__quote--end { right: calc(var(--u) * 3.5); bottom: calc(var(--u) * -1); font-size: calc(var(--u) * 9); }
	.fx-tt__bubble-heart { top: calc(var(--u) * -3.5); right: calc(var(--u) * 5); font-size: calc(var(--u) * 6); }

	/* Tiến trình máy bay giấy */
	.fx-tt__timeline { width: 84%; margin-bottom: calc(var(--u) * 3.5); }
	.fx-tt__dot { width: calc(var(--u) * 8); height: calc(var(--u) * 8); min-width: 28px; min-height: 28px; border-width: 2.5px; }
	.fx-tt__dot-icon { font-size: max(12px, calc(var(--u) * 3.4)); }
	.fx-tt__plane { width: calc(var(--u) * 7); height: calc(var(--u) * 7); min-width: 24px; min-height: 24px; }
	.fx-tt__plane svg { width: 50%; height: 50%; }
	.fx-tt__status-main { margin-bottom: 3px; font-size: max(13px, calc(var(--u) * 3.7)); line-height: 1.35; }
	.fx-tt__status-sub { font-size: max(11.5px, calc(var(--u) * 3.1)); }

	/* Phụ kiện 3D: trên (sổ tay, giấy note) – hai bên (bút chì, bài thi, cạnh ảnh sách) – dưới (balo, cốc bút, chồng sách) */
	.fx-tt__decor { z-index: 1; }
	.fx-tt__decor--notebook { width: calc(var(--u) * 17); top: 0; left: calc(var(--u) * 0.5); transform: rotate(-16deg) !important; }
	.fx-tt__decor--sticky { width: calc(var(--u) * 14.5); top: calc(var(--u) * 1.4); right: calc(var(--u) * 1); transform: rotate(3deg) !important; }
	.fx-tt__decor--pencil { width: calc(var(--u) * 10); top: calc(var(--u) * 41); left: calc(var(--u) * 4); transform: rotate(-4deg) !important; }
	.fx-tt__decor--exam { width: calc(var(--u) * 15); top: calc(var(--u) * 47); right: calc(var(--u) * 1.5); transform: rotate(6deg) !important; }
	.fx-tt__decor--backpack { width: calc(var(--u) * 15.7); bottom: calc(var(--u) * 3.5); left: 0; }
	.fx-tt__decor--books { width: calc(var(--u) * 16); bottom: calc(var(--u) * 10.4); right: calc(var(--u) * 0.5); }
	.fx-tt__decor--cup { width: calc(var(--u) * 12); bottom: 0; left: calc(var(--u) * 54); }

	/* Tim / sao nhỏ ở các khoảng trống */
	.fx-tt__static-bg { z-index: 6; font-size: max(10px, calc(var(--u) * 3)); }
	.fx-tt__h-1 { top: calc(var(--u) * 6.5); left: 23%; right: auto; bottom: auto; }
	.fx-tt__s-1 { top: calc(var(--u) * 4); left: 48%; right: auto; bottom: auto; font-size: max(11px, calc(var(--u) * 3.6)); }
	.fx-tt__s-2 { top: calc(var(--u) * 33); left: 24%; right: auto; bottom: auto; }
	.fx-tt__h-2 { top: calc(var(--u) * 42); left: 14.5%; right: auto; bottom: auto; }
	.fx-tt__h-4 { top: calc(var(--u) * 41); left: auto; right: 15%; bottom: auto; }
	.fx-tt__h-3 { top: calc(var(--u) * 76); left: 4.5%; right: auto; bottom: auto; }
	.fx-tt__s-3 { top: auto; bottom: calc(var(--u) * 4); left: 38%; right: auto; }
	.fx-tt__s-4 { top: auto; bottom: calc(var(--u) * 2); left: auto; right: 24%; }

	.sil-view--chuc-thi-tot .sil-music {
		bottom: 15px;
		right: 15px;
		padding: 8px 14px;
		font-size: 12px;
	}
}

/* =========================================================================
   8. Sinh nhật Matrix
   ========================================================================= */
.fx-mtx { --c: #39ff8f; --accent: #c04a68; background: radial-gradient(circle at 50% 30%, #fff8fa, #fbe8f0 70%, #efe4f7); color: #fff; }
.fx-mtx::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #0b1220, #03050a 80%); opacity: 0; transition: opacity 1.2s ease; }
.fx-mtx.is-night::before { opacity: 1; }
.fx-mtx__cover { --hint: #7b6a70; }
.fx-mtx__cake { position: relative; display: block; width: 210px; height: 240px; }
.fx-mtx__plate { position: absolute; left: 50%; bottom: 0; width: 220px; height: 26px; margin-left: -110px; border-radius: 50%; background: radial-gradient(ellipse, #fff 55%, #ece3e8); box-shadow: 0 10px 20px rgba(80, 30, 45, 0.15); }
.fx-mtx__tier { position: absolute; left: 50%; border-radius: 14px 14px 10px 10px; box-shadow: inset 0 -10px 14px rgba(150, 60, 90, 0.12); }
.fx-mtx__tier--bottom { bottom: 12px; width: 184px; height: 72px; margin-left: -92px; background: linear-gradient(180deg, #fde2ea, #f4bfd0); }
.fx-mtx__tier--top { bottom: 80px; width: 130px; height: 58px; margin-left: -65px; z-index: 1; background: linear-gradient(180deg, #fff3f6, #f8d3df); }
.fx-mtx__tier::before { content: ""; position: absolute; left: -2px; right: -2px; top: -4px; height: 22px; border-radius: 12px; background: radial-gradient(circle at 10% 100%, #fff 0 9px, transparent 10px) 0 0 / 28px 22px repeat-x, linear-gradient(#fff, #fff) top / 100% 12px no-repeat; }
.fx-mtx__tier--bottom::after { content: "• • • • • •"; position: absolute; left: 0; right: 0; top: 34px; text-align: center; color: #e5869f; letter-spacing: 6px; font-size: 14px; }
.fx-mtx__candle { position: absolute; left: 50%; bottom: 134px; z-index: 2; width: 12px; height: 46px; margin-left: -6px; border-radius: 3px; background: repeating-linear-gradient(-45deg, #fff 0 5px, #8fc3f0 5px 10px); }
.fx-mtx__flame { position: absolute; left: 50%; bottom: 44px; width: 16px; height: 26px; margin-left: -8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff7c2, #ffc84a 45%, #ff8a3d 80%); box-shadow: 0 0 18px 6px rgba(255, 190, 80, 0.55); transform-origin: 50% 90%; animation: fx-mtx-flame 0.9s ease-in-out infinite alternate; transition: transform 0.4s, opacity 0.4s; }
@keyframes fx-mtx-flame { from { transform: rotate(-4deg) scaleY(1); } to { transform: rotate(4deg) scaleY(1.12); } }
.fx-mtx__smoke { position: absolute; left: 50%; bottom: 46px; width: 10px; height: 40px; margin-left: -5px; border-radius: 50%; background: linear-gradient(180deg, rgba(160, 160, 170, 0), rgba(160, 160, 170, 0.6)); opacity: 0; filter: blur(3px); }
.sil-cover.is-opening .fx-mtx__flame { opacity: 0; transform: scale(0.2); animation: none; }
.sil-cover.is-opening .fx-mtx__smoke { animation: fx-mtx-smoke 1.2s ease-out forwards; }
@keyframes fx-mtx-smoke { 0% { opacity: 0.8; transform: translateY(0) scaleX(1); } 100% { opacity: 0; transform: translateY(-50px) scaleX(2.4); } }
.fx-mtx__rain { z-index: 1; opacity: 0.55; }
.fx-mtx__fw { z-index: 2; }
.fx-mtx__count { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font: 200 clamp(110px, 36vw, 220px)/1 var(--sans); color: #fff; text-shadow: 0 0 30px var(--c); pointer-events: none; }
.fx-mtx__count.is-tick { animation: fx-tick 1s ease-out both; }
@keyframes fx-tick { from { opacity: 0; transform: scale(1.8); filter: blur(8px); } 30% { opacity: 1; transform: scale(1); filter: none; } to { opacity: 0; transform: scale(0.8); } }
.fx-mtx__main { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px 90px; text-align: center; pointer-events: none; opacity: 0; overflow-y: auto; }
.fx-mtx__main.is-in { opacity: 1; pointer-events: auto; }
.fx-mtx__hb { margin: 0; font: 500 clamp(18px, 5vw, 30px)/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.28em; color: #eafff3; text-shadow: 0 0 12px var(--c); }
.fx-mtx__hb span { display: inline-block; white-space: pre; }
.fx-mtx__main.is-in .fx-mtx__hb span { animation: fx-letter 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes fx-letter { from { opacity: 0; transform: translateY(-40px) scale(0.4); } }
.fx-mtx__name { margin: 10px 0 6px; font: 700 clamp(52px, 15vw, 104px)/1.05 var(--script); color: #fff; text-shadow: 0 0 22px var(--c), 0 0 40px var(--c); }
.fx-mtx__main.is-in .fx-mtx__name { animation: fx-zoom-in 1.2s 0.9s both; }
@keyframes fx-zoom-in { from { opacity: 0; transform: scale(0.7); filter: blur(8px); } }
.fx-mtx__age { display: inline-flex; align-items: baseline; gap: 8px; margin: 6px 0 0; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); font-size: 15px; }
.fx-mtx__age b { font-size: 22px; font-weight: 600; color: var(--c); }
.fx-mtx__main.is-in .fx-mtx__age { animation: sil-in-up 0.6s 1.5s both; }
.fx-mtx__wishes { display: grid; gap: 8px; margin-top: 22px; max-width: 520px; }
.fx-mtx__wish { margin: 0; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(6px); font: 400 clamp(14px, 4vw, 17px)/1.6 var(--sans); color: #f2fff8; }

/* =========================================================================
   9. Thư gửi đêm muộn
   ========================================================================= */
.fx-dem-muon { --accent: #6b55b8; background: linear-gradient(180deg, #070d26 0%, #141b4d 45%, #3a2d6e 80%, #5b3f82 100%); color: #3b3350; overflow-y: auto; }
.fx-dm__moon { position: absolute; top: 7%; right: 10%; width: clamp(70px, 18vw, 120px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbe8, #f2e3b3 70%); box-shadow: 0 0 40px rgba(255, 240, 190, 0.7), 0 0 120px rgba(255, 240, 190, 0.35); animation: fx-glow 5s ease-in-out infinite; }
@keyframes fx-glow { 50% { box-shadow: 0 0 55px rgba(255, 240, 190, 0.85), 0 0 160px rgba(255, 240, 190, 0.45); } }
.fx-dm__crater { position: absolute; border-radius: 50%; background: rgba(200, 180, 120, 0.25); }
.fx-dm__crater--1 { width: 22%; height: 22%; left: 25%; top: 30%; }
.fx-dm__crater--2 { width: 14%; height: 14%; left: 58%; top: 55%; }
.fx-dm__crater--3 { width: 10%; height: 10%; left: 40%; top: 70%; }
.fx-dm__hills { position: fixed; left: 0; right: 0; bottom: 0; height: 26vh; pointer-events: none; }
.fx-dm__hills svg { width: 100%; height: 100%; display: block; }
.fx-dm__flies { position: fixed; inset: 0; pointer-events: none; }
.fx-dm__flies span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff6a8; box-shadow: 0 0 8px 3px rgba(255, 240, 120, 0.7); animation-name: fx-fly, fx-flicker; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
@keyframes fx-fly { to { transform: translate(60px, -90px); } }
@keyframes fx-flicker { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.fx-dm__wrap { position: relative; z-index: 3; width: min(90vw, 520px); margin: 0 auto; padding: max(90px, 16vh) 0 130px; }
.fx-dm__paper { padding: clamp(24px, 6vw, 38px); border-radius: 18px; background-color: #fbf6ea; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fx-dm__paper.is-in { opacity: 1; transform: none; }
.fx-dm__title { margin: 0 0 18px; font: 700 clamp(30px, 8vw, 44px)/1.2 var(--script); color: #4b3a8a; }
.fx-dm__body { min-height: 50px; white-space: pre-wrap; text-align: left; font-size: clamp(15px, 4.1vw, 17px); line-height: 1.85; color: #3b3350; }
.fx-dm__sign { margin: 22px 0 0; text-align: right; font: 700 clamp(24px, 6vw, 30px) var(--script); color: #4b3a8a; opacity: 0; transition: opacity 1s; }
.fx-dm__sign.is-in, .fx-dm__night.is-in { opacity: 1; }
.fx-dm__night { margin: 18px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8d80b8; opacity: 0; transition: opacity 1.2s; }
.fx-dm__cover { --accent: #fff3d1; --hint: rgba(255, 243, 209, 0.7); }
.fx-dm__cover .sil-cover__title { text-shadow: 0 0 18px rgba(255, 230, 160, 0.5); }
.fx-dm__scroll { position: relative; display: block; width: 250px; height: 96px; }
.fx-dm__roll { position: absolute; left: 14px; right: 14px; top: 10px; bottom: 10px; border-radius: 6px; background: linear-gradient(180deg, #d9c9a6, #fbf6ea 38%, #f1e6cc 62%, #cdb98f); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35); transition: transform 0.8s ease 0.3s, opacity 0.6s ease 0.5s; }
.fx-dm__roll-end { position: absolute; top: 4px; bottom: 4px; width: 26px; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, #b39a6c 0 30%, #e6d8b8 32%, #cdb98f 100%); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); transition: opacity 0.5s ease 0.5s; }
.fx-dm__roll-end--l { left: 2px; }
.fx-dm__roll-end--r { right: 2px; }
.fx-dm__band { position: absolute; left: 50%; top: 2px; bottom: 2px; width: 22px; margin-left: -11px; background: linear-gradient(90deg, #8b6fd6, #b49cf0 50%, #8b6fd6); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 0.5s ease, opacity 0.4s; }
.fx-dm__charm { position: absolute; left: 50%; bottom: -26px; margin-left: -12px; color: #ffe7a3; font-size: 26px; text-shadow: 0 0 12px rgba(255, 220, 130, 0.7); transition: opacity 0.4s; }
.sil-cover.is-opening .fx-dm__band { transform: translateY(-60px) rotate(30deg); opacity: 0; }
.sil-cover.is-opening .fx-dm__charm { opacity: 0; }
.sil-cover.is-opening .fx-dm__roll { transform: scaleY(2.6); opacity: 0; }
.sil-cover.is-opening .fx-dm__roll-end { opacity: 0; }

/* =========================================================================
   10. Album ảnh kỷ niệm
   ========================================================================= */
.fx-album { --accent: #a0583a; background: repeating-linear-gradient(45deg, rgba(141, 90, 59, 0.035) 0 2px, transparent 2px 10px), radial-gradient(circle at 50% 35%, #fffaf3, #f4e9dc 80%); color: #5b3a26; }
.fx-album__intro { position: absolute; top: max(26px, 5vh); left: 0; right: 0; z-index: 3; padding: 0 20px; text-align: center; opacity: 0; transform: translateY(-10px); transition: 0.9s ease; }
.fx-album__intro.is-in { opacity: 1; transform: none; }
.fx-album__title { margin: 0; font: 700 clamp(32px, 8.5vw, 50px)/1.1 var(--script); color: #8d4f34; }
.fx-album__sub { margin: 6px 0 0; font-size: 14px; color: #a07a5e; }
.fx-album__table { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; cursor: pointer; }
.fx-album__photo { --size: min(72vw, 44vh, 360px); position: absolute; width: var(--size); margin: 0; padding: calc(var(--size) * 0.045) calc(var(--size) * 0.045) calc(var(--size) * 0.16); background: #fff; box-shadow: 0 20px 40px rgba(91, 58, 38, 0.22); opacity: 0; transform: translate(60vw, -10vh) rotate(25deg) scale(0.9); transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s; }
.fx-album__photo.is-active { opacity: 1; transform: translate(0, 3vh) rotate(calc(var(--rot) * 0.3)) scale(1); }
.fx-album__photo.is-stacked { opacity: 1; transform: translate(var(--dx), calc(var(--dy) + 3vh)) rotate(var(--rot)) scale(0.82); filter: brightness(0.95); }
.fx-album__frame { overflow: hidden; aspect-ratio: 1; background: #eee; }
.fx-album__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-album__photo.is-active img { animation: fx-kenburns 4s ease-out both; }
@keyframes fx-kenburns { from { transform: scale(1.16) translate(2%, 2%); } to { transform: scale(1); } }
.fx-album__photo figcaption { position: absolute; left: 0; right: 0; bottom: calc(var(--size) * 0.035); text-align: center; font: 700 calc(var(--size) * 0.07) var(--script); color: #8d5a3b; }
.fx-album__nav { position: absolute; left: 0; right: 0; bottom: max(84px, 11vh); z-index: 3; text-align: center; pointer-events: none; transition: opacity 0.5s; }
.fx-album__counter { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: #8d5a3b; }
.fx-album__dots { display: flex; justify-content: center; gap: 6px; }
.fx-album__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(141, 90, 59, 0.22); transition: background 0.3s; }
.fx-album__dots span.is-on { background: #c97b52; }
.fx-album__hint { position: absolute; left: 0; right: 0; bottom: max(56px, 7vh); z-index: 3; margin: 0; text-align: center; font-size: 12px; color: #a07a5e; transition: opacity 0.8s; pointer-events: none; }
.fx-album__hint.is-out { opacity: 0; }
.fx-album.is-finished .fx-album__nav { opacity: 0; }
.fx-album.is-finished .fx-album__table { filter: blur(2px) brightness(0.92); }
.fx-album__msg { position: absolute; left: 50%; top: 50%; z-index: 6; width: min(88vw, 420px); padding: 26px 22px 22px; text-align: center; opacity: 0; transform: translate(-50%, -40%) scale(0.96); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fx-album__msg.is-in { opacity: 1; transform: translate(-50%, -50%); }
.fx-album__msg-text { min-height: 54px; margin: 6px 0 18px; white-space: pre-wrap; font: 700 clamp(22px, 6vw, 28px)/1.45 var(--script); color: #8d4f34; }
/* Bìa: cuốn album */
.fx-album__book { position: relative; display: block; width: 214px; height: 262px; perspective: 1200px; }
.fx-album__pages { position: absolute; left: 6px; top: 6px; right: -6px; bottom: -6px; border-radius: 4px 10px 10px 4px; background: repeating-linear-gradient(90deg, #fffdf8 0 3px, #ece3d4 3px 4px); box-shadow: 0 22px 40px rgba(91, 58, 38, 0.22); }
.fx-album__cover {
	position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: 4px 12px 12px 4px; transform-origin: left center;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0) 14px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 3px), linear-gradient(160deg, #c97a86, #a85a69);
	box-shadow: inset -4px 0 10px rgba(0, 0, 0, 0.12); transition: transform 1.1s cubic-bezier(0.4, 0.1, 0.3, 1);
}
.fx-album__plate { display: grid; gap: 4px; width: 72%; padding: 16px 10px; border: 1px solid #d8c39c; border-radius: 6px; background: #fbf6ea; text-align: center; box-shadow: inset 0 0 0 4px #fbf6ea, inset 0 0 0 5px #e3d2ad; }
.fx-album__plate-kick { font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #a0583a; }
.fx-album__plate-title { font: 700 22px/1.15 var(--script); color: #8d4f34; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fx-album__corner { position: absolute; right: 0; width: 26px; height: 26px; background: linear-gradient(135deg, transparent 50%, #e2c07a 50%); }
.fx-album__corner--tr { top: 0; transform: scaleY(-1); border-radius: 0 12px 0 0; }
.fx-album__corner--br { bottom: 0; border-radius: 0 0 12px 0; }
.fx-album__ribbon { position: absolute; left: 60%; bottom: -26px; z-index: 1; width: 12px; height: 40px; background: #e2c07a; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.sil-cover.is-opening .fx-album__cover { transform: rotateY(-165deg); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =========================================================================
   Thiệp xin lỗi (.fx-xl) – nền tím đêm, phong bì + hoa của Bàn hoa, 4 quả cầu, bó hoa, lá thư cuối
   ========================================================================= */
.fx-xl {
	--gold: linear-gradient(135deg, #ffe9a8, #f5c44e 45%, #e0a52e);
	--xl-serif: "Cormorant Garamond", Georgia, serif;
	--xl-hand: "Dancing Script", cursive;
	background: radial-gradient(at 50% 40%, #1a0a2e 0%, #0d0618 55%, #050210 100%);
	color: #fafafa;
	font-family: var(--sans);
}
.fx-xl__sky, .fx-xl__fx { position: absolute; inset: 0; pointer-events: none; }
.fx-xl__sky { z-index: 0; }
.fx-xl__sky i { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); animation: fx-xl-twinkle var(--d, 3s) ease-in-out infinite alternate; }
@keyframes fx-xl-twinkle { from { opacity: 0.15; transform: scale(0.7); } to { opacity: 0.95; transform: scale(1.1); } }
.fx-xl__fx { z-index: 1; overflow: hidden; }

/* Màn */
.fx-xl__scene { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 20px 40px; opacity: 0; transform: scale(0.98); transition: opacity 0.6s ease, transform 0.6s ease; }
.fx-xl__scene.is-in { opacity: 1; transform: none; }
.fx-xl__scene.is-out { opacity: 0; transform: scale(1.03); pointer-events: none; }
.fx-xl__scene.is-instant { transition: none; }

/* --- Bìa --- */
.fx-xl__headline {
	margin: 0 0 22px; max-width: 92%; text-align: center; font: 600 clamp(24px, 6.9vw, 34px)/1.5 var(--xl-hand); letter-spacing: 0.01em;
	background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 12px rgba(245, 196, 78, 0.4));
}
.fx-xl__env-wrap { position: relative; width: min(340px, 86vw); aspect-ratio: 340 / 208; filter: drop-shadow(0 22px 36px rgba(90, 52, 55, 0.4)) drop-shadow(0 8px 16px rgba(90, 52, 55, 0.24)); animation: fx-xl-hover 6s ease-in-out infinite; }
@media (min-width: 768px) { .fx-xl__env-wrap { width: min(420px, 60vw); } }
@keyframes fx-xl-hover { 0%, 100% { transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(0); } 50% { transform: perspective(900px) rotateX(-2deg) rotateY(3deg) translateY(-6px); } }
.fx-xl__env { position: absolute; inset: 0; perspective: 900px; }
.fx-xl__env > span { position: absolute; display: block; }
.fx-xl__env-paper { inset: 0; border-radius: 10px; background: var(--xl-paper-img, none) center / 100% 100% no-repeat, linear-gradient(145deg, color-mix(in srgb, var(--xl-paper) 70%, #fff) 0%, var(--xl-paper) 32%, color-mix(in srgb, var(--xl-paper2) 80%, var(--xl-paper)) 60%, var(--xl-paper2) 100%); box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.4), inset 0 -3px 12px rgba(120, 70, 55, 0.22); }
.fx-xl__env-tex { inset: 0; border-radius: 10px; opacity: 0.8; pointer-events: none; background: radial-gradient(130% 80% at 50% -12%, rgba(255, 255, 255, 0.22), transparent 58%), repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px), repeating-linear-gradient(25deg, rgba(120, 70, 55, 0.05) 0 1px, transparent 1px 4px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.fx-xl__env.has-paper .fx-xl__env-tex { opacity: 0.35; }
.fx-xl__env-fold { inset: 0; border-radius: 10px; background: linear-gradient(to top right, transparent calc(50% - 0.8px), rgba(120, 70, 55, 0.14) 50%, transparent calc(50% + 0.8px)) left bottom / 50% 62% no-repeat, linear-gradient(to top left, transparent calc(50% - 0.8px), rgba(120, 70, 55, 0.14) 50%, transparent calc(50% + 0.8px)) right bottom / 50% 62% no-repeat; }
.fx-xl__env-to { left: 0; right: 0; top: 70%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 14%; font: 18px/1.5 var(--xl-hand); color: rgba(120, 62, 55, 0.62); }
.fx-xl__env-to b { font-weight: 700; font-size: 22px; color: rgba(78, 34, 30, 0.92); }
.fx-xl__env.is-dark .fx-xl__env-to { color: rgba(246, 231, 200, 0.7); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.fx-xl__env.is-dark .fx-xl__env-to b { color: #f6e7c8; }
.fx-xl__env.is-dark .fx-xl__env-fold { filter: invert(1) opacity(0.5); }
.fx-xl__env-flap { left: 0; top: 0; width: 100%; height: 56%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; filter: drop-shadow(0 6px 5px rgba(120, 70, 55, 0.3)); transition: transform 0.9s cubic-bezier(0.4, 0.1, 0.3, 1) 0.35s, z-index 0s linear 0.8s; }
.fx-xl__env-flap > i { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 88%); }
.fx-xl__flap-out { border-radius: 10px 10px 0 0; background: linear-gradient(rgba(255, 255, 255, 0.28), transparent 32%), var(--xl-paper-img, none) center top / 100% 178.6% no-repeat, linear-gradient(170deg, color-mix(in srgb, var(--xl-paper) 75%, #fff), color-mix(in srgb, var(--xl-paper2) 70%, var(--xl-paper))); box-shadow: inset 0 -2px 10px rgba(120, 70, 55, 0.16); }
.fx-xl__flap-in { opacity: 0; transform: rotateX(180deg); background: linear-gradient(color-mix(in srgb, var(--xl-liner) 85%, #000), var(--xl-liner)); }
.fx-xl__seal { left: 50%; top: 50%; z-index: 5; width: 15.6%; aspect-ratio: 1; transform: translate(-50%, -50%); transition: transform 0.5s ease, opacity 0.4s ease; }
.fx-xl__seal:not(.has-img) { border-radius: 50%; background: radial-gradient(circle at 38% 33%, color-mix(in srgb, var(--xl-seal) 80%, #fff), var(--xl-seal) 58%, color-mix(in srgb, var(--xl-seal) 55%, #000) 92%); box-shadow: 0 4px 16px rgba(80, 0, 0, 0.55), inset 0 1px 4px rgba(255, 140, 140, 0.22), inset 0 -3px 6px rgba(0, 0, 0, 0.4); }
.fx-xl__seal i, .fx-xl__seal b { position: absolute; border-radius: 50%; }
.fx-xl__seal i { inset: 10%; border: 1.5px solid rgba(255, 180, 180, 0.22); }
.fx-xl__seal b { inset: 22%; border: 1px solid rgba(255, 180, 180, 0.14); }
.fx-xl__seal img { width: 140%; height: 140%; margin: -20%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(60, 10, 10, 0.4)); }
.fx-xl__env-flower { left: 75.4%; top: -13%; z-index: 6; width: 30.6%; aspect-ratio: 1; }
.fx-xl__env-sprig { position: absolute; left: -26%; top: 18%; width: 78%; height: 78%; object-fit: contain; transform: rotate(21deg); filter: drop-shadow(0 6px 10px rgba(40, 60, 40, 0.35)); }
.fx-xl__env-bloom { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(80, 30, 60, 0.5)); animation: fx-xl-sway 5s ease-in-out infinite; }
.fx-xl__env-bloom.is-emoji { display: grid; place-items: center; font-size: clamp(54px, 18vw, 78px); }
@keyframes fx-xl-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-2px); } }
/* Thanh kéo */
.fx-xl__slider { --p: 0; position: relative; width: min(314px, 80vw); height: 76px; margin-top: 30px; border: 1.5px solid rgba(245, 196, 78, 0.45); border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 24px rgba(245, 196, 78, 0.12), inset 0 0 18px rgba(255, 255, 255, 0.04); overflow: hidden; transition: opacity 0.4s ease, transform 0.4s ease; }
.fx-xl__slider-fill { position: absolute; inset: 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, rgba(245, 196, 78, 0.05), rgba(245, 196, 78, 0.22)); }
.fx-xl__slider-text { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 64px; font: 600 20px var(--xl-hand); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: calc(1 - var(--p) * 1.4); animation: fx-xl-hint 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes fx-xl-hint { 0%, 100% { letter-spacing: 0; } 50% { letter-spacing: 0.02em; } }
.fx-xl__knob { position: absolute; left: 6px; top: 6px; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)); cursor: grab; touch-action: none; }
.fx-xl__knob:active { cursor: grabbing; }
.fx-xl__knob:focus-visible { outline: 2px solid #f5c44e; outline-offset: 2px; }
.fx-xl__knob-bloom { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(255, 150, 190, 0.45)); animation: fx-xl-nudge 2.4s ease-in-out infinite; }
.fx-xl__knob-bloom.is-emoji { display: grid; place-items: center; font-size: 40px; }
.fx-xl__slider.is-dragging .fx-xl__knob-bloom { animation: none; }
@keyframes fx-xl-nudge { 0%, 70%, 100% { transform: translateX(0) rotate(0); } 80% { transform: translateX(10px) rotate(14deg); } 90% { transform: translateX(0) rotate(0); } }
/* Mở phong bì */
.fx-xl__cover.is-opening .fx-xl__slider { opacity: 0; transform: translateY(14px); pointer-events: none; }
.fx-xl__cover.is-opening .fx-xl__headline { transition: opacity 0.5s ease; opacity: 0.35; }
.fx-xl__cover.is-opening .fx-xl__seal { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
.fx-xl__cover.is-opening .fx-xl__env-flap { transform: rotateX(180deg); z-index: 0; }
.fx-xl__cover.is-opening .fx-xl__flap-out { opacity: 0; transition: opacity 0s linear 0.72s; }
.fx-xl__cover.is-opening .fx-xl__flap-in { opacity: 1; transition: opacity 0s linear 0.72s; }
.fx-xl__cover.is-opening .fx-xl__env-wrap { animation: fx-xl-env-go 1.7s ease-in 0.2s forwards; }
@keyframes fx-xl-env-go { 0%, 60% { transform: none; opacity: 1; } 100% { transform: translateY(-12px) scale(1.08); opacity: 0; } }

/* --- Quả cầu --- */
.fx-xl__orbs { padding: 0; }
.fx-xl__orb-field { position: absolute; inset: 0; }
.fx-xl__orb { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0; border: 1px solid rgba(245, 196, 78, 0.5); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), rgba(40, 20, 60, 0.6) 60%, rgba(10, 5, 20, 0.85)); box-shadow: 0 0 18px rgba(245, 196, 78, 0.18), inset 0 0 12px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 0, 0, 0.45); cursor: pointer; animation: fx-xl-orb 5.2s ease-in-out infinite; transition: transform 0.3s ease, opacity 0.3s ease; }
.fx-xl__orb span { display: block; font-size: 26px; line-height: 1; }
.fx-xl__orb:hover { box-shadow: 0 0 26px rgba(245, 196, 78, 0.35), inset 0 0 12px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.45); }
.fx-xl__orb.is-popped { opacity: 0; transform: scale(1.6); pointer-events: none; animation: none; }
@keyframes fx-xl-orb { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.fx-xl__burst { position: absolute; z-index: 6; font-size: 26px; line-height: 1; translate: -50% -50%; animation: fx-xl-burst 2s cubic-bezier(0.15, 0.7, 0.3, 1) forwards; }
@keyframes fx-xl-burst { 0% { transform: translate(0, 0) scale(0.3) rotate(0); opacity: 1; } 55% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(var(--s)) rotate(var(--r)); opacity: 0; } }
.fx-xl__toast { position: absolute; left: 50%; top: 56px; z-index: 7; display: flex; align-items: center; gap: 14px; width: min(340px, calc(100% - 48px)); padding: 16px 20px; border: 1px solid rgba(245, 196, 78, 0.5); border-radius: 18px; background: rgba(20, 10, 32, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4); opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
.fx-xl__toast.is-in { animation: fx-xl-toast 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes fx-xl-toast { to { opacity: 1; transform: translate(-50%, 0); } }
.fx-xl__toast-emoji { flex: none; font-size: 28px; line-height: 1; }
.fx-xl__toast-text { margin: 0; font: italic 500 17px/1.4 var(--xl-serif); color: #f6efe4; }
.fx-xl__counter { position: absolute; left: 0; right: 0; bottom: max(70px, 9vh); margin: 0; text-align: center; font: 600 14px var(--sans); color: rgba(255, 255, 255, 0.55); }

/* --- Bó hoa --- */
.fx-xl__bq-scene { justify-content: center; gap: 0; }
.fx-xl__bouquet { position: relative; width: min(260px, 66vw, 36vh); aspect-ratio: 0.72; margin-bottom: 18px; }
.fx-xl__bq-head { position: absolute; aspect-ratio: 1; height: auto; object-fit: contain; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); filter: drop-shadow(0 6px 10px rgba(30, 10, 40, 0.45)); animation: fx-xl-bloom-in 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.fx-xl__bq-head.is-emoji { display: grid; place-items: center; font-size: clamp(30px, 10vw, 48px); }
@keyframes fx-xl-bloom-in { from { opacity: 0; transform: translate(-50%, -20%) rotate(var(--r, 0deg)) scale(0.4); } }
.fx-xl__bq-leaf { position: absolute; width: 42%; aspect-ratio: 1; object-fit: contain; transform: translate(-50%, 0) rotate(var(--r)); opacity: 0.95; filter: drop-shadow(0 6px 8px rgba(20, 40, 20, 0.4)); }
.fx-xl__bq-cone { position: absolute; left: 50%; top: 44%; z-index: 6; width: 54%; height: 56%; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 54% 100%, 46% 100%); background: linear-gradient(90deg, #c99d6c 0%, #e8c99d 28%, #f3dcb7 50%, #e2c093 72%, #b98a5a 100%); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.4)); }
.fx-xl__bq-cone i { position: absolute; inset: 0; background: repeating-linear-gradient(100deg, rgba(120, 80, 40, 0.08) 0 2px, transparent 2px 9px); }
.fx-xl__bq-cone b { position: absolute; left: 0; right: 0; top: 0; height: 14%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent); }
.fx-xl__bq-bow { position: absolute; left: 50%; top: 66%; z-index: 7; width: 34%; transform: translateX(-50%); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.fx-xl__bq-bow svg { display: block; width: 100%; height: auto; }
.fx-xl__sorry { max-width: min(440px, 100%); text-wrap: balance; margin: 0 0 22px; text-align: center; white-space: pre-line; font: 600 clamp(20px, 5.6vw, 26px)/1.4 var(--xl-hand); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(245, 196, 78, 0.3)); }
.fx-xl__please { padding: 11px 40px; border: 0; border-radius: 999px; background: var(--gold); color: #5a3a05; font: 700 22px/33px var(--xl-hand); box-shadow: 0 8px 26px rgba(224, 165, 46, 0.5); cursor: pointer; animation: fx-xl-glow 2.6s ease-in-out infinite; }
.fx-xl__please:hover { transform: translateY(-2px); }
@keyframes fx-xl-glow { 0%, 100% { box-shadow: 0 8px 26px rgba(224, 165, 46, 0.45); } 50% { box-shadow: 0 8px 34px rgba(245, 196, 78, 0.75); } }

/* --- Lá thư cuối --- */
.fx-xl__finale { overflow-y: auto; justify-content: safe center; }
.fx-xl__card { position: relative; width: min(360px, 100%); padding: 34px 26px 30px; border: 1px solid rgba(245, 196, 78, 0.45); border-radius: 22px; background: linear-gradient(160deg, rgba(48, 26, 70, 0.86), rgba(20, 10, 34, 0.9)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06); text-align: center; animation: fx-xl-card 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@media (min-width: 768px) { .fx-xl__card { width: min(460px, 100%); padding: 40px 38px 34px; } }
@keyframes fx-xl-card { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.fx-xl__corner { position: absolute; font-size: 15px; line-height: 1; opacity: 0.75; }
.fx-xl__corner--tl { left: 14px; top: 14px; }
.fx-xl__corner--tr { right: 14px; top: 14px; }
.fx-xl__corner--bl { left: 14px; bottom: 14px; }
.fx-xl__corner--br { right: 14px; bottom: 14px; }
.fx-xl__eyebrow { margin: 0; font: 600 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #e9c46a; }
.fx-xl__name { margin: 10px 0 14px; font: 700 clamp(34px, 10vw, 46px)/1.1 var(--xl-serif); overflow-wrap: anywhere; }
.fx-xl__name span { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-xl__name i { font-style: normal; font-size: 0.7em; vertical-align: 0.1em; }
.fx-xl__letter { margin: 0; white-space: pre-wrap; font: italic 500 18px/1.65 var(--xl-serif); color: #f3ecf8; }
.fx-xl__letter.is-ph { color: rgba(243, 236, 248, 0.55); }
.fx-xl__flourish { margin: 16px 0 0; font: 15px var(--sans); color: #d9b25a; letter-spacing: 0.2em; }
.fx-xl__sign { margin: 8px 0 0; font: 600 24px var(--xl-hand); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Hoa bay & mưa emoji */
.fx-xl__float { position: absolute; bottom: -60px; font-size: 22px; line-height: 1; opacity: 0; animation: fx-xl-float 9s linear forwards; }
.fx-xl__float.is-img { width: 34px; height: 34px; object-fit: contain; }
@keyframes fx-xl-float { 0% { transform: translate(0, 0) rotate(0) scale(var(--s)); opacity: 0; } 12% { opacity: 0.85; } 85% { opacity: 0.85; } 100% { transform: translate(var(--x), -110vh) rotate(var(--r)) scale(var(--s)); opacity: 0; } }
.fx-xl__rain { position: absolute; top: -40px; font-size: 22px; line-height: 1; animation: fx-xl-rain 7s linear forwards; }
@keyframes fx-xl-rain { 0% { transform: translate(0, 0) scale(var(--s)) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--x), 110vh) scale(var(--s)) rotate(240deg); opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .fx-xl *, .fx-xl *::before { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }

/* =========================================================================
   Tiệc sinh nhật (.fx-bd) – bánh kem SVG, các trang bất ngờ, thổi nến, lời chúc
   ========================================================================= */
.fx-bd {
	--pink: #d1264f; --ink: #3a2340; --muted: #645863;
	--bd-serif: "Playfair Display", Georgia, serif; --bd-hand: "Dancing Script", cursive; --bd-print: "Patrick Hand", "Segoe Print", cursive;
	background: radial-gradient(circle at 50% 28%, #fffafb 0%, #fdeef3 45%, #f9dce6 100%);
	color: var(--ink); font-family: var(--sans);
}
.fx-bd__atmos, .fx-bd__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx-bd__atmos { z-index: 0; }
.fx-bd__fx { z-index: 30; }
.fx-bd__atmos i { position: absolute; top: -20px; width: 7px; height: 11px; border-radius: 2px; opacity: 0.55; animation: fx-bd-fall 12s linear infinite; }
.fx-bd__atmos i.is-round { width: 8px; height: 8px; border-radius: 50%; }
@keyframes fx-bd-fall { from { transform: translate(0, -20px) rotate(0); } to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
.fx-bd__burst { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: fx-bd-burst 2s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
.fx-bd__burst.is-round { width: 9px; height: 9px; border-radius: 50%; }
@keyframes fx-bd-burst { 0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r)); opacity: 0; } }

/* Chữ chung */
.fx-bd__eyebrow { display: block; font: 700 10.5px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--pink); }
.fx-bd__h2 { margin: 4px 0 12px; font: 900 clamp(24px, 7vw, 32px)/1.15 var(--bd-serif); color: var(--ink); text-align: center; }
.fx-bd__hint { margin: 10px 0 0; text-align: center; font: 600 13.5px/1.4 var(--sans); color: var(--muted); }
.fx-bd__primary { display: inline-flex; align-items: center; gap: 8px; padding: 18px 30px; border: 0; border-radius: 999px; background: var(--pink); color: #fff; font: 700 17px/1.2 var(--sans); box-shadow: 0 12px 26px rgba(209, 38, 79, 0.32); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.fx-bd__primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(209, 38, 79, 0.38); }
.fx-bd__primary--sm { padding: 13px 24px; font-size: 15px; }
.fx-bd__ghost { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1.5px solid rgba(209, 38, 79, 0.3); border-radius: 999px; background: #fff; color: var(--pink); font: 700 14px var(--sans); cursor: pointer; }
.fx-bd__chip { padding: 7px 14px; border: 1px solid rgba(58, 35, 64, 0.12); border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: var(--ink); font: 600 12.5px var(--sans); cursor: pointer; }
.fx-bd__chip:disabled { opacity: 0.4; cursor: default; }
.fx-bd__row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0 10px; }

/* Bánh kem */
.fx-bd__cake { position: relative; width: 100%; }
.fx-bd__cake-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 22px rgba(120, 50, 90, 0.18)); }
.fx-bd__flame { transform-box: fill-box; transform-origin: 50% 90%; animation: fx-bd-flicker 0.22s ease-in-out infinite alternate; transition: opacity 0.35s ease, transform 0.35s ease; }
.fx-bd__candle:nth-child(odd) .fx-bd__flame { animation-duration: 0.27s; }
@keyframes fx-bd-flicker { from { transform: scale(1, 1) rotate(-2deg); } to { transform: scale(0.92, 1.08) rotate(2deg); } }
.fx-bd__smoke { opacity: 0; stroke-dasharray: 60; stroke-dashoffset: 60; }
.fx-bd__candle.is-out .fx-bd__flame { opacity: 0; transform: scale(0.2); animation: none; }
.fx-bd__candle.is-out .fx-bd__smoke { animation: fx-bd-smoke 1.8s ease-out forwards; }
@keyframes fx-bd-smoke { 0% { opacity: 0.8; stroke-dashoffset: 60; transform: translateY(0); } 100% { opacity: 0; stroke-dashoffset: 0; transform: translateY(-14px); } }

/* Bìa */
.fx-bd__cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 64px 16px 84px; text-align: center; transition: opacity 0.7s ease, transform 0.7s ease; }
.fx-bd__cover.is-opening { opacity: 0; transform: scale(1.06); pointer-events: none; }
.fx-bd__cover-head { width: 100%; max-width: 420px; }
.fx-bd__badge { display: inline-block; padding: 6px 14px; border: 1px solid rgba(209, 38, 79, 0.22); border-radius: 999px; background: #fff; font: 700 10px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); box-shadow: 0 6px 14px rgba(209, 38, 79, 0.1); }
.fx-bd__h1 { margin: 14px 0 0; font: 900 clamp(30px, 8.6vw, 46px)/1.02 var(--bd-serif); color: var(--ink); }
.fx-bd__adj { margin: 2px 0 6px; font: 600 clamp(22px, 6.4vw, 30px)/1.3 var(--bd-hand); color: var(--ink); }
.fx-bd__adj-slot { display: inline-block; position: relative; isolation: isolate; padding: 0 6px; }
.fx-bd__adj-slot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 45%; border-radius: 4px; background: linear-gradient(97deg, rgba(255, 226, 122, 0) 1%, rgba(255, 226, 122, 0.85) 5%, rgba(255, 214, 102, 0.8) 95%, rgba(255, 226, 122, 0) 99%); z-index: -1; }
.fx-bd__adj-word { display: inline-block; color: var(--pink); font-weight: 700; transition: transform 0.26s ease, opacity 0.26s ease; }
.fx-bd__adj-word.is-out { transform: translateY(-8px) rotateX(70deg); opacity: 0; }
.fx-bd__thrown { margin: 0 auto; max-width: 320px; font: 15.5px/1.5 var(--sans); color: var(--muted); }
.fx-bd__cover-cake { flex: 1; display: grid; place-items: center; width: min(300px, 76vw, 40vh); min-height: 0; animation: fx-bd-bob 4.5s ease-in-out infinite; }
@keyframes fx-bd-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.fx-bd__cover-foot { padding-bottom: 6px; }

/* Trang */
.fx-bd__reader { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity 0.6s ease; }
.fx-bd__reader.is-in { opacity: 1; }
.fx-bd__reader.is-instant { transition: none; }
.fx-bd__page { position: absolute; inset: 0; overflow-y: auto; opacity: 0; transform: translateX(40px); pointer-events: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.fx-bd__page.is-before { transform: translateX(-40px); }
.fx-bd__page.is-active { opacity: 1; transform: none; pointer-events: auto; }
.fx-bd__pg { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 70px 18px 104px; text-align: center; }
/* Nền đổi theo trang (giống bản tiệc sinh nhật mẫu) */
.fx-bd__tint { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 50% 30%, #fff7f9, #fbe6ee 70%); transition: background 0.6s ease; }
.fx-bd__reader[data-bg="thu"] .fx-bd__tint { background: linear-gradient(180deg, #f7dfe7 0%, #fbeef2 55%, #f5dde5 100%); }
.fx-bd__reader[data-bg="quy"] .fx-bd__tint { background: radial-gradient(120% 70% at 20% 10%, #eadff7 0%, rgba(234, 223, 247, 0) 60%), linear-gradient(180deg, #efe6f6 0%, #f8eef3 60%, #f6e7ee 100%); }
.fx-bd__reader[data-bg="chuyen"] .fx-bd__tint { background: radial-gradient(90% 60% at 0% 0%, #dcefe6 0%, rgba(220, 239, 230, 0) 70%), radial-gradient(90% 60% at 100% 100%, #f3dfee 0%, rgba(243, 223, 238, 0) 70%), linear-gradient(180deg, #f6f0e8, #fbeee6); }
.fx-bd__page { z-index: 1; }

/* Thanh điều hướng */
.fx-bd__nav { position: absolute; left: 13px; right: 13px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 10; display: flex; align-items: center; gap: 8px; max-width: 520px; height: 62px; margin: 0 auto; padding: 0 3px; border: 4px solid #fffdf9; border-radius: 50px; background: rgba(255, 253, 249, 0.93); box-shadow: 0 8px 28px rgba(57, 35, 60, 0.145); box-sizing: content-box; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fx-bd__nav-prev, .fx-bd__nav-next { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.fx-bd__nav-prev { background: #f3f0f2; color: #3a2340; box-shadow: 0 5px 12px rgba(57, 35, 60, 0.04); }
.fx-bd__nav-next { background: #d1264f; color: #fff; box-shadow: 0 8px 18px rgba(209, 38, 79, 0.32); }
.fx-bd__nav-prev:disabled { opacity: 0.45; cursor: default; }
.fx-bd__nav-prev svg, .fx-bd__nav-next svg { width: 20px; height: 20px; }
.fx-bd__nav-mid { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 4px; }
.fx-bd__nav-mid strong { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 15px/18px var(--sans); color: #382b26; }
.fx-bd__nav-count { flex: none; min-width: 36px; text-align: right; font: 700 15px var(--sans); color: #382b26; }
.fx-bd__dots { display: flex; align-items: center; }
.fx-bd__dots button { display: grid; place-items: center; width: 14px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }
.fx-bd__dots button i { display: block; width: 7px; height: 7px; border: 1.5px solid #cdb7c1; border-radius: 5px; box-sizing: border-box; transition: 0.25s; }
.fx-bd__dots button.is-seen i { border-color: #e4a3b6; background: #e4a3b6; }
.fx-bd__dots button.is-current { width: 26px; }
.fx-bd__dots button.is-current i { width: 20px; border: 0; background: #d1264f; }

/* Nút tròn + viên thuốc dùng chung */
.fx-bd__round { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e6d9d7; border-radius: 30px; background: #fffdf9; color: #3a2340; box-shadow: 0 5px 12px rgba(57, 35, 60, 0.04); cursor: pointer; transition: transform 0.18s, background 0.18s; }
.fx-bd__round:hover { transform: translateY(-1px); }
.fx-bd__round:disabled { opacity: 0.4; cursor: default; transform: none; }
.fx-bd__round svg { width: 18px; height: 18px; transition: transform 0.3s; }
.fx-bd__pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid #e6d9d7; border-radius: 999px; background: #fffdf9; color: #3a2340; font: 700 14px var(--sans); cursor: pointer; }
.fx-bd__pill svg { width: 16px; height: 16px; }
.fx-bd__pill--red { border-color: #d1264f; background: #d1264f; color: #fff; box-shadow: 0 8px 18px rgba(209, 38, 79, 0.28); }
.fx-bd__kicker { margin: 0; font: 700 11px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #704352; }
.fx-bd__kicker--red { font-size: 12px; color: #d1264f; }
.fx-bd__heading { text-align: center; }
.fx-bd__heading .fx-bd__h2 { margin: 2px 0 12px; font-size: 28px; }

/* Lá thư: tấm thư ló khỏi phong bì, kéo lên để đọc */
.fx-bd__pg--thu { padding: 0; }
.fx-bd__lt-scene { position: absolute; inset: 0; max-width: 520px; margin: 0 auto; overflow: hidden; clip-path: inset(0 0 88px 0); }
.fx-bd__lt-head > div { min-width: 0; text-align: left; }
.fx-bd__lt-back, .fx-bd__lt-flap, .fx-bd__lt-front { position: absolute; left: 12px; right: 12px; transition: transform 0.68s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.55s; }
.fx-bd__lt-back { bottom: 94px; height: 208px; z-index: 2; border-radius: 6px; background: linear-gradient(180deg, #d995ab, #e7afc0 45%, #dba0b3); box-shadow: inset 0 12px 20px rgba(120, 40, 70, 0.18); }
.fx-bd__lt-flap { bottom: 302px; height: 116px; z-index: 2; clip-path: polygon(0 100%, 50% 0, 100% 100%); background: linear-gradient(0deg, #e3a9bb, #f0c4d2); }
.fx-bd__lt-paper { position: absolute; left: 0; right: 0; bottom: 94px; z-index: 3; height: calc(100% - 94px); display: flex; flex-direction: column; border-radius: 28px 28px 0 0; background: #fffdf7; box-shadow: 0 -9px 32px rgba(53, 36, 59, 0.25); transform-origin: 50% 0; transform: translateY(calc(100% - 416px)) scale(0.8626); transition: transform 0.68s cubic-bezier(0.2, 0.75, 0.2, 1), border-radius 0.68s; touch-action: none; cursor: grab; }
.fx-bd__lt-grab { position: absolute; left: 50%; top: 8px; width: 34px; height: 4px; margin-left: -17px; border-radius: 3px; background: #d9ccd2; }
.fx-bd__lt-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid transparent; transition: border-color 0.4s; }
.fx-bd__lt-title { margin: 2px 0 0; font: 900 23.6px/1.2 var(--bd-serif); letter-spacing: -0.02em; color: #3a2340; }
.fx-bd__lt-btns { display: flex; gap: 7px; flex: none; }
.fx-bd__lt-scroll { flex: 1; min-height: 0; overflow: hidden; padding: 18px 22px 40px; text-align: left; }
.fx-bd__lt-dear { margin: 0 0 10px; font: 26px/1.2 var(--bd-print); color: #d1264f; }
.fx-bd__lt-body { white-space: pre-wrap; font: 16.5px/1.72 var(--sans); color: #3a2340; }
.fx-bd__lt-body.is-ph { color: #a597a3; }
.fx-bd__lt-closing { margin: 18px 0 0; font: italic 500 16px var(--sans); color: #6a5568; }
.fx-bd__lt-from { margin: 4px 0 0; text-align: right; font: 28px var(--bd-print); color: #d1264f; }
.fx-bd__lt-front { bottom: 94px; height: 208px; z-index: 6; padding: 0; border: 0; background: none; cursor: pointer; }
.fx-bd__lt-face { position: absolute; left: 0; right: 0; bottom: -6px; height: calc(100% + 6px); border-radius: 0 0 10px 10px; clip-path: polygon(0 0, 50% 44%, 100% 0, 100% 100%, 0 100%); background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(150, 60, 95, 0.16) 50%, transparent calc(50% + 1px)) left bottom / 50% 58% no-repeat, linear-gradient(to top left, transparent calc(50% - 1px), rgba(150, 60, 95, 0.16) 50%, transparent calc(50% + 1px)) right bottom / 50% 58% no-repeat, radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.28), transparent 60%), linear-gradient(90deg, #e3afbe, #eab9c7 30%, #dca5b6 50%, #e6b2c1 70%, #c995a8); box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.3) inset; }
.fx-bd__lt-wax { position: absolute; left: 50%; top: 43%; z-index: 2; width: 52px; height: 52px; margin: -26px 0 0 -26px; transform: rotate(-12deg); filter: drop-shadow(0 4px 6px rgba(90, 10, 30, 0.4)); }
.fx-bd__lt-wax svg { display: block; width: 100%; height: 100%; }
.fx-bd__lt-pull { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; font: 600 10px/14px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #8a4566; animation: fx-bd-pull 2.2s ease-in-out infinite; }
@keyframes fx-bd-pull { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.fx-bd__lt-scene.is-open .fx-bd__lt-paper { transform: none; border-radius: 0; cursor: auto; }
.fx-bd__lt-scene.is-open .fx-bd__lt-head { border-bottom-color: #efe4e1; }
.fx-bd__lt-scene.is-open .fx-bd__lt-grab { opacity: 0; }
.fx-bd__lt-scene.is-open .fx-bd__lt-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.fx-bd__lt-scene.is-open .fx-bd__lt-up svg { transform: rotate(180deg); }
.fx-bd__lt-scene.is-open .fx-bd__lt-back, .fx-bd__lt-scene.is-open .fx-bd__lt-flap, .fx-bd__lt-scene.is-open .fx-bd__lt-front { transform: translateY(240px); opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .fx-bd__lt-scene { top: 64px; } }

/* Máy gắp */
.fx-bd__pg--quy { padding: 64px 12px 100px; }
.fx-bd__cm-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 440px; padding: 11px 11px 11px 19px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 250, 244, 0.78)); box-shadow: 0 10px 30px rgba(90, 60, 120, 0.1); box-sizing: border-box; }
.fx-bd__cm-title { margin: 0; text-align: left; font: 900 clamp(17px, 5vw, 20.5px)/1.15 var(--bd-serif); color: #3a2340; }
.fx-bd__cm-views { display: flex; flex: none; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px rgba(58, 35, 64, 0.06); }
.fx-bd__vbtn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: none; color: #3a2340; cursor: pointer; }
.fx-bd__vbtn svg { width: 20px; height: 20px; }
.fx-bd__vbtn.is-on { background: #d1264f; color: #fff; box-shadow: 0 6px 14px rgba(209, 38, 79, 0.3); }
.fx-bd__cm-game { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 440px; flex: 1; }
.fx-bd__cm-view { position: relative; display: grid; place-items: center; width: 100%; flex: 1; min-height: 360px; padding: 8px 0; }
.fx-bd__cm-min { position: absolute; right: 0; top: 10px; z-index: 5; background: rgba(255, 255, 255, 0.82); }
.fx-bd__cm-machine { position: relative; width: 262px; height: 372px; filter: drop-shadow(0 22px 26px rgba(80, 50, 110, 0.22)); }
.fx-bd__cm-top { position: absolute; left: 6px; right: 6px; top: 0; height: 92px; border-radius: 130px 130px 16px 16px / 86px 86px 16px 16px; background: linear-gradient(180deg, #b49af0, #9b7bdc); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.28), inset 0 -6px 12px rgba(80, 40, 140, 0.25); }
.fx-bd__cm-bulb { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd75e 60%); box-shadow: 0 0 8px rgba(255, 215, 94, 0.95); animation: fx-bd-bulb 1.2s steps(1) infinite; }
@keyframes fx-bd-bulb { 50% { opacity: 0.45; box-shadow: none; } }
.fx-bd__cm-sign { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); padding: 5px 16px; border: 2px solid #f5c6d6; border-radius: 999px; background: #fff6f0; white-space: nowrap; font: 900 15px var(--bd-serif); color: #d1264f; box-shadow: 0 3px 8px rgba(120, 60, 140, 0.18); }
.fx-bd__cm-bar { position: absolute; left: 0; right: 0; top: 86px; z-index: 2; height: 18px; border-radius: 10px; background: linear-gradient(180deg, #b597ec, #9474d6); box-shadow: 0 4px 8px rgba(80, 40, 140, 0.25); }
.fx-bd__cm-pillar { position: absolute; top: 100px; z-index: 2; width: 18px; height: 196px; background: linear-gradient(90deg, #8f6fd2, #b79bea 45%, #8a69cc); }
.fx-bd__cm-pillar.is-l { left: 8px; border-radius: 4px 0 0 4px; }
.fx-bd__cm-pillar.is-r { right: 8px; border-radius: 0 4px 4px 0; }
.fx-bd__cm-glass { position: absolute; left: 26px; right: 26px; top: 104px; height: 190px; overflow: hidden; background: radial-gradient(circle, rgba(209, 170, 220, 0.28) 1px, transparent 1.4px) 0 0 / 12px 12px, linear-gradient(170deg, rgba(255, 255, 255, 0.72), rgba(246, 230, 246, 0.6) 55%, rgba(236, 222, 248, 0.7)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75); }
.fx-bd__cm-glass::after { content: ""; position: absolute; left: 14%; top: -10%; z-index: 9; width: 16%; height: 120%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-12deg); pointer-events: none; }
.fx-bd__cm-rail { position: absolute; left: 6%; right: 6%; top: 6px; height: 5px; border-radius: 3px; background: #cdc4d6; }
.fx-bd__cm-claw { position: absolute; top: 9px; z-index: 8; display: flex; flex-direction: column; align-items: center; width: 50px; transform: translateX(-50%); transition: left 0.55s ease; }
.fx-bd__cm-cable { display: block; width: 2px; height: 14px; background: #8f8899; transition: height 0.75s ease; }
.fx-bd__cm-head { position: relative; display: block; width: 34px; height: 18px; }
.fx-bd__cm-head b { position: absolute; left: 0; right: 0; top: 0; height: 16px; border-radius: 17px 17px 6px 6px; background: linear-gradient(180deg, #fdf4f7, #d9cbd3); box-shadow: inset 0 -3px 0 #e36a8f, 0 2px 4px rgba(0, 0, 0, 0.2); }
.fx-bd__cm-head i { position: absolute; top: 12px; width: 4px; height: 24px; border-radius: 2px; background: linear-gradient(90deg, #a7a0ad, #cfc8d4); transform-origin: 50% 0; transition: transform 0.3s ease; }
.fx-bd__cm-head i::after { content: ""; position: absolute; left: -2px; bottom: -3px; width: 8px; height: 8px; border-radius: 50%; background: #d1264f; }
.fx-bd__cm-head i.is-l { left: 2px; transform: rotate(28deg); }
.fx-bd__cm-head i.is-m { left: 15px; height: 20px; }
.fx-bd__cm-head i.is-r { right: 2px; transform: rotate(-28deg); }
.fx-bd__cm-claw.is-closed .fx-bd__cm-head i.is-l { transform: rotate(8deg); }
.fx-bd__cm-claw.is-closed .fx-bd__cm-head i.is-r { transform: rotate(-8deg); }
.fx-bd__cm-aim { position: absolute; z-index: 3; width: 40px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(209, 38, 79, 0.35), transparent); transition: left 0.55s ease, bottom 0.3s, transform 0.3s; pointer-events: none; }
.fx-bd__cm-ball { position: absolute; z-index: 2; border-radius: 50%; margin-left: -7px; box-shadow: inset -2px -3px 4px rgba(0, 0, 0, 0.08); }
.fx-bd__cm-box { position: absolute; right: 8%; bottom: 20px; z-index: 3; width: 34px; height: 26px; border-radius: 3px; background: repeating-linear-gradient(90deg, #f7b6cb 0 6px, #fff2f6 6px 12px); box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); }
.fx-bd__cm-box::before { content: ""; position: absolute; left: -3px; right: -3px; top: -6px; height: 8px; border-radius: 3px; background: #ef8fac; }
.fx-bd__cm-cap { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0 46%, var(--a) 54%); border: 2px solid var(--b); box-shadow: inset -3px -4px 5px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.15); transform: rotate(var(--r)); font-size: 11px; }
.fx-bd__cm-cap b { font-weight: 400; }
.fx-bd__cm-cap.is-held { left: 50% !important; bottom: auto !important; top: 26px; margin-left: -13px; transform: none; }
.fx-bd__cm-cap.is-drop { transition: transform 0.45s ease-in, opacity 0.45s ease-in; transform: translateY(170px); opacity: 0; }
.fx-bd__cm-deck { position: absolute; left: 2px; right: 2px; top: 288px; z-index: 3; height: 34px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #fbf1e6, #ead7c4); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), 0 4px 6px rgba(120, 80, 60, 0.15); }
.fx-bd__cm-joy { position: absolute; left: 34px; top: 8px; width: 34px; height: 12px; border-radius: 50%; background: #3e2a46; }
.fx-bd__cm-joy i { position: absolute; left: 15px; bottom: 6px; width: 4px; height: 18px; background: #5b4466; }
.fx-bd__cm-joy i::after { content: ""; position: absolute; left: -6px; top: -10px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8fa8, #d1264f 60%); }
.fx-bd__cm-redbtn { position: absolute; right: 36px; top: 8px; width: 40px; height: 16px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #ff6f8a, #c8102e 70%); box-shadow: 0 4px 0 #8d0e26; }
.fx-bd__cm-base { position: absolute; left: 12px; right: 12px; top: 320px; height: 52px; border-radius: 0 0 12px 12px; background: repeating-linear-gradient(90deg, #f6bdd0 0 16px, #f1adc3 16px 32px); box-shadow: inset 0 -6px 10px rgba(160, 60, 100, 0.18); }
.fx-bd__cm-coin { position: absolute; left: 28px; top: 12px; width: 18px; height: 26px; border-radius: 4px; background: #fff3ea; box-shadow: inset 0 0 0 2px #e9c9b7; }
.fx-bd__cm-coin::after { content: ""; position: absolute; left: 7px; top: 6px; width: 4px; height: 14px; border-radius: 2px; background: #3e2a46; }
.fx-bd__cm-door { position: absolute; right: 44px; top: 10px; width: 86px; height: 32px; border-radius: 7px; background: #3e2a46; box-shadow: inset 0 0 0 3px #5b4466; }
.fx-bd__cm-door::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 12px; border-radius: 3px; background: #f3c3d2; }
/* Thẻ quà vừa gắp được */
.fx-bd__cm-prize { position: absolute; left: 50%; top: 48%; z-index: 8; display: grid; justify-items: center; gap: 6px; width: min(300px, 92%); padding: 22px 20px 18px; border-radius: 24px; background: #fffdf9; box-shadow: 0 24px 50px rgba(80, 40, 100, 0.28); text-align: center; opacity: 0; transform: translate(-50%, -42%) scale(0.85); pointer-events: none; transition: 0.38s cubic-bezier(0.2, 1.4, 0.4, 1); }
.fx-bd__cm-prize.is-in { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.fx-bd__cm-prize-cap { position: relative; display: grid; place-items: center; width: 54px; height: 54px; }
.fx-bd__cm-prize-cap i { position: absolute; left: 0; width: 54px; height: 27px; border: 2px solid var(--b); box-sizing: border-box; transition: transform 0.5s 0.2s cubic-bezier(0.3, 1.4, 0.5, 1); }
.fx-bd__cm-prize-cap i:first-child { top: 0; border-radius: 27px 27px 0 0; border-bottom: 0; background: rgba(255, 255, 255, 0.95); }
.fx-bd__cm-prize-cap i:nth-child(2) { bottom: 0; border-radius: 0 0 27px 27px; border-top: 0; background: var(--a); }
.fx-bd__cm-prize.is-in .fx-bd__cm-prize-cap i:first-child { transform: translateY(-12px) rotate(-18deg); }
.fx-bd__cm-prize.is-in .fx-bd__cm-prize-cap i:nth-child(2) { transform: translateY(8px); }
.fx-bd__cm-prize-cap b { position: relative; font-size: 22px; font-weight: 400; }
.fx-bd__cm-prize small { font: 700 11px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #d1264f; }
.fx-bd__cm-prize p { margin: 0 0 8px; font: 23px/1.3 var(--bd-print); color: #3a2340; }
/* Bảng điều khiển */
.fx-bd__cm-pad { display: flex; align-items: center; gap: 10px; width: 100%; height: 122px; margin-top: 8px; padding: 0 11px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 250, 244, 0.78)); box-shadow: 0 12px 30px rgba(90, 60, 120, 0.12); box-sizing: border-box; }
.fx-bd__cm-stick { position: relative; flex: none; width: 104px; height: 104px; touch-action: none; }
.fx-bd__cm-stick-base { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff, #f6eef9 62%, #e6d9ef); box-shadow: inset 0 -3px 8px rgba(120, 90, 150, 0.18), 0 4px 10px rgba(90, 60, 120, 0.12); }
.fx-bd__cm-arrow { position: absolute; z-index: 1; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: #a89bb4; font-size: 9px; line-height: 22px; cursor: pointer; }
.fx-bd__cm-arrow.is-up { left: 41px; top: 2px; }
.fx-bd__cm-arrow.is-down { left: 41px; bottom: 2px; }
.fx-bd__cm-arrow.is-left { left: 2px; top: 41px; }
.fx-bd__cm-arrow.is-right { right: 2px; top: 41px; }
.fx-bd__cm-knob { position: absolute; left: 28px; top: 28px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #ff9db6, #d1264f 55%, #a3123a); box-shadow: 0 6px 12px rgba(160, 20, 60, 0.35), inset 0 -3px 5px rgba(0, 0, 0, 0.2); cursor: grab; pointer-events: none; }
.fx-bd__cm-strip { flex: 1; min-width: 0; margin: 0; text-align: center; font: 17px/1.15 var(--bd-print); color: #3a2340; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-bd__cm-grab { position: relative; flex: none; display: grid; place-items: center; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #e88aa0, #d1264f 55%, #a3123a); box-shadow: 0 0 0 5px rgba(209, 38, 79, 0.16), 0 8px 0 #8d0e2b, 0 14px 20px rgba(160, 20, 60, 0.3); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.fx-bd__cm-grab span { font: 800 13px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.fx-bd__cm-grab:active, .fx-bd__cm-grab.is-down { transform: translateY(6px); box-shadow: 0 0 0 5px rgba(209, 38, 79, 0.16), 0 2px 0 #8d0e2b, 0 6px 10px rgba(160, 20, 60, 0.3); }
/* Chế độ danh sách */
.fx-bd__cm-list { display: none; width: 100%; max-width: 440px; flex: 1; margin-top: -24px; padding: 34px 12px 16px; border-radius: 0 0 24px 24px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 250, 244, 0.78)); box-sizing: border-box; }
.fx-bd__pg--quy.is-list .fx-bd__cm-game { display: none; }
.fx-bd__pg--quy.is-list .fx-bd__cm-list { display: block; }
.fx-bd__pg--quy.is-list .fx-bd__cm-card { position: relative; z-index: 1; box-shadow: none; }
.fx-bd__cm-sum { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border: 1px solid rgba(180, 150, 210, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.7); }
.fx-bd__cm-sum-cap { flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, #fff 0 46%, #ff8fb1 54%); border: 2px solid #ffd6e2; }
.fx-bd__cm-sum b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 700 14px var(--sans); color: #3a2340; }
.fx-bd__cm-sum .fx-bd__pill { padding: 11px 16px; font-size: 14px; }
.fx-bd__cm-items { display: grid; gap: 10px; margin-top: 14px; }
.fx-bd__cm-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(90, 60, 120, 0.08); text-align: left; }
.fx-bd__cm-item-cap { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff0f5; font-size: 16px; }
.fx-bd__cm-item small { display: block; font: 700 10.5px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #d1264f; }
.fx-bd__cm-item p { margin: 2px 0 0; font: 19px/1.3 var(--bd-print); color: #3a2340; }
.fx-bd__cm-item.is-locked { border: 1.5px dashed #d6c5ea; background: rgba(246, 240, 252, 0.6); box-shadow: none; }
.fx-bd__cm-item.is-locked p { font: 500 14px var(--sans); color: #8d7aa6; }
.fx-bd__cm-lock { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #efe6fa; color: #9a85b8; }
.fx-bd__cm-lock svg { width: 15px; height: 15px; }

/* Cuốn truyện – bìa sổ mở ra, lật trang 3D */
.fx-bd__pg--chuyen { padding: 66px 16px 100px; }
.fx-bd__sb { position: relative; width: 100%; max-width: 440px; perspective: 1700px; }
.fx-bd__sb-page { position: relative; min-height: 360px; padding: 15px 22px 46px 33px; overflow: hidden; border-radius: 5px 16px 16px 5px; background: radial-gradient(circle, rgba(198, 146, 171, 0.22) 0.8px, transparent 1.1px) 0 0 / 14px 14px, linear-gradient(90deg, #f7e4e8, #fffaf3 26px); background-color: #fffaf3; box-shadow: 3px 4px 0 #f2e8dd, 6px 8px 0 #e5d7c6, 0 18px 34px rgba(81, 56, 68, 0.16); text-align: left; }
.fx-bd__sb-page::before { content: ""; position: absolute; left: 18px; top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(#e892b0 0 5px, transparent 5px 10px); }
.fx-bd__sb-head { display: flex; align-items: flex-start; min-height: 46px; padding-right: 56px; }
.fx-bd__sb-chapter { font: 21px/1.3 var(--bd-print); color: #d1264f; text-decoration: underline wavy rgba(209, 38, 79, 0.55); text-decoration-thickness: 1.2px; text-underline-offset: 5px; }
.fx-bd__sb-sticker { position: absolute; right: 8px; top: -14px; z-index: 1; width: 62px; height: 62px; transform: rotate(9deg); filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 5px 6px rgba(80, 40, 60, 0.2)); pointer-events: none; }
.fx-bd__sb-sticker svg, .fx-bd__sb-art svg { display: block; width: 100%; height: 100%; }
.fx-bd__sb-copy { white-space: pre-wrap; font: 14.5px/1.58 var(--sans); color: #3a2340; }
.fx-bd__sb-copy.has-cap::first-letter { float: left; margin: 2px 8px 0 0; font: 900 44px/0.85 var(--bd-serif); color: #d1264f; }
.fx-bd__sb-end { display: block; margin-top: 14px; text-align: right; font: 20px/1.3 var(--bd-print); color: #d1264f; }
.fx-bd__sb-end b { font-weight: 400; color: #b51b46; }
.fx-bd__sb-num { position: absolute; right: 22px; bottom: 15px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #f6dce5; font: 500 18px/1 var(--bd-print); color: #8a4a68; }
.fx-bd__sb-cast { position: absolute; inset: 0; z-index: 3; border-radius: 5px 16px 16px 5px; background: linear-gradient(90deg, rgba(58, 35, 64, 0.1), rgba(58, 35, 64, 0) 12%); pointer-events: none; }
.fx-bd__sb-ribbon { position: absolute; right: -9px; top: 22px; z-index: 2; width: 22px; height: 15px; background: linear-gradient(#d94a70, #a3274c); clip-path: polygon(0 0, 100% 0, 75% 50%, 100% 100%, 0 100%); transform-origin: 0 50%; transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
.fx-bd__sb-corner { position: absolute; right: 0; bottom: 0; z-index: 2; width: 26px; height: 26px; border-radius: 0 0 16px 0; background: linear-gradient(315deg, transparent 50%, #f1e1d2 50%, #fbf2e8 72%); box-shadow: -2px -2px 4px rgba(81, 56, 68, 0.08); transition: opacity 0.3s; pointer-events: none; }
.fx-bd__sb.is-last-page .fx-bd__sb-corner { opacity: 0; }
/* Trang lật: mặt trước là trang cũ, mặt sau là lưng giấy – đổi mặt bằng opacity ở giữa vòng quay */
.fx-bd__sb-leaf, .fx-bd__sb-cover { position: absolute; inset: 0; z-index: 4; transform-origin: 0 50%; transform-style: preserve-3d; pointer-events: none; }
.fx-bd__sb-leaf { visibility: hidden; }
.fx-bd__sb-face { position: absolute; inset: 0; overflow: hidden; border-radius: 5px 16px 16px 5px; }
.fx-bd__sb-face.fx-bd__sb-page { min-height: 0; box-shadow: 0 10px 24px rgba(81, 56, 68, 0.14); }
.fx-bd__sb-leaf .is-back { opacity: 0; transform: rotateY(180deg); border-radius: 16px 5px 5px 16px; background: radial-gradient(circle, rgba(198, 146, 171, 0.2) 0.8px, transparent 1.1px) 0 0 / 14px 14px, linear-gradient(270deg, #f3e2e6, #fbf4ec 30px); background-color: #fbf4ec; }
.fx-bd__sb.is-turning .fx-bd__sb-leaf { visibility: visible; animation: fx-bd-sb-leaf 0.8s linear both; }
.fx-bd__sb.is-turning.is-back .fx-bd__sb-leaf { animation-direction: reverse; }
.fx-bd__sb.is-turning .fx-bd__sb-leaf .is-front { animation: fx-bd-sb-front 0.8s linear both; }
.fx-bd__sb.is-turning .fx-bd__sb-leaf .is-back { animation: fx-bd-sb-backf 0.8s linear both; }
.fx-bd__sb.is-turning.is-back .fx-bd__sb-leaf .is-front, .fx-bd__sb.is-turning.is-back .fx-bd__sb-leaf .is-back { animation-direction: reverse; }
.fx-bd__sb.is-turning .fx-bd__sb-cast { animation: fx-bd-sb-cast 0.8s ease both; }
/* Đường cong nằm trong keyframes (vào chậm → nhanh ở giữa → ra chậm) để đúng 50% là lúc trang dựng đứng 90° – khớp với lúc đổi mặt, kể cả khi lật ngược. */
@keyframes fx-bd-sb-leaf { 0% { transform: rotateY(0); opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.45); } 50% { transform: rotateY(-90deg); animation-timing-function: cubic-bezier(0.2, 0.55, 0.45, 1); } 62% { opacity: 1; } 100% { transform: rotateY(-178deg); opacity: 0; } }
@keyframes fx-bd-sb-front { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fx-bd-sb-backf { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes fx-bd-sb-cast { 0% { background-color: rgba(58, 35, 64, 0); } 45% { background-color: rgba(58, 35, 64, 0.12); } 100% { background-color: rgba(58, 35, 64, 0); } }
/* Bìa sổ */
.fx-bd__sb-cover .is-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 26px; border: 6px double #fbe1ec; background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.6px, transparent 2px) 0 0 / 18px 18px, radial-gradient(120% 90% at 30% 20%, #f9b7cb, #f08eae 60%, #e56f97); box-shadow: inset 10px 0 14px -8px rgba(120, 30, 60, 0.3), 0 18px 34px rgba(120, 40, 70, 0.22); }
.fx-bd__sb-cover .is-front::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(120, 30, 60, 0.22), rgba(255, 255, 255, 0.18) 60%, transparent); }
.fx-bd__sb-cover .is-back { opacity: 0; transform: rotateY(180deg); border-radius: 16px 5px 5px 16px; background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1.4px, transparent 1.8px) 0 0 / 16px 16px, #d8c3f3; }
.fx-bd__sb-art { width: min(52%, 190px); aspect-ratio: 1; filter: drop-shadow(0 10px 12px rgba(120, 30, 60, 0.22)); animation: fx-bd-sb-float 5s ease-in-out infinite; }
@keyframes fx-bd-sb-float { 50% { transform: translateY(-5px) rotate(-2deg); } }
.fx-bd__sb-label { display: grid; gap: 4px; min-width: 70%; padding: 14px 18px 15px; border-radius: 10px; background: #fffaf3; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 8px 18px rgba(120, 30, 60, 0.18); text-align: center; transform: rotate(-1.5deg); }
.fx-bd__sb-label em { font: 19px/1.2 var(--bd-print); font-style: normal; color: #b0577c; }
.fx-bd__sb-label strong { font: 900 21px/1.15 var(--bd-serif); color: #3a2340; }
.fx-bd__sb-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18)); opacity: 0; }
.fx-bd__sb.is-opening { animation: fx-bd-sb-land 0.86s cubic-bezier(0.22, 1.2, 0.36, 1) both; }
.fx-bd__sb.is-opening .fx-bd__sb-cover { animation: fx-bd-sb-leaf 1.05s linear 0.75s both; }
.fx-bd__sb.is-opening .fx-bd__sb-cover .is-front { animation: fx-bd-sb-front 1.05s linear 0.75s both; }
.fx-bd__sb.is-opening .fx-bd__sb-cover .is-back { animation: fx-bd-sb-backf 1.05s linear 0.75s both; }
.fx-bd__sb.is-opening .fx-bd__sb-shade { animation: fx-bd-sb-shade 1.05s ease 0.75s both; }
@keyframes fx-bd-sb-land { from { opacity: 0; transform: translateY(34px) scale(0.92) rotate(-3deg); } }
@keyframes fx-bd-sb-shade { 0% { opacity: 0; } 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.fx-bd__sb.is-revealed .fx-bd__sb-cover { display: none; }
.fx-bd__sb-sticker { transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.fx-bd__sb:not(.is-revealed) .fx-bd__sb-sticker { opacity: 0; transform: rotate(-10deg) scale(0.4); }
.fx-bd__sb:not(.is-revealed) .fx-bd__sb-ribbon { transform: scaleX(0); }
.fx-bd__sb-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; transition: opacity 0.4s ease, transform 0.4s ease; }
.fx-bd__sb:not(.is-revealed) + .fx-bd__sb-nav { opacity: 0; transform: translateY(8px); pointer-events: none; }
.fx-bd__sb-counter { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 25px; background: rgba(255, 253, 247, 0.9); box-shadow: 0 4px 10px rgba(81, 56, 68, 0.06); font: 600 13px var(--sans); color: #3a2340; }
.fx-bd__sb-dots { display: inline-flex; gap: 4px; }
.fx-bd__sb-dots i { width: 6px; height: 6px; border-radius: 5px; background: #ecc7d4; transition: 0.25s; }
.fx-bd__sb-dots i.is-current { width: 17px; background: #d32153; }

/* Điều ước – hũ sao + sao chổi bay tới từng dải ước */
.fx-bd__reader[data-bg="uoc"] .fx-bd__tint { background: radial-gradient(70% 45% at 50% 22%, #fff5d9 0%, rgba(255, 245, 217, 0) 70%), radial-gradient(90% 60% at 100% 100%, #e9defa 0%, rgba(233, 222, 250, 0) 70%), linear-gradient(180deg, #fbeff3, #f6eaf6); }
.fx-bd__pg--uoc { height: 100%; padding: 60px 16px 96px; overflow: hidden; }
.fx-bd__pw { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 440px; }
.fx-bd__pw-head .fx-bd__h2 { margin-bottom: 4px; }
.fx-bd__pw.is-playing .fx-bd__pw-head { animation: fx-bd-pw-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fx-bd-pw-rise { from { opacity: 0; transform: translateY(12px); } }
.fx-bd__pw-jar { position: relative; flex: none; height: clamp(112px, 27vh, 230px); aspect-ratio: 220 / 280; margin: 2px 0 4px; }
.fx-bd__pw.is-playing .fx-bd__pw-jar { animation: fx-bd-pw-in 0.9s cubic-bezier(0.22, 1.35, 0.42, 1) 0.12s both; }
@keyframes fx-bd-pw-in { from { opacity: 0; transform: translateY(28px) scale(0.6); } }
.fx-bd__pw-halo { position: absolute; left: -35%; right: -35%; top: -10%; bottom: -15%; background: radial-gradient(closest-side, rgba(255, 230, 160, 0.75), rgba(255, 214, 233, 0.35) 55%, transparent); animation: fx-bd-pw-breathe 3.6s ease-in-out infinite; }
@keyframes fx-bd-pw-breathe { 50% { transform: scale(1.08); opacity: 0.7; } }
.fx-bd__pw-floor { position: absolute; left: 12%; right: 12%; bottom: -3%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 60, 110, 0.22), transparent); animation: fx-bd-pw-shadow 6.4s ease-in-out infinite; }
@keyframes fx-bd-pw-shadow { 50% { transform: scaleX(0.86); opacity: 0.75; } }
.fx-bd__pw-float { position: absolute; inset: 0; animation: fx-bd-pw-float 6.4s ease-in-out infinite; }
@keyframes fx-bd-pw-float { 0%, 100% { transform: translateY(0) rotate(-1.4deg); } 50% { transform: translateY(-7px) rotate(1.4deg); } }
.fx-bd__pw-body { position: absolute; inset: 0; }
.fx-bd__pw-body svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-bd__pw-glint { position: absolute; width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: fx-bd-pw-glint 2.6s ease-in-out infinite; }
@keyframes fx-bd-pw-glint { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } }
.fx-bd__pw-mouth { position: absolute; left: 50%; top: 12%; width: 2px; height: 2px; }
.fx-bd__pw-scroll { position: relative; flex: 1; min-height: 0; width: 100%; overflow-y: auto; padding: 16px 26px 12px 30px; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.fx-bd__pw-scroll::-webkit-scrollbar { display: none; }
.fx-bd__pw-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.fx-bd__pw-wish { position: relative; display: flex; align-items: center; min-height: 46px; margin-left: var(--indent); padding: 10px 26px 10px 28px; transform: rotate(var(--tilt)); text-align: left; }
.fx-bd__pw-paper { position: absolute; inset: 0; border-radius: 7px 9px 8px 7px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 2px, rgba(255, 255, 255, 0) 2px 9px), linear-gradient(180deg, #fffdfb, var(--paper)); box-shadow: 0 6px 14px rgba(90, 50, 90, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(0, 0, 0, 0.03); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.72s cubic-bezier(0.2, 0.9, 0.25, 1); }
.fx-bd__pw-paper::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 14px; background: linear-gradient(180deg, #fffdfb, var(--paper)); clip-path: polygon(0 0, 100% 0, 45% 50%, 100% 100%, 0 100%); }
.fx-bd__pw-knot { position: absolute; left: -17px; top: 50%; z-index: 1; width: 36px; height: 36px; margin-top: -18px; opacity: 0; transform: scale(0.2) rotate(-200deg); transition: transform 0.72s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.2s; filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 3px 3px rgba(90, 50, 90, 0.18)); }
.fx-bd__pw-knot > svg { display: block; width: 100%; height: 100%; }
.fx-bd__pw-burst { position: absolute; inset: -60%; opacity: 0; fill: var(--glow); }
.fx-bd__pw-burst svg { width: 100%; height: 100%; }
.fx-bd__pw-line { position: relative; font: 600 14.5px/1.4 var(--sans); color: var(--deep); clip-path: inset(0 100% 0 0); transition: clip-path 0.5s ease 0.24s; }
.fx-bd__pw-wish.is-open .fx-bd__pw-paper { transform: scaleX(1); }
.fx-bd__pw-wish.is-open .fx-bd__pw-knot { opacity: 1; transform: none; }
.fx-bd__pw-wish.is-open .fx-bd__pw-burst { animation: fx-bd-pw-burst 0.7s ease-out; }
.fx-bd__pw-wish.is-open .fx-bd__pw-line { clip-path: inset(0 -10px 0 0); }
@keyframes fx-bd-pw-burst { 0% { opacity: 0; transform: scale(0.3) rotate(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3) rotate(45deg); } }
.fx-bd__pw-empty { margin: 18px auto 0; max-width: 260px; padding: 14px 16px; border: 1.5px dashed #d7c1ea; border-radius: 14px; font: 500 14px/1.45 var(--sans); color: #8d7aa6; }
.fx-bd__pw-controls { padding: 16px 0 4px; text-align: center; }
.fx-bd__pw-again { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s; }
.fx-bd__pw.is-done .fx-bd__pw-again { opacity: 1; transform: none; pointer-events: auto; }
.fx-bd__pw-again svg { width: 18px; height: 18px; }
.fx-bd__pw-sky { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.fx-bd__pw-comet { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; }
.fx-bd__pw-cstar { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; filter: drop-shadow(0 0 5px var(--glow)); }
.fx-bd__pw-cstar svg { display: block; width: 100%; height: 100%; }
.fx-bd__pw-aura { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), rgba(255, 255, 255, 0)); opacity: 0.9; }
.fx-bd__pw-tail { position: absolute; right: 4px; top: -4px; width: 78px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--glow) 55%, var(--hue)); opacity: 0.9; clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%); }
.fx-bd__pw-flare { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255, 236, 180, 0.7) 40%, rgba(255, 255, 255, 0)); animation: fx-bd-pw-flare 0.65s ease-out forwards; }
@keyframes fx-bd-pw-flare { from { opacity: 1; transform: scale(0.2); } to { opacity: 0; transform: scale(1.6); } }

/* Máy chụp ảnh (sinh nhật): nền trang + tiêu đề; phần máy dùng chung ở mục .sil-pb */
.fx-bd__reader[data-bg="anh"] .fx-bd__tint { background: radial-gradient(80% 50% at 50% 35%, #fff4e6 0%, rgba(255, 244, 230, 0) 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 22px, rgba(255, 255, 255, 0) 22px 44px), linear-gradient(180deg, #f7e5ec, #f2e3f1); }
.fx-bd__pg--anh { height: 100%; padding: 60px 14px 96px; overflow: hidden; }
.fx-bd__pm-head { position: relative; text-align: left; }
.fx-bd__pm-head .fx-bd__h2 { margin: 2px 0 6px; font-size: 26px; text-align: left; text-wrap: balance; }
.fx-bd__pm-count { position: absolute; right: 0; top: -4px; margin: 0; padding: 5px 10px; border-radius: 20px; background: rgba(255, 253, 249, 0.9); box-shadow: 0 3px 8px rgba(57, 35, 60, 0.06); font: 700 12px var(--sans); color: #704352; transition: opacity 0.3s; }
.sil-pb.is-empty .fx-bd__pm-count { display: none; }

/* Lịch */
.fx-bd__cal { position: relative; width: min(250px, 80%); margin: 18px 0 14px; padding: 0 0 20px; border-radius: 18px; background: #fff; box-shadow: 0 20px 36px rgba(120, 50, 90, 0.18); overflow: hidden; animation: fx-bd-turn 0.7s ease; }
.fx-bd__cal header { padding: 16px 0 12px; background: var(--pink); font: 800 13px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.fx-bd__cal-rings { position: absolute; left: 0; right: 0; top: -6px; display: flex; justify-content: space-around; padding: 0 30%; }
.fx-bd__cal-rings i { width: 10px; height: 22px; border-radius: 6px; background: #e6d3dc; box-shadow: inset 0 -3px 0 #c9aebc; }
.fx-bd__cal strong { display: block; margin-top: 8px; font: 900 96px/1 var(--bd-serif); color: var(--ink); }
.fx-bd__cal-wd { display: block; font: 600 14px var(--sans); color: var(--muted); }
.fx-bd__cal-count { margin: 12px 18px 0; padding-top: 12px; border-top: 1.5px dashed #f3c4d4; font: 800 15px var(--sans); color: var(--pink); }
.fx-bd__cal-note { max-width: 320px; margin: 4px 0 0; font: 600 24px/1.35 var(--bd-hand); color: var(--ink); }

/* Thổi nến */
/* Thổi nến (bản SVG dự phòng khi máy không có WebGL) */
.fx-bd__pg--nen { justify-content: space-between; padding-top: 56px; }
.fx-bd__cake--big { width: min(310px, 80vw, 42vh); margin-top: 6px; }
.fx-bd__panel { width: min(360px, 100%); padding: 18px 18px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 14px 34px rgba(120, 50, 90, 0.14); }
.fx-bd__panel .fx-bd__h2 { margin-bottom: 14px; }
.fx-bd__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-bd__opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 10px; border: 1.5px solid rgba(209, 38, 79, 0.25); border-radius: 999px; background: #fff; color: var(--ink); font: 700 13.5px var(--sans); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.fx-bd__opt.is-on { border-color: var(--pink); background: var(--pink); color: #fff; }
.fx-bd__privacy { display: block; margin-top: 8px; font: 12px/1.4 var(--sans); color: #9a8a97; }
.fx-bd__pg--nen.is-done .fx-bd__opts { opacity: 0.4; pointer-events: none; }

/* Lời chúc cuối */
.fx-bd__pg--chuc { justify-content: center; }
.fx-bd__cake--end { width: min(230px, 62vw, 30vh); margin-bottom: 10px; }
.fx-bd__wish-title { margin: 6px 0 4px; font: 900 clamp(32px, 9.5vw, 48px)/1.05 var(--bd-serif); color: var(--ink); }
.fx-bd__wish-title em { font-style: normal; color: var(--pink); }
.fx-bd__sign { margin: 4px 0 14px; font: 700 26px var(--bd-hand); color: var(--ink); }
.fx-bd__icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 372px; margin-bottom: 16px; }
.fx-bd__icon { width: 40px; height: 40px; border: 1px solid rgba(209, 38, 79, 0.18); border-radius: 12px; background: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 4px 10px rgba(120, 50, 90, 0.08); transition: transform 0.2s; }
.fx-bd__icon:hover { transform: translateY(-2px); }

@media (min-width: 768px) {
	.fx-bd__cover { padding-top: 76px; }
	.fx-bd__pg { padding-top: 84px; }
}
@media (prefers-reduced-motion: reduce) { .fx-bd *, .fx-bd *::before { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }
/* Tiệc sinh nhật: thanh điều hướng ở đáy → nút nhạc, link "tạo lời nhắn" và thanh demo lên trên cùng */
.sil-view--tiec-sinh-nhat .sil-music { top: max(12px, env(safe-area-inset-top)); bottom: auto; right: 14px; width: 44px; height: 44px; border-color: rgba(209, 38, 79, 0.18); background: rgba(255, 255, 255, 0.92); color: #d1264f; font-size: 20px; }
.sil-view--tiec-sinh-nhat .sil-made-with, .sil-view--tiec-sinh-nhat .sil-demobar { top: max(12px, env(safe-area-inset-top)); bottom: auto; }

/* ==================================================================
 * Hiệu ứng khi bấm "Mở thư" (SIL.openFx): hôn / ôm / tung hoa
 * ================================================================== */
.sil-ofx { position: absolute; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; transition: opacity 0.6s ease; }
.sil-ofx.is-out { opacity: 0; }
.sil-ofx__heart { position: absolute; display: block; will-change: transform, opacity; }
.sil-ofx__heart svg, .sil-ofx__bigheart svg, .sil-ofx__kiss svg, .sil-ofx__p svg, .sil-ofx__hand svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Phần tử bìa: rung nhẹ khi "chụt", co lại khi được ôm, nút nảy khi tung hoa */
.sil-ofx-bump { animation: sil-ofx-bump 0.42s ease; }
@keyframes sil-ofx-bump { 30% { transform: scale(0.985) translateY(3px); } 60% { transform: scale(1.006); } }
.sil-ofx-squeeze { animation: sil-ofx-squeeze 1s ease-in-out; }
@keyframes sil-ofx-squeeze { 22% { transform: scale(0.955, 0.97); } 45% { transform: scale(1.01); } 66% { transform: scale(0.965, 0.975); } 85% { transform: scale(1.004); } }
.sil-ofx-pop { animation: sil-ofx-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes sil-ofx-pop { 30% { transform: scale(0.9); } 65% { transform: scale(1.08); } }

/* Hôn */
.sil-ofx__blush { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(255, 120, 160, 0) 35%, rgba(255, 92, 140, 0.3) 100%); animation: sil-ofx-glow 2.4s ease both; }
@keyframes sil-ofx-glow { 0% { opacity: 0; } 14% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.sil-ofx__kiss { position: absolute; width: calc(min(66vw, 360px) * var(--s, 1)); aspect-ratio: 200 / 124; opacity: 0.93; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); animation: sil-ofx-smack 0.46s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes sil-ofx-smack {
	0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(2.2); }
	45% { opacity: 0.95; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(0.92, 0.86); }
	70% { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.04, 1.02); }
	100% { opacity: 0.93; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
}
.sil-ofx__smack { position: absolute; font: italic 900 clamp(28px, 8.5vw, 46px)/1 "Playfair Display", Georgia, serif; color: #ff3f74; -webkit-text-stroke: 6px #fff; paint-order: stroke fill; text-shadow: 0 6px 16px rgba(200, 20, 70, 0.28); white-space: nowrap; transform: translate(-50%, -50%) rotate(12deg); animation: sil-ofx-smacktxt 1.7s ease 0.12s both; }
@keyframes sil-ofx-smacktxt {
	0% { opacity: 0; transform: translate(-50%, -50%) rotate(12deg) scale(0.3); }
	16% { opacity: 1; transform: translate(-50%, -50%) rotate(12deg) scale(1.18); }
	28% { transform: translate(-50%, -50%) rotate(12deg) scale(1); }
	78% { opacity: 1; transform: translate(-50%, -60%) rotate(10deg) scale(1); }
	100% { opacity: 0; transform: translate(-50%, -110%) rotate(8deg) scale(0.96); }
}

/* Ôm */
.sil-ofx--hug { --hand: clamp(118px, 33vmin, 170px); --arm: min(calc(50vw + var(--hand) * 0.12), calc(var(--hand) * 3.6)); }
.sil-ofx__warm { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(255, 214, 180, 0) 32%, rgba(255, 158, 140, 0.34) 100%); animation: sil-ofx-glow 2.6s ease both; }
.sil-ofx__arm { position: absolute; width: var(--arm); will-change: transform; animation: 1.6s ease-in-out both; }
.sil-ofx__arm.is-left { left: calc(50% + var(--hand) * 0.12 - var(--arm)); top: calc(44% - var(--hand) * 0.42); z-index: 2; transform-origin: 0 50%; rotate: 9deg; animation-name: sil-ofx-arm-l; }
.sil-ofx__arm.is-right { right: calc(50% + var(--hand) * 0.12 - var(--arm)); top: calc(59% - var(--hand) * 0.42); z-index: 1; transform-origin: 100% 50%; rotate: 9deg; animation-name: sil-ofx-arm-r; }
.sil-ofx__arm-in { display: flex; align-items: center; }
.sil-ofx__arm.is-right .sil-ofx__arm-in { transform: scaleX(-1); }
.sil-ofx__sleeve { flex: 1; height: calc(var(--hand) * 0.58); -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); border-radius: 0 60px 60px 0 / 0 50% 50% 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 5px, rgba(255, 255, 255, 0) 5px 11px), linear-gradient(180deg, #fbb9cc 0%, #f297b3 55%, #e27f9f 100%); box-shadow: 0 10px 22px rgba(150, 40, 80, 0.22), inset 0 -6px 10px rgba(160, 40, 80, 0.15), inset 0 5px 8px rgba(255, 255, 255, 0.25); }
.sil-ofx__cuff { flex: none; width: calc(var(--hand) * 0.2); height: calc(var(--hand) * 0.66); margin-left: calc(var(--hand) * -0.07); border-radius: 12px; background: repeating-linear-gradient(90deg, #f7adc2 0 4px, #e78ba6 4px 7px); box-shadow: 0 6px 14px rgba(150, 40, 80, 0.2); }
.sil-ofx__hand { flex: none; width: var(--hand); aspect-ratio: 130 / 104; margin-left: calc(var(--hand) * -0.1); filter: drop-shadow(0 8px 10px rgba(140, 60, 40, 0.2)); }
@keyframes sil-ofx-arm-l {
	0% { transform: translateX(-102%) rotate(-14deg); }
	38% { transform: translateX(1.5%) rotate(2deg); }
	50% { transform: translateX(-1%) rotate(0deg); }
	62% { transform: translateX(2%) rotate(1.5deg); }
	74% { transform: translateX(-0.5%) rotate(0deg); }
	86% { transform: translateX(1.5%) rotate(1deg); }
	100% { transform: translateX(0) rotate(0deg); }
}
@keyframes sil-ofx-arm-r {
	0% { transform: translateX(102%) rotate(14deg); }
	38% { transform: translateX(-1.5%) rotate(-2deg); }
	50% { transform: translateX(1%) rotate(0deg); }
	62% { transform: translateX(-2%) rotate(-1.5deg); }
	74% { transform: translateX(0.5%) rotate(0deg); }
	86% { transform: translateX(-1.5%) rotate(-1deg); }
	100% { transform: translateX(0) rotate(0deg); }
}
.sil-ofx--hug.is-release .sil-ofx__arm.is-left { animation: sil-ofx-out-l 0.6s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.sil-ofx--hug.is-release .sil-ofx__arm.is-right { animation: sil-ofx-out-r 0.6s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes sil-ofx-out-l { from { transform: translateX(0) rotate(0deg); } to { transform: translateX(-104%) rotate(-12deg); } }
@keyframes sil-ofx-out-r { from { transform: translateX(0) rotate(0deg); } to { transform: translateX(104%) rotate(12deg); } }
.sil-ofx__bigheart { position: absolute; left: 50%; top: 51.5%; z-index: 3; width: clamp(58px, 15vmin, 104px); aspect-ratio: 1; margin: calc(clamp(58px, 15vmin, 104px) / -2) 0 0 calc(clamp(58px, 15vmin, 104px) / -2); filter: drop-shadow(0 8px 16px rgba(230, 40, 90, 0.35)); animation: sil-ofx-beat 1.9s ease 0.55s both; }
@keyframes sil-ofx-beat { 0% { opacity: 0; transform: scale(0.2); } 14% { opacity: 1; transform: scale(1.15); } 22% { transform: scale(0.94); } 34% { transform: scale(1.12); } 44% { transform: scale(1); } 60% { transform: scale(1.1); } 70% { transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
.sil-ofx--hug.is-release .sil-ofx__bigheart { opacity: 0; transform: scale(1.4); transition: opacity 0.5s ease, transform 0.5s ease; animation: none; }
.sil-ofx__cap { position: absolute; left: 50%; top: calc(59% + var(--hand) * 0.55); z-index: 3; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 20px rgba(150, 40, 80, 0.16); font: italic 700 clamp(17px, 4.6vw, 22px)/1.2 "Playfair Display", Georgia, serif; color: #d1264f; width: max-content; max-width: 86vw; text-align: center; transform: translateX(-50%); animation: sil-ofx-cap 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 0.75s both; }
@keyframes sil-ofx-cap { from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.8); } }
.sil-ofx--hug.is-release .sil-ofx__cap { opacity: 0; transition: opacity 0.4s ease; }

/* Tung hoa */
.sil-ofx__p { position: absolute; left: 0; top: 0; margin: -8px 0 0 -8px; border-radius: 80% 0 80% 0 / 80% 0 80% 0; box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.08); will-change: transform, opacity; }
.sil-ofx__p.is-flower { border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.12)); }
.fx-bl__cover.is-fx .fx-bl__open, .fx-bl__cover.is-fx .fx-bl__seal, .fx-bl__cover.is-fx .fx-bl__lenv { pointer-events: none; }
.fx-xl__cover.is-fx .fx-xl__knob { pointer-events: none; }

/* ==================================================================
 * Tiệc sinh nhật – bánh kem 3D (assets/cake3d.js): kéo để xoay
 * ================================================================== */
.sil-cake3d { position: relative; width: 100%; height: 100%; }
.sil-cake3d__canvas { display: block; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; -webkit-tap-highlight-color: transparent; }
.sil-cake3d.is-dragging .sil-cake3d__canvas { cursor: grabbing; }
.fx-bd__cake3 { position: relative; }
/* Bìa: bánh chiếm phần giữa, bóng bay số tuổi bên trái, gợi ý "kéo để xoay" */
.fx-bd__cover-cake.is-3d { position: relative; width: 100%; max-width: 560px; animation: none; }
.fx-bd__cake3--cover { width: 100%; height: 100%; min-height: 220px; }
.fx-bd__balloons { position: absolute; left: max(1%, calc(50% - 215px)); top: 4%; z-index: 1; display: flex; height: min(25%, 150px); pointer-events: none; }
.fx-bd__balloon { display: block; height: 100%; aspect-ratio: 100 / 170; margin-right: -14%; filter: drop-shadow(0 10px 12px rgba(200, 80, 130, 0.22)); animation: fx-bd-balloon 5.2s ease-in-out infinite; }
.fx-bd__balloon svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes fx-bd-balloon { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
.fx-bd__spin-hint { position: absolute; left: 50%; bottom: 4px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.82); box-shadow: 0 4px 12px rgba(120, 50, 90, 0.1); font: 600 12px/1.2 var(--sans); color: #8a5a72; white-space: nowrap; transform: translateX(-50%); pointer-events: none; animation: fx-bd-hint 0.6s ease 1.2s both; transition: opacity 0.4s ease; }
.fx-bd__spin-hint.is-gone { opacity: 0; }
@keyframes fx-bd-hint { from { opacity: 0; transform: translate(-50%, 6px); } }
.fx-bd__cover.is-opening .fx-bd__spin-hint, .fx-bd__cover.is-opening .fx-bd__balloons { opacity: 0; transition: opacity 0.4s ease; }

/* Trang thổi nến: phòng tối ấm khi nến cháy, sáng bừng khi thổi xong */
.fx-bd__reader[data-bg="nen"] .fx-bd__tint { background: radial-gradient(85% 55% at 50% 34%, #f1e8eb 0%, #d3c4cb 48%, #a5939c 100%); }
.fx-bd__reader[data-bg="nen-done"] .fx-bd__tint { background: radial-gradient(90% 60% at 50% 30%, #fff7fa 0%, #f9e3ec 60%, #f3d3e0 100%); }
.fx-bd__pg--nen.is-3d { height: 100%; justify-content: flex-start; padding: 52px 0 0; overflow: hidden; }
.fx-bd__cake3--nen { flex: 1; min-height: 0; width: 100%; max-width: 620px; }
.fx-bd__nen-card { flex: none; width: calc(100% - 20px); max-width: 540px; margin: 0 10px 100px; padding: 18px 20px 14px; border-radius: 26px; background: rgba(255, 253, 250, 0.97); box-shadow: 0 -4px 30px rgba(60, 30, 50, 0.12); text-align: left; }
.fx-bd__nen-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-bd__nen-head .fx-bd__kicker { font-size: 13px; letter-spacing: 0.12em; }
.fx-bd__nen-icons { display: inline-flex; align-items: flex-end; gap: 4px; height: 26px; }
.fx-bd__nen-icons i { position: relative; width: 6px; height: 17px; border-radius: 2px; background: repeating-linear-gradient(160deg, #fffaf4 0 2.5px, var(--c) 2.5px 5px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06); }
.fx-bd__nen-icons i::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 6px; height: 9px; margin: 0 0 1px -3px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 70%, #fff6c8 0 30%, #ffb23f 70%); box-shadow: 0 0 6px rgba(255, 178, 63, 0.8); transition: opacity 0.3s, transform 0.3s; }
.fx-bd__nen-icons i.is-out { filter: saturate(0.4); opacity: 0.6; }
.fx-bd__nen-icons i.is-out::before { opacity: 0; transform: scale(0.3); }
.fx-bd__nen-title { margin: 6px 0 14px; font: 900 clamp(26px, 7.4vw, 32px)/1.1 var(--bd-serif); color: #2e1a33; }
.fx-bd__nen-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-bd__nen-acts.is-done, .fx-bd__pg--nen.is-done .fx-bd__nen-acts { display: none; }
.fx-bd__pg--nen.is-done .fx-bd__nen-acts.is-done { display: grid; animation: fx-bd-rise 0.5s ease both; }
@keyframes fx-bd-rise { from { opacity: 0; transform: translateY(8px); } }
.fx-bd__nen-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 12px; white-space: nowrap; border: 1.5px solid #e6d9d7; border-radius: 999px; background: #fffdf9; color: #2e1a33; font: 700 16px var(--sans); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.fx-bd__nen-btn svg { width: 20px; height: 20px; }
.fx-bd__nen-btn:active { transform: scale(0.97); }
.fx-bd__nen-btn.is-primary { border-color: #d1264f; background: #d1264f; color: #fff; box-shadow: 0 10px 22px rgba(209, 38, 79, 0.3); }
.fx-bd__nen-btn.is-on { border-color: #d1264f; background: #fde5ec; color: #b81c45; box-shadow: 0 0 0 4px rgba(209, 38, 79, 0.12); }
.fx-bd__nen-btn.is-primary.is-on { background: #b81c45; color: #fff; animation: fx-bd-listen 1.2s ease-in-out infinite; }
@keyframes fx-bd-listen { 50% { box-shadow: 0 0 0 8px rgba(209, 38, 79, 0.14), 0 10px 22px rgba(209, 38, 79, 0.3); } }
.fx-bd__nen-note { margin: 12px 2px 2px; font: 13px/1.45 var(--sans); color: #6f5a66; }
/* Trang cuối */
.fx-bd__cake3--end { width: min(320px, 82vw); height: min(300px, 34vh); margin-bottom: 6px; }
@media (min-width: 768px) {
	.fx-bd__nen-card { margin-bottom: 108px; padding: 20px 24px 16px; }
}
.fx-bd__pg--nen:not(.is-3d) .fx-bd__nen-card { width: 100%; margin: 0 0 84px; }
@media (max-width: 360px) { .fx-bd__nen-btn { font-size: 14.5px; gap: 6px; } }

/* ==================================================================
 * Máy chụp ảnh dùng chung (assets/photobooth.js) – .sil-pb
 * Mỗi kiểu máy chỉ đổi biến màu/hoạ tiết; khung, hiệu ứng giữ nguyên.
 * ================================================================== */
.sil-pb {
	--pb-body1: #bfa2ee; --pb-body2: #d3bdf6; --pb-body-shade: rgba(110, 70, 170, 0.2);
	--pb-pattern: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.4cqw, transparent 1.7cqw) 0 0 / 11cqw 11cqw;
	--pb-trim1: #fbe39a; --pb-trim2: #e5b44f; --pb-trim3: #f7d98a; --pb-trim4: #c99335;
	--pb-sign1: #fff8ea; --pb-sign2: #fde9d6; --pb-sign-line: #f27fa0; --pb-sign-drop: #d9577d; --pb-sign-ink: #d1264f;
	--pb-sign-font: 900 italic 10cqw/1 "Playfair Display", Georgia, serif;
	--pb-bulb: #fff4c9; --pb-bulb-off: #f2cf86; --pb-bulb-glow: #ffd76a;
	--pb-aw1: #f27fa0; --pb-aw2: #fdebe1;
	--pb-cur1: #c9264b; --pb-cur2: #e04466; --pb-cur3: #b11d40;
	--pb-int1: #8a5d93; --pb-int2: #4b2f5c;
	--pb-base1: #9d78dc; --pb-base2: #7a54c0;
	--pb-cam1: #bfe8d3; --pb-cam2: #8fd0b5; --pb-cam-line: #7cc0a5; --pb-lens: #c3a6f0; --pb-heart: #e85a7a;
	--pb-paper: #fffdf8; --pb-blank1: #f4ece2; --pb-blank2: #e7dccf; --pb-foot: #8a4a68; --pb-foot-heart: #d1264f;
	--pb-foot-font: 1.3em/1.2 "Patrick Hand", "Comic Sans MS", cursive;
	--pb-tape1: rgba(246, 160, 190, 0.75); --pb-tape2: rgba(255, 214, 228, 0.75);
	--pb-dev: rgba(255, 196, 150, 0.4);
	--pb-ghost: #cdb3e6; --pb-ghost-bg: #fbf7ff;
	--pb-accent: #d1264f; --pb-ink: #3a2340; --pb-muted: #8d6f80; --pb-heart-fly: #ff6f9b;
	position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 460px;
}
/* Hồng lãng mạn – thân hồng phấn chấm bi, viền vàng hồng, rèm nhung đỏ rượu, bảng chữ viết tay */
.sil-pb--rose {
	--pb-body1: #f3bccb; --pb-body2: #fad9e1; --pb-body-shade: rgba(170, 60, 100, 0.18);
	--pb-pattern: radial-gradient(circle, rgba(255, 255, 255, 0.6) 1.2cqw, transparent 1.5cqw) 0 0 / 10cqw 10cqw;
	--pb-trim1: #fbe3d2; --pb-trim2: #dca184; --pb-trim3: #f4cdb5; --pb-trim4: #b97a5c;
	--pb-sign1: #fffaf6; --pb-sign2: #fde8ec; --pb-sign-line: #e59ab0; --pb-sign-drop: #c86b88; --pb-sign-ink: #a3214a;
	--pb-sign-font: 400 10cqw/1 "Great Vibes", "Dancing Script", cursive;
	--pb-aw1: #e59ab0; --pb-aw2: #fff3f4;
	--pb-cur1: #8e1a3a; --pb-cur2: #b53458; --pb-cur3: #74122e;
	--pb-int1: #7b4258; --pb-int2: #3f1d2c;
	--pb-base1: #d68aa2; --pb-base2: #b4647f;
	--pb-cam1: #fde6ec; --pb-cam2: #f4bccb; --pb-cam-line: #e39bb1; --pb-lens: #f0a7bd; --pb-heart: #c2185b;
	--pb-paper: #fffaf7; --pb-foot: #9e4a64; --pb-foot-heart: #c2185b;
	--pb-foot-font: 1.55em/1.1 "Great Vibes", "Dancing Script", cursive;
	--pb-ghost: #e8b3c4; --pb-ghost-bg: #fff6f8;
	--pb-accent: #a3214a; --pb-heart-fly: #e2557f;
}
/* Gỗ & đồng cổ điển – thân gỗ óc chó vân dọc, viền đồng, rèm nhung đỏ rượu vang */
.sil-pb--vintage {
	--pb-body1: #7d4f33; --pb-body2: #9c6a45; --pb-body-shade: rgba(40, 20, 10, 0.3);
	--pb-pattern: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 0.5cqw, rgba(255, 255, 255, 0.05) 0.5cqw 1.2cqw, rgba(0, 0, 0, 0) 1.2cqw 4.5cqw), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 21.6cqw, rgba(0, 0, 0, 0.22) 21.6cqw 22cqw);
	--pb-trim1: #f6dc98; --pb-trim2: #c99a45; --pb-trim3: #e8c57a; --pb-trim4: #94672a;
	--pb-sign1: #f9eed6; --pb-sign2: #ead6ad; --pb-sign-line: #94672a; --pb-sign-drop: #5a3a1c; --pb-sign-ink: #5a2414;
	--pb-sign-font: 900 10cqw/1 "Playfair Display", Georgia, serif;
	--pb-bulb: #ffeab4; --pb-bulb-off: #d8b46c; --pb-bulb-glow: #ffcf6a;
	--pb-aw1: #7a2234; --pb-aw2: #f3e6cf;
	--pb-cur1: #6e1a2b; --pb-cur2: #8e2a3e; --pb-cur3: #561221;
	--pb-int1: #4a362c; --pb-int2: #1f1612;
	--pb-base1: #5e3c27; --pb-base2: #3f2818;
	--pb-cam1: #4b3a31; --pb-cam2: #2c201b; --pb-cam-line: #c99a45; --pb-lens: #c99a45; --pb-heart: #b8323f;
	--pb-paper: #f7eedd; --pb-blank1: #efe2c8; --pb-blank2: #dfcca8; --pb-foot: #5a2e17; --pb-foot-heart: #8e2a3e;
	--pb-tape1: rgba(214, 190, 140, 0.85); --pb-tape2: rgba(232, 214, 176, 0.85);
	--pb-dev: rgba(214, 150, 80, 0.45);
	--pb-ghost: #c9a27a; --pb-ghost-bg: #fbf4e8;
	--pb-accent: #7a2234; --pb-heart-fly: #d0675e;
}
/* Kem & vàng – thân ngà sọc chỉ vàng kiểu Art Deco, bảng đen chữ vàng, rèm nhung sâm panh */
.sil-pb--ivory {
	--pb-body1: #efe5d2; --pb-body2: #fbf6ec; --pb-body-shade: rgba(120, 90, 40, 0.16);
	--pb-pattern: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 6.6cqw, rgba(196, 158, 76, 0.45) 6.6cqw 7cqw), linear-gradient(180deg, rgba(0, 0, 0, 0) 0 84%, rgba(196, 158, 76, 0.22) 84%);
	--pb-sign1: #2a2522; --pb-sign2: #171412; --pb-sign-line: #c9a24f; --pb-sign-drop: #7a5f26; --pb-sign-ink: #ecca7c;
	--pb-sign-font: 700 italic 10cqw/1 "Cormorant Garamond", Georgia, serif;
	--pb-bulb: #fff3d6; --pb-bulb-off: #b99a5a; --pb-bulb-glow: #ffe08a;
	--pb-aw1: #1e1b19; --pb-aw2: #f4ecdc;
	--pb-cur1: #b18c52; --pb-cur2: #d2b277; --pb-cur3: #94733f;
	--pb-int1: #3a332d; --pb-int2: #151210;
	--pb-base1: #2a2522; --pb-base2: #0f0d0c;
	--pb-cam1: #45454b; --pb-cam2: #202024; --pb-cam-line: #c9a24f; --pb-lens: #c9a24f; --pb-heart: #c9a24f;
	--pb-paper: #fffdf7; --pb-blank1: #ecebe8; --pb-blank2: #d6d4cf; --pb-foot: #3b2f22; --pb-foot-heart: #a88437;
	--pb-foot-font: italic 600 1.4em/1.15 "Cormorant Garamond", Georgia, serif;
	--pb-tape1: rgba(214, 186, 120, 0.7); --pb-tape2: rgba(240, 224, 186, 0.7);
	--pb-dev: rgba(120, 120, 120, 0.35);
	--pb-ghost: #cdb98a; --pb-ghost-bg: #fffbf2;
	--pb-accent: #1e1b19; --pb-heart-fly: #d4a94a;
}
/* Đêm sao – thân xanh đêm rắc sao, viền vàng, rèm nhung tím mận */
.sil-pb--starry {
	--pb-body1: #27306a; --pb-body2: #3a488f; --pb-body-shade: rgba(5, 8, 30, 0.35);
	--pb-pattern: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0.35cqw, rgba(255, 255, 255, 0) 0.55cqw) 0 0 / 8cqw 9cqw, radial-gradient(circle, rgba(255, 228, 160, 0.85) 0.55cqw, rgba(255, 228, 160, 0) 0.8cqw) 4cqw 5cqw / 13cqw 12cqw;
	--pb-sign1: #1c2250; --pb-sign2: #121638; --pb-sign-line: #f2d48a; --pb-sign-drop: #8a7134; --pb-sign-ink: #ffe3a3;
	--pb-sign-font: 700 10cqw/1 "Dancing Script", cursive;
	--pb-aw1: #1c2250; --pb-aw2: #f2d48a;
	--pb-cur1: #5a2a6e; --pb-cur2: #7a3d91; --pb-cur3: #47205a;
	--pb-int1: #2c2250; --pb-int2: #110d26;
	--pb-base1: #1c2250; --pb-base2: #10143a;
	--pb-cam1: #e3dcf8; --pb-cam2: #b6aaea; --pb-cam-line: #9c8fdc; --pb-lens: #f2d48a; --pb-heart: #ff7aa2;
	--pb-paper: #fdfbff; --pb-foot: #2a3466; --pb-foot-heart: #d6457a;
	--pb-tape1: rgba(190, 176, 240, 0.75); --pb-tape2: rgba(226, 218, 252, 0.75);
	--pb-ghost: #a99fe0; --pb-ghost-bg: #f7f5ff;
	--pb-accent: #2a3466; --pb-heart-fly: #ffd36e;
}
/* Bạc hà – thân xanh bạc hà chấm bi, rèm san hô, bảng kem chữ cam đào */
.sil-pb--mint {
	--pb-body1: #9fdcc6; --pb-body2: #c6eedf; --pb-body-shade: rgba(30, 110, 90, 0.18);
	--pb-pattern: radial-gradient(circle, rgba(255, 255, 255, 0.6) 1.3cqw, transparent 1.6cqw) 0 0 / 11cqw 11cqw;
	--pb-sign1: #fffaf0; --pb-sign2: #ffefdf; --pb-sign-line: #f29a85; --pb-sign-drop: #d0705e; --pb-sign-ink: #e0675a;
	--pb-sign-font: 700 10cqw/1 "Dancing Script", cursive;
	--pb-aw1: #f6a690; --pb-aw2: #fff4ec;
	--pb-cur1: #e06b66; --pb-cur2: #f08b82; --pb-cur3: #c95752;
	--pb-int1: #4f726a; --pb-int2: #2b403b;
	--pb-base1: #69b79c; --pb-base2: #4a977f;
	--pb-cam1: #fff1e8; --pb-cam2: #f7cdbd; --pb-cam-line: #eba892; --pb-lens: #a8e0cb; --pb-heart: #e0675a;
	--pb-foot: #3f7a66; --pb-foot-heart: #e0675a;
	--pb-tape1: rgba(246, 166, 144, 0.7); --pb-tape2: rgba(255, 226, 212, 0.75);
	--pb-ghost: #9fd0bd; --pb-ghost-bg: #f5fcf9;
	--pb-accent: #2f8a6e; --pb-heart-fly: #f08b82;
}
.sil-pb__main { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; container-type: size; }
.sil-pb__main::after { content: ""; position: absolute; inset: -20px; z-index: 6; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)); opacity: 0; pointer-events: none; }
.sil-pb__main.is-flash::after { animation: sil-pb-flash 0.5s ease-out; }
@keyframes sil-pb-flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
.sil-pb__booth { position: relative; z-index: 3; width: min(70cqw, 95cqh * 0.5794); aspect-ratio: 0.5794; container-type: inline-size; transition: transform 0.9s cubic-bezier(0.62, 0, 0.24, 1); pointer-events: none; }
.sil-pb__booth.is-in { animation: sil-pb-in 0.8s cubic-bezier(0.22, 1.25, 0.4, 1) both; }
@keyframes sil-pb-in { from { opacity: 0; transform: translateY(26px) scale(0.9); } }
.sil-pb.is-roll .sil-pb__booth { transform: translate(var(--rx, 0), var(--ry, 0)) scale(var(--rs, 0.17)); }
.sil-pb__floor { position: absolute; left: -4%; right: -4%; bottom: -2.5%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 30, 40, 0.24), transparent); }
.sil-pb__sign { position: absolute; left: 7%; right: 7%; top: 0; z-index: 2; display: grid; place-items: center; height: 11.5%; border: 1.4cqw solid var(--pb-sign-line); border-radius: 4cqw; background: linear-gradient(180deg, var(--pb-sign1), var(--pb-sign2)); box-shadow: 0 1.5cqw 0 var(--pb-sign-drop), 0 3cqw 5cqw rgba(60, 30, 40, 0.2); }
.sil-pb__sign b { position: relative; z-index: 1; font: var(--pb-sign-font); color: var(--pb-sign-ink); letter-spacing: 0.01em; white-space: nowrap; }
.sil-pb__sign i { position: absolute; width: 3.2cqw; height: 3.2cqw; margin: -1.6cqw 0 0 -1.6cqw; border-radius: 50%; background: var(--pb-bulb); box-shadow: 0 0 2.5cqw var(--pb-bulb-glow); animation: sil-pb-bulb 1.1s steps(1) infinite; }
.sil-pb__sign i.is-b { animation-delay: 0.55s; }
@keyframes sil-pb-bulb { 0% { background: var(--pb-bulb); box-shadow: 0 0 3cqw var(--pb-bulb-glow); } 50% { background: var(--pb-bulb-off); box-shadow: none; } }
.sil-pb__awning { position: absolute; left: 3%; right: 3%; top: 11%; z-index: 1; height: 8%; filter: drop-shadow(0 1.5cqw 1.5cqw rgba(60, 30, 40, 0.2)); }
.sil-pb__awning svg { display: block; width: 100%; height: 100%; }
.sil-pb__body { position: absolute; left: 6%; right: 6%; top: 16%; bottom: 9%; border-radius: 3cqw 3cqw 1.5cqw 1.5cqw; background: var(--pb-pattern), linear-gradient(90deg, var(--pb-body1), var(--pb-body2) 45%, var(--pb-body1)); box-shadow: inset -3cqw 0 4cqw var(--pb-body-shade), 0 4cqw 8cqw rgba(60, 30, 50, 0.2); }
.sil-pb__frame { position: absolute; left: 14%; right: 14%; top: 22%; height: 39%; padding: 2.6cqw; border-radius: 5cqw; background: linear-gradient(135deg, var(--pb-trim1), var(--pb-trim2) 40%, var(--pb-trim3) 60%, var(--pb-trim4)); box-shadow: 0 2cqw 4cqw rgba(60, 30, 20, 0.25), inset 0 0 0 0.8cqw rgba(255, 255, 255, 0.35); }
.sil-pb__window { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 3cqw; background: var(--pb-int2); }
.sil-pb__interior { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 3cqw, rgba(0, 0, 0, 0.1) 3cqw 6cqw), radial-gradient(90% 70% at 50% 40%, var(--pb-int1), var(--pb-int2)); }
.sil-pb__camera { position: absolute; left: 50%; top: 55%; width: 62%; transform: translate(-50%, -50%); filter: drop-shadow(0 2cqw 2cqw rgba(0, 0, 0, 0.3)); }
.sil-pb__camera svg { display: block; width: 100%; height: auto; }
.sil-pb__bubble { position: absolute; left: 50%; top: 6%; z-index: 2; min-width: 15cqw; padding: 1.4cqw 3cqw; border-radius: 6cqw; background: #fffdf6; box-shadow: 0 1.5cqw 3cqw rgba(0, 0, 0, 0.2); font: 900 9cqw/1 "Playfair Display", Georgia, serif; color: var(--pb-accent); text-align: center; white-space: nowrap; opacity: 0; transform: translateX(-50%) scale(0.4); }
.sil-pb__bubble.is-word { font: 700 6cqw/1.2 var(--sans, Inter, system-ui, sans-serif); }
.sil-pb__bubble.is-in { animation: sil-pb-pop 0.46s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes sil-pb-pop { 0% { opacity: 0; transform: translateX(-50%) scale(0.4); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
.sil-pb__flash { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; }
.sil-pb__flash.is-on { animation: sil-pb-flash 0.45s ease-out; }
.sil-pb__curtain { position: absolute; top: 0; bottom: 0; z-index: 2; width: 51%; background: repeating-linear-gradient(90deg, var(--pb-cur1) 0 2.6cqw, var(--pb-cur2) 2.6cqw 4.2cqw, var(--pb-cur3) 4.2cqw 5.6cqw), var(--pb-cur1); box-shadow: inset 0 -3cqw 3cqw rgba(0, 0, 0, 0.15); transition: transform 0.9s cubic-bezier(0.6, 0, 0.25, 1); }
.sil-pb__curtain.is-left { left: 0; transform-origin: 0 50%; border-radius: 0 0 40% 0 / 0 0 8% 0; }
.sil-pb__curtain.is-right { right: 0; transform-origin: 100% 50%; border-radius: 0 0 0 40% / 0 0 0 8%; }
.sil-pb.is-open .sil-pb__curtain { transform: scaleX(0.19); }
.sil-pb__lights { position: absolute; left: 0; right: 0; top: 63.5%; display: flex; justify-content: center; gap: 4cqw; }
.sil-pb__lights i { width: 6cqw; height: 6cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ece6ee 45%, #b9adbf); box-shadow: inset 0 -0.6cqw 0 rgba(0, 0, 0, 0.12); transition: background 0.25s, box-shadow 0.25s; }
.sil-pb__lights i.is-on { background: radial-gradient(circle at 35% 30%, #fff, #ffe9a0 45%, #ffc24a); box-shadow: 0 0 3cqw 0.6cqw rgba(255, 205, 90, 0.85); }
.sil-pb__slot { position: absolute; left: 24%; right: 24%; top: 70.5%; height: 4.6%; padding: 1.2cqw; border-radius: 2.4cqw; background: linear-gradient(180deg, var(--pb-trim3), var(--pb-trim4)); box-shadow: 0 1cqw 2cqw rgba(60, 30, 20, 0.25); }
.sil-pb__slot i { display: block; height: 100%; border-radius: 1.4cqw; background: #2a1c26; transition: box-shadow 0.3s, background 0.3s; }
.sil-pb.is-printing .sil-pb__slot i { background: #5c3a4a; animation: sil-pb-glow 0.7s ease-in-out infinite alternate; }
@keyframes sil-pb-glow { from { box-shadow: 0 0 1cqw rgba(255, 200, 120, 0.5); } to { box-shadow: 0 0 5cqw 1cqw rgba(255, 210, 130, 0.95); } }
.sil-pb__out { position: absolute; left: 50%; top: 73.6%; z-index: 2; width: 40%; height: 70%; margin-left: -20%; overflow: hidden; }
.sil-pb__out .sil-pb__strip { width: 100%; font-size: 3cqw; }
.sil-pb__out .sil-pb__strip.is-printing { animation: sil-pb-print 1.45s cubic-bezier(0.35, 0.1, 0.3, 1) both; }
@keyframes sil-pb-print { from { transform: translateY(-101%); } }
.sil-pb__out .sil-pb__tape, .sil-pb__out .sil-pb__deco { display: none; }
.sil-pb__out .sil-pb__shot { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.sil-pb__pad { position: absolute; bottom: 3%; width: 14%; height: 4.5%; border-radius: 1.5cqw 1.5cqw 3cqw 3cqw; background: linear-gradient(180deg, var(--pb-trim3), var(--pb-trim4)); }
.sil-pb__pad.is-l { left: 11%; }
.sil-pb__pad.is-r { right: 11%; }
.sil-pb__base { position: absolute; left: 3%; right: 3%; bottom: 6.5%; height: 5.5%; border-radius: 2cqw; background: linear-gradient(180deg, var(--pb-base1), var(--pb-base2)); box-shadow: inset 0 1cqw 0 rgba(255, 255, 255, 0.2), 0 1.5cqw 3cqw rgba(60, 30, 50, 0.25); }
/* Dải ảnh */
.sil-pb__strip { position: relative; padding: 0.8em 0.8em 0.4em; background: var(--pb-paper); box-shadow: 0 0.6em 1.4em rgba(60, 30, 40, 0.22); font-size: 10px; }
.sil-pb__frames { display: grid; gap: 0.7em; margin: 0; padding: 0; list-style: none; }
.sil-pb__shot { position: relative; overflow: hidden; width: var(--fw, 140px); height: var(--fh, 105px); background: var(--pb-blank2); }
.sil-pb__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sil-pb--tone-warm .sil-pb__shot img { filter: sepia(0.5) saturate(1.15) contrast(1.04) brightness(1.03); }
.sil-pb--tone-bw .sil-pb__shot img { filter: grayscale(1) contrast(1.12) brightness(1.04); }
.sil-pb__blank, .sil-pb__tint { position: absolute; inset: 0; }
.sil-pb__blank { background: linear-gradient(160deg, var(--pb-blank1), var(--pb-blank2)); }
.sil-pb__tint { background: var(--pb-dev); mix-blend-mode: multiply; opacity: 0; }
.sil-pb--tone-bw .sil-pb__tint { background: rgba(110, 110, 110, 0.4); }
.sil-pb__pin.is-developing .sil-pb__blank { animation: sil-pb-dev 0.76s ease 0.6s forwards; }
.sil-pb__pin.is-developing .sil-pb__tint { animation: sil-pb-tint 1.6s ease 0.6s forwards; }
.sil-pb__pin.is-developing .sil-pb__shot:nth-child(2) i { animation-delay: 0.95s; }
.sil-pb__pin.is-developing .sil-pb__shot:nth-child(3) i { animation-delay: 1.3s; }
@keyframes sil-pb-dev { to { opacity: 0; } }
@keyframes sil-pb-tint { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.sil-pb__foot { margin: 0.5em 0 0.2em; font: var(--pb-foot-font); letter-spacing: 0.04em; color: var(--pb-foot); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sil-pb__foot b { font-weight: 400; color: var(--pb-foot-heart); }
.sil-pb__foot.is-auto { text-transform: uppercase; }
.sil-pb--rose .sil-pb__foot.is-auto, .sil-pb--ivory .sil-pb__foot.is-auto { text-transform: none; }
.sil-pb__tape { position: absolute; left: 50%; top: -11px; z-index: 1; width: 42%; height: 20px; margin-left: -21%; background: repeating-linear-gradient(135deg, var(--pb-tape1) 0 6px, var(--pb-tape2) 6px 12px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transform: rotate(var(--tape-tilt, -4deg)); }
.sil-pb__wall { position: absolute; inset: 0; z-index: 2; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.sil-pb__wall::-webkit-scrollbar { display: none; }
.sil-pb.is-roll .sil-pb__wall { opacity: 1; pointer-events: auto; transition: none; }
.sil-pb__pin { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: start; }
.sil-pb__pin .sil-pb__strip { transform: rotate(-1.2deg); }
.sil-pb__pin:nth-child(even) .sil-pb__strip { transform: rotate(1.4deg); }
.sil-pb__heart { position: absolute; z-index: 7; pointer-events: none; }
.sil-pb__heart svg { display: block; width: 100%; height: 100%; fill: var(--pb-heart-fly); }
/* Chưa có ảnh: dải ảnh mờ nét đứt */
.sil-pb.is-empty .sil-pb__out { height: 25%; }
.sil-pb__ghost { display: grid; gap: 2.4cqw; padding: 2.6cqw; border: 0.8cqw dashed var(--pb-ghost); border-radius: 1.5cqw; background: var(--pb-ghost-bg); }
.sil-pb__ghost i { display: block; aspect-ratio: 4 / 3; border: 0.6cqw dashed var(--pb-ghost); border-radius: 1cqw; opacity: 0.7; }
.sil-pb.is-empty .sil-pb__ghost { animation: sil-pb-print 1.4s cubic-bezier(0.35, 0.1, 0.3, 1) 0.9s both; }
/* Điều khiển dưới máy */
.sil-pb__controls { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; padding-top: 12px; }
.sil-pb__info { display: grid; gap: 1px; min-width: 96px; margin: 0; padding: 5px 14px; border-radius: 16px; background: rgba(255, 253, 249, 0.86); text-align: center; font: 500 12px var(--sans, Inter, system-ui, sans-serif); color: var(--pb-muted); }
.sil-pb__info strong { font: 700 14px var(--sans, Inter, system-ui, sans-serif); color: var(--pb-ink); }
.sil-pb.is-empty .sil-pb__info strong { font-weight: 500; color: var(--pb-muted); }
.sil-pb__round { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e6d9d7; border-radius: 30px; background: #fffdf9; color: var(--pb-ink); box-shadow: 0 5px 12px rgba(57, 35, 60, 0.06); cursor: pointer; transition: transform 0.18s; }
.sil-pb__round:hover { transform: translateY(-1px); }
.sil-pb__round:disabled { opacity: 0.4; cursor: default; transform: none; }
.sil-pb__round svg { width: 18px; height: 18px; }
.sil-pb.has-roll.is-roll .sil-pb__round { display: grid; }
.sil-pb__pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid #e6d9d7; border-radius: 999px; background: #fffdf9; color: var(--pb-ink); font: 700 14px var(--sans, Inter, system-ui, sans-serif); cursor: pointer; transition: opacity 0.3s, transform 0.3s; }
.sil-pb.is-shooting .sil-pb__pill, .sil-pb.is-printing .sil-pb__pill, .sil-pb:not(.is-roll):not(.is-empty) .sil-pb__pill { opacity: 0; transform: translateY(6px); pointer-events: none; }
.sil-pb.is-empty .sil-pb__pill { display: none; }
.sil-pb:not(.is-roll):not(.is-empty) .sil-pb__info { visibility: hidden; }

/* Thư tình niêm phong – trang "Ảnh của chúng mình" dùng máy chụp ảnh */
.fx-pb { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 74px 14px 112px; overflow: hidden; }
.fx-pb .sil-pb { max-width: 440px; }
.fx-pb__head { position: relative; z-index: 4; display: block; margin: 0 auto 2px; padding: 8px 18px 9px; border-radius: 18px; background: rgba(251, 246, 238, 0.86); box-shadow: 0 6px 18px rgba(59, 42, 35, 0.08); text-align: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fx-pb__head .fx-bl__kicker { padding: 0; }
.fx-pb__title { margin: 2px 0 0; font: italic 600 clamp(21px, 5.8vw, 27px)/1.15 var(--serif); color: #3b2a23; text-wrap: balance; }
.fx-pb__deco { position: absolute; z-index: 3; width: 22%; aspect-ratio: 1; object-fit: contain; pointer-events: none; filter: drop-shadow(0 1.5cqw 1.5cqw rgba(60, 20, 30, 0.25)); }
.fx-pb__deco--l { left: -3%; top: -5%; transform: rotate(-18deg); }
.fx-pb__deco--r { right: -2%; top: 3%; width: 16%; transform: rotate(22deg); }
.fx-pb__deco.is-emoji, .fx-pb__sticker.is-emoji { display: grid; place-items: center; font-size: 8cqw; }
.fx-pb__sticker { position: absolute; right: -1.3em; top: -1.4em; z-index: 2; width: 4.4em; height: 4.4em; object-fit: contain; pointer-events: none; transform: rotate(14deg); filter: drop-shadow(0 0.3em 0.4em rgba(60, 20, 30, 0.28)); }
.fx-pb__sticker.is-left { right: auto; left: -1.3em; transform: rotate(-16deg); }
.fx-bl--night .fx-pb__head { background: rgba(32, 22, 20, 0.72); }
.fx-bl--night .fx-pb__title { color: #f6e9df; }
.fx-bl--night .fx-pb__head .fx-bl__kicker { color: #f3c4b3; }

/* ==================================================================
 * Hồi âm · nút dock · thư hẹn giờ (view.js)
 * ================================================================== */
.sil-dock { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-wrap: wrap; gap: 8px; animation: sil-in-up 0.6s ease both; }
.sil-dock .sil-made-with { position: static; animation: none; }
.sil-view--bao-thu .sil-dock, .sil-view--tiec-sinh-nhat .sil-dock { top: max(12px, env(safe-area-inset-top)); bottom: auto; }
.sil-reply-pill { padding: 9px 14px; border: 0; border-radius: 999px; background: #d1264f; color: #fff; font: 700 12.5px/1.2 var(--sans); box-shadow: 0 8px 24px rgba(209, 38, 79, 0.35); cursor: pointer; }
.sil-reply { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; padding: 0 0 max(12px, env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .sil-reply { place-items: center; } }
.sil-reply__bg { position: absolute; inset: 0; background: rgba(30, 12, 24, 0.5); opacity: 0; transition: opacity 0.3s ease; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sil-reply__card { position: relative; width: min(440px, calc(100% - 24px)); padding: 26px 22px 20px; border-radius: 26px; background: #fffaf6; box-shadow: 0 24px 60px rgba(40, 10, 30, 0.35); color: #3b2a23; text-align: center; transform: translateY(30px); opacity: 0; transition: transform 0.4s cubic-bezier(0.2, 1.1, 0.3, 1), opacity 0.3s; }
.sil-reply.is-in .sil-reply__bg { opacity: 1; }
.sil-reply.is-in .sil-reply__card { transform: none; opacity: 1; }
.sil-reply__close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(59, 42, 35, 0.06); color: #3b2a23; font-size: 22px; line-height: 1; cursor: pointer; }
.sil-reply__kicker { margin: 0; font: 700 11px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: #a3214a; }
.sil-reply__title { margin: 4px 0 6px; font: italic 600 26px/1.15 "Cormorant Garamond", Georgia, serif; color: #2e1a1d; }
.sil-reply__lead { margin: 0 0 14px; font: 14px/1.45 var(--sans); color: #6f5a5a; }
.sil-reply__emojis { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.sil-reply__emo { width: 48px; height: 48px; border: 2px solid transparent; border-radius: 50%; background: #f6ebe6; font-size: 24px; line-height: 1; cursor: pointer; transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.2s, background 0.2s; }
.sil-reply__emo:hover { transform: scale(1.08); }
.sil-reply__emo.is-on { border-color: #d1264f; background: #fde3ec; transform: scale(1.15); }
.sil-reply__text { display: block; width: 100%; padding: 12px 14px; border: 1px solid #ead9d2; border-radius: 16px; background: #fff; color: #3b2a23; font: 15px/1.5 var(--sans); resize: vertical; }
.sil-reply__text:focus { outline: 2px solid rgba(209, 38, 79, 0.35); border-color: #d1264f; }
.sil-reply__err { min-height: 18px; margin: 6px 0; font: 600 13px var(--sans); color: #c0263f; }
.sil-reply__send { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 18px; border: 0; border-radius: 999px; background: #a3214a; color: #fff; font: 700 15.5px var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px rgba(163, 33, 74, 0.3); }
.sil-reply__send.is-ghost { margin-top: 8px; background: transparent; color: #6f5a5a; box-shadow: none; }
.sil-reply__send.is-loading { opacity: 0.6; pointer-events: none; }
.sil-reply__done { padding-top: 6px; }
.sil-reply__big { display: block; font-size: 64px; line-height: 1; animation: sil-reply-pop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes sil-reply-pop { from { transform: scale(0.2) rotate(-20deg); opacity: 0; } }
/* Thư hẹn giờ */
.sil-gate--countdown .sil-gate__card { max-width: 420px; }
.sil-cd__env { position: relative; width: 84px; height: 84px; margin: 0 auto 10px; font-size: 64px; line-height: 84px; animation: fx-cd-float 4s ease-in-out infinite; }
.sil-cd__env i { position: absolute; right: -8px; bottom: -2px; font-size: 30px; font-style: normal; line-height: 1; }
@keyframes fx-cd-float { 50% { transform: translateY(-6px) rotate(-3deg); } }
.sil-cd__kicker { margin: 0 0 4px; font: 700 11px/1.4 var(--sans, sans-serif); letter-spacing: 0.2em; text-transform: uppercase; color: #ffc2d6; }
.sil-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px; }
.sil-cd__cell { padding: 10px 4px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.sil-cd__cell b { display: block; font: 800 28px/1.1 var(--sans, sans-serif); font-variant-numeric: tabular-nums; color: #fff; }
.sil-cd__cell small { font: 600 11px var(--sans, sans-serif); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.sil-cd.is-zero .sil-cd__cell { background: rgba(255, 143, 177, 0.25); }
.sil-cd__note { margin-bottom: 14px; }
.bloom-table-btn.is-reply { background: #fff; color: #a3214a; border: 1.5px solid rgba(163, 33, 74, 0.45); box-shadow: 0 8px 18px -10px rgba(163, 33, 74, 0.5); }

/* Thư tình: lời nhắn giọng nói trong lá thư */
.fx-vo { --p: 0; position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; padding: 10px 14px 10px 10px; border-radius: 999px; background: rgba(142, 35, 51, 0.07); box-shadow: inset 0 0 0 1px rgba(142, 35, 51, 0.14); }
.fx-vo__play { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--wine, #8e2333); color: #fff9f4; box-shadow: 0 8px 18px -6px rgba(142, 35, 51, 0.55); cursor: pointer; transition: transform 0.2s; }
.fx-vo__play:active { transform: scale(0.94); }
.fx-vo__play svg { width: 22px; height: 22px; }
.fx-vo.is-playing .fx-vo__play { animation: fx-vo-pulse 1.4s ease-in-out infinite; }
@keyframes fx-vo-pulse { 50% { box-shadow: 0 0 0 8px rgba(142, 35, 51, 0.12), 0 8px 18px -6px rgba(142, 35, 51, 0.55); } }
.fx-vo__mid { flex: 1; min-width: 0; display: grid; gap: 5px; }
.fx-vo__mid b { overflow: hidden; font: 600 12.5px/1.2 var(--sans); color: var(--wine, #8e2333); white-space: nowrap; text-overflow: ellipsis; }
.fx-vo__bars { display: flex; align-items: center; gap: 2px; height: 22px; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) * 100%), rgba(0, 0, 0, 0.35) calc(var(--p) * 100%)); mask-image: linear-gradient(90deg, #000 calc(var(--p) * 100%), rgba(0, 0, 0, 0.35) calc(var(--p) * 100%)); }
.fx-vo__bars i { flex: 1; border-radius: 2px; background: var(--wine, #8e2333); }
.fx-vo.is-playing .fx-vo__bars i { animation: fx-vo-wave 0.9s ease-in-out infinite alternate; }
.fx-vo.is-playing .fx-vo__bars i:nth-child(3n) { animation-delay: -0.3s; }
.fx-vo.is-playing .fx-vo__bars i:nth-child(3n+1) { animation-delay: -0.6s; }
@keyframes fx-vo-wave { to { transform: scaleY(0.55); } }
.fx-vo__time { flex: none; min-width: 34px; font: 600 12.5px var(--sans); font-variant-numeric: tabular-nums; color: #6f4a4f; text-align: right; }
.sil-cd__open[hidden] { display: none !important; }
