/* Phú Yên Wedding - Vowry-Style Invitation Engine */
:root {
  --c1: #9b2226;
  --c2: #6b141a;
  --c3: #f3d9d9;
  --ink: #5a1015;
  --bg: #fff;
  --dark: #541a24;
  --f-script: 'Great Vibes', cursive;
  --f-title: 'Playfair Display', serif;
  --f-body: 'Lexend', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #ece6df; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.vw-app {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
}
@media (min-width: 768px) {
  body { padding: 24px 0; }
  .vw-app {
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  }
}
.vw-lock { height: 100vh; overflow: hidden; }

/* Textured Paper Background */
.vw-paper {
  background-color: #f8f6f0;
  position: relative;
}
.vw-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.58 0 0 0 0 0.55 0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}

/* ==========================================================================
   COVER 1: WAX SEAL 2-DOOR SPLIT
   ========================================================================== */
.vw-cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  transition: visibility 0s 1.6s;
}
@media (min-width: 768px) {
  .vw-cover {
    top: 24px;
    bottom: 24px;
    border-radius: 26px;
  }
}
.vw-cover.open {
  visibility: hidden;
  pointer-events: none;
}
.vw-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 1;
}
.vw-half.l { left: 0; }
.vw-half.r { right: 0; }
.vw-half .vw-paper {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 420px;
}
.vw-half.l .vw-paper { left: 0; }
.vw-half.r .vw-paper { right: 0; }
.vw-cover.open .vw-half.l { transform: translateX(-102%); }
.vw-cover.open .vw-half.r { transform: translateX(102%); }

/* Floral Branches flanking center seal */
.vw-cover-flora {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 380px;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.vw-cover-flora .flora-branch {
  width: 190px;
  height: 100%;
  color: var(--c1);
}
.vw-cover-flora .flora-branch.a {
  animation: swayLeft 6s ease-in-out infinite;
  transform-origin: left center;
}
.vw-cover-flora .flora-branch.b {
  animation: swayRight 6s ease-in-out infinite;
  transform-origin: right center;
}
@keyframes swayLeft {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-4px); }
}
@keyframes swayRight {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(4px); }
}

.vw-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  z-index: 5;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.38));
  transition: transform 0.5s, opacity 0.8s;
  animation: sealPulse 2.4s ease-in-out infinite;
}
.vw-seal svg { width: 100%; height: 100%; display: block; }
.vw-cover.open .vw-seal {
  transform: scale(2.2);
  opacity: 0;
  animation: none;
}
@keyframes sealPulse {
  0%, 100% { transform: scale(1.0); }
  50% { transform: scale(1.06); }
}

.vw-tap {
  position: absolute;
  bottom: 58px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c1);
  font-weight: 600;
  z-index: 5;
  animation: tapBlink 2s ease-in-out infinite;
}
@keyframes tapBlink {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.35; }
}

/* ==========================================================================
   COVER 2: REALISTIC LUXURY ENVELOPE MODAL
   ========================================================================== */
.vw-env-cover {
  background-color: #faf7f2;
}
.vw-env-cover .vw-invite {
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 24px;
  color: var(--c1);
  transition: opacity 0.6s;
}
.vw-invite small {
  display: block;
  font-family: var(--f-title);
  letter-spacing: 0.15em;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
}
.vw-invite .guest {
  font-family: var(--f-script);
  font-size: 46px;
  margin: 6px 0 4px;
  line-height: 1.1;
}
.vw-invite p {
  font-family: var(--f-title);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.5;
}

.vw-env-wrapper {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 330px;
  height: 220px;
  cursor: pointer;
  perspective: 1000px;
  z-index: 3;
}
.vw-env-box {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.8s 0.6s;
}

/* Envelope Back */
.vw-env-box .env-back {
  position: absolute;
  inset: 0;
  background: var(--c1);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

/* Envelope Letter Card */
.vw-env-box .env-card {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 10px;
  bottom: 10px;
  background: #fffdfa;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  transition: transform 1.1s 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.vw-env-box .env-card .inner-title {
  font-family: var(--f-title);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.vw-env-box .env-card .inner-names {
  font-family: var(--f-script);
  font-size: 32px;
  color: var(--c1);
  line-height: 1.1;
}

/* Envelope Front Pocket */
.vw-env-box .env-pocket {
  position: absolute;
  inset: 0;
  background: var(--c1);
  border-radius: 6px;
  clip-path: polygon(0% 35%, 50% 65%, 100% 35%, 100% 100%, 0% 100%);
  filter: brightness(0.92);
  z-index: 3;
}
.vw-env-box .env-sides {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.14) 100%);
  clip-path: polygon(0% 35%, 50% 65%, 100% 35%, 100% 100%, 0% 100%);
  z-index: 3;
  pointer-events: none;
}

