/* Whole Class - the guest-facing invitation (also used for previews). Themed with --t-* custom properties. */
.inv-page *, .inv-page *::before, .inv-page *::after { box-sizing: border-box }
svg.i { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; flex: none }
.inv-mine .tick svg.i { width: 20px; height: 20px }
.inv-done .big svg.i { width: 40px; height: 40px }
.inv-page { margin: 0; min-height: 100vh; background-color: var(--t-bg); background-image: radial-gradient(var(--t-tint) 2.6px, transparent 3.1px); background-size: 30px 30px; color: var(--ink, #23194A); font: 400 17px/1.55 var(--font, "Nunito", system-ui, sans-serif) }
.inv { --t-soft: var(--t-bg); --ink: #23194A; max-width: 540px; margin: 0 auto; padding: 18px 14px 130px; position: relative }
.inv * { box-sizing: border-box }
.dark .inv, .inv.dark { --t-soft: #EFEAFF }
.inv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; font-weight: 800; font-size: 14.5px }
.inv-top a { color: var(--ink) }
.inv-top.demo { background: var(--t-accent) }
.inv-intro { margin: 4px 4px 20px }
.inv-intro h1 { font: 700 clamp(30px, 8vw, 40px)/1.02 var(--font-d, "Fredoka", sans-serif); letter-spacing: -.02em; margin: 0 0 8px }
.inv-intro p { margin: 0; font-weight: 700; font-size: 15.5px; line-height: 1.5; color: #4A4270 }
.inv-intro strong { color: var(--ink) }
.dark .inv-intro h1, .dark .inv-intro strong { color: #fff }
.dark .inv-intro p { color: #DCD6F5 }
.inv-card { background: #fff; border: 3px solid var(--ink); border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 5px #fff, 0 14px 28px 4px rgba(35, 25, 74, .22); position: relative }
.dark .inv-card { box-shadow: 0 16px 34px 2px rgba(0, 0, 0, .38); border-color: #fff }
.dark .inv-form, .dark .inv-done { border-color: #fff }
.inv-scene { aspect-ratio: 4/3; border-bottom: 3px solid var(--ink); overflow: hidden; background: var(--t-bg) }
.inv-scene svg { width: 100%; height: 100%; display: block }
.inv-body { padding: 22px 22px 26px }
.inv-kicker { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--t-accent); border: 2px solid var(--ink); font: 600 14.5px/1.2 var(--font-d, "Fredoka", sans-serif); margin: 0 0 14px; transform: rotate(-2deg) }
.inv-title { margin: 0 0 10px; font-family: var(--font-d, "Fredoka", sans-serif); line-height: .95; letter-spacing: -.02em }
.inv-title .nm { display: block; font-weight: 700; font-size: clamp(48px, 14vw, 72px); word-break: break-word; hyphens: auto }
.inv-title .ln { display: block; font-weight: 600; font-size: clamp(26px, 7vw, 34px); margin-top: 6px; letter-spacing: -.01em }
.inv-title .ln b { display: inline-grid; place-items: center; min-width: 1.3em; height: 1.3em; padding: 0 .15em; border-radius: 50%; background: var(--t-accent); border: 2.5px solid var(--ink); font-weight: 700; transform: rotate(-6deg); margin-left: .05em }
.inv-sub { font-weight: 700; color: #5B5480; margin: 0 0 20px; font-size: 16px }
.inv-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px }
.inv-facts li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; font-weight: 700; font-size: 16px; line-height: 1.35 }
.inv-facts .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--t-soft); border: 2px solid var(--ink) }
.inv-facts .ic svg { width: 22px; height: 22px }
.inv-facts small { display: block; font-weight: 600; color: #625C80; font-size: 14.5px }
.inv-facts a { color: var(--ink); font-weight: 800; font-size: 14.5px }
.inv-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px }
.inv-msg { position: relative; margin: 6px 0 22px; padding: 16px 18px; background: var(--t-soft); border-radius: 20px 20px 20px 6px; font-weight: 600; white-space: pre-wrap }
.inv-msg cite { display: block; font-style: normal; font-weight: 800; margin-top: 8px; color: #4A4270 }
.inv-count { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-weight: 800 }
.inv-count .faces { display: flex }
.inv-count .faces i { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #fff; margin-left: -9px; box-shadow: 0 0 0 1.5px var(--ink) }
.inv-count .faces i:first-child { margin-left: 0 }
.inv-cta { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; padding: 17px 20px; border-radius: 999px; border: 3px solid var(--ink); background: var(--t-accent); color: var(--ink); font: 600 20px/1.1 var(--font-d, "Fredoka", sans-serif); text-decoration: none; box-shadow: 0 0 0 4px #fff, 0 5px 12px 4px rgba(35, 25, 74, .25); cursor: pointer; transition: transform .22s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s }
.inv-cta:hover { transform: rotate(-1.5deg) translateY(-1px); box-shadow: 0 0 0 4px #fff, 0 10px 20px 4px rgba(35, 25, 74, .28) }
.inv-cta:active { transform: scale(.98); box-shadow: 0 0 0 4px #fff, 0 2px 6px 4px rgba(35, 25, 74, .22) }
.inv-cta small { font: 800 13px var(--font, "Nunito", sans-serif); opacity: .75 }
.inv-host { margin: 16px 0 0; text-align: center; font-weight: 700; font-size: 14.5px; color: #4A4270 }
.inv-host a { color: var(--ink) }
.inv-state { padding: 14px 16px; border-radius: 18px; background: var(--t-soft); border: 2px dashed var(--ink); font-weight: 800; text-align: center; margin: 0 0 6px }
.inv-mine { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #E0F6E5; border: 2px solid var(--ink); margin: 0 0 12px; font-weight: 800 }
.inv-mine .tick { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #4CCB6B; border: 2px solid var(--ink); display: grid; place-items: center }
.inv-mine a { margin-left: auto; color: var(--ink); font-size: 14.5px; white-space: nowrap }
/* RSVP form */
.inv-form { margin-top: 18px; background: #fff; border: 3px solid var(--ink); border-radius: 30px; padding: 24px 20px 26px; box-shadow: 0 0 0 5px #fff, 0 14px 28px 4px rgba(35, 25, 74, .22); scroll-margin-top: 16px }
.dark .inv-form { box-shadow: 0 16px 34px 2px rgba(0, 0, 0, .38) }
.inv-form h2 { font: 700 30px/1.05 var(--font-d, "Fredoka", sans-serif); margin: 0 0 4px; letter-spacing: -.01em }
.inv-form > p { margin: 0 0 20px; color: #625C80; font-weight: 700; font-size: 15px }
.js .inv-form.collapsed { display: none }
.q { margin: 0 0 20px; border: 0; padding: 0; min-width: 0 }
.q > legend, .q > .ql { display: block; font: 600 18px/1.25 var(--font-d, "Fredoka", sans-serif); margin: 0 0 10px; padding: 0 }
.q > .ql small, .q > legend small { font: 700 14px var(--font, "Nunito", sans-serif); color: #625C80 }
.q input[type=text], .q input[type=email], .q input[type=tel], .q textarea { width: 100%; padding: 13px 15px; border-radius: 14px; border: 2px solid rgba(35, 25, 74, .22); font: 700 16.5px var(--font, "Nunito", sans-serif); background: #fff; color: var(--ink); -webkit-appearance: none; min-height: 52px }
.q textarea { min-height: 84px; resize: vertical }
.q input:focus, .q textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-accent) 55%, transparent) }
.q .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
@media (max-width: 420px) { .q .two { grid-template-columns: 1fr } }
.q .lbl { display: block; font-weight: 800; font-size: 14px; margin: 0 0 6px }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.answers label, .opts label { position: relative; cursor: pointer }
.answers input, .opts input, .tagset input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0 }
.answers span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 18px; border: 2.5px solid rgba(35, 25, 74, .22); background: #fff; font: 600 16px/1.1 var(--font-d, "Fredoka", sans-serif); text-align: center; transition: .15s }
.answers span i { font-style: normal; font-size: 26px; line-height: 1 }
.answers input:checked + span { border-color: var(--ink); background: var(--t-accent); box-shadow: 0 0 0 3px #fff, 0 4px 10px 3px rgba(35, 25, 74, .22); transform: rotate(-2deg) }
.answers input:focus-visible + span, .opts input:focus-visible + span, .tagset input:focus-visible + span { outline: 3px dashed var(--ink); outline-offset: 4px }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.opts span { display: block; padding: 12px 12px; border-radius: 16px; border: 2.5px solid rgba(35, 25, 74, .22); background: #fff; font-weight: 800; text-align: center; font-size: 15.5px; line-height: 1.25 }
.opts span small { display: block; font-weight: 600; font-size: 12.5px; color: #625C80 }
.opts input:checked + span { border-color: var(--ink); background: var(--t-soft) }
.stepper { display: inline-flex; align-items: center; border: 2px solid rgba(35, 25, 74, .22); border-radius: 999px; background: #fff; overflow: hidden }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font: 700 24px/1 var(--font-d, "Fredoka", sans-serif); cursor: pointer; color: var(--ink) }
.stepper button:hover { background: var(--t-soft) }
.stepper input { width: 52px; text-align: center; border: 0 !important; font: 700 20px var(--font-d, "Fredoka", sans-serif) !important; padding: 0 !important; min-height: 46px !important; box-shadow: none !important; -moz-appearance: textfield }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.sib { display: flex; gap: 12px; align-items: center; flex-wrap: wrap }
.sib input[type=text] { flex: 1 1 160px }
.tagset { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px }
.tagset label { position: relative; cursor: pointer }
.tagset span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 2px solid rgba(35, 25, 74, .22); background: #fff; font-weight: 800; font-size: 14.5px }
.tagset input:checked + span { background: #FFE4F0; border-color: var(--ink) }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 14px; color: #4A4270; background: #FFF6DA; border-radius: 14px; padding: 12px 14px; margin-top: 10px }
.consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: #23194A }
.inv-err { display: block; color: #B4233F; font-weight: 800; font-size: 14px; margin-top: 6px }
.inv-form .privacy { font-size: 13.5px; color: #625C80; font-weight: 700; margin: 14px 0 0; text-align: center }
.inv-form .privacy a { color: #23194A }
[hidden] { display: none !important }
/* done */
.inv-done { text-align: center; padding: 26px 22px 28px; margin-top: 18px; background: #fff; border: 3px solid var(--ink); border-radius: 30px; box-shadow: 0 0 0 5px #fff, 0 14px 28px 4px rgba(35, 25, 74, .22); scroll-margin-top: 16px }
.dark .inv-done { box-shadow: 0 16px 34px 2px rgba(0, 0, 0, .38) }
.inv-done .big { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; background: #4CCB6B; border: 3px solid var(--ink); display: grid; place-items: center; animation: popin .6s cubic-bezier(.3, 1.6, .5, 1) both }
.inv-done h2 { font: 700 30px/1.05 var(--font-d, "Fredoka", sans-serif); margin: 0 0 8px }
.inv-done p { margin: 0 0 16px; font-weight: 700; color: #4A4270 }
.inv-done .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap }
.inv-done p.own { margin: 18px 0 0; font-size: 13.5px; font-weight: 700 }
.inv-done p.own a { color: #4A4270 }
.inv-done .row a { font-weight: 800; color: var(--ink) }
@keyframes popin { from { transform: scale(0) rotate(-30deg) } }
/* bottom bar + footer */
.inv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, color-mix(in srgb, var(--t-bg) 92%, transparent) 30%); transition: transform .3s cubic-bezier(.2, .8, .2, 1) }
.inv-bar .inv-cta { max-width: 512px; margin: 0 auto }
.inv-bar.away { transform: translateY(130%) }
.inv-foot { text-align: center; margin-top: 30px; font-weight: 700; font-size: 14px }
.inv-foot .made { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 4px 10px 3px rgba(35, 25, 74, .2); transition: transform .2s }
.inv-foot .made:hover { transform: rotate(-2deg) }
.inv-foot .made img { width: 34px; height: 34px }
.inv-foot .made span { text-align: left; line-height: 1.2 }
.inv-foot .made small { display: block; font-weight: 700; color: #625C80; font-size: 12.5px }
.inv-foot .small { margin-top: 16px; color: #4A4270 }
.dark .inv-foot .small, .dark .inv-foot .small a { color: #DCD6F5 }
.inv-foot .small a { color: #23194A; margin: 0 6px }
.inv-unavail { min-height: 100vh; display: grid; place-items: center; padding: 20px }
.inv-unavail .box { max-width: 440px; background: #fff; border: 3px solid #23194A; border-radius: 30px; padding: 30px 24px; text-align: center; box-shadow: 0 0 0 5px #fff, 0 14px 28px 4px rgba(35, 25, 74, .22) }
.inv-unavail h1 { font: 700 30px/1.1 var(--font-d, "Fredoka", sans-serif); margin: 10px 0 }
.scene.paused * { animation-play-state: paused !important }
#inv-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50 }
.preview .inv-cta, .preview a { pointer-events: none }
@media (min-width: 700px) { .inv { padding-top: 34px } .inv-body { padding: 26px 30px 30px } .inv-form { padding: 30px 30px 32px } }
@media (prefers-reduced-motion: reduce) { .inv *, .inv-done .big { animation: none !important; transition: none !important } }
