/* ==========================================================================
   NOVO SISTEMA VISUAL DIEGÉTICO DO LOBBY RANQUEADO (INSPIRADO NO LOBBY 3D)
   ========================================================================== */

#screen-ranked {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  overflow: hidden;
  /* Fundo real e atmosférico de templo/arena sem cortes de chão artificial */
  background: radial-gradient(circle at 50% 35%, rgba(15, 23, 42, 0.4) 0%, rgba(3, 7, 18, 0.88) 85%),
              url('../../assets/backgrounds/char_select_temple_bg.jpg') center bottom / cover no-repeat;
  display: flex;
  flex-direction: column;
}

/* Vinheta de imersão e iluminação ambiente (sem chão falso quadriculado) */
#screen-ranked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 20%, rgba(2, 4, 10, 0.55) 70%, rgba(1, 2, 6, 0.92) 100%),
              linear-gradient(180deg, rgba(2, 4, 8, 0.6) 0%, transparent 20%, transparent 65%, rgba(2, 4, 10, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Sombra suave de contato no chão onde os personagens estão pisando */
#screen-ranked::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 3, 7, 0.45) 50%, rgba(1, 2, 5, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Palco Central de Destaque */
.ranked-stage-3d-viewport {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.ranked-stage-champions {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 80px;
  padding-bottom: clamp(180px, 25vh, 235px);
  box-sizing: border-box;
}

/* Personagem Principal e Eco */
.ranked-main-hero-spot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ranked-main-hero-spot:hover {
  transform: scale(1.02);
}

.ranked-hero-spot-header {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 6;
}

.ranked-player-title-tag {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 2px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.ranked-player-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ranked-player-name-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
}

.ranked-player-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #fbbf24;
  object-fit: cover;
}

/* Palco do Herói e do Eco: MESMA ALTURA E ALINHAMENTO DE CHÃO RÍGIDO */
.ranked-hero-character-stage,
.ranked-echo-character-stage {
  position: relative;
  width: 280px;
  height: 270px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0;
  padding: 0;
}

#ranked-3d-aura-wrapper.skin-aura-wrapper,
.echo-spirit-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.ranked-hero-skin-img {
  max-width: 280px;
  max-height: 270px;
  width: auto;
  height: auto;
  display: block;
  vertical-align: bottom;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 35px rgba(168, 85, 247, 0.45));
  transition: transform 0.3s ease;
  z-index: 2;
  margin: 0 auto;
}

/* Sombra realista de contato no chão sob o herói */
.ranked-hero-character-stage::after,
.ranked-echo-character-stage::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Guardião do Eco no Palco */
.ranked-echo-hero-spot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
  z-index: 4;
  opacity: 0.95;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ranked-echo-hero-spot:hover {
  transform: scale(1.02);
  opacity: 1;
}

.ranked-echo-hero-spot .ranked-hero-spot-header {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 6;
}

.ranked-echo-tag {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

/* Container do Eco */
.echo-spirit-wrapper {
  z-index: 2;
  animation: echoSpiritPulse 3.5s ease-in-out infinite alternate;
  background: transparent !important;
}

@keyframes echoSpiritPulse {
  0% {
    opacity: 0.88;
    transform: scale(1);
  }
  50% {
    opacity: 0.98;
    transform: scale(1.015);
  }
  100% {
    opacity: 0.90;
    transform: scale(1);
  }
}

/* Sprite do Eco: TINTURA APLICADA EXCLUSIVAMENTE AO SPRITE VIA MATRIZ SVG, NUNCA EM QUADRADO */
.ranked-echo-sprite-img {
  max-width: 280px;
  max-height: 270px;
  width: auto;
  height: auto;
  display: block;
  vertical-align: bottom;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  opacity: 0.95;
  filter: url(#echo-tint-matrix)
          drop-shadow(0 0 14px var(--echo-theme-color, #38bdf8))
          drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
  transition: all 0.3s ease;
  margin: 0 auto;
}

/* Sombra de contato no chão para o Eco */
.ranked-echo-character-stage::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.ranked-echo-subtext-pill {
  font-size: 0.76rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
  padding: 3px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* ==========================================================================
   HUD FLUTUANTE DIEGÉTICA (INSPIRADA NO DESIGN DE GAMES BATTLE ROYALE)
   ========================================================================== */
.ranked-hud-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px;
  z-index: 10;
  box-sizing: border-box;
}

.ranked-hud-container > * {
  pointer-events: auto;
}

/* Top Bar centralizada e com padding equilibrado */
.ranked-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.ranked-brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ranked-brand-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.ranked-brand-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ranked-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Bottom Bar: Painel Play / Modo / Ações mais próximos do centro e compactos */
.ranked-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Widget de Batalha (estilo 'Battle Royale / Play', reposicionado mais próximo ao centro) */
.ranked-play-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 270px;
}

.ranked-mode-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranked-mode-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ranked-mode-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ranked-mode-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.ranked-mode-deck-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.ranked-deck-change-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ranked-deck-change-btn:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
}

/* Botão Enorme 'PLAY' / 'BUSCAR BATALHA' com Efeito Dourado Pulsante */
.btn-ranked-big-play {
  width: 100%;
  height: 58px;
  background: linear-gradient(180deg, #facc15 0%, #eab308 50%, #ca8a04 100%);
  border: none;
  border-radius: 12px;
  color: #0f172a;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-ranked-big-play:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.75), inset 0 2px 6px rgba(255, 255, 255, 0.6);
  filter: brightness(1.1);
}

.btn-ranked-big-play:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-ranked-big-play:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(1);
}

/* Widget de Elo / Progresso (Reposicionado mais próximo ao centro) */
.ranked-elo-badge-widget {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.ranked-elo-shield-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 12px currentColor);
}

.ranked-elo-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ranked-elo-tier-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ranked-elo-rp-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fbbf24;
}

.ranked-elo-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.ranked-elo-bar-prog {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.ranked-elo-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
}

/* Barra Flutuante de Ações e Menus (Estilo Menu Lateral / Topo Fortnite) */
.ranked-top-center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ranked-top-currencies {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ranked-nav-floating-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.ranked-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.ranked-nav-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

.ranked-nav-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(139, 92, 246, 0.25));
  border-color: rgba(192, 132, 252, 0.6);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
}

