/* ============================================================
   18 — VISUAL NOVEL
   Konsep: game visual novel pastel. Langit lembut, portrait,
   dialogue box, pilihan, affection meter, CG gallery.
   ============================================================ */
:root {
  --vn-ink: #3a2b4c;
  --vn-ink-soft: #6d5b80;
  --vn-muted: #8b7a9c;
  --vn-rose: #f27d9d;
  --vn-rose-deep: #d9557d;
  --vn-blush: #ffe4ed;
  --vn-lav: #b79ce8;
  --vn-sky: #9ec9f0;
  --vn-gold: #e7b95c;
  --vn-cream: #fffaf6;
  --vn-panel: rgba(255, 255, 255, 0.66);
  --vn-line: rgba(90, 60, 110, 0.13);
  --vn-serif: "Cormorant Garamond", "Times New Roman", serif;
  --vn-sans: "Quicksand", "Segoe UI", sans-serif;
  --vn-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --vn-shadow: 0 24px 60px -32px rgba(84, 48, 112, 0.42);
}

html { scroll-padding-top: 104px; }

body {
  background:
    radial-gradient(circle at 12% 8%, #ffe8f1, transparent 42%),
    radial-gradient(circle at 88% 18%, #e2f0ff, transparent 44%),
    linear-gradient(165deg, #fdf7ff 0%, #f2f6ff 42%, #fff3f7 100%);
  background-attachment: fixed;
  color: var(--vn-ink);
  font-family: var(--vn-sans);
  overflow-x: hidden;
}
body.vn-locked { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

::selection { background: var(--vn-rose); color: #fff; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.vn-skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 500;
  background: var(--vn-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.8rem;
}
.vn-skip:focus { top: 12px; }

/* ============================================================
   AMBIENT
   ============================================================ */
.vn-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.vn-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.vn-bg__orb--1 { width: 52vw; height: 52vw; top: -14vw; left: -12vw; background: #ffd7e6; }
.vn-bg__orb--2 { width: 44vw; height: 44vw; top: 38%; right: -16vw; background: #d8e8ff; }
.vn-bg__orb--3 { width: 36vw; height: 36vw; bottom: -12vw; left: 18%; background: #e7dcff; }
.vn-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vn-petals { position: absolute; inset: 0; overflow: hidden; }
.vn-petal {
  position: absolute;
  top: -6vh;
  left: var(--l, 50%);
  width: var(--s, 12px);
  height: var(--s, 12px);
  background: linear-gradient(135deg, #ffd0e0, #f79ab7);
  border-radius: 60% 0 60% 0;
  opacity: 0.65;
  animation: vnFall var(--d, 16s) linear infinite;
  animation-delay: var(--delay, 0s);
  filter: blur(0.2px);
}
@keyframes vnFall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  50% { transform: translate3d(28px, 50vh, 0) rotate(180deg); }
  100% { transform: translate3d(-16px, 110vh, 0) rotate(360deg); }
}

/* ============================================================
   TITLE SCREEN
   ============================================================ */
.vn-title {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 76px 20px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.9), transparent 58%),
    linear-gradient(168deg, #fdf4ff 0%, #eaf4ff 46%, #ffeaf2 100%);
  transition: opacity 0.8s var(--vn-ease), visibility 0.8s, transform 0.8s var(--vn-ease);
}
.vn-title.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
}

.vn-title__sky { position: absolute; inset: 0; overflow: hidden; }
.vn-cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 60%, transparent 72%);
  filter: blur(12px);
  animation: vnDrift 34s ease-in-out infinite alternate;
}
.vn-cloud--1 { width: 62vw; height: 26vw; top: 8%; left: -16%; }
.vn-cloud--2 { width: 54vw; height: 22vw; top: 30%; right: -18%; animation-delay: -9s; }
.vn-cloud--3 { width: 70vw; height: 24vw; bottom: 2%; left: 8%; animation-delay: -18s; opacity: 0.7; }
@keyframes vnDrift {
  from { transform: translateX(-3%) translateY(0); }
  to { transform: translateX(4%) translateY(-2%); }
}
.vn-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.6;
}
.vn-glow--1 { width: 40vw; height: 40vw; top: -10%; right: 6%; background: #ffd4e4; }
.vn-glow--2 { width: 36vw; height: 36vw; bottom: -8%; left: -6%; background: #d4e6ff; }

.vn-title__art {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(42vw, 470px);
  height: min(76vh, 640px);
  overflow: hidden;
  border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px;
  border: 8px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 70px -30px rgba(120, 70, 130, 0.45);
  opacity: 0.62;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.vn-title__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(1.08) contrast(0.96);
}
.vn-title__arch {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 210, 228, 0.18), rgba(140, 170, 230, 0.28));
  mix-blend-mode: screen;
  z-index: 1;
}

.vn-title__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  text-align: center;
  animation: vnTitleIn 1.2s var(--vn-ease) both;
}
@keyframes vnTitleIn {
  from { opacity: 0; transform: translateY(24px); }
}
.vn-title__studio {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--vn-ink-soft);
  margin-bottom: 18px;
}
.vn-title__logo {
  font-family: var(--vn-serif);
  font-weight: 600;
  font-size: clamp(3.2rem, 16vw, 6.4rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  color: var(--vn-ink);
  margin-bottom: 14px;
  text-shadow: 0 10px 40px rgba(120, 70, 140, 0.12);
}
.vn-title__logo em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--vn-rose), var(--vn-lav) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vn-title__names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--vn-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 5.2vw, 1.6rem);
  color: var(--vn-ink-soft);
  margin-bottom: 12px;
}
.vn-title__names i {
  font-style: normal;
  font-size: 0.72em;
  color: var(--vn-rose);
  animation: vnHeart 2.6s ease-in-out infinite;
}
@keyframes vnHeart {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.25); }
  36% { transform: scale(1); }
}
.vn-title__tagline {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--vn-ink-soft);
  max-width: 38ch;
  margin: 0 auto 20px;
}
.vn-title__player {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 10px 24px -16px rgba(90, 50, 110, 0.4);
  margin-bottom: 20px;
}
.vn-title__player span {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--vn-rose-deep);
}
.vn-title__player strong {
  font-family: var(--vn-serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.vn-title__menu {
  display: grid;
  gap: 9px;
  max-width: 300px;
  margin: 0 auto 18px;
}
.vn-title__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font-family: var(--vn-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vn-ink);
  box-shadow: 0 12px 26px -18px rgba(90, 50, 110, 0.5);
  transition: transform 0.3s var(--vn-ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.vn-title__btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -16px rgba(217, 85, 125, 0.5);
}
.vn-title__btn--primary {
  background: linear-gradient(120deg, var(--vn-rose), #f59bb4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(217, 85, 125, 0.7);
}
.vn-title__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.vn-title__bullet { font-size: 0.9em; opacity: 0.9; }
.vn-title__meta {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--vn-muted);
  margin-bottom: 8px;
}
.vn-title__note {
  font-size: 0.66rem;
  line-height: 1.6;
  color: var(--vn-muted);
  max-width: 34ch;
  margin: 0 auto;
}
.vn-title__back {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vn-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(109, 91, 128, 0.35);
  padding-bottom: 3px;
  white-space: nowrap;
}
.vn-title__back:hover { color: var(--vn-rose-deep); }

/* ============================================================
   APP
   ============================================================ */
.vn-app {
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease 0.15s, visibility 0.9s;
}
body.vn-live .vn-app { opacity: 1; visibility: visible; }

/* HUD */
.vn-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 9px 12px;
  padding-top: calc(9px + env(safe-area-inset-top));
  background: rgba(255, 250, 246, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px -22px rgba(70, 40, 100, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.vn-hud__logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--vn-ink);
  text-decoration: none;
  white-space: nowrap;
}
.vn-hud__logo span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vn-rose), var(--vn-lav));
  color: #fff;
  font-family: var(--vn-serif);
  font-size: 0.7rem;
  letter-spacing: 0;
}
.vn-affection {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.vn-affection__pop {
  position: absolute;
  top: -4px;
  right: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--vn-rose-deep);
  pointer-events: none;
  animation: vnAffectionPop 1.05s var(--vn-ease) forwards;
}
@keyframes vnAffectionPop {
  0% { opacity: 0; transform: translateY(4px) scale(0.9); }
  25% { opacity: 1; transform: translateY(-4px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-18px) scale(1); }
}
.vn-affection__label {
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--vn-muted);
}
.vn-hearts { display: flex; gap: 1px; }
.vn-hearts svg {
  width: 13px;
  height: 13px;
  fill: rgba(242, 125, 157, 0.12);
  stroke: rgba(217, 85, 125, 0.5);
  stroke-width: 1.4;
  transition: fill 0.4s, transform 0.4s var(--vn-ease);
}
.vn-hearts svg.is-full { fill: var(--vn-rose); stroke: var(--vn-rose); }
.vn-hearts svg.is-pop { transform: scale(1.35); }
.vn-affection__value {
  min-width: 32px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--vn-rose-deep);
  text-align: right;
}
.vn-hud__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.vn-affection + .vn-hud__actions { margin-left: 0; }
.vn-hud__btn {
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--vn-line);
  border-radius: 999px;
  font-family: var(--vn-sans);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--vn-ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vn-hud__btn:hover { background: #fff; border-color: rgba(242, 125, 157, 0.5); color: var(--vn-ink); }
.vn-hud__btn[aria-pressed="true"] {
  background: var(--vn-rose);
  border-color: var(--vn-rose);
  color: #fff;
}
.vn-hud__btn--menu { padding-right: 10px; padding-left: 10px; }

.vn-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 10px;
  width: min(270px, calc(100vw - 20px));
  padding: 14px;
  background: var(--vn-cream);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 26px 60px -24px rgba(60, 30, 90, 0.45);
  animation: vnMenuIn 0.3s var(--vn-ease);
}
@keyframes vnMenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
}
.vn-menu__title {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--vn-rose-deep);
  margin-bottom: 8px;
}
.vn-menu nav { display: grid; gap: 1px; margin-bottom: 12px; }
.vn-menu nav a {
  padding: 8px 6px;
  font-size: 0.72rem;
  color: var(--vn-ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--vn-line);
  transition: color 0.2s, padding-left 0.2s;
}
.vn-menu nav a:hover { color: var(--vn-rose-deep); padding-left: 10px; }
.vn-menu__save {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.vn-menu__save button {
  padding: 8px 6px;
  border-radius: 9px;
  border: 1px solid var(--vn-line);
  background: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--vn-ink-soft);
}
.vn-menu__save button:hover { border-color: var(--vn-rose); color: var(--vn-rose-deep); }
.vn-menu__exit {
  display: block;
  font-size: 0.6rem;
  color: var(--vn-muted);
  text-decoration: none;
  border-top: 1px solid var(--vn-line);
  padding-top: 10px;
}
.vn-menu__exit:hover { color: var(--vn-ink); }

