/* Topo em cinematic, como fundo (padrão mu.mythera.gg)
   O vídeo já vem tratado: escuro, sombras verde-petróleo, brilhos em ouro.
   Aqui ele vira só ambiente: dissolve em transparente na base e nas laterais,
   sobre a mesma cor da página, sem corte seco. */
:root { --hero-bg: var(--e-bg, #04100e); }

.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg) !important;
}
.hero-section::before { display: none; }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 35%;
  z-index: 0; pointer-events: none;
  opacity: 1;
  filter: brightness(1.28) contrast(1.04) saturate(1.08);
  /* base em degradê transparente + leve fuga no topo, atrás do menu */
  -webkit-mask-image:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, #000 14%, #000 52%, rgba(0,0,0,0.55) 74%, rgba(0,0,0,0.15) 90%, transparent 100%);
          mask-image:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, #000 14%, #000 52%, rgba(0,0,0,0.55) 74%, rgba(0,0,0,0.15) 90%, transparent 100%);
}

/* escurece o lado do texto na cor da página (não em preto puro) */
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,16,14,0.9) 0%, rgba(4,16,14,0.7) 26%, rgba(4,16,14,0.18) 55%, rgba(4,16,14,0) 100%),
    radial-gradient(70% 60% at 70% 45%, rgba(47,224,192,0.06), transparent 70%);
}

.hero-container { position: relative; z-index: 2; }
.echo-fan { visibility: hidden; }
.echo-copy { max-width: 520px; }
.echo-title { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }

.hero-pause {
  position: absolute; right: clamp(20px, 4vw, 64px); bottom: 150px; z-index: 3;
  font: 600 12px/1 var(--e-sans); letter-spacing: 0.08em; color: rgba(255,255,255,0.75);
  background: rgba(4,16,14,0.5); border: 1px solid rgba(226,182,92,0.3);
  padding: 9px 14px; border-radius: 4px; cursor: pointer;
}
.hero-pause:hover { color: #fff; border-color: rgba(226,182,92,0.7); }

@media (max-width: 1024px) {
  .hero-video {
    object-position: 60% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgba(0,0,0,0.4) 55%, transparent 80%);
            mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgba(0,0,0,0.4) 55%, transparent 80%);
  }
  .hero-shade { background: linear-gradient(180deg, rgba(4,16,14,0.45) 0%, rgba(4,16,14,0.75) 40%, rgba(4,16,14,0) 100%); }
  .echo-fan { display: none; }
  .hero-pause { bottom: auto; top: 90px; }
}

/* Ícone do servidor: sai o fogo (Phoenix), entra a estrela de 4 pontas da logo Ascension.
   Mesmas cores do círculo; só troca o desenho. Arquivo: img/ascension/estrela-ascension.svg */
.echo-realm-orb svg { display: none; }
.echo-realm-orb::before {
  content: '';
  width: 28px; height: 28px;
  background: #fff;
  -webkit-mask: url('img/ascension/estrela-ascension.svg') center / contain no-repeat;
          mask: url('img/ascension/estrela-ascension.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}
@media (max-width: 1024px) { .echo-realm-orb::before { width: 22px; height: 22px; } }

/* Botões do topo no padrão do launcher: cantos chanfrados, sem pílula.
   DISCORD e DOWNLOAD preenchidos; REGISTER só contorno com letra esmeralda. */
.echo-actions { display: flex; gap: 10px; align-items: center; }
.echo-btn {
  --cut: 12px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 0; height: 50px; padding: 0 28px 0 calc(28px + 0.26em);
  border-radius: 0; text-decoration: none; white-space: nowrap;
  font-family: var(--e-sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.26em; text-transform: uppercase;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .2s ease, filter .2s ease, color .2s ease;
}
.echo-btn.echo-play {
  min-width: 0; height: 50px; font-size: 14px; border-radius: 0;
  color: #02201a; background: var(--e-play-grad);
  box-shadow: none; filter: drop-shadow(0 0 14px rgba(47, 224, 192, 0.35));
}
.echo-btn.echo-play:hover { transform: translateY(-2px); background: var(--e-play-grad-hover); filter: drop-shadow(0 0 22px rgba(47, 224, 192, 0.55)); }
/* contorno chanfrado: a borda é a camada de fora, o miolo escuro é o ::before */
.echo-btn-outline { color: #2fe0c0; background: #2fe0c0; }
.echo-btn-outline::before {
  content: ''; position: absolute; inset: 1.5px; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 30, 27, 0.96), rgba(4, 16, 14, 0.96));
  clip-path: polygon(calc(var(--cut) - 0.6px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.6px), calc(100% - var(--cut) + 0.6px) 100%, 0 100%, 0 calc(var(--cut) - 0.6px));
}
.echo-btn-outline:hover { color: #8ff4df; background: #8ff4df; transform: translateY(-2px); filter: drop-shadow(0 0 16px rgba(47, 224, 192, 0.35)); }
.echo-btn:focus-visible { outline: 2px solid var(--a-gold, #e2b65c); outline-offset: 3px; }
/* losango do launcher antes do nome do servidor */
.echo-selected b::before { content: '\25C6'; margin-right: 6px; color: #2fe0c0; font-size: 0.9em; }
@media (max-width: 1024px) {
  .echo-actions { width: 100%; }
  .echo-btn, .echo-btn.echo-play { flex: 1 1 0; padding: 0 8px 0 calc(8px + 0.16em); font-size: 12px; letter-spacing: 0.16em; height: 46px; }
}
