/* Recolher painéis do HUD (web/hud-minimize.js). Collapsed panels keep only
   their title row; the navbar eye hides every panel and leaves the map. */
.icon-eye {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/eye.svg");
}
.icon-eye-off {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/eye-off.svg");
}

.hud-collapse,
.hud-heading-action {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--ui-color-border-subtle);
  border-radius: var(--ui-radius);
  background: var(--ui-color-surface-control);
  color: var(--ui-color-text-muted);
  font-size: 14px;
  cursor: pointer;
}
.hud-collapse:hover,
.hud-heading-action:hover:not(:disabled) {
  border-color: var(--ui-color-border);
  color: var(--ui-color-text);
}
.hud-collapse:focus-visible,
.hud-heading-action:focus-visible {
  outline: var(--ui-focus-width) solid var(--ui-color-focus);
  outline-offset: var(--ui-focus-offset);
}
.hud-heading-action:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Expanded points up (fold), collapsed points down (unfold). */
.hud-collapse .ui-icon {
  transform: rotate(180deg);
}
[data-hud-collapsed="true"] .hud-collapse .ui-icon {
  transform: none;
}

/* Treinador e equipe: only the name row stays; level folds with XP. */
.party[data-hud-collapsed="true"] > :not(.party-trainer),
.party[data-hud-collapsed="true"]
  .party-trainer
  > :not(.party-trainer-identity) {
  display: none !important;
}
.party[data-hud-collapsed="true"] .party-trainer {
  padding-bottom: 0;
}
/* The folded row keeps its compact name beside the heading controls. */
.party[data-hud-collapsed="true"] #party-trainer-name {
  font-size: 16px;
}
.party[data-hud-collapsed="true"] .party-trainer-identity {
  gap: 6px;
}

/* The kill XP feed belongs to the team card; folding the card hides it too,
   instead of letting it fill the space the player just cleared. */
:root:has(#party-panel[data-hud-collapsed="true"]) #kill-xp-log {
  display: none !important;
}

/* Registro da Caçada: only the heading with the session clock. */
.ha-analyzer[data-hud-collapsed="true"] > :not(.ha-analyzer-heading) {
  display: none !important;
}
.ha-analyzer-heading .ha-session-time {
  margin-left: auto;
}

/* Hunt atual: the toggle sits in the corner, the state badge beside it. */
.hunt-header > .hud-collapse {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 20px;
  height: 20px;
  font-size: 12px;
}
.hunt-header > .hunt-header-state {
  right: 34px;
}
.hunt-header-copy small,
.hunt-header-copy > strong {
  padding-right: 84px;
}
.hunt-header[data-hud-collapsed="true"] :is(
    .hunt-header-mark,
    #hunt-header-label,
    .hunt-header-encounters,
    .hunt-header-pressure
  ) {
  display: none !important;
}

/* Esconder painéis: the map, navbar, chat and moves stay. */
:root[data-hud-hidden="true"]
  :is(#party-panel, #hunt-analyzer, #hunt-header, #kill-xp-log, .hud-panel-switch) {
  display: none !important;
}
.hud-visibility[aria-pressed="true"] {
  border-color: var(--ui-color-primary);
  color: var(--ui-color-primary);
}
/* The indicators belong to the card: folding it clears them too. */
#hunt-analyzer[data-hud-collapsed="true"] ~ #hunt-notifications-anchor {
  display: none;
}
