/* Four ranks use color + distinct shape + a visible text label. No PNG recoloring.
 * Markup: <span class="ph-reward-rank" data-tier="bronze"><i class="ph-reward-rank-symbol" aria-hidden="true"></i><span>Bronze</span></span>
 * Use the same marker in the highest award caption and each milestone row.
 * Include this AFTER ui.css. Its state selectors use the existing server data.
 */
.ph-reward-rank{display:inline-flex;align-items:center;gap:7px;color:#f4eff8;font-size:13px;font-weight:600;line-height:1.5;vertical-align:baseline;white-space:nowrap}
.ph-reward-rank-symbol{display:inline-block;flex:0 0 12px;width:12px;height:12px;background:#d8a17b;border:1px solid rgba(255,255,255,.35);border-radius:50%}
.ph-reward-rank[data-tier="silver"] .ph-reward-rank-symbol{background:#dfe5ee;border-radius:1px;transform:rotate(45deg);width:10px;height:10px;flex-basis:10px;margin:1px}
.ph-reward-rank[data-tier="gold"] .ph-reward-rank-symbol{background:#efd28b;border:0;border-radius:0;clip-path:polygon(50% 0,61% 34%,98% 35%,69% 57%,79% 93%,50% 72%,21% 93%,31% 57%,2% 35%,39% 34%)}
.ph-reward-rank[data-tier="diamond"] .ph-reward-rank-symbol{background:#a5edf1;border:0;border-radius:0;clip-path:polygon(22% 0,78% 0,100% 35%,50% 100%,0 35%);height:14px}
.ph-rewards .ph-reward-family[data-state="locked"] .ph-reward-art{opacity:.48}.ph-rewards .ph-reward-family[data-state="unknown"] .ph-reward-art,.ph-rewards .ph-reward-family[data-state="pending"] .ph-reward-art{opacity:.75}
.ph-rewards .ph-reward-family[data-state] .ph-reward-state::before{content:"";display:inline-block;box-sizing:border-box;width:7px;height:7px;margin-right:6px;vertical-align:1px;border:1px solid #b9d2c4;border-radius:50%;background:#b9d2c4}.ph-rewards .ph-reward-family[data-state="locked"] .ph-reward-state::before{background:transparent;border:1px dashed #ad9cba}.ph-rewards .ph-reward-family[data-state="unknown"] .ph-reward-state::before,.ph-rewards .ph-reward-family[data-state="pending"] .ph-reward-state::before{background:transparent;border:1px dotted #bdb0cc}.ph-rewards .ph-reward-family[data-state="historical"] .ph-reward-state::before{background:transparent;border:3px double #b5a4c6;width:9px;height:9px}
.ph-rewards .ph-reward-milestones li[data-milestone-state]{border-left:2px solid #493855;padding-left:12px}.ph-rewards .ph-reward-milestones li[data-milestone-state="earned"]{border-left-color:#b9d2c4}.ph-rewards .ph-reward-milestones li[data-milestone-state="locked"]{border-left:2px dashed #857492}.ph-rewards .ph-reward-milestones li[data-milestone-state="unknown"],.ph-rewards .ph-reward-milestones li[data-milestone-state="pending"]{border-left:2px dotted #857492}.ph-rewards .ph-reward-milestones li[data-milestone-state="historical"]{border-left:3px double #b5a4c6}
@media(forced-colors:active){.ph-reward-rank-symbol{background:CanvasText!important;border-color:CanvasText!important}.ph-reward-rank{color:CanvasText}.ph-rewards .ph-reward-family[data-state] .ph-reward-art{opacity:1}}