/* ============================================================
   SCENES
   ============================================================ */
main { padding-top: 98px; }
.vn-scene {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 16px 26px;
}
.vn-scene__ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--vn-ink-soft);
  box-shadow: 0 8px 20px -18px rgba(90, 50, 110, 0.4);
  margin-bottom: 14px;
}
.vn-scene__ribbon span {
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--vn-rose-deep);
  padding-right: 8px;
  border-right: 1px solid var(--vn-line);
}
.vn-scene__ribbon--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 250, 246, 0.85);
}
.vn-scene__ribbon--light span { color: var(--vn-gold); border-color: rgba(255, 255, 255, 0.25); }

.vn-sr-title {
  font-family: var(--vn-serif);
  font-size: clamp(1.8rem, 7.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.02;
  color: var(--vn-ink);
  margin: 0 0 16px;
}

.vn-panel {
  background: var(--vn-panel);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--vn-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Couple */
.vn-couple {
  display: grid;
  gap: 14px;
  padding: 14px;
}
.vn-char {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  overflow: hidden;
}
.vn-char__art {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffd9e7, #dce9ff);
  min-height: 148px;
}
.vn-char__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.98) brightness(1.04);
}
.vn-char__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(120, 80, 140, 0.22));
}
.vn-char__halo {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.7), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.vn-char__spark {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 0.7rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: vnTwinkle 3s ease-in-out infinite;
}
.vn-char__spark--1 { top: 12%; right: 12%; }
.vn-char__spark--2 { bottom: 16%; left: 12%; animation-delay: -1.4s; }
@keyframes vnTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
.vn-char__body { padding: 4px 2px; min-width: 0; }
.vn-char__role {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--vn-rose-deep);
}
.vn-char__body h3 {
  font-family: var(--vn-serif);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.05;
  margin: 3px 0 4px;
}
.vn-char__parents {
  font-size: 0.6rem;
  line-height: 1.5;
  color: var(--vn-muted);
  margin-bottom: 6px;
}
.vn-char__bio {
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--vn-ink-soft);
  margin-bottom: 8px;
}
.vn-char__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-bottom: 7px;
}
.vn-char__stats span {
  font-size: 0.48rem;
  letter-spacing: 0.02em;
  color: var(--vn-muted);
  white-space: nowrap;
}
.vn-char__stats b {
  font-weight: 700;
  color: var(--vn-ink-soft);
  margin-right: 2px;
}
.vn-char__ig {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--vn-rose-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 85, 125, 0.35);
  padding-bottom: 1px;
}
.vn-char__ig:hover { color: var(--vn-ink); border-color: var(--vn-ink); }

