:root {
  --navy: #033362;
  --gold: #e5c081;
  --white: #ffffff;
  --menu: #09457f;
  --s: 1;
  --menu-height: calc(80px * var(--s));
  --font-body: "Quintessential", serif;
  --font-title: "Kalnia", serif;
  --font-script: "MonteCarlo", cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--navy); color: var(--white); font: calc(14.4px * var(--s))/1.5 var(--font-body); }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 3px; }
button, a[href], select, summary, label[for] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.invitation-viewport { position: fixed; inset: 0; height: 100svh; height: 100dvh; overflow: clip; }
.app-shell { position: absolute; left: 50%; top: 50%; width: 414px; height: var(--canvas-height, 736px); border-radius: 16px; overflow: hidden; isolation: isolate; font-size: calc(14.4px * var(--s)); transform: translate(-50%, -50%) scale(var(--canvas-scale, 1)); transform-origin: center; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
main { position: absolute; inset: 0 0 var(--menu-height); overflow: clip; background: var(--navy); background-size: 100% 100%; background-blend-mode: luminosity; }
.section { position: absolute; inset: 0; padding: calc(30px * var(--s)); overflow-y: auto; overscroll-behavior: contain; text-align: center; display: none; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.section-inner { min-height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: center; overflow-wrap: anywhere; }
.section.panel-active { display: block; z-index: 2; }
.section:focus { outline-offset: -5px; }
p { margin: 0 0 calc(16px * var(--s)); }
.preserve-lines { white-space: pre-line; }
.gold { color: var(--gold); }
.muted { color: #526074; }
.italic { font-style: italic; }
.section-title { font: 400 calc(28.8px * var(--s))/1.2 var(--font-script); color: var(--gold); margin: 0 0 calc(24px * var(--s)); text-wrap: balance; }
.btn { min-height: 44px; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: var(--navy); padding: calc(6px * var(--s)) calc(12px * var(--s)); display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-size: calc(14px * var(--s)); line-height: 1.5; align-self: center; transition: transform .15s, filter .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px); filter: brightness(.94); }
.cover { position: absolute; inset: 0; z-index: 8; overflow-y: auto; background: var(--navy); background-size: 100% 100%; background-blend-mode: luminosity; }
.cover-content { min-height: 100%; width: 100%; padding: calc(30px * var(--s)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cover-art { margin: calc(24px * var(--s)) auto; flex: none; }
.wayang-top-clip { width: calc(246px * var(--s)); height: calc(233px * var(--s)); overflow: hidden; margin: auto; }
.wayang-top-clip img { width: calc(246px * var(--s)); height: calc(257px * var(--s)); display: block; }
.cover-name { color: var(--gold); font: 400 calc(40px * var(--s))/1 var(--font-script); margin: 0; max-width: calc(330px * var(--s)); overflow-wrap: anywhere; }
.wayang-bottom { width: calc(227px * var(--s)); height: calc(154px * var(--s)); object-fit: contain; display: block; margin: auto; }
.guest-box { padding: calc(8px * var(--s)); margin-bottom: calc(16px * var(--s)); max-width: 100%; }
.cover-greeting { font-size: calc(14px * var(--s)); line-height: 1.5; margin-bottom: calc(4px * var(--s)); white-space: pre-line; }
#guestName, .opening-guest-name { color: var(--gold); font-size: calc(16px * var(--s)); font-weight: 700; line-height: 1.2; margin: 0 0 calc(4px * var(--s)); overflow-wrap: anywhere; }
.opening-guest-box { align-self: center; }
.cover-open { margin-bottom: calc(24px * var(--s)); }
.load-status { margin: 0; font-size: 14px; max-width: 280px; }
.cover.is-open { display: none; }
.doors { position: absolute; inset: 0; z-index: 11; pointer-events: none; overflow: hidden; }
.door { position: absolute; width: auto; height: 100%; top: 0; }
.door-left { right: 50%; }
.door-right { left: 50%; }
.invitation-open .doors { display: none; bottom: var(--menu-height); }
.invitation-open[data-active-panel="opening"] .doors { display: block; }
.frame { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.invitation-open .frame { bottom: var(--menu-height); }
.frame img { position: absolute; height: auto; width: 50%; }
.frame .frame-top { top: 0; left: 0; width: 100%; }
.frame .frame-bottom { bottom: 0; left: 0; width: 100%; }
.frame .frame-left { top: 0; left: 0; height: 100%; width: auto; }
.frame .frame-right { top: 0; right: 0; height: 100%; width: auto; }
.frame-tl { top: 0; left: 0; }
.frame-tr { top: 0; right: 0; }
.frame-bl { bottom: 0; left: 0; }
.frame-br { bottom: 0; right: 0; }
.quotes-text { font-style: italic; }
.couple-intro { margin-bottom: calc(24px * var(--s)); }
.couple-bismillah, .couple-greeting { margin-bottom: calc(8px * var(--s)); }
.couple-name { color: var(--gold); font: 400 calc(21.6px * var(--s))/1.2 var(--font-title); margin: 0 0 calc(8px * var(--s)); text-wrap: balance; }
.couple-family { margin: 0; }
.couple-connector { margin: calc(24px * var(--s)) 0 calc(16px * var(--s)); font-family: var(--font-title); font-style: italic; color: var(--gold); }
.ceremony { margin-bottom: calc(24px * var(--s)); }
.ceremony p { margin: 0; }
.ceremony-title { font-size: calc(16px * var(--s)); font-weight: 700; color: var(--gold); }
.ceremony-time { font-size: calc(14px * var(--s)); font-weight: 700; margin-bottom: calc(8px * var(--s)) !important; }
.ceremony-address { font-size: calc(12px * var(--s)); }
.event-title { font: 400 calc(16px * var(--s))/1.2 var(--font-title); color: var(--gold); margin: 0 0 calc(8px * var(--s)); }
.date-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: calc(24px * var(--s)); }
.date-number { font-size: calc(50px * var(--s)); line-height: 1; padding: 0 calc(16px * var(--s)); border-inline: 2px solid var(--gold); }
.event-details { margin-bottom: calc(24px * var(--s)); }
.event-details p { margin: 0; }
.venue { color: var(--gold); font-weight: 700; font-size: calc(16px * var(--s)); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(8px * var(--s)); }
.time-box { color: var(--navy); background: var(--gold); border-radius: calc(6.4px * var(--s)); padding: calc(4px * var(--s)); }
.time-box b { display: block; font-size: calc(22px * var(--s)); line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.map-wrap { aspect-ratio: 1; border-radius: 10px; background: #f0eee7; margin-bottom: calc(20px * var(--s)); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-link { margin-inline: auto; }
.map-details { text-align: center; }
.timeline { text-align: left; padding-left: calc(16px * var(--s)); }
.timeline-item { position: relative; border-left: 2px solid var(--gold); padding: 0 0 calc(16px * var(--s)) calc(16px * var(--s)); }
.timeline-item:last-child { padding-bottom: 0; border-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: calc(-8px * var(--s) - 1px); top: 4px; width: calc(16px * var(--s)); height: calc(16px * var(--s)); border-radius: 50%; background: var(--gold); }
.timeline-item h3 { font-size: calc(14.4px * var(--s)); font-weight: 700; line-height: 1.5; margin: 0 0 calc(8px * var(--s)); }
.timeline-item p { margin: 0; font-size: calc(13.5px * var(--s)); }
.gift-intro { margin-bottom: calc(24px * var(--s)); }
.bank-accounts { border: 1px solid var(--gold); border-radius: 4px; padding: calc(24px * var(--s)); margin: 0 0 calc(24px * var(--s)); }
.account { display: flex; align-items: center; gap: calc(8px * var(--s)); text-align: left; }
.account + .account { margin-top: calc(16px * var(--s)); }
.bank-logo { width: calc(80px * var(--s)); height: calc(50px * var(--s)); flex: none; border-radius: 4px; background: #fff; color: #064676; display: grid; place-items: center; font: 700 23px Georgia, serif; overflow: hidden; }
.bank-logo img { width: calc(80px * var(--s)); height: calc(50px * var(--s)); display: block; object-fit: contain; padding: 2px; }
.account-info { min-width: 0; overflow-wrap: anywhere; }
.account-number { margin: 0; font-weight: 700; font-size: calc(18px * var(--s)); line-height: 1.2; }
.copy-btn { min-height: 44px; }
.account-holder { margin: 0; font-size: calc(14.4px * var(--s)); }
.postal-card { border: 1px solid var(--gold); border-radius: 4px; padding: calc(24px * var(--s)); }
.postal-card p { margin-bottom: 0; }
.postal-title { color: var(--gold); font: 400 calc(21.6px * var(--s))/1.2 var(--font-title); margin: 0 0 calc(8px * var(--s)); }
.thanks-name { margin-top: calc(8px * var(--s)); }
.bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; height: var(--menu-height); background: var(--menu); z-index: 12; overflow-x: auto; scrollbar-width: none; transition: bottom .2s ease-in-out; }
.bottom-nav::-webkit-scrollbar { display: none; }
.nav-list { display: flex; height: 100%; width: max-content; transform: translateX(calc(-82.8px * var(--s) * var(--menu-offset, 0))); transition: transform .5s ease-in-out; }
.nav-link { position: relative; isolation: isolate; color: var(--gold); flex: none; width: calc(82.8px * var(--s)); min-width: 44px; height: 100%; display: flex; flex-direction: column; gap: 3px; justify-content: center; align-items: center; text-decoration: none; font: 12px/1.5 Arial, sans-serif; transition: color .1s ease-in-out; }
.nav-link::after { content: ""; position: absolute; z-index: -1; width: 0; height: 0; border-radius: calc(12.8px * var(--s)); background: var(--gold); transition: width .1s ease-in-out, height .1s ease-in-out; }
.nav-link svg { width: calc(25.6px * var(--s)); height: calc(25.6px * var(--s)); }
.nav-link.active { color: var(--navy); }
.nav-link.active::after { width: calc(100% - 8px * var(--s)); height: calc(100% - 8px * var(--s)); }
.nav-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-link:active { transform: scale(.95); }
.locked .bottom-nav { bottom: calc(-100px * var(--s)); }
.floating-actions { position: absolute; z-index: 15; bottom: calc(30px * var(--s)); right: calc(16px * var(--s)); display: flex; flex-direction: column; gap: 8px; }
.invitation-open .floating-actions { bottom: calc(120px * var(--s)); }
.round-btn { width: 44px; height: 44px; padding: 3px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--navy); }
.round-btn > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); opacity: .8; }
.round-btn svg { width: 24px; height: 24px; }
.round-btn:hover > span { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.round-btn:active { transform: scale(.94); }
.app-shell .btn, .app-shell .round-btn { position: relative; }
.app-shell .btn::before, .app-shell .round-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, var(--canvas-hit-size, 44px)); height: max(100%, var(--canvas-hit-size, 44px)); transform: translate(-50%, -50%); }
.rsvp-dialog { position: fixed; inset: 8px; width: min(500px, calc(100% - 16px)); height: calc(100dvh - 16px); max-height: none; margin: auto; padding: 0; background: #fff; border: 0; border-radius: 5px; color: #1e2735; font: 14px/1.5 Arial, sans-serif; overflow: auto; }
.rsvp-dialog::backdrop { background: rgb(0 0 0 / .55); }
.rsvp-dialog-content { padding: 24px 24px 90px; }
.rsvp-dialog h2 { font-size: 19px; margin: 0 0 6px; }
.local-note { color: #526074; font-size: 12px; margin-bottom: 24px; }
.form-grid { display: grid; gap: 16px; }
.form-grid label { display: grid; gap: 6px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 44px; border: 1px solid #a5adba; background: #fff; color: #1e2735; border-radius: 9px; padding: 8px 12px; font-size: 16px; caret-color: var(--navy); }
.form-grid textarea { resize: vertical; min-height: 110px; }
.form-grid .btn { width: 100%; font: 16px/1.5 Arial, sans-serif; }
.dialog-close { position: fixed; bottom: 20px; left: calc(50% - 24px); border: 0; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: #a73232; font: 32px/1 Arial, sans-serif; }
.dialog-close:hover { background: #802222; }
.dialog-close:active { transform: scale(.94); }
.wishes { display: grid; gap: 12px; margin-top: 24px; }
.wish { border: 1px solid #dce0e5; border-radius: 8px; padding: 12px; overflow-wrap: anywhere; }
.wish p { margin: 6px 0; }
.wish small, .tiny { color: #526074; font-size: 12px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 90px; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; color: var(--navy); background: var(--gold); border-radius: 8px; font: 14px/1.5 Arial, sans-serif; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript-message { position: fixed; bottom: 15px; background: #fff; color: #172e47; padding: 20px; z-index: 50; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
