/* Reflow the solo HUD for phones; squads retain their readiness layout. */
@media (max-width: 560px), (max-width: 1000px) and (max-height: 540px) {
  #player-hud:not(.squad-mode) { width: min(200px,calc(100% - 100px)); min-width: 0; min-height: 0; padding: 6px; gap: 0; font-family: "Segoe UI",system-ui,sans-serif; letter-spacing: 0; }
  #player-hud:not(.squad-mode) #player-avatar { display: block; position: absolute; top: 7px; left: 7px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border-width: 1px; outline-width: 1px; background-position: center 25%; font-size: 20px; }
  #player-hud:not(.squad-mode) .player-hud-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows:22px 22px auto auto auto; gap: 2px 8px; }
  #player-hud:not(.squad-mode) .player-hud-title { grid-column: 1 / -1; margin-left: 50px; min-height: 14px; gap: 6px; font-size: 12px; line-height: 14px; text-shadow: none; }
  #player-hud:not(.squad-mode) #player-level { font-size: 11px; white-space: nowrap; }
  #player-hud:not(.squad-mode) .stat-row { gap: 4px; font-size: 11px; line-height: 14px; }
  #player-hud:not(.squad-mode) .stat-label { width: 20px; flex-shrink: 0; }
  #player-hud:not(.squad-mode) .stat-value { width: auto; font-variant-numeric: tabular-nums; }
  #player-hud:not(.squad-mode) .stat-track { height: 7px; border-width: 1px; box-shadow: none; }
  #player-hud:not(.squad-mode) .hud-health { grid-column: 1 / -1; grid-row: 2; margin-left: 50px; }
  #player-hud:not(.squad-mode) .hud-mana, #player-hud:not(.squad-mode) .hud-energy { display: grid; grid-template-columns: auto minmax(0,1fr); grid-row: 3; gap: 1px 4px; }
  #player-hud:not(.squad-mode) .hud-mana { grid-column: 1; }
  #player-hud:not(.squad-mode) .hud-energy { grid-column: 2; }
  #player-hud:not(.squad-mode) :is(.hud-mana,.hud-energy) .stat-value { grid-column: 2; grid-row: 1; }
  #player-hud:not(.squad-mode) :is(.hud-mana,.hud-energy) .stat-track { grid-column: 1 / -1; grid-row: 2; height: 4px; }
  #player-hud:not(.squad-mode) .hud-experience { grid-column: 1 / -1; grid-row: 4; line-height: 12px; }
  #player-hud:not(.squad-mode) .hud-experience .stat-track { height: 4px; }
  #player-hud:not(.squad-mode) .pouch-row { grid-column: 1 / -1; grid-row: 5; font-size: 10px; line-height: 12px; }
  #player-hud:not(.squad-mode) .pouch-row .stat-label { width: auto; }
  #player-hud:not(.squad-mode) #hud-pouch { white-space: normal; overflow-wrap: anywhere; text-wrap: balance; letter-spacing: 0; }
}