/* ============================================================
   DIALOGUE
   ============================================================ */
.vn-dialogue {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 900px;
  margin: 18px auto 0;
}
.vn-dialogue__avatar {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px -12px rgba(90, 50, 110, 0.5);
  background: #ffe4ed;
  animation: vnAvatarIn 0.35s var(--vn-ease);
}
@keyframes vnAvatarIn {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
}
.vn-dialogue__avatar img { width: 100%; height: 100%; object-fit: cover; }
.vn-dialogue__box {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 22px 18px 12px;
  background: rgba(255, 252, 248, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow: 0 20px 40px -26px rgba(90, 50, 110, 0.45);
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s var(--vn-ease);
}
.vn-dialogue__box:hover { box-shadow: 0 24px 44px -24px rgba(90, 50, 110, 0.55); }
.vn-dialogue__box:focus-visible {
  outline: 3px solid rgba(242, 125, 157, 0.7);
  outline-offset: 3px;
}
.vn-dialogue__name {
  position: absolute;
  top: -13px;
  left: 14px;
  padding: 5px 13px;
  background: linear-gradient(120deg, var(--vn-rose), #f6a0b8);
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(217, 85, 125, 0.7);
}
.vn-dialogue__text {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--vn-ink);
  min-height: 3.4em;
}
.vn-dialogue__text.is-typing::after {
  content: "▌";
  color: var(--vn-rose);
  margin-left: 2px;
  animation: vnBlink 0.9s steps(1) infinite;
}
@keyframes vnBlink { 50% { opacity: 0; } }
.vn-dialogue__choices {
  display: grid;
  gap: 7px;
  margin: 12px 0 4px;
}
.vn-dialogue__choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(242, 125, 157, 0.35);
  border-radius: 12px;
  text-align: left;
  font-family: var(--vn-sans);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vn-ink-soft);
  transition: transform 0.25s var(--vn-ease), border-color 0.25s, background 0.25s, color 0.25s;
}
.vn-dialogue__choice::before {
  content: "♥";
  color: var(--vn-rose);
  font-size: 0.7rem;
}
.vn-dialogue__choice:hover,
.vn-dialogue__choice:focus-visible {
  transform: translateX(4px);
  border-color: var(--vn-rose);
  background: #fff5f9;
  color: var(--vn-ink);
}
.vn-dialogue__choice > span { display: block; }
.vn-dialogue__choice small {
  display: block;
  font-size: 0.52rem;
  font-weight: 500;
  color: var(--vn-muted);
  letter-spacing: 0.02em;
}
.vn-dialogue__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.vn-dialogue__hint {
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vn-muted);
}
.vn-dialogue__next {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vn-rose), #f7a3ba);
  color: #fff;
  font-size: 0.56rem;
  box-shadow: 0 6px 14px -6px rgba(217, 85, 125, 0.8);
  animation: vnNext 1.6s ease-in-out infinite;
}
@keyframes vnNext {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.vn-dialogue__next:disabled { opacity: 0.4; animation: none; cursor: default; }
.vn-dialogue--slim .vn-dialogue__avatar { width: 60px; height: 60px; }
.vn-dialogue--slim .vn-dialogue__text { min-height: 2.6em; }
.vn-dialogue__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vn-rose-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 85, 125, 0.4);
  padding-bottom: 2px;
}
.vn-dialogue__link:hover { color: var(--vn-ink); }

