/* ============================================================================
   Portal de Servidores — efeitos customizados
   (layout e tipografia ficam no Tailwind; aqui só o que é efeito/animação)
   ============================================================================ */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --ink: #050304;
}

html,
body {
  background: var(--ink);
}

/* ---------------------------------------------------------------------------
   CENA DE FUNDO
   ------------------------------------------------------------------------ */
.scene-parallax {
  position: absolute;
  inset: -5%;
  will-change: transform;
}

.scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 62% 35%;
  transform-origin: 68% 28%;
  filter: saturate(1.08) contrast(1.06) brightness(0.88);
  opacity: 0;
  transition: opacity 1.6s ease;
  animation: kenburns 46s ease-in-out infinite alternate;
}
.is-ready .scene-bg { opacity: 1; }

@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.13) translate3d(-1%, 0.6%, 0); }
}

/* Brilho pulsante do portal azul */
.portal-glow {
  position: absolute;
  top: -18%;
  right: 4%;
  width: 62vmax;
  height: 48vmax;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.38), rgba(37, 99, 235, 0.12) 45%, transparent 72%);
  mix-blend-mode: screen;
  animation: portal 6.5s ease-in-out infinite;
}
@keyframes portal {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Calor das fogueiras (esq. e dir.) */
.fire-glow {
  position: absolute;
  bottom: -20%;
  width: 55vmax;
  height: 45vmax;
  background: radial-gradient(closest-side, rgba(255, 96, 20, 0.32), rgba(220, 38, 38, 0.1) 50%, transparent 75%);
  mix-blend-mode: screen;
  animation: flicker 3.2s ease-in-out infinite;
}
.fire-glow.left  { left: -18%; }
.fire-glow.right { right: -22%; animation-delay: -1.4s; animation-duration: 4.1s; }
@keyframes flicker {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  20%      { opacity: 0.95; }
  45%      { opacity: 0.65; transform: scale(1.04); }
  70%      { opacity: 1; }
}

/* Relâmpago no céu */
.lightning {
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 45% at 74% 8%, rgba(165, 205, 255, 0.55), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
}
.lightning.flash { animation: flash 1s ease-out; }
@keyframes flash {
  0%   { opacity: 0; }
  6%   { opacity: 0.85; }
  12%  { opacity: 0.12; }
  20%  { opacity: 0.6; }
  100% { opacity: 0; }
}

/* Névoa em loop horizontal sem emenda */
.fog {
  position: absolute;
  left: 0;
  bottom: -10%;
  width: 200%;
  height: 50%;
  background-image:
    radial-gradient(ellipse 18% 40% at 12% 60%, rgba(148, 163, 184, 0.22), transparent 70%),
    radial-gradient(ellipse 24% 32% at 42% 72%, rgba(100, 116, 139, 0.2), transparent 70%),
    radial-gradient(ellipse 16% 46% at 74% 55%, rgba(148, 163, 184, 0.2), transparent 70%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  filter: blur(26px);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: fog 80s linear infinite;
}
.fog-2 {
  bottom: 4%;
  height: 38%;
  opacity: 0.3;
  animation-duration: 120s;
  animation-direction: reverse;
}
@keyframes fog { to { transform: translate3d(-50%, 0, 0); } }

/* Sombreamentos para leitura do conteúdo */
.shade-center {
  background: radial-gradient(ellipse 60% 48% at 50% 26%, rgba(5, 3, 4, 0.74), rgba(5, 3, 4, 0.35) 55%, transparent 80%);
}
.shade-top {
  background: linear-gradient(180deg, rgba(5, 3, 4, 0.75), transparent 22%);
}
.shade-bottom {
  background: linear-gradient(0deg, #050304 0%, rgba(5, 3, 4, 0.88) 22%, rgba(5, 3, 4, 0.25) 52%, transparent 72%);
}
.vignette {
  background: radial-gradient(ellipse at 55% 45%, transparent 45%, rgba(0, 0, 0, 0.65) 100%);
}
.grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Luz que segue o cursor */
.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(253, 40, 0, 0.11), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  will-change: transform;
}
.cursor-light.on { opacity: 1; }

/* ---------------------------------------------------------------------------
   PERSONAGEM
   ------------------------------------------------------------------------ */
.char-parallax {
  position: absolute;
  right: -5vw;
  bottom: -2vh;
  height: min(82vh, 920px);
  aspect-ratio: 1240 / 1268;
  transform-origin: 50% 100%;
  will-change: transform;
}
.char-enter {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(80px, 30px, 0) scale(0.96);
  filter: blur(12px) brightness(0.4);
}
.is-ready .char-enter {
  animation: char-in 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s forwards;
}
@keyframes char-in {
  to { opacity: 1; transform: none; filter: none; }
}
.char-float {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  animation: char-breathe 6s ease-in-out infinite;
}
@keyframes char-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.012); }
}

