/* Native-resolution, transparent badges supplied by the player. */
.ll2-shell .ll2-person :is(.ll2-role.sgs-role-badge,.ll2-opponent-role.sgs-role-badge),
.ll2-shell.ll2-identity .raid-unit .ll2-role.id-guess-button.sgs-role-badge{
 position:absolute;z-index:8;left:auto;right:-5px;top:0;bottom:auto;
 width:clamp(24px,calc(var(--portrait)*.32),64px);
 height:clamp(24px,calc(var(--portrait)*.32),64px);
 min-width:0;min-height:0;max-height:none;margin:0;padding:0;border:0;border-radius:0;
 background:transparent var(--role-badge) center/contain no-repeat;
 box-shadow:none;filter:drop-shadow(0 1px 2px #0009);
 color:transparent;font-size:0;line-height:0;letter-spacing:0;text-shadow:none;
 writing-mode:horizontal-tb;white-space:normal;pointer-events:none;
}
.ll2-shell .ll2-own .ll2-person :is(.ll2-role.sgs-role-badge,.ll2-opponent-role.sgs-role-badge){
 width:clamp(24px,calc(var(--own,var(--portrait))*.32),64px);
 height:clamp(24px,calc(var(--own,var(--portrait))*.32),64px);
}
.ll2-shell.ll2-identity .raid-unit .ll2-role.id-guess-button.sgs-role-badge{
 cursor:pointer;pointer-events:auto;overflow:visible;
}
.ll2-shell .sgs-role-badge[data-role-badge="unknown"]{--role-badge:url('/sanguosha/assets/role-badges-hd/unknown.png')}
.ll2-shell .sgs-role-badge[data-role-badge="lord"]{--role-badge:url('/sanguosha/assets/role-badges-hd/lord.png')}
.ll2-shell .sgs-role-badge[data-role-badge="loyalist"]{--role-badge:url('/sanguosha/assets/role-badges-hd/loyalist.png')}
.ll2-shell .sgs-role-badge[data-role-badge="rebel"]{--role-badge:url('/sanguosha/assets/role-badges-hd/rebel.png')}
.ll2-shell .sgs-role-badge[data-role-badge="renegade"]{--role-badge:url('/sanguosha/assets/role-badges-hd/renegade.png')}
.ll2-shell .sgs-role-badge[data-role-badge="landlord"]{--role-badge:url('/sanguosha/assets/role-badges-hd/landlord.png')}
.ll2-shell .sgs-role-badge[data-role-badge="farmer"]{--role-badge:url('/sanguosha/assets/role-badges-hd/farmer.png')}
.ll2-shell .sgs-role-badge[data-role-badge="teammate"]{--role-badge:url('/sanguosha/assets/role-badges-hd/teammate.png')}
.ll2-shell .sgs-role-badge[data-role-badge="commander"]{--role-badge:url('/sanguosha/assets/role-badges-hd/commander.png')}
.ll2-shell .sgs-role-badge[data-role-badge="vanguard"]{--role-badge:url('/sanguosha/assets/role-badges-hd/vanguard.png')}
.ll2-identity .sgs-role-badge.guessed::after{z-index:1;color:#ffe5aa}
.ll2-identity .sgs-role-badge.id-guess-button:hover{filter:brightness(1.12) drop-shadow(0 1px 3px #000b)}
.ll2-identity .sgs-role-badge.id-guess-button:focus-visible{outline:2px solid #f2d07c;outline-offset:2px;border-radius:50%}
.ll2-identity .id-guess-modal [data-id-guess-pick]{display:grid;justify-items:center;align-content:center;gap:7px;padding:10px 4px}
.ll2-identity .id-guess-modal [data-id-guess-pick]>img{display:block;width:clamp(48px,9cqh,88px);height:clamp(48px,9cqh,88px);object-fit:contain;pointer-events:none}
.ll2-identity .id-guess-modal [data-id-guess-pick]>span{font-size:clamp(12px,2cqh,18px)}
