/* =========================================================
   Thiệp cưới Linh ♥ Hồng
   Theme: vàng nhạt / trắng  (gold)  ·  hồng nhạt / trắng (pink)
   ========================================================= */

:root,
[data-theme='gold'] {
  --bg: #fffbf2;
  --bg-2: #f8eed6;
  --paper: #fffdf8;
  --ink: #4a3a22;
  --ink-soft: #806a48;
  --accent: #b5832f;
  --accent-strong: #8c5f16;
  --accent-light: #e4c785;
  --accent-wash: #f7edd3;
  --line: rgba(181, 131, 47, 0.32);
  --glow: rgba(228, 199, 133, 0.45);
  --shadow: 0 22px 48px -26px rgba(120, 84, 20, 0.5);
  --petal-a: #ecd69c;
  --petal-b: #f8ecc9;
}

[data-theme='pink'] {
  --bg: #fff8fa;
  --bg-2: #fde7ee;
  --paper: #fffdfd;
  --ink: #5a2537;
  --ink-soft: #8e566a;
  --accent: #cc4f78;
  --accent-strong: #a8325a;
  --accent-light: #f3a9c0;
  --accent-wash: #fde5ed;
  --line: rgba(204, 79, 120, 0.28);
  --glow: rgba(243, 169, 192, 0.45);
  --shadow: 0 22px 48px -26px rgba(160, 40, 80, 0.42);
  --petal-a: #f7b4c9;
  --petal-b: #fdd9e4;
}

:root {
  --script: 'Great Vibes', 'Dancing Script', cursive;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scrollbar-gutter: stable;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color 0.6s ease, color 0.6s ease;
  -webkit-font-smoothing: antialiased;
}

/* nền: quầng màu mềm cố định + lớp nhiễu hạt giấy ánh kim */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70vw 60vh at 100% 0%, var(--bg-2), transparent 70%),
    radial-gradient(60vw 70vh at 0% 45%, var(--accent-wash), transparent 70%),
    radial-gradient(60vw 60vh at 100% 100%, var(--bg-2), transparent 70%);
  transition: opacity 0.6s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.js body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
}

a {
  color: var(--accent-strong);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main,
.footer {
  position: relative;
  z-index: 3;
}

/* ---------- Typo helpers ---------- */
.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.addr {
  font-size: 1rem;
  color: var(--ink-soft);
}

.lunar {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.6rem auto 0;
}

.ornament span {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.ornament span:last-child {
  transform: scaleX(-1);
}

.ornament i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- Layout ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head .eyebrow {
  display: inline-block;
  line-height: 1.5;
}

.section-title {
  margin: clamp(0.75rem, 2.2vw, 1.25rem) 0 0;
  font-size: clamp(2.9rem, 8vw, 4.6rem);
  color: var(--accent-strong);
}

.section-title__amp {
  display: inline-block;
  font-size: 0.68em;
  margin: 0 0.24em;
  vertical-align: 0;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, opacity 0.3s;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-light) -40%, var(--accent) 45%, var(--accent-strong));
  box-shadow: 0 12px 28px -12px var(--accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px var(--accent);
}

.btn--primary:disabled {
  opacity: 0.6;
  transform: none;
  cursor: wait;
}

.btn--ghost {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--accent-wash);
}

/* ---------- Wreath monogram ---------- */
.wreath {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.wreath__ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.wreath__stem {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.wreath__leaves path {
  fill: var(--accent);
  opacity: 0.85;
}

.wreath__logo {
  fill: var(--accent-strong);
  transition: fill 0.6s ease;
}

.wreath text {
  font-family: var(--serif);
  font-size: 70px;
  font-weight: 500;
  fill: var(--accent-strong);
  text-anchor: middle;
}

.wreath__h {
  font-style: italic;
}

.wreath--cover {
  width: clamp(150px, 38vw, 200px);
}

.wreath--hero {
  width: clamp(120px, 30vw, 150px);
  margin-bottom: 1.25rem;
}

.wreath--footer {
  width: 110px;
  margin-bottom: 1rem;
}

/* ---------- Cover (phong bì / thiệp gập) ---------- */
.cover {
  display: none;
}

.js .cover {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
  contain: layout paint;
}

.cover__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 50% 50%, var(--accent-wash), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 22px, var(--line) 22px 23px),
    repeating-linear-gradient(-45deg, transparent 0 22px, var(--line) 22px 23px);
  background-blend-mode: normal;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}

.cover__door::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
}

.cover__door--left {
  left: 0;
  box-shadow: inset -1px 0 0 var(--accent), 8px 0 30px -12px rgba(0, 0, 0, 0.15);
}

.cover__door--right {
  right: 0;
  box-shadow: inset 1px 0 0 var(--accent), -8px 0 30px -12px rgba(0, 0, 0, 0.15);
}

.cover__content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 6vw, 3.5rem);
  background: radial-gradient(closest-side, var(--paper) 70%, transparent);
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
  animation: rise 1.2s var(--ease) both;
}

.cover__eyebrow {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin: 1.75em 0;
}

.cover__names {
  margin: 0.4rem 0 1.8rem;
  font-size: clamp(3.2rem, 13vw, 5.6rem);
  color: var(--accent-strong);
}

.names__heart {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem auto;
  line-height: 1;
}

.cover__btn {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  animation: pulse 2.4s ease-in-out infinite;
}

.cover__hint {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}