/* Corpo do personagem: some suavemente na parte de baixo */
.char-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
  filter: drop-shadow(-24px 18px 40px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 22px rgba(253, 5, 0, 0.3));
  animation: char-rim 4.5s ease-in-out infinite;
}
@keyframes char-rim {
  50% { filter: drop-shadow(-24px 18px 40px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 34px rgba(253, 40, 0, 0.55)); }
}

/* Aura vermelha atrás do personagem */
.char-aura {
  position: absolute;
  inset: 4% 8% 22% 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(253, 30, 0, 0.42), rgba(180, 10, 0, 0.16) 55%, transparent 78%);
  filter: blur(36px);
  animation: char-aura 4.5s ease-in-out infinite;
}
@keyframes char-aura {
  50% { transform: scale(1.08); opacity: 0.7; }
}

/* Reflexo de luz passando pela armadura (recortado pela máscara SVG) */
.char-shine {
  mix-blend-mode: overlay;
  transform-box: view-box;
  transform: translateX(0) skewX(-14deg);
  animation: char-shine 8s ease-in-out 2s infinite;
}
@keyframes char-shine {
  0%        { transform: translateX(0) skewX(-14deg); }
  35%, 100% { transform: translateX(2100px) skewX(-14deg); }
}

/* Brilho nos olhos */
.char-eye {
  position: absolute;
  left: 59.5%;
  top: 16.3%;
  width: 7%;
  aspect-ratio: 2.2;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 210, 120, 0.9), rgba(255, 90, 0, 0.45) 45%, transparent 75%);
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: char-eye 3.2s ease-in-out infinite;
}
@keyframes char-eye {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.15); }
}

/* Telas mais estreitas: personagem menor e mais para a direita */
@media (max-width: 1279px) {
  .char-parallax { right: -14vw; height: min(70vh, 760px); opacity: 0.85; }
}

/* ---------------------------------------------------------------------------
   TIPOGRAFIA DO HERÓI
   ------------------------------------------------------------------------ */
