.hud-character {
  position: absolute;
  top: 20px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 3px 12px 3px 4px;
  text-align: left;
}
.hud-character[hidden] { display: none; }
.hud-character canvas { width: 54px; height: 54px; image-rendering: pixelated; }
.hud-character small { display: block; font-size: 7px; letter-spacing: 1px; color: #957442; }
.hud-character strong { display: block; margin-top: 3px; font-size: 12px; }
.hud-character:hover { filter: brightness(1.05); }
.map-shell:has(.hud-character:not([hidden])) .hud-account { top: 100px; }
.map-shell.is-focused:has(.hud-character:not([hidden])) .hud-camera { top: 100px; right: 22px; }
.character-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; }
.character-dialog .dialog-header { margin-bottom: 10px; }
.character-dialog .dialog-header h2 { font-size: 24px; }
#character-description { margin: 0 0 18px; color: var(--ink); font-size: 12px; line-height: 1.7; }
.character-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.character-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 9px;
  border: 2px solid #b38a57;
  border-radius: 2px;
  background: #f4dfb4;
  box-shadow: inset 0 2px #fff8e2, 0 3px #7c583133;
  color: var(--ink);
}
.character-choice canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.character-choice strong { font-size: 14px; }
.character-choice > span { font-size: 10px; line-height: 1.7; min-height: 34px; }
.character-choice small { margin-top: auto; padding: 5px 9px; font-size: 10px; }
.character-choice[aria-pressed='true'] { border-color: #5f7845; background: #e2e4b7; box-shadow: inset 0 0 0 2px #a9bd7d, 0 3px #7c583133; }
.character-choice[aria-pressed='true'] small { background: #5f7845; color: #fff8e2; }
.character-choice:hover { filter: brightness(1.04); }
.character-choice:disabled { cursor: wait; opacity: .7; }
:is(.character-choice, .hud-character):focus-visible { outline: 3px solid #425b31; outline-offset: 4px; }
.character-status { min-height: 34px; margin: 16px 0 0; font-size: 11px; line-height: 1.7; }
@media (max-width: 850px) { .hud-character { top: 15px; right: 15px; } .map-shell:has(.hud-character:not([hidden])) .hud-account, .map-shell.is-focused:has(.hud-character:not([hidden])) .hud-camera { top: 93px; right: 15px; } }
@media (max-width: 600px) {
  .hud-character { top: 12px; right: 11px; min-height: 53px; gap: 5px; padding-right: 9px; }
  .hud-character canvas { width: 44px; height: 44px; }
  .hud-character strong { font-size: 10px; }
  .hud-character small { font-size: 6px; }
  .map-shell:has(.hud-character:not([hidden])) .hud-account, .map-shell.is-focused:has(.hud-character:not([hidden])) .hud-camera { top: 80px; right: 11px; }
  .character-dialog { padding: 18px; }
  .character-choices { gap: 9px; }
}