.cover.is-opening .cover__content {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.cover.is-opening .cover__door--left {
  transform: translate3d(-102%, 0, 0);
}

.cover.is-opening .cover__door--right {
  transform: translate3d(102%, 0, 0);
}

.cover.is-gone {
  display: none;
}

/* ---------- Hero / Mời tiệc ---------- */
.hero {
  text-align: center;
}

.frame {
  position: relative;
  max-width: 780px;
  margin: 0 auto clamp(4rem, 9vw, 6rem);
  padding: clamp(2.5rem, 7vw, 4.25rem) clamp(1.25rem, 6vw, 4.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px var(--line), var(--shadow);
  transition: background-color 0.6s ease;
}

/* 4 góc hoa văn: SVG làm mask -> màu tự đổi theo theme.
   ::before vẽ góc trên-trái + trên-phải; ::after xoay 180° -> dưới-phải + dưới-trái. */
.frame {
  --corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='black'%3E%3Cpath stroke-width='1.4' d='M4 76V24Q4 4 24 4H76'/%3E%3Cpath stroke-width='.7' d='M11 70V30Q11 11 30 11H70'/%3E%3C/g%3E%3Cpath d='M19 46c0-15 11-27 27-27c-11 5-19 13-27 27z'/%3E%3Ccircle cx='26' cy='26' r='3'/%3E%3C/svg%3E");
  --corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg transform='translate(80 0) scale(-1 1)'%3E%3Cg fill='none' stroke='black'%3E%3Cpath stroke-width='1.4' d='M4 76V24Q4 4 24 4H76'/%3E%3Cpath stroke-width='.7' d='M11 70V30Q11 11 30 11H70'/%3E%3C/g%3E%3Cpath d='M19 46c0-15 11-27 27-27c-11 5-19 13-27 27z'/%3E%3Ccircle cx='26' cy='26' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --corner-size: 70px;
}

.frame::before,
.frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background: var(--accent);
  -webkit-mask: var(--corner-tl) top left / var(--corner-size) no-repeat, var(--corner-tr) top right / var(--corner-size) no-repeat;
  mask: var(--corner-tl) top left / var(--corner-size) no-repeat, var(--corner-tr) top right / var(--corner-size) no-repeat;
}

.frame::after {
  transform: rotate(180deg);
}

/* Canvas hạt cánh hoa / lá rơi tương tác theo chuột */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.hero__guest {
  margin: 0.55rem auto 0.25rem;
  text-align: center;
}

.hero__guest-name {
  display: inline-block;
  min-width: min(260px, 78%);
  max-width: 100%;
  padding: 0 1.25rem 0.28rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--accent-strong);
  border-bottom: 1.5px solid var(--accent);
  word-break: break-word;
}

.hero__lead {
  margin: 0.8rem auto 0.6rem;
  font-size: clamp(1.1rem, 3.2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.hero__lead span {
  display: inline-block;
}

.hero__lead span:first-child {
  display: block;
}

.hero__lead strong {
  color: var(--accent-strong);
  font-weight: 600;
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--accent-strong);
}

.hero__names .script {
  font-size: clamp(2.7rem, 9.5vw, 4.4rem);
}

.hero__heart {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.15rem auto;
  line-height: 1;
}

.footer__heart {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  margin: 0 0.35rem;
}

/* Biểu tượng trái tim đôi nghệ thuật thư pháp (Calligraphy Double Heart Icon) */
.heart-icon {
  display: inline-block;
  vertical-align: middle;
  color: var(--accent);
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 2px 6px var(--line));
  animation: heartFloat 3.2s ease-in-out infinite;
  transition: transform 0.3s var(--ease), color 0.4s ease;
}

.heart-icon--cover {
  width: clamp(44px, 8.5vw, 62px);
  height: clamp(44px, 8.5vw, 62px);
}

.heart-icon--hero,
.heart-icon--ceremony {
  width: clamp(32px, 6vw, 44px);
  height: clamp(32px, 6vw, 44px);
}

.heart-icon--footer {
  width: 26px;
  height: 26px;
}

@keyframes heartFloat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08) translateY(-1px);
    opacity: 1;
    filter: drop-shadow(0 4px 10px var(--glow));
  }
}

/* Khung thông tin bữa cơm thân mật tích hợp */
.hero__feast-card {
  max-width: 520px;
  margin: 0.6rem auto 2rem;
  padding: 1.6rem 1.8rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, var(--paper), transparent 85%),
    linear-gradient(170deg, var(--accent-wash), var(--paper) 60%, var(--accent-wash));
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -16px var(--accent);
  position: relative;
}

.hero__feast-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  pointer-events: none;
}

.hero__feast-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.hero__feast-time {
  margin: 0.1rem 0;
  font-size: clamp(1.25rem, 3.6vw, 1.55rem);
  font-family: var(--serif);
  color: var(--accent-strong);
  letter-spacing: 0.04em;
}

.hero__feast-time strong {
  font-size: clamp(1.6rem, 4.4vw, 2.05rem);
  font-weight: 700;
  color: var(--accent-strong);
  margin-left: 0.25rem;
}

.datebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin: 0.4rem 0 0.6rem;
  width: 100%;
  max-width: 440px;
}

.datebar span {
  padding: 0.35rem 0.4rem;
  border-top: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  font-family: var(--sans);
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  white-space: nowrap;
  text-align: center;
}

.datebar strong {
  font-size: clamp(2.8rem, 8.5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--accent-strong);
}

