/* Each invitation has its own artwork, silhouette and typographic details.
   Shared by the catalogue, theme picker, live preview and recipient page. */
.ys-theme-stage { position:relative; padding:24px 18px; min-height:302px; overflow:hidden; }
.ys-theme-paper,.ys-theme-picker-paper { position:relative; isolation:isolate; overflow:hidden; background:var(--theme-card); border:1px solid var(--theme-border); border-radius:var(--theme-radius); }
.ys-theme-paper { min-height:258px; padding:52px 18px 38px; box-shadow:0 12px 25px -18px var(--theme-heading); }
.ys-theme-paper::before,.ys-theme-picker-paper::before { content:''; position:absolute; inset:8px; border:1px solid var(--theme-border); border-radius:inherit; pointer-events:none; z-index:-1; }
.ys-theme-paper::after { content:'✦'; position:absolute; top:22px; left:50%; translate:-50% 0; font-size:14px; color:var(--theme-accent2); }
.ys-theme-ask-art { position:relative; z-index:1; display:block; width:min(100%,120px); height:90px; margin:0 auto 12px; flex:0 0 auto; object-fit:contain; border-radius:12px; }
.ys-theme-art { position:absolute; object-fit:contain; pointer-events:none; user-select:none; z-index:-1; }
.ys-theme-art--left { width:112px; height:168px; left:-35px; bottom:-35px; transform:rotate(-15deg); }
.ys-theme-art--right { width:100px; height:150px; right:-35px; top:-25px; transform:rotate(165deg); }
.ys-theme-question { max-width:10ch; font-size:27px; line-height:1.13; text-wrap:balance; }
.ys-theme-answer { position:relative; padding:8px 14px; font-size:12px; box-shadow:0 4px 12px -7px var(--theme-accent); }
.ys-theme-caption { padding:18px; }
.ys-theme-caption h3 { font-size:17px; letter-spacing:-.025em; }
.ys-theme-caption p { margin-top:7px; min-height:36px; }
.ys-theme-swatches > span { width:13px; height:13px; flex-basis:13px; }
.ys-theme-showcase[data-theme="retro-arcade"] .ys-theme-paper { border-width:2px; box-shadow:5px 5px 0 var(--theme-accent2); }
.ys-theme-showcase[data-theme="retro-arcade"] .ys-theme-question { font-size:22px; }
.ys-theme-showcase[data-theme="highland"] .ys-theme-paper::before,.ys-theme-showcase[data-theme="ivory-bronze"] .ys-theme-paper::before { inset:11px; border-color:var(--theme-accent2); }

/* Show the invitation itself while choosing a theme, with a clear selected state. */
.ys-theme-option { padding:16px!important; gap:0; overflow:hidden; }
.ys-theme-option[aria-pressed="true"] { outline-width:3px; }
.ys-theme-status { margin-bottom:15px; font-size:12px; min-height:24px; }
.ys-theme-check { margin-left:auto; }
.ys-theme-picker-paper { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; width:100%; min-height:225px; padding:36px 22px 28px; margin-bottom:20px; color:var(--theme-heading); box-shadow:0 10px 25px -20px var(--theme-heading); }
.ys-theme-mini-greeting { font:20px/1.1 'Caveat',cursive; color:var(--theme-accent); }
.ys-theme-mini-question { max-width:12ch; text-align:center; text-wrap:balance; font-family:var(--theme-font); font-size:26px; line-height:1.1; font-weight:var(--theme-weight); font-style:var(--theme-italic); letter-spacing:var(--theme-tracking); }
.ys-theme-mini-response { max-width:100%; padding:7px 13px; border-radius:99px; background:var(--theme-accent); color:var(--theme-on-accent); font-size:12px; line-height:1.4; font-weight:700; text-align:center; }
.ys-theme-option .ys-theme-swatches { margin-top:8px; }
.ys-theme-option[data-theme-id="retro-arcade"] .ys-theme-picker-paper { border-width:2px; box-shadow:4px 4px 0 var(--theme-accent2); }
.ys-theme-option[data-theme-id="retro-arcade"] .ys-theme-mini-question { font-size:22px; }

