.player-flags{display:inline-flex;align-items:center;gap:2px;vertical-align:middle;margin-inline-end:.32em;white-space:nowrap}
.player-flag,.flag-enlarged{display:inline-grid;place-items:center;color:#eac784;background:linear-gradient(145deg,#494033,#151718);border:1px solid #836b41;box-sizing:border-box;overflow:hidden}
.player-flag{width:17px;height:18px;font:11px Georgia;cursor:help}
.player-flag:focus-visible{outline:2px solid #ffcf74}.player-flag img,.player-flag svg,.flag-enlarged img,.flag-enlarged svg{width:100%;height:100%;object-fit:contain}
.country-standard{width:100%;aspect-ratio:4/3;display:block;background-image:url('/art/country-flags.webp');background-size:1600% 1700%}
.player-flag-tooltip{position:fixed;z-index:2147483647;padding:8px 10px;max-width:145px;text-align:center;background:#19191b;border:1px solid #ba965a;box-shadow:0 4px 16px #000b;color:#f4dfbc;pointer-events:none;font:14px Georgia}
.player-flag-tooltip small,.player-flag-tooltip b{display:block}.flag-enlarged{width:72px;height:72px;margin:auto auto 5px;font-size:32px}
.orc-warning{display:block;background:#331b1b;color:#ffc28c;padding:3px 6px}.portrait-roster:has([name="orcClass"]){grid-template-columns:repeat(4,minmax(0,1fr))}
.orc-warning{border-left:2px solid #c94c3c;box-shadow:inset 12px 0 24px -17px #ee2a27}
#privateFlags{max-height:10rem;overflow:auto}#privateFlags>div{display:flex;align-items:center;gap:.3rem}

.portrait-roster:has([name="orcClass"]):has(.roster-choice:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}


/* Keep the striking head inside the waist-up crop, including at hover zoom. */
.orc-club-portrait {
  display: block;
  position: relative;
  z-index: 2;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  mask-image: linear-gradient(#000 81%, transparent);
}
.portrait-roster--combat .orc-club-portrait img {
  position: absolute;
  top: 5%;
  left: 6%;
  width: 113%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  mask-image: none;
  transform-origin: 40% 20%;
}
.portrait-roster--combat .orc-club-portrait img[src$="-female.webp"] {
  right: 6%;
  left: auto;
  transform-origin: 60% 20%;
}

.player-flag:has(.country-standard){width:24px;height:16px;flex:none;border:0}
.player-flag .country-standard{height:100%}
.player-flag:has(.race-standard,.group-standard){width:20px;height:25px;flex:none;border:0;background:transparent}
.player-flag:has(> .class-insignia){width:20px;height:20px;flex:none;border:0;background:transparent}
.class-insignia{display:grid;place-items:center;width:100%;height:100%;color:#edcb83}
.race-standard{display:block;width:100%;height:100%;color:#ffe09a}
.flag-enlarged:has(.race-standard,.group-standard){background:#171717}
.group-standard{display:block;width:100%;height:100%}
.flag-enlarged :is(.race-standard,.group-standard){width:48px;height:60px}
.group-standard svg svg{width:24px;height:31px}

.player-flag:has(>.neutral-standard){width:33px;height:21px;flex:none;border:0;background:transparent}
.flag-enlarged:has(>.neutral-standard){width:102px;height:65px;background:#1a1b1c}