.hero__feast-card .lunar {
  font-size: clamp(1.05rem, 2.7vw, 1.22rem);
  color: var(--ink-soft);
  margin: 0.15rem 0;
}

.hero__feast-divider {
  width: 72px;
  height: 1px;
  background: var(--accent);
  opacity: 0.45;
  margin: 0.7rem 0 0.5rem;
}

.hero__feast-venue {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2.7vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-top: 0.1rem;
}

.hero__feast-card .addr {
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 38ch;
}

.parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem clamp(1rem, 4vw, 3rem);
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: clamp(0.72rem, 2.3vw, 0.85rem);
  line-height: 1.75;
}

.parents strong {
  font-weight: 500;
  text-transform: uppercase;
}

.parents__label {
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--accent-strong);
}

.parents .addr {
  font-size: 0.85em;
  color: var(--accent);
}

.hero__welcome {
  margin-top: 2.5rem;
  font-size: clamp(2rem, 6vw, 2.6rem);
  color: var(--accent);
}

/* ---------- Hôn lễ + đếm ngược ---------- */
.ceremony {
  text-align: center;
}

.ceremony__card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, var(--paper), transparent 70%),
    linear-gradient(160deg, var(--accent-wash), var(--paper) 55%, var(--accent-wash));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ceremony__card::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -160px;
  border-radius: 50%;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 22px;
  pointer-events: none;
}

.ceremony__title {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.8vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  line-height: 1.25;
}

.ceremony__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--accent-strong);
  margin: 1.8rem auto 1.6rem;
}

.ceremony__names .script {
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  line-height: 1.15;
}

.ceremony__heart {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.1rem auto;
  line-height: 1;
}

.ceremony__lead {
  margin: 0.5rem auto 1rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 500;
}

.when {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 520px;
  margin: 0.6rem auto 0.8rem;
}

.when span {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.when__side strong {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 600;
}

.when__mid {
  padding: 0 clamp(1rem, 4vw, 2.2rem);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.when__mid strong {
  display: block;
  font-size: clamp(3.6rem, 12vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent-strong);
}

.ceremony__venue {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.ceremony__venue span {
  font-family: var(--script);
  font-size: 1.8rem;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: 0;
  margin-right: 0.2rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 92px));
  justify-content: center;
  gap: clamp(0.5rem, 2.5vw, 1.25rem);
  margin-top: 2.2rem;
}

.countdown div {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line), 0 16px 30px -18px var(--accent);
}

.countdown strong {
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--accent-strong);
}

.countdown span {
  font-family: var(--sans);
  font-size: clamp(0.55rem, 1.8vw, 0.66rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown__done {
  margin-top: 2rem;
  font-size: 2.4rem;
  color: var(--accent-strong);
}

/* ---------- Chú rể & cô dâu: Khung Hoàng Gia Ornate ---------- */
.couple__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 5vw, 4.2rem);
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.person {
  margin: 0;
  text-align: center;
}

.person--bride {
  margin-top: clamp(1rem, 4vw, 3rem);
}

.person__frame {
  position: relative;
  padding: clamp(16px, 3.5vw, 26px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, var(--paper), transparent 75%),
    linear-gradient(155deg, var(--accent-wash), var(--paper) 60%, var(--accent-wash));
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px -22px var(--accent), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.person:hover .person__frame {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px var(--accent);
}

/* Ornate Crest đỉnh khung */
.ornate-crest {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(120px, 22vw, 160px);
  height: auto;
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  z-index: 3;
}

/* 4 góc hoa văn Filigree */
.filigree-corner {
  position: absolute;
  width: clamp(34px, 6.5vw, 50px);
  height: clamp(34px, 6.5vw, 50px);
  color: var(--accent);
  z-index: 2;
  pointer-events: none;
}

.filigree-corner--tl { top: 6px; left: 6px; }
.filigree-corner--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.filigree-corner--bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.filigree-corner--br { bottom: 6px; right: 6px; transform: scale(-1, -1); }

.person__inner-border {
  position: relative;
  padding: 8px;
  border: 1px solid var(--accent-light);
  border-radius: 20px;
  outline: 1px dashed var(--line);
  outline-offset: -5px;
  background: var(--paper);
  overflow: hidden;
}

.person__photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--accent-light);
  background: var(--accent-wash);
  box-shadow: 0 6px 18px -10px var(--accent);
}

.person__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 13px;
  transition: transform 0.8s var(--ease);
}

.person:hover .person__img {
  transform: scale(1.04);
}

/* Góc trên bên trái: Hiệu ứng vát chéo góc ảnh chứa nền màu theme & nhãn Chú rể / Cô dâu */
.person__badge-top-left {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  padding: 0.42rem 1.9rem 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--accent-light));
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.22));
}

.person__badge-top-left::before {
  content: '';
  position: absolute;
  inset: 0 2px 1.5px 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 21px) 100%, 0 100%);
  transition: background 0.6s ease;
}

.person__role-label {
  font-family: var(--script);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff;
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* Tên chú rể / cô dâu bên dưới ảnh, căn giữa, font script đổi màu theo theme */
.person__caption {
  padding: 0.8rem 0.4rem 0.2rem;
  text-align: center;
}

.person__name {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.95rem, 4.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--accent-strong);
  transition: color 0.6s ease;
}

/* ---------- 6 Ảnh cưới ngoài (Khoảnh khắc hạnh phúc) ---------- */
.featured {
  padding-top: 1rem;
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.8vw, 2.2rem);
  max-width: 1100px;
  margin: 0 auto;
}

