.gauge-list {
  display: grid;
  align-content: center;
  align-self: center;
  grid-auto-rows: auto;
  justify-items: stretch;
  justify-self: center;
  gap: 10px;
  min-height: 100%;
  width: min(100%, 340px);
}

.gauge-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 180px;
  align-items: center;
  gap: 12px;
}

.gauge-label {
  color: #b7c0cf;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.gauge-preview {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: end;
  width: 180px;
  height: 36px;
}

.gauge-level {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  margin: 2px 0 2px 2px;
  border: 3px solid #717171;
  border-radius: 2px;
  background: #1b2528;
  color: #d5e1df;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.gauge-bars {
  display: block;
  position: relative;
  height: 33px;
  margin: 3px 3px 0 2px;
}

.equip-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 1px);
  height: 5px;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(20% - 1px),
      rgb(0 0 0 / 0.65) calc(20% - 1px),
      rgb(0 0 0 / 0.65) 20%
    ),
    #23d8f2;
  border-width: 1px;
  border-style: solid;
  border-color: #2f2a2b;
}

.gauge-health-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 4px;
  gap: 1px;
  height: 27px;
  padding: 2px;
  border-width: 1px 1px 1px 0;
  border-style: solid;
  border-color: #adadad;
  border-radius: 2px;
  background: #030707;
  box-shadow: inset 0 0 0 1px #1f2d2b;
}

.gauge-health-fill {
  width: 100%;
  height: 100%;
  background-color: #2ecc71;
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 69px,
      rgb(0 0 0 / 0.62) 69px,
      rgb(0 0 0 / 0.62) 70px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 6px,
      rgb(0 0 0 / 0.62) 6px,
      rgb(0 0 0 / 0.62) 7px
    );
  background-position: left top, left top, left top;
  background-repeat: repeat-x, repeat-x, no-repeat;
  background-size: auto 100%, auto 50%, 100% 100%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -1px 0 rgb(0 0 0 / 0.35);
}

.gauge-resource-bar {
  height: 6px;
  border-width: 2px 0 2px 0;
  border-style: solid;
  border-color: #2f2a2b;
  background: #f2d337;
}

@media (max-width: 860px) {
  .gauge-list {
    justify-items: center;
    width: 180px;
  }

  .gauge-row {
    grid-template-columns: 180px;
    gap: 0;
  }

  .gauge-label {
    display: none;
  }
}

@media (max-width: 460px) {
  .gauge-list {
    grid-auto-rows: auto;
    justify-items: center;
    width: 100%;
  }

  .gauge-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  .gauge-preview {
    margin: 0;
  }
}
