/* Sources and native coordinates: catalog/profile-ui-sources.json.
   Textures are decoded originals, not CSS recreations. */
@font-face{font-family:GameText;src:url('fonts/CruyffSansNormal-Regular.de7d0fe8c3f2.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:GameText;src:url('fonts/CruyffSansNormal-Medium.1d188f1aba58.woff2') format('woff2');font-weight:500 600;font-display:swap}
@font-face{font-family:GameNumbers;src:url('fonts/Numbers-Medium.94e582d07149.woff2') format('woff2');font-weight:500;font-display:swap}
/* Native fontdb: Numbers, Regular maps to CruyffSansCondensed-Medium.
   Use its proportional digits for prices instead of fixed-width Numbers Medium. */
@font-face{font-family:GameNumbers;src:url('fonts/CruyffSansCondensed-Medium.23bed58e0063.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:GameText;src:url('fonts/CruyffSansNormal-Bold.f362a696f360.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:GameHeading;src:url('fonts/CruyffSansExtended-Heavy.af55d506d2eb.woff2') format('woff2');font-weight:900;font-display:swap}
:root{--game-background-shade:rgb(0 8 16 / .55);--profile-gutter:14px}
/* Keep native scrolling and gestures without visible scrollbar tracks. */
*{scrollbar-width:none}
*::-webkit-scrollbar{display:none;width:0;height:0}
body,dialog{font-family:GameText,Arial,sans-serif;background:linear-gradient(var(--game-background-shade),var(--game-background-shade)) center/cover fixed no-repeat,#03121c url('game-ui/bgteammanagement_BACKGROUND_2048.png') center center/cover fixed no-repeat}
dialog{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
header,.dialog-top{background:#00121b99;backdrop-filter:blur(12px)}
.dialog-top{flex-direction:row-reverse;justify-content:flex-end;align-items:center;height:54px;min-height:54px;margin-inline:0;padding:5px var(--profile-gutter);gap:8px;letter-spacing:0;font-size:14px;border:0;color:#fcfcf7}
/* Native topbar: 64px icon and 32px title. Preserve their ratio at the
   original catalog icon size of 40px, inside its 44px touch target.
   BackWidget: width 72, icon x=-8 with 8px transparent inset: visible
   circle ends at 48, title starts at 72. Scaled gap is 24*40/64=15px;
   7px inside the touch target plus the 8px flex gap reproduce it. */
.dialog-top button{flex-shrink:0;background:url('game-ui/headerbar_BACK_ICON.png') center/40px 40px no-repeat;font-size:0;width:44px;height:44px;padding:0}
.dialog-top #detailName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:900 20px/1 GameHeading,Arial,sans-serif;letter-spacing:0;color:#fff;transform:translateY(1.5px)}
.intro,.profile-hero,.detail-art,.player .art{background:none}
.profile-heading h2{font-family:GameHeading,Arial,sans-serif;font-size:40px;font-weight:900;display:flex;justify-content:center}.profile-heading .eyebrow{color:#a6a6a1}
.profile-hero{border:0;padding-inline:var(--profile-gutter);padding-bottom:12px}.profile-rating{font-size:16px}
.profile-hero{isolation:isolate}
.profile-heading h2,.profile-rating{text-shadow:0 1px 4px #0008}
.profile-heading .eyebrow{color:#fcfcf7;text-shadow:0 1px 3px #000}
.summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 14px}
.summary-heading .game-section-title{margin:0}
.card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:none;margin:14px 0 0}
.card-utility-actions,.card-votes{display:flex;align-items:center;gap:8px}
.card-actions button,.card-actions summary{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:1px solid #ffffff21;border-radius:12px;border-image:none;background:linear-gradient(145deg,#1a2c3bda,#0b1722e8);box-shadow:0 3px 10px #0002,inset 0 1px 0 #ffffff08;color:#e7eef4}
.card-actions button img,.card-actions button svg{display:block;width:24px;height:24px;object-fit:contain}
.card-actions button svg{width:20px;height:20px}
.card-actions .animation-toggle[aria-pressed="true"]{border-color:#46a6ff88;background:linear-gradient(135deg,#46a6ff2a,#6f7cff24);color:#b8d9ff}
.card-actions .card-favorite[aria-pressed="true"],.card-actions .card-favorite[aria-pressed="true"]:hover{border-color:#eac37388;background:linear-gradient(135deg,#edc87924,#d8a64715);color:#edca83}
.card-favorite[aria-pressed="true"] svg{fill:currentColor;fill-opacity:.22}
.animation-pause-icon{display:none}.animation-toggle[aria-pressed="true"] .animation-play-icon{display:none}.animation-toggle[aria-pressed="true"] .animation-pause-icon{display:initial}
.card-actions button:focus-visible,.card-actions summary:focus-visible{outline:2px solid #46a6ff;outline-offset:2px}
@media(hover:hover) and (pointer:fine){.card-actions button:not(:disabled):hover,.card-actions summary:hover{border-color:#46a6ff88;color:#fff}}
.card-votes .card-vote{width:auto;min-width:54px;padding:0 10px;gap:7px;font:500 13px/1 GameText,Arial,sans-serif;font-variant-numeric:tabular-nums}
.card-votes .vote-dislike svg{transform:rotate(180deg)}
.card-votes .vote-like[aria-pressed="true"]{border-color:#46a6ff99;color:#a6d1ff;background:linear-gradient(135deg,#46a6ff26,#6f7cff26)}
.card-votes .vote-dislike[aria-pressed="true"]{border-color:#e499a980;color:#f4b6c4;background:#c7657b1a}
.card-votes .card-vote[aria-pressed="true"] svg{fill:currentColor;fill-opacity:.14}
.card-actions button:disabled{opacity:.45;cursor:default}
.card-download{position:relative;margin:0;padding:0;border:0}
.card-download summary{list-style:none;cursor:pointer}
.card-download summary::-webkit-details-marker{display:none}
.card-download-menu{position:absolute;left:0;right:auto;top:calc(100% + 8px);z-index:4;width:190px;padding:6px;border:1px solid #ffffff26;border-radius:12px;background:#0b1722;box-shadow:0 12px 28px #0007}
.card-actions .download-size{width:100%;height:auto;min-height:52px;flex-direction:column;align-items:flex-start;gap:4px;padding:8px 10px;border:0;border-image:none;font:400 14px/1.2 GameText,Arial,sans-serif;text-align:left}
.card-actions .download-size:hover{background:#123342}
.card-actions .download-size{border-radius:7px;background:none;box-shadow:none}
.download-size small{font-size:12px;color:#a6a6a1}
.card-action-status{font:400 13px/1.4 GameText,Arial,sans-serif;color:#f7c274;text-align:center;margin:8px 0 0}
/* EA StoreView SecondaryTab -> tab_PREFAB_TABTXT_TER, overridden to 40px.
   Native Poppins Medium is 20 game units; portrait UI uses 14 CSS px, without horizontal compression. */
.profile-tabs{display:flex;position:sticky;top:54px;bottom:auto;left:auto;transform:none;width:100%;max-width:100%;height:40px;min-height:40px;z-index:4;gap:0;padding:0;border:0;box-shadow:none;background:#061721;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.profile-tabs::-webkit-scrollbar{display:none}
.profile-tabs{width:100%;max-width:100%;margin-inline:0;padding-inline:var(--profile-gutter);scroll-padding-inline:var(--profile-gutter)}
.profile-tabs,.profile-tabs button{cursor:grab;user-select:none}
.profile-tabs.is-dragging,.profile-tabs.is-dragging button{cursor:grabbing}
.profile-tabs button{position:relative;flex:0 0 auto;width:auto;height:40px;min-height:40px;min-width:0;overflow:hidden;border:0;border-radius:0;border-image:url('game-ui/common_TAB_STORE_BUTTON_BG_NORMAL.png') 0 34 0 27 fill /0 34px 0 27px;background:none;color:#a6a6a1;font:500 14px/26px GameText,Arial,sans-serif;text-transform:uppercase;letter-spacing:0;padding:0 12px;display:flex;align-items:center;justify-content:center}
.profile-tabs .tab-label{position:relative;z-index:1;display:block;flex:none;white-space:nowrap;transform:none;line-height:26px}
.profile-tabs button::after{content:'';position:absolute;right:0;top:8px;bottom:auto;width:1px;height:24px;background:#ffffff26}
.profile-tabs button:last-child::after{display:none}
.profile-tabs button[aria-selected="true"]{background:none;box-shadow:none;color:#fcfcf7;font-weight:500}
.profile-tabs button[aria-selected="true"]::before{content:'';position:absolute;inset:0;width:auto;height:auto;z-index:0;border:0;background:url('game-ui/common_TAB_BUTTON_LINE_SELECTED.png') bottom/100% 4px no-repeat,url('game-ui/common_TAB_BG_SELECTED.png') center/100% 100% no-repeat;filter:none;animation:none;transform:none}
.profile-panels{padding-inline:var(--profile-gutter);padding-top:12px}.profile-panel{scroll-margin-top:104px}
.game-section-title,.profile-panel .player-profile h3,.profile-panel .shard-panel h3,.profile-panel .skill-tree h3,.profile-panel .talents-panel h3{font-family:GameText,Arial,sans-serif;font-size:22px;font-weight:400;text-transform:none;letter-spacing:0}
.identity-strip,.profile-panel .fact,.work-rates>div{border-color:#ffffff1a}
.identity-strip{font-size:16px}.identity-strip span{color:#fcfcf7}
/* PLAYERINFOOVERVIEW: 40px rows, 30px stars at .68 scale, 36px pitch;
   preferred foot uses one native 32px image with two 16px numeric labels. */
.native-player-ratings{margin:0 0 20px;max-width:320px}
.native-foot-row>span:first-child{white-space:nowrap}
.profile-overview{container-type:inline-size}
.overview-content{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:12px;align-items:stretch}
.overview-content:not(:has(.compact-shard-panel)){grid-template-columns:minmax(0,1fr)}
.overview-content .native-player-ratings{min-width:0;margin:0}
.profile-panel .shard-panel.compact-shard-panel{margin:0;padding:6px 8px;min-width:0;border-image-outset:4px}
.compact-shard-panel .shard-prices{height:100%;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:0}
.compact-shard-panel .shard-prices>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}
.compact-shard-panel .shard-prices>div+div{border:0;border-top:1px solid #ffffff1a;padding:0}
.compact-shard-panel .shard-prices span{font-size:11px;line-height:14px}
.compact-shard-panel .shard-prices strong{justify-content:center;flex-wrap:nowrap;gap:4px;margin:0;font-size:18px;font-weight:400;line-height:22px;white-space:nowrap}
.compact-shard-panel .shard-prices img{display:block;width:18px;height:18px;flex:none}
.compact-shard-panel .shard-prices .shard-price-value{display:block;font:inherit;line-height:1;color:inherit;transform:translateY(.04em)}
@container(max-width:369px){
 .overview-content{grid-template-columns:minmax(0,1fr)}
 .compact-shard-panel .shard-prices{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
 .compact-shard-panel .shard-prices>div+div{border:0;border-left:1px solid #ffffff1a;padding:0 0 0 12px}
}
.native-rating-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;border-bottom:1px solid #ffffff1a;font:400 18px/1.3 GameText,Arial,sans-serif;color:#fcfcf7}
.native-rating-row:last-child{border-bottom:0}
.native-stars{display:flex;flex:none;align-items:center;gap:4.08px;width:118.32px;height:24px}
.native-stars img{display:block;flex:none;width:20.4px;height:20.4px}
.native-feet{position:relative;display:flex;flex:none;width:32px;height:32px;margin-right:0;font:500 18px/32px GameText,Arial,sans-serif;color:#fcfcf7}
.native-feet img{position:absolute;inset:0;width:32px;height:32px}
.native-feet>span{position:relative;left:-.2px;display:block;flex:none;width:16px;height:32px;text-align:center}
.profile-panel .fact span{font-size:14px;color:#a6a6a1}.profile-panel .fact strong{font-size:18px;font-weight:400}
.work-rates>div{font:400 18px GameText,Arial,sans-serif;padding:10px 0;min-height:40px}.work-rates strong{font-weight:400}
/* progression_PLAYERINFOOVERVIEW._lockerroomLabel: Normal Regular 16. */
.profile-panel .shard-panel,.profile-panel .skill-branch,.profile-panel .version,.game-style-card,.player{border:0;border-radius:0;border-image:url('game-ui/common_FRAME_10_ROUND.png') 28 fill /14px;background:none;box-shadow:none}
.profile-panel .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:10px;align-items:stretch}
/* progression_ATTRIBUTESWIDGET: frame slices 28, transparent overflow 8;
   title inset 1, height 32, corner slices 10. Keep both textures at the
   same native scale so their corners and translucent fill meet correctly. */
.profile-panel .stat-group{min-width:0;min-height:205px;border:0;border-radius:0;border-image:url('game-ui/common_FRAME_10_ROUND.png') 28 fill /28px /8px;background:none;padding:1px 1px 10px;overflow:hidden}
.profile-panel .stat-group h4{display:flex;align-items:center;min-width:0;height:32px;font:400 14px/1 GameText,Arial,sans-serif;text-transform:uppercase;margin:0 0 0;padding:0 7px;border:0;border-image:url('game-ui/playercompare_PLAYERCOMPARE_STATS_TOP.png') 0 10 2 10 fill /0 10px 2px 10px;background:none}
.stat-group .stat-title{display:block;flex:1;min-width:0;overflow:hidden}
.stat-group .stat-title .native-fit-text{transform-origin:left center}
.stat-group .stat-total{flex:none;margin-left:8px;font:500 16px/1 GameNumbers,Arial,sans-serif;color:#fcfcf7}
.stat-group .stat-total-values{display:flex;align-items:center;flex:none;gap:6px;margin-left:8px;white-space:nowrap}
.stat-group .stat-total-values .stat-total{margin-left:0}
.stat-group .stat-total-bonus{color:#07f468;font:500 14px/1 GameNumbers,Arial,sans-serif}
.profile-panel .stat{grid-template-columns:minmax(0,1fr) auto;margin:0;min-height:27px;column-gap:7px;padding:4px 9px;font:400 12px/1.3 GameText,Arial,sans-serif}
.profile-panel .stat .stat-label{display:flex;align-items:center;min-width:0;white-space:nowrap;color:#a6a6a1}
.profile-panel .stat b{font:500 14px/1 GameNumbers,Arial,sans-serif}
/* progression_ATTRIBUTESWIDGET._attrValueAdd: Numbers Medium 16 next to
   the white value at 18. Preserve that ratio at the portrait value size 14. */
.profile-panel .stat .stat-values{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap;color:#fcfcf7}
.profile-panel .stat-values b{min-width:3ch;text-align:right}
.profile-panel .stat-values .stat-bonus{color:#07f468;font:500 12.44px/1 GameNumbers,Arial,sans-serif}
.profile-panel .bar{display:none}
.summary-attributes{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:stretch;gap:10px;padding:12px 10px;margin:0 0 20px;border:0;border-image:url('game-ui/playerinfo_fc_FRAME_PLAYERINFO_1.png') 100 32 12 32 fill /50px 16px 6px 16px}
.summary-ovr{display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid #ffffff1a;padding-right:10px;color:#fcfcf7}
.summary-ovr span{font:400 16px/1.4 GameText,Arial,sans-serif}
.summary-ovr strong{font:400 48px/1 GameNumbers,Arial,sans-serif}
.summary-six{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 4px;align-items:center}
.summary-attribute{min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px}
.summary-attribute strong{color:#2fba48;font:400 30px/1 GameNumbers,Arial,sans-serif}
.summary-attribute span{font:400 10px/1.3 GameText,Arial,sans-serif;text-transform:uppercase;max-width:100%}
@media(max-width:360px){.summary-attributes{grid-template-columns:56px minmax(0,1fr);gap:6px;padding:12px 6px}.summary-ovr{padding-right:6px}.summary-ovr strong{font-size:42px}.summary-attribute strong{font-size:26px}.summary-attribute span{font-size:9px}}
.talent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start}
.profile-panel .talent-card{container-type:inline-size;position:relative;border:0;border-radius:0;border-image:url('game-ui/common_TILE_WHITE_GRADIENT.png') 12 fill /12px;background:none;box-shadow:none;overflow:visible}
.profile-panel .talent-heading,.profile-panel .talent-card summary{position:relative;display:block;min-height:0;aspect-ratio:190/172;padding:0;margin:0}
.profile-panel .talent-card img{position:absolute;left:28.947368%;top:9.302326%;width:42.105263%;height:46.511628%;object-fit:contain}
.profile-panel .talent-card strong{position:absolute;left:4.210526%;right:4.210526%;top:62.790698%;height:9.302326%;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:visible;font:400 10.526316cqw/1 GameText,Arial,sans-serif;color:#fcfcf7}
.profile-panel .talent-type{position:absolute;left:4.210526%;right:4.210526%;top:76.744186%;height:11.627907%;display:flex;align-items:center;justify-content:center;font:400 8.421053cqw/1 GameText,Arial,sans-serif;color:#a6a6a1}
.profile-panel .talent-card[open]{border:0;border-image:url('game-ui/common_TILE_WHITE_GRADIENT.png') 12 fill /12px}
.profile-panel .talent-card p{padding:0 12px 14px;font-size:15px}
.talent-info{position:absolute;top:5px;right:5px;width:clamp(12px,12cqw,18px);height:clamp(12px,12cqw,18px);color:#fcfcf7;line-height:0}
.talent-info svg{display:block;width:100%;height:100%}
.profile-panel button.talent-card{display:block;width:100%;padding:0;margin:0;color:inherit;text-align:inherit;font:inherit}
/* progression_COMMONITEMTIPS + TIPSDESCRIPTIONWIDGET: 248px content,
   20px title, 18px Normal Regular description, original sliced backdrop. */
.talent-tooltip{position:fixed;inset:auto;margin:0;width:256px;max-width:calc(100vw - 24px);padding:0 0 12px;border:0;border-radius:0;border-image:url('game-ui/dropdown_DROPDOWN_CORNER_BGSHADOW.png') 12 15 18 15 fill /12px 15px 18px 15px /2px 5px 9px 5px;background:none;color:#fcfcf7;box-shadow:none}
.talent-tooltip::backdrop{background:transparent}
.talent-tooltip:not([data-positioned]){visibility:hidden}
.talent-tooltip h4{margin:0;padding:0 12px;min-height:36px;display:flex;align-items:center;font:500 20px/1.3 GameText,Arial,sans-serif}
.talent-tooltip p{margin:0;padding:8px 12px 0;max-height:min(260px,calc(100dvh - 180px));overflow-y:auto;scrollbar-width:none;font:400 18px/1.55 GameText,Arial,sans-serif;color:#a6a6a1;white-space:pre-line}
.talent-tooltip p::-webkit-scrollbar{display:none}
/* playstyle_PREFAB_PLAYSTYLEDETAILALERT: lower identity column and
   vertical description viewport; original popup texture, no video area. */
.game-style-list{gap:16px}
.profile-panel .game-style-card{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:stretch;gap:14px;padding:16px 12px;border:0;border-radius:0;border-image:url('game-ui/common_FRAME_POPUP_L.png') 12 fill /8px;background:none;box-shadow:none}
.game-style-identity{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:4px;color:#deded8}
.game-style-identity img{width:84px;height:84px;object-fit:contain;margin-bottom:12px}
.game-style-level{font:400 15px/24px GameText,Arial,sans-serif}
.game-style-card .game-style-identity h4{font:400 15px/24px GameText,Arial,sans-serif;color:#deded8;margin:0;overflow-wrap:anywhere}
.game-style-description{position:relative;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior-y:contain}
.game-style-description::-webkit-scrollbar{display:none}
.game-style-card .game-style-description p{position:absolute;top:0;left:0;right:0;font:400 14px/24px GameText,Arial,sans-serif;color:#fcfcf7;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.native-style-highlight{color:#07f468}
@media(max-width:360px){.profile-panel .game-style-card{grid-template-columns:82px minmax(0,1fr);gap:10px;padding:12px 8px}.game-style-identity img{width:72px;height:72px}.game-style-level,.game-style-card .game-style-identity h4{font-size:13px;line-height:22px}.game-style-card .game-style-description p{font-size:13px;line-height:22px}}
.search,select{font-family:GameText,Arial,sans-serif}.player-name{font:500 18px GameText,Arial,sans-serif}
.profile-panel .version>b,.shard-prices strong{font-family:GameNumbers,Arial,sans-serif}
.profile-panel .version{font-size:16px}.profile-panel .version small{font-size:13px}
.profile-panel .version{min-height:74px;padding:7px 10px;gap:10px}
.version-art{position:relative;display:block;width:58px;height:58px;flex:0 0 58px;isolation:isolate}
.version-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.version-art b{position:absolute;top:8px;left:0;right:0;text-align:center;color:#fff;font:700 26px/1 GameCruyff,Arial,sans-serif;text-shadow:0 1px 2px #000,0 0 4px #0009}

.version-copy{min-width:0;line-height:1.3}
@media(max-width:350px){.work-rates>div{font-size:16px}}

/* Native sprite: 236x48, 84 frames, 28 FPS; displayed at 340x48. */

/* CruyffSansNormal aliases Poppins in the installed fontdb.sb. */
body{font-synthesis:none}
button,input,select{font-family:inherit}
.native-fit-text{display:inline-block;flex:none;white-space:nowrap;transform-origin:center}
