/* Optional themed albums reuse the original cards, silhouettes and controls. No animation or saved preferences. */
.album-style{display:flex;justify-content:flex-end;flex:none;margin:0 2px 5px}
.album-style button{display:flex;align-items:center;gap:8px;min-height:44px;padding:3px 12px;border:2px solid #fff;border-radius:16px;background:#fff8e9;color:#58416c;font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 2px 5px #65473522}
.album-style img{width:40px;height:32px;object-fit:contain}
.album-style button[aria-pressed=true]{background:#e4f2df;border-color:#729774}
.album-style button:focus-visible{outline:3px solid #58416c;outline-offset:2px}
html #modal[open]:has(.book-grid) .book-grid.album-steamer .book-toy{background:#f8f4e7!important;border-color:#dfd6b9!important;box-shadow:0 3px 5px #765c6b18!important}
html #modal[open]:has(.book-grid) .book-grid.album-themed .book-art{position:relative;isolation:isolate;overflow:visible}
html #modal[open]:has(.book-grid) .book-grid.album-steamer .book-art:before{content:'';position:absolute;inset:4% 0 -3%;background:url('./assets/dumpling-shuffle/giant-steamer-stage.webp') center/contain no-repeat;z-index:-1;pointer-events:none}
html #modal[open]:has(.book-grid) .book-grid.album-themed .book-toy .book-art>.toy{width:min(76cqw,76cqh,110px)!important;height:min(76cqw,76cqh,110px)!important;margin:auto;transform:translateY(-11%);z-index:1}
html #modal[open]:has(.book-grid) .book-grid.album-themed .book-label{position:relative;background:#fffaf0dc;border-radius:10px;padding:2px}

html #modal[open]:has(.book-grid) .book-grid.album-themed .book-label{width:100%;box-sizing:border-box;flex-direction:column;gap:2px}
html #modal[open]:has(.book-grid) .book-grid.album-themed .book-label strong{display:block;width:100%;white-space:normal;overflow-wrap:break-word}

.album-style-icon{width:40px;height:32px;display:grid;place-items:center;pointer-events:none}
.album-style-icon .toy{width:32px!important;height:32px!important;max-width:32px;max-height:32px}
html #modal[open]:has(.book-grid) .book-grid.album-themed:not(.album-steamer) .book-art:before{content:'';position:absolute;left:50%;top:50%;width:min(92cqw,110cqh,150px);height:min(64cqw,78cqh,100px);transform:translate(-50%,-30%);box-sizing:border-box;z-index:-1;pointer-events:none}
/* Soft pillows, tiny glass worlds, bakery trays and jelly pools use the game's pastel palette. */
html #modal[open]:has(.book-grid) .book-grid.album-themed.album-sleepy .book-art:before{border-radius:42% 42% 30% 30%;border:4px solid #fff8df;background:radial-gradient(ellipse at 50% 15%,#fff9e9,#d6bce9 78%);box-shadow:0 5px 0 #af92c4,0 8px 8px #73598a22}
html #modal[open]:has(.book-grid) .book-grid.album-themed.album-tiny .book-art:before{height:min(94cqw,110cqh,145px);transform:translate(-50%,-50%);border:3px solid #93cdbd;border-bottom:9px solid #7eb99f;border-radius:48% 48% 18% 18%;background:linear-gradient(#f5fffc88 50%,#c5e6bc 100%);box-shadow:inset 5px 2px #fff9}
html #modal[open]:has(.book-grid) .book-grid.album-themed.album-bakery .book-art:before{height:min(48cqw,58cqh,80px);border:5px ridge #d8a76f;border-radius:38%;background:repeating-linear-gradient(45deg,#fff0ca 0 10px,#f7e2b9 10px 12px);box-shadow:0 4px 0 #b78657,0 6px 7px #765c6b22}
html #modal[open]:has(.book-grid) .book-grid.album-themed.album-jelly .book-art:before{height:min(56cqw,70cqh,90px);border:4px solid #b1eadc;border-radius:50%;background:radial-gradient(ellipse,#effffa 30%,#a6e3dc 78%);box-shadow:0 5px 0 #7ebfbe,inset 0 4px #fff9}
html #modal[open]:has(.book-grid) .book-grid.album-themed.album-mini .book-art:before{height:min(94cqw,108cqh,145px);transform:translate(-50%,-50%);border:6px solid #dfb88c;border-bottom-width:12px;border-radius:12px;background:linear-gradient(#f7ead7,#fffaf2);box-shadow:inset 0 5px 7px #87604425,0 3px 0 #ba926d}
html #modal[open]:has(.book-grid) .book-grid.album-themed.album-halloween .book-art:before{height:min(94cqw,110cqh,145px);transform:translate(-50%,-50%);border:3px solid #c8b2de;border-bottom:8px solid #c7a276;border-radius:50% 50% 38% 38%;background:radial-gradient(circle at 22% 22%,#ffecad 0 13%,transparent 14%),linear-gradient(#e3d5f5,#c5c5e2);box-shadow:inset 0 0 0 4px #ffffff45}
html #modal[open]:has(.book-grid) .book-grid.album-themed.album-winter .book-art:before{height:min(94cqw,110cqh,145px);transform:translate(-50%,-50%);border:3px solid #b4d6e6;border-bottom:9px solid #90b9c9;border-radius:50% 50% 32% 32%;background:radial-gradient(circle at 25% 30%,#fff 0 3%,transparent 4%),radial-gradient(circle at 78% 18%,#fff 0 2%,transparent 3%),linear-gradient(#e2f6ff77 55%,#fff 95%);box-shadow:inset 5px 0 #fff8}

@media(max-width:360px){html #modal[open]:has(.book-grid) .book-grid.album-themed{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
