.journey .gift-study { min-height: 440px; }
.journey #inspection { max-width: 600px; margin: 20px auto; }
.journey .actions { justify-content: center; }
.journey .gift-contact { max-width: 470px; margin: 16px auto; }
.journey #email-form { text-align: left; }
.journey #registered-title { font-size: 22px; }
.journey #status,.journey #operation-status { max-width: 550px; margin: 14px auto; font-size: 13px; }
.journey .gift-reference { max-width: 550px; margin: 20px auto; }
.journey #gift-stage[hidden] { display: none; }
.journey #whole { display: block; margin-inline: auto; }
.journey #pieces button[aria-pressed=true] { background: var(--ceremony-accent); color: var(--ceremony-button-ink); }
.journey .gift-actions #skip { background: transparent; color: var(--ceremony-muted); border: 0; clip-path: none; }
.journey #context-change { text-align: left; }
.journey .fallback-gift { width: min(75%,300px); }
.journey .confirmed-gift .fallback-gift img { width: 100%; height: 100%; object-fit: contain; }
.journey footer { text-align: center; font-size: 11px; }

/* Cover the first paint until graphics or the static presentation is settled. */
#ceremony-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgb(0 12 29 / .72); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.loading-glass { padding: 32px 40px; border: 1px solid rgb(234 191 118 / .2); border-radius: 24px; background: rgb(255 255 255 / .04); box-shadow: 0 20px 80px rgb(0 0 0 / .2); text-align: center; }
.loading-glass p { margin: 12px 0 0; font-size: 14px; }
.loading-mark { color: var(--ceremony-accent, #eabf76); font-size: 32px; }
.journey #inspection { margin: 24px auto; }
.journey #visual { position: relative; }
.journey .carousel-frame { position: relative; }
.journey #carousel-navigation { display: none; }
@media (min-width: 1024px) and (orientation: landscape) {
 .journey #carousel-navigation:not([hidden]) { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; pointer-events: none; }
 .journey #carousel-navigation button { display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 1px solid var(--ceremony-accent); border-radius: 50%; clip-path: none; background: var(--ceremony-surface); color: var(--ceremony-accent); backdrop-filter: blur(12px); pointer-events: auto; transform: none; }
 .journey #carousel-navigation button:hover:not(:disabled) { background: var(--ceremony-accent); color: var(--ceremony-button-ink); }
 .journey #carousel-navigation button:focus-visible { outline: 3px solid var(--ceremony-accent-bright); outline-offset: 3px; }
 .journey #carousel-navigation button:disabled { opacity: .3; cursor: default; }
}
.journey #carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 24px; background: radial-gradient(ellipse, var(--ceremony-halo-outer), transparent 70%); }
.journey #carousel::-webkit-scrollbar { display: none; }
.journey #carousel[data-rotating=true] { overflow-x: hidden; touch-action: none; }
.journey .prize-slide { flex: 0 0 100%; min-width: 0; height: clamp(280px, 85vw, 350px); position: relative; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.journey .prize-slide > img { width: 100%; height: 100%; object-fit: contain; max-height: 350px; user-select: none; }
.journey #viewer { position: absolute; inset: 0; border: 0; border-radius: 0; touch-action: auto; }
.journey #viewer canvas { touch-action: auto; }
.journey #viewer.interactive, .journey #viewer.interactive canvas { touch-action: none; }
.journey #viewer-controls { position: absolute; top: 12px; right: 12px; }
.journey #interact { display: grid; place-items: center; margin: 0; padding: 10px; width: 48px; height: 48px; border-radius: 50%; background: var(--ceremony-surface); backdrop-filter: blur(12px); }
.journey #interact[aria-pressed=true] { background: var(--ceremony-accent); color: var(--ceremony-button-ink); border-color: var(--ceremony-accent); }
.journey #piece-status { font-family: var(--font-display); font-size: 14px; margin: 14px 0 8px; color: var(--ceremony-accent); }
.journey #slide-dots { display: flex; justify-content: center; gap: 8px; }
.journey #slide-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--ceremony-muted); opacity: .35; }
.journey #slide-dots .current { opacity: 1; background: var(--ceremony-accent); }
.journey #inspection-hint { font-size: 11px; color: var(--ceremony-muted); margin: 12px auto; max-width: 300px; min-height: 3.3em; }
.journey #carousel { cursor: grab; }
.journey #carousel.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.journey #carousel[data-rotating=true] { cursor: default; }

/* Blur the poster while preparing 3D, then dissolve its opaque background. */
.journey .prize-slide { overflow: hidden; }
.journey .prize-slide > img { position: relative; z-index: 1; pointer-events: none; }
.journey .piece-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; background: rgb(0 12 29 / .22); color: var(--ceremony-accent); font-size: 13px; pointer-events: none; opacity: 0; visibility: hidden; }
.journey .prize-slide[data-state=loading] > img,
.journey .prize-slide[data-state=ready] > img { filter: blur(12px); transform: scale(1.04); }
.journey .prize-slide[data-state=loading] .piece-loading { opacity: 1; visibility: visible; }
.journey .prize-slide[data-state=ready] > img { opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s 240ms; }
.journey .prize-slide[data-state=ready] .piece-loading { transition: opacity 240ms ease, visibility 0s 240ms; }
.journey .prize-slide[data-state=ready] #viewer { animation: piece-reveal 240ms ease both; }
@keyframes piece-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
 .journey .prize-slide > img, .journey .piece-loading { transition: none!important; }
 .journey .prize-slide #viewer { animation: none!important; }
}

/* Saving/correcting contact uses the outlined variant in the current theme. */
.journey #send-email,
.journey #send-email:is(:hover, :focus, :active) {
 background: var(--ceremony-background);
 color: var(--ceremony-accent);
 border: 1px solid var(--ceremony-accent);
 clip-path: none;
 transform: none;
}
.journey #send-email:focus-visible {
 outline: 3px solid var(--ceremony-accent-bright);
 outline-offset: 3px;
}

