/* SOBA – hiển thị thiệp thiết kế tự do (dùng chung cho trình thiết kế & trang khách xem) */
.cv-sec { position: relative; overflow: hidden; background-size: cover; background-position: center; flex: none; }
.cv-el { position: absolute; box-sizing: border-box; transform-origin: center center; }
.cv-text { width: 100%; min-height: 100%; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.cv-img { width: 100%; height: 100%; overflow: hidden; box-sizing: border-box; position: relative; }
.cv-img img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.cv-img-empty { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 10px, rgba(0,0,0,.08) 10px 20px); color: rgba(0,0,0,.45); font: 600 13px/1.3 'Be Vietnam Pro', sans-serif; text-align: center; }
.cv-shape { width: 100%; height: 100%; box-sizing: border-box; }
.cv-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cv-widget { width: 100%; height: 100%; box-sizing: border-box; font-size: 14px; line-height: 1.45; border-radius: 14px; }
.cv-widget *, .cv-widget *::before, .cv-widget *::after { box-sizing: border-box; }

/* Nút & thẻ trong tiện ích */
.cv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 18px; color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; width: 100%; }
.cv-btn-sm { padding: 7px 12px; font-size: 13px; width: auto; }
.cv-btn:disabled { opacity: .6; cursor: default; }
.cv-card { background: rgba(255,255,255,.92); color: #333; border-radius: 14px; padding: 16px; box-shadow: 0 8px 24px -14px rgba(0,0,0,.35); height: 100%; overflow: hidden; }
.cv-w-title { font-weight: 700; text-align: center; margin-bottom: 10px; }
.cv-empty { text-align: center; color: #888; font-size: 13px; display: grid; place-items: center; }
.cv-form { display: grid; gap: 8px; }
.cv-form input, .cv-form select, .cv-form textarea { width: 100%; border: 1px solid #e3d8da; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; background: #fff; color: #333; }
.cv-form textarea { resize: none; }
.cv-row { display: grid; grid-template-columns: 1fr 84px; gap: 8px; }
.cv-rsvp-more { grid-template-columns: 1fr 118px; }
.cv-radios { display: grid; gap: 6px; padding: 2px 2px 4px; }
.cv-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; line-height: 1.3; }
.cv-radio input { width: 17px; height: 17px; margin: 0; flex: none; }
.cv-rsvp-no .cv-rsvp-more { display: none; }
.cv-ta { position: relative; }
.cv-ta textarea { padding-right: 40px; }
.cv-suggest { position: absolute; right: 6px; bottom: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.05); cursor: pointer; font-size: 15px; line-height: 1; }
.cv-suggest:hover { background: rgba(0,0,0,.1); }
.cv-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }

/* Đếm ngược */
.cv-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 100%; }
.cv-cd-box { border: 1.5px solid; border-radius: 14px; display: grid; place-content: center; text-align: center; background: rgba(255,255,255,.08); }
.cv-cd-box b { font-size: 28px; line-height: 1.1; }
.cv-cd-box span { font-size: 12px; opacity: .8; }

