/* Die-cut artwork: no square backplates; foil and shimmer follow the alpha silhouette. */
.sticker,.sticker.golden,.sticker.rare,.sticker.legendary{border:0;border-radius:0;background:none;box-shadow:none;transform:none;isolation:isolate;--sx:0%;--sy:0%}
.sticker-art{background-image:var(--sticker-sheet,url('sticker-sheet.png'));background-size:var(--sticker-sheet-size,600% 500%);background-position:var(--sx) var(--sy);filter:drop-shadow(0 3px 2px #39574935)}
.sticker.rare .sticker-art,.sticker.golden .sticker-art{filter:sepia(1) saturate(2.8) brightness(1.12) drop-shadow(0 2px 2px #d49d35)}
.sticker.legendary .sticker-art{filter:saturate(.65) brightness(1.15) drop-shadow(0 0 4px #80d5ff)}
.sticker.rare:after,.sticker.golden:after,.sticker.legendary:after{content:'';position:absolute;inset:0;border-radius:0;background:linear-gradient(115deg,transparent 25%,#fff9 47%,transparent 65%);background-size:250% 100%;mask-image:var(--sticker-sheet,url('sticker-sheet.png'));mask-size:var(--sticker-sheet-size,600% 500%);mask-position:var(--sx) var(--sy);animation:sticker-shine 3s infinite;pointer-events:none}
.sticker.legendary:after{background-image:linear-gradient(115deg,transparent 20%,#b9edff88 35%,#ffffffdd 48%,#f6c7ff88 60%,transparent 75%)}
.sticker-glitter{font-size:22px;letter-spacing:5px;display:flex;align-items:center;justify-content:center;text-shadow:0 1px 3px #7788aa;pointer-events:none}.tier-label.rare{color:#946500}.collection-legend{font-size:14px;line-height:1.6}.sticker-book .primary{margin:12px 0}.star-banner[hidden],main[hidden],footer[hidden],#playground[hidden]{display:none!important}
#playground{max-width:1200px;margin:auto;padding:15px 32px 35px}.playground-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:5px 0 22px}.playground-heading h1{font-size:32px;margin:5px 0}.playground-heading .primary{font-size:16px;padding:12px 20px}.playground-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:22px}.sticker-shelf{background:#fff;border:2px solid #eee5ca;border-radius:24px;padding:18px 12px;align-self:start;max-height:650px;overflow:auto}.sticker-shelf h2{font-size:22px;margin:0 0 5px}.sticker-shelf p{font-size:14px;line-height:1.5}.sticker-shelf .primary{font-size:14px;padding:12px}#earned-stickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shelf-sticker{background:#fff9e8;border-radius:16px;padding:4px;touch-action:none;border:2px solid transparent;color:#405541}.shelf-sticker[aria-pressed=true]{border-color:#d4992c;background:#fff0ba}.shelf-sticker .sticker{width:100%;height:auto;aspect-ratio:1}.shelf-sticker>span{font-size:14px;font-weight:700;display:block;padding:3px}.scene-workspace{min-width:0}#sticker-scene{position:relative;width:100%;aspect-ratio:3/2;border:6px solid white;border-radius:25px;overflow:hidden;box-shadow:0 6px 22px #39574920;touch-action:none;background-repeat:no-repeat;background-color:#cbeaf1;box-sizing:border-box}.scene-sticker{position:absolute;aspect-ratio:1;border:2px solid transparent;border-radius:18px;background:none;padding:0;touch-action:none;cursor:grab}.scene-sticker.active{border:2px dashed #456350;background:#ffffff22}.scene-sticker .sticker{width:100%;height:100%;pointer-events:none}.scene-switcher{display:flex;justify-content:center;align-items:center;gap:14px;margin:16px 0}.scene-switcher select{max-width:300px;margin:0;padding:12px 18px;background:white;border:2px solid #eee5ca;border-radius:14px;font-size:17px;font-weight:700}.scene-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.scene-tools button{min-height:44px;padding:10px 14px;border-radius:13px;background:#f5e9c9;font-size:14px;font-weight:700}.scene-tools button:disabled{opacity:.4;cursor:default}#playground-status{text-align:center;font-size:14px;line-height:1.5}.playground-ghost{position:fixed!important;width:110px!important;height:110px!important;transform:translate(-50%,-50%)!important;z-index:300;pointer-events:none}.playground-link{background:#deeddb}.top-actions{flex-wrap:wrap}.book-button .book-label{display:inline}
@media(max-width:760px){#playground{padding:12px}.playground-heading h1{font-size:25px}.playground-heading .eyebrow{font-size:11px}.playground-layout{grid-template-columns:1fr;gap:12px}.sticker-shelf{order:2;max-height:260px;padding:12px}.sticker-shelf h2{font-size:19px}#earned-stickers{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}.shelf-sticker .sticker{max-width:105px;margin:auto}.scene-tools{gap:5px}.scene-tools button{padding:8px 10px}.scene-switcher{margin:10px 0}.scene-switcher select{max-width:230px}.playground-link{font-size:12px;max-width:105px}.book-button .book-label{display:none}header{gap:10px}.brand{font-size:22px}#sticker-scene{border-width:4px;border-radius:18px}}
.brand{white-space:nowrap;flex-shrink:0}
@media(prefers-reduced-motion:reduce){.sticker:after,.sticker-glitter{animation:none!important}}

/* Whole-row pages leave every pointer gesture available for dragging. */
.sticker-shelf{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
#earned-stickers{overflow:visible;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;align-content:start;padding:4px 0;touch-action:none;flex:none}
.shelf-sticker{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;min-width:0}
.shelf-sticker:active,.scene-sticker:active{cursor:grabbing}
.shelf-sticker>*{pointer-events:none}
.shelf-sticker>span{min-height:2.5em;line-height:1.25;overflow-wrap:anywhere}
.playground-ghost{width:var(--drag-size,110px)!important;height:var(--drag-size,110px)!important;transform:translate(-50%,-50%) rotate(var(--drag-angle,0deg))!important}
.shelf-scroll-controls{display:flex;gap:12px;padding-top:10px;flex-shrink:0}
.shelf-scroll-controls button{flex:1;min-height:48px;border:3px solid white;border-radius:16px;background:#e8defb;color:#745994;font-size:24px;touch-action:manipulation;box-shadow:0 3px 0 #c5b1e0}
.shelf-scroll-controls button:disabled{opacity:.35;box-shadow:none}
#shelf-page{font-size:13px;align-self:center;white-space:nowrap}
#playground .sticker-shelf{max-height:none}
@media(max-width:760px){#playground .playground-layout{grid-template-columns:175px minmax(0,1fr);gap:12px}#playground .sticker-shelf{order:0;padding:8px}.sticker-shelf p{margin:5px 0 8px}.shelf-scroll-controls{gap:4px;flex-wrap:wrap}#shelf-page{order:3;flex-basis:100%;text-align:center}}
@media(max-width:600px){#playground .playground-layout{grid-template-columns:142px minmax(0,1fr);gap:8px}#earned-stickers{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}#playground .sticker-shelf h2{font-size:16px}#playground .sticker-shelf p{font-size:12px}.shelf-scroll-controls button{min-width:0;font-size:18px;padding:0}.scene-switcher{gap:4px;flex-wrap:wrap}.scene-switcher select{max-width:100%;width:100%;order:3}.scene-workspace{align-self:start;position:sticky;top:8px}}
/* Tiny foil glints follow the cut-out; the sticker picture stays unobscured. */
.sticker.legendary .sticker-art{filter:saturate(.95) brightness(1.06) drop-shadow(0 0 4px #80d5ff)}
.sticker.legendary:before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background-image:radial-gradient(circle,#fff 0 1px,transparent 1.8px),radial-gradient(circle,#d3f7ff 0 .8px,transparent 1.6px),radial-gradient(circle,#fff1bf 0 1px,transparent 2px);background-size:19px 23px,29px 31px,37px 27px;background-position:3px 6px,15px 18px,22px 9px;mask-image:var(--sticker-sheet,url('sticker-sheet.png'));mask-size:var(--sticker-sheet-size,600% 500%);mask-position:var(--sx) var(--sy);opacity:.3;animation:legendary-glints 3.6s ease-in-out infinite}
.sticker.legendary:after{animation-duration:2.6s}
@keyframes legendary-glints{0%,100%{opacity:.18}45%{opacity:.62}70%{opacity:.28}}
.album-sticker.locked .sticker:before{display:none}
@media(prefers-reduced-motion:reduce){.sticker.legendary:before{animation:none;opacity:.25}}
/* A single compact sort control leaves the native swipe/hold tray intact. */
.sticker-sort{display:flex;align-items:center;gap:8px;margin:6px 0 10px;color:#75608d;font-size:14px;font-weight:800}
.sticker-sort select{flex:1;min-width:0;min-height:44px;padding:8px 10px;border:2px solid #d9cbed;border-radius:14px;background:#fffdf7;color:#70558d;font:inherit;touch-action:manipulation}
