.cost-large-card{width:286px;height:450px;margin:0}
.cost-large-card>.card-surface{grid-template-rows:48px minmax(0,1fr) 38px 112px 40px}
.cost-large-card .card-surface>.rating-table{padding:5px 23px 4px;height:112px;--stat-value-width:24px}
.cost-large-card .rating{grid-template-columns:36px minmax(0,1fr) 24px;height:14.5px;line-height:14.5px;gap:4px;font-size:11px}
.cost-large-card .rating .bar{height:6px}
.cost-large-card .stat-name{color:#fff}
.cost-large-card .nameplate{align-items:center}
.cost-large-card .card-bottom.pbm-cost-footer{position:relative;inset:auto;display:flex;align-items:flex-start;justify-content:center;gap:5px;border:0;padding:0 21px;height:40px;color:#e2ddd0;background:transparent;white-space:nowrap;overflow:hidden}
.cost-word{font-size:11px;line-height:20px;font-weight:400}
.pbm-sprite{display:inline-block;background-repeat:no-repeat;flex:none;vertical-align:middle}
.star-track{display:flex;align-items:center;gap:1px;height:20px}
.cost-star.unlit{opacity:.3;filter:grayscale(1)}
.cost-number{height:20px;min-width:27px;display:flex;justify-content:center}
.pbm-roster-card{position:relative;width:102px;height:153px;overflow:hidden;background:#111b24;color:#fff;font-family:Ntreev,system-ui;box-shadow:0 4px 8px #0005;isolation:isolate;flex:none;text-align:left;border:0;border-radius:0}
.pbm-roster-card>.roster-art{position:absolute;inset:0 0 auto;height:123px;width:102px;overflow:hidden}
.pbm-roster-card>.roster-art>.condition-icon{width:18px!important;height:18px!important;left:4px!important;bottom:22px!important;z-index:3}
.pbm-roster-card>.pbm-mini-frame{position:absolute;inset:0;z-index:4;pointer-events:none}
.pbm-roster-name{position:absolute;left:4px;right:4px;top:103px;height:22px;z-index:5;display:flex;align-items:center;justify-content:center;gap:2px;color:#131d25;text-shadow:none;font-size:12px;line-height:1;letter-spacing:-.04em;white-space:nowrap}
.pbm-mini-year{flex:none;font-size:12px;line-height:1}
.pbm-mini-player{min-width:0;overflow:hidden;text-overflow:clip;flex:1;text-align:center;font-size:12px;line-height:1}
.pbm-mini-club{width:13px;height:15px;display:flex;align-items:center;justify-content:center;flex:none}
.pbm-mini-club .team-emblem{width:13px!important;height:14px!important;object-fit:contain}
.pbm-mini-footer{position:absolute;top:130px;left:5px;right:4px;height:20px;display:flex;align-items:center;justify-content:space-between;z-index:5}
.pbm-mini-position{font-size:10px;color:#eff4f6;text-shadow:0 1px #000}
.pbm-mini-cost{margin-left:auto}
.pbm-roster-card.normal .pbm-roster-name{color:#f4f4ec;text-shadow:0 1px 2px #000}
.pbm-roster-card.allstar .pbm-roster-name,.pbm-roster-card.gold .pbm-roster-name,.pbm-roster-card.mvp .pbm-roster-name{color:#14212a;text-shadow:0 1px #ffffff66}
.pbm-roster-card.gold .pbm-roster-name{color:#fffbed;text-shadow:0 1px 2px #000,0 0 2px #000}
.cost-large-card>.card-surface{clip-path:inset(3% 3% 3% 3% round 12px)}
.cost-large-card>.card-surface>.scene{margin-inline:0;background-size:cover;background-position:center}
.cost-large-card:not(.mini):not(.rear) .card-surface>.top>.club-watermark{inset:19px 24px 1px;opacity:.36}
.cost-large-card:not(.mini):not(.rear) .club-watermark>.team-emblem{width:136px;height:48px}
.cost-large-card:not(.mini):not(.rear):has(>.edition-frame-art) .card-bottom.pbm-cost-footer{
 height:26px;min-height:26px;overflow:visible;margin:0;padding:2px 18px;
 align-items:center;gap:3px;border:1px solid #a7a99e;border-inline:0;border-radius:0;
 background:linear-gradient(180deg,#a1a7a8 0%,#555e60 12%,#434e52 45%,#283238 52%,#5b6261 100%);
 box-shadow:inset 0 1px #ffffff70,inset 0 -1px #0009;line-height:20px;
}
.cost-large-card[data-cost-edition=gold] .pbm-cost-footer{border-color:#bda45c!important;background:linear-gradient(180deg,#d0bd78,#746332 15%,#594b2b 48%,#352f22 52%,#786b3d)!important}
.cost-large-card[data-cost-edition=allstar] .pbm-cost-footer{border-color:#9ab9d3!important;background:linear-gradient(180deg,#9abbd2,#365c7d 16%,#27435f 48%,#192e49 52%,#52718c)!important}
.cost-word{font-size:11px;line-height:20px;flex:none;color:#f6f2dc}
.star-track{height:20px;gap:1px;align-items:center}
.cost-star{display:block;width:16px;height:16px;flex:none}
.cost-star-image{transform:scale(1.230769);transform-origin:0 0;display:block}
.cost-number{height:20px;min-width:27px;align-items:center;overflow:visible}
.pbm-mini-position{display:inline-flex;align-items:center;min-width:24px;height:20px;padding:1px 1px 0;font-size:12px;line-height:18px;font-weight:500;letter-spacing:-.02em;color:#fff;text-shadow:0 1px 2px #000;overflow:visible}
.pbm-mini-footer{top:129px;height:21px;left:6px}
.cost-large-card:not(.mini):not(.rear) .card-surface>.top>.club-watermark{opacity:.42;z-index:1}
.cost-large-card:not(.mini):not(.rear) .club-watermark>.team-emblem{transform:translate(-50%,-50%)!important;filter:brightness(2.3) saturate(.65);object-fit:contain}
.cost-large-card:not(.mini):not(.rear) .card-surface>.top>.club-title{z-index:3}
.cost-large-card>.card-surface{background:#101a23}
.cost-large-card>.card-surface>.front-background{position:absolute;inset:0 0 190px;height:auto;margin:0;z-index:0;background-position:center;background-size:cover;pointer-events:none}
.cost-large-card>.card-surface>.front-background::after{background:linear-gradient(180deg,#101a23ed 0%,#101a23a6 14%,#101a2326 29%,transparent 43%,transparent 77%,#101a23 100%);z-index:0}
.cost-large-card>.card-surface>.front-action-scene{background:transparent!important;z-index:1}
.cost-large-card>.card-surface>.top{z-index:4}
.cost-large-card .front-action-scene>.condition-icon{width:42px!important;height:42px!important;left:15px!important;bottom:24px!important}
.pbm-roster-card>.roster-art>.condition-icon{width:27px!important;height:27px!important;left:7px!important;top:70px!important;bottom:auto!important}
.cost-large-card .front-action-scene>.condition-icon,.pbm-roster-card>.roster-art>.condition-icon{max-width:none!important;max-height:none!important;object-fit:contain}
.cost-large-card>.card-surface>.top::after{display:none}
.cost-large-card>.card-surface{grid-template-rows:48px minmax(0,1fr) 44px 112px 48px}
.cost-large-card>.card-surface>.front-background{bottom:196px}
.cost-large-card>.card-surface>.nameplate{position:relative;margin-inline:0;height:44px;padding:0 23px 0 62px;border:0;background:transparent;overflow:visible;isolation:isolate;z-index:6;display:flex;align-items:center}
.curved-name-ribbon{position:absolute!important;inset:-6px 0 auto!important;width:100%;height:54px;z-index:0!important;filter:drop-shadow(0 2px 2px #0008);pointer-events:none}
.cost-large-card .nameplate>.name-logo{position:absolute;left:15px;top:-3px;width:47px;height:47px;z-index:4;overflow:visible;filter:drop-shadow(0 2px 2px #000b)}
.cost-large-card .name-logo>.team-emblem{width:45px!important;height:45px!important;max-width:none;object-fit:contain}
.cost-large-card .nameplate>.player-name{position:relative;flex:1;min-width:0;z-index:3;align-self:center;text-align:center;padding-top:3px}
.cost-large-card .player-name>strong{display:block;font:18px/24px Ntreev;color:#f6f1de;text-shadow:0 1px 2px #000,0 0 3px #000;white-space:nowrap}
.cost-large-card .nameplate>.player-meta{position:relative;right:auto;top:auto;z-index:3;width:35px;margin-left:6px;padding-top:5px;flex:none}
.ribbon-edition-title{position:absolute!important;top:-7px;left:68px;right:45px;text-align:center;font:9px/12px Ntreev;color:#f8e7ac;letter-spacing:.01em;text-shadow:0 1px 2px #000;z-index:4!important;white-space:nowrap}
.cost-large-card[data-name-ribbon=rookie] .ribbon-edition-title{color:#e4f6ff;top:-8px;font-size:8px}
.cost-large-card[data-name-ribbon=mvp] .ribbon-edition-title{font-size:12px;line-height:13px}
.cost-large-card[data-name-ribbon=cost10] .player-name>strong{color:#fff4d3}
/* All instances share the native slim card size; skill block prizes retain their own canvas. */
.roster-card.pbm-roster-card{display:block;width:102px;height:153px;max-width:none;aspect-ratio:102/153;border:0;border-radius:0;grid-template-rows:none}
:is(#page,#dialog,.lineup-reserve-dock) .mini-card:not(:is(.pack-art,.intro-cards) .mini-card){aspect-ratio:102/153}
:is(#page,#dialog,.lineup-reserve-dock) .mini-card>.roster-card.pbm-roster-card{width:102px;height:153px}
.pbm-roster-card .pbm-mini-club.roster-team-logo{width:13px;height:15px;margin:0;padding:0;overflow:visible}
.pbm-roster-card .pbm-mini-club .team-emblem{width:13px!important;height:14px!important}
.pack-summary-grid{--roster-card-width:102px}
.pack-summary-card>.pack-summary-art{max-width:102px;aspect-ratio:102/153}
.pack-summary-card .mini-card{max-width:102px!important}
.pack-summary-card .roster-card.pbm-roster-card{width:102px;height:153px}
.album-grid .album-card,.training-stand .stand-card,.pbm-fusion .fusion-sleeve{aspect-ratio:auto}
:is(.pack-art,.intro-cards) .mini-card:has(>.pbm-roster-card){width:102px;aspect-ratio:102/153}
@media(max-width:690px){
 :root{--roster-card-width:min(102px,calc((100vw - 58px) / 3))}
 #dialog .replacement-grid{grid-template-columns:repeat(3,var(--roster-card-width))}
 #dialog .pack-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}
 #page .pbm-fusion{--roster-card-width:min(90px,calc((100vw - 68px) / 4))}
}
/* Legacy containers must not stretch the native card canvas back to 118px. */
#page .card-field-board .card-field-slot[data-pos=C],#page .card-field-board .card-field-slot[data-pos=DH]{margin-top:-6px}
.roster-card.pbm-roster-card{width:102px!important;height:153px!important;border:0!important;display:block!important}
#page .pbm-fusion .fusion-sleeve,#page .skill-reference-layout .album-card{aspect-ratio:102/153!important;height:auto!important;min-height:0}
#page .pbm-fusion .fusion-album{grid-template-columns:repeat(auto-fill,var(--roster-card-width));gap:6px}
@media(max-width:900px){
 #page .skill-reference-layout>.player-album{max-height:none}
 #page .skill-reference-layout .album-grid{grid-template-columns:repeat(3,var(--roster-card-width))!important;max-height:calc(var(--roster-card-width) * 153 / 102 * 2 + 18px)!important;gap:6px!important;justify-content:center}
}
@media(max-width:690px){
 #page .pbm-fusion{--roster-card-width:min(102px,calc((100vw - 58px) / 3))}
 #page .pbm-fusion .fusion-album{grid-template-columns:repeat(3,minmax(0,1fr))}
 #page .pbm-fusion .fusion-sockets{grid-template-columns:repeat(4,minmax(0,1fr))}
 #page .lesson-studio .training-stand{display:flex!important;flex-direction:column;align-items:center;gap:5px;padding:8px 0}
 #page .lesson-studio .training-stand>*{margin:0!important;max-width:100%}
 #page .lesson-studio .training-stand>span{font-size:11px;white-space:nowrap;text-align:center}
 #page .lesson-studio .training-stand>button:not(.stand-card){width:100%;min-height:30px;white-space:nowrap}
}

/* Smaller training cards and a single five-player mobile defense bench. */
#page .skill-reference-layout,#page .pbm-fusion{--roster-card-width:84px}
#page .skill-reference-layout .album-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
#page .skill-reference-layout .album-card .mini-card{width:min(100%,var(--roster-card-width))!important}
@media(max-width:900px){
 #page .skill-reference-layout{--roster-card-width:min(84px,calc((100vw - 62px) / 4))}
 #page .skill-reference-layout .album-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-height:calc(var(--roster-card-width) * 153 / 102 * 2 + 18px)!important}
}
@media(max-width:690px){
 #page .pbm-fusion{--roster-card-width:min(84px,calc((100vw - 62px) / 4))}
 #page .pbm-fusion .fusion-album{grid-template-columns:repeat(4,minmax(0,1fr))}
 #page .card-defense-board .bench-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
 #page .card-defense-board .bench-cards .order-cell{width:100%;min-width:0}
 #page .card-defense-board .bench-cards .mini-card{width:100%}
}

/* Center the name independently of the protruding logo and year badge. */
.cost-large-card:not(.mini):not(.rear) .nameplate>.player-name{position:absolute;left:63px;right:63px;top:8px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;text-align:center}
.cost-large-card:not(.mini):not(.rear) .nameplate>.player-name>strong{width:100%;font:18px/24px Ntreev;text-align:center}
.cost-large-card:not(.mini):not(.rear) .nameplate>.player-meta{position:absolute;right:18px;top:2px;width:35px;height:32px;padding:0;margin:0;display:grid;grid-template-rows:20px 10px;gap:1px;align-content:start;justify-items:center}
.cost-large-card:not(.mini):not(.rear) .player-meta>b{line-height:18px;box-sizing:border-box}
.cost-large-card:not(.mini):not(.rear) .player-meta>small{font:9px/10px Ntreev;align-self:center}
#page .card-lineup-bench .bench-cards{justify-content:space-between}
#page .next-starter-overlay{inset:auto 0 auto;top:33.66%;transform:translateY(-50%);background:linear-gradient(#ffe49b80,#d7a85080);border-color:#fff1b980;box-shadow:0 1px 2px #11090040}

/* Original PBM CM_abroad badge: lower right of the portrait, clear of name/cost. */
.pbm-roster-card>.roster-study-mark{position:absolute;left:73px;top:71px;width:26px;height:26px;z-index:7;pointer-events:none;filter:drop-shadow(0 1px 2px #000b)}
.pbm-roster-card>.card-study-away{position:absolute;left:0;right:0;top:43px;height:23px;display:flex;align-items:center;justify-content:center;background:#182329cc;border-block:1px solid #dbe9ed70;color:#fff;font:14px/21px Ntreev;letter-spacing:-.04em;text-shadow:0 1px 2px #000;z-index:8;pointer-events:none}
#dialog .cost-large-card .front-action-scene>.card-study-mark{position:absolute;right:15px;bottom:24px;width:38px;height:38px;min-width:0;min-height:0;margin:0;padding:3px;border:0;border-radius:50%;background:transparent;box-shadow:none;z-index:12;display:grid;place-items:center;cursor:help;pointer-events:auto;touch-action:manipulation;filter:drop-shadow(0 1px 2px #000b)}
#dialog .card-study-mark>.pbm-sprite{transform:scale(1.2)}
#dialog .card-study-mark:focus-visible{outline:2px solid #f4d98e;outline-offset:1px}
/* Let the badge receive input above the full-card flip target. Other pixels still flip. */
:is(.lineup-card-flip,.pack-card-flip):has(.card-study-mark)>.lineup-card-rotor{z-index:21;pointer-events:none}
:is(.lineup-card-flip,.pack-card-flip)[data-face=back] .card-study-mark{pointer-events:none;visibility:hidden}
#dialog .card-study-tooltip{position:fixed;z-index:1000;max-width:calc(100vw - 24px);padding:7px 12px;border:1px solid #ead3a1;border-radius:6px;background:#172730f5;color:#fff5d6;font:14px/20px Ntreev;letter-spacing:-.04em;white-space:nowrap;box-shadow:0 3px 10px #0008;pointer-events:none;transform:translate(-50%,-100%)}
#dialog .card-study-tooltip::after{content:"";position:absolute;left:calc(50% - 4px);bottom:-5px;width:8px;height:8px;background:#172730;border-right:1px solid #ead3a1;border-bottom:1px solid #ead3a1;transform:rotate(45deg)}

/* A focusable badge must not scroll the cropped portrait when it receives focus. */
.cost-large-card>.card-surface>.front-action-scene{overflow:clip}

/* Match the mobile five-card defense bench: same native card, same painted width. */
@media(max-width:690px){
 #page .card-pitching-roster{container-type:inline-size;--pitch-gap:3px;--pitch-tile:min(102px,calc((100cqi - 22px) / 5));--roster-card-width:var(--pitch-tile);width:100%;min-width:0;max-width:none}
 #page .card-pitching-board .card-pitching-group{padding:4px}
 #page .card-pitching-rotation{display:grid;grid-template-columns:repeat(5,var(--pitch-tile));width:100%;gap:3px;margin:0;justify-content:center}
 #page .card-pitching-board .order-cell{width:var(--pitch-tile);min-width:0;flex:none;padding:0;border:0}
 #page .card-pitching-roster .card-pitching-bullpen{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #page .card-pitching-bullpen [data-duty=middle]{grid-column:1/-1}
 #page .card-pitching-staff{grid-template-columns:var(--pitch-tile);gap:3px;justify-content:center}
 #page [data-duty=middle] .card-pitching-staff{grid-template-columns:repeat(4,var(--pitch-tile))}
 #page .card-pitching-bullpen :is([data-duty=setup],[data-duty=closer]){width:auto;justify-self:stretch}
 #page .card-pitching-board .slot-title{font-size:10px;min-height:24px}
 #page .card-pitching-board .order-cell[data-drag-card]{touch-action:none;user-select:none;-webkit-touch-callout:none}
}

/* Uniform bio labels without changing the portrait/profile cell dimensions. */
.card.rear .reverse-profile{font:400 10px/12px Ntreev,system-ui;letter-spacing:-.04em}
.card.rear .reverse-profile>:not(.reverse-portrait),.card.rear .reverse-profile .back-birth>*{font:400 10px/12px Ntreev,system-ui;letter-spacing:-.04em;color:#27241c;white-space:nowrap;text-align:left}
@media(max-width:690px){
 #page .card-pitching-group>header{min-height:26px;margin-bottom:4px}
 #page .card-pitching-board .slot-title{min-height:20px}
}

/* Pitcher cards drag directly; role captions no longer reserve handle space. */
#page .card-pitching-board .slot-title{display:flex;align-items:center;justify-content:center;text-align:center;width:100%}

/* Readiness and optional contract effects sit above artwork and every frame. */
.card-growth-status{position:absolute;z-index:40;pointer-events:none;right:4px;top:4px;line-height:1;font-family:Ntreev,system-ui;user-select:none;-webkit-user-select:none}
.card-growth-status:empty{display:none}
.card-growth-dot{display:block;width:9px;height:9px;background:#ed344b;border:1px solid #fff1dd;border-radius:50%;box-shadow:0 1px 3px #000b,0 0 4px #ec253780}
.cost-large-card>.card-growth-status{top:48px;right:18px}
.card-growth-ready{display:block;padding:5px 9px;font-size:13px;font-weight:bold;white-space:nowrap;border-radius:4px;border:1px solid #ffc0ba;background:#9c1730;color:#fff7ed;box-shadow:0 2px 5px #0008}
.card-option-duration{display:flex;align-items:center;gap:2px;padding:2px 3px;color:#fff4d3;background:#111b2de8;border:1px solid #ad9563;border-radius:3px;font-size:11px;font-weight:bold;text-shadow:0 1px 1px #000;white-space:nowrap;box-shadow:0 1px 3px #0008}
.card-option-duration>img,.card-option-duration>svg{display:block;width:12px;height:12px;object-fit:contain;flex:none}
.cost-large-card>.card-growth-status .card-option-duration{font-size:17px;padding:4px 6px;gap:4px}
.cost-large-card>.card-growth-status .card-option-duration>img,.cost-large-card>.card-growth-status .card-option-duration>svg{width:18px;height:18px}
.card-option-duration.is-expired{color:#c5c9ce;border-color:#7c858e;background:#20252be8}
.card-option-duration.is-expired>img{filter:grayscale(1)}
