/* v0.25.10: refine HUD stat chip fit.
   Goal: keep all 4 chips fully inside the header, use the upper empty space,
   and prevent any overlap/clipping into the section below.
*/
@media (min-width:1061px) and (pointer:fine) {
  body > .app-shell > .topbar {
    box-sizing:border-box!important;
    padding:2px 12px 1px!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }

  body > .app-shell > .topbar > .top-stats {
    display:flex!important;
    align-items:stretch!important;
    align-self:stretch!important;
    gap:7px!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    overflow:hidden!important;
  }

  body > .app-shell > .topbar > .top-stats > .stat-chip {
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    align-items:center!important;
    box-sizing:border-box!important;
    min-width:82px!important;
    height:auto!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    padding:2px 8px 3px!important;
    gap:1px!important;
    overflow:hidden!important;
  }

  body > .app-shell > .topbar > .top-stats > .stat-chip > .hud-icon-label {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:16px!important;
    min-height:16px!important;
    max-height:16px!important;
    margin:0!important;
    padding:0!important;
    line-height:16px!important;
    flex:0 0 auto!important;
  }

  body > .app-shell > .topbar > .top-stats > .stat-chip > strong {
    display:block!important;
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    line-height:1.02!important;
    font-size:14px!important;
    white-space:nowrap!important;
    flex:0 0 auto!important;
  }

  body > .app-shell > .topbar > .top-stats > .stat-chip > strong small {
    font-size:.66em!important;
    line-height:1!important;
  }

  body > .app-shell > .topbar > .top-stats .hud-custom-pixel-icon {
    width:16px!important;
    height:16px!important;
    max-width:16px!important;
    max-height:16px!important;
    object-fit:contain!important;
  }
}

@media (min-width:1061px) and (pointer:fine) and (max-width:1400px) {
  body > .app-shell > .topbar {
    padding:2px 8px 1px!important;
  }
  body > .app-shell > .topbar > .top-stats {
    gap:5px!important;
  }
  body > .app-shell > .topbar > .top-stats > .stat-chip {
    min-width:74px!important;
    padding:1px 6px 2px!important;
  }
  body > .app-shell > .topbar > .top-stats > .stat-chip > strong {
    font-size:13px!important;
  }
  body > .app-shell > .topbar > .top-stats .hud-custom-pixel-icon,
  body > .app-shell > .topbar > .top-stats > .stat-chip > .hud-icon-label {
    width:15px!important;
    height:15px!important;
    min-height:15px!important;
    max-height:15px!important;
  }
}

@media (min-width:1061px) and (pointer:fine) and (max-height:780px) {
  body > .app-shell > .topbar {
    padding:1px 8px 1px!important;
  }
  body > .app-shell > .topbar > .top-stats {
    gap:4px!important;
  }
  body > .app-shell > .topbar > .top-stats > .stat-chip {
    min-width:72px!important;
    padding:1px 6px 2px!important;
  }
  body > .app-shell > .topbar > .top-stats > .stat-chip > .hud-icon-label {
    height:14px!important;
    min-height:14px!important;
    max-height:14px!important;
    line-height:14px!important;
  }
  body > .app-shell > .topbar > .top-stats .hud-custom-pixel-icon {
    width:14px!important;
    height:14px!important;
    max-width:14px!important;
    max-height:14px!important;
  }
  body > .app-shell > .topbar > .top-stats > .stat-chip > strong {
    font-size:12px!important;
    line-height:1!important;
  }
}
