:root {
  --primary: #6f2e2e;
  --primary-dark: #4f1c1e;
  --gold: #e7d281;
  --paper: #fbf7f2;
  --ink: #2b2222;
  --muted: #8e8484;
  --line: #e9dfd6;
  --page-w: 440px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --script: "Great Vibes", "Dancing Script", cursive;
  --script2: "Dancing Script", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: #241314;
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
body.locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Desktop backdrop ---------- */
.backdrop {
  position: fixed; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(28px) brightness(.45) saturate(1.1);
  z-index: 0;
}

/* ---------- Page column ---------- */
.page {
  position: relative; z-index: 1;
  max-width: var(--page-w);
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,.45);
  padding-bottom: 90px;
}

/* ================= COVER ================= */
.cover {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  cursor: pointer; outline: none;
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background-color: #6b1b20;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 45%, #7e2228 0%, #5a1519 80%);
  transition: transform 1.5s cubic-bezier(.7,0,.25,1);
}
.door-left { left: 0; box-shadow: inset -14px 0 22px -12px rgba(0,0,0,.6); }
.door-right { right: 0; box-shadow: inset 14px 0 22px -12px rgba(0,0,0,.6); }
.door-left::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, rgba(255,220,200,.35), transparent);
}
.cover-center {
  position: relative; text-align: center; color: #f3dcc0;
  transition: opacity .6s, transform .8s;
}
.cover-kicker {
  font-family: var(--sans); letter-spacing: .35em; text-transform: uppercase;
  font-size: 11px; opacity: .75; margin: 0 0 6px;
}
.cover-names {
  font-family: var(--script); font-size: clamp(26px, 8vw, 34px); margin: 0 0 22px; padding: 0 12px; color: var(--gold);
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.seal { width: 118px; margin: 0 auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); animation: sealPulse 2.4s ease-in-out infinite; }
.seal-text { font-family: var(--script); font-size: 30px; fill: #e4a39a; opacity: .9; }
.cover-hint {
  font-family: var(--sans); font-size: 12px; letter-spacing: .15em; margin-top: 20px;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes sealPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes blink { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.cover.open .door-left { transform: translateX(-102%); }
.cover.open .door-right { transform: translateX(102%); }
.cover.open .cover-center { opacity: 0; transform: scale(1.4); }
.cover.gone { display: none; }

/* ================= HERO ================= */
.hero {
  position: relative; height: min(100svh, 860px); min-height: 620px;
  color: #fff; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  transform: scale(1.12); transition: transform 6s ease-out;
}
body.opened .hero-img { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(251,247,242,.85) 0%, rgba(251,247,242,0) 22%),
    linear-gradient(0deg, rgba(40,15,15,.55) 0%, rgba(40,15,15,0) 40%);
}
.hero-top { position: absolute; top: 18px; left: 16px; right: 16px; color: var(--primary); }
.hero-sub { font-family: var(--script2); font-size: 16px; margin: 0; }
.hero-date { font-family: var(--serif); font-size: 22px; letter-spacing: .06em; margin: 2px 0 0 64px; }
.hero-married { font-family: var(--script); font-size: 30px; text-align: right; margin: -4px 0 0; }
.hero-names {
  position: absolute; left: 0; right: 0; top: 38%;
  display: grid; justify-items: center; gap: 2px;
  font-family: var(--serif); font-size: 30px; letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero-names .amp { font-family: var(--script); font-size: 40px; text-transform: none; color: var(--gold); }
body.opened .hero-names span { animation: rise 1.2s both; }
body.opened .hero-names span:nth-child(2) { animation-delay: .3s; }
body.opened .hero-names span:nth-child(3) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.countdown {
  position: absolute; left: 16px; right: 16px; bottom: 92px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.countdown div {
  background: rgba(255,255,255,.88); color: var(--primary);
  border-radius: 10px; padding: 8px 0 6px; text-align: center;
  backdrop-filter: blur(4px);
}
.countdown b { display: block; font-family: var(--sans); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--sans); font-size: 12px; }
.countdown.done { grid-template-columns: 1fr; }
.countdown.done div { font-family: var(--script); font-size: 26px; padding: 10px; }

/* ================= GENERIC SECTION ================= */
.sec { padding: 56px 22px; text-align: center; position: relative; }
.sec-title {
  font-family: var(--script); font-weight: 400; font-size: 42px; color: var(--primary);
  margin: 0 0 24px;
}
.caps { text-transform: uppercase; letter-spacing: .12em; font-size: 17px; margin: 22px 0 4px; }
.caps.small { font-size: 13.5px; line-height: 1.7; margin-top: 8px; }
.muted { color: var(--muted); }

/* ================= SAVE THE DATE ================= */
.std { margin: 0 0 30px; color: var(--primary); font-weight: 400; line-height: .95; font-family: var(--serif); }
.std span { display: block; }
.std-save { font-size: 58px; text-align: left; padding-left: 8px; letter-spacing: .04em; }
.std-the { font-family: var(--script); font-size: 38px; margin: -6px 0; }
.std-date { font-size: 58px; text-align: right; padding-right: 8px; letter-spacing: .04em; }

.families { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.fam h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; color: var(--primary); }
.fam p { font-size: 12.5px; margin: 3px 0; text-transform: uppercase; }
.fam .addr { text-transform: none; font-style: italic; color: var(--muted); font-size: 11px; margin-top: 8px; line-height: 1.5; }

.couple-script {
  display: grid; justify-items: center; font-family: var(--script);
  color: var(--primary); font-size: 50px; line-height: 1.15;
}
.couple-script .amp { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink); }
.guest {
  font-family: var(--script); font-size: 36px; color: var(--primary);
  margin: 0; min-height: 1.2em; position: relative; display: inline-block; padding: 0 14px;
}
.guest::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; border-bottom: 1px dashed #c9b3a5; }

/* ================= EVENTS ================= */
.events { display: grid; gap: 18px; padding-top: 10px; }
.event-card {
  background: var(--primary); color: #fff; border-radius: 14px; padding: 26px 16px 22px;
  box-shadow: 0 12px 30px -14px rgba(111,46,46,.7);
  background-image: radial-gradient(circle at 100% 0, rgba(255,255,255,.08), transparent 45%);
  position: relative;
}
.event-card::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(231,210,129,.35); border-radius: 10px; pointer-events: none;
}
.event-card h3 { font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: 18px; margin: 0 0 10px; }
.event-card .at { font-size: 14px; margin: 0 0 6px; opacity: .9; }
.event-card .when { font-family: var(--serif); font-weight: 600; color: var(--gold); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
.event-card .lunar { font-style: italic; font-size: 13px; margin: 0 0 14px; opacity: .9; }
.event-card .place { text-transform: uppercase; letter-spacing: .06em; font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.event-card .addr { font-size: 12.5px; font-style: italic; opacity: .85; margin: 0 0 16px; line-height: 1.5; }
.btn-map {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font-family: var(--sans); font-size: 13px; text-decoration: none;
  position: relative;
}
.btn-map svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; stroke-width: 2; }

/* ================= CEREMONY ================= */
.song-hy { font-size: 60px; color: #c0292f; line-height: 1; font-family: "Songti SC", "SimSun", serif; }
.ceremony-title { text-transform: uppercase; color: var(--primary); letter-spacing: .12em; font-weight: 500; font-size: 20px; margin: 10px 0 6px; }
.ceremony-place { font-size: 14px; margin: 0 0 16px; }
.ceremony-place b { text-transform: uppercase; font-weight: 600; }
.ceremony-time, .ceremony-date { font-family: var(--sans); font-weight: 300; font-size: 30px; margin: 0; letter-spacing: .02em; }
.ceremony-lunar { font-style: italic; color: var(--muted); font-size: 13px; margin: 6px 0 24px; }

.calendar {
  background: #fff; border-radius: 6px; padding: 30px 14px 16px; position: relative;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.25);
  margin: 0 4px 22px;
}
.calendar::before { /* lỗ gáy lịch */
  content: ""; position: absolute; top: 10px; left: 18px; right: 18px; height: 8px;
  background: radial-gradient(circle, #d8cfc6 3.5px, transparent 4px) 0 0 / 18px 8px repeat-x;
}
.cal-head { font-family: var(--serif); color: var(--primary); font-size: 18px; margin-bottom: 10px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; font-family: var(--sans); font-size: 13px; }
.cal-grid .wd { font-size: 11px; color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.cal-grid .d { height: 34px; display: grid; place-items: center; position: relative; color: var(--primary); }
.cal-grid .d.hit { color: #fff; font-weight: 600; }
.cal-grid .d.hit svg { position: absolute; width: 36px; height: 36px; fill: #e0434f; animation: beat 1.3s infinite; z-index: 0; }
.cal-grid .d.hit span { position: relative; z-index: 1; }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

.btn-outline {
  display: inline-block; border: 1px solid var(--primary); color: var(--primary); border-radius: 999px;
  padding: 9px 20px; font-family: var(--sans); font-size: 13px; text-decoration: none;
}

/* ================= TIMELINE ================= */
.timeline-sec { background: #f4ece3; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 320px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; border-left: 1px dashed var(--primary); opacity: .5; }
.tl { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; margin-bottom: 18px; }
.tl:last-child { margin-bottom: 0; }
.tl .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 0 0 6px #f4ece3; }
.tl .ic svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tl .t { font-family: var(--sans); font-weight: 600; color: var(--primary); font-size: 20px; text-align: right; padding-right: 14px; }
.tl .l { text-align: left; padding-left: 14px; font-size: 15px; }
.tl:nth-child(even) .t { order: 3; text-align: left; padding: 0 0 0 14px; }
.tl:nth-child(even) .l { order: 1; text-align: right; padding: 0 14px 0 0; }
.tl:nth-child(even) .ic { order: 2; }

/* ================= COUPLE ================= */
.couple { display: grid; gap: 34px; }
.person { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: center; }
.person.flip { grid-template-columns: 1fr 1.15fr; }
.person.flip .frame { order: 2; }
.frame { background: #fff; padding: 8px 8px 30px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); transform: rotate(-2deg); }
.person.flip .frame { transform: rotate(2deg); }
.frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.role { font-family: var(--script); color: var(--primary); font-size: 28px; margin: 0; }
.person-text { min-width: 0; }
.pname { font-size: 18px; margin: 2px 0 0; line-height: 1.35; }

/* ================= PAIR + QUOTE ================= */
.pair { background: linear-gradient(180deg, var(--paper) 0 30%, #eef1ea 30% 100%); }
.pair-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair-photos img { width: 100%; aspect-ratio: 3/4.2; object-fit: cover; border-radius: 4px; }
.pair-photos img:last-child { margin-top: 30px; }
.quote { font-family: var(--script2); font-size: 21px; color: #383838; line-height: 1.5; margin: 26px 0 0; }

/* ================= ALBUM ================= */
.album { position: relative; border-radius: 10px; overflow: hidden; background: #1b1212; }
.album-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.album-track::-webkit-scrollbar { display: none; }
.album-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3/4; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
.album-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85);
  color: var(--primary); font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.album-nav.prev { left: 10px; } .album-nav.next { right: 10px; }
.album-count { position: absolute; right: 12px; bottom: 10px; font-family: var(--sans); font-size: 12px; color: #fff; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 999px; }
.album-thumbs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.album-thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; opacity: .55; cursor: pointer; flex: 0 0 auto; border: 2px solid transparent; transition: .25s; }
.album-thumbs img.on { opacity: 1; border-color: var(--primary); }

/* ================= RSVP ================= */
.rsvp-intro { font-size: 15px; color: var(--primary); line-height: 1.6; margin: 0 0 20px; }
.rsvp {
  background: #fff; border-radius: 12px; padding: 22px 20px; text-align: left;
  box-shadow: 0 12px 34px -16px rgba(0,0,0,.3); font-family: var(--sans);
}
.rsvp h3 { text-align: center; font-family: var(--serif); font-size: 20px; margin: 0 0 16px; }
.rsvp label, .rsvp legend { display: block; font-size: 13px; color: #444; margin-bottom: 14px; }
.rsvp fieldset { border: 0; padding: 0; margin: 0 0 6px; }
.rsvp legend { margin-bottom: 8px; padding: 0; }
.rsvp input[type=text], .rsvp select, .rsvp textarea, .modal-card input, .modal-card textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #ddd; border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.rsvp input:focus, .rsvp select:focus, .rsvp textarea:focus, .modal-card input:focus, .modal-card textarea:focus {
  outline: 2px solid rgba(111,46,46,.25); border-color: var(--primary);
}
.rsvp .radio { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.rsvp .radio input { accent-color: var(--primary); width: 17px; height: 17px; margin: 0; }
.rsvp .invalid { border-color: #d33 !important; }
.btn-primary {
  width: 100%; border: 0; background: var(--primary); color: #fff; border-radius: 8px; padding: 13px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .03em;
}
.btn-primary:active { transform: scale(.98); }
.btn-ghost { border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 11px 26px; font-family: var(--sans); font-size: 14px; }
.rsvp-done { background: #fff; border-radius: 12px; padding: 26px 20px; box-shadow: 0 12px 34px -16px rgba(0,0,0,.3); font-family: var(--sans); font-size: 14px; }
.script-lg { font-family: var(--script); font-size: 40px; color: var(--primary); margin: 0 0 6px; }
.link { background: none; border: 0; color: var(--primary); text-decoration: underline; font-family: var(--sans); font-size: 13px; margin-top: 8px; }

/* ================= GIFT ================= */
.gift-sec { padding-bottom: 0; }
.gift-box { background: none; border: 0; width: 110px; padding: 0; animation: wobble 2.8s ease-in-out infinite; }
@keyframes wobble { 0%,70%,100% { transform: rotate(0); } 75% { transform: rotate(-8deg); } 85% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); } }
.gift-title { font-weight: 400; text-transform: uppercase; color: var(--primary); letter-spacing: .12em; font-size: 19px; margin: 12px 0 26px; }
.gift-photo { width: calc(100% + 44px); margin: 0 -22px; aspect-ratio: 3/4; object-fit: cover; }

/* ================= THANKS ================= */
.thanks { position: relative; }
.thanks img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.thanks-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(251,247,242,1) 0%, rgba(251,247,242,0) 35%); }
.thanks-text { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-family: var(--script); color: var(--primary); font-size: 54px; margin: 0; }
.foot { text-align: center; padding: 18px 0 10px; font-family: var(--script); color: var(--primary); font-size: 26px; }
.foot p { margin: 0; }
.foot .muted { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; }

/* ================= FLOATING UI ================= */
.fab-music {
  position: fixed; top: 14px; z-index: 60;
  right: max(14px, calc(50% - var(--page-w) / 2 + 14px));
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,0,0,.2);
  display: grid; place-items: center;
}
.fab-music svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab-music.playing { animation: spin 4s linear infinite; }
.fab-music:not(.playing)::after { content: ""; position: absolute; width: 26px; height: 2px; background: var(--primary); transform: rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(var(--page-w), 100%);
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(251,247,242,.96) 60%, rgba(251,247,242,0));
}
.bar-input {
  flex: 1; text-align: left; border: 1px solid #e2d6cc; background: #fff; color: var(--muted);
  border-radius: 999px; padding: 10px 16px; font-family: var(--sans); font-size: 13px;
}
.bar-btn {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.bar-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linejoin: round; }
.bar-btn.heart { background: linear-gradient(#ff9aa6, #ff4969); }
.bar-btn.heart svg { fill: #fff; stroke: #fff; }
.bar-btn.gift { background: var(--primary); }
.bar-btn.gift svg { stroke: #fff; }
.bar-btn.off { opacity: .45; }

.wish-stream {
  position: fixed; z-index: 40; bottom: 70px;
  left: max(10px, calc(50% - var(--page-w) / 2 + 10px));
  width: min(260px, 68vw);
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.wish-stream.off, .wish-stream.atHero { display: none; }
.wish {
  align-self: flex-start; max-width: 100%;
  background: rgba(111,46,46,.62); color: #fff; backdrop-filter: blur(4px);
  font-family: var(--sans); font-size: 11.5px; line-height: 1.4;
  padding: 6px 11px; border-radius: 14px;
  animation: wishIn .5s ease-out both;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.wish b { font-weight: 600; color: #ffd6dc; }
.wish.out { animation: wishOut .5s ease-in both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wishOut { to { opacity: 0; transform: translateY(-14px); } }

/* ================= MODALS ================= */
.modal {
  position: fixed; inset: 0; z-index: 120; background: rgba(20,10,10,.55);
  display: grid; place-items: center; padding: 20px; animation: fade .25s;
}
.modal-card {
  width: min(380px, 100%); background: #fff; border-radius: 16px; padding: 22px 18px 18px; text-align: center;
  font-family: var(--sans); max-height: 88svh; overflow: auto; animation: pop .3s;
}
.modal-card h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; color: var(--ink); }
.modal-card .muted { font-size: 13px; margin: 0 0 14px; }
.modal-card textarea { resize: vertical; margin-bottom: 12px; }
.modal-card .row { display: flex; gap: 10px; }
.modal-card .row > * { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

.bank { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; text-align: left; }
.bank-owner { font-weight: 600; font-size: 13px; text-align: center; margin-bottom: 8px; }
.bank-body { display: flex; gap: 12px; align-items: center; }
.bank-qr { width: 104px; height: 104px; flex: 0 0 auto; object-fit: contain; background: #f6f2ee; border-radius: 6px; }
.bank-info { font-size: 13px; line-height: 1.5; min-width: 0; }
.bank-info .h { font-weight: 600; }
.bank-info .acc { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .03em; word-break: break-all; }
.btn-copy { margin-top: 6px; border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; }

.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.92); display: grid; place-items: center; animation: fade .25s; }
.lightbox img { max-width: 100vw; max-height: 100svh; object-fit: contain; }
.lb-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 34px; width: 46px; height: 46px; border-radius: 50%; z-index: 2; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 140;
  background: #2b2222; color: #fff; font-family: var(--sans); font-size: 13px; padding: 10px 16px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .3s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= FX ================= */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.petal {
  position: absolute; top: -20px; width: 12px; height: 10px;
  background: linear-gradient(135deg, #f6c9cf, #f19aa8);
  border-radius: 150% 0 150% 0; opacity: .8;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translate(0, -20px) rotate(0); }
  50% { transform: translate(40px, 50vh) rotate(200deg); }
  100% { transform: translate(-20px, 105vh) rotate(420deg); }
}
.fly-heart { position: absolute; width: 26px; height: 26px; animation: flyUp 1.8s ease-out forwards; }
.fly-heart svg { width: 100%; height: 100%; fill: #ff4969; }
@keyframes flyUp {
  0% { transform: translate(0,0) scale(.4); opacity: 1; }
  100% { transform: translate(var(--dx), -60vh) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.left { transform: translateX(-36px); }
.reveal.right { transform: translateX(36px); }
.reveal.zoom { transform: scale(.85); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .petal { display: none; }
}

@media (max-width: 480px) {
  .page { box-shadow: none; }
  .backdrop { display: none; }
  body { background: var(--paper); }
}
