.hud-progress {
  padding-top: 0;
}
.hud-keeper-name {
  width: 100%;
  max-width: 100%;
  min-height: 26px;
  box-sizing: border-box;
  padding: 2px 6px;
  margin-bottom: 10px;
  border: 1px solid #c1aa70;
  border-radius: 7px 7px 9px 9px;
  background: #0b151e;
  box-shadow:
    0 0 0 2px #0b131b,
    0 0 0 3px #8b9ba3,
    0 3px 7px #000b;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f4e7c7;
  font:
    bold 14px/20px Georgia,
    serif;
  text-shadow: 0 2px 4px #000;
  pointer-events: auto;
}
.hud-level-portrait {
  display: grid;
  grid-template-columns: 26px 72px;
  align-items: center;
  gap: 12px;
  min-height: 86px;
}
.hud-level-portrait .hud-level {
  grid-column: 2;
  grid-row: 1;
}
.hud-companions {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 26px;
  height: 86px;
}
.hud-companion {
  position: absolute;
  left: 0;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 5px;
  border: 1px solid #b4a477;
  border-radius: 50%;
  color: #cfdbdf;
  background: radial-gradient(circle at 35% 20%, #344851, #09131c 80%);
  box-shadow:
    inset 0 0 0 2px #121d24,
    0 0 0 2px #66747a,
    0 2px 5px #000c;
  pointer-events: auto;
  cursor: pointer;
}
.hud-companion-slinky {
  left: 14px;
  top: 0;
}
.hud-companion-cat {
  top: 30px;
}
.hud-companion-bat {
  left: 14px;
  top: 60px;
}
.hud-companion[hidden] {
  display: none;
}
.hud-companion svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hud-companion[aria-pressed="true"] {
  color: #ffe5a1;
  border-color: #f1d38a;
  box-shadow:
    inset 0 0 0 2px #51482e,
    0 0 0 2px #b59b60,
    0 0 9px #d5ac6470;
}
.hud-companion:hover,
.hud-companion:focus-visible {
  color: #ffe5a1;
  outline: 2px solid #f1d38a;
  outline-offset: 3px;
}
.companion-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.companion-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.companion-tabs button {
  min-width: 0;
  padding: 10px 8px;
}
.companion-tabs [aria-selected="true"] {
  color: #ffe5a1;
  background: #30444e;
  border-color: #d5bd83;
}

@media (max-width: 600px) {
  .hud-level-portrait {
    grid-template-columns: 24px 62px;
    gap: 8px;
    min-height: 80px;
  }
  .hud-companion {
    width: 24px;
    height: 24px;
    padding: 4px;
  }
  .hud-companions {
    width: 24px;
    height: 80px;
  }
  .hud-companion-slinky,
  .hud-companion-bat {
    left: 10px;
  }
  .hud-companion-cat {
    top: 28px;
  }
  .hud-companion-bat {
    top: 56px;
  }
  .hud-keeper-name {
    font-size: 12px;
  }
}
