.album-shell {
    --album-controls-width: 490px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 36px;
    text-align: center;
    color: #e7edf5;
}
.album-shell [hidden] { display: none !important; }
.album-heading { display: flex; align-items: center; justify-content: center; gap: 13px; }
.album-heading img { object-fit: contain; }
.album-heading h1 { margin: 2px 0 0; font-size: 30px; line-height: 1.2; }
.album-eyebrow { color: #c9ac77; font-size: 9px; font-weight: 750; letter-spacing: .2em; }
.album-intro { margin: 12px 0 20px; color: #afbdd0; font-size: 13px; }
.album-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 18px; }
.album-stat { display: grid; gap: 3px; }
.album-stat strong { font-size: 22px; font-variant-numeric: tabular-nums; color: #eddbb7; }
.album-stat span { color: #a9bad0; font-size: 11px; }
.album-tabs, .album-kinds { display: flex; justify-content: center; gap: 7px; }
.album-tabs { margin-bottom: 18px; }
.album-tabs button, .album-kinds button {
    border: 1px solid #42516a;
    border-radius: 8px;
    background: #152238;
    color: #d1dbeb;
    padding: 9px 16px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.album-tabs button[aria-pressed="true"] { background: #b99039; border-color: #d7b257; color: #111827; font-weight: 750; }
.album-library { position: relative; z-index: 5; width: min(100%, var(--album-controls-width)); margin: 0 auto 8px; text-align: left; }
.album-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
.album-kinds button { display: flex; align-items: center; justify-content: center; gap: 7px; box-sizing: border-box; min-width: 0; min-height: 42px; padding: 9px 12px; }
.album-kinds img { width: 21px; height: 21px; object-fit: contain; }
.album-kinds button[aria-pressed="true"] { background: #2b302c; border-color: #b79552; color: #f6ddb0; }
.album-kinds button[aria-expanded="true"] { border-color: #dab66b; box-shadow: 0 0 0 1px #dab66b33; }
.album-library-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(900px, calc(100vw - 48px)); padding: 16px; box-sizing: border-box; max-height: min(460px, 65dvh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #62718a; border-radius: 12px; background: #142137; box-shadow: 0 18px 45px #0008; }
.album-library-search { display: block; margin-bottom: 12px; }
.album-library-search input { box-sizing: border-box; width: 100%; height: 37px; border: 1px solid #50617a; border-radius: 7px; padding: 0 12px 0 36px; color: #e4eaf4; background: #0e1a2c url("images/filter-icons/search.png?v=1") no-repeat 11px center / 17px; font: inherit; font-size: 12px; }
.album-library-empty { font-size: 13px; color: #c1ccdc; }
.album-status, .album-guest { font-size: 12px; color: #b5c8df; margin: 12px 0; }
.album-status:empty { display: none; }
.album-status.is-error { color: #fda4af; }
.album-guest a { color: #efcd89; }
.album-tools { display: flex; justify-content: center; gap: 8px; width: min(100%, var(--album-controls-width)); margin: 0 auto 10px; }
.album-search { flex: 1; min-width: 0; }
.album-tools input, .album-tools select { box-sizing: border-box; width: 100%; height: 38px; border: 1px solid #42516a; border-radius: 8px; color: #d7e1ef; font: inherit; font-size: 12px; padding: 0 12px 0 36px; }
.album-tools input { background: #101b2d url("images/filter-icons/search.png?v=1") no-repeat 11px center / 17px; }
.album-tools select { background: #101b2d url("images/filter-icons/category.png?v=1") no-repeat 10px center / 18px; padding-right: 8px; cursor: pointer; }
.album-filter { max-width: 185px; }
.album-book {
    position: relative;
    container-type: inline-size;
    box-sizing: border-box;
    aspect-ratio: 3 / 2;
    background: url("images/collection/football-sticker-album-v1.png?v=1") center / 100% 100% no-repeat;
    color: #20384d;
    isolation: isolate;
    font-family: Arial, Helvetica, sans-serif;
}
/* Bound the complete grid to the white paper, above its diagonal lower edge. */
.album-spread { --album-card-height: clamp(70px, calc(20cqw - 36px), 188px); position: absolute; inset: 17% 10% 24%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8%; }
.album-page { min-width: 0; min-height: 0; display: grid; grid-template-rows: 38px minmax(0, 1fr); row-gap: 8px; }
.album-page-heading { display: flex; align-items: center; gap: 8px; min-height: 0; padding-bottom: 7px; margin: 0; border-bottom: 2px solid var(--album-ink); text-align: left; color: #1c3c55; }
.album-page-heading > img { width: 27px; height: 27px; padding: 3px; box-sizing: border-box; object-fit: contain; background: #173c56; border-radius: 50%; }
.album-page-title { font-size: 17px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.album-shell .album-page-title a { color: inherit; text-decoration: none; }
.album-page-range { margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 700; color: #425c70; font-variant-numeric: tabular-nums; }
.album-page-grid { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 10px 13px; }
.album-slot { position: relative; min-width: 0; min-height: 0; height: min(100%, calc(var(--album-card-height) * 1.18 + 86px)); align-self: center; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 17px 5px 5px; border: 1px solid #68859b70; border-radius: 8px; background: #f8f5e988; color: #19364e; }
.album-slot.is-ready { border: 1px dashed #317853; background: #fcfbefc9; }
.album-slot.is-pasted { border-color: #7b8b9066; background: #faf7eceb; }
.album-sticker { --shop-body-height: var(--album-card-height); display: flex; width: 100%; justify-content: center; position: relative; flex-shrink: 0; padding: 0; margin: 0 auto; border: 0; background: transparent; font: inherit; cursor: pointer; perspective: 700px; }
.album-sticker .shop-card-image-frame { margin: 0; }
.album-sticker .shop-card-image { pointer-events: none; }
.album-placeholder { width: 100%; height: calc(var(--shop-body-height) * 1.18); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(3px, calc(var(--shop-body-height) * .045), 8px); }
.album-placeholder-number { color: #637e91; font-size: clamp(24px, calc(var(--shop-body-height) * .42), 44px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.album-placeholder img { width: clamp(14px, calc(var(--shop-body-height) * .18), 24px); height: clamp(14px, calc(var(--shop-body-height) * .18), 24px); flex-shrink: 0; object-fit: contain; opacity: .75; filter: grayscale(1); }
.album-placeholder span { font-size: clamp(9px, calc(var(--shop-body-height) * .075 + 4px), 11px); font-weight: 700; line-height: 1.2; white-space: nowrap; color: #516c7f; letter-spacing: .04em; }
.album-slot-name { display: flex; align-items: center; justify-content: center; margin: 3px 0 2px; min-height: 28px; width: 100%; font-size: 12px; font-weight: 750; line-height: 1.15; overflow-wrap: anywhere; }
.album-slot-state { display: block; color: #52697b; font-size: 11px; min-height: 16px; line-height: 16px; }
.album-shell .album-slot-name a { color: inherit; text-decoration: none; }
.album-slot-name a:hover { text-decoration: underline; text-underline-offset: 2px; }
.album-slot.is-pasted .album-slot-state { color: #28613c; }
.album-slot.is-ready .album-slot-state { color: #195c36; font-weight: 750; }
.album-paste-label { width: 100%; border: 0; border-radius: 3px; background: #e1eedca8; padding: 0; font-family: inherit; cursor: pointer; }
.album-number { position: absolute; top: 0; left: 0; padding: 2px 7px; border-radius: 7px 0 5px 0; color: #fff; background: var(--album-ink, #17559f); font-size: 9px; font-weight: 800; letter-spacing: .06em; line-height: 12px; }
.album-book-footer { position: absolute; left: 20%; right: 20%; bottom: 18%; display: flex; justify-content: space-between; gap: 12px; color: #173b57; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.album-book-footer > span { padding: 5px 9px; background: #f8f4e8; border: 1px solid #a8b6be; border-radius: 2px; }
.album-folio { white-space: nowrap; }
.album-page-corner { position: absolute; z-index: 4; bottom: 8.5%; width: 62px; height: 62px; padding: 0; border: 0; background: none; color: #24465d; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.album-page-corner.is-previous { left: 3.2%; }
.album-page-corner.is-next { right: 3.2%; }
.album-page-corner::before { content: ""; position: absolute; inset: 8px; background: linear-gradient(135deg, #d7ccaf, #fff9e4 52%, #ece0bb); clip-path: polygon(0 0, 100% 100%, 0 100%); filter: drop-shadow(2px -2px 2px #172c4155); transition: inset .18s ease, background-color .18s ease; }
.album-page-corner.is-next::before { transform: scaleX(-1); }
.album-page-corner > span { position: absolute; left: 14px; bottom: 10px; font-family: Arial, sans-serif; font-size: 27px; font-weight: 700; line-height: 1; pointer-events: none; }
.album-page-corner.is-next > span { left: auto; right: 14px; }
.album-page-corner:focus-visible::before { inset: 2px; }
.album-paste-all { margin-top: 12px; }
.album-shell button:disabled { cursor: default; opacity: .45; }
.album-shell .album-sticker:disabled { opacity: 1; }
.album-paste-all { padding: 10px 20px; border: 1px solid #d8b566; border-radius: 8px; background: #b99039; color: #18202b; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.album-footnote { margin: 22px auto 0; max-width: 600px; color: #a4b3c7; font-size: 11px; line-height: 1.7; }
.album-set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.album-set { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; border: 1px solid #485b73; border-radius: 8px; background: #1d2d44; padding: 12px; text-align: left; color: #e2e9f4; font: inherit; cursor: pointer; }
.album-set img { width: 42px; height: 42px; object-fit: contain; }
.album-set-title { display: grid; gap: 6px; font-size: 12px; }
.album-set small { color: #b7c8dc; font-size: 10px; line-height: 1.4; }
.album-meter { display: block; height: 4px; overflow: hidden; background: #070f20; border-radius: 5px; }
.album-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #af8534, #f2d795); }
.album-set.is-current { border-color: #d6ba79; background: #353327; }
.album-set.is-complete small { color: #d6ebb1; }
.album-badges { padding: 22px; border: 1px solid #5c503d; border-radius: 14px; background: #101b2d; }
.album-badges .shop-badge-grid { justify-content: center; }
.album-badges .shop-token.is-locked { opacity: .5; }
.album-token-entry { display: grid; justify-items: center; align-content: start; gap: 8px; }
.album-detail { position: fixed; inset: 0; margin: auto; width: min(360px, calc(100% - 32px)); box-sizing: border-box; padding: 25px 20px 20px; border: 1px solid #a68b51; border-radius: 15px; background: #101b2d; color: #ecdeb9; text-align: center; max-height: calc(100dvh - 32px); overflow-y: auto; }
.album-detail::backdrop { background: #050b16b8; backdrop-filter: blur(5px); }
.album-detail h2 { margin: 0 20px 10px; font-size: 18px; }
.album-detail .shop-card { --shop-body-height: 260px; border: 0; background: none; margin: 0 auto; padding: 0; }
.album-detail .shop-card-name-row, .album-detail .shop-card-meta { display: none; }
.album-detail > a { font-size: 12px; color: #9bcfea; }
.album-detail-close { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 24px; color: #9eaec4; cursor: pointer; }
.album-empty { padding: 10px; font-size: 13px; color: #314f64; background: #faf7ed; position: absolute; top: 48%; left: 15%; right: 15%; }
.album-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.album-shell :is(button, a, input, select, summary):focus-visible { outline: 2px solid #28a3d7; outline-offset: 4px; border-radius: 4px; }
.album-book:focus-visible { outline: 2px solid #28a3d7; outline-offset: 2px; }
/* One continuous, two-sided page. Cover and stationary page never move. */
.album-turn-stage { position: absolute; inset: 0; z-index: 10; pointer-events: none; perspective: 1800px; perspective-origin: 50% 50%; transform-style: preserve-3d; }
.album-turn-sheet { position: absolute; transform-style: preserve-3d; will-change: transform; }
.album-turn-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; background: #f5f0df; }
.album-turn-face.is-back { transform: rotateY(180deg); }
.album-turn-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #11263d70, #11263d10 70%); }
.album-turn-paper { position: absolute; top: 0; background-image: url("images/collection/football-sticker-album-v1.png?v=1"); background-repeat: no-repeat; overflow: hidden; }
.album-turn-shadow { position: absolute; top: 0; background: linear-gradient(90deg, #122b4970, #132c49b0 35%, transparent); filter: blur(9px); }
.album-paste-stage { position: absolute; inset: 0; z-index: 3; pointer-events: none; perspective: 700px; transform-style: preserve-3d; }
.album-paste-sheet { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: center top; }
.album-paste-strip { position: absolute; left: 0; overflow: hidden; transform-origin: center top; backface-visibility: hidden; will-change: transform; }
.album-paste-contact { position: absolute; left: 8%; right: 8%; top: 0; height: 8px; border-radius: 50%; background: #cfb47d38; box-shadow: 0 3px 7px #1a2a3438; }
.album-sticker > .is-being-pasted { visibility: hidden; }
.album-slot:has(.album-paste-stage) { z-index: 3; }
@media (hover: hover) {
    .album-set:hover { border-color: #ccab63; background-color: #293950; }
    .album-slot.is-ready:hover { border-color: #13734a; background: #fffffff2; }
    .album-kinds button:hover { border-color: #dab66b; }
    .album-page-corner:not(:disabled):hover::before { inset: 2px; }
}
@media (max-width: 1100px) {
    .album-shell { width: min(900px, calc(100% - 24px)); }
    .album-spread { --album-card-height: clamp(60px, calc(30cqw - 100px), 145px); }
    .album-page { grid-template-rows: 34px minmax(0, 1fr); }
    .album-page-grid { grid-template-rows: minmax(0, 1fr); gap: 8px; }
    .album-page-title { font-size: 15px; }
    .album-page-range { font-size: 10px; }
    .album-kinds button { padding: 8px; }
}
@media (max-width: 700px) {
    .album-set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .album-page-title { font-size: 13px; }
    .album-page-heading { gap: 5px; }
    .album-page-heading > img { width: 22px; height: 22px; }
    .album-page-range { font-size: 9px; }
}
@media (max-width: 540px) {
    .album-shell { padding-top: 20px; }
    .album-heading h1 { font-size: 25px; }
    .album-heading > img { width: 42px; height: 42px; }
    .album-intro { font-size: 11px; }
    .album-stats { gap: 20px; }
    .album-stat strong { font-size: 20px; }
    .album-stat span { font-size: 9px; }
    .album-tools { gap: 6px; }
    .album-kinds { gap: 6px; }
    .album-kinds button { gap: 5px; padding: 8px 5px; font-size: 11px; }
    .album-tools input, .album-tools select { font-size: 11px; }
    .album-filter { max-width: 156px; }
    .album-book { aspect-ratio: 3 / 4; background-size: 200% 100%; background-position: left center; }
    .album-spread { --album-card-height: clamp(56px, calc(50cqw - 82px), 145px); inset: 20% 10% 30% 18%; grid-template-columns: minmax(0, 1fr); }
    .album-page + .album-page { display: none; }
    .album-page-grid { gap: 11px; }
    .album-slot { padding: 15px 4px 4px; }
    .album-page-title { font-size: 16px; }
    .album-page-range { font-size: 10px; }
    .album-slot-name { font-size: 11px; }
    .album-slot-state { font-size: 10px; }
    .album-book-footer { font-size: 10px; }
    .album-book-footer > span { padding: 4px 6px; }
    .album-book-footer { left: 24%; right: 12%; bottom: 22%; gap: 5px; }
    .album-page-corner { width: 50px; height: 50px; }
    .album-page-corner::before { inset: 5px; }
    .album-page-corner > span { left: 10px; bottom: 7px; font-size: 25px; }
    .album-page-corner.is-next > span { left: auto; right: 10px; }
    .album-library-panel { padding: 11px; }
    .album-set { grid-template-columns: 30px minmax(0, 1fr); padding: 11px 8px; gap: 8px; }
    .album-set img { width: 30px; height: 30px; }
    .album-set-title { font-size: 11px; }
    .album-footnote { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .album-page-corner::before { transition: none; }
}