/* ============================================================
   CHAPTERS
   ============================================================ */
.vn-chapter__stage {
  display: grid;
  overflow: hidden;
  background: var(--vn-panel);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--vn-shadow);
  backdrop-filter: blur(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.vn-chapter__stage.is-changing { opacity: 0.35; transform: translateY(4px); }
.vn-chapter__art {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #e9dcf5;
}
.vn-chapter__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(1.02);
  transition: transform 0.8s var(--vn-ease);
}
.vn-chapter__stage:hover .vn-chapter__art img { transform: scale(1.03); }
.vn-chapter__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(58, 43, 76, 0.3));
}
.vn-chapter__no {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(255, 250, 246, 0.9);
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--vn-rose-deep);
  backdrop-filter: blur(6px);
}
.vn-chapter__body { padding: 20px 18px 22px; }
.vn-chapter__date {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vn-rose-deep);
  margin-bottom: 5px;
}
.vn-chapter__body h3 {
  font-family: var(--vn-serif);
  font-size: clamp(1.6rem, 7vw, 2.3rem);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 9px;
}
.vn-chapter__body p:not(.vn-chapter__date):not(.vn-chapter__read) {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--vn-ink-soft);
}
.vn-chapter__progress {
  height: 4px;
  margin: 16px 0 7px;
  background: rgba(90, 60, 110, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.vn-chapter__progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vn-rose), var(--vn-lav));
  transition: width 0.6s var(--vn-ease);
}
.vn-chapter__read {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--vn-muted);
}