/* Lịch */
.cv-cal { height: 100%; display: flex; flex-direction: column; padding: 6px; }
.cv-cal-title { text-align: center; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.cv-cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; text-align: center; align-items: center; justify-items: center; }
.cv-cal-wd { font-weight: 700; font-size: 12px; }
.cv-cal-d { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; }
.cv-cal-d.on { color: #fff; font-weight: 700; }

/* Bản đồ */
.cv-map { height: 100%; display: flex; flex-direction: column; gap: 10px; }
.cv-map-frame, .cv-map-btn { height: 100%; padding: 0 14px; font-size: 14px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.45); }
.cv-map-ph { flex: 1; width: 100%; border: 0; border-radius: 14px; min-height: 0; }
.cv-map-ph { display: grid; place-items: center; padding: 12px; text-align: center; background: rgba(255,255,255,.85); color: #555; font-size: 13px; }

/* Lời chúc */
.cv-wishes { display: flex; flex-direction: column; gap: 10px; }
.cv-wish-list { flex: 1; overflow-y: auto; display: grid; gap: 8px; align-content: start; min-height: 0; }
.cv-wish { background: #faf6f6; border-radius: 10px; padding: 8px 12px; }
.cv-wish b { font-size: 13px; }
.cv-wish p { margin: 2px 0 0; font-size: 13.5px; color: #444; }

/* Mừng cưới */
.cv-gift { height: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.cv-gift-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; text-align: center; }
.cv-gift-item img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; }
.cv-gift-info { display: grid; font-size: 13px; }
.cv-gift-info small { color: #777; }

/* Album */
.cv-album { display: grid; width: 100%; height: 100%; }
.cv-album-item { padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #eee; min-height: 0; }
.cv-album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cv-call { height: 100%; }

/* ===== Trang khách xem ===== */
.cv-page { margin: 0; min-height: 100vh; font-family: 'Be Vietnam Pro', sans-serif; -webkit-font-smoothing: antialiased; }
.cv-viewport { max-width: 480px; margin: 0 auto; box-shadow: 0 0 60px -20px rgba(0,0,0,.4); overflow: hidden; }
.cv-stage { transform-origin: top left; width: 420px; }
.cv-anim { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1), translate .9s cubic-bezier(.2,.7,.2,1), scale .9s ease; }
.cv-anim:not(.in) { opacity: 0 !important; }
.cv-anim-up:not(.in) { translate: 0 40px; }
.cv-anim-down:not(.in) { translate: 0 -40px; }
.cv-anim-left:not(.in) { translate: -50px 0; }
.cv-anim-right:not(.in) { translate: 50px 0; }
.cv-anim-zoom:not(.in) { scale: .85; }
/* Ảnh trồi lên từ trong phong bì */
.cv-anim-rise { transition: opacity .6s ease, translate 1.6s cubic-bezier(.22,.8,.25,1); }
.cv-anim-rise:not(.in) { translate: 0 140px; }
@media (prefers-reduced-motion: reduce) { .cv-anim { transition: none; } .cv-anim:not(.in) { opacity: 1 !important; translate: none; scale: none; } }

.cv-watermark { display: block; text-align: center; padding: 14px; font-size: 12px; color: #fff; background: #222; text-decoration: none; }
.cv-music { position: fixed; right: 14px; bottom: 14px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 6px 20px -6px rgba(0,0,0,.4); font-size: 20px; cursor: pointer; }
.cv-music.on { animation: cvspin 4s linear infinite; }
.cv-music-ic { position: relative; z-index: 1; }
/* Đĩa nhạc có ảnh cưới */
.cv-disc { padding: 0; overflow: hidden; background: #1b1b1b; border: 3px solid #1b1b1b; box-shadow: 0 6px 20px -6px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.85); }
.cv-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cv-disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; translate: -50% -50%; border-radius: 50%; background: #f4f1ec; box-shadow: 0 0 0 2px #1b1b1b; }
.cv-disc .cv-music-ic { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 17px; background: rgba(0,0,0,.42); border-radius: 50%; transition: opacity .3s; }
.cv-disc.on .cv-music-ic { opacity: 0; }
@keyframes cvspin { to { transform: rotate(360deg); } }
.cv-toast { position: fixed; left: 50%; bottom: 80px; translate: -50% 0; z-index: 60; background: #222; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; max-width: 90vw; text-align: center; }
.cv-lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.cv-lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.cv-lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.cv-lb-close { top: 16px; right: 16px; }
.cv-lb-prev { left: 12px; top: 50%; }
.cv-lb-next { right: 12px; top: 50%; }
.cv-petal { position: fixed; top: -20px; z-index: 20; pointer-events: none; width: 12px; height: 12px; background: #f6b7c6; border-radius: 12px 0; opacity: .85; animation: cvfall linear forwards; }
@keyframes cvfall { to { transform: translate(var(--dx, 40px), 105vh) rotate(540deg); } }
.cv-preview-bar { position: sticky; top: 0; z-index: 40; background: #222; color: #fff; text-align: center; font-size: 13px; padding: 8px; }

/* ===== Màn mở thiệp (gói Basic+) ===== */
body.cvo-lock { overflow: hidden; }
.cvo { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; background: var(--cvo-paper); color: #2b2622; font-family: 'Be Vietnam Pro', sans-serif; transition: opacity .9s ease .5s; overflow: hidden; }
.cvo.open { opacity: 0; pointer-events: none; }
.cvo *, .cvo *::before, .cvo *::after { box-sizing: border-box; }
.cvo.cvo-dark { color: #f5efe6; }
.cvo .cvo-env-letter, .cvo .cvo-page { color: #2b2622; }
.cvo:focus-visible { outline: 3px solid var(--cvo-c); outline-offset: -6px; }
.cvo-pre { font-size: 11px; letter-spacing: .38em; text-transform: uppercase; opacity: .7; }
.cvo-names { font-family: var(--cvo-font); font-size: 40px; line-height: 1.15; margin: 8px 0 4px; }
.cvo-date { font-size: 13px; letter-spacing: .32em; }
.cvo-guest { margin-top: 18px; font-size: 13px; opacity: .85; }
.cvo-guest b { display: block; font-size: 20px; margin-top: 2px; color: var(--cvo-c); }
.cvo-hint { font-size: 12px; letter-spacing: .16em; opacity: .7; animation: cvoPulse 1.8s ease-in-out infinite; text-align: center; }
.cvo-card { position: relative; z-index: 2; text-align: center; padding: 0 24px; animation: cvoIn 1s .1s both; transition: opacity .5s, transform .8s; }
.cvo.opening .cvo-card, .cvo.opening .cvo-env, .cvo.opening .cvo-bk { animation: none; }
@keyframes cvoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cvoPulse { 50% { opacity: .35; } }

/* Phong bì dấu sáp */
.cvo-envelope { background: radial-gradient(circle at 50% 40%, var(--cvo-paper), color-mix(in srgb, var(--cvo-paper) 80%, #000)); }
.cvo-env { position: relative; width: min(330px, 84vw); aspect-ratio: 1.45; margin-top: 70px; perspective: 900px; animation: cvoIn 1s both; }
.cvo-env-back, .cvo-env-front, .cvo-env-flap { position: absolute; left: 0; right: 0; }
.cvo-env-back { inset: 0; background: color-mix(in srgb, var(--cvo-c) 80%, #000); border-radius: 6px; }
.cvo-env-letter { position: absolute; left: 6%; right: 6%; top: 8%; height: 84%; background: #fff; border-radius: 4px; text-align: center; padding: 16px 10px; box-shadow: 0 2px 10px rgba(0,0,0,.15); z-index: 1; transition: transform 1s cubic-bezier(.2,.7,.2,1) .45s; }
.cvo-env-letter .cvo-names { font-size: 28px; }
.cvo-env-front { inset: 0; z-index: 2; background: var(--cvo-c); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; color: #fff; }
.cvo-env-front .cvo-guest { margin: 0; color: #fff; text-align: center; }
.cvo-env-front .cvo-guest b { color: #fff; font-size: 17px; }
.cvo-env-flap { top: 0; height: 56%; z-index: 3; background: color-mix(in srgb, var(--cvo-c) 86%, #fff); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .7s ease, z-index 0s .35s; }
.cvo-seal { position: absolute; z-index: 4; left: 50%; top: 56%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e9c477, #b9852f); box-shadow: 0 4px 12px rgba(0,0,0,.3), inset 0 0 0 4px rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; font-size: 22px; transition: opacity .3s, scale .3s; animation: cvoBeat 1.6s ease-in-out infinite; }
@keyframes cvoBeat { 0%, 100% { scale: 1; } 15% { scale: 1.1; } 30% { scale: 1; } }
.cvo-envelope.opening .cvo-seal { opacity: 0; scale: .4; animation: none; }
.cvo-envelope.opening .cvo-env-flap { transform: rotateX(180deg); z-index: 0; }
.cvo-envelope.opening .cvo-env-letter { transform: translateY(-62%); }

/* Vân tay + rèm */
.cvo-fingerprint { background: transparent; }
.cvo-fingerprint::before, .cvo-fingerprint::after { content: ""; position: absolute; left: 0; right: 0; height: 50.5%; background: var(--cvo-paper); transition: transform 1.25s cubic-bezier(.77,0,.18,1); }
.cvo-fingerprint::before { top: 0; }
.cvo-fingerprint::after { bottom: 0; }
.cvo-fingerprint.open { opacity: 1; transition: opacity .2s 1.2s; }
.cvo-fingerprint.open::before { transform: translateY(-101%); }
.cvo-fingerprint.open::after { transform: translateY(101%); }
.cvo-fingerprint.open .cvo-card { opacity: 0; transform: scale(.92); }
.cvo-fp { position: relative; width: 92px; height: 92px; margin: 40px auto 6px; }
.cvo-fp svg { width: 100%; height: 100%; overflow: visible; }
.cvo-fp path { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.cvo-fp-base path { stroke: color-mix(in srgb, var(--cvo-c) 30%, #fff); }
.cvo-fp-ink path { stroke: var(--cvo-c); stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.1s ease; }
.cvo-fingerprint.opening .cvo-fp-ink path { stroke-dashoffset: 0; }
.cvo-fp::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cvo-c) 35%, transparent); animation: cvoRing 2.2s ease-out infinite; }
@keyframes cvoRing { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.cvo-fp-bar { position: absolute; left: -8px; right: -8px; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--cvo-c), transparent); animation: cvoScan 2s ease-in-out infinite; }
.cvo-fingerprint.opening .cvo-fp-bar { animation-duration: .7s; }
@keyframes cvoScan { 50% { top: 100%; } }
.cvo-fingerprint .cvo-hint { margin-top: 16px; }

/* Cửa hai cánh */
/* doors – hai cánh cửa hoạ tiết lưới, viền vàng, khung thiệp viền đôi ở giữa; chạm thì cửa TRƯỢT sang hai bên (18/11/2026) */
.cvo-doors { background: color-mix(in srgb, var(--cvo-c) 30%, #000); }
.cvo-door { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; background-color: var(--cvo-c); background-image: linear-gradient(45deg, rgba(0,0,0,.07) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.07) 75%), linear-gradient(45deg, rgba(0,0,0,.07) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.07) 75%), linear-gradient(90deg, rgba(0,0,0,.18), transparent 30%); background-size: 22px 22px, 22px 22px, 100% 100%; background-position: 0 0, 11px 11px, 0 0; transition: transform 1.5s cubic-bezier(.65,0,.25,1); }
.cvo-door.l { left: 0; box-shadow: inset -1px 0 0 #d9b26a, inset -10px 0 24px -12px rgba(0,0,0,.6); }
.cvo-door.r { right: 0; box-shadow: inset 1px 0 0 #d9b26a, inset 10px 0 24px -12px rgba(0,0,0,.6); background-image: linear-gradient(45deg, rgba(0,0,0,.07) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.07) 75%), linear-gradient(45deg, rgba(0,0,0,.07) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.07) 75%), linear-gradient(270deg, rgba(0,0,0,.18), transparent 30%); }
.cvo-door::before { content: ''; position: absolute; top: 16px; bottom: 16px; border: 1px solid rgba(217,178,106,.7); }
.cvo-door.l::before { left: 16px; right: 8px; }
.cvo-door.r::before { right: 16px; left: 8px; }
.cvo-door::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 18px; margin-top: -9px; background: linear-gradient(180deg, #f3d58f, #c79b45 60%, #a87a2c); box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.cvo-knob { display: none; }
.cvo-doors .cvo-card { color: #fff3dc; background: color-mix(in srgb, var(--cvo-c) 82%, #000); padding: 28px 26px 24px; margin: 0 22px; max-width: 330px; border: 1px solid #d9b26a; outline: 1px solid #d9b26a; outline-offset: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.45); transition: opacity .6s, transform .8s; }
.cvo-doors .cvo-names { color: #fff6e4; }
.cvo-doors .cvo-guest b { color: #f1c66b; }
.cvo-doors .cvo-hint { color: #fff3dc; }
.cvo-hy { font-family: 'Noto Serif', serif; font-size: 50px; line-height: 1; color: #f1c66b; margin-bottom: 8px; }
.cvo-doors.opening .cvo-card { opacity: 0; transform: scale(1.08); }
.cvo-doors.opening .cvo-door.l { transform: translateX(-102%); transition-delay: .3s; }
.cvo-doors.opening .cvo-door.r { transform: translateX(102%); transition-delay: .3s; }
.cvo-doors.open { transition-delay: .9s; }

/* Lật bìa thiệp */
.cvo.cvo-book { background: radial-gradient(circle at 50% 40%, var(--cvo-paper), color-mix(in srgb, var(--cvo-paper) 75%, #000)); }
.cvo-bk { position: relative; width: min(300px, 76vw); aspect-ratio: .7; perspective: 1400px; animation: cvoIn 1s both; }
.cvo-page, .cvo-cover { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; overflow: hidden; }
.cvo-page { background: #fff; box-shadow: 0 16px 40px -14px rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.cvo-page .cvo-names { font-size: 32px; }
.cvo-cover { transform-origin: left center; transition: transform 1.3s cubic-bezier(.5,0,.2,1); box-shadow: 0 16px 40px -14px rgba(0,0,0,.5); background: var(--cvo-c); backface-visibility: hidden; }
.cvo-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvo-cover-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 14px 18px; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.cvo-cover-txt .cvo-names { font-size: 32px; }
.cvo.cvo-book.opening .cvo-cover { transform: rotateY(-170deg); }

@media (prefers-reduced-motion: reduce) { .cvo *, .cvo::before, .cvo::after { transition-duration: .01s !important; animation: none !important; } }

/* ===== Thanh tiện ích nổi ===== */
body.cvt-on .cv-viewport { padding-bottom: 72px; }
.cv-music.cv-music-top { top: 14px; bottom: auto; right: max(14px, calc(50% - 226px)); width: 42px; height: 42px; font-size: 18px; }
.cvt-bar { position: fixed; z-index: 65; left: 50%; bottom: 0; width: 100%; max-width: 480px; transform: translate(-50%, 110%); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; background: linear-gradient(transparent, rgba(255,255,255,.92) 38%); transition: transform .7s cubic-bezier(.2,.8,.2,1); box-sizing: border-box; font-family: 'Be Vietnam Pro', sans-serif; }
body.cvt-show .cvt-bar { transform: translate(-50%, 0); }
.cvt-b { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.16); font-size: 18px; color: #333; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.cvt-b:active, .cvt-shoot:active { transform: scale(.9); }
.cvt-red { background: var(--cvt-c); color: #fff; }
.cvt-like span[aria-hidden] { color: var(--cvt-c); font-size: 19px; }
.cvt-like.pop span[aria-hidden] { animation: cvtPop .45s; }
@keyframes cvtPop { 40% { transform: scale(1.45); } }
.cvt-cnt { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--cvt-c); color: #fff; font: 600 10px/18px 'Be Vietnam Pro', sans-serif; padding: 0 4px; border: 2px solid #fff; box-sizing: content-box; }
.cvt-pill { flex: 1; min-width: 0; height: 40px; border-radius: 22px; border: 0; background: rgba(40,38,35,.74); color: #fff; font: italic 400 13.5px 'Be Vietnam Pro', sans-serif; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; white-space: nowrap; overflow: hidden; backdrop-filter: blur(6px); }
.cvt-shoot { flex: none; height: 40px; border-radius: 22px; border: 0; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.16); display: flex; align-items: center; gap: 4px; padding: 0 12px 0 9px; font: 600 12px 'Be Vietnam Pro', sans-serif; color: var(--cvt-c); cursor: pointer; transition: transform .15s; white-space: nowrap; }
.cvt-shoot span { font-size: 16px; }
.cvt-wishes { position: fixed; z-index: 64; left: max(12px, calc(50% - 228px)); bottom: calc(68px + env(safe-area-inset-bottom)); width: min(270px, calc(100% - 90px)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; font-family: 'Be Vietnam Pro', sans-serif; }
.cvt-wb { align-self: flex-start; max-width: 100%; box-sizing: border-box; background: color-mix(in srgb, var(--cvt-c) 76%, transparent); color: #fff; font-size: 12px; line-height: 1.45; padding: 6px 12px; border-radius: 16px; backdrop-filter: blur(4px); animation: cvtIn .6s ease both; box-shadow: 0 2px 8px rgba(0,0,0,.1); overflow-wrap: anywhere; }
.cvt-wb.mine { background: rgba(40,38,35,.84); }
.cvt-wb.out { animation: cvtOut .5s ease forwards; }
@keyframes cvtIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes cvtOut { to { opacity: 0; transform: translateY(-12px); } }
.cvt-fh { position: fixed; z-index: 95; pointer-events: none; will-change: transform, opacity; }
.cvt-big { position: fixed; z-index: 96; left: 50%; top: 45%; font-size: 110px; transform: translate(-50%, -50%) scale(0); pointer-events: none; animation: cvtBig 1.3s ease forwards; }
@keyframes cvtBig { 30% { transform: translate(-50%, -50%) scale(1.15); } 45% { transform: translate(-50%, -50%) scale(.95); } 60% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(1.2); opacity: 0; } }
.cvt-sheet-bg { position: fixed; inset: 0; z-index: 110; background: rgba(20,18,15,.45); opacity: 0; visibility: hidden; transition: .35s; }
.cvt-sheet-bg.open { opacity: 1; visibility: visible; }
.cvt-sheet { position: fixed; z-index: 111; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; box-sizing: border-box; background: #fff; color: #2b2622; border-radius: 22px 22px 0 0; padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); font-family: 'Be Vietnam Pro', sans-serif; visibility: hidden; }
.cvt-sheet.open { transform: translate(-50%, 0); visibility: visible; }
.cvt-grab { width: 40px; height: 4px; border-radius: 2px; background: #ddd; margin: 0 auto 12px; }
.cvt-sheet h3 { margin: 0; font-size: 20px; text-align: center; }
.cvt-sub { margin: 2px 0 14px; text-align: center; font-size: 12.5px; color: #777; }
.cvt-x { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f4f1ec; cursor: pointer; font-size: 18px; line-height: 1; }
.cvt-form { display: grid; gap: 10px; }
.cvt-form input, .cvt-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #e3d8da; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; resize: none; }
.cvt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cvt-chips button { border: 1px solid #ece6df; background: #faf7f3; border-radius: 16px; padding: 6px 11px; font: 400 12px 'Be Vietnam Pro', sans-serif; cursor: pointer; color: #333; }
.cvt-send { border: 0; border-radius: 999px; padding: 12px; background: var(--cvt-c); color: #fff; font: 600 14px 'Be Vietnam Pro', sans-serif; cursor: pointer; }
.cvt-send:disabled { opacity: .6; }
.cvt-qrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cvt-qr { border: 1px solid #eee5dc; border-radius: 18px; padding: 14px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.cvt-qr img { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: contain; }
.cvt-qr-l { font-weight: 700; color: var(--cvt-c); font-size: 13px; }
.cvt-qr-bank { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #888; margin-top: 4px; }
.cvt-qr-name { font-weight: 600; font-size: 14px; }
.cvt-qr-no { font-size: 17px; letter-spacing: .06em; }
.cvt-copy { margin-top: 6px; border: 1px solid #2b2622; background: transparent; border-radius: 30px; padding: 7px 14px; font: 500 12px 'Be Vietnam Pro', sans-serif; cursor: pointer; color: #2b2622; }
.cvt-demo { color: #999; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .cvt-bar, .cvt-sheet { transition: none; } }

/* ===== Mẫu phong cách "kính mờ" (17/11/2026) ===== */
/* Đĩa than xoay khi nhạc đang phát; chạm vào đĩa để bật/tắt nhạc */
.cv-anim-spin { cursor: pointer; }
.cv-anim-spin > * { animation: cvspin 14s linear infinite; animation-play-state: paused; }
body.cv-playing .cv-anim-spin > * { animation-play-state: running; }

/* Ký tên lưu bút */
.cv-sign { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.cv-sign-wall { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 6px 10px; padding: 8px; }
.cv-sign-item { margin: 0; width: 30%; padding: 4px 6px 3px; border-radius: 10px; background: rgba(255,255,255,.72); box-shadow: 0 4px 14px -8px rgba(0,0,0,.45); backdrop-filter: blur(3px); }
.cv-sign-item img { width: 100%; aspect-ratio: 2; object-fit: contain; display: block; }
.cv-sign-item figcaption { font-size: 10px; text-align: center; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-sign-empty { margin: auto; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.75); color: #555; font-size: 13px; }
.cv-sign-btn { width: auto; align-self: center; padding: 11px 24px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.55); }
.cvs-wrap { position: relative; border: 1.5px dashed #d8cfc4; border-radius: 14px; background: #fffdf9; }
.cvs-pad { display: block; width: 100%; aspect-ratio: 2; touch-action: none; cursor: crosshair; }
.cvs-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #c4b8aa; font: italic 400 15px 'Be Vietnam Pro', sans-serif; pointer-events: none; transition: opacity .3s; }
.cvs-wrap.signed .cvs-hint { opacity: 0; }
.cvs-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.cvs-clear { border: 1px solid #ddd3c8; background: #fff; border-radius: 999px; padding: 0 18px; font: 500 13px 'Be Vietnam Pro', sans-serif; cursor: pointer; color: #555; }
.cvt-form select { width: 100%; box-sizing: border-box; border: 1px solid #e3d8da; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }

/* Dresscode */
.cv-dress { height: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; }
.cv-dress-item { display: grid; justify-items: center; gap: 6px; width: 64px; }
.cv-dress-dot { width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.7), 0 6px 16px -8px rgba(0,0,0,.45); }
.cv-dress-item small { font-size: 11.5px; text-align: center; line-height: 1.3; }

/* Thêm vào lịch */
.cv-addcal { height: 100%; background: rgba(255,255,255,.85); border: 1.5px solid; font-size: 13.5px; padding: 0 16px; }

/* Hộp quà chạm để mở */
.cv-giftbox { height: 100%; position: relative; }
.cv-giftbox-lid { position: absolute; inset: 0; z-index: 1; width: 100%; border: 1.5px dashed; border-radius: 22px; background: rgba(255,255,255,.88); display: grid; place-content: center; justify-items: center; gap: 6px; cursor: pointer; font: inherit; transition: opacity .5s, transform .5s; box-shadow: 0 12px 30px -18px rgba(0,0,0,.5); }
.cv-giftbox-ic { font-size: 54px; line-height: 1; animation: cvGiftBob 2.2s ease-in-out infinite; }
.cv-giftbox-lid b { font-size: 15px; letter-spacing: .02em; }
.cv-giftbox-lid small { font-size: 12px; color: #777; }
.cv-giftbox > .cv-gift { opacity: 0; transform: scale(.94); transition: opacity .5s .15s, transform .5s .15s; }
.cv-giftbox.open .cv-giftbox-lid { opacity: 0; transform: scale(1.08); pointer-events: none; }
.cv-giftbox.open > .cv-gift { opacity: 1; transform: none; }
@keyframes cvGiftBob { 50% { transform: translateY(-6px) rotate(-4deg); } }

/* ===== Mở thiệp: rèm lụa & bướm bay ===== */
.cvo-curtain { background: var(--cvo-paper); }
.cvo-cur { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 1; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cvo-paper) 92%, #000) 0 14px, color-mix(in srgb, var(--cvo-paper) 97%, #fff) 14px 34px, color-mix(in srgb, var(--cvo-paper) 88%, #000) 34px 46px); transition: transform 1.5s cubic-bezier(.65,0,.25,1); box-shadow: inset 0 0 60px rgba(0,0,0,.08); }
.cvo-cur.l { left: 0; transform-origin: left; }
.cvo-cur.r { right: 0; transform-origin: right; }
.cvo-curtain.opening .cvo-cur.l { transform: translateX(-100%) scaleX(.6); }
.cvo-curtain.opening .cvo-cur.r { transform: translateX(100%) scaleX(.6); }
.cvo-curtain.open { transition-delay: 1s; }
.cvo-arch { width: min(320px, 84vw); padding: 34px 22px 26px; border-radius: 170px 170px 26px 26px; background: color-mix(in srgb, var(--cvo-paper) 70%, #fff); box-shadow: 0 0 0 10px color-mix(in srgb, var(--cvo-paper) 85%, #fff), 0 0 0 11px color-mix(in srgb, var(--cvo-c) 25%, transparent), 0 30px 60px -30px rgba(0,0,0,.35); }
.cvo-to { font-family: var(--cvo-font); font-size: 30px; color: var(--cvo-c); line-height: 1.2; margin-top: 2px; }
.cvo-heart { width: 190px; height: 172px; margin: 14px auto 6px; clip-path: path('M95 170C38 132 4 98 4 58 4 27 27 4 56 4c17 0 30 8 39 22C104 12 117 4 134 4c29 0 52 23 52 54 0 40-34 74-91 112z'); }
.cvo-heart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvo-names-stack { display: grid; font-size: 32px; line-height: 1.05; }
.cvo-names-stack i { font-style: normal; font-size: 20px; opacity: .7; }
.cvo-btn { display: inline-block; margin-top: 16px; padding: 10px 26px; border-radius: 999px; background: var(--cvo-c); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 10px 24px -12px var(--cvo-c); animation: cvoPulse 2s ease-in-out infinite; }
.cvo-curtain.opening .cvo-card { opacity: 0; transform: scale(.94); }
.cvo-fly { position: fixed; z-index: 120; pointer-events: none; overflow: visible; }
.cvo-fly .w-l, .cvo-fly .w-r { transform-origin: 20px 15px; animation: cvoFlap .22s ease-in-out infinite alternate; }
@keyframes cvoFlap { to { transform: scaleX(.35); } }

/* ===== Mở thiệp: bầu trời sao rơi ===== */
.cvo-stars { background: radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--cvo-paper) 60%, #3a4a7a), var(--cvo-paper) 60%, color-mix(in srgb, var(--cvo-paper) 70%, #000)); color: #eef0ff; }
.cvo-sky { position: absolute; inset: 0; transition: transform 1.6s cubic-bezier(.5,0,.2,1), opacity 1.2s; }
.cvo-star { position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.9); animation: cvoTwinkle 2.6s ease-in-out infinite; }
@keyframes cvoTwinkle { 50% { opacity: .2; transform: scale(.6); } }
.cvo-shoot { position: absolute; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.95), transparent); transform: rotate(-35deg); opacity: 0; animation: cvoShoot 6.5s ease-in infinite; }
@keyframes cvoShoot { 0% { opacity: 0; translate: 0 0; } 4% { opacity: 1; } 14% { opacity: 0; translate: -260px 180px; } 100% { opacity: 0; translate: -260px 180px; } }
.cvo-night { padding: 34px 26px; border-radius: 22px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); backdrop-filter: blur(6px); box-shadow: 0 0 60px -10px color-mix(in srgb, var(--cvo-c) 50%, transparent); }
.cvo-night .cvo-names { color: var(--cvo-c); text-shadow: 0 0 18px color-mix(in srgb, var(--cvo-c) 60%, transparent); }
.cvo-night .cvo-guest b { color: #fff; font-family: var(--cvo-font); font-size: 28px; font-weight: 400; }
.cvo-night .cvo-btn { background: transparent; border: 1px solid var(--cvo-c); color: var(--cvo-c); box-shadow: none; }
.cvo-stars.opening .cvo-sky { transform: scale(2.2); opacity: 0; }
.cvo-stars.opening .cvo-card { opacity: 0; transform: scale(1.12); }
.cvo-stars.open { transition-delay: .6s; }

/* ===== Màn mở thiệp mới (18/11/2026): seal, letter, ribbon, news, oval ===== */
.cvo-sub { font-size: 13px; font-style: italic; opacity: .82; font-family: 'Cormorant Garamond', serif; letter-spacing: .02em; }
.cvo-to { font-family: var(--cvo-font); }

/* seal – hai cánh cửa giấy, dải lụa đỏ, ấn tròn có ảnh */
.cvo-stamp { background: var(--cvo-paper); color: #f6ecd2; justify-content: space-between; padding: 9vh 0 7vh; perspective: 1200px; }
.cvo-stamp .cvo-door { background: var(--cvo-paper) url('/img/nen/giay-hat.svg') center / cover; box-shadow: inset 0 0 0 1px rgba(233,206,140,.35), inset -14px 0 30px -18px rgba(0,0,0,.45); transition: transform 1.4s cubic-bezier(.6,0,.3,1); }
.cvo-stamp .cvo-door.r { box-shadow: inset 0 0 0 1px rgba(233,206,140,.35), inset 14px 0 30px -18px rgba(0,0,0,.45); }
.cvo-stamp .cvo-door::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(233,206,140,.45); }
.cvo-stamp .cvo-door.l::before { right: 0; border-right: 0; }
.cvo-stamp .cvo-door.r::before { left: 0; border-left: 0; }
.cvo-band { position: absolute; left: 0; right: 0; top: 50%; height: 26px; margin-top: -13px; z-index: 2; background: linear-gradient(180deg, color-mix(in srgb, var(--cvo-c) 80%, #fff) 0 2px, var(--cvo-c) 2px calc(100% - 2px), color-mix(in srgb, var(--cvo-c) 70%, #000) calc(100% - 2px)); box-shadow: 0 4px 10px rgba(0,0,0,.25); transition: clip-path 1s ease, opacity .6s .4s; clip-path: inset(0 0 0 0); }
.cvo-medal { position: absolute; left: 50%; top: 50%; z-index: 3; width: min(150px, 38vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; padding: 12px; background: radial-gradient(circle, var(--cvo-c) 58%, color-mix(in srgb, var(--cvo-c) 70%, #000) 100%); box-shadow: 0 0 0 4px #e3c27a, 0 0 0 6px color-mix(in srgb, var(--cvo-c) 60%, #000), 0 14px 30px rgba(0,0,0,.45); animation: cvoBeat 2.6s ease-in-out infinite; transition: transform .8s cubic-bezier(.5,-.4,.5,1), opacity .6s; }
.cvo-medal img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #e3c27a; display: block; }
.cvo-stamp .cvo-card { color: #f6ecd2; }
.cvo-stamp .cvo-names { color: #f3dca4; font-size: 38px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.cvo-stamp .cvo-pre { color: #f3dca4; }
.cvo-stamp .cvo-to { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 26px; color: #fff7e0; margin: 2px 0 6px; }
.cvo-stamp .cvo-btn { background: linear-gradient(180deg, #f6e2a8, #d8b25e); color: #4a3a1a; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.cvo-stamp.opening .cvo-medal { transform: translate(-50%, -50%) scale(0); opacity: 0; animation: none; }
.cvo-stamp.opening .cvo-band { clip-path: inset(0 50% 0 50%); opacity: 0; }
.cvo-stamp.opening .cvo-card { opacity: 0; }
.cvo-stamp.opening .cvo-door.l { transform: translateX(-100%); transition-delay: .35s; }
.cvo-stamp.opening .cvo-door.r { transform: translateX(100%); transition-delay: .35s; }
.cvo-stamp.open { transition-delay: 1.1s; }

/* letter – phong thư kraft, ảnh trượt lên */
.cvo-letter { justify-content: center; gap: 10px; }
.cvo-letter::before { content: ''; position: absolute; inset: 0; background: url('/img/deco/hoa-net.svg') -40px -30px / 220px no-repeat, url('/img/deco/hoa-net.svg') calc(100% + 50px) calc(100% + 40px) / 240px no-repeat; transform: none; opacity: .9; }
.cvo-letter.cvo-light::before { background-image: url('/img/deco/hoa-net-dam.svg'), url('/img/deco/hoa-net-dam.svg'); }
.cvo-lt-head .cvo-names { color: #fff; font-size: 40px; margin: 0; }
.cvo-letter:not(.cvo-dark) .cvo-lt-head .cvo-names { color: var(--cvo-c); }
.cvo-lt-head .cvo-date { opacity: .9; }
.cvo-lt { position: relative; z-index: 2; width: min(320px, 82vw); aspect-ratio: .82; animation: cvoIn 1s .2s both; }
.cvo-lt-back, .cvo-lt-front { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: #e6cfae; border-radius: 6px; }
.cvo-lt-back { box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.cvo-lt-front { z-index: 3; background: linear-gradient(160deg, #ecd8ba, #dcc19b); clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%); box-shadow: inset 0 -8px 20px -10px rgba(0,0,0,.2); }
.cvo-lt-card { position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 24%; height: 80%; background: #fff; padding: 8px 8px 10px; border-radius: 3px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); color: #2b2622; text-align: center; transition: transform 1.1s cubic-bezier(.3,.7,.2,1), opacity .6s .7s; }
.cvo-lt-pic { width: 100%; height: 64%; overflow: hidden; }
.cvo-lt-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvo-lt-card .cvo-sub { margin-top: 6px; font-style: normal; font-family: 'Be Vietnam Pro', sans-serif; font-size: 12px; }
.cvo-lt-card .cvo-to { font-family: 'Be Vietnam Pro', sans-serif; color: var(--cvo-c); font-size: 15px; }
.cvo-lt .cvo-btn { position: absolute; z-index: 4; left: 50%; bottom: 13%; transform: translateX(-50%); white-space: nowrap; text-transform: none; letter-spacing: .04em; font-size: 13px; }
.cvo-lt-from { position: relative; z-index: 2; font-size: 13px; opacity: .85; }
.cvo-letter.opening .cvo-lt-card { transform: translateY(-46%) scale(1.06); }
.cvo-letter.opening .cvo-lt-front, .cvo-letter.opening .cvo-lt-back, .cvo-letter.opening .cvo-btn { transition: transform 1s .5s ease-in, opacity .6s .5s; transform: translateY(80%); opacity: 0; }
.cvo-letter.opening .cvo-lt .cvo-btn { transform: translate(-50%, 200%); }
.cvo-letter.opening .cvo-lt-head, .cvo-letter.opening .cvo-lt-from { opacity: 0; }
.cvo-letter.open { transition-delay: .3s; }

/* ribbon – thiệp buộc nơ lụa */
.cvo-ribbon { background: var(--cvo-paper) url('/img/nen/vai-lanh.svg') center / cover; }
.cvo-rb { width: min(330px, 86vw); padding: 26px 18px 30px; background: color-mix(in srgb, var(--cvo-paper) 60%, #fff); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.cvo-rb .cvo-names { color: var(--cvo-c); }
.cvo-rb-pic { width: 68%; aspect-ratio: 1; margin: 12px auto 14px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--cvo-c) 40%, transparent), 0 10px 24px -10px rgba(0,0,0,.4); }
.cvo-rb-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvo-rb .cvo-to { font-size: 28px; color: var(--cvo-c); }
.cvo-rb-v, .cvo-rb-h { position: absolute; z-index: 3; background: linear-gradient(90deg, color-mix(in srgb, var(--cvo-c) 85%, #000), color-mix(in srgb, var(--cvo-c) 85%, #fff) 50%, color-mix(in srgb, var(--cvo-c) 85%, #000)); box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform 1s cubic-bezier(.6,0,.3,1) .25s, opacity .5s .6s; }
.cvo-rb-v { top: 0; bottom: 0; left: calc(50% - min(165px, 43vw) + 40px); width: 22px; margin-left: -11px; }
.cvo-rb-h { left: 0; right: 0; top: calc(50% - 200px); height: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--cvo-c) 85%, #000), color-mix(in srgb, var(--cvo-c) 85%, #fff) 50%, color-mix(in srgb, var(--cvo-c) 85%, #000)); }
.cvo-bow { position: absolute; z-index: 4; left: calc(50% - min(165px, 43vw) + 40px); top: calc(50% - 200px); width: 120px; height: 90px; margin: -34px 0 0 -60px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); animation: cvoBeat 2.4s ease-in-out infinite; transition: transform .9s cubic-bezier(.5,-.3,.6,1), opacity .6s .3s; }
.cvo-ribbon .cvo-hint { position: absolute; bottom: 6vh; left: 0; right: 0; }
.cvo-ribbon.opening .cvo-bow { animation: none; transform: scale(1.4) rotate(-25deg); opacity: 0; }
.cvo-ribbon.opening .cvo-rb-v { transform: translateY(-110%); opacity: 0; }
.cvo-ribbon.opening .cvo-rb-h { transform: translateX(110%); opacity: 0; }
.cvo-ribbon.opening .cvo-card { transition-delay: .7s; opacity: 0; transform: translateY(-20px) scale(.96); }
.cvo-ribbon.opening .cvo-hint { opacity: 0; animation: none; }
.cvo-ribbon.open { transition-delay: .9s; }

/* news – tờ báo tin vui trên nền gạch bông */
.cvo-news { background: #e9dfcc url('/img/nen/gach-bong.svg') center / cover; color: #2b2622; }
.cvo-np { position: relative; z-index: 2; width: min(330px, 86vw); padding: 14px 16px 18px; background: #f6efdf url('/img/nen/giay-hat.svg') center / cover; box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); text-align: center; transform-origin: 50% 0; animation: cvoIn 1s both; transition: transform 1s cubic-bezier(.5,0,.3,1), opacity .6s .5s; font-family: 'Lora', serif; }
.cvo-np-top { display: flex; justify-content: space-between; font: 700 9.5px/1 'Be Vietnam Pro', sans-serif; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid #2b2622; padding-bottom: 6px; }
.cvo-np-mast { font: 900 25px/1.15 'Playfair Display', serif; letter-spacing: .02em; margin: 6px 0 4px; }
.cvo-np-line { font-style: italic; font-size: 12px; border-top: 3px double #2b2622; border-bottom: 1px solid #2b2622; padding: 4px 0; margin-bottom: 12px; }
.cvo-np-tag { display: inline-block; background: #b23b2e; color: #fff; font: 700 11px/1 'Be Vietnam Pro', sans-serif; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; }
.cvo-news .cvo-names { font-family: var(--cvo-font); color: #1f3d63; font-size: 38px; margin: 8px 0 2px; }
.cvo-news .cvo-names i { color: #b23b2e; font-size: 26px; }
.cvo-np-head { font: 800 15px/1.2 'Be Vietnam Pro', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cvo-np-note { position: absolute; right: -10px; bottom: -22px; background: #fffaf0; padding: 8px 14px; transform: rotate(-4deg); box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.cvo-np-note::before { content: ''; position: absolute; left: 50%; top: -8px; width: 44px; height: 14px; margin-left: -22px; background: rgba(233,200,120,.75); transform: rotate(3deg); }
.cvo-np-note b { display: block; font: 400 22px/1.1 var(--cvo-font); text-transform: none; letter-spacing: 0; color: #1f3d63; }
.cvo-news .cvo-btn { position: relative; z-index: 2; margin-top: 36px; background: #1f3d63; border-radius: 6px; }
.cvo-news .cvo-hint { position: relative; z-index: 2; background: rgba(40,40,40,.65); color: #fff; padding: 6px 14px; border-radius: 99px; opacity: 1; }
.cvo-news.opening .cvo-np { transform: perspective(900px) rotateX(-80deg) translateY(-20px); opacity: 0; }
.cvo-news.opening .cvo-btn, .cvo-news.opening .cvo-hint { opacity: 0; transition: opacity .4s; animation: none; }
.cvo-news.open { transition-delay: .6s; }

/* oval – khung ảnh oval, hoa lá nét mảnh */
.cvo-oval { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--cvo-paper) 85%, #fff), var(--cvo-paper)); }
.cvo-leaf { position: absolute; z-index: 1; width: 200px; opacity: .9; pointer-events: none; }
.cvo-leaf.tl { left: -40px; top: -30px; }
.cvo-leaf.br { right: -40px; bottom: -20px; transform: rotate(180deg); }
.cvo-ov { padding: 0; }
.cvo-ov-frame { position: relative; width: min(250px, 66vw); aspect-ratio: .62; margin: 0 auto; border-radius: 999px; overflow: hidden; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 8px rgba(255,255,255,.18), 0 24px 50px -20px rgba(0,0,0,.5); transition: transform 1.1s cubic-bezier(.5,0,.2,1), opacity .7s .4s; }
.cvo-ov-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvo-ov-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 10px 26px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; }
.cvo-ov-txt .cvo-to { font-size: 26px; }
.cvo-ov .cvo-btn { background: color-mix(in srgb, var(--cvo-paper) 70%, #000); text-transform: none; letter-spacing: .04em; font-size: 13px; margin-top: 18px; }
.cvo-ov-names { margin-top: 16px; font: 400 34px/1.1 'Cormorant Garamond', serif; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.cvo-oval:not(.cvo-dark) .cvo-ov-names { color: color-mix(in srgb, var(--cvo-paper) 40%, #000); }
.cvo-oval.opening .cvo-ov-frame { transform: scale(2.6); opacity: 0; }
.cvo-oval.opening .cvo-btn, .cvo-oval.opening .cvo-ov-names, .cvo-oval.opening .cvo-leaf { opacity: 0; transition: opacity .4s; animation: none; }
.cvo-oval.open { transition-delay: .4s; }

/* ===== 6 kiểu mở thiệp mới (19/11/2026) ===== */
.cvo-names-stack span { display: block; }
/* Save the Date – tấm thiệp lật lên như bóc trang */
.cvo-savedate { background: color-mix(in srgb, var(--cvo-paper) 75%, #000); }
.cvo-sd { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--cvo-paper) 70%, #fff), var(--cvo-paper)); box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--cvo-paper) 85%, #fff), inset 0 0 0 11px color-mix(in srgb, var(--cvo-c) 35%, transparent); transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.6,0,.3,1), opacity .5s .7s; }
.cvo-sd .cvo-leaf { width: 190px; opacity: .55; }
.cvo-sd-title { font-family: var(--cvo-font); font-size: 40px; color: var(--cvo-c); line-height: 1.1; }
.cvo-sd-pic { width: min(220px, 56vw); aspect-ratio: .8; margin: 14px auto 10px; border-radius: 999px 999px 10px 10px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--cvo-c) 50%, transparent), 0 18px 40px -18px rgba(0,0,0,.45); }
.cvo-sd-pic img, .cvo-sc-pic img, .cvo-cn-pic img, .cvo-ln-pic img, .cvo-pl-pic img, .cvo-ob-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvo-sd .cvo-names-stack { color: var(--cvo-c); font-size: 34px; }
.cvo-sd .cvo-date { margin: 6px 0 12px; font-weight: 600; }
.cvo-sd .cvo-to { font-size: 24px; }
.cvo-sd .cvo-btn { margin-top: 12px; }
.cvo-sd-curl { position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--cvo-paper) 60%, #fff) 50%, color-mix(in srgb, var(--cvo-paper) 80%, #000)); box-shadow: -3px -3px 8px rgba(0,0,0,.12); border-top-left-radius: 8px; }
.cvo-savedate.opening .cvo-sd { transform: translate(-8%, -112%) rotate(-12deg); opacity: 0; }
.cvo-savedate.open { transition-delay: .3s; }

/* Cuộn thư trục gỗ */
.cvo-scroll { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cvo-paper) 50%, #fff), color-mix(in srgb, var(--cvo-paper) 85%, #000)); }
.cvo-sc { position: relative; width: min(380px, 92vw); height: min(88vh, 760px); display: flex; flex-direction: column; }
.cvo-sc-rod { position: relative; z-index: 3; height: 26px; margin: 0 -14px; border-radius: 13px; background: linear-gradient(180deg, color-mix(in srgb, var(--cvo-c) 70%, #000), var(--cvo-c) 45%, color-mix(in srgb, var(--cvo-c) 60%, #000)); box-shadow: 0 6px 12px -4px rgba(0,0,0,.45); transition: transform 1s cubic-bezier(.6,0,.3,1); }
.cvo-sc-rod::before, .cvo-sc-rod::after { content: ''; position: absolute; top: -3px; width: 18px; height: 32px; border-radius: 6px; background: linear-gradient(180deg, #f3d79a, #b88a3a); }
.cvo-sc-rod::before { left: -6px; }
.cvo-sc-rod::after { right: -6px; }
.cvo-sc-paper { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f8f3e7 url('/img/nen/giay-hat.svg') center / cover; color: #2f3a2c; box-shadow: inset 0 10px 14px -10px rgba(0,0,0,.35), inset 0 -10px 14px -10px rgba(0,0,0,.35); transform-origin: 50% 50%; transition: transform 1s cubic-bezier(.6,0,.3,1); }
.cvo-sc-paper .cvo-leaf { width: 150px; opacity: .45; }
.cvo-sc .cvo-card { padding: 0 18px; }
.cvo-sc .cvo-to { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 700; font-size: 18px; }
.cvo-sc-pic { width: min(190px, 50vw); aspect-ratio: 1; margin: 14px auto 8px; border-radius: 50%; overflow: hidden; -webkit-mask: radial-gradient(circle, #000 60%, transparent 71%); mask: radial-gradient(circle, #000 60%, transparent 71%); }
.cvo-sc .cvo-names-stack { color: var(--cvo-c); font-size: 36px; }
.cvo-sc .cvo-date { font-weight: 700; margin-top: 6px; }
.cvo-sc .cvo-hint { margin-top: 8px; }
.cvo-scroll.opening .cvo-sc-paper { transform: scaleY(0); }
.cvo-scroll.opening .cvo-sc-rod.t { transform: translateY(calc(min(88vh, 760px) / 2 - 13px)); }
.cvo-scroll.opening .cvo-sc-rod.b { transform: translateY(calc(min(88vh, 760px) / -2 + 13px)); }
.cvo-scroll.open { transition-delay: .2s; }

/* Rạp chiếu phim */
.cvo-cinema { background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--cvo-paper) 70%, #fff3), var(--cvo-paper) 55%, color-mix(in srgb, var(--cvo-paper) 60%, #000)); color: #f6efe2; }
.cvo-cn-film { position: absolute; top: 0; bottom: 0; width: 26px; background: #0b0b0b; z-index: 1; }
.cvo-cn-film::before { content: ''; position: absolute; left: 7px; right: 7px; top: 0; bottom: 0; background: repeating-linear-gradient(180deg, #e9e3d4 0 9px, transparent 9px 22px); opacity: .85; border-radius: 2px; }
.cvo-cn-film.l { left: 0; }
.cvo-cn-film.r { right: 0; }
.cvo-cn-beam { position: absolute; top: -10%; left: 50%; width: 120%; height: 80%; transform: translateX(-50%); background: conic-gradient(from 160deg at 50% 0, transparent 0deg, rgba(255,240,200,.16) 18deg, rgba(255,240,200,.05) 30deg, transparent 40deg); pointer-events: none; transition: opacity .6s; }
.cvo-cn .cvo-pre { color: var(--cvo-c); opacity: 1; font-weight: 600; }
.cvo-cn-pic { position: relative; width: min(260px, 66vw); aspect-ratio: 1.12; margin: 14px auto; padding: 14px 0; background: #111; border-radius: 3px; }
.cvo-cn-pic::before, .cvo-cn-pic::after { content: ''; position: absolute; left: 6px; right: 6px; height: 7px; background: repeating-linear-gradient(90deg, #e9e3d4 0 8px, transparent 8px 16px); opacity: .8; }
.cvo-cn-pic::before { top: 4px; }
.cvo-cn-pic::after { bottom: 4px; }
.cvo-cn-pic img { filter: sepia(.15) contrast(1.05); }
.cvo-cn .cvo-names-stack { font-size: 36px; color: #fff8ea; }
.cvo-cn .cvo-names-stack i { color: var(--cvo-c); opacity: 1; }
.cvo-cn .cvo-date { margin-top: 6px; font-weight: 700; }
.cvo-cn-ticket { display: flex; align-items: stretch; width: min(250px, 70vw); margin: 16px auto 0; background: #f6efe2; color: #2a2118; border-radius: 6px; text-align: left; overflow: hidden; }
.cvo-cn-ticket > div:first-child { flex: 1; padding: 8px 12px; border-right: 2px dashed #bfae8f; }
.cvo-cn-ticket small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #a3283f; }
.cvo-cn-ticket b { font: 400 22px/1.1 var(--cvo-font); }
.cvo-cn-seat { display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: center; padding: 6px 10px; }
.cvo-cn-seat b { font: 700 15px/1 'Be Vietnam Pro', sans-serif; color: #a3283f; }
.cvo-cinema .cvo-btn { background: linear-gradient(180deg, color-mix(in srgb, var(--cvo-c) 70%, #fff), var(--cvo-c)); color: #2a1d08; }
.cvo-cn .cvo-hint { margin-top: 8px; }
.cvo-cinema.opening .cvo-cn { transform: scale(1.6); opacity: 0; transition: transform 1s ease-in, opacity .7s .2s; }
.cvo-cinema.opening .cvo-cn-beam { opacity: 0; }
.cvo-cinema.opening::after { content: ''; position: absolute; inset: 0; background: #fff8e8; animation: cvoFlash .9s ease-out forwards; }
@keyframes cvoFlash { 0% { opacity: 0; } 30% { opacity: .85; } 100% { opacity: 0; } }
.cvo-cinema.open { transition-delay: .3s; }

/* Đèn lồng & mây vàng */
.cvo-lantern { background: linear-gradient(180deg, color-mix(in srgb, var(--cvo-paper) 60%, #fff), var(--cvo-paper)); }
.cvo-ln-row { position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 1; pointer-events: none; transition: transform 1.1s ease-in; }
.cvo-ln { position: absolute; top: 0; width: 2px; background: color-mix(in srgb, var(--cvo-c) 60%, #000); transform-origin: 50% 0; animation: cvoSwing 3.4s ease-in-out infinite; }
.cvo-ln i { position: absolute; left: 50%; bottom: -54px; width: 46px; height: 56px; margin-left: -23px; border-radius: 45%; background: radial-gradient(circle at 50% 40%, #f7b860, var(--cvo-c) 75%); box-shadow: 0 0 22px color-mix(in srgb, var(--cvo-c) 60%, transparent); }
.cvo-ln i::before, .cvo-ln i::after { content: ''; position: absolute; left: 30%; right: 30%; height: 6px; background: #8a5a14; border-radius: 2px; }
.cvo-ln i::before { top: -3px; }
.cvo-ln i::after { bottom: -3px; }
.cvo-ln.l1 { left: 8%; height: 40px; }
.cvo-ln.l2 { left: 22%; height: 10px; animation-delay: -.8s; }
.cvo-ln.l3 { right: 22%; height: 18px; animation-delay: -1.6s; }
.cvo-ln.l4 { right: 8%; height: 56px; animation-delay: -2.4s; }
.cvo-ln.l2 i, .cvo-ln.l3 i { transform: scale(.7); }
@keyframes cvoSwing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
.cvo-ln-sun { position: absolute; left: 50%; bottom: -170px; width: 380px; height: 380px; margin-left: -190px; border-radius: 50%; background: radial-gradient(circle, #ffd27a, #f5a742 60%, transparent 71%); opacity: .75; transition: transform 1.3s cubic-bezier(.3,.7,.3,1), opacity 1.2s; }
.cvo-ln-cloud { position: absolute; bottom: 0; z-index: 1; width: 70%; opacity: .95; transition: transform 1.2s cubic-bezier(.6,0,.3,1); pointer-events: none; }
.cvo-ln-cloud.l { left: -12%; }
.cvo-ln-cloud.r { right: -12%; transform: scaleX(-1); }
.cvo-ln-card .cvo-pre { color: var(--cvo-c); opacity: 1; font-weight: 600; }
.cvo-ln-pic { width: min(170px, 46vw); aspect-ratio: 1; margin: 12px auto 6px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cvo-c) 70%, #fff), 0 16px 30px -14px rgba(0,0,0,.4); }
.cvo-ln-card .cvo-names-stack { color: color-mix(in srgb, var(--cvo-c) 55%, #3a1e05); font-size: 38px; }
.cvo-ln-card .cvo-date { margin: 8px 0 10px; font-weight: 600; border-top: 1px solid color-mix(in srgb, var(--cvo-c) 40%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--cvo-c) 40%, transparent); padding: 6px 0; }
.cvo-ln-card .cvo-to { color: #b3262d; font-size: 24px; }
.cvo-lantern .cvo-btn { background: linear-gradient(180deg, #f7c26a, var(--cvo-c)); }
.cvo-lantern.opening .cvo-ln-cloud.l { transform: translateX(-110%); }
.cvo-lantern.opening .cvo-ln-cloud.r { transform: translateX(110%) scaleX(-1); }
.cvo-lantern.opening .cvo-ln-sun { transform: translateY(-120%) scale(1.6); opacity: 0; }
.cvo-lantern.opening .cvo-ln-row { transform: translateY(-120%); }
.cvo-lantern.opening .cvo-card { opacity: 0; transform: translateY(-30px); }
.cvo-lantern.open { transition-delay: .4s; }

/* Khung viên thuốc */
.cvo-pill { background: linear-gradient(170deg, color-mix(in srgb, var(--cvo-paper) 80%, #fff), var(--cvo-paper) 50%, color-mix(in srgb, var(--cvo-paper) 75%, #000)); }
.cvo-pl-rings { position: absolute; inset: 0; pointer-events: none; transition: transform 1.2s cubic-bezier(.5,0,.2,1), opacity .9s; }
.cvo-pl-rings span { position: absolute; left: 50%; top: 50%; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cvo-c) 70%, transparent); transform: translate(-50%, -50%); }
.cvo-pl-rings span:nth-child(1) { width: min(300px, 76vw); height: min(640px, 80vh); }
.cvo-pl-rings span:nth-child(2) { width: min(330px, 84vw); height: min(680px, 86vh); opacity: .6; }
.cvo-pl-rings span:nth-child(3) { width: min(360px, 92vw); height: min(720px, 92vh); opacity: .35; }
.cvo-pl-mark { display: none; font: 400 44px/1 'Noto Serif', serif; color: var(--cvo-c); margin-bottom: 4px; }
.cvo-dark .cvo-pl-mark { display: block; }
.cvo-pl-to b { display: block; font: 700 22px/1.2 'Be Vietnam Pro', sans-serif; letter-spacing: .06em; text-transform: uppercase; font-style: italic; }
.cvo-pl-to span { font-family: var(--cvo-font); font-size: 24px; color: var(--cvo-c); }
.cvo-light .cvo-pl-to b { color: color-mix(in srgb, var(--cvo-c) 60%, #000); }
.cvo-pl-pic { width: min(230px, 60vw); aspect-ratio: 1.15; margin: 14px auto 6px; -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 72%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 72%); }
.cvo-pl .cvo-names-stack { color: var(--cvo-c); font-size: 38px; }
.cvo-pill .cvo-btn { background: linear-gradient(180deg, color-mix(in srgb, var(--cvo-c) 55%, #fff), var(--cvo-c)); color: #fff; }
.cvo-pill.cvo-dark .cvo-btn { color: #3a1408; }
.cvo-pill.opening .cvo-pl-rings { transform: scale(2.4); opacity: 0; }
.cvo-pill.opening .cvo-pl-pic { transform: scale(1.8); opacity: 0; transition: transform 1s, opacity .7s .2s; }
.cvo-pill.opening .cvo-pl { opacity: 0; transition: opacity .6s .3s; }
.cvo-pill.open { transition-delay: .3s; }

/* Quỹ đạo ngân hà */
.cvo-orbit { background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--cvo-c) 45%, var(--cvo-paper)), var(--cvo-paper) 55%, color-mix(in srgb, var(--cvo-paper) 60%, #000)); color: #f6efff; }
.cvo-ob .cvo-pre { opacity: .85; }
.cvo-ob-sys { position: relative; width: min(220px, 58vw); aspect-ratio: 1; margin: 18px auto 14px; transition: transform 1.2s cubic-bezier(.5,0,.2,1), opacity .8s .3s; }
.cvo-ob-ring { position: absolute; inset: -14%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--cvo-c) 80%, #fff); box-shadow: 0 0 30px color-mix(in srgb, var(--cvo-c) 50%, transparent); animation: cvspin 24s linear infinite; }
.cvo-ob-ring.b { inset: -28%; border-style: dotted; opacity: .55; animation-duration: 40s; animation-direction: reverse; }
.cvo-ob-pic { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 3px solid color-mix(in srgb, var(--cvo-c) 50%, #fff); box-shadow: 0 0 40px color-mix(in srgb, var(--cvo-c) 70%, transparent); }
.cvo-ob .cvo-names-stack { font-size: 40px; color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--cvo-c) 60%, transparent); }
.cvo-ob .cvo-date { margin: 6px 0 12px; }
.cvo-ob .cvo-to { color: #fff; font-size: 26px; }
.cvo-orbit .cvo-btn { background: linear-gradient(90deg, color-mix(in srgb, var(--cvo-c) 70%, #fff), var(--cvo-c)); }
.cvo-orbit.opening .cvo-ob-sys { transform: scale(4); opacity: 0; }
.cvo-orbit.opening .cvo-sky { transform: scale(2); opacity: 0; }
.cvo-orbit.opening .cvo-card > :not(.cvo-ob-sys) { opacity: 0; transition: opacity .4s; }
.cvo-orbit.open { transition-delay: .4s; }

/* ===== Watermark bản xem mẫu ===== */
.cv-demo-mark { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.cv-demo-mark span { position: absolute; left: -50%; right: -50%; white-space: nowrap; font: 700 15px/1 'Be Vietnam Pro', sans-serif; letter-spacing: .5em; color: rgba(128, 128, 128, .07); transform: rotate(-28deg); text-align: center; }

/* ===== Nút tự cuộn ===== */
.cv-auto { position: fixed; right: max(14px, calc(50% - 226px)); bottom: 70px; z-index: 30; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #333; box-shadow: 0 6px 20px -6px rgba(0,0,0,.4); font-size: 19px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cv-auto.cv-auto-top { top: 64px; bottom: auto; }
.cv-auto::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; }
.cv-auto.on::after { border-top-color: #d6456c; border-right-color: #d6456c; animation: cvspin 1.2s linear infinite; }
.cv-auto.on .cv-auto-ic { animation: cvAutoBob 1.2s ease-in-out infinite; }
@keyframes cvAutoBob { 50% { transform: translateY(3px); } }

/* ===== Kiểu rơi ===== */
.cv-petal { width: var(--sz, 12px); height: var(--sz, 12px); }
.cv-fall-leaves { background: #9cb86f; border-radius: 0 12px; }
.cv-fall-leaves:nth-child(3n) { background: #d6b25a; }
.cv-fall-leaves:nth-child(3n + 1) { background: #7fa35d; }
.cv-fall-hearts, .cv-fall-sparkle { background: none; border-radius: 0; width: auto; height: auto; font-size: var(--sz, 14px); line-height: 1; color: #e2738f; }
.cv-fall-sparkle { color: #f1d27c; text-shadow: 0 0 6px rgba(255,230,160,.9); }
.cv-fall-snow { background: #fff; border-radius: 50%; box-shadow: 0 0 4px rgba(255,255,255,.9); opacity: .9; }

/* Thẻ bài hát đang phát (hiện một lần khi nhạc bắt đầu) */
.cv-song { position: fixed; z-index: 70; top: 12px; left: 50%; width: min(420px, calc(100% - 24px)); transform: translate(-50%, -150%); transition: transform .7s cubic-bezier(.2,.8,.2,1); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.14); display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; color: #1d1c1a; font-family: 'Be Vietnam Pro', sans-serif; }
.cv-song.show { transform: translate(-50%, 0); }
.cv-song-th { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.cv-song-tx { min-width: 0; display: grid; }
.cv-song-tx b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-song-tx span { font-size: 11.5px; color: #6d6a64; }
.cv-song-eq { margin-left: auto; display: flex; gap: 2px; align-items: flex-end; height: 16px; }
.cv-song-eq i { width: 3px; background: #b3262d; animation: cvsongeq 1s ease-in-out infinite; }
.cv-song-eq i:nth-child(2) { animation-delay: .2s; } .cv-song-eq i:nth-child(3) { animation-delay: .4s; } .cv-song-eq i:nth-child(4) { animation-delay: .1s; }
@keyframes cvsongeq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@media (prefers-reduced-motion: reduce) { .cv-song { transition: none; } .cv-song-eq i { animation: none; height: 10px; } }
