/* TvT Arena — компактний L2WAP стиль поверх l2-arena.css */
.l2-tvt-arena-root {
  --tvt-blue: #6f93c8;
  --tvt-red: #d45d5d;
  --tvt-green: #72b66c;
  --tvt-white: #f2f0eb;
  --tvt-gold: #c9a56d;
  --tvt-gold-strong: #dfc58a;
  --tvt-muted: #9a8468;
}

.l2-tvt-arena-root .l2-arena-head {
  gap: 6px;
  margin-bottom: 8px;
}

.l2-tvt-headline {
  margin: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--tvt-white);
}

.l2-tvt-headline__registration {
  color: var(--tvt-white);
}

.l2-tvt-headline__tvt {
  color: var(--tvt-red);
}

.l2-tvt-countdown {
  margin: 3px 0 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.3;
  color: var(--tvt-white);
}

.l2-tvt-registration-meta {
  margin: 3px 0 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  color: var(--tvt-white);
}

.l2-tvt-registration-meta__row {
  display: block;
}

.l2-tvt-registration-meta__label,
.l2-tvt-registration-meta__separator,
.l2-tvt-registration-meta__minimum {
  color: var(--tvt-white);
}

.l2-tvt-registration-meta__count {
  color: var(--tvt-green);
  font-weight: 600;
}

.l2-tvt-registration-meta__max {
  color: var(--tvt-red);
  font-weight: 600;
}

.l2-tvt-info {
  margin: 3px 0 0;
  text-align: left;
  font-size: 11px;
  line-height: 1.3;
  color: var(--tvt-gold);
}

.l2-tvt-status__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.l2-tvt-status__head .l2-tvt-headline {
  flex: 1 1 auto;
  min-width: 0;
}

.l2-tvt-shop-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.l2-tvt-shop-link:hover,
.l2-tvt-shop-link:focus {
  outline: none;
  background: #f4f4f4;
  color: #000;
}

.l2-tvt-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 6px 0 0;
}

.l2-tvt-action-btn {
  min-width: 180px;
}

.l2-tvt-registered-label {
  margin: 0;
  font-size: 12px;
  color: var(--tvt-green);
}

.l2-tvt-your-team {
  font-size: 11px;
  font-weight: 400;
  color: var(--tvt-gold);
}

.l2-tvt-nick--neutral,
.l2-tvt-nick--team1,
.l2-tvt-nick--team2 {
  color: var(--arena-text-strong, #d4c4a8);
}

.l2-tvt-status {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.l2-tvt-status[hidden],
.l2-tvt-battle-panel[hidden] {
  display: none !important;
}

.l2-tvt-score {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
  font-size: 13px;
  color: var(--tvt-white);
  line-height: 1.25;
}

.l2-tvt-score__team {
  font-size: 12px;
  color: var(--tvt-white);
}

.l2-tvt-score__team--1 {
  color: var(--tvt-blue);
}

.l2-tvt-score__team--2 {
  color: var(--tvt-red);
}

.l2-tvt-score__nums {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--tvt-white);
}

.l2-tvt-phase {
  margin: 3px 0 0;
  text-align: left;
  font-size: 11px;
  line-height: 1.3;
  color: var(--tvt-gold);
}

.l2-tvt-phase--open {
  color: var(--tvt-green);
}

.l2-tvt-event-time {
  margin: 3px 0 0;
  text-align: left;
  font-size: 11px;
  color: var(--tvt-gold);
}

.l2-tvt-schedule {
  margin: 4px 0 6px;
  padding: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--tvt-gold);
}

.l2-tvt-schedule__label {
  color: var(--tvt-gold);
}

.l2-tvt-schedule__time {
  color: var(--tvt-gold-strong);
  font-weight: 600;
}

.l2-tvt-divider {
  height: 1px;
  margin: 6px 0 7px;
  background: rgba(120, 95, 55, 0.28);
}

.l2-tvt-team-section {
  margin: 0 0 6px;
  padding: 0 0 5px;
  border-bottom-color: rgba(120, 95, 55, 0.24);
}

.l2-tvt-team-section .l2-arena-section__title {
  margin-bottom: 3px;
  font-size: 12px;
  line-height: 1.3;
}

#tvt-registrants-title {
  color: var(--tvt-green);
}

.l2-tvt-team-title--1 {
  color: var(--tvt-blue);
}

.l2-tvt-team-title--2 {
  color: var(--tvt-red);
}

.l2-tvt-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  align-items: baseline;
  min-height: 0;
  font-size: 12px;
  line-height: 1.25;
}

.l2-tvt-nick {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  line-height: 1.25;
  cursor: default;
  text-align: left;
}