.featured__item {
  margin: 0;
  cursor: pointer;
}

.featured__frame {
  position: relative;
  border-radius: 22px;
  padding: 20px 14px 12px;
  background:
    radial-gradient(circle at 50% 0%, var(--paper), transparent 75%),
    linear-gradient(155deg, var(--accent-wash), var(--paper) 60%, var(--accent-wash));
  border: 1px solid var(--line);
  outline: 1px dashed var(--line);
  outline-offset: -6px;
  box-shadow: 0 16px 38px -18px var(--accent), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.featured__frame .card__corner {
  width: 28px;
  height: 28px;
}

.featured__frame .card__corner--tl { top: 7px; left: 7px; }
.featured__frame .card__corner--tr { top: 7px; right: 7px; }
.featured__frame .card__corner--bl { bottom: 7px; left: 7px; }
.featured__frame .card__corner--br { bottom: 7px; right: 7px; }

.featured__item:hover .featured__frame {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px -16px var(--accent), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.featured__pin {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, var(--accent-light) 40%, var(--accent-strong) 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28), 0 0 0 1.5px var(--paper);
  z-index: 4;
}

.featured__photo {
  position: relative;
  overflow: hidden;
  padding: 3px;
  margin-top: 3px;
  border-radius: 13px;
  border: 1px solid var(--accent-light);
  background: var(--accent-wash);
  box-shadow: 0 6px 18px -10px var(--accent);
}

.featured__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease);
}

.featured__item:hover .featured__img {
  transform: scale(1.06);
}

.featured__caption {
  padding: 0.65rem 0.25rem 0.15rem;
  text-align: center;
}

.featured__caption-title {
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  color: var(--accent-strong);
  display: block;
  line-height: 1.2;
}

/* ---------- Album Cưới: 3D Coverflow / Perspective Fan Carousel ---------- */
.gallery {
  overflow-x: hidden;
  overflow-x: clip;
}

.deck {
  --card-w: clamp(270px, 38vw, 430px);
  --card-h: calc(var(--card-w) * 1.5);
  --landscape-w: clamp(350px, 62vw, 680px);
  --tx-1: calc(var(--card-w) * 0.58);
  --tx-2: calc(var(--card-w) * 0.88);
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  outline: none;
  overflow-x: hidden;
  overflow-x: clip;
}

.deck.is-landscape-active {
  --tx-1: calc(var(--landscape-w) * 0.44);
  --tx-2: calc(var(--landscape-w) * 0.64);
}

.deck__viewport {
  position: relative;
  width: 100%;
  height: calc(var(--card-h) + 44px);
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem auto 0.95rem;
  overflow: hidden;
  contain: layout paint;
  touch-action: pan-y;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.deck__stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.deck__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  cursor: pointer;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Chỉ animate transform & opacity trên GPU — tuyệt đối không animate width/height tránh reflow */
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ảnh ngang giữ cố định kích thước thực, khi ở 2 bên chỉ thu nhỏ bằng scale() trên GPU */
.deck__card[data-orientation="landscape"] {
  width: var(--landscape-w);
  height: calc(var(--landscape-w) / var(--aspect, 1.5));
}

.deck.is-in-view .deck__card[data-pos="0"],
.deck.is-in-view .deck__card[data-pos="-1"],
.deck.is-in-view .deck__card[data-pos="1"],
.deck.is-in-view .deck__card[data-pos="hidden-left"],
.deck.is-in-view .deck__card[data-pos="hidden-right"] {
  will-change: transform, opacity;
}

.deck__card.is-instant {
  transition: none !important;
}

.deck__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 6px;
  border-radius: 18px;
  background: var(--paper);
  border: 2px solid var(--accent-light);
  box-shadow:
    0 20px 44px -18px rgba(36, 22, 10, 0.32),
    0 0 0 1px var(--line);
  overflow: hidden;
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.deck__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--accent-wash);
  pointer-events: none;
}

.deck__card[data-orientation="landscape"] .deck__img {
  object-position: center center;
}

/* Hiển thị 3 thẻ (1 ảnh chính + 2 ảnh phụ 2 bên) mượt mà trên cả PC và Mobile */
.deck__card[data-pos="0"] {
  transform: translate3d(calc(-50% + var(--drag-x, 0px)), -50%, 0) rotateY(0deg) scale(1);
  z-index: 30;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: grab;
}

.deck.is-dragging .deck__card[data-pos="0"] {
  cursor: grabbing;
  transition: none;
}

.deck__card[data-pos="-1"] {
  transform: translate3d(calc(-50% - var(--tx-1)), -50%, -95px) rotateY(-28deg) scale(0.84);
  z-index: 20;
  opacity: 0.88;
  visibility: visible;
  pointer-events: auto;
}

.deck__card[data-pos="-1"][data-orientation="landscape"] {
  transform: translate3d(calc(-50% - var(--tx-1)), -50%, -110px) rotateY(-28deg) scale(0.62);
}

.deck__card[data-pos="1"] {
  transform: translate3d(calc(-50% + var(--tx-1)), -50%, -95px) rotateY(28deg) scale(0.84);
  z-index: 20;
  opacity: 0.88;
  visibility: visible;
  pointer-events: auto;
}

.deck__card[data-pos="1"][data-orientation="landscape"] {
  transform: translate3d(calc(-50% + var(--tx-1)), -50%, -110px) rotateY(28deg) scale(0.62);
}