.title-metal,
.title-fire {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-metal {
  background-image: linear-gradient(180deg, #ffffff 0%, #e7e7ea 42%, #8d8f96 54%, #d9dade 72%, #ffffff 100%);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 18px rgba(253, 5, 0, 0.25));
}
.title-fire {
  position: relative;
  background-image: linear-gradient(180deg, #fff1a8 0%, #fcdf35 14%, #ff7a1a 36%, #fd0500 62%, #9e0300 100%);
  filter: drop-shadow(0 0 28px rgba(253, 5, 0, 0.6)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}
.title-fire::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background-image: linear-gradient(110deg, transparent 38%, rgba(255, 246, 210, 0.95) 50%, transparent 62%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shine 6s ease-in-out infinite;
}
@keyframes title-shine {
  0%        { background-position: 160% 0; }
  55%, 100% { background-position: -60% 0; }
}

/* ---------------------------------------------------------------------------
   COMPONENTES BASE
   ------------------------------------------------------------------------ */
.glass {
  background: linear-gradient(180deg, rgba(24, 14, 14, 0.66), rgba(10, 6, 7, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Etiqueta (status / selo): texto com moldura chanfrada e brilho suave */
/* A borda é o próprio fundo do .chip (recortado com chanfro); o preenchimento
   é o ::before, 1px menor e com o mesmo chanfro — assim a linha acompanha
   também as diagonais, sem falhas. */
.chip {
  --st: 253 5 0;
  --cut: 7px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 1.65rem;
  padding: 0 0.8rem;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(var(--st));
  text-shadow: 0 0 12px rgb(var(--st) / 0.55);
  background: linear-gradient(135deg, rgb(var(--st) / 0.95), rgb(var(--st) / 0.3) 45%, rgb(var(--st) / 0.75));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.chip::before {
  --cut-in: calc(var(--cut) - 0.41px); /* compensa a diagonal (√2 − 1) */
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--st) / 0.2), rgb(var(--st) / 0.06)), rgb(12 7 8);
  clip-path: polygon(var(--cut-in) 0, 100% 0, 100% calc(100% - var(--cut-in)), calc(100% - var(--cut-in)) 100%, 0 100%, 0 var(--cut-in));
}

/* ---------------------------------------------------------------------------
   CARDS DE SERVIDOR
   ------------------------------------------------------------------------ */
.srv-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  --lift: 0px;
  --base: 0px;
  position: relative;
  border-radius: 1.35rem;
  transform: perspective(1100px) translate3d(0, calc(var(--base) + var(--lift)), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.srv-card.is-tilting { transition: transform 0.15s ease-out; }
.srv-card:hover,
.srv-card:focus-within { --lift: -8px; }
@media (min-width: 1024px) {
  .srv-card.is-featured { --base: -18px; }
}

/* Borda fina estática + borda animada (conic) */
.srv-card::before,
.srv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.srv-card::before {
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.1));
}
.srv-card::after {
  padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 210deg, rgb(var(--g1)) 285deg, #ffffff 318deg, rgb(var(--g2)) 340deg, transparent 360deg);
  opacity: 0;
  transition: opacity 0.5s;
  animation: spin-angle 4.5s linear infinite;
}
.srv-card:hover::after,
.srv-card.is-featured::after { opacity: 1; }
.srv-card.is-featured::before {
  padding: 1.5px;
  background: linear-gradient(180deg, rgb(var(--g1) / 0.95), rgb(var(--g1) / 0.25) 50%, rgb(var(--g1) / 0.75));
}
@keyframes spin-angle { to { --angle: 360deg; } }

/* Halo atrás do card */
.srv-glow {
  position: absolute;
  inset: 10% 6% -6%;
  z-index: -1;
  border-radius: 2rem;
  background: radial-gradient(60% 60% at 50% 60%, rgb(var(--g1) / 0.6), transparent 72%);
  filter: blur(42px);
  opacity: 0;
  transition: opacity 0.6s;
}
.srv-card:hover .srv-glow { opacity: 0.7; }
.srv-card.is-featured .srv-glow {
  opacity: 0.85;
  animation: glow-pulse 3.6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50%      { opacity: 0.95; transform: scale(1.03); }
}

.srv-inner {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(16, 10, 11, 0.94), rgba(8, 5, 6, 0.97));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.9);
}
/* Holofote que segue o mouse dentro do card */
.srv-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  background: radial-gradient(440px circle at var(--mx) var(--my), rgb(var(--g1) / 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.srv-card:hover .srv-inner::after { opacity: 1; }

/* Selo "Recomendado" */
.badge-rec {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg, rgb(var(--g1)), rgb(var(--g1) / 0.7));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 26px rgb(var(--g1) / 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.badge-rec svg { animation: star-spin 6s ease-in-out infinite; }
@keyframes star-spin {
  0%, 70% { transform: rotate(0) scale(1); }
  85%     { transform: rotate(180deg) scale(1.25); }
  100%    { transform: rotate(360deg) scale(1); }
}

/* ---- Arte gerada do card ---- */
.srv-art {
  position: relative;
  height: 12rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 85% at 50% 108%, rgb(var(--g1) / 0.75), transparent 60%),
    radial-gradient(70% 60% at 12% 0%, rgb(var(--g2) / 0.35), transparent 70%),
    radial-gradient(60% 60% at 92% 8%, rgb(var(--g1) / 0.25), transparent 70%),
    linear-gradient(180deg, #0a0506, #130a0b);
}
.srv-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.srv-card:hover .srv-art > img { transform: scale(1.07); }

.srv-art::after { /* reflexo que varre no hover */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  transform: translateX(-120%);
}
.srv-card:hover .srv-art::after {
  transform: translateX(120%);
  transition: transform 1.1s ease;
}

.art-rays {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 190%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgb(var(--g1) / 0.18) 0deg 3deg, transparent 3deg 16deg);
  -webkit-mask: radial-gradient(closest-side, #000 12%, transparent 70%);
  mask: radial-gradient(closest-side, #000 12%, transparent 70%);
  mix-blend-mode: screen;
  animation: spin 70s linear infinite;
}
/* Anéis: cabem inteiros na arte e ficam acima da silhueta e do degradê,
   para nenhuma borda aparecer cortada */
.art-ring {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 45%;
  width: 9rem;
  height: 9rem;
  translate: -50% -50%;
  color: rgb(var(--g1));
  opacity: 0.55;
  animation: spin 42s linear infinite;
}
.art-ring.inner {
  width: 6.75rem;
  height: 6.75rem;
  opacity: 0.4;
  animation-duration: 26s;
  animation-direction: reverse;
}
.art-emblem {
  position: absolute;
  z-index: 5; /* acima do degradê inferior e dos anéis: o bico não some */
  left: 50%;
  top: 45%;
  width: 5.75rem;
  height: 5.75rem;
  translate: -50% -50%;
  filter: drop-shadow(0 0 16px rgb(var(--g1) / 0.85)) drop-shadow(0 0 42px rgb(var(--g1) / 0.45));
  animation: float 5s ease-in-out infinite;
}
/* Logo do jogo (substitui o brasão quando "logo" é definido no config) */
.art-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 72%;
  height: 6.5rem;
  translate: -50% -50%;
  animation: float 5s ease-in-out infinite;
}
.art-logo > img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgb(var(--g1) / 0.75)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s;
}
.srv-card:hover .art-logo > img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 22px rgb(var(--g1) / 0.95)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7));
}

.srv-card.has-logo .srv-art { height: 13rem; }

/* Ondas do rodapé da arte */
.art-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 52%;
  overflow: hidden;
  pointer-events: none;
}
.wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: wave-x 16s linear infinite;
  will-change: transform;
}
.wave-line { fill: none; stroke-width: 1.2; }

