:root { --plum: #3d2a22; --cocoa: #4a3027; --cream: #fdf3e6; --paper: #fffaf3; --line: #efdcc8; --orange: #e8714a; --accent: #b4482a; --soft: #6e5548; --lav: #f2c46b; --honey: #f2b544; --sage: #9bb07f; --rose: #e7a6a1; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Nunito Sans', system-ui, sans-serif; color: var(--plum); background: var(--cream); -webkit-tap-highlight-color: transparent; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 12px) 16px 12px; background: var(--plum); color: var(--cream); }
.brand { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 20px; color: var(--cream); text-decoration: none; }
.step { font-size: 14px; font-weight: 700; color: #f1dccb; display: flex; gap: 8px; align-items: center; }
#lang { display: inline-block; width: auto; margin: 0; padding: 4px 8px; font-size: 13px; border-radius: 10px; background: #5a3b30; color: #fbf6ee; border: 1px solid #6b4a3d; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .wrap { grid-template-columns: 1fr 380px; align-items: start; } .preview { position: sticky; top: 76px; } }
h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 22px; margin: 26px 0 10px; }
h2:first-of-type { margin-top: 6px; }
label { display: block; font-weight: 700; font-size: 14px; margin: 10px 0; color: var(--soft); }
input, textarea, select { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: var(--plum); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); }
.hint { font-size: 14px; color: var(--soft); margin: 4px 0 8px; line-height: 1.4; }
.center { text-align: center; }
.note { background: #fbe7cf; border-radius: 14px; padding: 12px 14px; font-weight: 700; margin-bottom: 8px; }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.city { position: relative; text-align: left; font: inherit; border: 2px solid var(--line); background: var(--paper); border-radius: 16px; padding: 12px; cursor: pointer; color: var(--plum); }
.city b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px; }
.city span { font-size: 13px; color: var(--soft); }
.city.on { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum) inset; }
.city.soon { opacity: .55; cursor: default; }
.city.soon { display: flex; flex-direction: column; align-items: flex-start; }
.city.soon b { padding-right: 0; }
.city .badge { order: -1; }
.city .badge { position: static; display: inline-block; margin-bottom: 6px; font-size: 11px; font-weight: 800; background: var(--honey); color: var(--plum); padding: 2px 8px; border-radius: 99px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { font: inherit; font-weight: 700; font-size: 14px; border: 2px solid var(--line); background: var(--paper); color: var(--plum); border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.chip.on { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.btn { font: inherit; font-weight: 800; font-size: 16px; border: 0; border-radius: 16px; padding: 14px 20px; cursor: pointer; background: #fff; color: var(--plum); box-shadow: inset 0 0 0 2px var(--plum); text-decoration: none; display: inline-block; }
.btn:not(.ghost) { background: var(--plum); color: var(--cream); box-shadow: none; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.phone { width: 100%; max-width: 360px; aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 34px; overflow: hidden; border: 8px solid var(--plum); background: #000; box-shadow: 0 20px 50px -20px #4a302766; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.overlay { position: fixed; inset: 0; z-index: 20; background: #3d2a22cc; display: grid; place-items: center; padding: 16px; }
.overlay .card { width: min(100%, 440px); background: var(--paper); border-radius: 24px; padding: 22px; }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { margin: 0; font-size: 13px; }
.qr { display: grid; place-items: center; margin: 14px 0; }
.qrcard { margin: 0; padding: 12px 12px 8px; background: #fffaf3; border: 3px solid var(--plum); border-radius: 22px; box-shadow: 0 5px 0 #3d2a2233; transform: rotate(-1.5deg); text-align: center; }
.qrcard canvas { display: block; width: 190px; height: 190px; border-radius: 12px; }
.qrcard figcaption { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px; margin-top: 6px; color: var(--plum); }
.pay { font-size: 13px; color: var(--soft); background: var(--cream); border-radius: 12px; padding: 10px 12px; }

/* step by step maker */
/* the quest map: six stops on a dotted road, stars for finished ones */
.quest { margin: 2px 0 10px; }
.quest ol { list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0; position: relative; }
.quest ol::before { content: ''; position: absolute; left: 22px; right: 22px; top: 21px; border-top: 3px dashed var(--line); }
.quest li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.quest li button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); background: var(--paper); font-size: 20px; line-height: 1; padding: 0; cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.quest li button:disabled { cursor: default; filter: grayscale(1); opacity: .5; }
.quest li.done button { border-color: var(--honey); background: #fff4d8; }
.quest li.now button { border-color: var(--orange); background: #fff; box-shadow: 0 4px 0 #b4482a33, 0 0 0 5px #e8714a22; animation: qBob 1.6s ease-in-out infinite; }
.quest li small { font-size: 11px; font-weight: 800; color: var(--soft); }
.quest li.now small { color: var(--accent); }
@keyframes qBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.quest .meter { margin-top: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.quest .mtop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.quest .lvl { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; }
.quest .mlab { color: var(--soft); font-weight: 700; }
.quest .bar { margin-top: 8px; height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quest .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--honey), var(--orange)); transition: width .5s cubic-bezier(.3, 1.4, .5, 1); position: relative; }
.quest .bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #fff9 50%, transparent 70%); transform: translateX(-100%); }
.quest .bar.up i::after { animation: barShine .8s ease-out; }
@keyframes barShine { to { transform: translateX(100%); } }
/* secrets counter on the words step */
.secrets { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff4d8; border-radius: 14px; padding: 10px 12px; margin: 6px 0 4px; font-size: 14px; }
.secrets .locks { display: flex; gap: 2px; font-size: 18px; }
.secrets .locks i { font-style: normal; transition: transform .3s; }
.secrets .locks i.on { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
/* badge pop */
.badge-pop { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 64px); z-index: 50; transform: translate(-50%, -30px) scale(.9); opacity: 0; display: flex; align-items: center; gap: 12px; background: var(--plum); color: var(--cream); border-radius: 20px; padding: 10px 18px 10px 10px; box-shadow: 0 0 0 3px var(--honey) inset, 0 12px 30px #3d2a2255; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), opacity .25s; max-width: calc(100vw - 32px); pointer-events: none; }
.badge-pop.in { transform: translate(-50%, 0) scale(1); opacity: 1; }
.badge-pop .bic { width: 46px; height: 46px; border-radius: 14px; background: var(--honey); display: grid; place-items: center; font-size: 26px; flex: none; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.badge-pop b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; }
.badge-pop small { display: block; font-size: 13px; color: #f1dccb; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
/* pictures: city cards and look cards */
.city img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 8px; background: #f3e4cf; }
.city.on img { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.lookcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0; }
.lookcard { font: inherit; border: 2px solid var(--line); background: var(--paper); border-radius: 16px; padding: 6px; cursor: pointer; color: var(--plum); text-align: center; }
.lookcard img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; }
.lookcard span { display: block; font-weight: 800; font-size: 13px; margin: 6px 0 2px; }
.lookcard.on { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum) inset; }
.lookcard.on img { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
@media (prefers-reduced-motion: reduce) { .quest li.now button, .badge-pop .bic, .secrets .locks i.on, .city.on img, .lookcard.on img { animation: none; } }
.wstep { animation: wIn .25s ease-out; }
@keyframes wIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wstep { animation: none; } }
.wnav { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 10px; margin: 22px -16px 0; padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px); background: linear-gradient(transparent, var(--cream) 30%); }
.wnav .btn { flex: 1; }
.wnav #backBtn { flex: 0 0 auto; }
.btn.wide { display: block; width: 100%; margin-top: 12px; text-align: center; }
/* checkout */
.sum { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px; margin: 4px 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--plum); line-height: 1.4; padding: 12px; border-radius: 14px; background: var(--cream); margin: 14px 0 4px; cursor: pointer; }
.agree input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--plum); }
.agree.need { box-shadow: 0 0 0 2px var(--orange) inset; animation: nudge .3s; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
a { color: var(--accent); }

/* who lives in their city */
.fam { margin: 18px 0 8px; padding: 14px; border: 2px solid var(--line); border-radius: 18px; background: var(--paper); }
.famh { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; margin: 0; }
.fam .chips { margin: 10px 0 0; }
.fperson, .fpet { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line); }
.flab { margin: 0; font-weight: 800; font-size: 14px; }
.sw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.sw::before { content: attr(aria-label); font-size: 13px; font-weight: 700; color: var(--soft); width: 44px; }
.sw button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; padding: 0; transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); }
.sw button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--plum); transform: scale(1.12); }
.sw button:active { transform: scale(.92); }
.fpet .sw::before { content: 'Coat'; }
/* flag picker: the chosen flag next to the list */
.flagpick { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.flagpick select { margin-top: 0; flex: 1; min-width: 0; }
#flagSee { flex: none; width: 54px; height: 36px; border-radius: 6px; border: 2px solid var(--plum); box-shadow: 0 3px 0 #4c281c33; background: #fff; transform: rotate(-3deg); transition: transform .2s cubic-bezier(.23,1,.32,1); }
#flagSee.blank { border-style: dashed; background: repeating-linear-gradient(45deg, #f6e7d6 0 6px, #fffaf3 6px 12px); box-shadow: none; }

/* checkout: wrapping the gift */
.overlay { animation: ovIn .25s ease-out; }
@keyframes ovIn { from { background: #3d2a2200; } }
.wrapcard { position: relative; overflow: hidden; text-align: center; padding-top: 0 !important; border: 3px solid var(--plum); box-shadow: 0 10px 0 #3d2a2244; animation: sheetIn .55s cubic-bezier(.22, 1.3, .36, 1); }
@keyframes sheetIn { from { transform: translateY(60px) scale(.94); opacity: 0; } }
@media (max-width: 600px) { #checkout { place-items: end center; padding: 0; } #checkout .wrapcard { width: 100% !important; border-radius: 26px 26px 0 0 !important; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important; } }
.wpaper { height: 56px; margin: 0 -22px; background: #ea8056; background-image: radial-gradient(#f0ba53 3px, transparent 3.6px), radial-gradient(#fdf3e6 2.4px, transparent 3px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; border-bottom: 3px solid var(--plum); }
.wpaper::after { content: ''; position: absolute; left: 50%; top: 0; width: 22px; height: 56px; margin-left: -11px; background: #f0ba53; border-left: 3px solid var(--plum); border-right: 3px solid var(--plum); }
.wclose { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--plum); background: var(--paper); color: var(--plum); font: 800 24px/1 'Fredoka', sans-serif; cursor: pointer; z-index: 2; }
.wstage { position: relative; height: 112px; margin: -26px auto 2px; width: 124px; z-index: 1; }
.wbox { width: 124px; height: 112px; overflow: visible; }
.wbody { animation: wDrop .5s .15s cubic-bezier(.3, 1.5, .5, 1) both; transform-origin: 60px 102px; }
.wlid { animation: wLid .5s .55s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 60px 52px; }
.wbow { animation: wBow .45s 1s cubic-bezier(.3, 1.8, .5, 1) both; transform-origin: 60px 34px; transform-box: view-box; }
.wspark path { animation: wTw 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.wspark path:nth-child(2) { animation-delay: -.6s; } .wspark path:nth-child(3) { animation-delay: -1.2s; }
@keyframes wDrop { from { transform: translateY(-40px) scale(.9, 1.1); opacity: 0; } 70% { transform: translateY(0) scale(1.08, .9); opacity: 1; } }
@keyframes wLid { from { transform: translateY(-46px) rotate(-12deg); opacity: 0; } 70% { transform: translateY(2px) rotate(2deg); opacity: 1; } }
@keyframes wBow { from { transform: scale(0) rotate(-30deg); } }
@keyframes wTw { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
.wrapcard.wrapping .wlid { animation: wClose .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.wrapcard.wrapping .wbody { animation: wHop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes wClose { 0% { transform: translateY(0); } 35% { transform: translateY(-14px) rotate(-6deg); } 70% { transform: translateY(3px) rotate(1deg); } 100% { transform: none; } }
@keyframes wHop { 0% { transform: none; } 35% { transform: translateY(-10px) scale(.96, 1.06); } 70% { transform: translateY(0) scale(1.08, .92); } 100% { transform: none; } }
.wrapcard h2 { font-size: 26px; margin: 4px 0 12px; }
.wtag { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; text-align: left; background: #fbe9bf; border: 3px solid var(--plum); border-radius: 10px 18px 18px 10px; padding: 12px 16px 12px 34px; transform: rotate(-1.5deg); box-shadow: 0 5px 0 #3d2a2233; animation: tagIn .5s .35s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes tagIn { from { transform: rotate(-8deg) translateY(10px); opacity: 0; } }
.whole { position: absolute; left: 11px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); border: 3px solid var(--plum); }
.wtag small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.wtag b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.wsum { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--soft); }
.winside { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; display: grid; gap: 8px; }
.winside li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.winside li span:first-child { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--cream); border-radius: 50%; font-size: 15px; }
.wpay { position: relative; overflow: hidden; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; padding: 15px 20px; box-shadow: 0 5px 0 #b4482a !important; transition: transform .12s, box-shadow .12s; }
.wpay:active { transform: translateY(4px); box-shadow: 0 1px 0 #b4482a !important; }
/* the pay button breathes gently, with a warm ring, so it is the obvious next tap */
#payBtn { animation: payPulse 1.6s ease-in-out infinite; }
#payBtn:active { animation: none; }
@keyframes payPulse { 0%, 100% { transform: scale(1); outline: 3px solid #ea805699; outline-offset: 0; } 60% { transform: scale(1.035); outline: 3px solid #ea805600; outline-offset: 9px; } }
.wpay::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, #f0ba5355, transparent); animation: wShine 2.6s ease-in-out infinite; }
@keyframes wShine { 0%, 40% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .wrapcard, .wbody, .wlid, .wbow, .wspark path, .wtag, .wpay::after, #payBtn, .overlay { animation: none !important; } }

.wsafe { margin-top: 18px; font-size: 14px; line-height: 1.45; }

.pay:empty { display: none; }

/* the gift is ready: celebration */
.celebrate h2 { font-size: 30px; margin: 6px 0 4px; }
#done .celebrate { max-height: calc(100dvh - 32px); overflow-y: auto; } /* the whole card, with its bottom edge, always fits the phone */
.celebrate .done-box .wlid { animation: wLid .6s .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.celebrate .done-box .wbow { animation: wBow .5s 1s cubic-bezier(.3, 1.8, .5, 1) both, bowWig 2.4s 1.6s ease-in-out infinite; }
@keyframes bowWig { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-8deg) scale(1.08); } 90% { transform: rotate(6deg) scale(1.08); } }
.celebrate .wpay { margin-top: 14px; }
.celebrate #shareBtn { margin-top: 10px; }
.celebrate .linkbox { margin-top: 10px; }
.celebrate .linkbox input { font-size: 13px; color: var(--soft); text-align: center; background: var(--cream); border-style: dashed; }
.qrfold { margin: 10px 0 4px; text-align: center; }
.qrfold summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--soft); list-style: none; }
.qrfold summary::before { content: '▸ '; } .qrfold[open] summary::before { content: '▾ '; }
.qrfold .qr { margin: 10px 0 0; }
.actions.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.actions.two:has(> [hidden]) { grid-template-columns: 1fr; }
.actions.two .btn { text-align: center; justify-content: center; }
.hint.small { font-size: 13px; margin-top: 10px; }
.celebrate #doneClose { margin-top: 8px; }

label:has(> .count) { position: relative; }
label > .count { position: absolute; right: 4px; top: 0; font-size: 12px; font-weight: 800; color: var(--soft); opacity: .8; }
label > .count.full { color: var(--accent); opacity: 1; }

/* send one back: who is it for, before the steps */
.form.choosing > :not(.whofor) { display: none !important; }
.whofor h2 { margin-top: 6px; }
.whobtns { display: grid; gap: 12px; margin-top: 14px; }
.whob { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; text-align: left; font: inherit; color: var(--plum); background: var(--paper); border: 3px solid var(--plum); border-radius: 20px; padding: 14px 16px; box-shadow: 0 5px 0 #b4482a; cursor: pointer; transition: transform .12s; }
.whob:active { transform: translateY(3px) scale(.98); box-shadow: 0 2px 0 #b4482a; }
.whob span { grid-row: span 2; font-size: 34px; width: 52px; height: 52px; border-radius: 16px; background: #fff4d8; display: grid; place-items: center; }
.whob b { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; }
.whob small { color: var(--soft); font-size: 14px; font-weight: 700; }

/* Create my gift: the big moment. Warm gradient, a wiggling gift box, a shine and a gentle heartbeat */
#createBtn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; color: #fff; text-shadow: 0 1px 0 #7a3a1e; border: 3px solid var(--plum); background: linear-gradient(120deg, #f2b544, #e8714a 55%, #e66b9a); box-shadow: 0 6px 0 var(--plum), 0 10px 22px #e8714a55; animation: createBeat 1.8s ease-in-out infinite; }
#createBtn .gi { width: 34px; height: 34px; padding: 3px; border-radius: 11px; background: #fff8ee; box-shadow: inset 0 0 0 2px var(--plum); flex: none; transform-origin: 50% 80%; animation: giftWig 2.2s ease-in-out infinite; filter: drop-shadow(0 1px 0 #fff8); }
#createBtn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #fff9 50%, transparent 70%); transform: translateX(-120%); animation: createShine 2.8s ease-in-out infinite; pointer-events: none; }
#createBtn::before { content: '✦'; position: absolute; right: 14px; top: 6px; font-size: 13px; color: #fff; opacity: .9; animation: createTwinkle 1.6s ease-in-out infinite; }
#createBtn:active { transform: translateY(4px) scale(.98); box-shadow: 0 2px 0 var(--plum); animation: none; }
@keyframes createBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.035); } 24% { transform: scale(1); } 36% { transform: scale(1.025); } 48% { transform: scale(1); } }
@keyframes giftWig { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(-12deg) scale(1.08); } 76% { transform: rotate(10deg) scale(1.08); } 84% { transform: rotate(-6deg); } 92% { transform: rotate(3deg); } }
@keyframes createShine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes createTwinkle { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(25deg); } }
@media (prefers-reduced-motion: reduce) { #createBtn, #createBtn .gi, #createBtn::after, #createBtn::before { animation: none; } }

/* checkout on phones: the sheet always fits the screen and scrolls inside; the close button stays in reach */
#checkout .wrapcard { max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 600px) {
  #checkout .wclose { position: sticky; top: 10px; display: block; margin: -46px 0 6px auto; transform: translateX(10px); z-index: 5; box-shadow: 0 3px 10px #3d2a2240; }
  #checkout .wstage { transform: scale(.82); transform-origin: 50% 100%; margin-top: -10px; }
}

/* the link is the only copy: a clear warning, a check before closing, the last gift kept on this phone */
.savewarn { background: #fff1d0; border: 2px solid #e0a43a; border-radius: 14px; padding: 10px 12px; margin: 10px 0 4px; text-align: left; font-size: 14px; line-height: 1.35; color: var(--plum); }
.savewarn b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 2px; }
#done .wclose { position: sticky; top: 10px; display: block; margin: -46px 0 6px auto; transform: translateX(10px); z-index: 5; box-shadow: 0 3px 10px #3d2a2240; }
.saveask { position: absolute; inset: 0; z-index: 10; background: #3d2a22cc; display: grid; place-items: center; padding: 16px; border-radius: inherit; }
.saveask-card { background: var(--paper); border: 3px solid var(--plum); border-radius: 20px; padding: 18px; text-align: center; box-shadow: 0 10px 0 #3d2a2244; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.saveask-card h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.saveask-card p { margin: 0 0 8px; color: var(--soft); font-size: 15px; }
.saveask-card .linkbox input { font-size: 13px; text-align: center; background: var(--cream); border-style: dashed; }
.linklike { font: inherit; font-weight: 800; background: none; border: 0; color: var(--soft); text-decoration: underline; margin-top: 10px; cursor: pointer; }
.lastgift { display: flex; align-items: center; gap: 8px; background: #fff4d8; border: 2px solid #e0a43a; border-radius: 14px; padding: 8px 10px; margin-bottom: 10px; font-size: 14px; }
.lastgift span { font-size: 20px; } .lastgift p { margin: 0; flex: 1; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lastgift button, .lastgift a { font: inherit; font-weight: 800; font-size: 13px; border: 2px solid var(--plum); background: #fff; color: var(--plum); border-radius: 99px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.lastgift .lg-x { border: 0; background: none; font-size: 18px; padding: 0 4px; }

#copyInline { flex: none; padding: 10px 14px; font-size: 14px; border-radius: 12px; }
#copyBtn:disabled, #copyInline:disabled { opacity: .55; cursor: progress; }
.celebrate .linkbox input { text-align: left; }

/* required fields left empty */
input.need, textarea.need { border-color: #d9482b !important; background: #fff1ec; animation: needShake .35s; }
.needmsg { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; color: #d9482b; }
@keyframes needShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.req { color: #d9482b; font-weight: 800; }

.giftcode { font-weight: 800; color: var(--plum); background: #fff4d8; border-radius: 10px; padding: 6px 10px; user-select: all; -webkit-user-select: all; }
