/* One player-card layout for every promotion and every view.
   The ID in :is raises specificity above legacy promotion !important rules. */
:is(.card,#squad-unified-card){box-sizing:border-box!important;position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:28px 12px 48px 30px 18px 10px 14px 20px!important;gap:2px!important;align-content:start!important;align-items:center!important;width:168px!important;min-width:168px!important;max-width:168px!important;height:280px!important;min-height:280px!important;max-height:280px!important;flex:0 0 168px!important;padding:40px 23px 32px!important;overflow:hidden!important;isolation:isolate;background-size:100% 100%!important}
:is(.card,#squad-unified-card)>:not(.era-tag){box-sizing:border-box!important;position:relative!important;inset:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;align-self:center!important;z-index:1}
:is(.card,#squad-unified-card)>.rating{grid-row:1!important;font-size:27px!important;line-height:28px!important;height:28px!important;min-height:0!important;text-align:left!important;padding:0!important}
:is(.card,#squad-unified-card)>.pos{grid-row:2!important;font-size:8px!important;line-height:12px!important;height:12px!important;min-height:0!important;max-height:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis}
:is(.card,#squad-unified-card)>.face{grid-row:3!important;display:flex!important;justify-content:center!important;align-items:center!important;height:48px!important;min-height:0!important;max-height:48px!important;padding:0!important;overflow:hidden!important}
:is(.card,#squad-unified-card)>.face :is(svg,img){width:auto!important;height:48px!important;max-height:100%!important;max-width:100%!important;object-fit:contain}
:is(.card,#squad-unified-card)>.name{grid-row:4!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;line-height:15px!important;height:30px!important;min-height:0!important;max-height:30px!important;white-space:normal!important;overflow-wrap:anywhere;text-align:center!important;overflow:hidden!important;padding:0!important}
:is(.card,#squad-unified-card)>.club{grid-row:5!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;font-size:8px!important;line-height:18px!important;height:18px!important;min-height:0!important;max-height:18px!important;white-space:nowrap!important;overflow:hidden!important;padding:0!important}
:is(.card,#squad-unified-card)>.club img{width:14px!important;height:14px!important;object-fit:contain;flex:none}
:is(.card,#squad-unified-card)>div:not([class]){grid-row:6!important;font-size:8px!important;line-height:10px!important;height:10px!important;overflow:hidden!important;white-space:nowrap!important;text-align:center}
:is(.card,#squad-unified-card)>:is(.rarity-label,.evo-card-label){grid-row:7!important;font-size:7px!important;line-height:12px!important;height:14px!important;min-height:0!important;max-height:14px!important;letter-spacing:0!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;padding:0!important}
:is(.card,#squad-unified-card).evolution>.rarity-label{display:none!important}
:is(.card,#squad-unified-card)>.stats{grid-row:8!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:3px!important;width:100%!important;height:20px!important;min-height:0!important;max-height:20px!important;font-size:9px!important;line-height:16px!important;padding:2px 0 0!important;white-space:nowrap!important}
:is(.card,#squad-unified-card)>.stats span{white-space:nowrap!important;min-width:0}
:is(.card,#squad-unified-card)>.era-tag{position:absolute!important;z-index:2;top:42px!important;right:23px!important;max-width:63px!important;font-size:7px!important;line-height:10px!important;padding:2px 3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis}
/* Keep fixed-size cards accessible inside narrow screens and team slots. */
.ut-lineup-slot{min-width:168px}.evo-entry>.card{max-width:168px!important;min-width:168px!important}
#quickMode .slot{width:168px;min-width:168px;height:280px;flex-shrink:0}
#quickMode .duel{overflow-x:auto;justify-content:safe center;min-height:300px}
.duo98-cards{flex-wrap:wrap}

/* Compact identity column: position, flag, then club crest. */
:is(.card,#squad-unified-card)>.card-country-badge{position:absolute!important;top:86px!important;left:23px!important;right:auto!important;bottom:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;height:16px!important;min-height:0!important;max-height:16px!important;padding:0!important;overflow:hidden!important;z-index:2}
:is(.card,#squad-unified-card)>.card-country-badge .country-flag{display:block!important;width:24px!important;height:16px!important;max-width:100%!important;margin:0!important;border:0!important;border-radius:2px!important;object-fit:contain!important}
:is(.card,#squad-unified-card)>.club{position:absolute!important;top:108px!important;left:23px!important;right:auto!important;bottom:auto!important;grid-row:auto!important;width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;line-height:0!important;overflow:hidden!important;padding:0!important;z-index:2}
:is(.card,#squad-unified-card)>.club :is(img,svg){display:block!important;width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important;margin:0!important;flex:none}
:is(.card,#squad-unified-card)>.face{padding-left:30px!important}

/* Match visible frame edges, compensating for source-image transparent margins. */
:is(.card,#squad-unified-card).total-rush{background-size:159.829060% 104.469274%!important;background-position:50.000000% 50.000000%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).flashback{background-size:108.553971% 107.973665%!important;background-position:53.571429% 35.779817%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).moments-card{background-size:124.852768% 107.848837%!important;background-position:50.236967% 35.185185%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).libertadores{background-size:116.868798% 109.763314%!important;background-position:50.326797% 29.545455%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).futurestar{background-size:109.958506% 106.685838%!important;background-position:50.000000% 26.881720%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).tots{background-size:112.293388% 111.393380%!important;background-position:71.428571% 34.459459%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).surprise{background-size:125.383707% 110.514541%!important;background-position:50.232558% 39.007092%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).freeze{background-size:123.831776% 107.927273%!important;background-position:50.490196% 50.458716%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).tunder{background-size:125.265643% 108.096280%!important;background-position:50.000000% 48.648649%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).record-breaker-frame{background-size:118.870056% 108.885652%!important;background-position:57.485030% 40.163934%!important;background-repeat:no-repeat!important;}
:is(.card,#squad-unified-card).battles-rewards::before{background-size:100% 100%!important;background-position:center!important;}
:is(.card,#squad-unified-card).champions-rewards::before{background-size:100% 100%!important;background-position:center!important;}

/* Reward frames use the same direct background surface as other promotions. */
:is(.card,#squad-unified-card):is(.battles-rewards,.champions-rewards){background-color:transparent!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important}
:is(.card,#squad-unified-card).battles-rewards{background-image:url('assets/card-textures-mobile/fc920c8c8fbe7b.webp')!important}
:is(.card,#squad-unified-card).champions-rewards{background-image:url('assets/card-textures-mobile/bc22d4c929f384.webp')!important}
:is(.card,#squad-unified-card):is(.battles-rewards,.champions-rewards)::before{display:none!important;content:none!important}
/* Align Flashback's main frame rather than the protruding glitch streaks. */
:is(.card,#squad-unified-card).flashback{background-size:121.68949772% 107.97366496%!important;background-position:52.63157895% 35.77981651%!important}