/* Modais Exclusivos do Lobby Ranqueado */
.ranked-modal-fullscreen {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.ranked-modal-dialog {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(168, 85, 247, 0.2);
  width: 95%;
  max-width: 1200px;
  height: 85vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ranked-modal-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.5);
  flex-shrink: 0;
}

.ranked-modal-dialog-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botão Fechar Elegante dos Modais do Lobby Ranqueado (Substitui o X tosco) */
.btn-ranked-modal-close {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  line-height: 1;
}

.btn-ranked-modal-close:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  border-color: #f87171;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.ranked-modal-dialog-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Lista de Histórico Online que aproveita toda a altura do modal */
#modal-ranked-history-log .ranked-battles-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  max-height: none !important;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* Abas e Painéis da Loja de Prestígio */
.prestige-tab-selectors {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.prestige-tab-btn {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prestige-tab-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

.prestige-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(139, 92, 246, 0.35));
  border-color: rgba(192, 132, 252, 0.8);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
}

.prestige-tab-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e9d5ff;
  opacity: 0.85;
}

.prestige-panels-wrapper {
  flex: 1;
  overflow-y: auto;
  min-height: 280px;
}

.prestige-tab-panel {
  animation: fadeInPrestigeTab 0.25s ease-out;
}

@keyframes fadeInPrestigeTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid e Cards Minimalistas e Sofisticados da Loja de Temporada */
.ranked-season-cards-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  width: 100%;
}

.ranked-shop-compact-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.ranked-shop-compact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.ranked-shop-card-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ranked-shop-card-title-col {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ranked-shop-card-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranked-shop-inspect-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ranked-shop-inspect-btn:hover {
  background: rgba(56, 189, 248, 0.85);
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.ranked-shop-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.ranked-shop-card-bottom-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px dashed rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ranked-stock-card-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.ranked-stock-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.ranked-stock-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   ESTILO DIEGÉTICO FANTASMAGÓRICO PARA ENTIDADES DE ECO NO COMBATE
   ========================================================================== */
.echo-ghost-entity {
  filter: drop-shadow(0 0 20px var(--echo-theme-color, #38bdf8)) brightness(1.15) contrast(1.05) !important;
  opacity: 0.85 !important;
  animation: echoCombatGhostPulse 3.5s ease-in-out infinite alternate !important;
}

.echo-ghost-entity img {
  opacity: 0.85 !important;
  filter: drop-shadow(0 0 15px var(--echo-theme-color, #38bdf8)) !important;
  mix-blend-mode: screen !important;
}

@keyframes echoCombatGhostPulse {
  0% {
    transform: translateY(0px) scale(var(--sprite-scale, 1));
    opacity: 0.82;
  }
  50% {
    transform: translateY(-4px) scale(calc(var(--sprite-scale, 1) * 1.015));
    opacity: 0.92;
  }
  100% {
    transform: translateY(-7px) scale(calc(var(--sprite-scale, 1) * 1.025));
    opacity: 0.85;
  }
}

/* Responsividade Mobile do Lobby */
@media (max-width: 900px) {
  .ranked-stage-champions {
    gap: 30px;
    height: 100vh;
    padding-bottom: clamp(160px, 25vh, 235px);
  }
  .ranked-hero-character-stage,
  .ranked-echo-character-stage {
    width: 240px;
    height: 250px;
  }
  .ranked-hero-skin-img,
  .ranked-echo-sprite-img {
    max-width: 240px;
    max-height: 250px;
  }
  .ranked-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ranked-play-widget {
    width: 100%;
  }
  .ranked-elo-badge-widget {
    width: 100%;
    box-sizing: border-box;
  }
  .ranked-hud-container {
    padding: 14px 16px;
  }
}
