/* New prize designs use the same card footprint and scalable typography. */
.card.membership-card,.card.partner-card,.card-slot .card.membership-card,.card-slot .card.partner-card,.membership-preview .card.membership-card,.partner-preview .card.partner-card{width:100%;height:auto;min-height:0;aspect-ratio:5/7;padding:10px;gap:6px}
.card.membership-card .card-top,.card.partner-card .card-top{flex:0 0 8cqw;font-size:2.7cqw;padding:0}
.card.membership-card .card-top>span,.card.partner-card .card-top>span{font-size:2.5cqw}
.card.membership-card .membership-art,.card.partner-card .partner-emblem{height:auto;flex:0 0 44%;margin:0}
.card.membership-card h3,.card.partner-card h3{flex:0 0 auto;font-size:7cqw;margin:1cqw 0;line-height:1.1}
.card.membership-card h3 strong{font-size:12cqw}
.card.membership-card .membership-kicker,.card.partner-card .partner-label{font-size:2.6cqw;letter-spacing:.5px}
.card.membership-card p.membership-copy,.card.partner-card p.partner-delivery{font-size:3.4cqw;line-height:1.4;margin:0}
.card.membership-card .membership-value{font-size:2.7cqw;letter-spacing:0;padding-top:2cqw}
.card.partner-card .partner-account{font-size:5cqw;padding-top:2cqw}
.card.membership-card .card-meta,.card.partner-card .card-meta{font-size:2.4cqw;flex:0 0 auto;margin-top:auto;padding-top:2cqw}
.all-cards .membership-preview .card,.all-cards .partner-preview .card{aspect-ratio:5/8.5}
.card-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#080b10ee;overflow:hidden}
.card-viewer::backdrop{background:#000c;backdrop-filter:blur(10px)}
.card-viewer-stage{width:100%;height:100%;display:grid;place-items:center}
.card-viewer .card{min-height:0!important;height:auto!important;max-width:none;transform:none!important;pointer-events:auto;cursor:default}
.card-viewer-close{position:absolute;right:18px;top:12px;z-index:5;border:1px solid #fff5;border-radius:50%;width:44px;height:44px;background:#15191f;color:#fff;font-size:30px}
.collection-card-frame,.edition,.partner-preview,.membership-preview,.card-slot.flipped{cursor:zoom-in}

.all-cards .partner-gallery,.all-cards .membership-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:44px 40px}
.all-cards .partner-preview,.all-cards .membership-preview{width:calc(75% - 24px);max-width:none;margin:auto}
@media(max-width:1200px){.all-cards .partner-gallery,.all-cards .membership-gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-width:860px;margin-inline:auto}}
@media(max-width:600px){.all-cards .partner-gallery,.all-cards .membership-gallery{gap:32px 24px}}