/* Envelope Flap (Points DOWN when closed, covering entire top half) */
.vw-env-box .env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: var(--c1);
  clip-path: polygon(0% 0%, 100% 0%, 100% 35%, 50% 65%, 0% 35%);
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.6, 0, 0.2, 1), z-index 0s 0.4s;
  z-index: 4;
  filter: brightness(1.05);
  border-radius: 6px 6px 0 0;
}

/* Seal on Flap tip (at 65% Y) */
.vw-env-box .env-seal {
  position: absolute;
  left: 50%;
  top: 65%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  z-index: 5;
  transition: opacity 0.3s;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}
.vw-env-box .env-seal svg { width: 100%; height: 100%; }

.vw-env-box .env-hand {
  position: absolute;
  left: 58%;
  top: 68%;
  width: 32px;
  z-index: 6;
  animation: handTap 1.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}


/* Opened States */
.vw-cover.open .env-flap {
  transform: rotateX(180deg);
  z-index: 1;
}
.vw-cover.open .env-seal,
.vw-cover.open .env-hand {
  opacity: 0;
}
.vw-cover.open .env-card {
  transform: translateY(-160px) scale(1.05);
}
.vw-cover.open .vw-env-box {
  transform: translateY(120px) scale(0.9);
  opacity: 0;
}
.vw-cover.open .vw-invite {
  opacity: 0;
}

/* ==========================================================================
   SECTIONS & INNER PAGES
   ========================================================================== */
.vw-sec {
  position: relative;
  padding: 44px 24px;
  text-align: center;
}
.vw-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vw-reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.vw-reveal.d1 { transition-delay: 0.15s; }
.vw-reveal.d2 { transition-delay: 0.3s; }
.vw-reveal.d3 { transition-delay: 0.45s; }

/* Hero Section */
.vw-hero {
  height: 640px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.vw-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.1);
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}
.vw-app.ready .vw-hero img {
  transform: scale(1);
}
.vw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 35%, transparent 60%, rgba(0,0,0,0.6) 100%);
}
.vw-hero .top {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--f-script);
  font-size: 56px;
  z-index: 2;
  text-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.vw-hero .names {
  position: absolute;
  bottom: 54px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  font-family: var(--f-title);
  font-size: 34px;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0,0,0,0.6);
  padding: 0 16px;
}
.vw-hero .names em {
  display: block;
  font-family: var(--f-script);
  font-style: normal;
  font-size: 46px;
  text-transform: none;
  margin: 2px 0;
}

/* Countdown */
.vw-eyebrow {
  font-family: var(--f-title);
  letter-spacing: 0.22em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--c1);
  line-height: 1.6;
  font-weight: 600;
}
.vw-count {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  align-items: flex-start;
}
.vw-count div { min-width: 60px; }
.vw-count b {
  display: block;
  font-family: var(--f-title);
  font-size: 38px;
  color: var(--c1);
  font-weight: 700;
  line-height: 1.1;
}
.vw-count span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #666;
}
.vw-count i {
  font-style: normal;
  font-size: 26px;
  padding-top: 6px;
  color: var(--c1);
  opacity: 0.6;
}

/* Envelope Polaroids */
.vw-photoenv {
  position: relative;
  height: 420px;
  margin: 16px auto 0;
  width: 310px;
}
.vw-photoenv .pol {
  position: absolute;
  width: 154px;
  background: #fff;
  padding: 7px 7px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.24);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-radius: 2px;
}
.vw-photoenv .pol img {
  width: 100%;
  height: 194px;
  object-fit: cover;
  display: block;
}
.vw-photoenv .pol.p1 {
  left: 6px;
  top: 40px;
  transform: translateY(110px) rotate(0deg);
}
.vw-photoenv .pol.p2 {
  right: 6px;
  top: 24px;
  transform: translateY(110px) rotate(0deg);
}
.vw-photoenv.in .pol.p1 { transform: rotate(-8deg); }
.vw-photoenv.in .pol.p2 { transform: rotate(7deg); }

