body.all-cards{padding:30px 24px;max-width:1920px;margin:0 auto}
.all-cards .collection-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:26px auto 40px;max-width:1100px}
.collection-nav a{font:600 12px/1.4 Montserrat,sans-serif;color:#cfc9bb;border:1px solid #59513e;border-radius:5px;padding:9px 12px;text-decoration:none;background:#191a1d}
.collection-nav a:hover{background:#d8bd77;color:#171717}
.all-cards .all-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 16px;align-items:start}
.all-cards .edition{width:auto;min-width:0;margin:0;scroll-margin-top:24px;perspective:900px}
.all-cards .edition .card{width:100%;max-width:none;padding:clamp(5px,.65vw,10px)}
.all-cards .edition figcaption{font:500 10px/1.5 Montserrat,sans-serif;text-align:center;color:#beb7a4;margin:15px 0 0}
.all-cards section{margin-bottom:60px}.all-cards h2{font-size:24px}.all-cards .gallery-intro{margin-bottom:30px}
@media(max-width:1000px){.all-cards .all-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body.all-cards{padding:24px 12px}.all-cards .all-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.all-cards h1{font-size:25px}}
.all-cards .trader-holo-stamp{font-size:2.2cqw;padding:.7cqw 1.2cqw;letter-spacing:.15cqw;top:2cqw;right:2cqw}

/* Matching editions share one expandable stack. */
.all-cards .all-card-grid{gap:30px 26px}
.card-stack{min-width:0;scroll-margin-top:24px}
.card-stack summary{list-style:none;cursor:pointer;outline-offset:8px;border-radius:10px}
.card-stack summary::-webkit-details-marker{display:none}
.card-stack summary:focus-visible{outline:2px solid #e7ca86}
.stack-cards{position:relative;padding:0 13px 18px 0}
.card-stack:not([open]) .edition:first-child{position:relative;z-index:2}
.card-stack:not([open]) .edition:nth-child(2){position:absolute;top:14px;left:12px;right:0;transform:rotate(3deg);z-index:1}
.card-stack:not([open]) .edition figcaption{display:none}
.card-stack .stack-label{display:block;text-align:center;font:600 11px/1.5 Montserrat,sans-serif;color:#e4dece;margin-top:10px}
.stack-hint{display:block;text-align:center;font:500 9px/1.6 Montserrat,sans-serif;color:#a6a294;margin-top:4px}
.open-hint{display:none}
.card-stack[open]{grid-column:span 2;padding:12px;border:1px solid #b7a47755;border-radius:12px;background:#17191b}
.card-stack[open] .stack-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0}
.card-stack[open] .closed-hint{display:none}.card-stack[open] .open-hint{display:inline}
.card-stack[open] .edition figcaption{margin-top:12px}
.card-stack.single-stack[open] .stack-cards{display:block;max-width:340px;margin:auto}
.card-stack .edition{transition:transform .25s ease}
@media(prefers-reduced-motion:reduce){.card-stack .edition{transition:none}}
/* Compact previews reserve real space for headings and show the entire artwork. */
.all-cards .edition .card{aspect-ratio:5/8;height:auto}
.all-cards .card .battle-heading{flex:0 0 auto;min-height:0;height:auto;padding:1.4cqw 0 2cqw;align-items:center}
.all-cards .card .battle-heading h3{margin:0;line-height:1.12}
.all-cards .card .battle-heading h3 small{line-height:1.25}
.all-cards .card .card-art{flex:0 0 auto;height:auto;aspect-ratio:var(--art-ratio,1.77778);margin-top:1.5cqw}
.all-cards .card .card-art img{object-fit:contain;object-position:center}
.all-cards .card .battle-ability,.all-cards .card .battle-attack,.all-cards .card .battle-stats,.all-cards .card .battle-flavor,.all-cards .card .card-meta{flex-shrink:0}
.all-cards .card .trader-holo-stamp,.all-cards .card .goat-art-tag{display:none}
/* A single nudge on hover invites opening the stacked editions. */
@keyframes stackInvitation{0%,100%{transform:translate(0,0) rotate(3deg)}30%{transform:translate(5px,-3px) rotate(6deg)}65%{transform:translate(2px,0) rotate(1deg)}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.card-stack:not([open]) summary:hover .edition:nth-child(2){animation:stackInvitation .65s ease-in-out 1}}
@media(prefers-reduced-motion:reduce){.card-stack:not([open]) summary:hover .edition:nth-child(2){transform:translateX(3px) rotate(3deg)}}
.all-cards #legendary .all-card-grid{display:flex;justify-content:center}
.all-cards #legendary .card-stack{width:calc((100% - 78px)/4)}
.all-cards #legendary .card-stack[open]{width:min(100%,380px)}
@media(max-width:1000px){.all-cards #legendary .card-stack{width:calc((100% - 52px)/3)}}
@media(max-width:600px){.all-cards #legendary .card-stack{width:calc((100% - 26px)/2)}}
/* Name each analyst's matching card themes, two groups per desktop row. */
.analyst-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 26px;align-items:start}
.all-cards .analyst-group{margin:0;min-width:0;scroll-margin-top:24px}
.analyst-name{font:700 clamp(15px,1.5vw,23px)/1.4 Montserrat,sans-serif;color:#eee5d1;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid #c6ab6b44;text-align:center}
.all-cards .analyst-group .all-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.analyst-groups{grid-template-columns:1fr}.analyst-name{font-size:19px}}

/* Comfortable collection spacing, including laptop-sized windows. */
body.all-cards{padding:48px clamp(28px,4vw,76px) 80px;max-width:1920px}
.all-cards .gallery-back-nav{margin-bottom:42px}
.all-cards h1{margin-bottom:22px}
.all-cards .collection-nav{gap:12px;margin:36px auto 56px}
.all-cards .collection-nav a{padding:12px 16px}
.all-cards h2{margin:48px 0 36px}
.all-cards section{margin-bottom:80px}
.analyst-groups{gap:64px 48px}
.all-cards .analyst-group{margin-bottom:0}
.analyst-name{margin-bottom:30px;padding-bottom:20px}
.all-cards .all-card-grid{gap:44px 36px}
.stack-cards{padding:4px 20px 24px 4px}
.card-stack .stack-label{margin-top:16px;line-height:1.7}
.stack-hint{margin-top:8px}
.card-stack[open]{padding:22px}
.card-stack[open] .stack-cards{gap:28px}
.all-cards .edition .card{padding:clamp(10px,1.2vw,20px);aspect-ratio:5/8.5}
.all-cards .card .battle-heading{padding:2.5cqw 0}
.all-cards .card .battle-ability{margin-top:2.4cqw;padding:2cqw}
.all-cards .card .battle-attack{margin-top:2cqw;padding:1.8cqw 2cqw}
.all-cards .card .battle-stats{padding:2.4cqw 0;gap:2cqw}
.all-cards .card .card-meta{padding-top:2cqw}
.all-cards .edition figcaption{margin-top:20px}
@media(max-width:1200px){
 .analyst-groups{grid-template-columns:1fr;gap:56px}
 .all-cards .all-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
 .all-cards .analyst-group{width:100%;max-width:860px;margin-inline:auto}
 .all-cards #legendary .card-stack{width:calc((100% - 40px)/2);max-width:380px}
}
@media(max-width:600px){
 body.all-cards{padding:28px 22px 56px}
 .all-cards .all-card-grid{gap:32px 24px}
 .all-cards .collection-nav{gap:10px;margin-bottom:40px}
 .all-cards .collection-nav a{padding:10px 12px}
 .card-stack[open]{padding:14px}
 .card-stack[open] .stack-cards{gap:18px}
}

/* Reduce previews by 25% while preserving the roomy grid spacing. */
.all-cards .card-stack{width:75%;justify-self:center}
.all-cards .card-stack[open]{width:75%;box-sizing:border-box}
.all-cards #legendary .card-stack{width:calc((100% - 108px)/4 * .75)}
.all-cards #legendary .card-stack[open]{width:min(75%,285px)}
@media(max-width:1200px){.all-cards #legendary .card-stack{width:calc((100% - 40px)/2 * .75);max-width:285px}}

/* The Stock Father gets twice the preview size of its previous edition. */
.all-cards #legendary .card-stack{width:calc((100% - 108px)/4 * 1.5);max-width:100%}
.all-cards #legendary .card-stack[open]{width:min(100%,570px)}
@media(max-width:1200px){.all-cards #legendary .card-stack{width:calc((100% - 40px) * .75);max-width:570px}}
.all-cards #legendary .single-stack[open] .stack-cards{max-width:680px}