/* Confirmation keeps the received gift open, with an uncluttered static alternative. */
.journey:has(.confirmed-gift) main > h1 { margin-bottom: 12px; }
.journey:has(.confirmed-gift) main > p { max-width: 510px; margin: 0 auto 24px; color: var(--ceremony-muted); font-size: 14px; }
.journey .confirmed-gift { margin: 28px auto 20px; max-width: 650px; }
.journey .confirmed-gift h2 { font-size: clamp(22px,4vw,30px); margin: 8px 0 0; }
.journey .confirmed-gift .eyebrow { margin-bottom: 8px; }
.journey .confirmed-gift .gift-stage { height: 350px; }
.confirmation-poster { position: absolute; inset: 0; display: grid; place-items: center; }
.confirmation-poster img { width: min(90%,440px); max-height: 90%; object-fit: contain; }
.confirmation-canvas { position: absolute; inset: 0; }
.confirmation-loading { position: absolute; inset: 0; display: none; place-items: center; background: rgb(0 12 29 / .3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 13px; color: var(--ceremony-accent); }
#confirmation-stage[data-state=loading] .confirmation-loading { display: grid; }
.confirmation-registered { margin: 0; color: var(--ceremony-accent); font-family: var(--font-display); }
.confirmation-date { font-size: 12px; color: var(--ceremony-muted); margin: 8px 0; }
.journey .confirmation-action { margin: 24px auto; }
.journey .confirmation-action .confirmation-primary,
.journey .confirmation-action .confirmation-primary:hover:not(:disabled) { background: linear-gradient(130deg,var(--ceremony-button-start),var(--ceremony-button-end)); color: var(--ceremony-button-ink); border-color: transparent; }
.journey .confirmation-action .confirmation-primary:focus-visible { outline: 3px solid var(--ceremony-button-ink); outline-offset: -6px; }
@media(max-width:600px){.journey .confirmed-gift .gift-stage { height: 310px; }}

/* Keep the gift visible while leaving room for the current action on mobile. */
.journey main[data-state=registered] #gift-stage{height:230px}
.journey main[data-state=registered] .gift-intro h1{font-size:22px;margin-bottom:8px}
.journey main[data-state=registered] #reward-description,.journey main[data-state=registered] #gift-caption,.journey main[data-state=registered] #reveal-copy{display:none}
.journey #contact-explanation,.journey #email-support,.journey #email-requested p,.journey .review-note{font-size:14px;line-height:1.65;color:var(--ceremony-muted)}
.journey .gift-contact input{width:100%;box-sizing:border-box;font-size:16px;padding:14px}
.journey #send-email,.journey #send-email:is(:hover,:focus,:active){width:100%;background:linear-gradient(130deg,var(--ceremony-button-start),var(--ceremony-button-end));color:var(--ceremony-button-ink);border:0}
.journey #address-review{text-align:center}.journey #address-review button{display:block;margin:12px auto}
.journey #farewell{font-size:15px;color:var(--ceremony-accent);margin:24px auto}
.journey #status{font-size:15px;line-height:1.65}
.journey #email-why{font-size:13px;text-align:left}.journey .gift-reference p{line-height:1.7}
.journey main[data-state=registered] .fallback-box{display:none}
.journey main[data-state=registered] .fallback-gift{inset:0;width:100%;height:100%;transform:none;opacity:1}
.journey #exploration-actions{margin:20px auto}
@media(max-width:600px){
 .journey main[data-state=registered] #gift-stage{height:155px}
 .journey main[data-state=registered] .gift-intro #campaign{display:none}
 .journey main[data-state=registered] .gift-intro{padding-top:8px}
 .journey main[data-state=registered] .gift-intro h1{font-size:18px;margin:4px 0}
 .journey main[data-state=registered] #registered-title{font-size:20px}
 .journey main[data-state=registered] .gift-contact{margin-top:8px}
 .journey main[data-state=registered] #contact-explanation{margin:12px 0}
}
