/* FMS overlay on catalogue cards, proportional to the card art (cqw = % of the art width):
   position ratings at the top right level with the playstyle icons, foot / skill moves · weak foot /
   work rates at the bottom right. Equal-width chips with room around the digits. */
.player .art,#detail .detail-art,.compare-art{container-type:inline-size}
.compare-art{position:relative}
.card-facts{position:absolute;inset:0;z-index:1;pointer-events:none}
.card-facts-top,.card-facts-bottom{position:absolute;right:4%;display:flex;flex-direction:column;align-items:stretch;width:28px;width:16cqw;gap:2px;gap:1.2cqw}
.card-facts-top{top:7%}
.card-facts-bottom{bottom:11%}
.card-fact{display:grid;justify-items:center;gap:1px;gap:.5cqw;padding:3px 2px;padding:1.55cqw 1cqw;border-radius:5px;border-radius:2.6cqw;background:#0c1320eb;box-shadow:0 0 0 1px #ffffff26 inset;color:#fff;font:700 9px/1 ShopInter,system-ui,sans-serif;font-size:clamp(7px,4.8cqw,11px);font-variant-numeric:tabular-nums;white-space:nowrap}
.card-fact small{font:600 6px/1 ShopInter,system-ui,sans-serif;font-size:clamp(5.5px,3cqw,7.5px);letter-spacing:.3px;color:#a3b2c8}
.squad-dialog .card-facts-bottom{display:none}
/* Player profile: positions with FMS rating under the name (links to «Лучшие на позиции»). */
.profile-positions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.profile-positions :is(a,span){display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:28px;padding:0 10px;border:1px solid #ffffff26;border-radius:8px;background:#0c1320cc;color:#fff;font:700 14px/1 ShopInter,system-ui,sans-serif;font-variant-numeric:tabular-nums;text-decoration:none}
.profile-positions a:hover,.profile-positions a:focus-visible{border-color:#ffffff59;background:#16213acc}
.profile-positions b{font:inherit}
.profile-positions small{font:700 11px/1 ShopInter,system-ui,sans-serif;letter-spacing:.3px;color:#a3b2c8;text-transform:uppercase}
/* Optical centring of mixed-size labels and digits: each text box is trimmed to cap height and baseline, so
   flex centring centres the visible glyphs (browsers without text-box keep the plain line boxes). */
.card-fact,.card-fact small,.profile-positions small,.profile-positions b,.version-score-pos,.version-score-num{text-box:trim-both cap alphabetic}
/* «Другие версии»: FMS ratings under the version name, same look as the pills under the player name. */
.version-scores{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.version-score{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;height:22px;padding:0 7px;border:1px solid #ffffff26;border-radius:7px;background:#0c1320cc;color:#fff;font:700 12px/1 ShopInter,system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.version-score-pos{font:700 10px/1 ShopInter,system-ui,sans-serif;letter-spacing:.3px;color:#a3b2c8;text-transform:uppercase}
