/* Give run stamps a reserved row, so long names cannot squeeze or clip them. */
.pocket-hud .hud-player>div{min-width:0}
.pocket-hud .hud-player b.hud-player-name{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.pocket-hud:has(.hud-player-stamps:not(:empty)){position:relative;padding-bottom:24px}
.pocket-hud .hud-player .hud-player-stamps{position:absolute;left:6px;right:6px;bottom:5px;display:flex;flex-wrap:wrap;gap:4px;max-width:calc(100% - 12px);margin:0;align-items:center;white-space:normal}
.pocket-hud .hud-player .hud-player-stamps:empty{display:none}
.pocket-hud .hud-player .hud-player-stamps>em{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:auto;height:auto;min-width:0;margin:0;padding:1px 3px;font:700 8px/1.25 var(--font);font-style:normal;letter-spacing:0;white-space:nowrap;writing-mode:horizontal-tb;text-orientation:mixed;transform:none;text-shadow:none;border:1px solid #bf6b8b;border-radius:3px;background:#fff0f5;color:#a13d68}
.pocket-hud .hud-player .hud-player-stamps>.budget-badge{border-color:#5b957e;background:#e4f2df;color:#32614c}
.pocket-hud .hud-player .hud-player-stamps>.budget-austerity{border-color:#c87a54;background:#fff0d9;color:#9a4a31}
.pocket-hud .hud-player .hud-player-stamps>.all-attendance-badge{border-color:#d3a03b;background:#fff6c5;color:#ae3c63}
@media(max-width:600px){
 .pocket-hud:has(.hud-player-stamps:not(:empty)){padding-bottom:22px}
 .pocket-hud .hud-player .hud-player-stamps>em{font-size:7px;line-height:9px;padding:1px 2px}
}
/* On the home screen, share the existing status row to preserve scene height. */
.pocket-shell>.pocket-hud:has(.hud-player-stamps:not(:empty)){padding-bottom:8px}
.pocket-shell>.pocket-hud .hud-player .hud-player-stamps{right:auto;bottom:8px;width:max-content;max-width:170px}
.pocket-shell>.pocket-hud:has(.hud-player-stamps:not(:empty)) .hud-run-status{padding-left:178px}
@media(max-width:600px){
 .pocket-shell>.pocket-hud.hud-two-rows:has(.hud-player-stamps:not(:empty)){padding-bottom:3px}
 .pocket-shell>.pocket-hud .hud-player .hud-player-stamps{bottom:6px;max-width:126px}
 .pocket-shell>.pocket-hud:has(.hud-player-stamps:not(:empty)) .hud-run-status{padding-left:132px}
}
