/* Xmas Card — make-a-card page */
.app { position: relative; z-index: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 10px 14px 30px; }
.top { text-align: center; padding: 6px 0 2px; }
.top h1 { margin: 0; font: 700 34px/1.1 'Mountains of Christmas', 'Itim', cursive; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.top p { margin: 3px 0 0; font-size: 16px; opacity: .92; }
.stagecol { margin: 0 auto; max-width: 400px; }
#preview .pc-note { font-size: 17px; }

.panel { background: rgba(255, 255, 255, .95); color: #2f2a26; border-radius: 22px; padding: 16px 16px 18px; margin-top: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.panel h2 { margin: 0 0 12px; font-size: 20px; font-weight: 400; display: flex; align-items: center; gap: 9px; }
.panel h2 span { width: 28px; height: 28px; border-radius: 50%; background: #e23b3b; color: #fff; display: grid; place-items: center; font-size: 16px; flex: none; }
.panel h2.c, .panel p.c { justify-content: center; text-align: center; }

.tpls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.tpl { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; text-align: center; font-size: 12.5px; line-height: 1.25; color: #5b524b; }
.tpl i { display: block; aspect-ratio: 1; border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 0 0 2px rgba(0, 0, 0, .06) inset; transition: transform .15s, box-shadow .15s; }
.tpl i svg { position: absolute; left: 12%; top: 10%; width: 76%; height: 82%; }
.tpl b { display: block; font-weight: 400; margin-top: 5px; }
.tpl[aria-checked="true"] i { box-shadow: 0 0 0 3.5px #e23b3b, 0 6px 14px rgba(226, 59, 59, .35); transform: translateY(-3px) scale(1.04); }
.tpl[aria-checked="true"] { color: #b3261e; }

.fld { display: block; margin-bottom: 11px; }
.fld em { display: flex; justify-content: space-between; font-style: normal; font-size: 15px; color: #7a6f66; margin: 0 4px 4px; }
.fld em i { font-style: normal; font-size: 13px; opacity: .8; }
.fld input, .fld textarea { width: 100%; border: 2px solid #eadfd3; background: #fffdf8; border-radius: 14px; padding: 11px 13px; font: 400 17px/1.45 'Mali', 'Itim', sans-serif; color: #2f2a26; outline: none; resize: none; transition: border-color .15s; }
.fld input:focus, .fld textarea:focus { border-color: #e23b3b; }
.ideas { display: flex; gap: 6px; overflow-x: auto; margin: -3px -16px 12px; padding: 2px 16px 4px; scrollbar-width: none; }
.ideas::-webkit-scrollbar { display: none; }
.ideas button { flex: none; border: 0; border-radius: 999px; background: #fdeeda; color: #8a4b12; padding: 7px 13px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.sw { display: flex; align-items: center; gap: 11px; margin: 4px 2px 14px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; }
.sw b { flex: none; width: 50px; height: 30px; border-radius: 999px; background: #d9d0c6; position: relative; transition: background .2s; }
.sw b::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.sw input:checked + b { background: #2f9a6e; }
.sw input:checked + b::after { transform: translateX(20px); }
.sw input:focus-visible + b { outline: 2px solid #e23b3b; outline-offset: 2px; }
.sw span { font-size: 16px; line-height: 1.25; }
.sw small { display: block; font-size: 13px; color: #8d8279; }
.err { margin: 0 0 12px; padding: 9px 13px; border-radius: 12px; background: #ffe3e0; color: #a3231c; font-size: 15px; }

.sent .tick { width: 62px; height: 62px; border-radius: 50%; background: #2f9a6e; margin: 4px auto 8px; display: grid; place-items: center; animation: tick .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.sent .tick svg { width: 34px; height: 34px; }
@keyframes tick { from { transform: scale(0); } }
.sent h2 { font-size: 24px; margin-bottom: 4px; }
.sent p { margin: 0 0 14px; color: #6d625a; font-size: 15.5px; line-height: 1.45; }
.link { display: flex; gap: 8px; margin-bottom: 12px; }
.link input { flex: 1; min-width: 0; border: 2px solid #eadfd3; background: #fffdf8; border-radius: 999px; padding: 0 15px; font: 15px/1 system-ui, sans-serif; color: #4a413a; }
.link .btn { padding: 11px 18px; font-size: 16px; }
.sent .row { margin-bottom: 12px; }
.sent .row:last-child { margin-bottom: 0; }
.panel .btn.ghost { background: #f4ece3; color: #5b4a3c; box-shadow: none; }
.qr { display: grid; place-items: center; margin: 2px 0 14px; }
.qr svg { width: 148px; height: 148px; border-radius: 12px; background: #fff; }
.qr:empty { display: none; }
.foot { text-align: center; font-size: 13px; opacity: .6; margin-top: 20px; }

.full { position: fixed; inset: 0; z-index: 40; background: linear-gradient(160deg, var(--bg1), var(--bg2)); overflow-y: auto; }
.full[hidden] { display: none; }
.fullin { width: 100%; max-width: 440px; margin: 0 auto; padding: 46px 16px 30px; }
.fullhint { text-align: center; opacity: .75; font-size: 15px; margin: 18px 0 0; }
.full .x { position: fixed; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); color: #fff; font-size: 20px; cursor: pointer; }

@media (min-width: 940px) {
  .app { max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; padding-top: 22px; }
  .top, .foot { grid-column: 1 / -1; }
  .top h1 { font-size: 46px; } .top p { font-size: 19px; }
  .stagecol { position: sticky; top: 16px; max-width: 460px; width: 100%; margin-top: 10px; }
  .formcol { grid-column: 2; }
}
