/* Trading-card frame. Palette is tied to rarity; portraits and ratings stay deterministic. */
.collectible{
 --card-accent:#d9a278;--card-foil:#f0d0b0;
 border:2px solid transparent;border-radius:10px;isolation:isolate;overflow:hidden;
 background:linear-gradient(#152031,#0d1625) padding-box,linear-gradient(135deg,var(--card-foil),var(--card-accent) 28%,#263449 53%,var(--card-accent) 78%,var(--card-foil)) border-box;
 color:#edf3fb;box-shadow:0 3px 7px #0003;
}
.collectible.tier-silver{--card-accent:#aebed1;--card-foil:#edf5ff}
.collectible.tier-gold{--card-accent:#e4bb5b;--card-foil:#fff0b2}
.collectible.tier-diamond{--card-accent:#72d4ed;--card-foil:#dafbff}
.collectible.tier-legend{--card-accent:#c9a0f1;--card-foil:#f1dfff}
.collectible .card-top{
 display:flex;align-items:center;gap:10px;height:58px;padding:8px 10px;
 background:linear-gradient(115deg,#1a2b40,#101a2b);border-bottom:1px solid color-mix(in srgb,var(--card-accent) 45%,transparent);
}
.collectible .card-top>strong{font-size:32px;line-height:.95;font-weight:700;color:var(--card-foil);font-variant-numeric:tabular-nums}
.collectible .card-top>strong small{font-size:8px;font-weight:400;color:#9bacc2;line-height:1.2;margin-top:4px}
.collectible .card-top>span{font-size:13px;color:#edf3fb;font-weight:600;padding-left:8px;border-left:1px solid #ffffff20}
.collectible .card-top>b{margin-left:auto;font-size:10px;font-weight:600;color:var(--card-accent);padding:4px 0;border-bottom:2px solid var(--card-accent)}
.collectible>img{height:170px;background:#1c3042;object-position:50% 28%;border-bottom:1px solid #ffffff12}
.collectible::before{content:'';position:absolute;top:58px;left:0;right:0;height:170px;pointer-events:none;z-index:1;background:linear-gradient(125deg,transparent 45%,#ffffff09 45% 46%,transparent 46% 65%,#ffffff09 65% 66%,transparent 66%);box-shadow:inset 0 -24px 24px -20px #101a2b}
.collectible .trait-pills>div{left:0;right:0;bottom:0;padding:8px 7px 6px;background:linear-gradient(transparent,#101a2bd9);gap:4px}
.collectible .tp{font-size:9px;line-height:14px;border-radius:4px;border-color:color-mix(in srgb,var(--tc) 65%,transparent);background:#101a2be6}
.collectible .tp b{font-weight:600}.collectible .tp i{border-radius:3px}
.collectible .card-name{position:relative;min-height:64px;padding:11px 10px 10px;color:#edf3fb;border-top:2px solid var(--card-accent);font-size:16px;font-weight:600;background:#101a2b}
.collectible .card-name>button{padding:0;border:0;border-radius:0;background:none;color:#edf3fb;font-size:16px;line-height:1.25;font-weight:600;text-align:left;min-height:0}
.collectible .card-name>button:hover{background:none;color:var(--card-foil);text-decoration:underline;text-underline-offset:3px}
.collectible .card-name>button:focus-visible{outline-offset:4px}
.collectible .card-name small{font-size:9px;line-height:1.45;color:#98abc3;margin-top:5px;font-weight:400}
.collectible .card-skills{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:0;background:#172438;border-color:#29394e;font-size:10px}
.collectible .card-skills span{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:9px 8px;color:#aabbd0;min-width:0}
.collectible .card-skills span+span{border-left:1px solid #29394e}
.collectible .card-skills b{color:#f0f5fb;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.collectible .ability-chips{display:flex;flex-wrap:wrap;gap:5px;padding:8px;background:#101a2b;border-top:1px solid #29394e;min-height:32px}
.collectible .ability{font-size:9px;line-height:1.4;background:none;border:0;padding:0;color:#aabbd0;font-weight:400}
.collectible .ability.active{color:var(--card-foil);font-weight:600}
.collectible .card-count{background:#0c1421;color:#91a4be;border-top:1px solid #29394e;font-size:10px;padding:7px 10px}
.collectible .lv-badge,.collectible .holo-badge{top:64px;border-radius:4px;font-weight:600}
.collectible .energy-badge{top:88px;border-radius:4px;font-weight:600}
.collectible .holo-badge{font-size:9px;border:1px solid #d5f7ff;background:linear-gradient(110deg,#d5b3f3,#a3ecf0,#f3e5a3);color:#182536}
.collectible.holo::after{z-index:3;opacity:.55;border-radius:8px;animation-duration:5s}
.collectible.missing{opacity:.65;filter:grayscale(.5)}
.collectible.missing .silhouette{background:radial-gradient(circle at 50% 35%,#3e5067 0 18%,transparent 19%),radial-gradient(ellipse at 50% 95%,#3e5067 0 38%,transparent 39%),#17263a;height:170px}
.collectible.missing .card-name{font-size:14px}.collectible.missing .card-name small{color:#a2b2c6}
/* Match the frame to the narrow collection and compact squad versions. */
@media(max-width:800px){
 .collectible .card-top{height:52px;padding:7px 6px;gap:6px!important}
 .collectible .card-top>strong{font-size:27px}.collectible .card-top>span{font-size:11px;padding-left:5px}
 .collectible .card-top>b{font-size:9px}.collectible>img{height:145px}
 .collectible::before{top:52px;height:145px}
 .collectible .card-name{min-height:68px;padding:9px 7px;font-size:13px}
 .collectible .card-name>button{font-size:13px;min-height:44px;display:flex;align-items:center}
 .collectible .card-name small{font-size:8px}.collectible .card-skills{font-size:9px}
 .collectible .card-skills span{padding:8px 5px;gap:3px}.collectible .card-skills b{font-size:12px}
 .collectible .trait-pills>div{padding:8px 4px 5px;gap:3px}.collectible .tp{font-size:8px;line-height:13px;padding-right:4px;gap:2px}
 .collectible .lv-badge,.collectible .holo-badge{top:58px}.collectible .energy-badge{top:81px}
 .lineup-slot .collectible{border-radius:8px}
 .lineup-slot .collectible::before{top:44px;height:96px}
 .lineup-slot .collectible .card-top>span{padding-left:3px;font-size:9px}
 .lineup-slot .collectible .card-top>b{font-size:8px;padding:3px 0}
 .lineup-slot .collectible .card-name{min-height:0}
 .lineup-slot .collectible .card-name>button{min-height:36px}
 .lineup-slot .collectible .card-skills,.lineup-slot .collectible .ability-chips{display:none}
 .lineup-slot .collectible .lv-badge,.lineup-slot .collectible .holo-badge{top:48px;font-size:8px;padding:2px 4px}
 .lineup-slot .collectible .energy-badge{top:70px;font-size:8px}
 /* Pack cards are scaled from a fixed width; keep the touch target rule out of their printed names. */
 .po-front .collectible .card-name{min-height:58px}.po-front .collectible .card-name>button{min-height:0}
}
@media(max-width:359px){.card-grid .collectible>img{height:125px}.card-grid .collectible::before{height:125px}.card-grid .collectible .card-top>strong{font-size:23px}.card-grid .collectible .card-top>b{font-size:8px}}
@media(prefers-reduced-motion:reduce){.collectible.holo::after{animation:none}}