.vn-chapter__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vn-chapter__tabs::-webkit-scrollbar { display: none; }
.vn-chapter__tab {
  flex: 0 0 auto;
  min-width: 146px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  text-align: left;
  scroll-snap-align: start;
  transition: transform 0.25s var(--vn-ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.vn-chapter__tab:hover { transform: translateY(-2px); border-color: rgba(242, 125, 157, 0.5); }
.vn-chapter__tab.is-active {
  background: linear-gradient(135deg, var(--vn-rose), #f6a0b8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(217, 85, 125, 0.7);
}
.vn-chapter__tab b {
  display: block;
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.7;
  margin-bottom: 3px;
}
.vn-chapter__tab span {
  display: block;
  font-family: var(--vn-serif);
  font-size: 0.94rem;
  line-height: 1.1;
  font-weight: 600;
}

/* ============================================================
   EVENTS
   ============================================================ */
.vn-events__grid { display: grid; gap: 14px; }
.vn-event {
  overflow: hidden;
  background: var(--vn-panel);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow: var(--vn-shadow);
  backdrop-filter: blur(12px);
}
.vn-event__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.vn-event__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(1.02);
  transition: transform 0.8s var(--vn-ease);
}
.vn-event:hover .vn-event__art img { transform: scale(1.04); }
.vn-event__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 43, 76, 0.05), rgba(58, 43, 76, 0.28));
}
.vn-event__scene {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(255, 250, 246, 0.9);
  border-radius: 999px;
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--vn-rose-deep);
  backdrop-filter: blur(6px);
}
.vn-event__scene--rose { background: var(--vn-rose); color: #fff; }
.vn-event__body { padding: 16px 18px 20px; }
.vn-event__time {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vn-rose-deep);
  margin-bottom: 3px;
}
.vn-event__body h3 {
  font-family: var(--vn-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 4px;
}
.vn-event__venue { font-size: 0.76rem; font-weight: 700; color: var(--vn-ink-soft); }
.vn-event__address {
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--vn-muted);
  margin-top: 3px;
}
.vn-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vn-rose-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 85, 125, 0.4);
  padding-bottom: 2px;
}
.vn-link:hover { color: var(--vn-ink); border-color: var(--vn-ink); }

/* ============================================================
   FINALE / COUNTDOWN
   ============================================================ */
