.region-head {
  padding: 0;
  background: transparent;
}

.region-head #match-stage {
  width: 100%;
  margin-bottom: 0;
}

.region-head #header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 6px 18px;
  background: transparent;
  border: 0;
  margin-bottom: 0;
}

.coach-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(135deg, #2a3050, #1a1f3a);
  border: 2px solid #4d8fff;
  box-shadow: inset 0 0 0 rgba(255, 255, 255, .05), 3px 3px 0 rgba(0, 0, 0, .28);
}

.coach-avatar.away {
  border-color: #f06f6f;
  background: linear-gradient(135deg, #503030, #3a1a1a);
}

.coach-avatar.flag-image {
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.region-head .hud-opponent,
.region-head .hud-team {
  min-width: 0;
}

.region-head .hud-opponent {
  text-align: right;
}

.region-head .hud-team {
  text-align: left;
}

.region-head .hud-team-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.region-head .hud-team-line.away {
  justify-content: flex-end;
}

.region-head .hud-team .hud-team-line {
  justify-content: flex-start;
}

.region-head .hud-team-name {
  min-width: 0;
  overflow: hidden;
  color: #e6e9f0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-head .hud-team .hud-team-name {
  color: rgba(230, 233, 240, .78);
}

.region-head .hud-opponent .hud-team-name {
  color: #f4f6fb;
}

.region-head .hud-badge {
  display: none;
}

.region-head .hud-badge.away {
  display: none;
}

.region-head .hud-team-style,
.region-head .hud-opp-style {
  display: none;
}

.region-head .hud-score {
  min-width: 126px;
  text-align: center;
  padding: 0 14px;
  border-left: 0;
  border-right: 0;
}

.region-head .score {
  color: #f4f6fb;
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.region-head .meta-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 3px auto 0;
  width: auto;
  color: #e6e9f0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.region-head .meta-line #clock,
.region-head .meta-line #turn-counter {
  display: inline-block;
}

.region-head .meta-line #turn-counter {
  color: #f0d99b;
  font-size: 13px;
  font-weight: 800;
}

.region-head .status-chips-inline.status-chips-center {
  display: none;
  justify-content: center;
  min-height: 0;
  margin-top: 4px;
}

.region-head .status-chips-inline.status-chips-center:has(.status-chip) {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.region-head .status-chips-inline.status-chips-center .status-chip {
  padding-inline: 6px;
}

.region-head .match-top-rails {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 6px;
}

.region-head .match-top-rails[hidden] {
  display: none;
}

.relic-rail {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.rail-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(230, 233, 240, .68);
  font-size: 11px;
  font-weight: 800;
}

.relic-rail-list {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.relic-chip {
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  grid-template-rows: 18px 1fr;
  place-items: center;
  gap: 1px;
  padding: 4px 6px;
  border: 1px solid rgba(240, 217, 155, .32);
  background: rgba(92, 70, 26, .24);
  color: #f4e4b8;
  font: inherit;
  cursor: help;
}

.relic-chip:hover,
.relic-chip:focus-visible,
.relic-chip.is-triggered {
  border-color: rgba(240, 217, 155, .72);
  background: rgba(120, 91, 32, .38);
  outline: none;
}

.relic-chip.is-triggered {
  box-shadow: 0 0 0 2px rgba(240, 217, 155, .16), 0 0 18px rgba(240, 217, 155, .28);
}

.relic-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 217, 155, .28);
  background: rgba(255, 255, 255, .07);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.relic-name {
  max-width: 52px;
  overflow: hidden;
  color: rgba(244, 228, 184, .86);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .region-head .match-top-rails {
    justify-content: flex-start;
  }
}

.energy-float.cap {
  color: #b8bec9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .42);
}
