/* ============================================================
   RF AVALON — HOME V11 "INVOCAÇÃO"
   Página única em tela cheia (sem rolagem).
   Tipografia: Cinzel (display, metal gravado) + Rajdhani (HUD).
   Paleta: void #04070d · ice #7fd8ff · arc #2ea8ff · chrome #e9eff6
   ============================================================ */

:root {
  --void: #04070d;
  --abyss: #0a1420;
  --panel: rgba(9, 18, 30, 0.66);
  --ice: #7fd8ff;
  --arc: #2ea8ff;
  --chrome: #e9eff6;
  --steel: #8ea3ba;
  --line: rgba(127, 216, 255, 0.30);
  --line-soft: rgba(127, 216, 255, 0.14);
  --acc: #d5dde6;   /* Accretia — império das máquinas (cavaleiro) */
  --bel: #7ce09a;   /* Bellato — pilotos dos MAU (mecha)           */
  --cor: #ef5d74;   /* Cora      */
  --f-display: "Cinzel", "Times New Roman", serif;
  --f-hud: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--chrome);
  font-family: var(--f-hud);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Palco ---------- */
.stage {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
}

.layer { position: absolute; will-change: transform; }

/* Fundo: campo de batalha com zoom lento */
.layer-bg { inset: -3%; z-index: 0; background: #04070d; }
.layer-bg .bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}

/* Botão de mudo da música */
.btn-som {
  position: fixed;
  right: 18px; bottom: 74px;
  z-index: 60;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 7, 13, .6);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.btn-som:hover { border-color: rgba(255, 255, 255, .6); background: rgba(4, 7, 13, .85); }
.btn-som svg { width: 22px; height: 22px; fill: #e8eefb; }
.btn-som .icone-som-off { display: none; }
.btn-som.mudo .icone-som-on { display: none; }
.btn-som.mudo .icone-som-off { display: block; }
.btn-som.mudo svg { fill: #8b95a8; }

@keyframes bg-drift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.09) translateY(-1.2%); }
}

/* Véus de legibilidade */
.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim-top    { z-index: 5; background: linear-gradient(180deg, rgba(4,7,13,.82) 0%, rgba(4,7,13,.25) 16%, transparent 34%); }
.scrim-bottom { z-index: 5; background: linear-gradient(0deg,   rgba(4,7,13,.88) 0%, rgba(4,7,13,.30) 18%, transparent 40%); }
.scrim-center {
  z-index: 2;
  background: radial-gradient(42% 52% at 50% 44%, rgba(4,7,13,.55) 0%, rgba(4,7,13,.18) 55%, transparent 78%);
}

/* ---------- Personagens ---------- */
.char { bottom: 0; pointer-events: none; }
.char img { height: 100%; width: auto; filter: drop-shadow(0 22px 44px rgba(0,0,0,.75)); }

/* Maga Cora — aparição espectral atrás do emblema */
.char-maga {
  z-index: 1;
  left: 50%;
  bottom: 6dvh;
  height: 74dvh;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}
.char-maga img {
  filter: none;
  opacity: 0;
  animation: maga-in 1.6s ease .55s forwards, maga-breathe 7s ease-in-out 2.2s infinite alternate;
}
@keyframes maga-in      { to { opacity: .58; } }
@keyframes maga-breathe { from { opacity: .46; } to { opacity: .66; } }

/* Cavaleiro Accretia — flanco esquerdo */
.char-cavaleiro { z-index: 4; left: -17vw; height: 87dvh; }
.char-cavaleiro img {
  opacity: 0;
  transform: translateX(-70px);
  animation: enter-left .95s cubic-bezier(.16, 1, .3, 1) .35s forwards;
}

/* MAU Bellato — flanco direito */
.char-mecha { z-index: 4; right: -9vw; height: 85dvh; }
.char-mecha img {
  opacity: 0;
  transform: translateX(70px);
  animation: enter-right .95s cubic-bezier(.16, 1, .3, 1) .45s forwards;
}
@keyframes enter-left  { to { opacity: 1; transform: translateX(0); } }
@keyframes enter-right { to { opacity: 1; transform: translateX(0); } }

/* Partículas */
#particulas { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* Clarão da invocação (abertura) */
.flash {
  position: absolute; z-index: 9; pointer-events: none;
  left: 50%; top: 34%;
  width: 46vmin; height: 46vmin;
  transform: translate(-50%, -50%) scale(.2);
  background: radial-gradient(circle, rgba(210,242,255,.95) 0%, rgba(127,216,255,.5) 32%, transparent 68%);
  opacity: 0;
  animation: flash-burst 1.05s ease-out .12s forwards;
}
@keyframes flash-burst {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.2); }
  22%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.9); }
}

