.cr-app { font-family: var(--cr-font-body, 'Jost'), system-ui, sans-serif; color: var(--cr-ink, #0b0b0b); }
.cr-app-stack { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.cr-app-h { margin: 0; font-family: var(--cr-font-display, 'Cormorant Garamond'), Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.1; outline: none; }
.cr-app-p { margin: 0; font-size: 17px; line-height: 1.5; }
.cr-app-small { margin: 0; font-size: 14px; line-height: 1.4; color: #55524b; }
.cr-app-eyebrow { margin: 0; font-size: 15px; color: #55524b; }
.cr-app-field { display: flex; flex-direction: column; gap: 6px; }
.cr-app-label { font-size: 15px; font-weight: 500; }
.cr-app-input { box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 14px; font: inherit; font-size: 16px; border: 1.5px solid #8a857a; border-radius: 10px; background: #ffffff; color: #0b0b0b; }
.cr-app-input::placeholder { color: #6f6b62; }
.cr-app-input:focus-visible, .cr-app-btn:focus-visible, .cr-app-check input:focus-visible { outline: 3px solid var(--cr-gold, #c2a878); outline-offset: 2px; }
.cr-app-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 16px; border: 1.5px solid #0b0b0b; border-radius: 12px; font: inherit; font-size: 18px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.12s ease, opacity 0.12s ease; }
.cr-app-btn:active { transform: scale(0.98); }
.cr-app-btn--primary { background: #0b0b0b; color: #ffffff; }
.cr-app-btn--ghost { background: #ffffff; color: #0b0b0b; }
.cr-app-btn--link { min-height: 48px; border: 0; background: transparent; color: #0b0b0b; font-size: 16px; font-weight: 500; text-decoration: underline; }
.cr-app-btn[disabled] { opacity: 0.6; cursor: wait; }
.cr-app-error { margin: 0; font-size: 15px; line-height: 1.4; color: #a31d1d; font-weight: 500; }
.cr-app-status { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 500; }
.cr-app-error:empty, .cr-app-status:empty { display: none; }
.cr-app-check { display: flex; gap: 12px; align-items: flex-start; }
.cr-app-check input { width: 28px; height: 28px; margin: 0; flex: none; accent-color: #0b0b0b; }
.cr-app-check label { font-size: 15px; line-height: 1.45; }
.cr-app-notice { margin: 0; padding: 14px 16px; border-radius: 10px; background: #efe9da; font-size: 15px; line-height: 1.45; }
.cr-app-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr-app-pass { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; background: #0b0b0b; color: #f4f1ea; border: 2px solid var(--cr-gold, #c2a878); border-radius: 14px; }
.cr-app-pass-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cr-gold, #c2a878); }
.cr-app-pass-couple { font-family: var(--cr-font-display, 'Cormorant Garamond'), Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.1; }
.cr-app-pass-couple--lg { font-size: 34px; }
.cr-app-pass-name { font-size: 20px; font-weight: 500; }
.cr-app-qr { width: 100%; max-width: 240px; border-radius: 8px; background: #ffffff; line-height: 0; overflow: hidden; }
.cr-app-qr svg { display: block; width: 100%; height: auto; }
.cr-app-pass-meta { font-size: 15px; line-height: 1.45; }
.cr-app-pass-code { font-size: 14px; letter-spacing: 0.08em; color: #b9b4a8; font-variant-numeric: tabular-nums; }
.cr-app-pass-admit { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cr-gold, #c2a878); }
.cr-app-divider { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid #d9d4c7; }
.cr-app-h3 { margin: 0; font-family: var(--cr-font-display, 'Cormorant Garamond'), Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.1; }
.cr-app-share { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; background: #0b0b0b; color: #f4f1ea; border-radius: 14px; }
.cr-app-share-note { margin-top: 6px; font-size: 13px; color: #b9b4a8; }
.cr-app-share-link { font-size: 15px; font-weight: 600; color: var(--cr-gold, #c2a878); word-break: break-all; }

.cr-gate { box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; max-width: 520px; min-height: 100vh; margin: 0 auto; padding: 16px; background: #0b0b0b; color: #f4f1ea; font-family: var(--cr-font-body, 'Jost'), system-ui, sans-serif; }
.cr-gate-h { margin: 0; font-family: var(--cr-font-display, 'Cormorant Garamond'), Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.1; color: #f4f1ea; }
.cr-gate-stats { margin: 0; font-size: 17px; color: var(--cr-gold, #c2a878); }
.cr-gate-hint { margin: 0; font-size: 15px; color: #b9b4a8; }
.cr-gate-cam { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: #1a1a1a; }
.cr-gate-cam video { width: 100%; height: 100%; object-fit: cover; }
.cr-gate-frame { position: absolute; inset: 15%; border: 3px solid var(--cr-gold, #c2a878); border-radius: 16px; pointer-events: none; }
.cr-gate .cr-app-label { color: #f4f1ea; }
.cr-gate .cr-app-input { border-color: #6f6b62; background: #1a1a1a; color: #f4f1ea; }
.cr-gate .cr-app-btn--primary { border-color: var(--cr-gold, #c2a878); background: var(--cr-gold, #c2a878); color: #0b0b0b; }
.cr-gate .cr-app-btn--ghost { border-color: var(--cr-gold, #c2a878); background: transparent; color: #f4f1ea; }
.cr-gate-result { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; font-size: 20px; line-height: 1.4; color: #ffffff; }
.cr-gate-result[hidden] { display: none; }
.cr-gate-result--ok { background: #1f7a3d; }
.cr-gate-result--duplicate { background: #b45309; }
.cr-gate-result--invalid { background: #a31d1d; }
.cr-gate-result-big { font-size: 40px; font-weight: 600; line-height: 1.1; }
.cr-gate-result-name { font-size: 34px; font-weight: 600; line-height: 1.1; }
.cr-gate-list { display: flex; flex-direction: column; gap: 10px; }
.cr-gate-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1.5px solid #3a362e; border-radius: 12px; }
.cr-gate-item-name { font-size: 18px; font-weight: 600; }
.cr-gate-item-meta { font-size: 14px; color: #b9b4a8; }
.cr-gate-msg { padding: 16px; font-size: 17px; }

.cr-app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-app-row .cr-app-btn { font-size: 16px; }

.cr-page .cr-hero { position: relative; min-height: 78svh; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center 22%; background-repeat: no-repeat; }
.cr-page .cr-hero .cr-title, .cr-page .cr-hero .cr-eyebrow, .cr-page .cr-hero .cr-date { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .cr-page .cr-hero { animation: cr-hero-in 1.4s ease-out both; }
  @keyframes cr-hero-in { from { background-position: center 30%; opacity: 0.2; } to { background-position: center 22%; opacity: 1; } }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
}

.cr-gal { padding: 28px 0 28px; color: var(--cr-paper, #f4f1ea); }
.cr-gal-h { margin: 0 0 14px; padding: 0 20px; font-family: var(--cr-font-display, 'Cormorant Garamond'), Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.1; color: #f4f1ea; }
.cr-gal-track { display: flex; gap: 12px; padding: 0 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cr-gal-track::-webkit-scrollbar { display: none; }
.cr-gal-item { flex: 0 0 72%; max-width: 320px; padding: 0; border: 1px solid #3a362e; border-radius: 14px; overflow: hidden; background: #1a1a1a; cursor: zoom-in; scroll-snap-align: center; }
.cr-gal-item:focus-visible { outline: 3px solid var(--cr-gold, #c2a878); outline-offset: 2px; }
.cr-gal-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.cr-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.94); }
.cr-lb[hidden] { display: none; }
.cr-lb-img { max-width: 100vw; max-height: 100svh; object-fit: contain; }
.cr-lb-btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(244, 241, 234, 0.14); color: #f4f1ea; font-size: 32px; line-height: 1; cursor: pointer; }
.cr-lb-btn:focus-visible { outline: 3px solid var(--cr-gold, #c2a878); }
.cr-lb-close { top: 14px; right: 14px; }
.cr-lb-prev { left: 8px; top: 50%; }
.cr-lb-next { right: 8px; top: 50%; }

.cr-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px 40px; text-align: center; color: #b9b4a8; font-family: var(--cr-font-body, 'Jost'), system-ui, sans-serif; }
.cr-brand-link { display: inline-block; padding: 6px; border-radius: 8px; }
.cr-brand-link:focus-visible, .cr-brand-line a:focus-visible { outline: 3px solid var(--cr-gold, #c2a878); outline-offset: 2px; }
.cr-brand-logo { display: block; width: 220px; height: auto; }
.cr-brand-line, .cr-brand-copy { margin: 0; font-size: 14px; line-height: 1.5; }
.cr-brand-line a { color: #f4f1ea; text-decoration: underline; }

.cr-app-pass { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .cr-app-pass--reveal { animation: cr-pass-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .cr-app-pass--reveal::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(194, 168, 120, 0.45) 50%, transparent 65%); transform: translateX(-120%); animation: cr-pass-shine 1.6s 0.5s ease-out forwards; }
  @keyframes cr-pass-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
  @keyframes cr-pass-shine { to { transform: translateX(120%); } }
}

.cr-petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; }
.cr-full { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: #ffffff; color: #0b0b0b; overflow-y: auto; }
.cr-full-in { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 420px; text-align: center; }
.cr-full-name { font-family: var(--cr-font-display, 'Cormorant Garamond'), Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.15; }
.cr-full-qr { width: min(88vw, 58vh, 380px); aspect-ratio: 1; line-height: 0; }
.cr-full-qr svg { display: block; width: 100%; height: 100%; }
.cr-full-code { font-size: 15px; letter-spacing: 0.08em; color: #3a3a3a; font-variant-numeric: tabular-nums; }
.cr-full-note { font-size: 14px; color: #555555; }
.cr-full-close { min-height: 48px; padding: 0 28px; border: 2px solid #0b0b0b; border-radius: 999px; background: transparent; color: #0b0b0b; font: inherit; font-weight: 600; cursor: pointer; }
.cr-full-close:focus-visible { outline: 3px solid #c2a878; outline-offset: 3px; }
body.cr-full-open { overflow: hidden; }
html.cr-js .cr-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
html.cr-js .cr-rv.cr-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.cr-js .cr-rv { opacity: 1; transform: none; transition: none; } .cr-petals { display: none; } }

.cr-app-share { position: relative; overflow: hidden; gap: 8px; padding: 0 20px 24px; box-shadow: inset 0 0 0 1px rgba(194, 168, 120, 0.6); }
.cr-app-share-photo { align-self: stretch; height: 230px; margin: 0 -20px 4px; background-size: cover; background-position: 50% 28%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.cr-app-share .cr-app-pass-eyebrow { letter-spacing: 0.22em; }
.cr-app-share .cr-app-share-link { padding: 8px 18px; border: 1px solid rgba(194, 168, 120, 0.7); border-radius: 12px; background: rgba(194, 168, 120, 0.12); }

.cr-app-share-qr { width: 112px; margin-top: 6px; border-radius: 10px; overflow: hidden; line-height: 0; }
.cr-app-share-qr svg { display: block; width: 100%; height: auto; }
.cr-app-share-by { margin-top: 6px; font-size: 13px; letter-spacing: 0.08em; color: #b9b4a8; }
