[hidden]{display:none!important}.guest-status{text-align:center;font-size:14px;line-height:1.6;opacity:.8;margin:4px 24px 24px}body:not([data-ready]) .greeting h1,body:not([data-ready]) .recipient span{visibility:hidden}.guest-rsvp{padding:26px;margin-top:24px;border:1px solid #d5d1b450;border-radius:4px;text-align:center;background:#292b22}.guest-rsvp h2{font:30px Instrument,serif;margin:0 0 20px}.guest-rsvp label{display:block;font-size:14px;margin-bottom:10px}.guest-rsvp select{appearance:none;background:#36392c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23d5d1b4' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center/16px no-repeat;color:#e5e1c5;border:1px solid #d5d1b470;border-radius:3px;padding:13px 40px 13px 16px;font:16px SpecialElite,monospace;min-width:180px}.rsvp-actions{display:flex;gap:15px;justify-content:center;margin-top:22px;flex-wrap:wrap}.rsvp-actions button{padding:13px 20px;border:1px solid #d5d1b470;background:#d5d1b4;color:#161517;border-radius:3px;font-size:14px}.rsvp-actions button:last-child{color:#d5d1b4;background:transparent}.guest-rsvp p{font-size:14px;line-height:1.6}button:disabled{opacity:.5;cursor:default}#add-apple-wallet{background:#d5d1b4;color:#161517;margin-bottom:12px}.wallet-pass{background:#171717;color:#f3efe7;background-image:none}.wallet-pass>img:first-child{filter:brightness(0) invert(.94);opacity:1}.wallet-pass strong{font-family:-apple-system,BlinkMacSystemFont,Arial,sans-serif}.wallet-pass .pass-architecture{filter:invert(1);mix-blend-mode:screen}.wallet-pass .pass-venue{border-color:#f3efe750}.wallet-status{font-size:14px}.reader-links{padding-bottom:15px}@media(max-width:600px){.guest-status{font-size:13px;margin-top:10px}footer{gap:18px}.guest-rsvp{padding:22px 16px}.rsvp-actions{flex-direction:column}.rsvp-actions button{width:100%}}

/* Reveal the prepared invitation once the artwork and guest are ready. */
.startup{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#292b22;text-align:center;padding:28px;font:16px/1.6 -apple-system,BlinkMacSystemFont,Arial,sans-serif}.startup>div{max-width:420px}.startup-brand{font-size:20px;letter-spacing:7px;margin:0 0 24px}.startup button{color:inherit;background:none;border:1px solid #d5d1b480;padding:12px 20px;border-radius:4px;margin-top:15px}body:not([data-assets-ready]) .scene{visibility:hidden}.preview-note{padding:24px;text-align:center;border:1px solid #d5d1b440;font:15px/1.6 -apple-system,BlinkMacSystemFont,Arial,sans-serif}.header-note{margin-left:auto}
/* Each modal scrolls at the screen edge; content keeps its centered width. */
:root:has(dialog[open]){overflow:hidden}
#reader,#wallet-dialog{width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:24px clamp(16px,4vw,48px) 40px;inset:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border-radius:0;background:transparent}
.reader-content{width:min(960px,100%);margin:0 auto}.wallet-dialog-content{width:min(420px,100%);margin:0 auto;padding:22px 28px 28px;background:#292b22;border-radius:18px}
.reader-content>.close{position:sticky;top:0;z-index:25;background:#292b22}
@media(max-width:600px){#reader,#wallet-dialog{padding:16px 16px 32px}.wallet-dialog-content{padding:20px}.preview-note{padding:20px 16px}}

/* Interaction polish: quick feedback, comfortable targets and consistent motion. */
:root{--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);scrollbar-gutter:stable}
.text-button,.wallet-button,.calendar,.rsvp-actions button,.startup button,.close{min-height:44px;touch-action:manipulation;transition:transform 140ms var(--ease-out),background-color 160ms ease,border-color 160ms ease,opacity 160ms ease}
.text-button:active:not(:disabled):not(:focus-visible),.wallet-button:active:not(:disabled):not(:focus-visible),.calendar:active:not(:disabled):not(:focus-visible),.rsvp-actions button:active:not(:disabled):not(:focus-visible),.startup button:active:not(:disabled):not(:focus-visible),.close:active:not(:focus-visible){transform:scale(.97)}
.close{width:44px;height:44px;flex-shrink:0}.reader-links a{min-height:44px;display:inline-flex;align-items:center;padding:6px 0;touch-action:manipulation}
.flap{transition:none}.seal{transition:transform 260ms var(--ease-out),opacity 260ms ease}
.scene[data-state=closing-flap] .open-hit{display:none}
.scene[data-seal-broken=true] .seal{opacity:0;pointer-events:none}
.scene[data-instant] .flap,.scene[data-instant] .seal{transition:none}
#reader,#wallet-dialog{scrollbar-gutter:stable;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:calc(40px + env(safe-area-inset-bottom))}
footer{padding-bottom:max(32px,env(safe-area-inset-bottom))}
@media(max-width:600px){header{padding-top:max(27px,env(safe-area-inset-top))}footer{padding-bottom:max(26px,env(safe-area-inset-bottom))}#reader,#wallet-dialog{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:calc(32px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.text-button:active,.wallet-button:active,.calendar:active,.rsvp-actions button:active,.startup button:active,.close:active{transform:none!important}.text-button,.wallet-button,.calendar,.rsvp-actions button,.startup button,.close{transition:background-color 100ms ease,border-color 100ms ease,opacity 100ms ease}.flap,.seal{transition:none}}

@media(max-width:600px){.recipient{right:3%}.recipient span{font-size:clamp(15px,4.8vw,24px);line-height:1.4;white-space:nowrap}}
