/* Battle-page retint. Loaded after inline battle styles so the emblem palette wins. */

html.rb-arena-html .rbv-page,
html.rb-arena-html #rbvVoteModal,
html.rb-arena-html #rbvLightbox,
html.rb-arena-html #rbvChampionModal {
  --rb-accent: #0891b2;
  --rb-ink: #1a1030;
  --rb-muted: #5b5370;
  --rb-line: #e4def5;
  --rb-a: #0891b2;
  --rb-b: #7c3aed;
}

html.rb-arena-html.theme-dark .rbv-page,
html.rb-arena-html.theme-dark #rbvVoteModal,
html.rb-arena-html.theme-dark #rbvLightbox,
html.rb-arena-html.theme-dark #rbvChampionModal {
  --rb-accent: #5eecff;
  --rb-ink: #f3f7ff;
  --rb-muted: #b7c0d4;
  --rb-line: #3b2d62;
  --rb-a: #22d3ee;
  --rb-b: #c084fc;
}

html.rb-arena-html .rbv-section-title,
html.rb-arena-html .rbv-hero-aside-vs,
html.rb-arena-html .rbv-champion-modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html.rb-arena-html .rbv-hero,
html.rb-arena-html .rbv-crossindex,
html.rb-arena-html .rbv-matchup,
html.rb-arena-html .rbv-spec,
html.rb-arena-html .rbv-champion,
html.rb-arena-html .rbv-rules,
html.rb-arena-html .rbv-sponsor,
html.rb-arena-html .rbv-login-prompt-card,
html.rb-arena-html .rbv-arena,
html.rb-arena-html .rbv-submit-panel,
html.rb-arena-html .rbv-champion-modal-card,
html.rb-arena-html .rbv-modal-spec {
  border-color: #ddd6fe;
}

html.rb-arena-html .rbv-hero-aside-slide.is-vs {
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 211, 238, 0.38), transparent 55%),
    linear-gradient(160deg, #2e1064 0%, #0c4a6e 100%);
}

html.rb-arena-html .rbv-chip {
  background: #efeafc;
  color: #1a1030;
}

html.rb-arena-html .rbv-chip.is-voting,
html.rb-arena-html .rbv-crossindex-status.is-voting {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

html.rb-arena-html .rbv-chip.is-voting::before {
  background: #a855f7;
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5);
}

html.rb-arena-html .rbv-chip.is-open,
html.rb-arena-html .rbv-crossindex-status.is-open,
html.rb-arena-html .rbv-tag {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}

html.rb-arena-html .rbv-chip.is-complete {
  background: #f1f5f9;
  color: #475569;
}

html.rb-arena-html .rbv-chip.is-meta {
  background: #f8f5ff;
}

html.rb-arena-html .rbv-how a,
html.rb-arena-html .rbv-back,
html.rb-arena-html .rbv-sponsor-links a,
html.rb-arena-html .rbv-sponsor-cta a {
  color: #0891b2;
}

html.rb-arena-html .rbv-spec.is-selected,
html.rb-arena-html .rbv-modal-spec.is-selected {
  background: #ecfeff;
  border-color: #22d3ee;
}

html.rb-arena-html .rbv-spec:hover,
html.rb-arena-html .rbv-modal-spec:hover {
  border-color: rgba(34, 211, 238, 0.55);
}

html.rb-arena-html .rbv-submit-btn,
html.rb-arena-html .rbv-submit-more,
html.rb-arena-html .rbv-modal-spec .rbv-cast-btn,
html.rb-arena-html .rbv-modal-spec:hover .rbv-cast-btn,
html.rb-arena-html .rbv-modal-spec.is-selected .rbv-cast-btn {
  background: linear-gradient(180deg, #8af6ff 0%, #22d3ee 48%, #0891b2 100%);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
}

html.rb-arena-html .rbv-view-toggle .btn-primary,
html.rb-arena-html .rbv-view-toggle .btn-primary:hover {
  background: #0891b2;
  border-color: #0891b2;
  color: #fff;
}

html.rb-arena-html .rbv-crossindex-arrow:hover:not(:disabled) {
  border-color: rgba(8, 145, 178, 0.45);
  color: #0891b2;
  background: #ecfeff;
}

html.rb-arena-html .rbv-champion {
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 70%);
  border-color: #ddd6fe;
  box-shadow: 0 12px 28px rgba(109, 40, 217, 0.08);
}