.deck__card[data-pos="hidden-left"] {
  transform: translate3d(calc(-50% - var(--tx-2)), -50%, -210px) rotateY(-40deg) scale(0.68);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.62s;
}

.deck__card[data-pos="hidden-right"] {
  transform: translate3d(calc(-50% + var(--tx-2)), -50%, -210px) rotateY(40deg) scale(0.68);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.62s;
}

.deck__card[data-pos="far"],
.deck__card[data-pos="hidden"] {
  transform: translate3d(-50%, -50%, -260px) scale(0.5);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: none !important;
}

/* Thanh chấm chỉ mục (pill + dots) phía dưới */
.deck__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 0.6rem;
  padding: 0.25rem 0.5rem;
}

.deck__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.34;
  transition:
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    background-color 0.38s ease;
}

.deck__dot:hover {
  opacity: 0.68;
}

.deck__dot.is-active {
  width: 28px;
  opacity: 1;
  background: var(--accent-strong);
}

/* ---------- Video ---------- */
.video__frame {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #1b1410;
  box-shadow: var(--shadow);
}

.video__player {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
}

.video__frame--empty {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  isolation: isolate;
}

.video__frame--empty::before {
  content: '';
  position: absolute;
  inset: -30px;
  z-index: -1;
  background: var(--poster) center / cover;
  filter: blur(14px) saturate(0.9);
  opacity: 0.45;
}

.video__empty {
  text-align: center;
  padding: 1rem;
  color: var(--accent-strong);
}

.video__empty .script {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
}

.video__empty p:last-child {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.video__play {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--paper) 35%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

.video__play::after {
  content: '';
  margin-left: 6px;
  border-left: 22px solid var(--accent);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

/* ---------- Sổ lưu bút: Bảng Ghim Lời Chúc Phúc ---------- */
.wishes__layout {
  display: grid;
  grid-template-columns: minmax(0, 370px) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
  align-items: start;
}

.wish-form {
  padding: clamp(1.6rem, 4vw, 2.2rem);
  display: grid;
  gap: 1.3rem;
  border-radius: 22px;
}

.wish-form__head {
  text-align: center;
  margin-bottom: 0.2rem;
}

.wish-form__title {
  font-size: 2.2rem;
  color: var(--accent-strong);
  margin: 0.1rem 0 0;
}

.field {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.field > span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.55;
  font-style: italic;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.field__count {
  justify-self: end;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  font-size: 1rem;
  font-style: italic;
  text-align: center;
}

.form-status.is-error {
  color: #b3261e;
}

.form-status.is-ok {
  color: var(--accent-strong);
}

/* Bảng ghim (Wish Board) — kích thước CỐ ĐỊNH đặt ở khung ngoài:
   nội dung bên trong là canvas vô hạn, không bao giờ đẩy trang */
.wish-board {
  position: relative;
  height: 588px;
  border-radius: 26px;
  background: #c29f63;
  padding: 8px;
  box-shadow:
    0 18px 45px -15px rgba(50, 30, 10, 0.28),
    0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(160, 120, 60, 0.5);
}

.wish-board__frame {
  position: relative;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.8), transparent 70%),
    repeating-linear-gradient(45deg, rgba(210, 180, 130, 0.08) 0 16px, transparent 16px 32px),
    #f8f4ec;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Mở rộng toàn màn hình (khung ngoài .wish-board vẫn giữ chỗ trong trang) */
.wish-board.is-expanded .wish-board__frame {
  position: fixed;
  inset: 0;
  z-index: 400;
  height: auto;
  border-radius: 0;
  padding: max(0.9rem, env(safe-area-inset-top)) max(0.9rem, env(safe-area-inset-right))
    max(0.9rem, env(safe-area-inset-bottom)) max(0.9rem, env(safe-area-inset-left));
}

/* <main> là stacking context (z-index: 3) → nâng cả main lên trên nút nổi & canvas cánh hoa khi mở rộng */
body.is-board-expanded main {
  z-index: 400;
}

.wish-board__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px dashed rgba(190, 155, 100, 0.35);
  margin-bottom: 1.2rem;
}

.wish-board__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wish-board__pin-icon {
  font-size: 1.4rem;
}

.wish-board__title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--accent-strong);
  margin: 0;
  line-height: 1.1;
}

.wish-board__badge {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border: 1px solid var(--line);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.wish-board__badge strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--accent-strong);
  margin-right: 0.2rem;
}

.wish-board__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Nút công cụ tròn (mở rộng, phóng to/thu nhỏ, xem toàn bộ) */
.wish-board__tool {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.wish-board__tool:hover {
  transform: scale(1.08);
  background: var(--accent-wash);
}

.wish-board__tool svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wish-board__expand .i-close,
.wish-board.is-expanded .wish-board__expand .i-open {
  display: none;
}

.wish-board.is-expanded .wish-board__expand .i-close {
  display: block;
}

/* Khung nhìn canvas: lưới chấm di chuyển theo camera như draw.io */
.wish-board__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 0 calc(-1 * clamp(0.5rem, 1.2vw, 0.8rem));
  border-radius: 14px;
  background-color: #fbf8f1;
  background-image: radial-gradient(circle, rgba(165, 125, 65, 0.32) 1.1px, transparent 1.6px);
  background-size: 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(190, 155, 100, 0.22), inset 0 2px 10px rgba(80, 50, 10, 0.06);
  /* 1 ngón = cuộn trang; 2 ngón do JS xử lý. Khi mở rộng: JS xử lý toàn bộ */
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wish-board.is-expanded .wish-board__viewport {
  touch-action: none;
  margin: 0;
}

.wish-board.is-dragging .wish-board__viewport,
.wish-board.is-dragging .wish-note {
  cursor: grabbing;
}

.wish-board__viewport:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: -4px;
}