.wave-back { height: 100%; animation-duration: 18s; opacity: 0.9; }
.wave-back .wave-fill { fill: rgb(var(--g1) / 0.1); }
.wave-back .wave-line { stroke: rgb(var(--g1) / 0.35); }

.wave-mid { height: 82%; animation-duration: 12s; animation-direction: reverse; }
.wave-mid .wave-fill { fill: rgb(var(--g1) / 0.08); }
.wave-mid .wave-line { stroke: rgb(var(--g1) / 0.5); }

.wave-front { height: 66%; animation-duration: 22s; }
.wave-front .wave-fill { fill: rgb(16 10 11); }   /* mesma cor do corpo do card */
.wave-front .wave-line {
  stroke: rgb(var(--g1) / 0.8);
  filter: drop-shadow(0 0 4px rgb(var(--g1) / 0.9));
}

@keyframes wave-x { to { transform: translate3d(-50%, 0, 0); } }
.art-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  z-index: 3;
  background: linear-gradient(0deg, rgb(16 10 11) 0%, rgba(16, 10, 11, 0.6) 45%, transparent);
}

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Faíscas internas do card */
.c-spark {
  position: absolute;
  bottom: 18%;
  left: var(--x);
  z-index: 4;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgb(255 244 228);
  box-shadow: 0 0 6px 1px rgb(var(--g1) / 0.95), 0 0 14px 3px rgb(var(--g1) / 0.5);
  opacity: 0;
  animation: c-rise var(--t) linear var(--d) infinite;
}
@keyframes c-rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: 1; }
  75%  { opacity: 0.8; }
  100% { transform: translate3d(var(--dx), -11rem, 0); opacity: 0; }
}

