/* Love: shared look for the picker, the galaxy and the birthday page. Dark sky, glass panels. */
* { box-sizing: border-box; }
:root { --pink: #ff6fb5; --violet: #a77bff; --ink: #fdf3ff; --muted: #c9b8dc; --glass: rgba(24, 14, 40, 0.72); --line: rgba(255, 255, 255, 0.14); }
html, body { margin: 0; height: 100%; }
body { background: #05030c; color: var(--ink); font: 400 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; overflow: hidden; }
body.scroll { overflow: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
a { color: #ffb3dc; }

.layer { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#gl, #rain { z-index: 0; }
#ov, #fx { z-index: 1; pointer-events: none; }
.stage { touch-action: none; cursor: grab; }
.stage:active { cursor: grabbing; }

/* tap to start */
.enter { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 40%, rgba(120, 50, 160, 0.55), rgba(5, 3, 12, 0.96) 70%); transition: opacity 0.7s; }
.enter.out { opacity: 0; pointer-events: none; }
.enter h1 { margin: 0; font: 400 clamp(40px, 9vw, 72px)/1.1 "Great Vibes", cursive; text-shadow: 0 0 24px rgba(255, 111, 181, 0.8); }
.enter p { margin: 0; color: var(--muted); }
.orb { position: relative; width: 120px; height: 120px; border: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd6ec, var(--pink) 45%, #7c3aed 100%); box-shadow: 0 0 40px rgba(255, 111, 181, 0.8), 0 0 90px rgba(167, 123, 255, 0.6); animation: orb 1.6s ease-in-out infinite; }
.orb img { width: 64px; height: 64px; }
.orb::before, .orb::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255, 182, 220, 0.6); animation: ring 1.8s ease-out infinite; }
.orb::after { animation-delay: 0.9s; }
@keyframes orb { 50% { transform: scale(1.06); } }
@keyframes ring { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* text shown over the scene */
.msg { position: fixed; left: 16px; right: 16px; z-index: 3; text-align: center; pointer-events: none; font: 400 clamp(30px, 6.5vw, 60px)/1.25 "Great Vibes", cursive; color: #fff; text-shadow: 0 0 10px var(--glow, #ff6fb5), 0 0 28px var(--glow, #ff6fb5), 0 0 60px var(--glow, #ff6fb5); opacity: 0; transition: opacity 1.2s, transform 1.2s; transform: translateY(14px); }
.msg.on { opacity: 1; transform: none; }
.msg.top { top: max(18px, env(safe-area-inset-top)); }
.msg.bottom { bottom: max(70px, calc(env(safe-area-inset-bottom) + 60px)); font-size: clamp(20px, 4vw, 34px); font-family: "Dancing Script", cursive; font-weight: 600; }
.hint { position: fixed; left: 0; right: 0; top: max(76px, calc(env(safe-area-inset-top) + 64px)); z-index: 3; text-align: center; color: rgba(255, 255, 255, 0.55); font-size: 12.5px; pointer-events: none; transition: opacity 1s; }

.round { position: fixed; z-index: 15; top: max(12px, env(safe-area-inset-top)); width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(20, 10, 34, 0.6); backdrop-filter: blur(6px); font-size: 18px; }
#mute { right: 12px; }
#home { left: 12px; display: grid; place-items: center; text-decoration: none; color: #fff; }

.again { position: fixed; z-index: 12; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; animation: up 0.6s ease-out; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 20px); } }

.btn { min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; white-space: nowrap; backdrop-filter: blur(6px); }
.btn.main { border-color: transparent; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 6px 24px rgba(255, 111, 181, 0.45); }
.btn:active { transform: scale(0.97); }

/* the maker panel */
.maker { position: fixed; z-index: 10; right: 16px; top: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.maker header { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.maker header a { text-decoration: none; color: var(--muted); font-size: 22px; }
.maker h1 { margin: 0; font: italic 600 22px/1.2 "Playfair Display", serif; }
.maker .body { flex: 1; overflow: auto; padding: 8px 18px 12px; overscroll-behavior: contain; }
.maker .dock { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.maker .dock .btn { padding: 0 12px; }
label { display: grid; gap: 5px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, textarea, select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #fff; font: 400 16px/1.4 system-ui, sans-serif; }
select option { color: #222; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { margin: -6px 0 12px; color: var(--muted); font-size: 12px; font-weight: 400; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.themes button { width: 44px; height: 44px; border: 2px solid transparent; border-radius: 50%; }
.themes button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
input[type="color"] { height: 44px; padding: 4px; }
@media (max-width: 700px) {
  .maker { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 62vh; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .maker .dock { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

.toast { position: fixed; z-index: 40; left: 50%; top: 18px; transform: translate(-50%, -20px); max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; background: #fff; color: #2a1238; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.qr-dlg { width: min(340px, calc(100vw - 32px)); padding: 20px; border: 0; border-radius: 22px; background: #fff; color: #2a1238; text-align: center; }
.qr-dlg::backdrop { background: rgba(5, 3, 12, 0.7); }
.qr-dlg h2 { margin: 0 0 10px; font: italic 600 20px "Playfair Display", serif; }
.qr-box svg { width: 100%; height: auto; }
.qr-dlg .btn { display: inline-grid; place-items: center; margin-top: 10px; color: #fff; text-decoration: none; }
.qr-x { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 26px; color: #2a1238; }

/* picker */
.pick { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 40px 16px; text-align: center; }
.pick h1 { margin: 0; font: 400 clamp(46px, 10vw, 80px)/1 "Great Vibes", cursive; text-shadow: 0 0 24px rgba(255, 111, 181, 0.8); }
.pick > p { margin: -8px 0 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 16px; width: 100%; }
.cards a { display: grid; gap: 6px; padding: 26px 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.cards a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.cards img { width: 84px; height: 84px; margin: 0 auto 6px; filter: drop-shadow(0 0 18px rgba(255, 111, 181, 0.6)); }
.cards b { font: italic 600 22px "Playfair Display", serif; }
.cards small { color: var(--muted); }
.fine { max-width: 640px; color: rgba(255, 255, 255, 0.45); font-size: 12px; }
#sky { position: fixed; inset: 0; z-index: -1; }

/* ---------- birthday ---------- */
#rain { transition: opacity 1.5s; }
#rain.dim { opacity: 0.35; }
.tapzone { position: fixed; inset: 0; z-index: 2; }
.balloons { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.balloons img { position: absolute; bottom: -120px; width: var(--s); height: var(--s); animation: float linear infinite; }
@keyframes float { 0% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(18px, -60vh) rotate(4deg); } 100% { transform: translate(-6px, -125vh) rotate(-4deg); } }
.finale { position: fixed; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 64px 16px 84px; overflow: auto; pointer-events: none; opacity: 0; transition: opacity 1s; }
.finale.on { opacity: 1; }
.finale > * { pointer-events: auto; }
.finale h2 { margin: 0; text-align: center; font: 400 clamp(38px, 8vw, 70px)/1.1 "Great Vibes", cursive; color: #fff; text-shadow: 0 0 12px var(--pink), 0 0 34px var(--pink); }
#cake { width: clamp(130px, 26vmin, 230px); height: auto; cursor: pointer; filter: drop-shadow(0 0 30px rgba(255, 200, 120, 0.7)); animation: cakein 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.3) both, bob2 3s ease-in-out 1.1s infinite; }
#cake.out { filter: drop-shadow(0 0 8px rgba(255, 200, 120, 0.3)) saturate(0.9); }
@keyframes cakein { from { transform: translateY(60vh) scale(0.4); opacity: 0; } }
@keyframes bob2 { 50% { transform: translateY(-8px); } }
#cake-hint { color: rgba(255, 255, 255, 0.75); font-weight: 600; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.45; } }
.letter { width: min(520px, 100%); margin-top: 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(20, 10, 34, 0.62); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.letter p { margin: 0; min-height: 3em; white-space: pre-line; font: 600 clamp(18px, 3.6vw, 24px)/1.45 "Dancing Script", cursive; }
.letter b { display: block; margin-top: 8px; text-align: right; font: 400 clamp(24px, 5vw, 32px)/1.2 "Great Vibes", cursive; opacity: 0; transition: opacity 1s; }
.letter b.on { opacity: 1; }
#fx { z-index: 3; }

/* picker: a sky made of gradients, no script needed */
body.home { background:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 72%, #fff, transparent), radial-gradient(1.5px 1.5px at 44% 34%, #ffd6ec, transparent),
  radial-gradient(1px 1px at 63% 12%, #fff, transparent), radial-gradient(2px 2px at 78% 58%, #c7d2fe, transparent), radial-gradient(1px 1px at 88% 26%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 8% 88%, #fff, transparent), radial-gradient(1px 1px at 52% 92%, #fff, transparent), radial-gradient(1.5px 1.5px at 94% 84%, #ffd6ec, transparent),
  radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.35), transparent 55%), radial-gradient(ellipse at 75% 80%, rgba(255, 111, 181, 0.25), transparent 55%), #05030c; background-attachment: fixed; }

/* ---------- Ngày của đôi ta ---------- */
.ourday { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 16px 120px; }
.ourday.editing { padding-right: 16px; }
@media (min-width: 701px) { .ourday.editing { margin-left: max(16px, calc((100vw - 432px - 760px) / 2)); } }
@media (max-width: 700px) { .ourday.editing { padding-bottom: 66vh; } }
.od-hero { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; }
.od-names { display: flex; align-items: center; gap: 14px; font: 400 clamp(40px, 9vw, 72px)/1.1 "Great Vibes", cursive; text-shadow: 0 0 14px var(--pink), 0 0 36px var(--pink); }
.od-names img { width: clamp(44px, 9vw, 70px); height: auto; animation: orb 1.2s ease-in-out infinite; }
.od-label { margin: 6px 0 0; color: var(--muted); letter-spacing: 0.3em; text-transform: uppercase; font-size: 13px; }
.od-days { display: flex; align-items: baseline; gap: 10px; }
.od-days b { font: italic 600 clamp(64px, 17vw, 132px)/1 "Playfair Display", serif; background: linear-gradient(135deg, #ffe1f0, var(--pink) 50%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 111, 181, 0.5)); }
.od-days span { font: italic 600 clamp(22px, 5vw, 34px) "Playfair Display", serif; color: #ffd6ec; }
.od-clock { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.od-clock span { display: grid; min-width: 62px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); }
.od-clock b { font-size: 22px; font-variant-numeric: tabular-nums; }
.od-clock small { color: var(--muted); font-size: 11.5px; }
.od-next { margin: 6px 0 0; padding: 8px 16px; border-radius: 999px; background: rgba(255, 111, 181, 0.16); color: #ffd6ec; font-weight: 600; }
.od-scroll { margin-top: 24px; color: var(--muted); font-size: 13px; animation: blink 1.6s ease-in-out infinite; }
.od-line { position: relative; display: grid; gap: 22px; padding: 20px 0; }
.od-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(transparent, var(--pink) 10%, var(--violet) 90%, transparent); box-shadow: 0 0 12px var(--pink); }
.od-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; transition: opacity 0.8s, transform 0.8s; }
.od-card.l { transform: translateX(-30px); }
.od-card.r { transform: translateX(30px); }
.od-card.in { opacity: 1; transform: none; }
.od-card i { position: absolute; left: 50%; top: 18px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 111, 181, 0.4), 0 0 18px var(--pink); }
.od-card.in i { animation: ring2 1.2s ease-out; }
@keyframes ring2 { from { box-shadow: 0 0 0 0 rgba(255, 111, 181, 0.9), 0 0 18px var(--pink); } }
.od-card div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(30, 12, 44, 0.7); backdrop-filter: blur(8px); }
.od-card.l div { grid-column: 1; margin-right: 26px; text-align: right; }
.od-card.r div { grid-column: 2; margin-left: 26px; }
.od-card small { color: #ffb3dc; font-weight: 600; font-size: 12.5px; }
.od-card p { margin: 4px 0 0; font: 600 20px/1.35 "Dancing Script", cursive; }
@media (max-width: 600px) {
  .od-line::before { left: 14px; }
  .od-card { grid-template-columns: 1fr; }
  .od-card i { left: 14px; }
  .od-card.l div, .od-card.r div { grid-column: 1; margin: 0 0 0 36px; text-align: left; }
  .od-card.l, .od-card.r { transform: translateY(24px); }
  .od-card.in { transform: none; }
}
.od-end { min-height: 60vh; display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1s; }
.od-end.in { opacity: 1; transform: none; }
.od-end p { max-width: 560px; margin: 0; white-space: pre-line; font: 600 clamp(22px, 4.6vw, 30px)/1.45 "Dancing Script", cursive; text-shadow: 0 0 18px rgba(255, 111, 181, 0.6); }
.od-end b { font: 400 clamp(30px, 6vw, 44px) "Great Vibes", cursive; color: #ffd6ec; }
.ourday.show .od-hero > * { animation: up2 0.9s ease-out both; }
.ourday.show .od-hero > :nth-child(2) { animation-delay: 0.2s; }
.ourday.show .od-hero > :nth-child(3) { animation-delay: 0.35s; }
.ourday.show .od-hero > :nth-child(4) { animation-delay: 0.6s; }
.ourday.show .od-hero > :nth-child(5) { animation-delay: 0.8s; }
.ourday.show .od-hero > :nth-child(6) { animation-delay: 1.2s; }
@keyframes up2 { from { opacity: 0; transform: translateY(24px); } }
input[type="date"] { color-scheme: dark; min-height: 46px; }
@media (max-width: 420px) { .od-clock { gap: 5px; } .od-clock span { min-width: 0; flex: 1; padding: 7px 2px; } .od-clock b { font-size: 18px; } .od-clock small { font-size: 10.5px; } }

/* ---------- shared: a sub line under the top title ---------- */
.msg.sub { top: calc(max(18px, env(safe-area-inset-top)) + 72px); font: 600 clamp(20px, 4vw, 32px)/1.35 "Dancing Script", cursive; }

/* ---------- Cây tình yêu ---------- */
.tree-text { position: fixed; z-index: 3; left: 6vw; top: 50%; width: min(40vw, 520px); transform: translateY(-50%); opacity: 0; transition: opacity 1.2s; }
.tree-text.on { opacity: 1; }
.tree-text h2 { margin: 0 0 8px; font: 400 clamp(34px, 4vw, 54px)/1.1 "Great Vibes", cursive; color: #ffd6e4; text-shadow: 0 0 18px rgba(255, 90, 140, 0.7); }
.tree-text p { margin: 0; min-height: 4em; white-space: pre-line; font: 600 clamp(18px, 1.8vw, 24px)/1.5 "Dancing Script", cursive; color: #fff; }
.tt-count { margin-top: 14px; color: #ffb3c6; font-weight: 600; font-size: 14px; }
.tt-count b { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.tree-text > b { display: block; margin-top: 10px; text-align: right; font: 400 clamp(26px, 3vw, 38px) "Great Vibes", cursive; color: #ffd6e4; }
@media (max-aspect-ratio: 9/10) {
  .tree-text { left: 16px; right: 16px; width: auto; top: auto; bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px)); transform: none; max-height: 44vh; overflow: auto; text-align: center; }
  .tree-text > b { text-align: center; }
}

/* ---------- Thư tình ---------- */
.env-scene { position: fixed; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 22px; transition: opacity 0.6s, transform 0.6s; }
.env-scene.gone { opacity: 0; transform: translateY(40px); pointer-events: none; }
body:has(#maker:not([hidden])) .env-scene { right: min(432px, 45vw); }
@media (max-width: 700px) { body:has(#maker:not([hidden])) .env-scene { right: 0; bottom: 62vh; transform: scale(0.7); } }
.envelope { position: relative; width: min(84vw, 440px); aspect-ratio: 3 / 2; perspective: 1200px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5)); }
.env-back { position: absolute; inset: 0; border-radius: 10px; background: var(--env-in, #c99a6b); }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 0 0 10px 10px; background: var(--env, #e9c9a1); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; background: color-mix(in srgb, var(--env, #e9c9a1) 88%, #000); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform 0.7s ease-in-out, z-index 0s 0.35s; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.seal { position: absolute; z-index: 5; left: 50%; top: 58%; width: 64px; height: 64px; margin: -32px 0 0 -32px; cursor: pointer; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); animation: orb 1.4s ease-in-out infinite; transition: transform 0.3s, opacity 0.3s; }
.seal.pop { transform: scale(1.8); opacity: 0; pointer-events: none; }
.env-hint { margin: 0; color: rgba(255, 255, 255, 0.8); font-weight: 600; animation: blink 1.6s ease-in-out infinite; }
.paper { position: absolute; left: 6%; right: 6%; top: 8%; height: 84%; z-index: 2; overflow: auto; padding: 16px 20px; border-radius: 8px; background: var(--l-paper, #fdf6e3); color: var(--l-ink, #4a2c20); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); transition: transform 0.9s cubic-bezier(0.3, 0.8, 0.3, 1); }
.envelope.out .paper { transform: translateY(-62%); }
.paper.read { z-index: 6; padding: 28px clamp(20px, 5vw, 44px); transition: left 0.9s, top 0.9s, width 0.9s, height 0.9s; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); background-image: repeating-linear-gradient(transparent 0 35px, color-mix(in srgb, var(--l-accent, #b42318) 14%, transparent) 35px 36px); }
.paper h2 { margin: 0 0 6px; font: 400 clamp(30px, 6vw, 44px)/1.2 "Great Vibes", cursive; color: var(--l-accent, #b42318); }
.paper p { margin: 0; white-space: pre-line; font: 600 clamp(19px, 3.6vw, 24px)/36px "Dancing Script", cursive; }
.paper b { display: block; margin-top: 12px; text-align: right; font: 400 clamp(28px, 5vw, 38px) "Great Vibes", cursive; color: var(--l-accent, #b42318); opacity: 0; transition: opacity 1s; }
.paper b.on { opacity: 1; }
body:has(.env-scene) #fx { z-index: 7; pointer-events: none; }

/* ---------- Tỏ tình ---------- */
.ask-scene, .ask-done { position: fixed; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 70px 18px 90px; text-align: center; }
body:has(#maker:not([hidden])) .ask-scene { right: min(432px, 45vw); }
@media (max-width: 700px) { body:has(#maker:not([hidden])) .ask-scene { right: 0; bottom: 60vh; padding: 50px 16px 10px; transform: scale(0.8); } }
#ask-face { width: clamp(110px, 24vmin, 180px); height: auto; animation: bob2 2.4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255, 111, 181, 0.5)); }
.ask-scene h2, .ask-done h2 { margin: 0; font: 400 clamp(36px, 8vw, 64px)/1.15 "Great Vibes", cursive; text-shadow: 0 0 14px var(--pink), 0 0 36px var(--pink); }
.ask-btns { display: flex; gap: 14px; justify-content: center; align-items: center; min-height: 120px; }
.ask-btns .btn { min-width: 120px; min-height: 52px; font-size: 18px; }
#yes { transform: scale(var(--grow, 1)); transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1); animation: none; }
#no.run { position: fixed; z-index: 9; transition: left 0.2s ease-out, top 0.2s ease-out, transform 0.2s; transform-origin: 0 0; }
.ask-scene.idle .btn { pointer-events: none; }
.ask-done { opacity: 0; transition: opacity 0.8s; }
.ask-done.on { opacity: 1; }
.ask-done img { width: clamp(110px, 24vmin, 160px); height: auto; animation: orb 1.2s ease-in-out infinite; }
.ask-done p { max-width: 560px; margin: 0; white-space: pre-line; font: 600 clamp(20px, 4.4vw, 28px)/1.45 "Dancing Script", cursive; }
.ask-done b { font: 400 clamp(28px, 6vw, 40px) "Great Vibes", cursive; color: #ffd6ec; }

/* Bong bóng */
.bb-line { position: fixed; z-index: 3; left: 16px; right: 16px; bottom: max(84px, calc(env(safe-area-inset-bottom) + 76px)); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; pointer-events: none; font: 600 clamp(22px, 5vw, 34px)/1.3 "Dancing Script", cursive; }
.bb-line span { color: rgba(255, 255, 255, 0.35); }
.bb-line span.got { color: #fff; text-shadow: 0 0 12px rgba(200, 160, 255, 0.9); }
.bb-line span.pop { animation: popw 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes popw { from { transform: scale(0.2); } }
.bb-line.done span { color: #fff; text-shadow: 0 0 10px var(--pink), 0 0 26px var(--pink); }


/* ---------- Biển đêm ---------- */
.msg.sea-msg { top: 27%; font-size: clamp(26px, 5.6vw, 48px); }
