.sticker-album{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#a66929;color:#4f3d24;overflow:hidden;box-sizing:border-box}
.sticker-album::backdrop{background:#2e452b}
.sb-scene{height:100%;box-sizing:border-box;padding:clamp(44px,8vh,85px) clamp(26px,8vw,110px) clamp(55px,15vh,140px);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:clamp(4px,1vh,10px);background:url('assets/generated/christmas106/sticker-album.webp') center/100% 100% no-repeat}
.sb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2%}.sb-head h1{margin:0;font-size:clamp(22px,4vh,38px);color:#385b36}.sb-head p{margin:2px 0;font-size:clamp(13px,2.1vh,18px);font-weight:750}.sb-close{flex:none;width:48px;height:48px;padding:0;border:2px solid #fff9e2;border-radius:50%;background:#315d3b;color:#fff9e2;font:700 32px/1 system-ui;box-shadow:0 3px 0 #203e2a}
.sb-tabs{display:flex;gap:7px;align-items:center;justify-content:center;min-width:0}.sb-tabs button,.sb-year select{min-height:44px;padding:6px 12px;border:2px solid #b19459;border-radius:14px;background:#fff9e9;color:#35563b;font:750 clamp(12px,2vh,17px)/1.2 system-ui;white-space:nowrap}.sb-tabs button[aria-pressed=true]{background:#3d7450;color:white;border-color:#254f34}.sb-year{display:flex;align-items:center;gap:4px;font-size:13px}.sb-year select{padding:4px;min-width:68px}
.sb-pages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(6px,1.8vh,18px) clamp(10px,3.7vw,60px);padding:2px 3%;min-height:0;touch-action:pan-y;transform-origin:center;perspective:1000px}
.sb-sticker{min-width:0;min-height:44px;border:0;padding:2px 3px;background:none;color:#574126;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}.sb-sticker strong{max-width:100%;font-size:clamp(12px,1.9vh,18px);line-height:1.1;text-wrap:balance;overflow-wrap:anywhere}.sb-sticker small{font-size:12px;line-height:1}.sb-picture{position:relative;display:block;height:clamp(65px,15vh,145px);max-height:calc(100% - 32px);aspect-ratio:1.25;max-width:100%;transform:rotate(var(--sb-turn));border:clamp(4px,.8vh,9px) solid #fffdf4;border-radius:17%;background:#fffdf4;box-shadow:1px 5px 6px #6d45243b;box-sizing:border-box;transition:transform .22s}.sb-picture>img{width:100%;height:100%;object-fit:cover;border-radius:11%}.sb-sticker:active .sb-picture{transform:rotate(0) scale(1.06)}.sb-waiting .sb-picture{box-shadow:none;outline:2px dashed #a48c5a;background:transparent;border-color:transparent}.sb-waiting .sb-picture>img{filter:grayscale(1);opacity:.18}.sb-seal{position:absolute;right:-12px;bottom:-7px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#edb83d;color:#fffbed;box-shadow:0 2px 0 #aa7b24;font-size:19px}.sb-outline{position:absolute;inset:0;display:grid;place-items:center;color:#99804a;font-size:clamp(25px,5vh,42px)}
.sb-footer{display:flex;align-items:center;justify-content:center;gap:clamp(10px,4vw,50px);padding-top:3px}.sb-footer>button{min-width:52px;min-height:44px;border:2px solid #b29556;border-radius:14px;background:#fff7df;color:#31583a;font-size:32px;line-height:1}.sb-footer>button:disabled{opacity:.35}.sb-footer p{text-align:center;font-weight:800;font-size:clamp(13px,2vh,18px);margin:0}.sb-footer small{display:block;font-weight:600;font-size:clamp(11px,1.7vh,14px);line-height:1.2;margin-top:3px}
.sb-detail{grid-column:1/-1;grid-row:1/-1;display:flex;align-items:center;justify-content:center;gap:clamp(14px,4vw,60px);text-align:center;min-height:0}.sb-big-sticker{max-width:42%;max-height:90%;aspect-ratio:1;object-fit:cover;border:10px solid #fffdf5;border-radius:16%;box-shadow:0 8px 12px #755a3b40;transform:rotate(-3deg);box-sizing:border-box}.sb-detail>div{max-width:48%}.sb-detail h2{font-size:clamp(18px,3vh,30px);line-height:1.1}.sb-detail p{font-size:clamp(13px,2vh,18px)}.sb-detail-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.sb-detail-actions button,.sb-empty button{min-height:46px;border:2px solid #b39559;border-radius:14px;background:#fff9e9;color:#315d3b;font:750 15px/1.2 system-ui;padding:9px 13px}.sb-detail-actions button:last-child{background:#3d7450;color:white}.sb-detail-actions button:disabled{background:#e4d8b9;color:#756848}
.sb-empty{grid-column:1/-1;grid-row:1/-1;display:grid;align-content:center;justify-items:center;text-align:center}.sb-empty img{height:clamp(50px,15vh,120px)}.sb-empty h2{margin:6px;font-size:clamp(18px,3vh,28px)}.sb-empty p{margin:5px 0 12px}
.sb-earned-notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:6px auto;max-width:100%;color:#3c5b36}.sb-earned-notice>img{width:44px;height:44px;border:3px solid #fff9e6;border-radius:12px;object-fit:cover;transform:rotate(-6deg);box-shadow:0 3px 4px #754d2540;animation:sb-stamp .5s ease-out}.sb-earned-notice span{font-weight:800;font-size:14px}.sb-earned-notice button{min-height:44px;border:2px solid #b09458;border-radius:13px;background:#fff9e8;color:#355d3c;padding:7px 10px;font:750 14px/1.1 inherit}.sticker-book-new{animation:sb-book-glow 1.8s ease-in-out 3}
.sb-turn-next{animation:sb-page-next .32s ease-out}.sb-turn-prev{animation:sb-page-prev .32s ease-out}
@keyframes sb-page-next{from{opacity:.4;transform:perspective(1000px) rotateY(-12deg)}to{opacity:1;transform:none}}@keyframes sb-page-prev{from{opacity:.4;transform:perspective(1000px) rotateY(12deg)}to{opacity:1;transform:none}}@keyframes sb-stamp{from{transform:translateY(-30px) rotate(-16deg) scale(1.6);opacity:0}to{transform:rotate(-6deg);opacity:1}}@keyframes sb-book-glow{50%{filter:drop-shadow(0 0 8px #ffd755)}}
@media(orientation:portrait){.sb-scene{padding:clamp(58px,8.5vh,90px) 10vw clamp(85px,15vh,150px)}.sb-head{padding:0}.sb-head h1{font-size:clamp(20px,6vw,30px)}.sb-head p{font-size:14px}.sb-tabs{gap:5px;flex-wrap:wrap}.sb-tabs button{padding:6px 9px;font-size:12px}.sb-pages{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:9px 9vw;padding:8px 0}.sb-picture{height:clamp(75px,13vh,150px)}.sb-sticker strong{font-size:clamp(12px,3.3vw,17px)}.sb-footer{gap:9px}.sb-footer small{font-size:11px}.sb-detail{flex-direction:column;gap:10px}.sb-big-sticker{max-width:80%;max-height:50%}.sb-detail>div{max-width:100%}.sb-detail h2{margin:4px 0}.sb-detail p{margin:7px 0}}
@media(max-height:420px) and (orientation:landscape){.sb-scene{padding-top:8vh;padding-bottom:15vh;gap:2px}.sb-head h1{font-size:21px}.sb-head p{font-size:12px}.sb-close{width:44px;height:44px}.sb-tabs button{min-height:44px;padding:4px 10px;font-size:12px}.sb-picture{height:63px}.sb-sticker strong{font-size:12px}.sb-sticker{gap:2px}.sb-footer small{font-size:10px}.sb-footer p{font-size:12px}.sb-footer>button{min-width:45px}.sb-pages{gap:4px 6vw;padding-top:0}}
@media(prefers-reduced-motion:reduce){.sb-turn-next,.sb-turn-prev,.sb-earned-notice>img,.sticker-book-new{animation:none}.sb-picture{transition:none}}

.sb-pages.sb-compact{grid-template-rows:minmax(0,1fr)}.sb-compact .sb-picture{height:clamp(70px,29vh,145px)}
@media(max-height:420px) and (orientation:landscape){.sb-detail{gap:16px}.sb-detail h2{margin:0 0 4px;font-size:18px}.sb-detail p{margin:4px 0;font-size:12px;line-height:1.2}.sb-detail-actions{gap:6px;margin-top:7px}.sb-detail-actions button{min-height:44px;padding:6px 8px;font-size:12px}.sb-detail>div{max-width:55%}}
@media(max-height:560px) and (min-width:600px){.trace-word-win:has(>.sb-earned-notice){grid-template-rows:32px minmax(70px,1fr) 48px 46px;gap:3px 18px}.trace-word-win>.sb-earned-notice{grid-column:1/-1;grid-row:4;min-height:44px;margin:0;flex-wrap:nowrap;gap:6px}.trace-word-win>.sb-earned-notice>img{width:32px;height:32px}.trace-word-win>.sb-earned-notice span{font-size:12px}.trace-word-win>.sb-earned-notice button{min-height:44px;padding:6px 9px;font-size:12px}}
.sb-picture.sb-cutout{background:none!important;border-color:transparent!important;box-shadow:none!important;overflow:visible}.sb-picture.sb-cutout>img{object-fit:contain;filter:drop-shadow(0 4px 3px #745a3b55);border-radius:0}.sb-detail>.sb-big-sticker.sb-cutout{object-fit:contain;background:none;border:0;box-shadow:none;filter:drop-shadow(0 7px 5px #745a3b55)}
