*{box-sizing:border-box}body{margin:0;background:#eee9f1;color:#26172a;font-family:"PingFang SC","Microsoft YaHei",system-ui}.app{width:min(100%,430px);min-height:100vh;margin:auto;background:#fff8f7;box-shadow:0 0 45px #43214a33;padding:env(safe-area-inset-top) 17px 94px}.top{height:61px;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:6px;font-size:21px;font-weight:800}.brand-icon{display:block;width:29px;height:29px;flex:none;object-fit:contain}.hero{background:linear-gradient(135deg,#4d255b,#c62251 56%,#ff9a5b);color:#fff;border-radius:23px;padding:21px 19px;margin:6px 0 23px;position:relative;overflow:hidden}.hero:after{content:"✦";position:absolute;font-size:90px;right:14px;top:-12px;opacity:.18}.hero h1{font-size:25px;line-height:1.25;margin:0 0 7px}.hero p{font-size:13px;line-height:1.5;margin:0;opacity:.86}.section{margin:0 0 23px}.heading{display:flex;justify-content:space-between;align-items:end;margin:0 2px 10px}.heading b{font-size:16px}.heading span{font-size:12px;color:#998c96}.scroller,.chips{display:flex;gap:10px;overflow:auto;padding:1px 1px 4px;scrollbar-width:none}.festival{width:91px;min-width:91px;height:94px;border:1px solid #f0e6ec;background:#fff;border-radius:17px;text-align:center;font:inherit;color:#372337}.festival i{font-style:normal;font-size:30px;display:block;margin:12px 0 5px}.festival small,.template small{font-size:12px}.selected{outline:2px solid #7d50d4;outline-offset:-2px}.template{width:140px;min-width:140px;padding:6px;border:1px solid #f0e6ec;background:#fff;border-radius:16px;text-align:left}.thumb{height:94px;border-radius:12px;color:#fff;display:grid;place-items:center;font-size:32px}.template small{display:block;padding:8px 3px 2px}.berry{background:linear-gradient(135deg,#9c1439,#f1536e)}.snow{background:linear-gradient(135deg,#24467e,#a6e2f2)}.cozy{background:linear-gradient(135deg,#70331b,#e99a42)}.fire{background:linear-gradient(135deg,#64112b,#fb6539)}.lantern{background:linear-gradient(135deg,#a91524,#ffa72a)}.jade{background:linear-gradient(135deg,#07454b,#4cc0a0)}.cake{background:linear-gradient(135deg,#f57ba4,#fdd46b)}.balloon{background:linear-gradient(135deg,#6742ca,#ee78bb)}.party{background:linear-gradient(135deg,#008897,#80dcca)}.form{background:#fff;border:1px solid #f0e7eb;border-radius:20px;padding:14px}.input{width:100%;font:inherit;border:0;border-bottom:1px solid #eee5e8;padding:12px 4px;outline:none}.input:focus{border-color:#c51c43}.chip{white-space:nowrap;border:1px solid #eadfe6;background:#fff8fb;border-radius:99px;padding:8px 10px;font-size:12px}.preview{height:460px;position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(135deg,#9c1439,#f1536e);color:white;margin-top:15px}.actions{display:flex;justify-content:center;margin-top:12px}.save{background:#eee7f7;color:#5b3f91}.share{background:#c51c43;color:#fff}.hint{text-align:center;color:#958891;font-size:11px;margin:9px 0 0}
[hidden]{display:none!important}
body{min-width:260px}
button,a{touch-action:manipulation}
button:disabled{opacity:.55;cursor:wait}
button:focus-visible,a:focus-visible{outline:2px solid #693aaf;outline-offset:3px}
.festival,.template{cursor:pointer}
.thumb.christmas001{background:#a7192c url("christmas-001-cover.svg") center / auto 79% no-repeat}
.thumb.christmas002{
  background-color:#261b14;
  background-image:url("starlight-title.png"),url("starlight-background.png");
  background-position:center,center 35%;background-size:90% auto,cover;background-repeat:no-repeat;
}
.thumb.christmas003{
  background:url("flight-santa-reindeer.png") center / 90% auto no-repeat,
    #162039 url("flight-winter-sky.png") center 28% / cover no-repeat;
}
.thumb.christmas004{position:relative;background:radial-gradient(ellipse at 50% 46%,#723241,#340e23 76%)}
.thumb.christmas004::before{content:"";position:absolute;width:38%;aspect-ratio:1;left:31%;top:13%;border:1px solid #fff1c5;border-radius:50%;background:radial-gradient(circle at 33% 25%,#fffbdf,#9dc4c5 34%,#45627b 72%);box-shadow:0 0 10px #fee0a67a}
.thumb.christmas004::after{content:"";position:absolute;left:23%;right:23%;top:52%;bottom:14%;border-radius:3px;border:1px solid #e2b770;background:linear-gradient(90deg,transparent 42%,#f5d98e 43%,#b98945 57%,transparent 58%),linear-gradient(165deg,#c3354a,#711832);box-shadow:0 4px 8px #210a1c}
.thumb.christmas005{background:#ac333c url("dance-poster.png") center 43% / cover no-repeat}
.thumb.christmas006{background:url("starlight-particles-tree.png") center 48% / 94% auto no-repeat,radial-gradient(ellipse at 50% 58%,#183850,#08101f 78%)}
.thumb.christmas007{position:relative;background:url("starlight-particles-tree.png") center 18% / 78% auto no-repeat,radial-gradient(ellipse at 62% 25%,#3e5275,#0a2433 74%)}
.thumb.christmas007::after{content:"";position:absolute;left:34%;width:32%;height:30%;bottom:13%;border:1px solid #edc987;border-radius:3px;background:linear-gradient(90deg,transparent 42%,#ffd58f 44% 56%,transparent 58%),linear-gradient(140deg,#c84675,#56275e);box-shadow:0 0 9px #eebd6977}
.thumb.christmas008{background:url("sleigh-santa.png") center 60% / 80% auto no-repeat,#071c43 url("sleigh-snow-landscape.png") center 32% / cover no-repeat}
.thumb.christmas009{background:#162c24 url("hearth-christmas-art.png") center / cover no-repeat}
.thumb.christmas010{background:#48241a url("christmas-puppy.jpg") center 7% / cover no-repeat}
.thumb.christmas011{background:#ece1d4 url("christmas-snowman.jpg") center 41% / cover no-repeat}
.thumb.christmas012{background:#2c493c url("christmas-kitten.jpg") center 11% / cover no-repeat}
.thumb.newyear001{background:#1b1020 url("newyear-fireworks.jpg") center 45% / cover no-repeat}
#templates{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#d9c4d3 transparent}
#templates .template{scroll-snap-align:start;user-select:none;display:flex;flex-direction:column;align-items:stretch}
#order{min-width:0;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#festivals .festival{overflow-wrap:anywhere}
.template-source{color:#615062;font-size:.75rem;line-height:1.4;padding:0 3px 3px}
#templates.dragging{scroll-snap-type:none}
#templates.dragging,#templates.dragging .template{cursor:grabbing}
.thumb{position:relative}
.thumb.custom-cover{overflow:hidden;color:transparent}
.thumb.custom-cover::before,.thumb.custom-cover::after{display:none}
.custom-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.subscription-badge{position:absolute;right:5px;top:5px;padding:4px 7px;border-radius:99px;background:#661832;color:#fff;font-size:.68rem;font-weight:700;white-space:nowrap}
.form label{display:block;font-size:.875rem;font-weight:650;margin:12px 4px 0}
.message-label-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#messageRemaining{margin-right:4px;color:#655766;font-size:.8125rem;text-align:right;font-variant-numeric:tabular-nums}
#messageRemaining[data-full]{color:#a7192c}
.form .input{padding:7px 4px 11px}
.family-photo-panel{padding:12px;border:1px solid #f0e7eb;border-radius:16px;background:#fff}
.family-photo-panel p{margin:0 0 10px;color:#655766;font-size:.875rem;line-height:1.45}
.family-photo-panel .family-photo-size{color:#741f3b;font-weight:650}
.family-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:8px;margin-bottom:10px}
.family-photo-slot{text-align:center;min-width:0}
.family-photo-pick{display:block;width:100%;padding:4px;border:1px solid #d5aa5a;border-radius:9px;background:#215944;color:#fff9ef;cursor:pointer}
.starlight-photos .family-photo-pick{background:#a42b3c}
.family-photo-thumb{display:block;width:100%;aspect-ratio:1;border:1px solid #efcc84;border-radius:5px;background:#f2e4df;object-fit:cover}
.single-family-photo .family-photo-grid{grid-template-columns:minmax(0,10rem)}
.single-family-photo .family-photo-thumb{aspect-ratio:16/9;object-fit:contain;background:#29202a}
.family-photo-action{display:block;margin:5px 0 1px;font-size:.875rem;font-weight:650;line-height:1.2}
.family-photo-remove{min-height:44px;border:0;background:transparent;color:#8f1537;font-size:.8125rem;text-decoration:underline;cursor:pointer}
.family-photo-actions,.photo-select-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.family-photo-actions button,.photo-select-footer button{min-height:44px;border:0;border-radius:12px;padding:8px 12px;font-weight:650;cursor:pointer}
.family-photo-panel #familyPhotoStatus{margin:10px 0 0}
.family-photo-panel #familyPhotoStatus:empty{display:none}
.photo-dialog{width:min(calc(100% - 22px),408px);max-height:calc(100dvh - 24px);border:1px solid #eadfe6;border-radius:20px;padding:17px;color:#26172a;background:#fffaf9}
.photo-dialog::backdrop{background:#20122899}
.photo-dialog p{font-size:.875rem;line-height:1.45}
.photo-dialog #photoExampleCanvas{display:block;width:min(100%,225px);height:auto;margin:12px auto 0;border-radius:12px}
.photo-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:min(45dvh,320px);overflow-y:auto;padding:4px 4px 8px}
.photo-option{position:relative;min-width:0;padding:3px;border:2px solid #ebdfdf;border-radius:10px;background:#fff;color:#4d3e48;cursor:pointer}
.photo-option[aria-pressed=true]{border-color:#215944;background:#e8f2eb}
.photo-option[aria-pressed=true]::after{content:"✓";position:absolute;top:7px;right:7px;border-radius:50%;display:grid;place-items:center;width:22px;height:22px;background:#215944;color:#fff}
.photo-option img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px;background:#f2e4df}
.photo-option span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:.75rem}
.photo-select-footer{justify-content:space-between;margin-top:12px}
.photo-select-footer span{font-size:.875rem;font-weight:650}
.photo-dialog .hint:empty{display:none}
@media(max-width:325px){.family-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.preview{width:min(100%,349px);height:auto;aspect-ratio:9/16;margin:0 auto;background:#eae6df}
.preview::before,.preview::after{display:none}
.card-canvas{display:block;width:100%;height:100%;cursor:pointer}
.play-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 auto 10px}
.play-controls button,.dialog-head button,.dialog-actions a,.dialog-actions button,#backToEditor,.work-actions button,.work-actions a{
  cursor:pointer;min-height:44px;border:0;border-radius:12px;padding:8px 12px;text-decoration:none;font:650 .875rem/1.2 system-ui,sans-serif;
}
.play-controls button{background:#fffaf1;color:#593421;border:1px solid #d8cbb9}
.make-card{min-width:144px;min-height:46px;padding:12px 24px;border:0;border-radius:14px;font:750 .9375rem/1.2 system-ui,sans-serif;cursor:pointer}
.bottom{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,430px);
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;
  padding:7px 8px max(7px,env(safe-area-inset-bottom));border-top:1px solid #eee7ea;background:#fffdfd;
}
.bottom button{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-height:56px;padding:4px;border:0;border-radius:12px;color:#604b56;background:transparent;
  font:650 .875rem/1.15 system-ui,sans-serif;cursor:pointer;
}
.bottom b{font:500 1.2rem/1 system-ui,sans-serif}
.bottom [aria-current=page]{color:#fff;background:#861631}
.hint{font-size:.8125rem;line-height:1.5;color:#655766}
.review-notice{text-align:left}
#textReviewStatus:empty{display:none}
#works h1,#settings h1{margin:12px 0;font-size:1.5rem}
#settings h1{margin-bottom:18px}
.settings-panel{padding:15px;background:#fff;border:1px solid #f0e6ec;border-radius:16px}
.settings-panel h2{margin:0 0 12px;font-size:1rem}
.settings-languages{display:flex;flex-wrap:wrap;gap:8px}
.settings-languages button{color:#693046;font:650 .938rem/1.3 system-ui,sans-serif;cursor:pointer}
.settings-languages button{min-height:44px;padding:8px 16px;border:1px solid #eadbe1;border-radius:10px;background:#fff8f7}
.settings-languages button[aria-pressed=true]{border-color:#861631;background:#861631;color:#fff}
#worksDescription{font-size:.938rem;color:#655766}
#worksCapacity{color:#655766;text-align:left;font-size:.875rem}
#storageDialog .dialog-actions{margin-top:14px}
#storageDialog #storageStatus{text-align:left}
#storageDialog #storageStatus:empty{display:none}
#storageDialog #buyStorage:disabled{opacity:.6;cursor:default}
#worksStatus:empty{margin:0}
#worksList{display:grid;gap:12px;margin:20px 0}
.work{padding:14px;background:#fff;border:1px solid #f0e6ec;border-radius:16px}
.work h2{font-size:1rem;margin:0 0 4px;overflow-wrap:anywhere}
.work p{margin:0 0 10px;color:#655766;font-size:.875rem}
.work video{display:block;width:100%;max-height:360px;background:#211820;border-radius:10px}
.work-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.work-actions a{display:inline-flex;align-items:center}
.work-delete{background:#faeaed;color:#861631}
.work .hint:empty{display:none}
#shareDialog,#deleteDialog{width:min(calc(100% - 22px),408px);border:1px solid #eadfe6;border-radius:20px;padding:17px;color:#26172a;background:#fffaf9}
#shareDialog::backdrop,#deleteDialog::backdrop{background:#20122899}
#deleteDialog h2{margin:0;font-size:1.2rem}
#deleteDescription{overflow-wrap:anywhere;line-height:1.45}
#deleteDialog .dialog-actions{justify-content:flex-end}
#confirmDelete{color:#fff;background:#861631}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dialog-head h2{margin:0;font-size:1.2rem}
.dialog-head button,.dialog-actions a{background:#eee7f7;color:#5b3f91}
#shareDialog label,#shareDialog p{font-size:.875rem;line-height:1.45}
#shareUrl{display:block;width:100%;border:1px solid #e6dce4;border-radius:10px;padding:10px;margin:6px 0 12px;font:inherit}
.dialog-actions{display:flex;gap:8px;flex-wrap:wrap}
.dialog-actions a{display:inline-flex;align-items:center}
