@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Teko:wght@500;600;700&display=swap");

:root {
  --battle-bg: #030714;
  --battle-panel: #0a1225;
  --battle-panel-alt: #0d1730;
  --battle-border: rgba(88, 152, 255, 0.25);
  --battle-glow: rgba(38, 123, 255, 0.22);
  --battle-red: #ff3b44;
  --battle-cyan: #45d7ff;
  --battle-gold: #ffcb4a;
  --battle-text-soft: #9fb1d5;
  --battle-radius: 8px;
}

.battle-tournament-page {
  background:
    radial-gradient(circle at 10% -15%, rgba(69, 215, 255, 0.15), transparent 35%),
    radial-gradient(circle at 100% 20%, rgba(255, 59, 68, 0.18), transparent 36%),
    linear-gradient(180deg, #040913 0%, #030714 55%, #02050e 100%);
  background-color: #030714;
  color: #edf3ff;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}

.battle-tournament-page main,
.battle-tournament-page .battle-shell,
.battle-tournament-page .container {
  background: transparent !important;
}

.battle-shell {
  max-width: 1320px;
}

.battle-mobile-nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.36rem;
  border: 1px solid rgba(93, 152, 255, 0.3);
  border-radius: var(--battle-radius);
  background: linear-gradient(145deg, rgba(9, 17, 33, 0.96), rgba(6, 12, 23, 0.96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  -webkit-overflow-scrolling: touch;
}

.battle-mobile-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  border: 1px solid rgba(93, 152, 255, 0.42);
  border-radius: 6px;
  padding: 0.32rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d9e9ff;
  background: rgba(16, 31, 62, 0.82);
}

.battle-mobile-nav a:active,
.battle-mobile-nav a:focus,
.battle-mobile-nav a:hover {
  color: #fff;
  border-color: rgba(69, 215, 255, 0.55);
  background: rgba(24, 45, 86, 0.95);
}

.battle-title {
  margin: 0;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.battle-kicker {
  color: var(--battle-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.battle-sub {
  color: var(--battle-text-soft);
  font-size: 0.95rem;
}

.battle-card {
  background: linear-gradient(140deg, rgba(10, 18, 37, 0.95), rgba(5, 11, 24, 0.95));
  border: 1px solid var(--battle-border);
  border-radius: var(--battle-radius);
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hub-card {
  background: linear-gradient(140deg, rgba(10, 18, 37, 0.95), rgba(5, 11, 24, 0.95));
  border: 1px solid var(--battle-border);
  border-radius: var(--battle-radius);
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hub-metric {
  border: 1px solid rgba(93, 121, 242, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.8rem;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.hub-config-card .hub-config-form {
  row-gap: 0.65rem !important;
}

.hub-config-card .hub-config-column {
  display: flex;
}

.config-box {
  border: 1px solid rgba(92, 151, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem;
}

.config-quick-box {
  background: linear-gradient(135deg, rgba(8, 20, 43, 0.8), rgba(6, 14, 30, 0.78));
}

.hub-config-card .config-grid {
  gap: 0.55rem;
}

.hub-config-card .config-box {
  padding: 0.55rem 0.6rem;
}

.hub-advanced-config {
  border: 1px solid rgba(94, 152, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 15, 30, 0.62);
  padding: 0.5rem 0.65rem;
}

.hub-advanced-config > summary {
  list-style: none;
  cursor: pointer;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: #d9e7ff;
}

.hub-advanced-config > summary::-webkit-details-marker {
  display: none;
}

.hub-advanced-config > summary::before {
  content: "+";
  display: inline-block;
  width: 1rem;
  margin-right: 0.35rem;
  color: #8cd9ff;
}

.hub-advanced-config[open] > summary::before {
  content: "-";
}

.config-builder {
  border: 1px solid rgba(92, 151, 255, 0.2);
  border-radius: 6px;
  background: rgba(5, 11, 25, 0.75);
  padding: 0.7rem;
}

.hub-config-card .config-builder {
  width: 100%;
  padding: 0.6rem;
}

.config-title {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 0.95;
}

.config-sub {
  font-size: 0.78rem;
  color: var(--battle-text-soft);
}

.config-rows {
  display: grid;
  gap: 0.5rem;
}

.hub-config-card .config-rows {
  gap: 0.4rem;
}

.config-row {
  border: 1px solid rgba(94, 152, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.hub-config-card .config-row {
  padding: 0.42rem;
}

.config-row.bo-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
}

.config-row.fp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.5rem;
}

.config-row.champion-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0.6rem;
  align-items: end;
}

.config-note {
  font-size: 0.75rem;
  color: var(--battle-text-soft);
}

.hub-round {
  border: 1px solid rgba(93, 121, 242, 0.2);
  border-radius: 6px;
  background: rgba(6, 12, 28, 0.8);
  padding: 1rem;
  height: 100%;
}

.hub-match {
  border: 1px solid rgba(93, 121, 242, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
}

.battle-bracket-stage {
  position: relative;
  --bracket-line: rgba(107, 171, 255, 0.34);
  --bracket-line-soft: rgba(107, 171, 255, 0.2);
  --bracket-stage-top: rgba(9, 18, 38, 0.96);
  --bracket-stage-bottom: rgba(4, 10, 22, 0.98);
  border: 1px solid rgba(88, 152, 255, 0.26);
  border-radius: var(--battle-radius);
  background:
    radial-gradient(circle at 12% -8%, rgba(69, 215, 255, 0.22), transparent 38%),
    radial-gradient(circle at 100% 104%, rgba(255, 59, 68, 0.16), transparent 40%),
    linear-gradient(145deg, var(--bracket-stage-top), var(--bracket-stage-bottom));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.battle-bracket-stage-head {
  position: relative;
  z-index: 1;
  padding: 0.8rem 1rem 0;
}

.battle-bracket-stage-title {
  font-family: "Teko", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d7e6ff;
}

.battle-bracket-stage.stage-winner .battle-bracket-stage-title {
  color: #bcefff;
}

.battle-bracket-stage.stage-loser {
  --bracket-line: rgba(255, 132, 146, 0.34);
  --bracket-line-soft: rgba(255, 132, 146, 0.2);
  --bracket-stage-top: rgba(34, 11, 20, 0.94);
  --bracket-stage-bottom: rgba(18, 7, 13, 0.97);
}

.battle-bracket-stage.stage-loser .battle-bracket-stage-title {
  color: #ffd9dd;
}

.battle-bracket-stage.stage-grand-final {
  --bracket-line: rgba(255, 208, 118, 0.38);
  --bracket-line-soft: rgba(255, 208, 118, 0.24);
  --bracket-stage-top: rgba(33, 22, 8, 0.94);
  --bracket-stage-bottom: rgba(17, 12, 5, 0.98);
}

.battle-bracket-stage.stage-grand-final .battle-bracket-stage-title {
  color: #ffe9b4;
}

.battle-bracket-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(69, 215, 255, 0.14), transparent 36%),
    radial-gradient(circle at 85% 85%, rgba(255, 59, 68, 0.15), transparent 34%);
  pointer-events: none;
}

.battle-bracket-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.3;
  pointer-events: none;
}

.battle-bracket-scroll {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 140px;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

.battle-bracket-fit {
  position: relative;
  width: max-content;
  transform-origin: top left;
  will-change: transform;
}

.battle-bracket-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

/* Layout mejorado para bracket completo */
.battle-bracket-stage {
  max-height: none;
  overflow: visible;
}

.battle-bracket-stage .battle-bracket-scroll {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
}

/* Grid más compacto */
.battle-bracket-grid {
  position: relative;
  z-index: 2;
  min-width: max-content;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Columnas de rondas más compactas */
.battle-bracket-round {
  min-width: 180px;
  max-width: 220px;
  flex-shrink: 0;
}

.battle-bracket-round {
  position: relative;
  --round-index: 0;
}

.battle-bracket-round-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(93, 121, 242, 0.24);
}

.battle-bracket-round-title {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.battle-bracket-round-count {
  border: 1px solid rgba(69, 215, 255, 0.32);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #bcefff;
  background: rgba(69, 215, 255, 0.08);
}

.battle-bracket-round-body {
  position: relative;
  --slot-row-size: auto;
  --slot-gap: 0.62rem;
  display: flex;
  flex-direction: column;
  gap: var(--slot-gap);
  min-height: 0;
}

.battle-bracket-match {
  position: relative;
  z-index: 2;
  grid-row: var(--slot-index, auto);
  border: 1px solid rgba(93, 121, 242, 0.26);
  border-radius: 6px;
  min-height: calc(var(--slot-row-size) - 0.24rem);
  padding: 0.5rem 0.5rem 0.42rem;
  background: linear-gradient(138deg, rgba(11, 19, 38, 0.96), rgba(5, 10, 21, 0.96));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  align-self: center;
}

.battle-bracket-match::before,
.battle-bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.56rem;
  height: 2px;
  background: var(--bracket-line);
  transform: translateY(-50%);
}

.battle-bracket-match::after {
  right: -0.6rem;
}

.battle-bracket-match::before {
  left: -0.6rem;
}

.battle-bracket-round.is-last-round .battle-bracket-match::after {
  display: none;
}

.battle-bracket-round.is-first-round .battle-bracket-match::before {
  display: none;
}

.battle-bracket-stage.stage-grand-final .battle-bracket-match::before,
.battle-bracket-stage.stage-grand-final .battle-bracket-match::after {
  display: none;
}

.battle-bracket-round-body::before,
.battle-bracket-round-body::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  border-radius: 99px;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      var(--bracket-line-soft) 8%,
      var(--bracket-line) 48%,
      var(--bracket-line-soft) 92%,
      transparent 100%
    );
  pointer-events: none;
}

.battle-bracket-round-body::before {
  left: -0.62rem;
}

.battle-bracket-round-body::after {
  right: -0.62rem;
}

.battle-bracket-round.is-first-round .battle-bracket-round-body::before,
.battle-bracket-round.is-last-round .battle-bracket-round-body::after,
.battle-bracket-stage.stage-grand-final .battle-bracket-round-body::before,
.battle-bracket-stage.stage-grand-final .battle-bracket-round-body::after {
  display: none;
}

.battle-bracket-match-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #97a8cc;
  margin-bottom: 0.4rem;
}

.battle-bracket-team {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #e7efff;
  border: 1px solid rgba(94, 152, 255, 0.3);
  border-radius: 6px;
  padding: 0.4rem 2rem 0.4rem 0.62rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 72%),
    linear-gradient(138deg, rgba(8, 15, 33, 0.98), rgba(4, 9, 20, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.battle-bracket-team:hover {
  border-color: rgba(99, 172, 255, 0.6);
  transform: translateY(-1px);
}

.battle-bracket-team::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
}

.battle-bracket-team::after {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.battle-bracket-team.team-a::before {
  background: linear-gradient(180deg, rgba(69, 215, 255, 0.95), rgba(46, 146, 255, 0.95));
}

.battle-bracket-team.team-b::before {
  background: linear-gradient(180deg, rgba(255, 97, 120, 0.95), rgba(255, 59, 68, 0.95));
}

.battle-bracket-team.team-a::after {
  content: "A";
  color: #d6f6ff;
  border-color: rgba(69, 215, 255, 0.4);
  background: rgba(69, 215, 255, 0.12);
}

.battle-bracket-team.team-b::after {
  content: "B";
  color: #ffd7de;
  border-color: rgba(255, 59, 68, 0.45);
  background: rgba(255, 59, 68, 0.13);
}

.battle-bracket-team + .battle-bracket-team {
  margin-top: 0.34rem;
}

.battle-bracket-team img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #091327;
  box-shadow: 0 0 0 1px rgba(8, 17, 36, 0.9);
}

.battle-bracket-team-name {
  font-family: "Teko", sans-serif;
  font-size: 1.14rem;
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 0.02rem;
}

.battle-bracket-team.is-winner {
  border-color: rgba(67, 216, 137, 0.72);
  background:
    linear-gradient(90deg, rgba(67, 216, 137, 0.2), rgba(67, 216, 137, 0.03) 65%),
    linear-gradient(138deg, rgba(8, 18, 33, 0.98), rgba(4, 10, 21, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(67, 216, 137, 0.25),
    0 0 16px rgba(67, 216, 137, 0.18);
}

.battle-bracket-team.is-loser {
  border-color: rgba(255, 89, 94, 0.52);
  background:
    linear-gradient(90deg, rgba(255, 89, 94, 0.16), rgba(255, 89, 94, 0.03) 65%),
    linear-gradient(138deg, rgba(8, 14, 30, 0.98), rgba(4, 9, 19, 0.98));
  opacity: 0.8;
}

.battle-bracket-team.is-tbd {
  border-style: dashed;
  border-color: rgba(148, 166, 211, 0.42);
  opacity: 0.72;
}

.battle-bracket-team.is-tbd::after {
  content: "TBD";
  color: #b8c8ea;
  border-color: rgba(148, 166, 211, 0.4);
  background: rgba(148, 166, 211, 0.12);
}

.battle-bracket-match-foot {
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.battle-bracket-broadcast {
  margin-top: 0.34rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.battle-bracket-station {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(69, 215, 255, 0.4);
  border-radius: 6px;
  padding: 0.12rem 0.42rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4f4ff;
  background: rgba(69, 215, 255, 0.12);
}

.battle-bracket-live-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 59, 68, 0.46);
  border-radius: 6px;
  padding: 0.12rem 0.42rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffd8dc;
  background: rgba(255, 59, 68, 0.14);
}

.battle-bracket-live-link:hover {
  color: #fff1f3;
  border-color: rgba(255, 59, 68, 0.72);
}

.battle-bracket-drop-target {
  margin-top: 0.36rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 142, 84, 0.42);
  border-radius: 6px;
  padding: 0.14rem 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffd8c0;
  background: rgba(255, 127, 80, 0.12);
}

.battle-bracket-score {
  min-width: 54px;
  text-align: center;
  border: 1px solid rgba(255, 203, 74, 0.4);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffe9b4;
  background: rgba(255, 203, 74, 0.14);
}

.battle-bracket-score-empty {
  color: #9fb1d5;
  border-color: rgba(148, 166, 211, 0.32);
  background: rgba(148, 166, 211, 0.08);
}

.battle-card-head {
  border-bottom: 1px solid rgba(89, 150, 255, 0.22);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
}

.battle-card-title {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin: 0;
}

.battle-pill {
  border: 1px solid rgba(69, 215, 255, 0.35);
  color: var(--battle-cyan);
  background: rgba(69, 215, 255, 0.08);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.battle-team-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(95, 152, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem;
}

#hub-metrics-section,
#hub-bracket-section,
#hub-chat-section,
#match-scoreboard,
#match-pickban-section,
#match-final-maps-section,
#match-chat-panel-section,
#match-timeline-section,
#match-team-chat-section,
#match-voice-section,
#tournament-main-info,
#tournament-registration-section,
#tournament-detail-bracket-section,
#tournament-hub-card {
  scroll-margin-top: 92px;
}

.battle-vs {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.7rem;
  color: var(--battle-gold);
}

.flow-list {
  display: grid;
  gap: 0.5rem;
}

.flow-chip {
  border: 1px solid rgba(94, 150, 255, 0.26);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.02);
}

.flow-chip.is-done {
  border-color: rgba(69, 215, 255, 0.35);
  background: rgba(69, 215, 255, 0.08);
}

.flow-chip.is-current {
  border-color: rgba(255, 203, 74, 0.45);
  background: rgba(255, 203, 74, 0.12);
  box-shadow: 0 0 24px rgba(255, 203, 74, 0.16);
}

.flow-chip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.flow-chip-body {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.flow-chip-num {
  color: var(--battle-cyan);
  font-weight: 700;
}

.flow-chip-action {
  color: #f3f6ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flow-chip-meta {
  color: var(--battle-text-soft);
}

.timeline-row {
  border: 1px solid rgba(96, 152, 255, 0.2);
  border-radius: 10px;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.timeline-row + .timeline-row {
  margin-top: 0.45rem;
}

.timeline-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: #92a7d4;
  font-size: 0.78rem;
}

.timeline-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  margin-top: 0.32rem;
}

.timeline-badge {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-badge.team {
  color: #cde6ff;
  border: 1px solid rgba(88, 152, 255, 0.35);
  background: rgba(88, 152, 255, 0.15);
}

.timeline-badge.action {
  color: #ffe6e6;
  border: 1px solid rgba(255, 59, 68, 0.35);
  background: rgba(255, 59, 68, 0.16);
}

.timeline-badge.mode {
  color: #d7f8ff;
  border: 1px solid rgba(69, 215, 255, 0.35);
  background: rgba(69, 215, 255, 0.15);
}

.series-map-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
}

.series-map-card {
  border: 1px solid rgba(92, 151, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(10, 18, 36, 0.95), rgba(6, 12, 25, 0.95));
}

.series-map-media {
  position: relative;
  border-bottom: 1px solid rgba(92, 151, 255, 0.24);
}

.series-map-image {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}

.series-map-mode,
.series-map-slot,
.series-map-decider {
  position: absolute;
  border-radius: 999px;
  padding: 0.16rem 0.46rem;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.series-map-mode {
  top: 0.45rem;
  left: 0.45rem;
  color: #d8f6ff;
  border: 1px solid rgba(69, 215, 255, 0.45);
  background: rgba(69, 215, 255, 0.18);
}

.series-map-slot {
  top: 0.45rem;
  right: 0.45rem;
  color: #ffe6bd;
  border: 1px solid rgba(255, 203, 74, 0.45);
  background: rgba(255, 203, 74, 0.2);
}

.series-map-decider {
  bottom: 0.45rem;
  right: 0.45rem;
  color: #ffd8d8;
  border: 1px solid rgba(255, 59, 68, 0.45);
  background: rgba(255, 59, 68, 0.22);
}

.series-map-body {
  padding: 0.6rem;
}

.series-map-name {
  font-family: "Teko", sans-serif;
  font-size: 1.2rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.series-map-meta {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--battle-text-soft);
}

.veto-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.map-card-form {
  margin: 0;
}

.map-card-btn {
  position: relative;
  width: 100%;
  border: 1px solid rgba(92, 149, 255, 0.3);
  border-radius: 14px;
  padding: 0.42rem;
  text-align: left;
  color: #f0f4ff;
  background: linear-gradient(138deg, rgba(11, 21, 41, 0.98), rgba(6, 12, 23, 0.98));
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.map-card-btn::before {
  content: "";
  position: absolute;
  inset: -120% 40% 70% -50%;
  background: linear-gradient(135deg, rgba(69, 215, 255, 0.22), rgba(255, 59, 68, 0.08), transparent 70%);
  transform: rotate(3deg);
  pointer-events: none;
}

.map-card-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(69, 215, 255, 0.66);
  background: linear-gradient(138deg, rgba(12, 24, 46, 0.99), rgba(6, 13, 26, 0.99));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(69, 215, 255, 0.18);
}

.map-card-media {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-card-image {
  width: 100%;
  height: 124px;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
}

.map-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 8, 20, 0.88), rgba(2, 8, 20, 0.06) 60%),
    linear-gradient(to right, rgba(4, 10, 26, 0.5), transparent 65%);
}

.map-card-topline {
  position: absolute;
  inset: 0.45rem 0.45rem auto 0.45rem;
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: center;
}

.map-card-mode,
.map-card-availability {
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1.2;
}

.map-card-mode {
  color: #d9f6ff;
  background: rgba(69, 215, 255, 0.16);
  border-color: rgba(69, 215, 255, 0.36);
}

.map-card-availability.is-open {
  color: #daffe8;
  background: rgba(43, 201, 117, 0.2);
  border-color: rgba(43, 201, 117, 0.45);
}

.map-card-availability.is-locked {
  color: #ffdede;
  background: rgba(255, 59, 68, 0.2);
  border-color: rgba(255, 59, 68, 0.42);
}

.map-card-title {
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.45rem;
  font-family: "Teko", sans-serif;
  font-size: 1.36rem;
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.map-card-bottom {
  margin-top: 0.48rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.18rem 0.08rem;
}

.map-card-action {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c6d8ff;
}

.map-card-arrow {
  color: var(--battle-cyan);
  font-size: 0.78rem;
  opacity: 0.9;
}

.map-card-btn.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.55);
}

.side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.side-btn {
  border: 1px solid rgba(95, 151, 255, 0.35);
  border-radius: 12px;
  padding: 0.9rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  color: #f2f6ff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.side-btn:hover {
  border-color: rgba(255, 203, 74, 0.5);
  box-shadow: 0 8px 22px rgba(255, 203, 74, 0.18);
}

.battle-hint {
  color: var(--battle-text-soft);
  font-size: 0.82rem;
}

.chat-panel {
  height: 52vh;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid rgba(93, 121, 242, 0.22);
  border-radius: 6px;
  background: rgba(4, 8, 22, 0.9);
}

.chat-msg {
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 0.45rem;
}

.chat-user {
  color: #86b7ff;
  font-weight: 700;
  font-size: 0.83rem;
}

.chat-time {
  color: #95a3c0;
  font-size: 0.72rem;
  float: right;
}

@media (max-width: 991.98px) {
  .battle-shell {
    max-width: 100%;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }

  .config-row.bo-row,
  .config-row.fp-row,
  .config-row.champion-row {
    grid-template-columns: 1fr;
  }

  .battle-bracket-scroll {
    padding: 0.75rem;
  }

  .battle-bracket-grid {
    grid-auto-columns: minmax(286px, 300px);
    gap: 0.78rem;
  }

  .battle-bracket-round-body {
    --slot-row-size: 10.1rem;
    --slot-gap: 0.46rem;
  }

  .battle-bracket-match::after,
  .battle-bracket-match::before {
    width: 0.46rem;
    right: -0.5rem;
  }

  .battle-bracket-match::before {
    left: -0.5rem;
    right: auto;
  }

  .battle-bracket-round-body::before {
    left: -0.52rem;
  }

  .battle-bracket-round-body::after {
    right: -0.52rem;
  }

  .chat-panel {
    height: 38vh;
  }

  .battle-vs {
    font-size: 1.2rem;
  }

  .battle-mobile-nav {
    position: sticky;
    top: 74px;
    z-index: 28;
    margin-bottom: 0.45rem;
  }

  .series-map-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.65rem;
  }

  .series-map-image {
    height: 102px;
  }
}

@media (max-width: 575.98px) {
  .battle-shell {
    padding-left: 0.44rem !important;
    padding-right: 0.44rem !important;
  }

  .battle-mobile-nav {
    top: 68px;
  }

  .battle-mobile-nav a {
    font-size: 0.66rem;
    padding: 0.26rem 0.54rem;
  }

  .battle-bracket-grid {
    grid-auto-columns: minmax(264px, 276px);
  }

  .battle-bracket-round-body {
    --slot-row-size: 9.4rem;
    --slot-gap: 0.42rem;
  }

  .battle-bracket-round-title {
    font-size: 1.06rem;
  }

  .battle-bracket-team img {
    width: 26px;
    height: 26px;
  }

  .battle-bracket-team-name {
    font-size: 0.94rem;
  }

  .series-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .series-map-image {
    height: 94px;
  }

  .series-map-name {
    font-size: 1.02rem;
  }

  .veto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .map-card-image {
    height: 102px;
  }

  .map-card-title {
    font-size: 1.08rem;
  }

  .map-card-action {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }
}
