#resource-hud{display:flex;align-items:center;justify-content:flex-end;gap:12px;height:48px;color:#F3E2BC;position:relative;background:#191621;z-index:9}
.hud-resource{display:flex;align-items:center;gap:4px;position:relative;min-height:40px;font-size:14px}.hud-resource svg,.hud-resource img{width:30px;height:30px;object-fit:contain}.hud-hand{transform-origin:20px 20px;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.hud-clock [data-segment].spent{stroke:#655d6b}.hud-urgent .hud-clock{outline:3px double #C9A25E;border-radius:8px}.hud-urgent .hud-clock::after{content:'!';font-weight:700;color:#F3E2BC;font-size:16px}
.hud-energy [data-hud-energy]{font-size:11px;font-weight:700;max-width:42px;line-height:1.15}.hud-team{display:flex;gap:3px}
#game .hud-person{position:relative;width:44px;height:48px;min-width:44px;min-height:44px;border:0;background:none;padding:0!important;backdrop-filter:none;overflow:visible;color:#F3E2BC}
.hud-avatar{display:block;margin:auto;width:36px;height:36px;border-radius:50%;border:1px solid #C9A25E;background:#302534 center no-repeat}.hud-name{display:block;font-size:9px;line-height:12px}
.hud-tooltip{display:none;position:absolute;top:100%;right:0;width:210px;max-width:calc(100vw - 24px);background:#211d27;color:#F3E2BC;border:1px solid #C9A25E;border-radius:6px;padding:8px 10px;font-size:13px;line-height:1.4;text-align:left;z-index:12;pointer-events:none}
.hud-person:hover .hud-tooltip,.hud-person:focus-visible .hud-tooltip,.hud-person[aria-expanded=true] .hud-tooltip{display:block}
.hud-delta{position:absolute;right:-1px;top:0;font-size:13px;color:#F3E2BC;background:#191621;line-height:1.2}
.hud-pulse .hud-avatar{animation:hud-pulse .4s cubic-bezier(.16,1,.3,1)}@keyframes hud-pulse{50%{transform:scale(1.14)}}
.hud-cost{display:inline-flex;align-items:center;white-space:nowrap;gap:4px;color:#F3E2BC;font-size:13px;margin-left:6px}.hud-cost img{width:16px;height:16px}
.hud-float{position:absolute;right:0;top:85%;font-size:13px;white-space:nowrap;background:#211d27;border:1px solid #C9A25E;color:#F3E2BC;padding:2px 5px;border-radius:4px;animation:hud-float 1.2s ease-out both;z-index:13}
@keyframes hud-float{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-14px)}}
#resource-hud .hud-hint{position:absolute;top:calc(100% + 4px);right:0;max-width:min(520px,calc(100vw - 28px));width:max-content;background:#211d27;border:1px solid #C9A25E;color:#F3E2BC;font:13px/1.4 system-ui;padding:8px 12px;margin:0;z-index:10;pointer-events:none}
.hud-reduced .hud-hand{transition:none}.hud-reduced .hud-float{animation:none}.hud-reduced .hud-avatar{animation:none}
@media(max-width:760px){#resource-hud{justify-content:space-between;flex-basis:100%;width:100%;height:40px;gap:4px;margin:0}.hud-team{gap:0}.hud-name{display:none}.hud-avatar{width:32px;height:32px}#game .hud-person{width:44px;height:44px}.hud-resource svg,.hud-resource img{width:26px;height:26px}.hud-energy [data-hud-energy]{display:none}.hud-clock{font-size:12px}.hud-clock [data-hud-hour]{display:inline}.hud-tooltip{top:calc(100% + 3px)}#resource-hud .hud-hint{font-size:12px}.hud-cost{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hud-hand,.hud-avatar,.hud-float{animation:none!important;transition:none!important}}