.wish-board__world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transition: opacity 0.5s ease;
}

.js .wish-board:not(.is-ready) .wish-board__world {
  opacity: 0;
}

.wish-board.is-moving .wish-board__world {
  will-change: transform;
}

.wish-board__hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 150px);
  margin: 0;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  pointer-events: none;
  transition: transform 0.3s var(--ease), color 0.3s, background 0.3s;
}

.wish-board__hint.is-nudge {
  color: #fff;
  background: var(--accent-strong);
  transform: translateY(-3px);
}

.wish-board__controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

/* Tấm thẻ lời chúc được ghim (Wish Note) — vị trí do JS đặt (left/top) trên canvas */
.wish-note {
  position: absolute;
  width: 250px;
  line-height: 1.5;
  background: var(--note-bg, #fffdfa);
  border-radius: 16px;
  padding: 1.5rem 1.3rem 1.1rem;
  border: 1px solid rgba(190, 160, 110, 0.32);
  box-shadow:
    0 10px 24px -10px rgba(50, 30, 10, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  cursor: pointer;
}

.wish-note:hover {
  transform: scale(1.03) rotate(0deg) translate(0, -4px);
  box-shadow: 0 20px 38px -12px rgba(50, 30, 10, 0.28);
  border-color: var(--accent);
  z-index: 10;
}

.wish-note.is-active {
  transform: rotate(0deg);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash), 0 20px 38px -12px rgba(50, 30, 10, 0.3);
  z-index: 20;
}

.wish-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #fff 0%,
    var(--pin, #eacb82) 45%,
    color-mix(in srgb, var(--pin, #eacb82) 55%, #5a3a10) 85%,
    color-mix(in srgb, var(--pin, #eacb82) 25%, #3a2408) 100%
  );
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  z-index: 5;
}

.wish-pin::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 3px;
  background: #60400c;
  opacity: 0.8;
}

.wish-note__msg {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 1rem;
}

.wish-note__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(190, 160, 110, 0.25);
}

.wish-note__author {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

.wish-note__time {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.wish-note--empty {
  width: 320px;
  text-align: center;
  padding: 2.6rem 1.5rem;
  cursor: default;
}

.wish-note--empty .wish-note__msg {
  font-size: 1.8rem;
  color: var(--accent-strong);
}

.wish-note.is-just-pinned {
  animation: pinPop 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash), 0 16px 36px -10px var(--accent);
}

/* Không khai báo 100%: kết thúc đúng transform hiện tại của thẻ (nghiêng hoặc đang được chọn) */
@keyframes pinPop {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(-30px) rotate(10deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.06) translateY(0) rotate(-4deg);
  }
}

.wish__msg {
  font-size: 1.15rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.wish__msg::before {
  content: '“';
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.15rem;
  color: var(--accent);
}

.wish__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.wish__meta strong {
  font-weight: 500;
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

.wish__meta time {
  flex-shrink: 0;
  color: var(--ink-soft);
}

.wish-list__empty {
  padding: 2.5rem 0 1rem;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Bản đồ chỉ đường ---------- */
.location__layout {
  max-width: 780px;
  margin: 0 auto;
}

.location__card {
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__ornate {
  position: relative;
  padding: clamp(2.1rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Góc hoa văn mạ kim: SVG làm mask, màu lấy từ biến theme -> tự đổi vàng/hồng.
   Nét đôi đồng tâm với bo góc thẻ, mờ dần về hai đầu + hạt kim cương ở giữa. */
.card__corner {
  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3CradialGradient id='f' cx='0' cy='0' r='48' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='.3' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23f)' stroke-linecap='round'%3E%3Cpath d='M1.5 47V13.5a12 12 0 0 1 12-12H47' stroke-width='1.6'/%3E%3Cpath d='M6.5 34V13.5a7 7 0 0 1 7-7H34' stroke-width='.8'/%3E%3Cpath d='M12.5 26a13.5 13.5 0 0 1 13.5-13.5' stroke-width='.8'/%3E%3C/g%3E%3Cpath d='M12.5 9.5l3 3-3 3-3-3z' fill='%23fff'/%3E%3Ccircle cx='6.5' cy='37' r='1' fill='%23fff' fill-opacity='.6'/%3E%3Ccircle cx='37' cy='6.5' r='1' fill='%23fff' fill-opacity='.6'/%3E%3C/svg%3E");
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(135deg, var(--accent-strong) 12%, var(--accent-light) 34%, var(--accent) 52%, var(--accent-strong) 80%);
  -webkit-mask: var(--corner) center / contain no-repeat;
  mask: var(--corner) center / contain no-repeat;
  opacity: 0.9;
}

.card__corner--tl {
  top: 10px;
  left: 10px;
}
.card__corner--tr {
  top: 10px;
  right: 10px;
  transform: scaleX(-1);
}
.card__corner--bl {
  bottom: 10px;
  left: 10px;
  transform: scaleY(-1);
}
.card__corner--br {
  bottom: 10px;
  right: 10px;
  transform: scale(-1);
}

.location__qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.location__map-box {
  width: 100%;
  height: clamp(260px, 55vw, 450px);
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -10px var(--accent);
  box-sizing: border-box;
  overflow: hidden;
}

.location__map-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.location__qr-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.2rem;
  gap: 0.25rem;
}

.map__name {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.location__btn {
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: clamp(4rem, 10vw, 6rem) 1.5rem calc(6rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--accent-wash));
}

.footer__thanks {
  font-size: clamp(3.2rem, 11vw, 5.4rem);
  color: var(--accent-strong);
}

.footer__text {
  max-width: 34ch;
  margin: 0.6rem auto 1.4rem;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
}

.footer__names {
  font-size: clamp(2rem, 6vw, 2.6rem);
  color: var(--accent);
}

/* ---------- Floating controls ---------- */
.fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 10px;
  transition: opacity 0.6s ease 0.6s;
}

.js body.is-locked .fab {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}

.fab__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -12px var(--accent);
  transition: transform 0.3s var(--ease);
}

.fab__btn:hover {
  transform: scale(1.08);
}

.fab__swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(#e4c785 0 50%, #f3a9c0 50% 100%);
  box-shadow: inset 0 0 0 2px #fff;
  transition: transform 0.7s var(--ease);
}

[data-theme='pink'] .fab__swatch {
  transform: rotate(180deg);
}

.fab__music svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fab__music::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 1.7px;
  background: var(--accent-strong);
  transform: translate(-50%, -50%) rotate(-45deg);
  border-radius: 2px;
  transition: opacity 0.3s;
}

.fab__music.is-playing::after {
  opacity: 0;
}

.fab__music.is-playing svg {
  animation: spin 4s linear infinite;
}

.fab__music.is-playing::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ripple 2s ease-out infinite;
}

/* ---------- Canvas hiệu ứng chuột (lá / cánh hoa rơi) ---------- */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 12;
  pointer-events: none;
}

/* ---------- Cánh hoa rơi ---------- */
.petals {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -6vh;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 0.78);
  border-radius: 150% 0 150% 0;
  background: linear-gradient(135deg, var(--petal-a), var(--petal-b));
  opacity: 0.75;
  animation: fall var(--dur) linear var(--delay) infinite;
  transition: background 0.6s ease;
}

