[data-completed-filter-hidden]{display:none!important}
.collection-simple-tools .collection-simple-heading{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:10px;align-items:center;width:100%;grid-column:1/-1}
.collection-simple-tools .collection-simple-heading[hidden]{display:none!important}
.collection-simple-tools .collection-simple-heading :is(h1,h2){grid-column:2;margin:0!important;padding:9px 15px;border:1px solid #d8bb864d;border-radius:10px;background:#090b1526;text-align:center;color:inherit;font-family:inherit!important;font-size:clamp(20px,3vw,29px)!important;font-weight:400;line-height:1.25;white-space:normal!important;text-wrap:balance}
.collection-simple-tools button.collection-simple-back{display:flex!important;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;border:1px solid #ecd3a1;border-radius:8px;color:#22190d;background:#f0ce91;box-shadow:0 2px 5px #0003;cursor:pointer}
.collection-simple-back svg{display:block;flex:none}
.completed-collection-controls{grid-column:1/-1;display:flex;justify-content:center;align-items:stretch;gap:10px;width:100%;margin:12px 0 2px}
.album-tools{flex-wrap:wrap}.album-tools>.completed-collection-controls{flex-basis:100%}
.completed-collection-controls button{flex:0 1 230px;min-width:0;font-family:inherit!important;font-size:16px;font-weight:400;line-height:1.3;min-height:44px;margin:0;padding:10px 16px;border:1px solid #d8bb8680;border-radius:9px;color:inherit;background:transparent;box-shadow:none;cursor:pointer;text-wrap:balance;-webkit-tap-highlight-color:transparent}
.completed-collection-controls button[aria-pressed=true]{color:#20180d;background:#f0ce91;border-color:#f0ce91;box-shadow:0 2px 8px #0003}
.completed-collection-controls button:focus-visible,.collection-simple-back:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.completed-collection-controls button[hidden],.completed-collection-empty[hidden]{display:none!important}
.completed-collection-empty{text-align:center;margin:24px auto;padding:18px;max-width:36ch;color:inherit;font:inherit}
.completed-universe-label{display:none!important}
/* A centred collection heading, then one smaller entry to completed cards. */
body.collection-overview-mode :is(.anodos-universe-return,.noel-wrap>header,.kids-wrap>header,.anodos-admin-footer){display:none!important}
body.collection-overview-mode .album-tools>:not(.collection-simple-heading,.completed-collection-controls){display:none!important}
body.collection-overview-mode .collection-simple-tools{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0;margin-top:14px}
body.collection-overview-mode .full-album-header{display:block;padding:14px 16px;background:#1d152bf2}
body.collection-overview-mode #full-album-summary{display:none!important}
body.collection-overview-mode:not(.completed-only-mode) .completed-collection-controls button{flex-basis:210px;min-height:36px;padding:7px 12px;font-size:14px}
body.collection-overview-mode:not(.completed-only-mode) .collection-simple-heading :is(h1,h2){color:#20180d!important;-webkit-text-fill-color:#20180d!important;text-shadow:none!important;background:#f0ce91;border-color:#f0ce91}
/* Completed view: only its two equal choices above the cards. */
body.completed-only-mode :is(.anodos-universe-return,.noel-wrap>header,.kids-wrap>header,#universe-reserve,.reserve-parts,.reserve-bonus-slot,.bottom-actions,.guest-note,.anodos-admin-footer,#full-album-summary,.full-album-return,#notice){display:none!important}
body.completed-only-mode .album-tools>:not(.completed-collection-controls){display:none!important}
body.completed-only-mode .full-album-header{display:block;padding:14px 16px}
body.completed-only-mode #full-album-dialog{height:94dvh}
body.completed-only-mode .completed-collection-controls{margin:0;gap:10px}
body.completed-only-mode .completed-collection-controls button{flex:1 1 0;max-width:280px;min-height:46px;font-size:18px}
@media(max-width:600px){
 .collection-simple-tools .collection-simple-heading{grid-template-columns:34px minmax(0,1fr) 34px;gap:5px}
 .collection-simple-tools .collection-simple-heading :is(h1,h2){padding:9px 6px;font-size:clamp(18px,5vw,23px)!important}
 .collection-simple-tools button.collection-simple-back{width:32px;min-width:32px;height:32px;min-height:32px}
 body.completed-only-mode .completed-collection-controls{gap:8px}
 body.completed-only-mode .completed-collection-controls button{padding:9px 8px;font-size:15px;min-height:44px}
}

/* The back icon belongs to the completed-cards row, with a clear gap. */
.collection-simple-tools .completed-collection-controls{gap:18px;margin-bottom:14px}
.collection-simple-tools .completed-collection-controls::after{content:"";display:block;flex:0 0 36px;width:36px;pointer-events:none}
.collection-simple-tools .completed-collection-controls button.collection-simple-back{flex:0 0 36px!important;align-self:center;width:36px;min-width:36px;max-width:36px;height:36px;min-height:36px;padding:0;margin:0;background:#f0ce91;color:#20180d}
body.completed-only-mode .collection-simple-tools .completed-collection-controls{gap:18px;margin-bottom:14px}
@media(max-width:600px){
 .collection-simple-tools .completed-collection-controls,body.completed-only-mode .collection-simple-tools .completed-collection-controls{gap:12px}
 .collection-simple-tools .completed-collection-controls::after{flex-basis:32px;width:32px}
 .collection-simple-tools .completed-collection-controls button.collection-simple-back{flex-basis:32px!important;width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px}
}

/* Halloween collection: the castle fills the screen, without a purple outer panel. */
body[data-xp-theme=halloween].collection-overview-mode #full-album-dialog{
 width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;
 border:0;border-radius:0;box-shadow:none;
 background-color:#100b1c;
 background-image:linear-gradient(#100b1c66,#100b1c99),url('https://projetanodos.ca/cartes/mauditHalloween/assets/decor-gothique-v2.webp');
 background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:scroll;
}
body[data-xp-theme=halloween].collection-overview-mode #full-album-dialog::backdrop{background:#100b1c;backdrop-filter:none}
body[data-xp-theme=halloween].collection-overview-mode #full-album-dialog .full-album-header{background:linear-gradient(#100b1cb3,#100b1c55);border-bottom:0;backdrop-filter:blur(4px)}
body[data-xp-theme=halloween].collection-overview-mode #full-album-dialog .overview-card{background:transparent}
/* Other collections already have their own illustrated scenery. Keep it visible. */
body.collection-overview-mode :is(main.noel-wrap,main.kids-wrap,#collection.collection){background:transparent;border:0;box-shadow:none}

/* Completed cards show only the artwork and its ownership message. */
.completed-ownership{display:none}
body.completed-only-mode :is(#full-album-grid .overview-card,#collection>.xp-card){background:transparent!important;border:0!important;box-shadow:none!important}
body.completed-only-mode #full-album-grid .overview-card>figcaption{display:none!important}
body.completed-only-mode #collection>.xp-card>:not(.art,.completed-ownership){display:none!important}
body.completed-only-mode #collection>.xp-card{display:flex;flex-direction:column;align-items:stretch;height:auto!important}
body.completed-only-mode #collection>.xp-card .art{border:0!important;box-shadow:none!important;background:transparent!important;flex:none}
body.completed-only-mode #collection .art::before,body.completed-only-mode #collection .art::after,body.completed-only-mode #collection .art .spark{display:none!important}
body.completed-only-mode :is(#full-album-grid .overview-card,#collection>.xp-card)>.completed-ownership{display:block!important;margin:10px 0 4px;padding:0;text-align:center;color:inherit;font:inherit;line-height:1.3;text-wrap:balance}
body.completed-only-mode #full-album-grid .overview-card>button{box-shadow:none!important;border:0!important;background:transparent!important}
body.completed-only-mode #full-album-grid .overview-card>button::before,body.completed-only-mode #full-album-grid .overview-card>button::after{display:none!important}
body.completed-only-mode #full-album-grid .overview-card::before,body.completed-only-mode #full-album-grid .overview-card::after,body.completed-only-mode #collection>.xp-card::before,body.completed-only-mode #collection>.xp-card::after{display:none!important}

/* The completed-card view returns directly to its own universe. */
body.completed-only-mode .collection-simple-tools .completed-collection-controls::after{display:none}
body.completed-only-mode .collection-simple-tools .completed-collection-controls button.collection-simple-back{flex:0 0 90px!important;width:90px;min-width:0;max-width:90px;height:auto;min-height:44px;padding:8px;font:inherit;font-size:15px;line-height:1.2;white-space:normal}
@media(max-width:600px){
 body #full-album-dialog .overview-card .overview-allocate,body #full-album-dialog .overview-card .special-allocate,body #collection .xp-card .assign,body.album-open .family-card button[data-family]{min-height:24px;height:auto;padding:4px 3px;margin-top:5px;font-size:10px;line-height:1.15}
 body.completed-only-mode .collection-simple-tools .completed-collection-controls button.collection-simple-back{flex-basis:64px!important;width:64px;max-width:64px;padding:7px 4px;font-size:12px}
}

/* Complete collections: remove only the UI outlines, glows and perimeter sparks. */
body.collection-overview-mode #full-album-grid .overview-card,
body.collection-overview-mode #collection.collection>.xp-card{border:0!important;box-shadow:none!important;background:transparent!important}
body.collection-overview-mode #full-album-grid .overview-card>button:not([data-family]),
body.collection-overview-mode #collection.collection>.xp-card .art{border:0!important;box-shadow:none!important;background:transparent!important}
body.collection-overview-mode #full-album-grid .overview-card::before,
body.collection-overview-mode #full-album-grid .overview-card::after,
body.collection-overview-mode #full-album-grid .overview-card>button::before,
body.collection-overview-mode #full-album-grid .overview-card>button::after,
body.collection-overview-mode #collection.collection>.xp-card::before,
body.collection-overview-mode #collection.collection>.xp-card::after,
body.collection-overview-mode #collection.collection .art::before,
body.collection-overview-mode #collection.collection .art::after,
body.collection-overview-mode #collection.collection .art .spark{display:none!important}
/* Family headings are redundant below the individual card. */
body.collection-overview-mode #full-album-grid .overview-card:not(.special-collection-card)>figcaption>strong,
body.collection-overview-mode #collection .character-race{display:none!important}

/* A compact live XP cauldron is directly available above the complete album. */
#full-album-dialog .full-album-reserve{display:flex;flex-direction:column;align-items:center;margin:2px auto 12px;padding:0 12px;max-width:100%}
#full-album-dialog .full-album-reserve button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:76px;min-width:120px;padding:0 8px;border:0;background:transparent;box-shadow:none;color:#fff2d6;font:inherit;cursor:pointer}
#full-album-dialog .full-album-reserve img{display:block;width:80px;height:80px;object-fit:contain}
#full-album-dialog .full-album-reserve span{display:inline-flex;align-items:baseline;gap:5px;font-size:22px;white-space:nowrap}
#full-album-dialog .full-album-reserve strong{font:inherit;font-size:26px}
#full-album-dialog .full-album-reserve p{text-align:center;max-width:35ch;font:inherit;font-size:13px}
body.completed-only-mode #full-album-dialog .full-album-reserve{display:none!important}
@media(max-width:600px){#full-album-dialog .full-album-reserve{margin-bottom:6px}#full-album-dialog .full-album-reserve img{width:62px;height:62px}#full-album-dialog .full-album-reserve button{min-height:62px}#full-album-dialog .full-album-reserve span{font-size:18px}#full-album-dialog .full-album-reserve strong{font-size:22px}}

/* Christmas: one vertical stack per card, never the old mobile side-by-side grid. */
body[data-xp-theme=noel] #collection.collection>.xp-card{display:flex;flex-direction:column;align-items:stretch;height:auto;min-width:0;gap:0}
body[data-xp-theme=noel] #collection.collection .art{display:block;flex:none;width:100%;height:clamp(180px,24vw,280px);min-width:0}
body[data-xp-theme=noel] #collection.collection .card-art-viewport{display:block;width:100%;height:100%}
body[data-xp-theme=noel] #collection.collection .art img{display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
body[data-xp-theme=noel] #collection.collection>.xp-card>progress{display:block;flex:none;width:100%;height:5px;margin:9px 0 5px}
body[data-xp-theme=noel] #collection.collection .xp-line{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-width:0;gap:4px;text-align:center}
body[data-xp-theme=noel] #collection.collection .xp-line>*{max-width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}
body[data-xp-theme=noel] #collection.collection .assign{flex:none;width:100%;margin-top:7px}
@media(max-width:700px){
 body[data-xp-theme=noel] #collection.collection .art{height:129px}
 body[data-xp-theme=noel] #collection.collection .art img{height:100%;max-height:none}
 body[data-xp-theme=noel] #collection.collection .xp-line .character-name{font-size:14px;line-height:1.15;min-height:0}
 body[data-xp-theme=noel] #collection.collection .xp-line>span{font-size:11px;line-height:1.25}
}

/* Shorter mobile XP bars, with a coloured fill only for XP already assigned. */
@media(max-width:600px){
 body[data-xp-theme=halloween] #full-album-dialog .overview-card progress{display:block;appearance:none;-webkit-appearance:none;width:76%;height:3px;min-height:3px;margin:8px auto 4px;border:0;border-radius:4px;overflow:hidden;background:#c6bed32e;color:var(--tier);accent-color:var(--tier)}
 body[data-xp-theme=halloween] #full-album-dialog .overview-card progress::-webkit-progress-bar{background:#c6bed32e;border-radius:4px}
 body[data-xp-theme=halloween] #full-album-dialog .overview-card progress::-webkit-progress-value{background:var(--progress-colour,var(--tier));border-radius:4px;box-shadow:none}
 body[data-xp-theme=halloween] #full-album-dialog .overview-card progress::-moz-progress-bar{background:var(--progress-colour,var(--tier));border-radius:4px;box-shadow:none}
 body[data-xp-theme=halloween] #full-album-dialog .tier-2 progress{--progress-colour:#ff7300}
}

/* Each allocation button has exactly the same width and centre as its XP bar. */
body[data-xp-theme=halloween] #full-album-dialog .overview-card progress,
body[data-xp-theme=halloween] #full-album-dialog .overview-card .overview-allocate,
body[data-xp-theme=halloween] #full-album-dialog .overview-card .special-allocate{display:block;box-sizing:border-box;width:100%;max-width:100%;margin-left:auto;margin-right:auto}
body #collection.collection>.xp-card>progress,
body #collection.collection>.xp-card>.assign,
body.album-open #collection .family-card progress,
body.album-open #collection .family-card button[data-family]{box-sizing:border-box;display:block;width:100%;max-width:100%;margin-left:auto;margin-right:auto}
@media(max-width:600px){
 body[data-xp-theme=halloween] #full-album-dialog .overview-card progress,
 body[data-xp-theme=halloween] #full-album-dialog .overview-card .overview-allocate,
 body[data-xp-theme=halloween] #full-album-dialog .overview-card .special-allocate{width:76%;max-width:76%}
}

/* Specials use the exact same vertical spacing as ordinary album cards. */
#full-album-dialog .special-collection-card.overview-card>figcaption{display:flex;flex-direction:column;align-items:stretch;gap:0}
#full-album-dialog .special-collection-card.overview-card .special-allocate{margin-bottom:2px}

/* One compact collection bar in every universe. Back controls have their own row. */
body.collection-overview-mode .collection-simple-tools .collection-simple-heading{grid-template-columns:minmax(0,1fr)}
body.collection-overview-mode .collection-simple-tools .collection-simple-heading :is(h1,h2){grid-column:1;justify-self:center;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:280px;max-width:100%;height:44px;min-height:44px;padding:8px 12px;font-size:20px!important;line-height:1.2;white-space:nowrap!important}
body[data-xp-theme=halloween].album-open #collection #open-full-album{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:280px;max-width:100%;height:44px;min-height:44px;padding:8px 12px;margin-left:auto;margin-right:auto;font-size:20px;line-height:1.2;white-space:nowrap}
@media(max-width:600px){
 body.collection-overview-mode .collection-simple-tools .collection-simple-heading :is(h1,h2),body[data-xp-theme=halloween].album-open #collection #open-full-album{font-size:18px!important}
}

/* A short completed collection must not tile its scenery beneath the card. */
body.completed-only-mode{min-height:100dvh;background-repeat:no-repeat;background-size:cover}
/* Keep only the real dragon card in its zoom, without an opaque surrounding panel. */
body[data-xp-theme=dragons] #zoom{width:min(94vw,540px);max-width:94vw;background:transparent;border:0;box-shadow:none;overflow:hidden;padding:10px 12px}
body[data-xp-theme=dragons] #zoom .zoom-art{display:flex;align-items:center;justify-content:center;height:min(74dvh,760px);overflow:hidden;background:transparent}
body[data-xp-theme=dragons] #zoom .zoom-art img{width:100%;height:100%;max-height:100%;object-fit:contain;border-radius:0}

/* Completed Dragons retain their identity below the artwork: name, then race. */
body[data-universe=dragons].completed-only-mode #collection>.xp-card>.xp-line{display:block!important;width:100%;min-width:0;margin:9px 0 0;text-align:center}
body[data-universe=dragons].completed-only-mode #collection>.xp-card>.xp-line>.character-caption{display:flex;flex-direction:column;align-items:center;width:100%;min-width:0}
body[data-universe=dragons].completed-only-mode #collection>.xp-card .character-caption>.character-name{display:block;order:0;max-width:100%;text-align:center;overflow-wrap:anywhere}
body[data-universe=dragons].completed-only-mode #collection>.xp-card .character-caption>.character-race{display:block!important;order:1;max-width:100%;margin:5px 0 0;text-align:center;overflow-wrap:anywhere}
body[data-universe=dragons].completed-only-mode #collection>.xp-card>.xp-line>span:not(.character-caption){display:none!important}