/* The theme's stationery continues into the phone and full invitation. */
.ys-preview-phone .ys-preview-letter { border-radius:var(--garden-card-radius,24px); box-shadow:0 12px 24px -24px var(--garden-heading); }
.ys-preview-phone > .ys-garden-floral { opacity:.88; }
.ys-preview-phone > .ys-preview-floral-extra { display:none; }
.ys-preview-phone[data-theme="retro-arcade"] .ys-preview-letter { box-shadow:3px 3px 0 var(--garden-accent2); }
.ys-preview-phone[data-theme="midnight"]::after { content:''; position:absolute; inset:0; z-index:0; pointer-events:none; background:radial-gradient(circle at 18% 43%,#fff8 0 1px,transparent 2px),radial-gradient(circle at 83% 64%,#fff8 0 1px,transparent 2px),radial-gradient(circle at 25% 83%,#fff8 0 1px,transparent 2px); }
.ys-recipient { --glam-foil:color-mix(in srgb,var(--dc-accent2) 70%,var(--dc-cardBorder)); }
.ys-recipient .ys-invitation,.ys-recipient .ys-invitation::before { border-radius:var(--garden-frame-radius,48% 48% 24px 24px); }
.ys-recipient .ys-invitation { background:var(--dc-card); }
.ys-recipient .ys-garden-titlecard::before,.ys-recipient .ys-garden-titlecard::after { border-radius:var(--garden-frame-radius,48%); }
.ys-recipient .ys-cover-copy h2,.ys-recipient .ys-garden-titlecard h1 { letter-spacing:var(--recipient-tracking)!important; }
.ys-recipient .ys-garden-question-card,.ys-recipient .ys-garden-answer-card { border-radius:var(--garden-card-radius,24px)!important; }
.ys-recipient[data-theme="highland"],.ys-recipient[data-theme="ivory-bronze"],.ys-recipient[data-theme="midnight"] { --glam-foil:color-mix(in srgb,var(--dc-accent) 65%,var(--dc-accent2)); }
.ys-recipient[data-theme="retro-arcade"] .ys-invitation { border-width:2px; box-shadow:10px 10px 0 color-mix(in srgb,var(--dc-accent2) 60%,transparent); }
.ys-recipient[data-theme="retro-arcade"] .ys-glam-crest,.ys-recipient[data-theme="retro-arcade"] .ys-glam-crest::after { border-radius:10px; }
.ys-recipient[data-theme="retro-arcade"] .ys-garden-titlecard::after { border-style:dashed; }
.ys-recipient[data-theme="midnight"] .ys-garden-envelope { background-image:radial-gradient(circle at 12% 28%,#fff9 0 1px,transparent 2px),radial-gradient(circle at 40% 14%,#fff7 0 1px,transparent 2px),radial-gradient(circle at 86% 76%,#fff9 0 1px,transparent 2px),radial-gradient(circle at 30% 86%,#fff7 0 1px,transparent 2px)!important; }
.ys-recipient[data-theme="highland"] .ys-invitation::before,.ys-recipient[data-theme="ivory-bronze"] .ys-invitation::before { inset:17px; border-style:double; border-width:3px; }
.ys-recipient[data-theme="coastline"] .ys-garden-question-card { border-radius:48px 14px 48px 14px!important; }
.ys-recipient[data-theme="sunshine"] .ys-invitation::before { border-style:dashed; }
.ys-recipient[data-theme="soft-life"] .ys-cover-copy h2 { font-weight:500; }

@media (max-width:1100px) and (min-width:651px) {
  .ys-theme-stage { padding:22px 14px; }
  .ys-theme-question { font-size:25px; }
}
@media (max-width:650px) {
  .ys-theme-stage { min-height:275px; padding:20px 12px; }
  .ys-theme-paper { min-height:240px; padding:46px 14px 30px; }
  .ys-theme-question { font-size:25px; }
  .ys-theme-option { padding:12px!important; }
  .ys-theme-picker-paper { min-height:212px; padding:32px 14px 25px; margin-bottom:16px; }
  .ys-theme-mini-question { font-size:24px; }
  .ys-theme-art--left { width:100px; height:150px; left:-38px; }
  .ys-theme-art--right { width:90px; height:135px; right:-35px; }
}