/* ---------- Modal Chi Tiết Khoảnh Khắc (Nhỏ gọn: Trái Ảnh · Phải Chữ) ---------- */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.zoom-modal[hidden] {
  display: none;
}

.zoom-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 32, 18, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.zoom-modal__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomPop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.zoom-modal__card {
  position: relative;
  width: min(94vw, 750px);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, var(--paper), transparent 75%),
    linear-gradient(155deg, var(--accent-wash), var(--paper) 65%, var(--accent-wash));
  border: 1.5px solid var(--accent-light);
  outline: 1px dashed var(--line);
  outline-offset: -7px;
  box-shadow: 0 24px 60px -15px rgba(40, 24, 10, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.zoom-modal__card .card__corner {
  width: 30px;
  height: 30px;
}

.zoom-modal__card .card__corner--tl { top: 8px; left: 8px; }
.zoom-modal__card .card__corner--tr { top: 8px; right: 8px; }
.zoom-modal__card .card__corner--bl { bottom: 8px; left: 8px; }
.zoom-modal__card .card__corner--br { bottom: 8px; right: 8px; }

.zoom-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2.8vw, 1.75rem);
  align-items: center;
}

.zoom-modal__media {
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -12px var(--accent);
  overflow: hidden;
}

.zoom-modal__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  max-height: 58vh;
  border-radius: 10px;
  object-fit: cover;
}

.zoom-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.25rem;
}

.zoom-modal__title {
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  color: var(--accent-strong);
  margin: 0 0 0.1rem;
  line-height: 1.2;
}

.zoom-modal__text {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-size: clamp(0.98rem, 2.1vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
}

.zoom-modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.zoom-modal__close:hover {
  transform: scale(1.12);
  background: var(--accent);
}

@keyframes zoomPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Trang chọn (/) ---------- */
.home {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  text-align: center;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  max-width: 600px;
  width: 100%;
}

.choice {
  display: grid;
  gap: 0.3rem;
  padding: 2.2rem 1.25rem;
  border-radius: 999px 999px 20px 20px / 150px 150px 20px 20px;
  background: linear-gradient(180deg, var(--paper), var(--accent-wash));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.4s var(--ease);
}

.choice:hover {
  transform: translateY(-6px);
}

.choice .script {
  font-size: 2.6rem;
  color: var(--accent-strong);
}

.choice__date {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
}

.invite-modal__card {
  width: min(92vw, 460px);
  padding: clamp(1.6rem, 4.5vw, 2.2rem);
  text-align: center;
}

.invite-modal__form {
  display: grid;
  gap: 0.9rem;
}

.invite-modal__title {
  font-size: clamp(2.2rem, 6vw, 2.8rem);
  color: var(--accent-strong);
  margin: 0.1rem 0 0;
}

.invite-modal__field {
  margin-top: 0.35rem;
  text-align: center;
}

.invite-modal__field input {
  text-align: center;
  font-weight: 500;
}

.invite-modal__hint {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: -0.15rem;
}

.invite-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.invite-modal__actions .btn {
  padding: 0.85rem 1.5rem;
}

/* ---------- Mật khẩu tình yêu & Quản lý lời chúc trên Trang chủ (/) ---------- */
.love-gate {
  margin-top: 2rem;
  width: min(92vw, 440px);
  padding: clamp(1.7rem, 4.5vw, 2.3rem);
  text-align: center;
}

.home__topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.home__auth-pill {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.home__logout-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.home__logout-btn:hover {
  color: #b3261e;
  border-color: rgba(179, 38, 30, 0.4);
  background: rgba(179, 38, 30, 0.06);
}

.admin-panel {
  width: 100%;
  max-width: 820px;
  margin-top: 3rem;
  text-align: left;
}

.admin-panel__card {
  width: 100%;
  padding: clamp(1.5rem, 3.8vw, 2.2rem);
}

.admin-panel__head {
  text-align: center;
  margin-bottom: 1.2rem;
}

.admin-panel__title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--accent-strong);
  margin: 0.15rem 0 0;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-tab {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab.is-active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.admin-search-wrap {
  flex: 1 1 220px;
  max-width: 300px;
}

.admin-search {
  width: 100%;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink);
}

.admin-search:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.2rem;
  min-height: 2.6rem;
}