/* ---------- Coluna central ---------- */
.centro {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.1dvh;
  padding: 9dvh 16px 12dvh;
  text-align: center;
  pointer-events: none;
}
.centro > * { pointer-events: auto; }

.logo {
  height: 36dvh;
  width: auto;
  filter: drop-shadow(0 0 34px rgba(127, 216, 255, .38)) drop-shadow(0 14px 30px rgba(0, 0, 0, .7));
  opacity: 0;
  transform: scale(.82);
  animation:
    logo-in .9s cubic-bezier(.16, 1, .3, 1) .18s forwards,
    logo-float 6.5s ease-in-out 1.4s infinite alternate;
}
@keyframes logo-in    { 60% { filter: drop-shadow(0 0 60px rgba(190,236,255,.85)) drop-shadow(0 14px 30px rgba(0,0,0,.7)); }
                        to  { opacity: 1; transform: scale(1); } }
@keyframes logo-float { from { translate: 0 0; } to { translate: 0 -8px; } }

.tagline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(15px, 2.5dvh, 22px);
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--chrome);
  text-shadow: 0 0 18px rgba(127, 216, 255, .45), 0 2px 10px rgba(0, 0, 0, .8);
  opacity: 0;
  animation: rise .8s ease .62s forwards;
}

.selos {
  list-style: none;
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 12px;
  letter-spacing: .24em; text-indent: .24em;
  color: var(--steel);
  opacity: 0;
  animation: rise .8s ease .72s forwards;
}
.selos li { display: flex; align-items: center; gap: 14px; }
.selos li + li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--ice);
  rotate: 45deg;
  box-shadow: 0 0 8px var(--ice);
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Botões ---------- */
.acoes {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: .6dvh;
  opacity: 0;
  animation: rise .8s ease .84s forwards;
}

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 236px;
  padding: 15px 30px;
  font-weight: 700; font-size: 15px;
  letter-spacing: .18em; text-indent: .18em;
  text-transform: uppercase;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: transform .18s ease, filter .18s ease, background-color .18s ease;
  overflow: hidden;
}
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* varredura de luz no hover */
.btn::after {
  content: "";
  position: absolute; top: -20%; bottom: -20%; left: -46%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg) translateX(-140%);
  transition: transform .55s ease;
}
.btn:hover::after { transform: skewX(-18deg) translateX(460%); }

.btn-primario {
  background: linear-gradient(165deg, #cdeeff 0%, #6fc8f5 38%, var(--arc) 100%);
  color: #051423;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: 0 0 26px rgba(46, 168, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-primario:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-contorno {
  background: var(--panel);
  color: var(--chrome);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 rgba(127, 216, 255, .35);
}
.btn-contorno:hover {
  background: rgba(20, 40, 60, .78);
  box-shadow: inset 0 0 0 1px var(--ice), inset 0 -2px 0 var(--ice), 0 0 22px rgba(127, 216, 255, .28);
  transform: translateY(-2px);
}

.btn-mini {
  min-width: 0;
  padding: 9px 20px;
  font-size: 12.5px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* ---------- HUD superior ---------- */
.hud { position: absolute; left: 0; right: 0; z-index: 7; display: flex; align-items: center; }
.hud-topo {
  top: 0;
  padding: 20px 28px;
  gap: 22px;
  opacity: 0;
  animation: fade .7s ease 1s forwards;
}
@keyframes fade { to { opacity: 1; } }

.status {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: var(--panel);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-weight: 600; font-size: 12px;
  letter-spacing: .2em; text-indent: .2em;
  color: var(--steel);
  white-space: nowrap;
}
.status strong { color: var(--chrome); font-weight: 700; }
.status i { font-style: normal; color: var(--line); }
.ponto {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--steel);
  flex: none;
}
.online .ponto { background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.online .ponto::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ice);
  animation: pulso 1.8s ease-out infinite;
}
@keyframes pulso { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

.menu {
  display: flex; gap: 30px;
  margin: 0 auto;
  font-weight: 600; font-size: 13px;
  letter-spacing: .26em; text-indent: .26em;
  text-transform: uppercase;
}
.menu a { position: relative; padding: 6px 2px; color: var(--steel); transition: color .2s ease; }
.menu a::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--ice);
  box-shadow: 0 0 8px var(--ice);
  transition: width .25s ease, left .25s ease;
}
.menu a:hover { color: var(--chrome); }
.menu a:hover::after { width: 100%; left: 0; }