.vw-photoenv .ticket {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 220px;
  background: #fffaf5;
  padding: 10px 14px;
  font-family: var(--f-script);
  color: var(--c1);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transform: rotate(-7deg);
  z-index: 2;
  border-radius: 3px;
}
.vw-photoenv .ticket b {
  display: block;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}
.vw-photoenv .ticket span {
  font-size: 17px;
  font-family: var(--f-title);
  letter-spacing: 1px;
}
.vw-photoenv .penv {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 190px;
  z-index: 3;
  background: var(--c1);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  clip-path: polygon(0 20%, 50% 60%, 100% 20%, 100% 100%, 0 100%);
  filter: brightness(0.95);
  border-radius: 0 0 4px 4px;
}
.vw-photoenv .pseal {
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  z-index: 4;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.vw-photoenv .pseal svg { width: 100%; height: 100%; }

/* Parents Section */
.vw-parents {
  display: flex;
  margin-top: 32px;
  text-align: center;
  position: relative;
}
.vw-parents > div {
  flex: 1;
  font-size: 13px;
  line-height: 1.85;
  padding: 0 8px;
}
.vw-parents > div + div {
  border-left: 1px solid var(--c1);
}
.vw-parents h4 {
  font-family: var(--f-title);
  letter-spacing: 0.08em;
  color: var(--c1);
  margin-bottom: 4px;
  font-size: 15px;
}

/* Guest & Event Details */
.vw-guest {
  margin-top: 36px;
}
.vw-guest .g {
  font-family: var(--f-script);
  font-size: 44px;
  color: var(--c1);
  margin-top: 6px;
}
.vw-line {
  font-size: 13.5px;
  line-height: 1.8;
  color: #6a4045;
}
.vw-names {
  font-family: var(--f-script);
  font-size: 46px;
  color: var(--c1);
  line-height: 1.15;
  margin: 18px 0;
}
.vw-time {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 21px;
  color: var(--c1);
  letter-spacing: 0.05em;
}
.vw-big {
  font-family: var(--f-title);
  color: var(--c1);
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin: 14px 0;
}
.vw-big b {
  font-size: 64px;
  line-height: 1;
}
.vw-big div {
  font-size: 15px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  border-left: 1px solid var(--c1);
  border-right: 1px solid var(--c1);
  padding: 0 14px;
}
.vw-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 30px;
  border: 1.5px solid var(--c1);
  color: var(--c1);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  font-family: var(--f-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.vw-btn:hover {
  background: var(--c1);
  color: #fff;
}
.vw-btn.solid {
  background: var(--c1);
  color: #fff;
  width: 100%;
  padding: 14px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

/* Calendar Section */
.vw-cal {
  position: relative;
  margin: 20px auto 0;
  width: 310px;
  height: 350px;
}
.vw-cal .cenv {
  position: absolute;
  right: -20px;
  top: 0;
  width: 220px;
  height: 160px;
  background: var(--c1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  border-radius: 4px;
}
.vw-cal .cenv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 50%);
}
.vw-cal .paper {
  position: absolute;
  left: 0;
  top: 48px;
  width: 295px;
  padding: 26px 22px;
  background: #fbf7ef;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  clip-path: polygon(2% 1%, 15% 0%, 30% 1.5%, 48% 0%, 65% 1%, 82% 0%, 98% 1%, 100% 14%, 99% 40%, 100% 66%, 98.5% 98%, 80% 100%, 60% 98.7%, 40% 100%, 20% 98.5%, 1% 100%, 0% 80%, 1.2% 50%, 0% 22%);
  transform: rotate(-2.5deg);
}
.vw-cal h5 {
  font-family: var(--f-script);
  font-size: 36px;
  color: var(--c1);
  font-weight: 400;
  margin-bottom: 8px;
}
.vw-cal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.vw-cal th {
  font-size: 9.5px;
  padding: 4px 0;
  color: #777;
}
.vw-cal td {
  text-align: center;
  padding: 6px 0;
  position: relative;
}
.vw-cal td.on {
  color: #fff;
  font-weight: 700;
  z-index: 1;
}
.vw-cal td.on::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  background: var(--c1);
  clip-path: path("M14 26 C-7 11 3 -2 14 6 C25 -2 35 11 14 26 Z");
  z-index: -1;
  animation: heartBeat 1.6s infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Forms */
.vw-form {
  text-align: left;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.vw-form input,
.vw-form select,
.vw-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--c1);
  border-radius: 14px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.vw-form textarea {
  min-height: 90px;
  resize: none;
}
.vw-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.vw-qty div {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--c1);
  border-radius: 14px;
  padding: 6px 10px;
}
.vw-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--c3);
  color: var(--c1);
  font-size: 18px;
  cursor: pointer;
}