/* ---- Botão Entrar ---- */
.btn-enter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  height: 3.25rem;
  border-radius: 0.9rem;
  font-family: 'Russo One', Geist, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(42, 26, 26, 0.72), rgba(20, 12, 12, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.2s;
}
.btn-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--g1)), rgb(var(--g1) / 0.62));
  opacity: 0;
  transition: opacity 0.35s;
}
.btn-enter::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
}
.btn-enter:hover,
.btn-enter.is-primary {
  border-color: rgb(var(--g1) / 0.85);
  box-shadow: 0 0 0 1px rgb(var(--g1) / 0.25), 0 12px 32px -8px rgb(var(--g1) / 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-enter:hover::before,
.btn-enter.is-primary::before { opacity: 1; }
.btn-enter:hover,
.btn-enter.is-primary { color: var(--btn-ink, #fff); }
.srv-card:hover .btn-enter::after,
.btn-enter.is-primary::after { animation: btn-shine 2.8s ease-in-out infinite; }
.btn-enter:active { transform: scale(0.98); }
.btn-enter .chev { transition: transform 0.3s; }
.btn-enter:hover .chev { transform: translateX(4px); }
.btn-enter:focus-visible {
  outline: 2px solid rgb(var(--g1));
  outline-offset: 3px;
}
.btn-enter[aria-disabled='true'] {
  cursor: not-allowed;
  color: rgba(226, 232, 240, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.btn-enter[aria-disabled='true']::before,
.btn-enter[aria-disabled='true']::after { display: none; }
@keyframes btn-shine {
  0%        { left: -60%; }
  55%, 100% { left: 130%; }
}

/* ---- Botão "Ver informações do servidor" ---- */
.btn-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 2.75rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.btn-info-ico {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.5rem;
  color: rgb(var(--g1));
  background: rgb(var(--g1) / 0.12);
  box-shadow: inset 0 0 0 1px rgb(var(--g1) / 0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-info .chev { opacity: 0.5; transition: transform 0.3s, opacity 0.3s; }
.btn-info:hover {
  color: #fff;
  border-color: rgb(var(--g1) / 0.5);
  background: rgb(var(--g1) / 0.08);
  box-shadow: 0 0 24px -6px rgb(var(--g1) / 0.6);
}
.btn-info:hover .btn-info-ico { transform: rotate(-8deg) scale(1.1); }
.btn-info:hover .chev { transform: translateX(3px); opacity: 1; }
.btn-info:focus-visible { outline: 2px solid rgb(var(--g1)); outline-offset: 3px; }

/* Halo pulsante atrás do brasão/logo */
.art-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9rem;
  height: 9rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--g1) / 0.5), rgb(var(--g1) / 0.14) 55%, transparent 75%);
  mix-blend-mode: screen;
  animation: halo 3.4s ease-in-out infinite;
}
@keyframes halo {
  50% { transform: scale(1.25); opacity: 0.65; }
}

/* ---------------------------------------------------------------------------
   MODAL DE INFORMAÇÕES
   ------------------------------------------------------------------------ */
html.modal-lock { overflow: hidden; }

.modal {
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.55s;
}
.modal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.modal-backdrop {
  background: radial-gradient(ellipse at 50% 40%, rgba(45, 4, 2, 0.55), rgba(3, 2, 2, 0.9) 70%);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }

.modal-panel {
  --g1: 253 5 0;
  --g2: 252 223 53;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.04);
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }

.modal-glow {
  position: absolute;
  inset: -2.5rem;
  z-index: -1;
  background: radial-gradient(50% 42% at 50% 18%, rgb(var(--g1) / 0.45), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

.modal-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(18, 11, 12, 0.98), rgba(8, 5, 6, 0.99));
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95);
}
.modal-frame::before,
.modal-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.modal-frame::before { /* borda contínua em volta do modal inteiro */
  padding: 1.5px;
  background: linear-gradient(180deg, rgb(var(--g1) / 0.95), rgb(var(--g1) / 0.35) 45%, rgb(var(--g1) / 0.6));
}
.modal-frame::after {
  padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 230deg, rgb(var(--g1)) 295deg, #ffffff 320deg, rgb(var(--g2)) 340deg, transparent 360deg);
  animation: spin-angle 5s linear infinite;
}

/* Rolagem sem barra visível (ela cortava a borda arredondada do modal);
   continua rolando normalmente com mouse, touch e teclado. */
.modal-scroll {
  max-height: min(88vh, 56rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-scroll::-webkit-scrollbar { display: none; }

/* Celular: abre como "bottom sheet" */
@media (max-width: 639px) {
  .modal-frame { border-radius: 1.5rem 1.5rem 0 0; }
  .modal-scroll { max-height: 92vh; }
  .modal-panel { transform: translateY(100%); }
}

/* Topo do modal com a arte animada maior */
.srv-art.modal-art,
.srv-art.modal-art.has-logo { height: 16rem; }
.modal-art .art-ring { width: 13rem; height: 13rem; top: 45%; }
.modal-art .art-ring.inner { width: 9.5rem; height: 9.5rem; }
.modal-art .art-emblem { width: 7rem; height: 7rem; top: 45%; }
.modal-art .art-halo { width: 12rem; height: 12rem; top: 45%; }
.modal-art .art-logo { width: 70%; height: 7.5rem; top: 47%; }
.modal-art .art-waves { height: 44%; }
.modal-art .wave-front .wave-fill { fill: rgb(17 11 12); } /* cor do corpo do modal */
@media (max-height: 760px) {
  .srv-art.modal-art,
  .srv-art.modal-art.has-logo { height: 13.5rem; }
  .modal-art .art-ring { width: 11rem; height: 11rem; }
  .modal-art .art-ring.inner { width: 8rem; height: 8rem; }
  .modal-art .art-emblem { width: 6rem; height: 6rem; }
  .modal-art .art-halo { width: 10rem; height: 10rem; }
  .modal-art .art-logo { height: 6.25rem; }
}

.modal.is-open .modal-art::after { animation: sweep 1.4s 0.4s ease forwards; }
@keyframes sweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}
.modal.is-open .modal-art .art-emblem,
.modal.is-open .modal-art .art-logo {
  animation: emblem-in 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.25) both, float 5s ease-in-out 0.9s infinite;
}
@keyframes emblem-in {
  from { transform: scale(0.35) rotate(-14deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal.is-open .modal-art .art-ring {
  animation: ring-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both, spin 42s linear 1.1s infinite;
}
.modal.is-open .modal-art .art-ring.inner {
  animation: ring-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both, spin 26s linear 1.2s infinite reverse;
}
@keyframes ring-in {
  from { transform: scale(0.55) rotate(-120deg); opacity: 0; }
  to   { transform: none; }
}

.modal-x { transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal-x:hover {
  color: #fff;
  border-color: rgb(var(--g1) / 0.6);
  box-shadow: 0 0 18px rgb(var(--g1) / 0.45);
  transform: rotate(90deg);
}
.modal-x:focus-visible { outline: 2px solid rgb(var(--g1)); outline-offset: 2px; }

/* Entrada escalonada do conteúdo */
.m-in { opacity: 0; transform: translateY(14px); }
.modal.is-open .m-in {
  animation: m-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.25s + var(--i, 0) * 0.08s);
}
@keyframes m-in { to { opacity: 1; transform: none; } }

/* Grid de informações: tabela compacta, 2 colunas, linhas finas entre as células */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07); /* cor das linhas */
}
.info-cell {
  padding: 0.7rem 1rem;
  text-align: left;
  background: rgb(14 9 10);
  opacity: 0;
  transform: translateY(8px);
  transition: background-color 0.25s;
}
/* número ímpar de itens: o último ocupa a linha inteira */
.info-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
.modal.is-open .info-cell {
  animation: m-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.45s + var(--i, 0) * 0.035s);
}
.info-cell:hover { background-color: rgb(var(--g1) / 0.07); }
.info-cell dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(148 140 142);
}
.info-cell dd {
  margin-top: 0.15rem;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 9;
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(10, 6, 7, 0.78), rgba(10, 6, 7, 0.97));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (min-width: 640px) {
  .modal-footer { padding: 1.1rem 2rem; }
}
.btn-ghost {
  flex: none;
  height: 3.25rem;
  padding: 0 1.4rem;
  border-radius: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

/* ---------------------------------------------------------------------------
   ENTRADA (reveal), PRELOADER, TRANSIÇÃO, TOAST
   ------------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(8px);
}
.is-ready .reveal {
  animation: reveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal { to { opacity: 1; transform: none; filter: none; } }

.preloader { transition: opacity 0.8s ease, visibility 0.8s; }
.is-ready .preloader { opacity: 0; visibility: hidden; }
.loader-ring {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: conic-gradient(from var(--angle), transparent 0 62%, #fd0500 86%, #fcdf35 100%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: spin-angle 1.1s linear infinite;
}
.loader-logo { animation: logo-breathe 1.8s ease-in-out infinite; }
@keyframes logo-breathe {
  50% { filter: drop-shadow(0 0 22px rgba(253, 5, 0, 0.85)); transform: scale(1.04); }
}

/* Logo oficial no topo */
.brand-logo {
  filter: drop-shadow(0 0 14px rgba(253, 5, 0, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s;
  animation: brand-glow 4s ease-in-out infinite;
}
.brand-link:hover .brand-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 0 24px rgba(253, 5, 0, 0.8)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
@keyframes brand-glow {
  50% { filter: drop-shadow(0 0 22px rgba(253, 5, 0, 0.7)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
}

.warp {
  --g1: 253 5 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.warp.is-active { opacity: 1; pointer-events: auto; }
.warp-bg {
  background: radial-gradient(circle at 50% 50%, rgb(var(--g1) / 0.28), rgba(5, 3, 4, 0.95) 45%, #050304 80%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.warp-rings > span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgb(var(--g1) / 0.7);
  box-shadow: 0 0 20px rgb(var(--g1) / 0.4), inset 0 0 20px rgb(var(--g1) / 0.3);
  animation: ring-out 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.warp-rings > span:nth-child(2) { animation-delay: 0.6s; }
.warp-rings > span:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring-out {
  from { transform: scale(0.4); opacity: 1; }
  to   { transform: scale(2.5); opacity: 0; }
}
.warp-emblem {
  filter: drop-shadow(0 0 22px rgb(var(--g1) / 0.9));
  animation: float 2.4s ease-in-out infinite;
}
.warp-bar {
  width: 0;
  background: linear-gradient(90deg, rgb(var(--g1) / 0.35), rgb(var(--g1)), #fff);
  box-shadow: 0 0 14px rgb(var(--g1));
}
.warp.is-active .warp-bar { animation: bar 1.45s cubic-bezier(0.65, 0.05, 0.25, 1) forwards; }
@keyframes bar { to { width: 100%; } }

.toast {
  left: 50%;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------------------------------------------------------------------------
   NOTEBOOKS (telas largas porém baixas): cabe tudo sem rolar
   ------------------------------------------------------------------------ */
@media (min-width: 1024px) and (max-height: 920px) {
  #hero { padding-top: 1.25rem !important; }
  .hero-l1 { font-size: 3.6rem !important; }
  .hero-l2 { font-size: 5.4rem !important; }
  .hero-p { margin-top: 0.75rem !important; }
  .servers-section { padding-top: 3.25rem !important; }
  .srv-art { height: 10rem; }
  .srv-card.has-logo .srv-art { height: 11.5rem; }
  .art-logo { height: 5.5rem; }
  .art-ring { width: 8rem; height: 8rem; }
  .art-ring.inner { width: 6rem; height: 6rem; }
  .art-emblem { width: 5rem; height: 5rem; }
}

/* ---------------------------------------------------------------------------
   ACESSIBILIDADE: menos movimento
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .c-spark, .fog, .grain { display: none; }
}
