.sticker-book{max-width:1000px;width:calc(100% - 24px);max-height:94dvh;padding:22px 22px 16px;background:#278c9e;border:5px solid #1a6979;border-radius:26px;box-shadow:0 12px 0 #155469,0 24px 70px #14323d70;overflow:auto;color:#24495a}.book-title{text-align:center;color:white;padding:0 40px}.book-title h2{font-size:30px;margin:4px 0}.book-title .eyebrow{color:#fff1a0}.book-title p{color:#e8fbff;margin:4px 0 12px}.sticker-book .close{width:44px;height:44px;z-index:5;background:#fff2ad;right:12px;top:12px}.sticker-book #book-sections{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:15px 0 0}.sticker-book #book-sections button{background:#bce8e8;padding:12px 17px;min-height:46px;border-radius:14px 14px 0 0;font-size:16px;font-weight:800;color:#244b58}.sticker-book #book-sections button[aria-pressed=true]{background:#ffe797;box-shadow:inset 0 5px #f7bb47}.book-binding{position:relative;background:#fff6d7;border-radius:9px 18px 18px 9px;border-bottom:7px double #c2b69a;box-shadow:0 4px 0 #f9edd0,0 8px 0 #c1b493;perspective:1500px}.book-spread{display:grid;grid-template-columns:1fr 1fr;min-height:400px}.paper{min-width:0;padding:24px 22px;position:relative;background:repeating-linear-gradient(0deg,#fffaf000,#fffaf000 27px,#e9d6a326 28px),#fffaf0}.left-paper{border-radius:9px 0 0 9px;background-color:#fff8df;box-shadow:inset -18px 0 20px -18px #907b55}.right-paper{border-radius:0 18px 18px 0;box-shadow:inset 18px 0 20px -18px #907b55}.paper h3{font-size:23px;text-align:center;margin:0 0 16px;font-family:Nunito,sans-serif}.paper p{color:#466575;font-size:16px;text-align:center}.collection-score{font-size:28px!important;font-weight:900}.collection-stars{font-size:42px;text-align:center;letter-spacing:6px;color:#e4a12d;margin:12px 0}.collection-note{line-height:1.6}.collection-ribbon{background:#fbe198;border-radius:12px;padding:14px;font-weight:800;margin-top:25px!important;border:2px dashed #dfa842}.exclusive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:start;margin-top:42px}.album-sticker{text-align:center;min-width:0;display:flex;align-items:center;flex-direction:column;gap:6px;padding:8px 2px}.album-sticker .sticker{width:100%;max-width:140px;height:auto;aspect-ratio:1;transform:rotate(-4deg)}.album-sticker:nth-child(even) .sticker{transform:rotate(5deg)}.album-sticker strong{font-size:16px}.rarity-tag{border-radius:20px;padding:4px 8px;background:#daf0d9;color:#305832;font-size:14px;line-height:1.4}.rarity-tag.rare{background:#ffe7a3;color:#775000}.rarity-tag.legendary{background:#e7daff;color:#65428b}.ownership-label{font-size:14px;line-height:1.5;font-weight:700}.album-sticker.locked .sticker .sticker-art{filter:brightness(0) opacity(.18)}.locked .sticker:after,.locked .sticker-glitter{display:none}.locked .sticker:before{content:'?';position:absolute;inset:0;display:grid;place-items:center;z-index:2;font-size:42px;font-weight:900;color:#fff}.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:35px}.album-empty{padding:35px 10px;line-height:1.8}.empty-preview{margin:25px auto;opacity:.3;filter:grayscale(1)}.book-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:23px 0 12px;color:white;font-weight:700}.book-navigation button{min-height:48px;padding:12px 22px;background:#ffe69a;border-radius:20px;font-weight:800;font-size:17px}.book-navigation button:disabled{opacity:.45;cursor:default}.book-bottom{display:flex;gap:18px;align-items:center;justify-content:space-between}.book-bottom .primary{font-size:16px;padding:12px 16px;margin:0}.book-bottom p{color:#ecffff;font-size:14px;margin:0;max-width:290px}.turning-paper{display:none;position:absolute;top:0;bottom:0;left:50%;width:50%;border-radius:0 18px 18px 0;background:linear-gradient(90deg,#b3a37d,#fff9e8 12%,#fff9e8 85%,#e7d8af);transform-origin:left;pointer-events:none;backface-visibility:hidden;z-index:3}.turn-forward .turning-paper{display:block;animation:album-forward .42s ease-in-out}.turn-back .turning-paper{display:block;left:0;transform-origin:right;border-radius:9px 0 0 9px;animation:album-back .42s ease-in-out}.collection-cheer .collection-stars{animation:book-cheer .8s ease-in-out 2}.set-complete{border-color:#b990dd;background:#f5eaff}#new-sticker{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.sticker-reveal #new-sticker .sticker{width:115px;height:115px}@keyframes album-forward{0%{transform:rotateY(0);opacity:1}95%{transform:rotateY(-175deg);opacity:1}100%{transform:rotateY(-180deg);opacity:0}}@keyframes album-back{0%{transform:rotateY(0);opacity:1}95%{transform:rotateY(175deg);opacity:1}100%{transform:rotateY(180deg);opacity:0}}@keyframes book-cheer{50%{transform:scale(1.13) rotate(4deg)}}
@media(max-width:700px){.sticker-book{padding:16px 10px 12px;border-width:3px}.book-title h2{font-size:25px}.book-title{padding:0 30px}.sticker-book #book-sections{gap:4px}.sticker-book #book-sections button{font-size:14px;padding:10px 8px}.paper{padding:18px 10px}.paper h3{font-size:19px}.exclusive-grid{grid-template-columns:1fr;margin-top:0;gap:0}.exclusive-grid .album-sticker{display:grid;grid-template-columns:70px minmax(0,1fr);text-align:left;gap:3px;padding:7px 0}.exclusive-grid .sticker{grid-row:span 3;width:70px}.album-sticker strong{font-size:14px}.rarity-tag{font-size:14px;padding:3px 5px}.ownership-label{font-size:14px}.collection-stars{font-size:30px;letter-spacing:0}.collection-score{font-size:23px!important}.paper p{font-size:14px}.collection-ribbon{padding:8px}.album-grid{grid-template-columns:1fr;margin-top:0}.album-grid .album-sticker{display:grid;grid-template-columns:65px minmax(0,1fr);text-align:left}.album-grid .sticker{grid-row:span 3;width:65px}.book-bottom{flex-direction:column;gap:12px}.book-bottom p{text-align:center}.book-navigation button{padding:10px 16px}.book-spread{min-height:365px}}
@media(max-width:390px){.book-spread{grid-template-columns:44% 56%}.paper{padding:15px 7px}.exclusive-grid .album-sticker{grid-template-columns:50px minmax(0,1fr)}.exclusive-grid .sticker{width:50px}.book-title h2{font-size:22px}.collection-stars{font-size:27px}.turning-paper{left:44%;width:56%}}
@media(prefers-reduced-motion:reduce){.turning-paper{display:none!important}.collection-cheer .collection-stars{animation:none}}
/* Compact spreads: a whole game per leaf, or six general stickers per leaf. */
.sticker-book{overflow-x:hidden}.book-title .eyebrow{display:none}.book-title h2{margin:0 0 3px}.book-title p{font-size:14px;margin:3px 0}
#book-remaining{color:#fff0ad;font-weight:800}
.book-spread{grid-template-columns:1fr 1fr;min-height:390px}
.paper{padding:18px 18px 14px}.paper h3{font-size:21px;margin:0 0 5px;line-height:1.2}
.paper .collection-score,.paper .rarity-count{font-size:14px!important;margin:5px 0 12px;font-weight:800;color:#63737c}
.exclusive-grid{grid-template-columns:1fr;gap:8px;margin:0}
.exclusive-grid .album-sticker{display:grid;grid-template-columns:94px minmax(0,1fr);column-gap:12px;row-gap:3px;text-align:left;padding:4px 0;align-items:center}
.exclusive-grid .sticker{grid-row:1/4;width:94px;height:94px;max-width:none}
.exclusive-grid .rarity-tag{justify-self:start}.exclusive-grid strong{align-self:end}.exclusive-grid .ownership-label{align-self:start}
.paper .collection-complete{font-size:14px;font-weight:900;color:#7251a1;margin:10px 0 0}
.collection-cheer .collection-score,.collection-cheer .collection-complete{animation:book-cheer .8s ease-in-out 2}
.album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 10px;margin:0}
.album-grid .album-sticker{display:flex;flex-direction:column;gap:4px;padding:3px 0;text-align:center}
.album-grid .sticker{width:100%;max-width:94px;aspect-ratio:1;height:auto}
.album-sticker strong{font-size:14px;line-height:1.2;overflow-wrap:break-word}
.rarity-tag{font-size:13px;padding:2px 6px;line-height:1.3}
.ownership-label{font-size:13px;line-height:1.3}
.turning-paper{left:50%;width:50%;overflow:hidden;backface-visibility:hidden;box-shadow:-8px 0 16px #5b493524}
.turning-paper>.paper{height:100%;box-sizing:border-box;opacity:.9}
.turning-paper .sticker:before,.turning-paper .sticker:after,.turning-paper .sticker-glitter{animation-play-state:paused!important}
.book-navigation{margin:14px 0 8px;font-size:14px}.book-bottom p{font-size:12px}.book-bottom{gap:10px}
@media(max-width:700px){
 .sticker-book{padding:14px 7px 10px}.book-title h2{font-size:24px}
 .paper{padding:14px 10px}.paper h3{font-size:18px;min-height:2.4em;display:grid;place-items:center}
 .exclusive-grid .album-sticker{grid-template-columns:62px minmax(0,1fr);column-gap:7px;min-height:110px}
 .exclusive-grid .sticker{width:62px;height:62px}.exclusive-grid .rarity-tag{font-size:12px}
 .album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 6px}
 .album-grid .sticker{width:100%;max-width:76px}.album-grid .rarity-tag{font-size:12px;padding:2px 4px}
 .album-grid .ownership-label{font-size:12px}.album-grid strong{font-size:13px}
 .turning-paper>.paper{padding:14px 10px}.book-bottom{flex-direction:row;justify-content:center}.book-bottom p{display:none}
}
@media(max-width:420px){
 .paper{padding:12px 7px}.paper h3{font-size:16px}.paper .rarity-count{min-height:2.6em;font-size:12px!important}
 .exclusive-grid .album-sticker{grid-template-columns:1fr;text-align:center;gap:2px;min-height:0;padding:4px 0}
 .exclusive-grid .sticker{grid-row:auto;width:61px;height:61px;justify-self:center}.exclusive-grid .rarity-tag{justify-self:center}
 .exclusive-grid .ownership-label{font-size:12px}.exclusive-grid{gap:6px}.book-title{padding:0 27px}
 .album-grid strong{font-size:12px}.album-grid .sticker{max-width:60px}.album-grid{gap:9px 5px}
 .album-grid .rarity-tag{padding:2px 3px}.book-spread{grid-template-columns:1fr 1fr}
 .sticker-book .book-binding>#book-prev,.sticker-book .book-binding>#book-next{top:auto;bottom:-60px;height:46px;width:46px}
 .sticker-book .book-binding>#book-prev{left:0}.sticker-book .book-binding>#book-next{right:0}
 .book-navigation{min-height:48px;margin:12px 0 8px}
}
@media(prefers-reduced-motion:reduce){.collection-cheer .collection-score,.collection-cheer .collection-complete{animation:none}}
.album-sticker.just-earned{background:linear-gradient(145deg,#fff9d8,#e8f8ee);outline:3px solid #dfbd66;outline-offset:2px;border-radius:18px;animation:book-earned-pop .65s ease-out both}
.album-sticker.just-earned.rare{outline-color:#d2a04b}
@keyframes book-earned-pop{0%{transform:scale(.88);opacity:.4}60%{transform:scale(1.04);opacity:1}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.album-sticker.just-earned{animation:none}}
/* Nine stickers per leaf; two complete game collections per leaf. */
.sticker-book{max-width:1100px;padding:15px 18px 12px}
.book-spread{min-height:0}.paper{padding:14px 16px 12px}
.album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px}
.album-grid .sticker{max-width:76px}.album-grid .album-sticker{gap:2px}
.album-grid strong{font-size:13px}.album-grid .rarity-tag,.album-grid .ownership-label{font-size:12px}
.collection-half+.collection-half{border-top:2px dashed #d6c7a0;margin-top:12px;padding-top:12px}
.collection-half h3{font-size:18px;min-height:0}.collection-half .collection-score{margin:3px 0 7px;font-size:12px!important}
.collection-half .exclusive-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.collection-half .exclusive-grid .album-sticker{display:flex;flex-direction:column;text-align:center;gap:3px;padding:0;min-height:0}
.collection-half .exclusive-grid .sticker{width:100%;height:auto;aspect-ratio:1;max-width:84px}
.collection-half .exclusive-grid strong,.collection-half .exclusive-grid .ownership-label{align-self:auto;font-size:12px}
.collection-half .rarity-tag{font-size:11px}.collection-half .collection-complete{font-size:11px;margin:5px 0 0}
.book-sticker-flight{position:fixed!important;z-index:20;pointer-events:none;transform-origin:top left;animation:none!important;margin:0!important}
.receiving-sticker .just-earned{animation:none}.receiving-sticker .just-earned>.sticker{visibility:hidden}
@media(min-width:701px) and (max-height:800px){
 .album-grid .sticker{max-width:64px}.album-grid{gap:6px 10px}
 .collection-half .exclusive-grid .sticker{max-width:72px}
 .sticker-book #book-sections{margin-top:8px}.book-title h2{font-size:26px}
 .paper .rarity-count{margin:3px 0 6px}
}
@media(max-width:700px){
 .sticker-book{padding:12px 5px 10px}.paper{padding:10px 7px}
 .paper h3{min-height:0}.album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 5px}
 .album-grid .sticker{max-width:64px}.album-grid strong{font-size:11px}
 .album-grid .rarity-tag,.album-grid .ownership-label{font-size:10px;padding:1px 3px}
 .collection-half h3{font-size:15px}.collection-half .exclusive-grid{gap:5px}
 .collection-half .exclusive-grid strong,.collection-half .exclusive-grid .ownership-label{font-size:10px}
 .collection-half .rarity-tag{font-size:10px;padding:1px 3px}.collection-half .exclusive-grid .sticker{max-width:66px}
}
@media(max-width:420px){
 .paper{padding:10px 5px}.album-grid{gap:10px 3px}.album-grid .sticker{max-width:46px}
 .collection-half h3{font-size:13px}.collection-half .exclusive-grid{gap:3px}
 .collection-half .exclusive-grid .sticker{max-width:46px}
}

/* Admire a sticker without changing ownership or opening another screen. */
.album-sticker[role=button]{cursor:pointer;border-radius:14px;touch-action:pan-y}.album-sticker.sticker-admired,.album-sticker[role=button]:focus-visible{outline:3px solid #b488dd;outline-offset:2px;background:linear-gradient(135deg,#fff5cd,#eee5ff);box-shadow:0 4px 12px #80619b25}.album-sticker.sticker-wiggle .sticker{animation:book-sticker-wiggle .5s ease-in-out}@keyframes book-sticker-wiggle{0%,100%{transform:rotate(0) scale(1)}25%{transform:rotate(-9deg) scale(1.08)}55%{transform:rotate(8deg) scale(1.08)}80%{transform:rotate(-4deg) scale(1.03)}}@media(prefers-reduced-motion:reduce){.album-sticker.sticker-wiggle .sticker{animation:none}}

/* Empty end-of-section slots retain the same page geometry without filler content. */
.blank-slot{visibility:hidden!important;pointer-events:none!important}
.book-victory-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;flex:1}.book-victory-actions[hidden]{display:none}.book-victory-actions button{min-height:48px;padding:10px 20px;border:2px solid #fff;border-radius:18px;background:linear-gradient(#ffe89c,#ffd571);color:#684c7b;box-shadow:0 4px #ac8c65;font-size:17px;font-weight:900}.book-victory-actions #book-go-home{background:linear-gradient(#ede1ff,#d9c5f1);box-shadow:0 4px #a28fbd}.book-victory-actions button:focus-visible{outline:3px solid #fff;outline-offset:3px}