/* Album Gallery */
.vw-golden {
  background: var(--dark);
  color: #fff;
  padding: 40px 16px 44px;
}
.vw-golden h3 {
  font-family: var(--f-title);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.vw-golden h3 em {
  font-family: var(--f-script);
  font-style: normal;
  color: var(--c3);
  padding: 0 6px;
  font-size: 32px;
}
.vw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vw-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  cursor: zoom-in;
}
.vw-grid .t {
  grid-row: span 2;
  aspect-ratio: 3/4.4;
}
.vw-grid .s { aspect-ratio: 1; }
.vw-grid .w {
  grid-column: span 2;
  aspect-ratio: 16/10;
}

/* Guestbook Wishes */
.vw-wishes {
  text-align: left;
  margin-top: 24px;
  display: grid;
  gap: 14px;
}
.vw-wishes div {
  background: #faf8f5;
  border-left: 3px solid var(--c1);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}
.vw-wishes div b {
  display: block;
  font-size: 13.5px;
  color: #222;
  margin-bottom: 3px;
}
.vw-wishes div p {
  font-size: 13px;
  font-style: italic;
  color: #555;
  line-height: 1.5;
}

/* Timeline */
.vw-timeline {
  position: relative;
  height: 310px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.vw-timeline img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vw-timeline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 10, 16, 0.45);
}
.vw-timeline > * {
  position: relative;
  z-index: 2;
}
.vw-timeline h3 {
  font-family: var(--f-title);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.06em;
  position: absolute;
  top: 26px;
}
.vw-tl {
  display: flex;
  width: 86%;
  justify-content: space-between;
  position: relative;
  margin-top: 50px;
}
.vw-tl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  background: #fff;
}
.vw-tl div {
  position: relative;
  text-align: center;
  font-size: 11px;
  padding-top: 24px;
  width: 25%;
}
.vw-tl div::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}
.vw-tl b {
  display: block;
  font-size: 14px;
}

/* Gift Section & End Card */
.vw-gift { padding: 40px 24px; }
.vw-gift .qrs {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.vw-gift .qr {
  background: #fff;
  border: 1px solid var(--c3);
  border-radius: 14px;
  padding: 12px;
  width: 156px;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.vw-gift .qr img {
  width: 100%;
  border-radius: 6px;
}

.vw-end {
  position: relative;
  height: 480px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.vw-end img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.vw-end .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 24px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.vw-end .cap h4 {
  font-family: var(--f-script);
  font-size: 40px;
  font-weight: 400;
}
.vw-end .cap p {
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: 4px;
  opacity: 0.92;
}
.vw-brand {
  padding: 14px;
  text-align: center;
  font-size: 10.5px;
  opacity: 0.6;
  color: #444;
  background: #fff;
}

/* Extras */
.vw-music {
  position: fixed;
  right: max(14px, calc(50% - 196px));
  bottom: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c1);
  color: #fff;
  border: 2px solid #fff;
  z-index: 40;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: none;
}
.vw-music.on {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 6s linear infinite;
}
.vw-music.paused {
  animation-play-state: paused;
  opacity: 0.7;
}
@keyframes spin { to { transform: rotate(360deg); } }

.vw-petal {
  position: fixed;
  top: -30px;
  z-index: 30;
  pointer-events: none;
  width: 14px;
  height: 18px;
  background: var(--c3);
  border-radius: 70% 0 70% 0;
  opacity: 0.85;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translate(var(--dx), 110vh) rotate(540deg);
    opacity: 0.2;
  }
}

.vw-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
}
.vw-lightbox.on { display: flex; }
.vw-lightbox img {
  max-width: 94%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