html.rb-arena-html .rbv-champion img,
html.rb-arena-html .rbv-champion-modal-img {
  box-shadow:
    0 0 0 3px #22d3ee,
    0 0 0 7px rgba(124, 58, 237, 0.28),
    0 18px 36px rgba(26, 16, 48, 0.18);
}

html.rb-arena-html .rbv-champion-modal-trophy,
html.rb-arena-html .rbv-submit-previous-winner-badge {
  background: linear-gradient(160deg, #67f0ff 0%, #22d3ee 42%, #7c3aed 100%);
  color: #041018;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.35);
}

html.rb-arena-html .rbv-champion-modal-kicker,
html.rb-arena-html .rbv-submit-previous-winner-label {
  color: #6d28d9;
}

html.rb-arena-html .rbv-champion-modal-title,
html.rb-arena-html .rbv-champion-modal-name {
  color: #1a1030;
}

html.rb-arena-html .rbv-compete-fab,
html.rb-arena-html .rbv-compete-fab.is-vote {
  background: linear-gradient(135deg, #0891b2 0%, #22d3ee 55%, #67f0ff 100%);
  color: #041018;
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.38);
  animation-name: rbCrystalFabPulse;
}

html.rb-arena-html .rbv-compete-fab.is-signin {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #c084fc 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.38);
  animation-name: rbCrystalFabPulseViolet;
}

html.rb-arena-html .rbv-compete-fab:hover,
html.rb-arena-html .rbv-compete-fab:focus {
  color: #041018;
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.45);
}

html.rb-arena-html .rbv-compete-fab.is-signin:hover,
html.rb-arena-html .rbv-compete-fab.is-signin:focus {
  color: #fff;
  box-shadow: 0 14px 32px rgba(109, 40, 217, 0.45);
}

@keyframes rbCrystalFabPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(8, 145, 178, 0.35);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.5);
  }
}

@keyframes rbCrystalFabPulseViolet {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(109, 40, 217, 0.35);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 14px 34px rgba(168, 85, 247, 0.5);
  }
}

/* Dark battle surfaces */
html.rb-arena-html.theme-dark .rbv-hero,
html.rb-arena-html.theme-dark .rbv-crossindex,
html.rb-arena-html.theme-dark .rbv-how,
html.rb-arena-html.theme-dark .rbv-arena,
html.rb-arena-html.theme-dark .rbv-matchup,
html.rb-arena-html.theme-dark .rbv-spec,
html.rb-arena-html.theme-dark .rbv-champion,
html.rb-arena-html.theme-dark .rbv-rules,
html.rb-arena-html.theme-dark .rbv-sponsor,
html.rb-arena-html.theme-dark .rbv-login-prompt-card,
html.rb-arena-html.theme-dark .rbv-champion-modal-card,
html.rb-arena-html.theme-dark .rbv-submit-panel,
html.rb-arena-html.theme-dark #rbvVoteModal .modal-content {
  background: linear-gradient(165deg, rgba(28, 18, 52, 0.98), rgba(12, 8, 24, 0.98));
  border-color: rgba(167, 139, 250, 0.32);
  color: #f3f7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 40px rgba(0, 0, 0, 0.4);
}

html.rb-arena-html.theme-dark .rbv-arena {
  background:
    radial-gradient(720px 260px at 12% 0%, rgba(124, 58, 237, 0.22), transparent 58%),
    radial-gradient(640px 240px at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    #120e1e;
}

html.rb-arena-html.theme-dark .rbv-bracket::before {
  background-image:
    linear-gradient(180deg, rgba(14, 10, 26, 0.88) 0%, rgba(8, 6, 16, 0.94) 100%),
    var(--rbv-bracket-bg);
}

html.rb-arena-html.theme-dark .rbv-crossindex-card,
html.rb-arena-html.theme-dark .rbv-node,
html.rb-arena-html.theme-dark .rbv-modal-spec,
html.rb-arena-html.theme-dark .rbv-img-wrap,
html.rb-arena-html.theme-dark .rbv-submit-item,
html.rb-arena-html.theme-dark .rbv-crossindex-arrow,
html.rb-arena-html.theme-dark .rbv-view-toggle .btn {
  background: #140f22;
  border-color: #3b2d62;
  color: #f3f7ff;
}

html.rb-arena-html.theme-dark .rbv-crossindex-arrow:hover:not(:disabled),
html.rb-arena-html.theme-dark .rbv-view-toggle .btn:hover,
html.rb-arena-html.theme-dark .rbv-view-toggle .btn-primary {
  background: rgba(34, 211, 238, 0.12);
  border-color: #22d3ee;
  color: #5eecff;
}

html.rb-arena-html.theme-dark .rbv-crossindex-name,
html.rb-arena-html.theme-dark .rbv-submit-title,
html.rb-arena-html.theme-dark .rbv-submit-item-title,
html.rb-arena-html.theme-dark #rbvVoteModal .modal-title,
html.rb-arena-html.theme-dark #rbvVoteModal .modal-header .close,
html.rb-arena-html.theme-dark .rbv-champion-modal-title,
html.rb-arena-html.theme-dark .rbv-champion-modal-name {
  color: #f3f7ff;
}

html.rb-arena-html.theme-dark .rbv-crossindex-meta,
html.rb-arena-html.theme-dark .rbv-submit-meta,
html.rb-arena-html.theme-dark .rbv-champion-modal-sub,
html.rb-arena-html.theme-dark .rbv-champion-modal-meta {
  color: #b7c0d4;
}

html.rb-arena-html.theme-dark .rbv-chip,
html.rb-arena-html.theme-dark .rbv-chip.is-meta {
  background: rgba(255, 255, 255, 0.06);
  color: #f3f7ff;
  border-color: transparent;
}

html.rb-arena-html.theme-dark .rbv-chip.is-voting,
html.rb-arena-html.theme-dark .rbv-crossindex-status.is-voting {
  background: rgba(168, 85, 247, 0.22);
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.45);
}

