/* Supplied paper and gold-script overlay, shared by every card surface. */
.postcard-art-clip{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:inherit}
.postcard.festive-postcard{container-type:inline-size;display:block;aspect-ratio:4/5;height:auto;min-height:0;padding:0;border:1px solid #d9cfba;border-radius:3px;background:#faf8f1;color:#402379;text-align:center;overflow:hidden;box-shadow:0 10px 24px #17082d38,inset 0 0 0 4px #fff9}
.postcard.festive-postcard::before{display:none}
.festive-postcard .postcard-art{position:absolute;display:block;pointer-events:none;object-fit:contain;max-width:none;rotate:0deg;margin:0;padding:0;border:0;box-shadow:none}
.festive-postcard .postcard-paper-art{inset:0;width:100%;height:100%;object-fit:fill}
.festive-postcard .postcard-script-art{left:-3%;top:-2%;width:106%;height:30%;object-fit:fill;opacity:.72}
.postcard.festive-postcard .postcard-copy{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;left:16%;top:12%;width:68%;height:58%;max-height:none;margin:0;padding:5cqw;border:1cqw solid #e9c64b;overflow:hidden;text-align:center;background:#fffdf7de;z-index:1}
.postcard.festive-postcard .card-note-intro{display:block;margin-bottom:3cqw;font-size:3cqw;letter-spacing:.1em;text-transform:uppercase;line-height:1.3}
.postcard.festive-postcard .recipient{display:block;max-width:100%;width:100%;flex:none;font:400 8cqw/1.08 'Appetite Contrast',Georgia,serif;letter-spacing:0;margin:0 0 3cqw;white-space:normal;overflow-wrap:anywhere;overflow:visible}
.postcard.festive-postcard .message{display:block;flex:none;width:100%;font-size:4.5cqw;line-height:1.4;font-weight:400;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere}
.postcard.festive-postcard.has-photo .postcard-copy.with-photo{padding:0;display:block;background:#e9dfd0}
.postcard.festive-postcard .postcard-photo{display:block;position:absolute;inset:0;width:100%;height:100%;float:none;object-fit:cover;border:0;padding:0;rotate:0deg;box-shadow:none;margin:0}
.postcard.festive-postcard .photo-placeholder{background:linear-gradient(110deg,#ded0e0,#f4eaf3,#ded0e0);background-size:200% 100%;animation:photo-loading 2s ease-in-out infinite}
@keyframes photo-loading{50%{background-position:100% 0}}
.postcard.festive-postcard .postcard-copy .photo-recipient{position:absolute;bottom:4%;left:4%;width:92%;padding:2.5cqw 1cqw;margin:0;background:#fffaf0ed;color:#402379;font-size:5.6cqw;white-space:nowrap;overflow-wrap:normal;overflow:hidden;box-shadow:0 2px 10px #210a3d20}
.postcard.festive-postcard .postcard-occasion{left:87.1%;top:41.7%;width:4.35%;height:25.85%;z-index:1}
.postcard.festive-postcard .postcard-lockup{left:13%;bottom:10%;width:74%;height:20%;z-index:1}
.postcard.festive-postcard .postcard-signature{position:absolute;left:8%;bottom:2.6%;width:84%;max-width:none;min-width:0;display:flex;align-items:center;justify-content:center;gap:1cqw;padding:0;margin:0;background:transparent;box-shadow:none;border-radius:0;font-size:2.35cqw;line-height:1.2;color:inherit;letter-spacing:.075em}
.postcard.festive-postcard .postcard-signature span:last-child{font-size:2cqw;min-height:0}
.postcard.festive-postcard .postcard-logo{position:absolute;top:7%;left:36%;width:28%;height:auto;rotate:0deg;margin:0;padding:1.4cqw 2cqw;z-index:2}
.postcard.festive-postcard.postcard-back .postcard-copy{top:22%;height:56%;border-width:.35cqw;background:transparent}
.postcard.festive-postcard.postcard-back .postcard-signature{bottom:9%;font-size:3cqw}
.postcard.festive-postcard.postcard-back .postcard-signature span:last-child{font-size:2.5cqw}
.postcard.festive-postcard .share-note{position:absolute;top:51%;left:10%;width:80%;height:27%;padding:1cqw;display:flex;flex-direction:column;justify-content:center;z-index:2}
.postcard.festive-postcard.postcard-share .postcard-occasion{left:81%;top:19%}
.postcard.festive-postcard.postcard-share .postcard-copy{top:7%;left:25%;width:50%;height:42.7%}
.postcard.festive-postcard.postcard-share .photo-recipient{display:none}
.postcard.festive-postcard.postcard-share .share-note .recipient{font-size:6cqw;margin-bottom:2cqw}
.postcard.festive-postcard.postcard-share .share-note .message{font-size:3.7cqw}
.postcard.festive-postcard.postcard-share .postcard-lockup{bottom:9%;height:13%;left:27%;width:46%}
.card-flipper{width:100%;min-width:0;container-type:inline-size}
.card-flipper-stage{display:grid;transform-style:preserve-3d;transition:transform .45s cubic-bezier(.22,.65,.3,1);width:100%;aspect-ratio:4/5}
.card-flipper[data-side="back"] .card-flipper-stage{transform:rotateY(180deg)}
.card-face{grid-area:1/1;width:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.card-face-back{transform:rotateY(180deg)}
.card-face[aria-hidden="true"]{pointer-events:none}
.card-flipper .card-face .postcard{width:100%;height:100%;margin:0;rotate:0deg}
.card-flip-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:7px auto 0;padding:7px 14px;border:0;border-radius:24px;color:#f2d58b;background:transparent;font:500 13px/1.3 'Gill Sans',Calibri,Arial,sans-serif;cursor:pointer;transition:color .2s ease}
.card-flip-button>span:first-child{font-size:22px}
.card-flip-button:hover{color:#fff1ba}.card-flip-button:focus-visible{outline:2px solid #f2d58b;outline-offset:2px}
.card-detail-paper{width:min(380px,100cqw,max(140px,calc((100dvh - 300px)*.8)))}
.postcard.festive-postcard.card-wall-card{width:200px;height:250px;padding:0;border-radius:3px}
.card-builder{height:auto;min-height:100dvh}
.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"],[data-step="4"]) .builder-stage{top:0;max-width:880px}
.card-builder .builder-preview{max-width:min(300px,calc((100dvh - 270px)*.8))}
.card-builder .builder-controls{min-height:0}
.card-builder .builder-preview #card-preview{perspective:1200px}
.card-detail-preview{perspective:1400px}
.success.confirmation .nomination-card-preview{width:min(320px,100cqw,calc((100cqh - 54px)*.8))}
.card-builder[data-step="4"] .card-face .postcard{overflow:visible}
.card-builder[data-step="4"] .card-face-front .postcard-art{border-radius:inherit}
@media(min-width:721px){.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"],[data-step="4"]) .builder-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;align-items:center}.card-builder .builder-preview{justify-self:center}.card-builder #nomination-form{gap:30px}}
@media(max-width:720px){.postcard.festive-postcard.card-wall-card{width:134px;height:167.5px}.card-builder{padding-bottom:100px;gap:12px}.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"],[data-step="4"]) .builder-preview{max-width:min(250px,calc((100dvh - 400px)*.8));min-width:145px}.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"],[data-step="4"]) .builder-controls{min-height:0}.card-builder .builder-stage{gap:14px}.card-flip-button{font-size:12px}.card-detail-paper{width:min(330px,100cqw,max(140px,calc((100dvh - 300px)*.8)))}}
.photo-edit-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;user-select:none}
.photo-edit-frame{position:absolute;left:17.407407%;top:11.851852%;width:65.648148%;height:55.851852%;z-index:6;outline:1px dashed #f2d58b;outline-offset:1px;pointer-events:none}
.photo-move{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;pointer-events:auto;touch-action:none;cursor:grab}
.photo-move:focus-visible{outline:2px solid #f2d58b;outline-offset:-4px}
.photo-edit-frame[data-dragging] .photo-move{cursor:grabbing}
.photo-edit-frame .sticker-handle span{width:28px;height:28px;border-color:#c8a76d}
.photo-edit-frame .sticker-handle svg{width:17px;height:17px}
.photo-edit-rotate{right:0;top:0;translate:50% -50%}
.photo-edit-resize{right:0;bottom:0;translate:50% 50%;cursor:nwse-resize}
.photo-edit-actions{display:flex;justify-content:center;gap:24px;margin-top:4px}
.photo-edit-actions button{min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;color:#f2d58b;font-size:14px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#f2d58b66}
.photo-edit-actions button:hover{color:#fff1ba;text-decoration-color:currentColor}
.photo-edit-actions button:focus-visible{outline:2px solid #f2d58b;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.card-flipper-stage{transition:none}.postcard.festive-postcard .photo-placeholder{animation:none}}

/* Original Photoshop composite: only the sample photo opening is transparent. */
.postcard.festive-postcard.postcard-source-front{border:0;border-radius:0;background:transparent;box-shadow:none}
.festive-postcard .postcard-source-art{inset:0;width:100%;height:100%;object-fit:fill}
.postcard.festive-postcard.postcard-source-front .postcard-copy{left:17.407407%;top:11.851852%;width:65.648148%;height:55.851852%;border:0;background:#fff}
.postcard.festive-postcard.postcard-source-front .postcard-signature{bottom:3%;font-size:1.5cqw;gap:.5cqw}
.postcard.festive-postcard.postcard-source-front .postcard-signature span:last-child{font-size:1.2cqw}
.postcard-source-front .postcard-source-zone{position:absolute;pointer-events:none}
.postcard-source-script-zone.script-top{left:0;top:0;width:100%;height:12%}
.postcard-source-script-zone.script-left{left:0;top:12%;width:17.4%;height:16%}
.postcard-source-script-zone.script-right{right:0;top:12%;width:17%;height:16%}
.postcard.festive-postcard.postcard-source-front .postcard-lockup{left:16.481481%;top:70.074074%;width:66.388889%;height:23.407407%}
.postcard.festive-postcard.postcard-source-front .postcard-occasion{left:87.12963%;top:41.703704%;width:4.351852%;height:25.851852%}

/* Name, optional photo, then the message on the reverse. */
.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-stage{display:flex;flex-direction:column;justify-content:flex-start;gap:16px;max-width:440px;top:0}
.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-preview{display:block;max-width:min(300px,max(170px,calc((100dvh - 400px)*.8)));justify-self:center}
.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-controls{max-width:360px;min-height:142px}
.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-heading{min-height:48px}
.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-header{min-height:30px}
.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) #nomination-form{gap:12px}
.card-builder[data-step="1"] .builder-name label{text-align:center}
.card-builder[data-step="3"] .builder-preview #card-preview{perspective:1400px}
@media(max-width:720px){.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]){padding-top:32px;gap:10px}.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-preview{max-width:min(260px,max(170px,calc((100dvh - 410px)*.8)))}.card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-controls{min-height:132px}}
/* Give the portrait card more presence on laptop and larger screens. */
@media(min-width:721px){
 .card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]){padding-top:14px;padding-bottom:24px;gap:10px}
 .card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-header{min-height:20px}
 .card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-heading{min-height:40px}
 .card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-heading h1{font-size:36px}
 .card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-stage{max-width:480px;gap:12px}
 .card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-preview{max-width:min(400px,max(260px,calc((100dvh - 300px)*.8)))}
 .card-builder:is([data-step="1"],[data-step="2"],[data-step="3"]) .builder-controls{max-width:420px;min-height:100px}
 .card-builder[data-step="1"] input#hero-name{font-size:18px}
 .card-builder[data-step="2"] .photo-picker-action{min-height:50px;font-size:14px}
 .card-builder[data-step="2"] .photo-picker-copy strong{font-size:15px}
 .card-builder[data-step="2"] .photo-picker-copy>span{font-size:12px}
 .card-builder[data-step="3"] .builder-preview{max-width:min(400px,max(170px,calc((100dvh - 400px)*.8)))}
 .card-builder[data-step="3"] .builder-controls{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:12px}
 .card-builder[data-step="3"] .builder-controls .field{margin-bottom:0}
 .card-builder[data-step="3"] .builder-controls textarea{height:80px;min-height:80px;font-size:16px}
 .card-builder[data-step="3"] .builder-controls .error{grid-column:1/-1;margin-top:0}
}

/* Reserve validation space so the message and navigation do not jump. */
.card-builder[data-step="3"] #form-error{min-height:3em}
.card-builder[data-step="3"] #form-error:empty{display:block}
@media(max-width:720px){.card-builder[data-step="3"] .builder-preview{max-width:min(260px,max(170px,calc((100dvh - 460px)*.8)))}}
@media(max-width:720px) and (max-height:620px){.card-builder[data-step="3"] .builder-preview{display:none}}

/* Supplied festive stickers sit beneath the card on every screen. */
.card-builder[data-step="4"]{padding-top:14px;padding-bottom:32px;gap:10px}
.card-builder[data-step="4"] .builder-header{min-height:20px}
.card-builder[data-step="4"] .builder-stage{display:flex;flex-direction:column;justify-content:flex-start;gap:20px;max-width:620px}
.card-builder[data-step="4"] .builder-preview{max-width:min(340px,max(160px,calc((100dvh - 386px)*.8)))}
.card-builder[data-step="4"] .builder-controls{max-width:420px;min-height:0}
.card-builder[data-step="4"] #nomination-form{gap:24px}
.sticker-palette img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #24093844)}
.sticker-choice-art{position:absolute;inset:16%;display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);pointer-events:none}
.sticker-choice-art img{min-width:0;min-height:0;max-width:100%;max-height:100%}
.custom-sticker img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
@media(max-width:720px){
 .card-builder[data-step="4"]{padding-top:30px}
 .card-builder[data-step="4"] .builder-stage{gap:18px}
 .card-builder[data-step="4"] .builder-preview{max-width:min(280px,max(170px,calc((100dvh - 406px)*.8)))}
 .card-builder[data-step="4"] .builder-controls{max-width:368px}
 .card-builder[data-step="4"] .sticker-palette{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
 .card-builder[data-step="4"] .sticker-palette button{width:100%;height:auto;aspect-ratio:1;min-height:44px;padding:8px}
}
@media(max-width:360px){
 .card-builder[data-step="4"] .builder-preview{min-width:170px;max-width:min(250px,max(170px,calc((100dvh - 460px)*.8)))}
 .card-builder[data-step="4"] .sticker-palette{grid-template-columns:repeat(3,48px);justify-content:center;gap:10px}
}
.card-builder[data-step="4"] .sticker-palette button{position:relative;display:block;overflow:hidden;background:#fff8e9;border-color:#d8b878cc}
.card-builder[data-step="4"] .sticker-palette button:hover{background:#ffe8b3;border-color:#f2d58b}

/* Decorating names both faces, with the one being edited filled. */
.card-face-switch{display:flex;justify-content:center;width:max-content;margin:8px auto 0;padding:3px;border:1px solid #eed38b80;border-radius:24px}
.card-face-option{min-height:38px;min-width:118px;padding:6px 16px;border:0;border-radius:20px;background:transparent;color:#f2d58b;font:500 13px/1.2 'Gill Sans',Calibri,Arial,sans-serif;cursor:pointer;transition:background-color .2s ease,color .2s ease}
.card-face-option[aria-pressed="true"]{background:#f2d58b;color:#341360;cursor:default}
.card-face-option:not([aria-pressed="true"]):hover{background:#f2d58b1f}
.card-face-option:focus-visible{outline:2px solid #f2d58b;outline-offset:2px}
.card-face-option:disabled{cursor:wait}
@media(max-width:720px){.card-face-option{min-width:104px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.card-face-option{transition:none}}

/* Replace the supplied headline with “Spoil them”, edited from the supplied lockup.
   The original paper layer covers only the old headline, preserving all other artwork. */
.festive-postcard .postcard-headline-paper{inset:0;width:100%;height:100%;object-fit:fill;clip-path:inset(69.8% 16.8% 6% 16.2%)}
