/* FPL-HQ v0.99.44: show the approved sponsor-lettered shirt-pattern PNG badges at consistent full-circle size.
   Keep pitch kits and small stat/opponent indicators untouched. */
body.fpl-theme .pl-match-card .pl-match-score .pl-club-button{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:4px!important;min-width:0!important;
 min-height:84px!important;padding:5px 2px 6px!important;box-sizing:border-box!important;
}
body.fpl-theme .pl-match-card .pl-match-score{
 grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)!important;
 gap:3px!important;align-items:center!important;
}
body.fpl-theme .pl-match-card .pl-crest-wrap,
body.fpl-theme .pl-match-card .pl-club-crest,
body.fpl-theme .pl-match-card .pl-club-crest-fallback{
 width:48px!important;height:48px!important;
 min-width:48px!important;min-height:48px!important;
 max-width:48px!important;max-height:48px!important;
 box-sizing:border-box!important;border-radius:50%!important;
 flex:0 0 48px!important;
}
body.fpl-theme .pl-match-card .pl-crest-wrap{
 display:grid!important;place-items:center!important;position:relative!important;
 padding:0!important;overflow:hidden!important;background:transparent!important;
}
body.fpl-theme .pl-match-card .pl-club-crest{
 display:block!important;object-fit:cover!important;object-position:center!important;
 aspect-ratio:1/1!important;padding:0!important;margin:0!important;
 background:transparent!important;transform:none!important;
}
body.fpl-theme .pl-match-card .pl-club-crest-fallback{
 display:grid!important;place-items:center!important;font-size:12px!important;font-weight:900!important;
}
body.fpl-theme .pl-match-card .pl-club-crest[hidden],
body.fpl-theme .pl-match-card .pl-club-crest-fallback[hidden]{display:none!important}
body.fpl-theme .pl-match-card .pl-club-name{
 display:block!important;max-width:100%!important;min-width:0!important;
 white-space:normal!important;line-height:1.14!important;
 overflow-wrap:break-word!important;text-overflow:clip!important;text-align:center!important;
}
@media(min-width:760px){
 body.fpl-theme .pl-match-card .pl-crest-wrap,
 body.fpl-theme .pl-match-card .pl-club-crest,
 body.fpl-theme .pl-match-card .pl-club-crest-fallback{
  width:52px!important;height:52px!important;
  min-width:52px!important;min-height:52px!important;
  max-width:52px!important;max-height:52px!important;flex-basis:52px!important;
 }
 body.fpl-theme .pl-match-card .pl-match-score .pl-club-button{min-height:91px!important;}
}
@media(max-width:350px){
 body.fpl-theme .pl-match-card .pl-crest-wrap,
 body.fpl-theme .pl-match-card .pl-club-crest,
 body.fpl-theme .pl-match-card .pl-club-crest-fallback{
  width:44px!important;height:44px!important;
  min-width:44px!important;min-height:44px!important;
  max-width:44px!important;max-height:44px!important;flex-basis:44px!important;
 }
}
/* Approved badge artwork, not generic geometric crests.
   Club-specific ring colours were set in the final backup reference poster.
   The overlay is a clean circle, with no separate thin black hairline. */
body.fpl-theme .pl-match-card .pl-crest-wrap[data-hq-backup-badge]{
 --hq-kit-ring:#fff;isolation:isolate;
}
body.fpl-theme .pl-match-card .pl-crest-wrap[data-hq-backup-badge="aston-villa"]{--hq-kit-ring:#8bd5f0}
body.fpl-theme .pl-match-card .pl-crest-wrap[data-hq-backup-badge="chelsea"]{--hq-kit-ring:#e5b72e}
body.fpl-theme .pl-match-card .pl-crest-wrap[data-hq-backup-badge="fulham"]{--hq-kit-ring:#111}
body.fpl-theme .pl-match-card .pl-crest-wrap[data-hq-backup-badge="manchester-united"]{--hq-kit-ring:#111}
body.fpl-theme .pl-match-card .pl-crest-wrap[data-hq-backup-badge="sunderland"]{--hq-kit-ring:#111}
body.fpl-theme .pl-match-card .pl-crest-wrap[data-hq-backup-badge="tottenham-hotspur"]{--hq-kit-ring:#172750}
body.fpl-theme .pl-match-card .pl-crest-wrap[data-hq-backup-badge]::after{
 content:"";position:absolute;inset:0;box-sizing:border-box;
 border:3px solid var(--hq-kit-ring);border-radius:50%;
 pointer-events:none;z-index:2;
}
