/* Player cards, rank insignia and key caps (src/ui/menu/card.js, rank_badge.js), shared by the menu page and the
   game page (scoreboard, killcam, after-action report). A card's size comes from --h (its height, in the em of
   wherever it sits); the callsign banner keeps the art's 512 : 112. */
.fr-pc { --h: 3em; position: relative; display: inline-flex; height: var(--h); vertical-align: top; filter: drop-shadow(0 .2em .5em rgba(0, 0, 0, .5)); }
.fr-pc-xl { --h: 4.7em; } .fr-pc-lg { --h: 3.9em; } .fr-pc-md { --h: 3em; } .fr-pc-sm { --h: 2.3em; } .fr-pc-xs { --h: 1.8em; }
.fr-pc-emb { position: relative; width: var(--h); height: var(--h); flex: none; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #3a3f44, #16181a 72%); border: 1px solid rgba(239, 233, 220, .22); border-right: 0; }
.fr-pc-mono { font: 700 calc(var(--h) * .5)/1 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', sans-serif; color: rgba(239, 233, 220, .32); }
.fr-pc-emb-art { position: absolute; inset: 6%; background: center / contain no-repeat; }
.fr-pc-emb-art:not(.fr-noart):not(.fr-art-wait) + * , .fr-pc-emb:has(.fr-pc-emb-art:not(.fr-noart):not(.fr-art-wait)) .fr-pc-mono { opacity: 0; }
.fr-pc-cs { position: relative; height: var(--h); width: calc(var(--h) * 4.571); overflow: hidden; border: 1px solid rgba(239, 233, 220, .22); background: linear-gradient(100deg, #24272a, #121314); }
.fr-pc-art { position: absolute; inset: 0; background: center / cover no-repeat; }
.fr-pc-cs::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 7, 8, .78) 0%, rgba(6, 7, 8, .42) 46%, rgba(6, 7, 8, .1) 100%); }
/* (v1.10, #76) the words and, on their left, the side: the killstreaks on the title's line, the badge and the level
   on the name's (a thin rule between); the name has the rest of the banner */
.fr-pc-txt { position: absolute; z-index: 1; left: calc(var(--h) * .16); top: 0; bottom: 0; right: calc(var(--h) * .2); display: flex; align-items: center; gap: calc(var(--h) * .15); min-width: 0; }
.fr-pc-side { flex: none; display: grid; justify-items: start; align-content: center; gap: calc(var(--h) * .05); padding-right: calc(var(--h) * .13); align-self: stretch;
  border-right: 1px solid rgba(239, 233, 220, .2); }
.fr-pc-tn { flex: 1; min-width: 0; display: grid; align-content: center; gap: calc(var(--h) * .03); }
.fr-menu .fr-pc-title, .fr-pc-title { font-size: calc(var(--h) * .19); font-weight: 700; letter-spacing: .3em; color: #ffc98a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.fr-pc-name { font-size: calc(var(--h) * .4); font-weight: 700; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.05; text-shadow: 0 .05em .3em rgba(0, 0, 0, .8); }
.fr-pc-rank { display: flex; align-items: center; gap: calc(var(--h) * .07); }
.fr-pc .fr-pc-ks { position: static; }     /* (the strip's own look, killstreaks/menu.css, now in the side's flow) */
.fr-pc-badge { width: calc(var(--h) * .52); height: calc(var(--h) * .52); display: grid; place-items: center; }
.fr-pc-badge svg, .fr-xp-badge svg, .fr-lb-badge svg, .fr-rank-badge svg { width: 100%; height: 100%; display: block; }
.fr-pc-lvl { font: 700 calc(var(--h) * .36)/1 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', sans-serif; font-style: normal; }
.fr-pc-you .fr-pc-cs, .fr-pc-you .fr-pc-emb { border-color: rgba(255, 154, 60, .75); }
.fr-pc-sm .fr-pc-title, .fr-pc-xs .fr-pc-title { display: none; }

.fr-xp { display: flex; align-items: center; gap: .7em; width: calc(3.9em * 5.571); }
.fr-xp-badge { width: 2.1em; height: 2.1em; flex: none; }
.fr-xp-mid { flex: 1; min-width: 0; display: grid; gap: .28em; }
.fr-xp-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8em; font-size: .8em; letter-spacing: .14em; }
.fr-xp-rank { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fr-xp-lvl { white-space: nowrap; flex: none; }
.fr-xp-lvl { color: #ff9a3c; font-weight: 700; font-family: 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', sans-serif; }
.fr-xp-bar { height: 4px; background: rgba(239, 233, 220, .16); overflow: hidden; }
.fr-xp-fill { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #d97f24, #ff9a3c 70%, #ffc98a); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.fr-xp-nums { font: 600 .7em/1 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .12em; color: rgba(239, 233, 220, .64); white-space: nowrap; text-align: right; }
.fr-key { display: inline-grid; place-items: center; min-width: 1.65em; height: 1.55em; padding: 0 .4em; border: 1px solid rgba(239, 233, 220, .28); border-radius: 2px;
  background: rgba(239, 233, 220, .06); font: 700 .8em/1 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .06em; color: #efe9dc; white-space: nowrap; }

/* looping video over the still (v1.9; ui/loops.js) */
.fr-loop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .25s; }
.fr-live > .fr-loop { opacity: 1; }
.fr-loop-emblem { object-fit: contain; } .fr-loop-callsign { object-fit: cover; }
.fr-pc-emb-art.fr-live { background-image: none !important; }