.hud-direita { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icone-social {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  color: var(--steel);
  transition: color .2s ease, box-shadow .2s ease;
}
.icone-social:hover { color: var(--ice); box-shadow: inset 0 0 0 1px var(--ice); }
.icone-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- HUD inferior ---------- */
.hud-base {
  bottom: 0;
  padding: 22px 28px;
  gap: 22px;
  opacity: 0;
  animation: fade .7s ease 1.1s forwards;
}

.chip-bosses {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  background: var(--panel);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-weight: 700; font-size: 12.5px;
  letter-spacing: .2em; text-indent: .2em;
  color: var(--steel);
  transition: color .2s ease, box-shadow .2s ease;
}
.chip-bosses::before { content: "◈"; color: var(--ice); text-indent: 0; }
.chip-bosses:hover { color: var(--chrome); box-shadow: inset 0 0 0 1px var(--ice), 0 0 18px rgba(127,216,255,.22); }
.chip-bosses:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.assinatura {
  margin: 0 auto;
  font-size: 11px; font-weight: 600;
  letter-spacing: .3em; text-indent: .3em;
  color: rgba(142, 163, 186, .6);
  white-space: nowrap;
}

.racas { display: flex; gap: 20px; margin-left: auto; }
.raca {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 11.5px;
  letter-spacing: .22em; text-indent: .22em;
  color: var(--steel);
  transition: color .2s ease;
}
.raca b {
  width: 9px; height: 9px;
  rotate: 45deg;
  flex: none;
  font-size: 0;
}
.raca:hover { color: var(--chrome); }
.raca-acc b { background: var(--acc); box-shadow: 0 0 9px var(--acc); }
.raca-bel b { background: var(--bel); box-shadow: 0 0 9px var(--bel); }
.raca-cor b { background: var(--cor); box-shadow: 0 0 9px var(--cor); }

/* ---------- Cantoneiras ---------- */
.canto {
  position: absolute; z-index: 7;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  opacity: .55;
  pointer-events: none;
}
.canto-te { top: 14px;    left: 14px;   border-right: 0; border-bottom: 0; }
.canto-td { top: 14px;    right: 14px;  border-left: 0;  border-bottom: 0; }
.canto-be { bottom: 14px; left: 14px;   border-right: 0; border-top: 0; }
.canto-bd { bottom: 14px; right: 14px;  border-left: 0;  border-top: 0; }

/* ---------- Modal de bosses ---------- */
.modal {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(4, 7, 13, .72);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity .25s ease;
}
.modal.aberto { opacity: 1; }
.modal[hidden] { display: none; }

.modal-caixa {
  width: min(680px, 100%);
  padding: 34px 36px 38px;
  background: linear-gradient(175deg, rgba(13, 26, 42, .96), rgba(7, 14, 24, .96));
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(46, 168, 255, .12);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  transform: scale(.95);
  transition: transform .25s ease;
}
.modal.aberto .modal-caixa { transform: scale(1); }

.modal-titulo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .22em; text-indent: .22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--chrome);
  text-shadow: 0 0 16px rgba(127, 216, 255, .4);
}
.modal-sub {
  margin-top: 8px;
  text-align: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-indent: .24em;
  color: var(--steel);
}

