/* TvT battle panel — page-specific layout around the shared L2 battle hotbar. */
.l2-tvt-battle-panel {
  gap: 5px;
  margin: 6px 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.l2-tvt-battle-panel > .l2-arena-section__title {
  margin: 0 0 2px;
}

.l2-tvt-battle-target {
  display: grid;
  gap: 2px;
}

.l2-tvt-battle-label,
.l2-tvt-battle-dead,
.l2-tvt-battle-respawn,
.l2-tvt-battle-victory {
  margin: 0;
}

.l2-tvt-target-bars {
  display: grid;
  gap: 3px;
  margin: 4px 0 5px;
}

.l2-tvt-target-bar {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.l2-tvt-target-bar__label {
  color: #c7bda9;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.l2-tvt-target-bar__track {
  position: relative;
  height: 16px;
  overflow: hidden;
  border: 1px solid #070605;
  border-radius: 2px;
  background: linear-gradient(180deg, #26221c 0%, #0c0b09 100%);
  box-shadow:
    inset 0 0 0 1px rgba(196, 163, 99, 0.16),
    inset 0 1px 4px rgba(0, 0, 0, 0.9);
}

.l2-tvt-target-bar__fill {
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 0%;
  max-width: calc(100% - 2px);
  transition: width 160ms linear;
}

.l2-tvt-target-bar--hp .l2-tvt-target-bar__fill {
  background: linear-gradient(180deg, #d84c59 0%, #a11d2c 52%, #520912 100%);
}

.l2-tvt-target-bar--cp .l2-tvt-target-bar__fill {
  background: linear-gradient(180deg, #f1d34b 0%, #c49706 52%, #6d5100 100%);
}

.l2-tvt-target-bar__value {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #f0ebe1;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}

.l2-tvt-battle__quickbar {
  margin: 4px 0 5px;
}

.l2-tvt-battle__quickbar:empty {
  display: none;
}

.l2-tvt-battle__quickbar .l2-battle-hotbar {
  margin: 0;
}

.l2-tvt-battle-actions {
  gap: 4px;
  margin-top: 2px;
}

.l2-tvt-combat-log-wrap {
  margin: 4px 0 5px;
}

.l2-tvt-combat-log-title {
  margin: 0 0 3px;
  color: #c7bda9;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.l2-tvt-combat-log {
  display: grid;
  gap: 1px;
  min-height: calc(16px * 10);
  max-height: calc(16px * 10);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 5px;
  border: 1px solid #070605;
  border-radius: 2px;
  background: linear-gradient(180deg, #1a1713 0%, #0c0b09 100%);
  box-shadow:
    inset 0 0 0 1px rgba(196, 163, 99, 0.12),
    inset 0 1px 4px rgba(0, 0, 0, 0.9);
}

.l2-tvt-combat-log-line {
  color: #b8b0a5;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l2-tvt-combat-log-line--incoming {
  color: #d9a7a7;
}

.l2-tvt-combat-log-line--outgoing {
  color: #c9c5bd;
}


/* Compact incoming-only TvT damage log. */
.l2-tvt-combat-log-line,
.l2-tvt-combat-log-line--incoming {
  color: #f1eee8;
}

.l2-tvt-combat-log__white {
  color: #f1eee8;
}

.l2-tvt-combat-log__damage {
  color: #9d9891;
}

.l2-tvt-combat-log__damage-label {
  color: #b58ae4;
}