.vn-finale {
  position: relative;
  margin: 34px 0;
  padding: 64px 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 214, 230, 0.22), transparent 40%),
    radial-gradient(circle at 82% 84%, rgba(158, 201, 240, 0.18), transparent 44%),
    radial-gradient(1.5px 1.5px at 24% 28%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 16%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 58%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 36% 76%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #2b2040 0%, #47315f 52%, #75486f 100%);
  color: var(--vn-cream);
  overflow: hidden;
}
.vn-finale::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(242, 125, 157, 0.28), transparent 55%);
  pointer-events: none;
}
.vn-finale__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.vn-finale h2 {
  font-family: var(--vn-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1;
  margin: 6px 0 12px;
}
.vn-finale__lead {
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255, 250, 246, 0.72);
  max-width: 50ch;
  margin: 0 auto 28px;
}
.vn-finale__lead strong { color: #ffd9e5; }
.vn-finale__clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  max-width: 580px;
  margin: 0 auto;
}
.vn-finale__unit {
  padding: 14px 4px 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.vn-finale__unit strong {
  display: block;
  font-family: var(--vn-serif);
  font-size: clamp(1.7rem, 7.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.vn-finale__unit span {
  display: block;
  margin-top: 5px;
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 250, 246, 0.55);
}
.vn-finale__quote {
  margin-top: 26px;
  font-family: var(--vn-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ffd7e4;
}

/* ============================================================
   GALLERY
   ============================================================ */
.vn-gallery__lead {
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--vn-muted);
  max-width: 54ch;
  margin-bottom: 18px;
}
.vn-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.vn-cg {
  position: relative;
  padding: 5px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 14px 30px -22px rgba(90, 50, 110, 0.5);
  text-align: left;
  transition: transform 0.35s var(--vn-ease), box-shadow 0.35s;
  overflow: hidden;
}
.vn-cg:hover { transform: translateY(-4px); box-shadow: 0 22px 38px -22px rgba(90, 50, 110, 0.6); }
.vn-cg__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #e8dcf2;
}
.vn-cg__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(1.02);
  transition: transform 0.7s var(--vn-ease), filter 0.4s;
}
.vn-cg:hover .vn-cg__frame img { transform: scale(1.04); }
.vn-cg__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 4px 8px;
  background: rgba(255, 250, 246, 0.9);
  border-radius: 999px;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--vn-rose-deep);
  backdrop-filter: blur(6px);
}
.vn-cg__cap {
  display: block;
  padding: 7px 4px 3px;
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--vn-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vn-cg__lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(58, 43, 76, 0.62);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  color: #fff;
  text-align: center;
}
.vn-cg.is-locked .vn-cg__lock { display: grid; }
.vn-cg.is-locked .vn-cg__frame img { filter: blur(7px) saturate(0.5) brightness(0.7); }
.vn-cg__lock svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; margin: 0 auto 8px; }
.vn-cg__lock b {
  display: block;
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  margin-bottom: 3px;
}
.vn-cg__lock small { font-size: 0.5rem; line-height: 1.4; opacity: 0.75; }

/* ============================================================
   VENUE
   ============================================================ */
.vn-venue__stage {
  position: relative;
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--vn-shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.vn-venue__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.92);
}
.vn-venue__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(58, 43, 76, 0.08) 0%, rgba(58, 43, 76, 0.45) 58%, rgba(40, 28, 55, 0.9) 100%);
}
.vn-venue__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 18px;
  color: #fff;
}
.vn-venue__tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.vn-venue__overlay h3 {
  font-family: var(--vn-serif);
  font-size: clamp(1.7rem, 7.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
}
.vn-venue__overlay p {
  font-size: 0.7rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
}
.vn-venue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.vn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--vn-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s var(--vn-ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.vn-btn:hover { transform: translateY(-2px); }
.vn-btn--rose {
  background: linear-gradient(120deg, var(--vn-rose), #f6a0b8);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(217, 85, 125, 0.8);
}
.vn-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}
.vn-btn--ghost:hover { background: rgba(255, 255, 255, 0.24); }
.vn-btn--full { width: 100%; }

.vn-venue__map {
  margin-top: 14px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--vn-shadow);
  padding: 8px;
}
.vn-venue__maphead {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 8px;
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--vn-muted);
}
.vn-venue__map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 14px;
  filter: saturate(0.8) hue-rotate(-8deg);
}

/* ============================================================
   RSVP
   ============================================================ */
