/* The card is composed at 360 CSS px, using its full intrinsic height.
   Fit applies one uniform zoom to the stage, front, back and all content. */
.dock{position:absolute;bottom:0;left:50%;transform:translateX(-50%);transition:opacity .28s ease,translate .34s var(--ease),visibility .34s;max-width:calc(100% - 32px)}
.shell:not(.revealing) .content{margin-bottom:91px}
.revealing .dock{opacity:0;translate:0 24px;visibility:hidden;pointer-events:none}
.revealing .content{margin-bottom:0;overflow:hidden}
.revealing .reveal-stage{grid-template-rows:auto minmax(0,1fr) auto;gap:6px;padding:8px 4px 10px;animation:revealEnter .32s var(--ease) both}
@keyframes revealEnter{from{opacity:0}to{opacity:1}}
.home-stage:not([hidden]){animation:homeEnter .32s var(--ease) both}
@keyframes homeEnter{from{opacity:.35;translate:0 5px}to{opacity:1;translate:0 0}}
.revealing .resultbar{display:flex;width:min(100%,410px);min-height:32px;justify-content:space-between}
#resultCount{white-space:nowrap;margin:auto;font-size:13px}
.revealing .resultactions{width:min(100%,410px);gap:5px;padding:0}
.revealing .primary{height:40px;min-height:40px}
.revealing .single-card{width:100%;height:100%;padding:0;display:grid;place-items:center;container-type:size;overflow:visible}
.revealing .card-stage{width:360px;max-width:none;min-width:0;height:var(--design-height,640px);aspect-ratio:auto;zoom:var(--fit-scale,.65);flex:none}
.revealing .single-card .big-card{width:100%;height:100%;max-width:none;aspect-ratio:auto;overflow:visible}
.revealing .big-card .card-face{height:auto;min-height:0;padding:10px;gap:8px;overflow:visible}
.revealing .big-card .art{aspect-ratio:2.1;flex:none}
.revealing .big-card .serial{top:150px;left:18px;font-size:10px}
.revealing .big-card .record{height:auto;min-height:0;flex:none;padding:10px;overflow:visible;gap:0}
.revealing .big-card .record>*{flex-shrink:0;min-height:0}
.revealing .big-card .cardname{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:26px;line-height:1.1;letter-spacing:-.025em}
.revealing .big-card .cardinfo{display:block;overflow:visible;-webkit-line-clamp:unset;white-space:normal;font-size:12px;line-height:1.25;margin:3px 0 0;min-height:0}
.revealing .big-card .life{margin:7px 0 0;padding:5px 0;gap:0}
.revealing .big-card .life small{font-size:10px}
.revealing .big-card .life b{font-size:15px;line-height:1.2}
.revealing .big-card .ratingline{padding:5px 0;white-space:normal;gap:4px;font-size:11px}
.revealing .big-card .ratingline b{font-size:23px}
.revealing .big-card .rating-note{font-size:10px}
.revealing .big-card .workline{display:flex;margin:5px 0 1px;font-size:12px;line-height:1.2}
.revealing .big-card .workline span{white-space:normal;overflow-wrap:anywhere;overflow:visible}
.revealing .big-card .radar{height:174px;flex:none;margin:2px 0;overflow:visible}
.revealing .big-card .radar svg{width:100%;height:174px;max-height:none;overflow:visible}
.revealing .big-card .radar-label{font-size:10px;letter-spacing:0}
.revealing .big-card .tags-heading{display:flex;font-size:10px;margin:0 0 2px}
.revealing .big-card .talent-tags,.revealing .big-card .chips{flex-wrap:wrap;height:auto;max-height:none;overflow:visible;margin:2px 0;gap:3px}
.revealing .big-card .talent-chip,.revealing .big-card .chip{font-size:11px;line-height:1.25;padding:2px 4px;white-space:normal;overflow-wrap:anywhere}
.revealing .big-card .cardbottom{font-size:11px;margin:3px 0 0;padding:2px 0 0}
/* Art is shared by hero, tray, market and the actual torn wrapper. */
.packart.premium{--pack-dark:color-mix(in srgb,var(--pack) 38%,#171525);--pack-light:color-mix(in srgb,var(--pack) 75%,#ffffff);color:#fff8e8;aspect-ratio:2/3.04;border-radius:5% 5% 4% 4%;background:linear-gradient(98deg,#0e102b75 0%,#ffffff38 5%,transparent 11%,transparent 80%,#ffffff25 91%,#0005 100%),radial-gradient(ellipse at 46% 39%,var(--pack-light),var(--pack) 45%,var(--pack-dark) 87%);box-shadow:inset 0 0 0 1px #ffffff70,inset 0 0 8px #11132b55,0 9px 14px -8px #19112580;overflow:hidden}
.packart.premium .packfoil{inset:9% 5% 8%;border:0;border-radius:5%;background:radial-gradient(ellipse at 46% 40%,#ffffff25,transparent 58%),linear-gradient(155deg,#ffffff19,transparent 38%,#15122233);display:block;overflow:hidden}
.packart.premium .packfoil:before{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(117deg,transparent 0 12cqi,#fff1 12.2cqi 12.6cqi,transparent 12.8cqi 20cqi);opacity:.25}
.packart.premium .pack-kicker{position:absolute;top:7%;left:7%;right:7%;font-size:5.2cqi;letter-spacing:.18em;color:#fff9e7;text-shadow:0 1px 2px #0006}
.packart.premium .pack-emblem{position:absolute;top:21%;left:15%;width:70%;height:49%;filter:drop-shadow(0 3px 4px #0005);overflow:visible}
.packart.premium .pack-type{position:absolute;bottom:16%;left:4%;right:4%;max-width:none;text-align:center;font-size:8.5cqi;line-height:1.04;font-weight:900;color:#fffbed;letter-spacing:.025em;text-shadow:0 2px 3px #0007}
.packart.premium .pack-small{position:absolute;bottom:7%;left:0;right:0;text-align:center;font-size:3.35cqi;letter-spacing:.12em;color:#fffbd5}
.packart.premium .pack-size{position:absolute;top:9%;right:5%;z-index:3;border:0;border-radius:1.7cqi;background:#fff9e7;color:#30263a;font-size:4.7cqi;letter-spacing:.02em;padding:1.1cqi 2.5cqi;box-shadow:0 2px 3px #0003}
.packart.premium .pack-cap,.packart.premium:after{height:9%;background:linear-gradient(180deg,#ffffff32,#0003 35%,#ffffff35 72%,#0003),repeating-linear-gradient(90deg,#fff4 0 1px,#0003 1px 2px,transparent 2px 3px),var(--pack-dark);border-bottom:1px solid #fff7;box-shadow:0 2px 4px #0003}
.packart.premium:after{height:8%;border-bottom:0;border-top:1px solid #fff7}
.packart.premium .pack-glint{background:linear-gradient(112deg,transparent 30%,#fff1 39%,#fff8 49%,#fff2 55%,transparent 65%) 170% 0/300% 100%;animation:foilSweep133 5.6s ease-in-out infinite;mix-blend-mode:screen;opacity:.65;z-index:4}
.packart.premium .pack-fold{position:absolute;inset:9% 0 8%;pointer-events:none;background:linear-gradient(166deg,transparent 5%,#ffffff45 8%,#15122238 10%,transparent 13%),linear-gradient(11deg,transparent 3%,#ffffff32 7%,#0002 10%,transparent 14%);z-index:2}
.focuspack{animation:packIdle133 5.8s ease-in-out infinite;transform-origin:50% 60%}
.focuspack.gripped,.focuspack.tearing{animation-play-state:paused}
.pack-shadow{animation:shadowIdle133 5.8s ease-in-out infinite}
.packselector{padding-top:13px;padding-bottom:8px}.packselector button:hover .packart{filter:drop-shadow(0 6px 6px #251a3955) brightness(1.08)}
.packselector .packart.premium{width:43px}.packselector button:hover .pack-glint{animation-duration:1.45s}
@keyframes packIdle133{0%,100%{transform:perspective(900px) translateY(0) rotateZ(-2.8deg) rotateY(-5deg)}50%{transform:perspective(900px) translateY(-9px) rotateZ(2.1deg) rotateY(6deg)}}
@keyframes shadowIdle133{0%,100%{transform:translateX(-50%) scale(.96);opacity:.67}50%{transform:translateX(-50%) scale(.83);opacity:.45}}
@keyframes foilSweep133{0%,12%{background-position:170% 0}65%,100%{background-position:-80% 0}}
/* Explicit test UR color is handled by the same artwork renderer. */
.packfocus[data-pack=testUR] .packart.premium{background:linear-gradient(125deg,#63457f,#9e84bb 25%,#6e709d 45%,#b28a93 60%,#49355e 90%)}
.pc-center .packart.premium{width:100%;height:100%;aspect-ratio:auto}
@media(max-height:670px){.shell:not(.revealing) .content{margin-bottom:75px}.revealing .resultactions{gap:3px}.revealing .primary{height:35px;min-height:35px}.revealing .resultactions>.pill{height:24px;min-height:24px}.revealing .resultbar{min-height:28px}.revealing .reveal-stage{gap:4px;padding-top:4px;padding-bottom:6px}}
/* Keep the entire home controls inside the available content row. */
.shell:not(.revealing) .content{margin-bottom:99px}
.home-stage{height:100%;min-height:0;padding-top:clamp(8px,2.5vh,24px)}
.home-stage .intro,.home-stage .profile{flex:none}
.home-stage .packstage{flex:1 1 0;min-height:0}
.home-stage .packfocus{flex:1 1 0;min-height:0;container-type:size;padding:6px 0;gap:6px}
.home-stage .focuspack .packart.premium{width:clamp(60px,min(52cqw,calc((100cqh - 60px)/1.52)),215px)}
.home-stage .packcaption{flex:none;min-height:30px}
.home-stage .testpacks{flex:none;margin-bottom:4px}
@media(max-height:670px){.shell:not(.revealing) .content{margin-bottom:79px}.home-stage .packfocus{padding:3px 0;gap:4px}.home-stage .focuspack .packart.premium{width:clamp(55px,min(45cqw,calc((100cqh - 48px)/1.52)),175px)}.home-stage .packcaption{min-height:24px}.packselector{padding-top:8px;padding-bottom:5px}.packselector .packart.premium{width:33px}}
@media(max-height:500px){.shell:not(.revealing) .content{overflow:auto}.home-stage{min-height:390px}}
@media(max-height:670px){.shell:not(.revealing) .content{margin-bottom:91px}}
