*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#faf7ef;color:#213f33;font:16px/1.65 "Segoe UI","Microsoft YaHei",sans-serif}button,input,textarea{font:inherit}button,a,label.upload{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,label:focus-within{outline:3px solid #d2914c;outline-offset:4px}header,.hero{background:#102f27;color:#fff5de}.bar,.hero-inner,.desk,footer{max-width:1360px;margin:auto;padding-left:6%;padding-right:6%}.bar{display:flex;align-items:center;justify-content:space-between;height:82px;border-bottom:1px solid #ffffff25}.brand,nav,.actions,.fieldrow,.deskhead,footer{display:flex;align-items:center}.brand{gap:13px}.brand strong,footer strong{font:italic 700 29px/1 Georgia,serif}.mark{font:38px Georgia;color:#f9d693}.brandcn{border-left:1px solid #839282;padding-left:13px;letter-spacing:.12em;font-size:14px}nav{gap:24px}button{border:0}.textbtn,.ghost{background:none;color:inherit;padding:6px 0}.navcta,.outline{border:1px solid #9aab94;border-radius:40px;padding:8px 20px;font-size:14px}.hero{background:radial-gradient(ellipse at 76% 35%,#254b3b 0,transparent 44%),linear-gradient(120deg,#112e26,#15392e 70%,#173a2d)}.hero-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:7%;padding-top:58px;padding-bottom:62px;min-height:600px}.season,.overline,.cardmeta,.cardbottom span{font:600 12px/1.4 'Courier New',monospace;letter-spacing:.17em}.season{display:flex;align-items:center;gap:14px;color:#e4c98b}.season i{width:34px;height:1px;background:currentColor}h1,h2,h3{font-family:Georgia,"Noto Serif SC","Songti SC","SimSun",serif}h1{font-size:clamp(48px,5.4vw,82px);line-height:1.28;margin:23px 0 18px;letter-spacing:.015em;font-weight:600}h1 span{color:#f3d897}.intro p{color:#e0e5d9;line-height:1.95}.actions{gap:22px;flex-wrap:wrap;margin-top:28px}.gold,.send{display:inline-flex;align-items:center;justify-content:center;gap:11px;background:#f1d59c;color:#18382b;padding:12px 22px;border-radius:5px;font-weight:650}.ghost{border-bottom:1px solid #9dac91;font-size:15px}.priceNote{color:#c3cebd;font-size:13px;margin-top:16px}.priceNote b{margin:0 6px;color:#d7c298}.cardwrap{padding:12px 5px;transform:rotate(2deg)}.postcard{position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 75%,#244833,#102e26 68%,#0c281e);border:7px solid #ede4c9;outline:1px solid #7f775c;box-shadow:9px 16px 30px #091e254f;aspect-ratio:1.16;min-width:0}.postcard:before{content:"";position:absolute;inset:8px;border:1px solid #bbac7588;pointer-events:none}.cardmeta{position:absolute;top:20px;left:23px;right:19px;display:flex;align-items:flex-start;justify-content:space-between;color:#c6b78c;font-size:11px}.stamp{display:grid;place-content:center;width:45px;height:53px;text-align:center;outline:1px dashed #c7ab72;outline-offset:2px;border:2px double #b29a64;color:#d2b983;font:italic 24px/1 Georgia}.stamp small{font:10px 'Courier New'}.treestage{position:relative;isolation:isolate}.postcard .treestage{position:absolute;inset:4% 2% 14%}.treecanvas{width:100%;height:100%;display:block}.ornament{position:absolute;background:#f7efd9;padding:3px 3px 8px;width:13%;min-height:0;aspect-ratio:1.07;box-shadow:0 4px 7px #001a16aa;transform:translate(-50%,-50%) rotate(var(--angle));transition:scale .2s}.ornament:hover{scale:1.08}.ornament img{width:100%;height:100%;object-fit:cover;display:block}.cardbottom{position:absolute;bottom:5.5%;left:0;right:0;text-align:center;color:#edd9a2;pointer-events:none}.cardbottom em{font:italic clamp(24px,3vw,48px)/1 Georgia,serif}.cardbottom span{display:block;font-size:10px;letter-spacing:.27em;margin-top:6px}.desk{padding-top:54px;padding-bottom:60px}.deskhead{justify-content:space-between;gap:14px}.overline{color:#7b6540}.desk h2,.confirm h2,.letter h2{font-size:clamp(26px,3vw,40px);line-height:1.3;margin:8px 0 0}.outline{background:transparent;white-space:nowrap}.desk form{margin-top:26px;border-top:1px solid #cfcebc;padding-top:28px;display:grid;grid-template-columns:.85fr 1fr;gap:9%}h3{margin:0;font-size:23px}.hint,.small{font-size:14px;color:#596a60}.upload{padding:17px;min-height:80px;border:1px dashed #889d86;display:flex;align-items:center;justify-content:center;gap:10px;background:#f0f1e7;border-radius:5px}.upload:focus-within,.upload.drag{background:#e3e7db}.upload input{position:absolute;opacity:0;width:1px;height:1px}.upload span{font-size:22px}#thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.thumb{position:relative;width:82px}.thumb img{width:100%;height:70px;object-fit:cover}.thumb button{position:absolute;right:0;top:0;background:#173d30;color:white;min-width:26px}.write label,.fieldrow label{display:block;font-weight:600;font-size:15px}.fieldrow{gap:12px}.fieldrow label{flex:1;min-width:0}input:not([type=file]),textarea{display:block;padding:10px 12px;width:100%;background:#fffdf8;color:#203a2e;border:1px solid #bbc1ad;border-radius:4px;margin:4px 0 12px;font-weight:400;resize:vertical}.send{background:#204839;color:#fff4dc}.send:disabled{opacity:.65}.desk #feedback{color:#8d372b}footer{border-top:1px solid #cbcbb8;gap:13px;padding-top:22px;padding-bottom:22px}footer strong{font-size:23px}footer span{font-size:14px}.giftinner{background:radial-gradient(ellipse at 50% 35%,#2b4c39,#102e25 72%);color:#f7eac8;padding:22px 24px 28px;position:relative;text-align:center}.giftinner .treestage{height:min(48vh,420px);max-width:520px;margin:auto}.letter .overline{color:#d9c18a}.letter h2{font-size:26px}.letter p,.confirm p{white-space:pre-wrap;overflow-wrap:anywhere}.letter p{margin:8px auto;max-width:36ch}.letter em{color:#e9d39f}.letter .small{color:#c5d5be;margin-top:15px}dialog{padding:0;border:0;border-radius:7px;width:min(92vw,570px);max-height:90dvh;color:inherit;background:#faf7ef}dialog::backdrop{background:#051810bd}.close{position:absolute;right:10px;top:10px;width:38px;height:38px;z-index:5;border-radius:50%;font:26px/1 Arial;background:#fbf6e7;color:#243d30}#photoDialog{background:#192e22;width:fit-content}#largePhoto{max-width:88vw;max-height:82dvh;display:block;object-fit:contain}.confirm{padding:38px 28px}.gift-page header,.gift-page main,.gift-page footer{display:none}.gift-page{background:#112e26}.gift-page #gift{width:min(100%,760px)}@media(max-width:780px){.bar{height:67px}.hero-inner{gap:4%;min-height:500px;padding-top:38px;padding-bottom:42px}.brandcn{display:none}.intro p{font-size:15px}.wide{display:none}.priceNote{font-size:12px}.actions{gap:15px}.cardmeta{font-size:9px}.stamp{width:28px;height:36px;font-size:18px}.cardbottom span{font-size:9px}.desk form{gap:5%}}@media(max-width:650px){.bar,.hero-inner,.desk,footer{padding-left:6%;padding-right:6%}nav{gap:12px}.navcta{padding:6px 12px}.textbtn{font-size:14px}.brand{gap:7px}.brand strong{font-size:25px}.mark{font-size:29px}.hero-inner{grid-template-columns:1fr;gap:17px}.intro h1{font-size:clamp(43px,10vw,62px);margin-top:17px}.cardwrap{width:92%;max-width:440px;margin:auto}.desk{padding-top:32px}.desk form{grid-template-columns:1fr;gap:20px}.actions{margin-top:18px}.postcard{aspect-ratio:1.18}.cardbottom em{font-size:30px}.deskhead{align-items:flex-end}.outline{font-size:13px;padding:7px 12px}.giftinner{padding:14px 12px 20px}.giftinner .treestage{height:36vh}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.hand-world{position:relative;max-width:535px;margin:auto}.giftinner .treestage{height:clamp(235px,49dvh,455px);touch-action:none;user-select:none;-webkit-user-select:none}
.giftinner .ornament{touch-action:none;cursor:grab;transition:box-shadow .15s;z-index:1}
.ornament img{-webkit-user-drag:none;pointer-events:none}.giftinner .ornament.aimed{outline:3px solid #ffe6a1;box-shadow:0 0 16px #e8c269}
.giftinner .ornament.held{left:var(--held-x,50%)!important;top:var(--held-y,50%)!important;transform:translate(-50%,-50%);width:auto;height:auto;max-width:60%;aspect-ratio:auto;padding:6px 6px 14px;z-index:4;cursor:grabbing;box-shadow:0 12px 30px #061a15c7}
.giftinner .ornament.held img{width:auto;max-width:100%;height:auto;max-height:min(27vh,210px);object-fit:contain}
.hand-pointer{position:absolute;pointer-events:none;width:19px;height:19px;border:2px solid #fff3cc;border-radius:50%;background:#edd39e55;box-shadow:0 0 0 4px #283f3066;z-index:5;transform:translate(-50%,-50%)}.hand-pointer.gripping{background:#ffe4a5}
#handCamera{position:absolute;left:0;top:0;width:clamp(54px,15%,76px);aspect-ratio:4/3;object-fit:cover;border:1px solid #e7cf9880;border-radius:7px;transform:scaleX(-1);pointer-events:none}
.hand-tools{margin:1px auto 18px;max-width:420px}.hand-tools button{border:1px solid #c8ae71;border-radius:24px;background:#f5dfaa;color:#244235;padding:7px 20px;min-height:44px;font-weight:650}
.hand-tools button[aria-pressed=true]{background:#18362c;color:#f6e4b9}.hand-tools p{font-size:14px;color:#d8e1d5;line-height:1.55;margin:8px auto 0;text-wrap:pretty}
@media(max-width:650px){.giftinner .treestage{height:clamp(230px,43dvh,360px)}}
#previewActions {display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;padding:0 12px 18px}
#previewActions[hidden],#deliveryForm[hidden]{display:none}
#previewActions button{margin:0;width:auto;min-height:44px}
#previewActions .outline{border-color:#af9560;color:#f4daa4;background:transparent}
#deliveryForm{display:grid;gap:8px}
#deliveryForm label{font-weight:600}
#deliveryForm input{width:100%;padding:10px 12px;border:1px solid #b9b5a3;border-radius:4px;background:#fffdf8;color:#213f33}
#deliveryForm .hint,#deliveryForm .send{margin:4px 0}
#confirm #summary{overflow-wrap:anywhere}

.sound-choice{margin-top:1.3rem;border-top:1px solid #c7ae784d;padding-top:1rem}.sound-choice label{font-weight:650}.sound-choice small{font-weight:400}.sound-choice input[type=file]{max-width:100%;padding:.4rem 0}.sound-choice audio,#giftPlayer{display:block;width:min(100%,300px);height:36px;margin:.6rem auto}.sound-choice audio{margin-left:0}audio[hidden],#giftPlayer[hidden],#shareGift[hidden],#removeMusic[hidden]{display:none}#musicName{overflow-wrap:anywhere}#shareGift input{width:100%;margin:.5rem 0}#copyState{margin-inline:.5rem}

.tone-field,.plan-field{min-width:0;border:0;padding:0;margin:1.3rem 0}
.tone-field legend,.plan-field legend{padding:0;font-weight:700;margin-bottom:.65rem}
.tone-cards,.plan-cards{display:grid;gap:.45rem;min-width:0}
.tone-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
.plan-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
#maker .choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:.35rem;padding:.24rem .24rem .38rem;border:1px solid #c9c4ae;border-radius:8px;background:#faf8ef;min-width:0;text-align:center;cursor:pointer;line-height:1.35}
#maker .choice:has(input:checked){border-color:#315a48;box-shadow:inset 0 0 0 1px #315a48;background:#e8efe6}
#maker .choice:focus-within{outline:2px solid #987543;outline-offset:2px}
#maker .choice input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0}
.choice img{width:100%;height:auto;aspect-ratio:360/382;object-fit:cover;border-radius:5px;display:block}
.tone-cards span{font-size:.88rem}.plan-cards strong{font-size:1rem}.plan-cards span,.plan-cards small{font-size:.86rem}
#maker .plan-cards .choice{padding:.62rem .18rem;gap:.18rem}
#maker .sound-choice input:disabled{opacity:.48}
@media(max-width:430px){.tone-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.tone-cards .choice img{aspect-ratio:1.16;object-fit:cover}.plan-cards{gap:.3rem}}

#drop {position:relative;cursor:pointer}
#drop input[type=file]{inset:0;width:100%;height:100%;margin:0;cursor:pointer}
#photoStatus:empty,#viewPhotoTree[hidden]{display:none}
#photoStatus{white-space:pre-line;margin:.5rem 0}
#albumHelp{margin-top:.7rem;font-size:.9rem;color:#425d4e} #albumHelp summary{cursor:pointer;width:fit-content}
#albumHelp p{margin:.35rem 0}
.thumb img{display:block}