.admin-bulkbar__select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.btn-bulk-del {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 38, 30, 0.35);
  background: #b3261e;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-bulk-del:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.admin-wish-list {
  display: grid;
  gap: 0.55rem;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.admin-wish {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}

.admin-wish[hidden] {
  display: none !important;
}

.admin-wish:hover {
  border-color: var(--accent);
}

.admin-wish__check {
  padding-top: 0.2rem;
  cursor: pointer;
}

.admin-wish__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  margin-bottom: 0.25rem;
}

.admin-wish__badge {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.admin-wish__badge.is-groom {
  background: rgba(212, 154, 55, 0.16);
  color: #8a5c14;
}

.admin-wish__badge.is-bride {
  background: rgba(232, 137, 166, 0.2);
  color: #9e3557;
}

.admin-wish__author {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-wish__time {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.admin-wish__msg {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-wish__del {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 38, 30, 0.28);
  background: rgba(179, 38, 30, 0.06);
  color: #b3261e;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.admin-wish__del:hover {
  background: #b3261e;
  color: #fff;
}

.admin-wish-empty {
  text-align: center;
  padding: 2rem 1rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--glow), 0 12px 28px -12px var(--accent);
  }
  50% {
    box-shadow: 0 0 0 14px transparent, 0 12px 28px -12px var(--accent);
  }
}

@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.25);
  }
  30% {
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ripple {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(calc(var(--drift) * -0.5), 55vh, 0) rotate(calc(var(--rot) * 0.5));
  }
  100% {
    transform: translate3d(var(--drift), 112vh, 0) rotate(var(--rot));
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes wishIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
    background: var(--accent-wash);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body {
    font-size: 1.1rem;
  }

  .couple__grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .person--bride {
    margin-top: 0;
  }

  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .location__map-box {
    height: 280px;
  }

  .wishes__layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .wish-board {
    height: 538px;
    height: calc(clamp(440px, 72svh, 600px) + 18px);
  }

  .frame {
    --corner-size: 46px;
  }

  .frame::before,
  .frame::after {
    inset: 6px;
  }

  .choices {
    grid-template-columns: minmax(0, 300px);
  }

  .fab {
    gap: 8px;
  }

  .fab__btn {
    width: 40px;
    height: 40px;
  }

  .fab__swatch {
    width: 20px;
    height: 20px;
  }

  .fab__music svg {
    width: 19px;
    height: 19px;
  }

  .fab__music::after {
    width: 25px;
  }

  .deck {
    --card-w: clamp(240px, 72vw, 335px);
    --card-h: calc(var(--card-w) * 1.5);
    --landscape-w: min(90vw, 445px);
    --tx-1: calc(var(--card-w) * 0.42);
    --tx-2: calc(var(--card-w) * 0.62);
  }

  .deck.is-landscape-active {
    --tx-1: calc(var(--landscape-w) * 0.30);
    --tx-2: calc(var(--landscape-w) * 0.44);
  }
}

@media (max-width: 480px) {
  .person__badge-top-left {
    padding: 0.35rem 1.6rem 0.34rem 0.85rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  }

  .person__badge-top-left::before {
    clip-path: polygon(0 0, 100% 0, calc(100% - 17px) 100%, 0 100%);
  }

  .zoom-modal__card {
    padding: 1rem 0.9rem;
  }

  .zoom-modal__layout {
    grid-template-columns: 43% 1fr;
    gap: 0.75rem;
  }

  .zoom-modal__text {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .featured__grid {
    grid-template-columns: 1fr;
  }

  .person__frame {
    padding: 14px;
  }

  .hero__feast-card {
    padding: 1.25rem 1rem;
  }

  .card__ornate {
    padding: 1.85rem 1.35rem;
  }

  .card__corner {
    width: 32px;
    height: 32px;
  }

  .card__corner--tl { top: 8px; left: 8px; }
  .card__corner--tr { top: 8px; right: 8px; }
  .card__corner--bl { bottom: 8px; left: 8px; }
  .card__corner--br { bottom: 8px; right: 8px; }

  .parents {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    font-size: 0.8rem;
  }

  .parents__col + .parents__col {
    padding-top: 1.25rem;
    border-top: 1px dashed var(--line);
  }
}

@media (max-width: 420px) {
  .datebar span {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }

  .petals,
  .fx-canvas {
    display: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