.bosses {
  list-style: none;
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bosses li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px;
  background: rgba(127, 216, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-soft), inset 3px 0 0 var(--arc);
}
.bosses .nome {
  font-weight: 600; font-size: 13.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.bosses .hora {
  font-weight: 700; font-size: 17px;
  letter-spacing: .08em;
  color: var(--ice);
  text-shadow: 0 0 12px rgba(127, 216, 255, .5);
  white-space: nowrap;
}

.modal-fechar {
  position: absolute; top: 14px; right: 18px;
  font-size: 24px; line-height: 1;
  color: var(--steel);
  transition: color .2s ease, transform .2s ease;
}
.modal-fechar:hover { color: var(--ice); transform: rotate(90deg); }
.modal-caixa { position: relative; }

/* ============================================================
   RESPONSIVO — mantém tudo em uma única tela
   ============================================================ */

@media (max-width: 1180px) {
  .char-cavaleiro { height: 76dvh; left: -20vw; }
  .char-mecha     { height: 73dvh; right: -12vw; }
  .menu { gap: 20px; }
}

@media (max-width: 900px) {
  .menu { display: none; }
  .char-cavaleiro { height: 56dvh; left: -24vw; }
  .char-mecha     { height: 52dvh; right: -16vw; }
  .char-cavaleiro img { animation-name: enter-left-suave; }
  .char-mecha img     { animation-name: enter-right-suave; }
  .char-maga      { height: 62dvh; }
  .racas { gap: 14px; }
  .raca span { display: none; }           /* só os losangos coloridos */
  .logo { height: 32dvh; }
}
@keyframes enter-left-suave  { to { opacity: .55; transform: translateX(0); } }
@keyframes enter-right-suave { to { opacity: .55; transform: translateX(0); } }

@media (max-width: 640px) {
  .hud-topo { padding: 14px 16px; gap: 10px; }
  .hud-base { padding: 16px; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .assinatura { order: 3; width: 100%; text-align: center; margin: 4px 0 0; }
  .status { font-size: 10.5px; padding: 8px 12px; gap: 8px; }
  .status .som { display: none; }         /* esconde região no celular */
  .char-maga { height: 46dvh; bottom: 16dvh; }
  .char-cavaleiro { height: 36dvh; left: -22vw; }
  .char-mecha     { height: 33dvh; right: -16vw; }
  .logo { height: 27dvh; }
  .tagline { letter-spacing: .2em; text-indent: .2em; }
  .acoes { flex-direction: column; width: min(320px, 86vw); }
  .btn { width: 100%; min-width: 0; }
  .bosses { grid-template-columns: 1fr; }
  .modal-caixa { padding: 28px 22px 30px; }
}

/* Telas muito baixas: compacta e, em último caso, libera rolagem */
@media (max-height: 620px) {
  .logo { height: 26dvh; }
  .centro { gap: 1.4dvh; }
  .char-maga { height: 60dvh; }
}
@media (max-height: 500px) {
  html, body { overflow-y: auto; }
  .stage { position: relative; min-height: 560px; }
}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo, .tagline, .selos, .acoes, .hud-topo, .hud-base,
  .char-cavaleiro img, .char-mecha img { opacity: 1; transform: none; }
  .char-maga img { opacity: .58; }
  .flash, #particulas { display: none; }
}

/* ===== CTA Correções e Melhorias ===== */
.melhorias-cta{
  width:min(700px,92vw);
  min-height:72px;
  margin-top:2px;
  padding:12px 18px;
  display:grid;
  grid-template-columns:48px 1fr auto;
  align-items:center;
  gap:14px;
  color:#eefbff;
  text-decoration:none;
  text-align:left;
  background:linear-gradient(110deg,rgba(8,39,64,.9),rgba(9,24,46,.92) 58%,rgba(24,75,92,.75));
  border:1px solid rgba(127,216,255,.7);
  clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
  box-shadow:0 0 30px rgba(79,196,255,.18),inset 0 0 22px rgba(82,205,255,.06);
  pointer-events:auto;
  opacity:0;
  animation:rise .8s ease .96s forwards, melhorias-pulse 3s ease-in-out 1.8s infinite;
  transition:transform .18s ease,filter .18s ease,border-color .18s ease;
}
.melhorias-cta:hover{transform:translateY(-3px);filter:brightness(1.12);border-color:#b8f3ff}
.melhorias-cta-plus{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;font-size:31px;font-weight:300;color:#d9f9ff;border:1px solid rgba(127,216,255,.75);background:rgba(51,153,205,.14);box-shadow:0 0 20px rgba(75,190,255,.2)}
.melhorias-cta strong{display:block;font-family:var(--f-display);font-size:14px;letter-spacing:.13em;text-transform:uppercase}
.melhorias-cta small{display:block;margin-top:5px;color:#99bdd0;font-size:12px;letter-spacing:.04em;text-transform:none}
.melhorias-cta>b{font-size:10px;letter-spacing:.13em;color:#a9ecff;white-space:nowrap}
@keyframes melhorias-pulse{0%,100%{box-shadow:0 0 24px rgba(79,196,255,.14),inset 0 0 22px rgba(82,205,255,.05)}50%{box-shadow:0 0 38px rgba(79,196,255,.3),inset 0 0 28px rgba(82,205,255,.1)}}
@media(max-width:640px){.melhorias-cta{width:min(340px,90vw);grid-template-columns:42px 1fr;padding:11px 13px}.melhorias-cta>b{display:none}.melhorias-cta strong{font-size:12px}.melhorias-cta small{font-size:11px;line-height:1.25}.melhorias-cta-plus{width:38px;height:38px}}
@media(max-height:620px){.melhorias-cta{min-height:58px;padding:8px 14px}.melhorias-cta-plus{width:34px;height:34px}.melhorias-cta small{margin-top:2px}.melhorias-cta strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.melhorias-cta{opacity:1;transform:none}}
