/* Wire Bridge V2 HP stretch viewer */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #3a3d45;
  color: #e8e2d8;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.wb-app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: #3a3d45;
}

.wb-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.wb-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.1rem 1.25rem 1rem;
}

.wb-hp {
  justify-self: start;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.wb-hp__value {
  font-size: clamp(3.6rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #ffd900;
}

.wb-hp__unit {
  font-size: clamp(1.1rem, 3.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.wb-controls {
  justify-self: stretch;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(100%, 28rem);
  pointer-events: auto;
}

.wb-controls__btns {
  display: flex;
  gap: 0.55rem;
}

.wb-scrub {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  cursor: pointer;
}

.wb-scrub__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.wb-scrub__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.1rem;
  margin: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.wb-scrub__input:active {
  cursor: grabbing;
}

.wb-scrub__input:disabled {
  opacity: 0.4;
  cursor: default;
}

.wb-scrub__input:focus-visible {
  outline: 2px solid #ffd900;
  outline-offset: 3px;
  border-radius: 999px;
}

.wb-scrub__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 217, 0, 0.55);
}

.wb-scrub__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: #ffd900;
  border: 2px solid #1a1a1e;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.wb-scrub__input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 217, 0, 0.55);
}

.wb-scrub__input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffd900;
  border: 2px solid #1a1a1e;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.wb-btn {
  appearance: none;
  border: 1px solid #ffd900;
  background: rgba(26, 26, 30, 0.55);
  color: #ffd900;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wb-btn:hover,
.wb-btn:focus-visible {
  background: rgba(255, 217, 0, 0.18);
  border-color: #ffe566;
  color: #ffe566;
  outline: none;
}

.wb-btn[aria-pressed="true"] {
  background: rgba(255, 217, 0, 0.22);
  border-color: #ffd900;
  color: #ffd900;
}

.wb-btn--ghost {
  background: transparent;
  font-weight: 500;
}

@media (max-width: 600px) {
  .wb-overlay {
    padding: 0.85rem;
  }

  .wb-controls {
    width: 100%;
  }

  .wb-controls__btns {
    width: 100%;
  }

  .wb-btn {
    flex: 1;
    text-align: center;
  }
}
