
body[data-screen=invitation] { background: #000; }
body[data-screen=invitation] .ambient { display: none; }
html:has(.iv-page:not(.iv-opened)) { overflow: hidden; }
.iv-page { --iv-script: var(--heading); --iv-body: var(--sans); position: relative; isolation: isolate; min-height: 100svh; color: #fff; font: 400 14px/1.35 var(--iv-body); background: transparent; }
.iv-page h1, .iv-page h2, .iv-page h3, .iv-page p { margin: 0; }
.iv-page h2 { font: 400 40px/1 var(--iv-script); }
.iv-page p { text-wrap: pretty; }
.iv-page button, .iv-page input, .iv-page textarea, .iv-page select { font: inherit; }
.iv-backdrop { position: fixed; z-index: -2; inset: 0; background: #444; overflow: hidden; }
.iv-backdrop::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .5); }
.iv-backdrop > img, .iv-backdrop > video { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.iv-desktop { display: none; }
.iv-paper { visibility: hidden; position: relative; min-height: 100svh; background: rgb(0 0 0 / .08); }
.iv-opened .iv-paper { visibility: visible; }
.iv-date { display: flex; justify-content: space-between; max-width: 280px; width: 100%; margin: 0 auto 28px; font: 400 16px/1 var(--iv-body); }
.iv-kicker { text-transform: uppercase; font: 400 12px/1.4 var(--iv-body); letter-spacing: .12em; text-align: center; }
.iv-names { position: relative; width: 254px; height: 250px; margin: 38px auto 0 !important; font: 400 72px/1 var(--iv-script) !important; }
.iv-names > span { position: absolute; display: block; transform: rotate(-20deg); }
.iv-names > span:nth-child(1) { top: 0; left: 54px; }
.iv-names > span:nth-child(2) { top: 90px; left: 76px; }
.iv-names > span:nth-child(3) { top: 168px; left: 20px; }
.iv-cover { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: max(46px, env(safe-area-inset-top)) 24px max(24px, min(158px, calc((100svh - 640px) * .63 + 24px)), env(safe-area-inset-bottom)); background: rgb(0 0 0 / .12); transition: opacity 650ms ease, transform 700ms cubic-bezier(.22,1,.36,1); }
.iv-cover .iv-names { font-size: clamp(48px, calc(8svh + 4px), 72px) !important; width: 3.53em; height: 3.47em; }
.iv-cover .iv-names > span:nth-child(1) { left: .75em; }
.iv-cover .iv-names > span:nth-child(2) { top: 1.25em; left: 1.05em; }
.iv-cover .iv-names > span:nth-child(3) { top: 2.33em; left: .28em; }
.iv-cover-top { width: 100%; max-width: 280px; flex-shrink: 0; }
.iv-cover-bottom { width: 100%; text-align: center; flex-shrink: 0; }
.iv-cover { overflow-y: auto; overscroll-behavior: contain; }
.iv-cover-bottom > p:first-child { font-size: 13px; color: rgb(255 255 255 / .76); }
.iv-cover-bottom h3 { margin: 16px 0 18px; font: 400 32px/1 var(--iv-script); overflow-wrap: anywhere; }
.iv-intro { max-width: 400px; margin: 0 auto 28px !important; font-size: 14px; line-height: 1.5; color: rgb(255 255 255 / .8); }
.iv-cover .iv-button .icon { width: 18px; height: 18px; }
.iv-opened .iv-cover { opacity: 0; transform: translateY(-28px); pointer-events: none; }
.iv-hero { position: relative; min-height: 100svh; padding: 108px 24px 64px; }
.iv-hero .iv-names { font-size: 70px !important; }
.iv-scroll { position: absolute; bottom: 25%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; transform: translateX(-50%); }
.iv-scroll .icon { width: 24px; height: 24px; }
.iv-section { padding: 56px 32px; text-align: center; scroll-margin-top: 90px; }
.iv-section > h2, .iv-section > div > h2 { margin-bottom: 24px; }
.iv-section > p, .iv-section > div > p { margin-bottom: 28px; }
.iv-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: var(--pill); background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); color: var(--ink); font: 500 14px/1.4 var(--sans) !important; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2); }
.iv-button:hover { background: var(--lg); }
.iv-button:active { transform: scale(.97); }
.iv-button .icon { width: 18px; height: 18px; }
.iv-couple { padding-top: 16px; padding-bottom: 48px; }
.iv-person { margin: 0; padding: 28px 16px; border-radius: 24px; background: var(--lg-panel); backdrop-filter: var(--lg-panel-blur); -webkit-backdrop-filter: var(--lg-panel-blur); box-shadow: var(--lg-panel-rim); }
.iv-person > h2 { margin: 20px 0 0; font-size: 30px; line-height: 1.2; text-align: center; }
.iv-countdown { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; width: 100%; max-width: 320px; margin: 28px auto 24px; }
.iv-countdown span { display: grid; align-content: center; gap: 4px; min-height: 72px; padding: 12px 4px; border-radius: 18px; background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); font-size: 11px; color: rgb(255 255 255 / .75); }
.iv-countdown strong { font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink); }
.iv-event { display: grid; justify-items: center; gap: 20px; margin-top: 32px; padding: 28px 20px; border-radius: 24px; background: var(--lg-panel); backdrop-filter: var(--lg-panel-blur); -webkit-backdrop-filter: var(--lg-panel-blur); box-shadow: var(--lg-panel-rim); }
.iv-event .iv-button { margin-top: 8px; }
.iv-moments { padding-left: 24px; padding-right: 24px; }
.iv-moments > div:first-child { padding: 0 16px; }
.iv-gallery { columns: 2; column-gap: 8px; margin-top: 36px; }
.iv-photo { position: relative; border-radius: 16px; overflow: hidden; background: var(--lg); box-shadow: var(--lg-rim); display: block; width: 100%; margin: 0 0 8px; padding: 0; break-inside: avoid; }
.iv-photo img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity 400ms ease; }
.iv-photo img.iv-loaded { opacity: 1; }
.iv-photo.iv-load-error::after { content: 'Foto belum termuat'; position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / .65); font-size: 12px; }
.iv-rsvp { background: transparent; }
.iv-page form { display: grid; gap: 18px; text-align: left; padding: 22px; border-radius: 26px; background: var(--lg-panel); backdrop-filter: var(--lg-panel-blur); -webkit-backdrop-filter: var(--lg-panel-blur); box-shadow: var(--lg-panel-rim); }
.iv-page form label { display: grid; align-content: start; gap: 8px; min-width: 0; font-size: 13px; font-weight: 400; color: rgb(255 255 255 / .8); }
.iv-page form input, .iv-page form textarea, .iv-page form select { width: 100%; min-width: 0; min-height: 48px; border: 0; border-radius: 16px; padding: 12px 14px; background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); color: var(--ink); font-size: 16px; }
.iv-page form textarea { resize: vertical; }
.iv-page form select { color-scheme: dark; }
.iv-page input::placeholder { color: rgb(255 255 255 / .7); }
.iv-page form .iv-button { justify-self: stretch; min-width: 0; margin-top: 4px; }
.iv-page .iv-form-status { min-height: 18px; margin: 0; font-size: 12px; }
.iv-wishes { background: transparent; }
#iv-wish-list { display: grid; gap: 12px; max-height: 440px; padding: 1px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; text-align: left; }
.iv-wish { padding: 20px; border-radius: 22px; background: var(--lg-panel); backdrop-filter: var(--lg-panel-blur); -webkit-backdrop-filter: var(--lg-panel-blur); box-shadow: var(--lg-panel-rim); }
.iv-wish header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.iv-wish header strong { font-size: 14px; font-weight: 600; }
.iv-wish header time { font-size: 11px; color: rgb(255 255 255 / .6); }
.iv-wish p { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.iv-wish header strong { overflow-wrap: anywhere; }
.iv-thanks { padding-top: 72px; padding-bottom: 100px; }
.iv-thanks > h2 { font-size: 52px; margin-bottom: 20px; }
.iv-thanks > p { font-size: 14px; }
.iv-thanks .iv-signature { margin: 32px 0 64px; font: 400 30px var(--iv-script); }
.iv-thanks > span { font-family: var(--sans); font-size: 11px; color: rgb(255 255 255 / .6); }
.iv-floating { position: fixed; z-index: 30; display: grid; place-items: center; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--pill); background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); color: var(--ink); transition: transform var(--dur-1) var(--ease-out); }
.iv-menu-toggle { top: max(30px, env(safe-area-inset-top)); right: 24px; width: 74px; }
.iv-menu-toggle .icon { width: 24px; height: 24px; }
.iv-play { right: 30px; bottom: max(30px, env(safe-area-inset-bottom)); width: 44px; }
.iv-play .icon { width: 20px; height: 20px; }
.iv-menu { position: fixed; z-index: 31; right: 24px; top: calc(max(30px, env(safe-area-inset-top)) + 54px); display: grid; min-width: 200px; padding: 8px; border: 0; border-radius: 24px; background: var(--lg-panel); backdrop-filter: var(--lg-panel-blur); -webkit-backdrop-filter: var(--lg-panel-blur); box-shadow: var(--lg-panel-rim); }
.iv-menu button { min-height: 44px; padding: 10px 16px; text-align: left; border-radius: var(--pill); font: 400 14px var(--sans); }
.iv-menu button:hover { background: var(--lg); box-shadow: var(--lg-rim); }
.iv-reveal { opacity: 1; }
.iv-opened .iv-reveal:not(.iv-visible) { opacity: 0; transform: translateY(24px); }
.iv-reveal { transition: opacity 900ms ease, transform 1100ms cubic-bezier(.22,1,.36,1); }
.iv-lightbox, .iv-booth { --iv-script: var(--heading); position: fixed; inset: 0; margin: auto; padding: 0; max-width: 100%; max-height: 100dvh; width: 100%; height: 100dvh; border: 0; border-radius: 0; background: var(--lg-panel); backdrop-filter: var(--lg-panel-blur); -webkit-backdrop-filter: var(--lg-panel-blur); box-shadow: none; color: var(--ink); font: 14px var(--sans); }
.iv-lightbox::backdrop, .iv-booth::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.iv-lightbox header, .iv-booth header { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 12px 24px; }
.iv-lightbox .iv-button, .iv-booth header .iv-button { width: 44px; height: 44px; padding: 8px; }
.iv-lightbox-track { position: relative; display: flex; align-items: center; justify-content: center; height: calc(100svh - 84px); }
.iv-lightbox-track img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; touch-action: pan-y; }
.iv-lightbox-track > button { position: absolute; z-index: 1; top: 50%; left: 12px; width: 44px; height: 44px; padding: 8px; }
.iv-lightbox-track > button:last-child { left: auto; right: 12px; }
.iv-booth header h2 { font: 32px var(--iv-script); }
.iv-booth-stage { position: relative; width: min(calc(100% - 40px), calc((100svh - 230px) * .75)); aspect-ratio: 3 / 4; margin: 12px auto; background: #fff; color: #111; }
.iv-booth-stage video, .iv-booth-stage canvas { width: 100%; height: 100%; object-fit: cover; }
.iv-booth-stage video { position: absolute; top: 2.25%; left: 3%; width: 94%; height: 85%; transform: scaleX(-1); }
.iv-booth-frame { position: absolute; inset: auto 0 2%; text-align: center; pointer-events: none; }
.iv-booth-frame > span { display: block; font-size: 9px; line-height: 1.5; }
.iv-booth-frame > strong { display: block; font: 32px/1 var(--iv-script); }
.iv-booth-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 12px 20px; }
#iv-camera-status { min-height: 20px; margin: 0 20px; text-align: center; font-size: 12px; }
@media (min-width: 768px) {
  .iv-page { --iv-panel: 35vw; }
  .iv-desktop { position: fixed; z-index: -1; inset: 0 var(--iv-panel) 0 0; display: flex; align-items: flex-end; background: #303633; overflow: hidden; }
  .iv-desktop > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
  .iv-desktop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #000); }
  .iv-desktop > div { position: relative; z-index: 1; padding: 40px 40px 80px; width: 100%; text-align: left; }
  .iv-desktop-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: clamp(12px, 1.1vw, 14px); }
  .iv-desktop h2 { display: flex; gap: 16px; font: 400 clamp(40px, 6.25vw, 80px)/1 var(--iv-script); margin: 16px 0 40px; white-space: nowrap; }
  .iv-desktop .iv-verse { max-width: 532px; font-size: clamp(13px, 1.2vw, 16px); line-height: 1.7; color: rgb(255 255 255 / .8); }
  .iv-backdrop { left: calc(100% - var(--iv-panel)); }
  .iv-paper { width: var(--iv-panel); margin-left: auto; }
  .iv-hero { padding-top: 84px; }
  .iv-hero .iv-names { width: 280px; height: 280px; font-size: 80px !important; }
  .iv-scroll { bottom: 15%; }
  .iv-cover { background: linear-gradient(rgb(0 0 0 / .5),rgb(0 0 0 / .5)), url('/public/invitation/moment-06.webp') center / cover; padding-top: 60px; padding-bottom: 80px; }
  .iv-cover .iv-names { width: 300px; font-size: 80px !important; height: 280px; }
  .iv-cover .iv-names > span:nth-child(2) { top: 100px; }
  .iv-cover .iv-names > span:nth-child(3) { top: 190px; }
  .iv-section { padding: 56px 32px; text-align: center; scroll-margin-top: 90px; }
}
@media (min-width: 768px) and (max-width: 1024px) { .iv-page { --iv-panel: 45vw; } }
@media (max-height: 650px) and (orientation: landscape) {
  .iv-cover { padding: 24px; flex-direction: row; justify-content: space-around; gap: 24px; }
  .iv-cover .iv-date { margin-bottom: 20px; }
  .iv-cover .iv-names { font-size: 48px !important; width: 180px; height: 160px; margin-top: 20px !important; }
  .iv-cover .iv-names > span:nth-child(2) { top: 60px; left: 50px; }
  .iv-cover .iv-names > span:nth-child(3) { top: 110px; left: 15px; }
  .iv-cover-bottom { max-width: 340px; }
  .iv-intro { max-width: 400px; margin: 0 auto 28px !important; font-size: 14px; line-height: 1.5; color: rgb(255 255 255 / .8); }
}
@media (prefers-reduced-motion: reduce) {
  .iv-cover, .iv-reveal { transition: opacity 120ms; transform: none !important; }
  .iv-opened .iv-reveal:not(.iv-visible) { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .iv-floating, .iv-menu { background: #414141; backdrop-filter: none; } }

/* The same liquid-glass materials as camera, album and owner controls. */
.iv-people { display: grid; gap: 16px; }
.iv-invitation-copy { max-width: 340px; margin: 0 auto 32px !important; font-size: 15px; line-height: 1.6; color: rgb(255 255 255 / .8); }
.iv-person-initial { display: grid; place-items: center; width: 88px; height: 88px; margin: auto; border-radius: 50%; background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); font: 40px var(--iv-script); }
.iv-event > .icon { width: 28px; height: 28px; }
.iv-event > h3 { max-width: 100%; font: 400 26px/1.25 var(--heading); text-wrap: balance; }
.iv-event-date { font-size: 14px; color: rgb(255 255 255 / .8); }
.iv-section > p { font-size: 14px; line-height: 1.55; color: rgb(255 255 255 / .8); }
.iv-media-note, .iv-optional { font-size: 12px; color: rgb(255 255 255 / .6); }
.iv-form-pair { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.iv-page form :is(input,textarea,select):focus { background: var(--lg-drop); }
.iv-empty { margin: 0; padding: 24px; border-radius: 24px; background: var(--lg-panel); box-shadow: var(--lg-panel-rim); color: rgb(255 255 255 / .65); font-size: 13px; text-align: center; }
.iv-button[aria-pressed=true], .iv-floating[aria-expanded=true] { background: var(--lg-drop); }
.iv-floating:active { transform: scale(.97); }
.iv-button:disabled { opacity: 1; cursor: wait; }
.iv-button[aria-busy=true] { position: relative; color: transparent; }
.iv-button[aria-busy=true]::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .2); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
#iv-photo-index { display: grid; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill); background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); font-size: 13px; }
@media (max-width: 359px) { .iv-section { padding-left: 24px; padding-right: 24px; } .iv-page form { padding: 18px; } .iv-form-pair { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-transparency: reduce) { .iv-page { --lg: #303034; --lg-panel: #1c1c1e; --lg-drop: #45454a; --lg-blur: none; --lg-panel-blur: none; } }
@media (prefers-contrast: more) { .iv-page { --lg: #202024; --lg-panel: #121214; --lg-drop: #444448; --lg-rim: inset 0 0 0 1px #aaa; --lg-panel-rim: inset 0 0 0 1px #aaa; } }