html.rb-arena-html.theme-dark .rbv-chip.is-open,
html.rb-arena-html.theme-dark .rbv-crossindex-status.is-open,
html.rb-arena-html.theme-dark .rbv-tag {
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.4);
}

html.rb-arena-html.theme-dark .rbv-chip.is-complete {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

html.rb-arena-html.theme-dark .rbv-spec.is-selected,
html.rb-arena-html.theme-dark .rbv-modal-spec.is-selected,
html.rb-arena-html.theme-dark .rbv-node-side.is-voted {
  background: rgba(34, 211, 238, 0.12);
  border-color: #22d3ee;
}

html.rb-arena-html.theme-dark .rbv-how a,
html.rb-arena-html.theme-dark .rbv-sponsor-links a,
html.rb-arena-html.theme-dark .rbv-sponsor-cta a,
html.rb-arena-html.theme-dark .rbv-submit-kicker {
  color: #5eecff;
}

html.rb-arena-html.theme-dark .rbv-champion-modal-kicker,
html.rb-arena-html.theme-dark .rbv-submit-previous-winner-label {
  color: #c4b5fd;
}

html.rb-arena-html .rbv-round-label {
  background: #f4f0ff;
  border-color: #ddd6fe;
  color: #4c3d6b;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

html.rb-arena-html.theme-dark .rbv-round-label {
  background: rgba(20, 15, 34, 0.92);
  border-color: #3b2d62;
  color: #dbe7ff;
  box-shadow: none;
}

html.rb-arena-html .rbv-node-side.is-winner,
html.rb-arena-html .rbv-node-side.is-winner.is-voted {
  box-shadow: inset 0 0 0 2px #22d3ee;
}

html.rb-arena-html .rbv-node-winner-badge {
  background: linear-gradient(145deg, #8af6ff 0%, #22d3ee 42%, #7c3aed 100%);
  box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(34, 211, 238, 0.4);
}

html.rb-arena-html.theme-dark .rbv-node-winner-badge {
  box-shadow: 0 0 0 2px #140f22, 0 0 10px rgba(34, 211, 238, 0.45);
}

html.rb-arena-html.theme-dark .rbv-bye-notice {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(192, 132, 252, 0.4);
  color: #e9d5ff;
}

html.rb-arena-html.theme-dark .rbv-bye-notice i,
html.rb-arena-html.theme-dark .rbv-bye-notice strong {
  color: #d8b4fe;
}

html.rb-arena-html.theme-dark .rbv-sponsor-cta,
html.rb-arena-html.theme-dark .rbv-submit-tip {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.32);
  color: #a5f3fc;
}

html.rb-arena-html.theme-dark .rbv-submit-form {
  border-top-color: rgba(34, 211, 238, 0.2);
}

html.rb-arena-html.theme-dark .rbv-submit-search-input {
  background-color: #140f22;
  border-color: #3b2d62;
  color: #f3f7ff;
}

html.rb-arena-html.theme-dark #rbvVoteModal .modal-header {
  border-bottom-color: #3b2d62;
}

html.rb-arena-html.theme-dark .rbv-submit-item-actions .btn-default {
  background: #1c1630;
  border-color: #3b2d62;
  color: #f3f7ff;
}