.l2-tvt-nick--self {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.l2-tvt-nick--dead {
  opacity: 0.55;
  text-decoration: line-through;
}

.l2-tvt-nick--clickable {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.l2-tvt-nick--clickable:hover {
  filter: brightness(1.15);
}

.l2-tvt-nick--enemy-selected {
  outline: 1px solid #e85d5d;
  outline-offset: 1px;
}

.l2-tvt-nick--ally-selected {
  outline: 1px solid #6ecf8a;
  outline-offset: 1px;
}

.l2-tvt-battle-panel {
  margin: 6px 0 8px;
  padding: 6px 0 0;
  border: 0;
  border-top: 1px solid rgba(120, 95, 55, 0.32);
  border-radius: 0;
  background: transparent;
}

.l2-tvt-battle-panel > .l2-arena-section__title {
  margin: 0 0 4px;
  color: var(--tvt-gold-strong);
  font-size: 13px;
}

.l2-tvt-battle-target,
.l2-tvt-battle-self {
  padding: 3px 0;
}

.l2-tvt-battle-target {
  border-bottom: 1px solid rgba(120, 95, 55, 0.20);
}

.l2-tvt-battle-label {
  margin: 0 0 3px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--tvt-gold-strong);
}

.l2-tvt-battle-bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 3px;
}

.l2-tvt-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--tvt-white);
}

.l2-tvt-bar__lbl {
  color: var(--tvt-muted);
}

.l2-tvt-battle-target .l2-tvt-bar:nth-child(1) .l2-tvt-bar__lbl,
.l2-tvt-battle-self .l2-tvt-bar:nth-child(1) .l2-tvt-bar__lbl {
  color: var(--tvt-red);
}

.l2-tvt-battle-target .l2-tvt-bar:nth-child(2) .l2-tvt-bar__lbl,
.l2-tvt-battle-self .l2-tvt-bar:nth-child(2) .l2-tvt-bar__lbl {
  color: #d2aa4f;
}

.l2-tvt-battle-self .l2-tvt-bar:nth-child(3) .l2-tvt-bar__lbl {
  color: #6d9bd9;
}

.l2-tvt-summon-block {
  margin: 5px 0;
  padding: 5px 0;
  border: 0;
  border-top: 1px solid rgba(120, 95, 55, 0.22);
  border-bottom: 1px solid rgba(120, 95, 55, 0.22);
  border-radius: 0;
  background: transparent;
}

.l2-tvt-battle-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: 5px;
}

.l2-tvt-battle-dead {
  margin: 0 0 3px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #d98282;
}

.l2-tvt-battle-respawn {
  margin: 0 0 4px;
  text-align: left;
  font-size: 11px;
  color: var(--tvt-gold);
}

.l2-tvt-battle-victory {
  margin: 3px 0 0;
  text-align: left;
  font-size: 11px;
  color: var(--tvt-green);
}

.l2-tvt-skills {
  margin: 5px 0 3px;
}

.l2-tvt-skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
}

.l2-tvt-skill-btn {
  position: relative;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 2px;
  border: 1px solid #6b543f;
  border-radius: 3px;
  background: linear-gradient(180deg, #2a2218, #0f0c08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.l2-tvt-skill-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.l2-tvt-skill-btn__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.l2-tvt-skill-btn__cd {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff4d6;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 2px;
  pointer-events: none;
}

.l2-tvt-empty {
  margin: 2px 0 0;
  padding: 0;
  font-size: 11px;
}

.l2-tvt-result {
  margin: 4px 0 8px;
  padding: 7px 0;
  border: 0;
  border-top: 1px solid rgba(120, 95, 55, 0.32);
  border-bottom: 1px solid rgba(120, 95, 55, 0.32);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.l2-tvt-result__headline {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tvt-gold-strong);
}

.l2-tvt-result__sub {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--tvt-red);
}

.l2-tvt-result__score {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tvt-white);
}

.l2-tvt-result__score-blue {
  color: var(--tvt-blue);
}

.l2-tvt-result__score-red {
  color: var(--tvt-red);
}

.l2-tvt-result__stats,
.l2-tvt-result__reward {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--tvt-gold);
}

.l2-tvt-result__reward-title {
  margin: 5px 0 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tvt-gold-strong);
}

.l2-tvt-result__reward-list {
  display: grid;
  gap: 4px;
  width: min(250px, 100%);
}

.l2-tvt-result__reward-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid rgba(132, 102, 58, 0.38);
  border-radius: 3px;
  background: rgba(18, 14, 9, 0.26);
}

.l2-tvt-result__reward-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.l2-tvt-result__reward-text {
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
  color: var(--tvt-gold-strong);
}

.l2-tvt-result__actions {
  margin-top: 6px;
}

.l2-tvt-arena-root .l2-arena-back-city {
  margin-top: 6px;
}

@media (max-width: 420px) {
  .l2-tvt-status__head {
    align-items: flex-start;
  }

  .l2-tvt-shop-link {
    max-width: 42%;
    white-space: normal;
    text-align: center;
  }

  .l2-tvt-score {
    gap: 4px;
    font-size: 12px;
  }

  .l2-tvt-score__nums {
    font-size: 13px;
  }

  .l2-tvt-roster {
    gap: 3px 8px;
  }

  .l2-tvt-skill-btn {
    width: 33px;
    height: 33px;
  }
}


/* TvT combat flow: keep roster separated from the page-exit action. */
.l2-tvt-arena-root .l2-arena-back-city {
  margin-top: 14px;
}

.l2-tvt-team-section {
  margin-bottom: 9px;
}