.vn-rsvp__panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 18px 24px;
  background: rgba(255, 250, 246, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: var(--vn-shadow);
  backdrop-filter: blur(12px);
}
.vn-rsvp__kicker {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--vn-rose-deep);
  margin-bottom: 6px;
}
.vn-rsvp__question {
  font-family: var(--vn-serif);
  font-size: clamp(1.5rem, 6.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 8px;
}
.vn-rsvp__lead {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--vn-muted);
  margin-bottom: 18px;
}
.vn-rsvp__lead strong { color: var(--vn-ink-soft); }
.vn-rsvp__choices { display: grid; gap: 9px; }
.vn-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(90, 60, 110, 0.14);
  border-radius: 16px;
  text-align: left;
  font-family: var(--vn-sans);
  transition: transform 0.28s var(--vn-ease), border-color 0.28s, background 0.28s, box-shadow 0.28s;
}
.vn-choice:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 28px -22px rgba(90, 50, 110, 0.6);
}
.vn-choice--yes:hover { border-color: var(--vn-rose); }
.vn-choice__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vn-blush);
  color: var(--vn-rose-deep);
  font-size: 0.95rem;
}
.vn-choice--no .vn-choice__icon { background: #e9f0fb; color: #5f7fa8; }
.vn-choice strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--vn-ink);
  margin-bottom: 1px;
}
.vn-choice small { display: block; font-size: 0.58rem; color: var(--vn-muted); line-height: 1.4; }

.vn-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--vn-line);
  animation: vnFormIn 0.45s var(--vn-ease);
}
@keyframes vnFormIn {
  from { opacity: 0; transform: translateY(10px); }
}
.vn-form__title {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--vn-rose-deep);
}
.vn-form__title span { color: var(--vn-ink); }
.vn-form__row { display: grid; gap: 4px; }
.vn-form label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vn-muted);
}
.vn-form input,
.vn-form select,
.vn-form textarea {
  width: 100%;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--vn-line);
  border-radius: 11px;
  font-family: var(--vn-sans);
  font-size: 0.8rem;
  color: var(--vn-ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.vn-form input::placeholder,
.vn-form textarea::placeholder { color: #b4a6c2; }
.vn-form input:focus,
.vn-form select:focus,
.vn-form textarea:focus {
  outline: 0;
  border-color: var(--vn-rose);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 125, 157, 0.16);
}
.vn-form textarea { resize: vertical; min-height: 80px; }
.vn-form__done {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--vn-rose-deep);
  font-weight: 600;
}

/* ============================================================
   ENDING
   ============================================================ */
.vn-ending {
  position: relative;
  margin-top: 34px;
  padding: 76px 16px 60px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 214, 230, 0.2), transparent 48%),
    radial-gradient(circle at 50% 110%, rgba(183, 156, 232, 0.25), transparent 55%),
    linear-gradient(170deg, #2b2040, #3b2b4c 60%, #241a35);
  color: var(--vn-cream);
  overflow: hidden;
  text-align: center;
}
.vn-ending::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 18% 22%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 72%, rgba(255, 255, 255, 0.3), transparent 60%);
  pointer-events: none;
}
.vn-ending__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.vn-ending__kicker {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--vn-gold);
  margin-bottom: 10px;
}
.vn-ending h2 {
  font-family: var(--vn-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 10vw, 4rem);
  line-height: 0.98;
  margin-bottom: 20px;
}
.vn-ending h2 em {
  font-style: italic;
  background: linear-gradient(100deg, #ffd7e4, #d9c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vn-ending blockquote {
  font-family: var(--vn-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 4.8vw, 1.5rem);
  line-height: 1.5;
  color: #ffe4ee;
  max-width: 30ch;
  margin: 0 auto 22px;
}
.vn-ending__message {
  font-size: 0.76rem;
  line-height: 1.8;
  color: rgba(255, 250, 246, 0.7);
  max-width: 46ch;
  margin: 0 auto 8px;
}
.vn-ending__thanks {
  font-size: 0.68rem;
  line-height: 1.7;
  color: rgba(255, 250, 246, 0.5);
  margin-bottom: 22px;
}
.vn-ending__hash {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--vn-gold);
  margin-bottom: 26px;
}
.vn-ending__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 38px;
}
.vn-ending .vn-btn--ghost { border-color: rgba(255, 255, 255, 0.35); }
.vn-ending__credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.vn-ending__credits div span {
  display: block;
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 250, 246, 0.4);
  margin-bottom: 3px;
}
.vn-ending__credits div strong {
  font-family: var(--vn-serif);
  font-size: 0.92rem;
  font-weight: 500;
  color: #ffe4ee;
}
.vn-ending__fin {
  margin-top: 32px;
  font-size: 0.56rem;
  letter-spacing: 0.4em;
  color: rgba(255, 250, 246, 0.35);
}

