*{box-sizing:border-box}body{margin:0;background:#163e35;color:#fff4db;font:1rem/1.5 system-ui}main{max-width:1080px;margin:auto;padding:clamp(12px,4vw,48px)}h1,h2,h3{font-family:Georgia,serif;line-height:1.15}h1{font-size:clamp(2rem,6vw,4rem);margin-bottom:0}a{color:inherit}header a{font-weight:bold}.tree{border:2px solid #cfb67e;border-radius:20px;padding:clamp(12px,3vw,32px);background:#fff7e6;color:#204538}button{font:inherit;font-weight:bold;cursor:pointer;background:#24503c;color:white;border:0;padding:10px 16px;border-radius:8px}label,textarea,input{display:block}textarea,input{font:inherit;width:100%;margin:.3rem 0 1rem;padding:.65rem;border:1px solid #947f60;border-radius:6px}textarea{min-height:6rem}button:focus-visible,a:focus-visible{outline:3px solid #c47e09;outline-offset:3px}[hidden]{display:none!important}footer{margin:1rem 0}
.ornaments{min-width:0;margin:1rem 0;padding:0;border:0}
.ornaments legend{font-weight:650;margin-bottom:.5rem}
.ornaments>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.4rem),1fr));gap:.5rem}
.ornaments label{position:relative;display:grid;justify-items:center;gap:.15rem;margin:0;padding:.6rem .25rem;background:#fffaf0;color:#204838;border:2px solid #c7b99d;border-radius:10px;font:650 .83rem/1.35 system-ui;cursor:pointer}
.ornaments label span{font-size:1.55rem}
.ornaments input{position:absolute;width:1px;height:1px;opacity:0}
.ornaments label:has(input:checked){background:#e3efdf;border-color:#23543d}
.ornaments label:has(input:checked)::after{content:"✓";position:absolute;right:.25rem;top:.12rem}
.ornaments label:focus-within{outline:3px solid #995a14;outline-offset:2px}
#treeCopy,#wish button{min-height:46px;border-radius:10px}
#wish button{width:100%;background:#963548;color:white}
.treeScene{width:min(100%,36rem);aspect-ratio:1;margin:1.2rem auto .5rem;position:relative;background:#173b35 url('/home-art/wishing-evergreen.webp') center/cover;border:4px double #cbaa65;border-radius:12px;box-shadow:0 3px 0 #b8a783}
.treeCharm{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;background:radial-gradient(circle at 35% 20%,#fff5ce,#e0b367);color:#403820;border:2px solid #f9df97;border-radius:50%;box-shadow:0 3px 7px #122a28;font-size:1.45rem}
.treeCharm:before{content:"";position:absolute;height:13px;width:2px;background:#ffe4a8;bottom:100%;left:50%}
.treeCharm:active{transform:translate(-50%,-48%)}
#treeCount,#treePages{text-align:center}#treePages{display:flex;justify-content:center;gap:.6rem}
#wishCard{width:min(24rem,90vw);border:1px solid #c6ad79;background:#fff9e9;border-radius:14px;padding:1.3rem;color:#194338;overflow-wrap:anywhere}
#wishCard::backdrop{background:#152c28b8}
#wishWords{white-space:pre-wrap}#wish{margin-top:1rem}
.albumShelfRow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem}
.deleteAlbum,#removeWish{font-size:.85rem;min-height:44px;color:#833341;background:#fff9ed;border:1px solid #d5bdad}
.treeDisplay{min-width:0}
.tree #treeTitle{font-size:clamp(1.65rem,4vw,2.4rem)}
@media(max-width:600px){.treeScene{background-image:url('/home-art/wishing-evergreen-small.webp')}}
@media(min-width:850px){
 main:has(.tree){max-width:1080px}
 .tree{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);column-gap:clamp(1rem,3vw,2rem);align-items:start}
 .tree #treeTitle{grid-column:1;align-self:center}
 .tree #treeCopy{grid-column:2;justify-self:start;align-self:center}
 .treeDisplay{grid-column:1}.tree #wish{grid-column:2}
}