/* nguoc.vn — thiệp mời demo */
.demo {
  background: #14160f;
  color: #fdfbf6;
  min-height: 100dvh;
}

.demo-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.demo-bg video,
.demo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(18, 20, 14, 0.15) 0%, rgba(18, 20, 14, 0.55) 60%, rgba(14, 16, 11, 0.9) 100%),
    linear-gradient(180deg, rgba(14, 16, 11, 0.35) 0%, rgba(14, 16, 11, 0.1) 30%, rgba(14, 16, 11, 0.85) 100%);
}

/* ---------- gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(12, 14, 10, 0.55);
  backdrop-filter: blur(10px);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.gate.is-hidden { opacity: 0; visibility: hidden; }

.gate__card {
  width: min(420px, 100%);
  padding: 34px 26px 30px;
  border-radius: 28px;
  border: 1px solid rgba(232, 217, 181, 0.35);
  background: rgba(22, 25, 18, 0.42);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.gate__eyebrow {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(253, 251, 246, 0.7);
}
.gate__names {
  font-family: var(--font-script);
  font-size: clamp(38px, 10vw, 54px);
  line-height: 1.1;
  margin: 14px 0 4px;
  color: #fdfbf6;
}
.gate__date {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 217, 181, 0.9);
}
.gate__seal {
  width: 62px;
  height: 62px;
  margin: 24px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 217, 181, 0.55);
  color: #e8d9b5;
  font-family: var(--font-script);
  font-size: 24px;
  background: rgba(232, 217, 181, 0.08);
}
.gate p.hint { font-size: 12.5px; color: rgba(253, 251, 246, 0.65); margin: 0 0 18px; }
.gate .btn { background: #f3ede1; color: #24271f; }
.gate .btn:hover { background: #fff; }

/* ---------- shell ---------- */
.invite {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 16px 120px;
  display: grid;
  gap: 16px;
}
.invite[hidden] { display: none; }

.iblock {
  border-radius: 24px;
  padding: 24px 20px;
  background: rgba(20, 23, 17, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(120%);
}
.iblock--plain { background: none; border: 0; backdrop-filter: none; padding: 10px 0 0; }

.ihead { text-align: center; padding: 26px 12px 10px; }
.ihead__eyebrow { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(253, 251, 246, 0.65); }
.ihead__names {
  font-family: var(--font-script);
  font-size: clamp(40px, 11vw, 54px);
  line-height: 1.06;
  margin: 10px 0 8px;
}
.ihead__amp { display: block; font-size: 0.66em; color: #e8d9b5; line-height: 1; margin: 2px 0; }
.ihead__date { font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(232, 217, 181, 0.92); }
.ihead__sub { margin-top: 14px; font-size: 13.5px; color: rgba(253, 251, 246, 0.72); }

.ilabel { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(232, 217, 181, 0.85); text-align: center; }
.ititle { font-size: 20px; font-weight: 600; text-align: center; margin: 8px 0 14px; letter-spacing: -0.01em; }
.itext { font-size: 14px; line-height: 1.75; color: rgba(253, 251, 246, 0.8); text-align: center; margin: 0; }

/* countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.countdown div {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 4px 10px;
  text-align: center;
}
.countdown b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(253, 251, 246, 0.6); }

/* info rows */
.irow { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.irow:last-child { border-bottom: 0; }
.irow__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 217, 181, 0.12); color: #e8d9b5; }
.irow__t { font-weight: 600; font-size: 14px; }
.irow__d { font-size: 13px; color: rgba(253, 251, 246, 0.72); margin-top: 2px; }
.irow a { color: #e8d9b5; text-decoration: underline; text-underline-offset: 3px; }

/* timeline */
.timeline { display: grid; gap: 2px; }
.tl { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; }
.tl__time { font-size: 13px; font-weight: 600; color: #e8d9b5; font-variant-numeric: tabular-nums; }
.tl__body b { display: block; font-size: 14px; font-weight: 600; }
.tl__body span { font-size: 13px; color: rgba(253, 251, 246, 0.7); }

/* wishes */
.wishes-demo { display: grid; gap: 10px; margin-top: 12px; }
.wd {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
}
.wd__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wd__av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: rgba(232, 217, 181, 0.2); color: #f3ede1; }
.wd__n { font-size: 13px; font-weight: 600; }
.wd__tm { font-size: 11px; color: rgba(253, 251, 246, 0.5); margin-left: auto; }
.wd__x { font-size: 13.5px; color: rgba(253, 251, 246, 0.82); line-height: 1.6; }

/* form */
.form { display: grid; gap: 10px; margin-top: 14px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fdfbf6;
  font-family: inherit;
  font-size: 14px;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(253, 251, 246, 0.45); }
.form textarea { min-height: 84px; resize: vertical; }
.form select option { color: #24271f; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .btn { background: #e8d9b5; color: #24271f; }
.form .btn:hover { background: #f3ede1; }
.form .ok { font-size: 12.5px; color: #cfd9a8; }

/* bottom bar */
.ibar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(16, 18, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  width: max-content;
  max-width: calc(100vw - 24px);
}
.ibar button, .ibar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(253, 251, 246, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.ibar button:hover, .ibar a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ibar .primary { background: #e8d9b5; color: #24271f; }
.ibar .primary:hover { background: #f3ede1; }

.credit { text-align: center; font-size: 11.5px; color: rgba(253, 251, 246, 0.45); padding-top: 6px; }
.credit a { color: rgba(232, 217, 181, 0.9); }

/* petals */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.petals i {
  position: absolute;
  top: -6vh;
  width: 7px;
  height: 7px;
  border-radius: 60% 20% 60% 20%;
  background: rgba(232, 217, 181, 0.5);
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  100% { transform: translate3d(30px, 110vh, 0) rotate(320deg); opacity: 0; }
}

@media (max-width: 420px) {
  .countdown b { font-size: 20px; }
  .ibar button span { display: none; }
  .ibar button { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
}