.vn-footer {
  padding: 24px 16px calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  background: #241a35;
  color: rgba(255, 250, 246, 0.4);
  font-size: 0.54rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
}
.vn-footer a { color: rgba(255, 250, 246, 0.75); text-decoration: none; border-bottom: 1px solid rgba(255, 250, 246, 0.25); }
.vn-footer p + p { margin-top: 3px; opacity: 0.7; }

/* ============================================================
   TOAST
   ============================================================ */
.vn-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  background: rgba(58, 43, 76, 0.94);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s, transform 0.3s var(--vn-ease), visibility 0.3s;
}
.vn-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 620px) {
  .vn-scene { padding-left: 28px; padding-right: 28px; }
  .vn-couple { grid-template-columns: 1fr 1fr; padding: 16px; }
  .vn-char { grid-template-columns: 1fr; }
  .vn-char__art { min-height: 210px; aspect-ratio: 4 / 3; }
  .vn-chapter__stage { grid-template-columns: 1.05fr 1fr; }
  .vn-chapter__art { min-height: 100%; }
  .vn-events__grid { grid-template-columns: 1fr 1fr; }
  .vn-gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 13px; }
  .vn-venue__stage { min-height: 440px; }
  .vn-venue__overlay { padding: 28px 26px; }
  .vn-ending__credits { grid-template-columns: repeat(4, 1fr); }
  .vn-rsvp__panel { padding: 30px 30px 32px; }
  .vn-form { grid-template-columns: 1fr 1fr; }
  .vn-form__row:nth-of-type(1),
  .vn-form__row:nth-of-type(4),
  .vn-form__title,
  .vn-form .vn-btn,
  .vn-form__done { grid-column: 1 / -1; }
  .vn-form__row { gap: 5px; }
  .vn-form__row textarea { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .vn-scene { padding: 56px 40px 34px; }
  .vn-couple { gap: 18px; }
  .vn-char__art { min-height: 0; height: 380px; aspect-ratio: auto; }
  .vn-char__body h3 { font-size: 1.8rem; }  .vn-gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .vn-hud { padding-left: 22px; padding-right: 22px; }
  .vn-dialogue { margin-top: 24px; }
  .vn-dialogue__avatar { width: 92px; height: 92px; }
  .vn-dialogue__box { padding: 26px 24px 14px; }
  .vn-dialogue__text { font-size: 0.9rem; }
  .vn-chapter__body { padding: 30px 30px 26px; }
  .vn-chapter__tab { min-width: 170px; }
  .vn-finale { padding: 84px 32px; }
  .vn-rsvp__choices { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1120px) {
  .vn-char__art { height: 420px; }
  .vn-title__frame { max-width: 640px; }
}

@media (max-width: 719px) {
  .vn-affection {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-end;
    padding-top: 3px;
    border-top: 1px solid rgba(90, 60, 110, 0.07);
  }
  .vn-hud__actions { margin-left: auto; }
  .vn-title__art {
    right: 50%;
    bottom: -2%;
    width: 94vw;
    height: 58vh;
    transform: translateX(50%);
    opacity: 0.2;
  }
  main { padding-top: 104px; }
}

@media (max-width: 379px) {
  .vn-hud__btn { font-size: 0.44rem; padding: 5px 6px; }
  .vn-hud__logo { font-size: 0.52rem; }
  .vn-hearts svg { width: 11px; height: 11px; }
  .vn-char { grid-template-columns: 88px 1fr; }
  .vn-char__art { min-height: 138px; }
  .vn-dialogue__avatar { width: 52px; height: 52px; }
  .vn-dialogue__box { padding: 20px 14px 10px; }
  .vn-dialogue__text { font-size: 0.8rem; }
  .vn-rsvp__panel { padding: 18px 14px 20px; }
  .vn-gallery__grid { gap: 8px; }
  .vn-cg__cap { font-size: 0.5rem; }
  .vn-finale__unit { padding: 11px 2px 8px; }
  .vn-ending { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .vn-petals { display: none; }
  .vn-cloud, .vn-title__names i, .vn-dialogue__next, .vn-char__spark { animation: none; }
  .vn-title, .vn-app { transition-duration: 0.001ms !important; }
}

@media (max-height: 720px) {
  .vn-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 54px;
    overscroll-behavior: contain;
  }
  .vn-title__back {
    position: static;
    transform: none;
    margin-top: 16px;
  }
}