/* A quiet, readable face shared by every edition and prize. */
body .card{box-sizing:border-box;container-type:inline-size;display:flex!important;flex-direction:column;aspect-ratio:5/7!important;height:auto!important;min-height:0!important;padding:clamp(10px,1.2vw,20px)!important;gap:clamp(4px,.6vw,8px)!important}
body .card .card-top{position:static!important;flex:0 0 auto!important;min-height:0!important;height:8cqw!important;margin:0!important;padding:0 0 2cqw!important;border-bottom:1px solid #d9c88855;display:flex;align-items:center}
body .card .card-logo{width:46%!important;height:auto!important;max-height:7cqw!important;object-fit:contain}
body .card .card-top>span,body .card .battle-heading h3 small,body .card .battle-stats,body .card .battle-flavor,body .card .attack-cost,body .card .battle-attack b,body .card .card-meta,body .card .goat-art-tag,body .card .trader-holo-stamp,body .card .membership-kicker,body .card .membership-copy,body .card .membership-value,body .card .membership-art-seal,body .card .partner-label,body .card .partner-delivery,body .card>.eyebrow,body .card>p{display:none!important}
body .card .battle-heading{position:static!important;display:flex!important;align-items:center!important;justify-content:space-between;gap:4cqw;flex:0 0 auto!important;min-height:16cqw!important;height:auto!important;margin:0!important;padding:1cqw 0!important}
body .card .battle-heading h3{flex:1;min-width:0;font-size:8cqw!important;line-height:1.05!important;letter-spacing:0!important;margin:0!important;overflow-wrap:normal}
body .card .battle-hp{position:static!important;flex:0 0 auto;display:flex;align-items:baseline;gap:1cqw;font-size:8cqw!important;line-height:1!important;clip-path:none!important;background:none!important;padding:0!important;margin:0!important;color:#f5e4ad!important}
body .card .battle-hp small{font:700 3.5cqw/1 Montserrat,sans-serif!important}
body .card .card-art{position:relative!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;aspect-ratio:auto!important;margin:0 0 1cqw!important;overflow:hidden;border-radius:5px}
body .card .card-art img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important}
body .card .battle-ability,body .card .battle-attack{position:static!important;flex:0 0 auto!important;min-height:0!important;height:auto!important;margin:0!important;padding:2cqw!important;border:0!important;border-radius:4px;background:#ffffff0b!important;box-shadow:none!important}
body .card .battle-attack>div{display:block!important;margin:0!important;padding:0!important}
body .card .battle-ability strong,body .card .battle-attack strong{display:block;font:700 4.7cqw/1.2 Montserrat,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#f6eddb!important}
body .card.membership-card .membership-art,body .card.partner-card .partner-emblem{flex:1 1 auto!important;min-height:0!important;height:auto!important;margin:1cqw 0 3cqw!important}
body .card.membership-card h3{flex:0 0 auto!important;font-size:9cqw!important;line-height:1.15!important;margin:0 0 5cqw!important}
body .card.membership-card h3 strong{font-size:17cqw!important;line-height:1.1!important}
body .card.partner-card h3{flex:0 0 auto!important;font-size:7.5cqw!important;line-height:1.15!important;overflow-wrap:anywhere;margin:0!important}
body .card.partner-card .partner-account{flex:0 0 auto!important;font:700 6cqw/1.3 Montserrat,sans-serif!important;letter-spacing:0!important;padding:2cqw 0 4cqw!important;margin:0!important}
body .card.prize:not(.membership-card):not(.partner-card)>h3{font-size:9cqw!important;line-height:1.15!important;margin:3cqw 0!important}
body .card.stock-father .card-meta{display:block!important;position:static!important;flex:0 0 auto!important;margin:0!important;padding:0!important;border:0!important;font:700 5cqw/1.2 Montserrat,sans-serif!important;text-align:center}
body .card.stock-father .card-meta span:first-child{display:none!important}
.card-viewer .card{padding:24px!important}
@media(max-width:600px){
 .all-cards .all-card-grid,.all-cards .analyst-group .all-card-grid,.all-cards .partner-gallery,.all-cards .membership-gallery{grid-template-columns:minmax(0,1fr)!important}
 .all-cards .card-stack,.all-cards .card-stack[open],.all-cards #legendary .card-stack,.all-cards #legendary .card-stack[open]{width:min(100%,340px);grid-column:span 1}
 .all-cards .partner-preview,.all-cards .membership-preview{width:min(100%,316px)}
 .all-cards .card-stack[open] .stack-cards{grid-template-columns:1fr}
 .card-viewer .card{padding:14px!important}
}

/* Keep the useful skill explanations and preserve the complete artwork. */
body .card .battle-ability,body .card .battle-attack{padding:1.5cqw 2cqw!important}
body .card .battle-ability strong,body .card .battle-attack strong{font-size:4.4cqw!important;line-height:1.15!important}
body .card .battle-ability p,body .card .battle-attack p{display:block!important;font:500 3.4cqw/1.25 Montserrat,sans-serif!important;letter-spacing:0!important;color:#e3e0d6!important;margin:1cqw 0 0!important;padding:0!important}
body .card .membership-art img,body .card .partner-emblem img{object-fit:contain!important}
body .card .card-art,body .card .membership-art,body .card .partner-emblem{background:#090d12!important}
/* The illustration owns its frame: no letterboxing, cropping, or distortion. */
body .card .card-top{height:12cqw!important;justify-content:flex-start!important}
body .card .card-logo{display:block!important;width:62%!important;max-width:62%!important;height:auto!important;max-height:11cqw!important;margin:0!important;object-position:left center!important}
body .card .card-art,body .card.membership-card .membership-art{display:block!important;flex:0 0 auto!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;min-height:0!important;background:transparent!important}
body .card .card-art img,body .card .membership-art img{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
body .card .battle-ability{margin-top:auto!important}
body .card.membership-card h3{font-size:7cqw!important;margin:auto 0 1cqw!important}
body .card.membership-card h3 strong{font-size:14cqw!important}
body .card{aspect-ratio:5/8!important}
body .card .card-top{height:19cqw!important}
body .card .card-logo{width:48%!important;max-width:48%!important;max-height:none!important}
body .card .battle-ability,body .card .battle-attack{display:flex!important;flex-direction:column;justify-content:center;flex:1 0 auto!important;margin:0!important;padding:2cqw!important}

.library-tools{max-width:1100px;margin:24px auto;padding:0 20px}.library-tools label{display:block}.library-tools input{display:block;width:min(100%,480px);padding:12px;margin:8px 0 16px;background:#17191f;color:white;border:1px solid #777;border-radius:8px}.library-tools nav{display:flex;flex-wrap:wrap;gap:8px}.library-tools button{padding:10px 18px;border-radius:8px}.library-tools button[aria-pressed=true]{background:#dac68c;color:#171717}.card-viewer>select{position:absolute;top:14px;left:20px;max-width:70%;z-index:10;background:#17191f;color:#fff;padding:10px;border:1px solid #dac68c}.all-cards>details{max-width:1100px;margin:16px auto}.all-cards [hidden]{display:none!important}

body .card .prize-redemption{display:block!important;position:relative;z-index:4;flex:0 0 auto;margin-top:auto;padding-top:2cqw;border-top:1px solid #dac68c66;font:600 3.3cqw/1.4 Montserrat,sans-serif;color:#f4e5b8;letter-spacing:0;text-transform:none}body .card.father:has(.prize-redemption) .battle-ability,body .card.father:has(.prize-redemption) .battle-attack{padding:1cqw!important}
#skipOpening{display:inline-flex;align-items:center;justify-content:center;width:auto!important;min-width:0!important;min-height:36px;padding:6px 10px!important;margin:8px!important;border:0!important;border-radius:4px;background:transparent!important;box-shadow:none!important;color:#c7c9ce;font:500 12px/1.4 Montserrat,sans-serif!important;letter-spacing:0!important;text-transform:none!important;text-decoration:underline;text-underline-offset:4px}#skipOpening:hover,#skipOpening:focus-visible{color:#f5dfa0;outline:1px solid #dac68c}#openingPrizeHelp{display:inline-flex;margin:0;padding:0;border:0;background:none}#openingPrizeHelp button{min-width:0;padding:8px;border:0;background:none;box-shadow:none;color:#ead59a;font-size:13px;text-decoration:underline;text-underline-offset:4px}#packView.opening-complete .action-area{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:16px}#packView.opening-complete #instruction,#packView.opening-complete #morePacksLink,#packView.opening-complete .fine{display:none!important}#packView.opening-complete #openBtn{min-width:190px;padding:13px 24px;font-size:14px}

/* Reserve a toolbar above the card, including landscape phones. */
.card-viewer-stage{box-sizing:border-box;padding:72px 12px 24px}.card-viewer>select{max-width:calc(100% - 94px);min-height:44px;border-radius:8px;font-size:16px}.library-tools input{box-sizing:border-box;max-width:100%;font:inherit;min-height:44px}.library-tools button{min-height:44px;cursor:pointer}.library-tools label{font-size:14px}.all-cards>details{padding-inline:20px}.all-cards>details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#dac68c}
@media(max-width:420px){.library-tools{padding-inline:16px}.library-tools nav{gap:6px}.library-tools button{flex:1 1 40%;padding:10px 8px}.card-viewer>select{left:12px;font-size:14px}}
.library-tools button{background:#171b20;border:1px solid #dac68c55;color:#e9dfc8;font:600 14px/1.4 Montserrat,sans-serif}.library-tools button:hover{border-color:#dac68c;background:#252821}.library-tools button[aria-pressed=true]{background:#dac68c;color:#171717}
@media(max-width:600px){.all-cards .all-card-grid,.all-cards .analyst-group .all-card-grid{grid-template-columns:minmax(0,1fr);gap:32px}.all-cards .card-stack,.all-cards #legendary .card-stack{width:min(100%,300px);max-width:100%}.all-cards .membership-preview{width:min(100%,300px);max-width:100%}.all-cards .partner-gallery{grid-template-columns:minmax(0,1fr)}.all-cards .stack-label{font-size:16px}}

body .card .battle-heading h3 .card-title-continuation{display:block;font-size:5.5cqw;line-height:1.2;margin-top:1cqw;color:inherit}

.card-viewer-stage{padding:64px 12px;perspective:1200px;display:flex;align-items:center;justify-content:center}.card-viewer .card{margin:0!important;transform:perspective(1200px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))!important;transition:transform .12s ease-out;transform-origin:center}@media(prefers-reduced-motion:reduce){.card-viewer .card{transform:none!important;transition:none}}

.viewer-presentation{position:relative;width:max-content;max-width:100%}.viewer-caption{position:static;padding:10px 2px!important;text-align:left;}.viewer-caption strong{font-size:14px}.viewer-caption .binder-win-details{font-size:13px;background:none;color:#e4ce91;border:0;padding:6px 0;cursor:pointer}

.viewer-tilt-surface{position:relative;perspective:900px}.viewer-tilt-surface>.card{pointer-events:none;transition:transform .06s linear!important}.collection-card-frame{perspective:900px}

.viewer-editions{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:10;display:flex;gap:3px;padding:4px;border:1px solid #d6bc7540;border-radius:999px;background:#15191fe8;box-shadow:0 6px 24px #0004}.viewer-editions[hidden]{display:none}.viewer-editions button{border:0;border-radius:999px;background:transparent;color:#aeb1ba;padding:9px 16px;font:600 13px/1.3 Montserrat,sans-serif;white-space:nowrap;min-height:38px;transition:background .18s,color .18s}.viewer-editions button[aria-pressed=true]{background:#d9c58b;color:#191a16;box-shadow:0 1px 5px #0003}.viewer-editions button:hover:not([aria-pressed=true]){background:#ffffff0d;color:#f4edda}.viewer-editions button:focus-visible{outline:2px solid #f1dfaa;outline-offset:2px}@media(max-width:480px){.viewer-editions{left:12px;transform:none;top:14px}.viewer-editions button{padding:9px 12px;font-size:12px}}

.collection-card-frame .card{transition:transform .06s linear!important}

.card-viewer .viewer-tilt-surface>.card{transition:none!important;will-change:transform;backface-visibility:hidden}.card-viewer .card.holo:before{transition:opacity .08s linear}

@media(max-width:700px){body[data-room-view]:not([data-room-view="packs"]) .arena>h1,body[data-room-view]:not([data-room-view="packs"]) .arena>.intro,body[data-room-view]:not([data-room-view="packs"]) #packBalanceProminent{display:none!important}body[data-room-view]:not([data-room-view="packs"]) .arena{padding-top:16px}body[data-room-view]:not([data-room-view="packs"]) .tabs{margin-top:0;margin-bottom:24px}}
.host-dashboard-tools{display:grid;gap:24px}.host-dashboard-tools>section{padding:20px;border:1px solid #ddc98b44;border-radius:16px}.host-dashboard-tools h2{font-size:1.2rem}.host-dashboard-tools p{color:#bbb;font-size:.9rem}

.site-update{position:fixed;bottom:16px;right:16px;z-index:10000;padding:12px 18px;border:1px solid #ddc98b;border-radius:12px;background:#181a1d;color:#ddc98b}

/* Tilt easing is handled once per frame, without competing CSS interpolation. */
.collection-card-frame .card,.card-slot .card{transition:none!important}

.card.experience-card .membership-art{aspect-ratio:1;flex:0 0 auto;height:auto!important}.card.experience-card .membership-art img{width:100%;height:100%;object-fit:contain}.card.experience-card h3 strong{font-size:8cqw;line-height:1.15;display:block}.card.experience-card.lesson-pass{background:linear-gradient(145deg,#183330,#101718 65%,#312a18)}.card.experience-card.mastermind-pass{background:linear-gradient(145deg,#302541,#0c1320 65%,#393019)}.all-cards .prize-library-grid>.membership-preview,.all-cards .prize-library-grid>.partner-preview{width:100%;margin:0}.prize-library-grid{align-items:start}

/* A shared face size for every library card; stack decoration cannot shrink it. */
.all-cards .all-card-grid{gap:40px 36px}
.all-cards .analyst-groups{column-gap:36px}
.all-cards .analyst-group{max-width:none}
.all-cards .all-card-grid>.card-stack,
.all-cards .all-card-grid>.partner-preview,
.all-cards .all-card-grid>.membership-preview{width:100%;max-width:none;margin:0;min-width:0}
.all-cards .all-card-grid .stack-cards{padding:0;max-width:none}
.all-cards .all-card-grid .edition{width:100%;max-width:none;margin:0}
.all-cards .all-card-grid .card{width:100%!important;max-width:none!important;aspect-ratio:5/8!important}
.all-cards .card-stack:not([open]) .edition:nth-child(2){left:0;right:0;top:0;transform:translate(5px,5px) rotate(1deg)}
@media(max-width:600px){
 .all-cards .all-card-grid>.card-stack,
 .all-cards .all-card-grid>.partner-preview,
 .all-cards .all-card-grid>.membership-preview{width:min(100%,300px);margin-inline:auto}
}

body .card.experience-card h3{margin-bottom:1cqw!important}body .card.experience-card .experience-choice{flex:0 0 auto;color:#e7dab4;font:600 4cqw/1.4 Montserrat,sans-serif;margin:0 0 3cqw}
