/* ==========================================================================
   CABAL LOYALTY - EPISÓDIO 41
   Inspirado na arquitetura e estética do Heroes Games (heroesgames.com.br)
   Cores: Ouro Imperial Nobre, Carmesim Rubi, Fundo Deep Dark Atmospheric
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Barlow:wght@400;500;600;700;800&family=Saira:wght@500;600;700;800&family=Saira+Condensed:wght@600;700;800&display=swap');

:root {
  /* Paleta Ouro Nobre (Loyalty) */
  --gold: #f5c443;
  --gold-light: #fff3a8;
  --gold-glow: #ffd700;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, #fff7b9 0%, #f6cb44 28%, #cca225 55%, #f9dc6e 78%, #8f6817 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #ffd700 30%, #e6a817 65%, #fff199 100%);

  /* Paleta Carmesim / Rubi */
  --ruby: #e60026;
  --ruby-bright: #ff2a4b;
  --ruby-deep: #8b0014;
  --ruby-gradient: linear-gradient(135deg, #ff2a4b 0%, #b8001a 50%, #68000f 100%);
  --ruby-gradient-hover: linear-gradient(135deg, #ff4d6a 0%, #d90022 50%, #8b0014 100%);

  /* Nações */
  --capella: #ff2a4b;
  --procyon: #0088ff;

  /* Fundos & Superfícies (Estilo Heroes Games) */
  --bg-deep: #07090e;
  --bg-card: rgba(13, 16, 24, 0.88);
  --bg-card-hover: rgba(18, 23, 35, 0.95);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 196, 67, 0.35);

  /* Tipografia */
  --font-title: 'Cinzel', serif;
  --font-ui: 'Saira', sans-serif;
  --font-cond: 'Saira Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: #e2e8f0;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Atmosfera de Fundo (Camadas de Névoa e Partículas) */
.stage-atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 0%, rgba(139, 0, 20, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 50% 60%, rgba(245, 196, 67, 0.07) 0%, transparent 70%),
    radial-gradient(circle at 50% 100%, rgba(13, 16, 24, 0.9) 0%, #040507 100%);
  pointer-events: none;
  z-index: 0;
}

#embers-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.site-wrapper {
  position: relative;
  z-index: 2;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVBAR (ESTILO HEROES GAMES)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 76px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

[hidden] { display: none !important; }

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Brasão do Leão sem Fundo */
.nav-logo-pure {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(245, 196, 67, 0.75));
  transition: transform 0.3s ease;
}

.nav-left:hover .nav-logo-pure {
  transform: scale(1.08);
}

.nav-ruby {
  width: 36px;
  height: 52px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(230, 0, 38, 0.45));
  transition: filter 0.35s ease;
}

.nav-left:hover .nav-ruby {
  filter: drop-shadow(0 0 12px rgba(255, 40, 75, 0.7));
}

.nav-brand-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f5cf7a;
  background: linear-gradient(175deg, #fff1c1 5%, #eabc59 38%, #b17927 56%, #f8da8e 80%, #d5a243);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
  line-height: 1.1;
}

.nav-brand-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(232, 182, 78, 0.45);
  border-radius: 3px;
  background: linear-gradient(100deg, rgba(112, 7, 29, 0.7), rgba(36, 11, 17, 0.8));
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f3d897;
  text-transform: uppercase;
}

.nav-brand-sub strong {
  color: #fff1bd;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(245, 196, 67, 0.4);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navlinks .link {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.35s ease, text-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
  padding: 10px 15px;
  border-radius: 2px;
}

.navlinks .link:hover, .navlinks .link:focus-visible {
  color: var(--gold-light);
  text-shadow: 0 0 16px rgba(245, 196, 67, 0.65);
}

.navlinks .link.active {
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(245, 196, 67, 0.3);
}

.navlinks .link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.navlinks .link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 15px;
  width: calc(100% - 30px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #bd8b35 20%, #fff1b7 50%, #bd8b35 80%, transparent);
  box-shadow: 0 2px 8px rgba(245, 196, 67, 0.4);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.navlinks .link:hover::after, .navlinks .link:focus-visible::after, .navlinks .link.active::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left;
}

/* Botões do Topo */
.navbtns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 9px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn.pri {
  background: var(--gold-gradient);
  color: #120d02;
  border-color: #fff;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(245, 196, 67, 0.4);
}

.btn.pri:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
  transform: translateY(-2px);
}

.btn.ruby-cta {
  background: var(--ruby-gradient);
  color: #fff;
  border-color: #ff4d6a;
  box-shadow: 0 0 20px rgba(230, 0, 38, 0.4);
}

.btn.ruby-cta:hover {
  background: var(--ruby-gradient-hover);
  box-shadow: 0 0 30px rgba(255, 42, 75, 0.7);
}

.btn.hbig {
  font-size: 1.05rem;
  padding: 15px 36px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Ações principais: ouro escovado e rubi lapidado. */
.btn.loyalty-action {
  position: relative;
  overflow: hidden;
  min-width: 260px;
  padding: 14px 20px;
  gap: 15px;
  border-radius: 6px;
  border: 1px solid #edcc83;
  background: linear-gradient(115deg, #bc842d, #f4d58b 45%, #d8a74a 72%, #b77c25);
  color: #291b08;
  box-shadow: inset 0 1px 0 #fff0bf, inset 0 -3px 0 rgba(81, 47, 8, 0.28), 0 7px 22px rgba(0, 0, 0, 0.4);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn.loyalty-action::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 49%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.btn.loyalty-action.ruby-cta {
  background: linear-gradient(115deg, #530e22, #a51e3d 48%, #78122d);
  color: #fff0d0;
  border-color: #be814c;
  box-shadow: inset 0 1px 0 rgba(255, 200, 153, 0.3), inset 0 -3px 0 rgba(35, 2, 12, 0.4), 0 7px 22px rgba(0, 0, 0, 0.4);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(61, 36, 6, 0.2);
  border-radius: 4px;
  background: rgba(54, 30, 5, 0.09);
  font-size: 1.2rem;
}

.ruby-cta .action-icon {
  background: rgba(18, 0, 7, 0.2);
  border-color: rgba(245, 204, 135, 0.3);
  color: #f1ce8b;
}

.action-copy { display: flex; flex-direction: column; gap: 4px; }
.action-copy strong { font-family: var(--font-title); font-size: 1.02rem; letter-spacing: 0.7px; }
.action-copy small { font-size: 0.58rem; font-weight: 600; letter-spacing: 1.5px; opacity: 0.8; }
.action-arrow { margin-left: auto; padding-left: 10px; font-size: 1.3rem; transition: transform 0.25s ease; }
.btn.loyalty-action:hover, .btn.loyalty-action:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 240, 191, 0.7), 0 10px 28px rgba(207, 148, 41, 0.24);
}
.btn.loyalty-action.ruby-cta:hover, .btn.loyalty-action.ruby-cta:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255, 200, 153, 0.5), 0 10px 28px rgba(182, 23, 62, 0.28);
}
.btn.loyalty-action:hover::after, .btn.loyalty-action:focus-visible::after { transform: translateX(130%); }
.btn.loyalty-action:hover .action-arrow { transform: translateX(3px); }
.btn.loyalty-action:active { transform: translateY(0); }
.btn.loyalty-action:focus-visible, .btn.loyalty-register-top:focus-visible { outline: 2px solid #fff0bc; outline-offset: 4px; }
.btn.loyalty-register-top {
  background: linear-gradient(115deg, #590e24, #9b1c39, #6b122b);
  color: #f7dfac;
  border-color: #b88149;
  box-shadow: inset 0 1px 0 rgba(255, 211, 150, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn.loyalty-register-top:hover { background: linear-gradient(115deg, #76152f, #b12848, #801735); border-color: #f0ce85; }
@media (max-width: 600px) {
  .hcta { width: 100%; }
  .btn.loyalty-action { width: 100%; max-width: 340px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn.loyalty-action, .btn.loyalty-action::after, .action-arrow { transition: none; }
  .btn.loyalty-action::after { display: none; }
  .btn.loyalty-action:hover, .btn.loyalty-action:hover .action-arrow { transform: none; }
}

.mburg {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (ESTILO HEROES GAMES COM BRASÃO DO LEÃO E CAIXA DE TG)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 60px;
}

/* Widget Flutuante da Próxima TG (Exatamente como em heroesgames.com.br) */
.hero-tg {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(13, 16, 24, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 12px 20px;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  z-index: 20;
}

.hero-tg:hover {
  border-color: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(245, 196, 67, 0.3);
}

.htg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.htg-k {
  color: var(--gold-light);
  font-weight: 700;
}

.htg-timer-val {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin: 2px 0;
  letter-spacing: 1px;
}

.htg-go {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

/* Palco da Logo do Leão Central - 100% Transparente Sem Quadrado */
.hero-crest-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.hero-crest-glow {
  position: absolute;
  width: 72%;
  height: 22%;
  bottom: 6%;
  background: radial-gradient(ellipse, rgba(198, 12, 50, 0.38), rgba(116, 6, 32, 0.12) 48%, transparent 72%);
  border-radius: 50%;
  filter: blur(22px);
  pointer-events: none;
  z-index: 1;
  animation: loyaltyRubyLight 7s ease-in-out infinite;
}

/* A IMAGEM DO BRASÃO DO LEÃO 100% SEM QUADRADO PRETO (TRANSPARENTE) */
.hero-lion-img {
  position: relative;
  z-index: 2;
  max-width: 440px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 9px rgba(245, 196, 67, 0.18));
  transition: filter 0.5s ease;
}

.hero-lion-img:hover {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(245, 196, 67, 0.32));
}

/* Reflexo de metal recortado pela transparência do brasão. */
.hero-crest-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  max-width: 440px;
  margin-inline: auto;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 226, 156, 0.08) 46%, rgba(255, 246, 213, 0.72) 50%, rgba(255, 213, 119, 0.12) 54%, transparent 60%);
  background-size: 350% 100%;
  background-position: 100% 0;
  -webkit-mask: url('../assets/cabal-loyalty.png') center / contain no-repeat;
  mask: url('../assets/cabal-loyalty.png') center / contain no-repeat;
  mix-blend-mode: screen;
  animation: loyaltyGoldReflection 8s ease-in-out infinite;
}

@keyframes loyaltyGoldReflection {
  0%, 12% { background-position: 100% 0; opacity: 0; }
  18% { opacity: 0.75; }
  46% { opacity: 0.75; }
  54%, 100% { background-position: 0% 0; opacity: 0; }
}

@keyframes loyaltyRubyLight {
  0%, 100% { opacity: 0.45; transform: scaleX(0.9); }
  50% { opacity: 0.9; transform: scaleX(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-crest-wrap::after { animation: none; opacity: 0; }
  .hero-crest-glow { animation: none; opacity: 0.6; }
}

.hero-tag-pill {
  display: inline-block;
  background: rgba(245, 196, 67, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-title-main {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 35px;
}

.hcta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-download-notice {
  margin-top: -16px;
  color: #b9b2a5;
  font-size: 0.88rem;
  line-height: 1.6;
}
.hero-download-notice i { color: #cfad70; margin-right: 7px; font-size: 0.75rem; }

.hh-scroll {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   TÍTULOS DE SEÇÃO (ESTILO HEROES GAMES: hhead title-bg)
   ========================================================================== */
.hsec {
  padding: 60px 0;
}

.hhead {
  text-align: center;
  margin-bottom: 40px;
}

.hkick {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ruby-bright);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.htitle {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
}

.htitle em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hlede {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ==========================================================================
   DIFERENCIAIS DO SERVIDOR (MOSAICO / SHOWCASE)
   ========================================================================== */
.mosaico {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  counter-reset: loyalty-feature;
}

.mos-card {
  position: relative;
  overflow: hidden;
  counter-increment: loyalty-feature;
  background: radial-gradient(ellipse at top left, rgba(153, 34, 56, 0.12), transparent 65%), linear-gradient(145deg, #13151e, #090c13);
  border: 1px solid rgba(220, 178, 100, 0.18);
  border-radius: 12px;
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 227, 171, 0.04), 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mos-card:hover {
  border-color: rgba(245, 196, 67, 0.55);
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(245, 196, 67, 0.15);
}

.mos-card::after {
  content: counter(loyalty-feature, decimal-leading-zero);
  position: absolute;
  top: 23px;
  right: 24px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: rgba(234, 195, 126, 0.18);
}

.mos-exclusive { border-color: rgba(228, 173, 73, 0.45); }
.mos-category {
  display: block;
  margin-bottom: 8px;
  font-size: 0.6rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #c6a578;
}

.mos-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(233, 187, 103, 0.25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(197, 133, 48, 0.14), rgba(128, 15, 42, 0.16));
  font-size: 1.4rem;
  color: #edc981;
  margin-bottom: 22px;
}

.mos-title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.mos-desc {
  font-size: 0.9rem;
  color: #a8adba;
  line-height: 1.7;
}

.loyalty-pillars {
  max-width: 1080px;
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.loyalty-pillars .mos-card { padding: 32px; }
.loyalty-pillars .mos-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #d6b477;
  font-size: 1.9rem;
}
.loyalty-pillars .mos-icon i {
  width: 40px;
  text-align: center;
}
.loyalty-pillars .mos-card::after { font-size: 2.4rem; top: 22px; right: 30px; }
.loyalty-pillars .mos-title { font-family: var(--font-title); color: #f5dfb0; font-size: 1.25rem; }
.loyalty-pillars .mos-desc { max-width: 46ch; }
.pillar-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(221, 175, 87, 0.15);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 0.72rem;
  color: #cbb58b;
  letter-spacing: 0.4px;
}
.pillar-detail span { color: #b82e4a; font-size: 0.55rem; }
@media (max-width: 650px) {
  .loyalty-pillars { grid-template-columns: minmax(0, 1fr); }
  .loyalty-pillars .mos-card { padding: 26px; }
}

.loyalty-infra {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
  margin-bottom: 26px;
  border: 1px solid rgba(221, 175, 87, 0.4);
  border-radius: 14px;
  background: radial-gradient(ellipse at right, rgba(139, 15, 40, 0.28), transparent 65%), linear-gradient(120deg, #1a1614, #0d1018);
}
.infra-emblem { color: #e6bb6e; font-size: 2rem; }
.infra-copy { flex: 1; }
.infra-copy > span { font-size: 0.62rem; letter-spacing: 2px; color: #e6bb6e; font-weight: 700; }
.infra-copy h3 { font-family: var(--font-title); color: #f6e3ba; font-size: 1.2rem; margin: 6px 0; }
.infra-copy p { font-size: 0.9rem; color: #a8adba; }
.infra-period { display: flex; align-items: center; gap: 12px; padding-left: 28px; border-left: 1px solid rgba(221, 175, 87, 0.25); }
.infra-period strong { font-family: var(--font-title); font-size: 3.4rem; line-height: 1; color: #f0cb80; }
.infra-period span { font-size: 0.64rem; letter-spacing: 1.3px; color: #f0d7ac; }
@media (max-width: 650px) {
  .loyalty-infra { flex-wrap: wrap; padding: 24px; gap: 18px; }
  .infra-emblem { display: none; }
  .infra-copy { flex-basis: 100%; }
  .infra-period { border-left: 0; padding-left: 0; }
  .mosaico { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .mos-card, .loyalty-pillars .mos-icon { transition: none; }
  .mos-card:hover { transform: none; }
}

/* ==========================================================================
   RANKINGS (ESTILO HEROES GAMES)
   ========================================================================== */
.rankcard {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.rtabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.rtab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
}

.rtab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.rtab-btn.active {
  background: var(--gold-gradient);
  color: #120d02;
  border-color: #fff;
  box-shadow: 0 0 18px rgba(245, 196, 67, 0.4);
}

/* Pódio TOP 3 */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 30px;
}

.podium-box {
  background: rgba(18, 22, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.podium-box.first {
  background: linear-gradient(180deg, rgba(35, 28, 12, 0.9) 0%, rgba(18, 22, 34, 0.9) 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 0 25px rgba(245, 196, 67, 0.25);
  padding-bottom: 28px;
}

.podium-crown-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.first .podium-crown-icon { color: #ffd700; }
.second .podium-crown-icon { color: #cbd5e1; }
.third .podium-crown-icon { color: #cd7f32; }

.podium-nick {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.podium-meta {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.podium-val {
  display: inline-block;
  background: #000;
  border: 1px solid var(--border-gold);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.rankhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.csearch input {
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 9px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  width: 260px;
  transition: border-color 0.25s;
}

.csearch input:focus {
  border-color: var(--gold);
}

.rfilters select {
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 9px 14px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Tabela de Rankings */
.rtablewrap {
  overflow-x: auto;
}

.rtable {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rtable th {
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rtable td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rtable tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.rbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

/* ==========================================================================
   SERVER INFO (ESTILO HEROES GAMES: hstatbar, srvrow, war-matrix)
   ========================================================================== */
.hstatbar {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 16px 24px;
  justify-content: space-around;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.hstat {
  text-align: center;
}

.hstat .v {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hstat .k {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hstat .live {
  width: 9px;
  height: 9px;
  background: #38ef7d;
  border-radius: 50%;
  box-shadow: 0 0 10px #38ef7d;
}

.si-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  margin-bottom: 30px;
}

.hcard {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 24px;
}

.hc-k {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ruby-bright);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hc-t {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

/* Taxas do Servidor em Badges (srvrow) */
.srvrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
}

.srvrow .rt {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.srvrow .rt b {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}

.srvrow .rt i {
  font-style: normal;
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: var(--font-cond);
  text-transform: uppercase;
}

/* Matriz de Guerra (War Matrix) */
.war-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.war-matrix th {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-ui);
  color: #cbd5e1;
}

.war-matrix td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wm-cap { color: var(--capella); }
.wm-pro { color: var(--procyon); }

/* ==========================================================================
   DOWNLOAD (CLIENTE DO JOGO)
   ========================================================================== */
.dlp-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.pnl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 26px;
}

.pnl-ct {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dlp-ol {
  list-style-position: inside;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.dlp-ol li {
  margin-bottom: 10px;
}

.dlp-dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px 15px;
  font-size: 0.88rem;
}

.dlp-dl dt { color: #94a3b8; }
.dlp-dl dd { color: #fff; font-weight: 600; }

/* ==========================================================================
   MODAIS DE AUTENTICAÇÃO (ENTRAR E CRIAR CONTA)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.authcard {
  background: #0c0f16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  max-width: 440px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

.auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
}

.auth-close:hover { color: #fff; }

.auth-abas {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.auth-abas button {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.auth-abas button.on {
  color: #fff;
  border-bottom-color: var(--gold);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}

.field input:focus {
  border-color: var(--gold);
}

.auth-message { color: #f0cc8b; font-size: 0.87rem; margin: 8px 0 16px; line-height: 1.5; }
.activation-help { color: #a8adba; font-size: 0.85rem; line-height: 1.6; margin: 12px 0; }
.activation-help i { color: #d6b477; margin-right: 6px; }
.activation-title { color: #f0d39a; font-family: var(--font-title); margin-bottom: 12px; }
.activation-link { display: block; margin: 18px auto 0; padding: 6px; border: 0; background: none; color: #e0c18b; font: inherit; font-size: 0.8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.field input.activation-code { text-align: center; letter-spacing: 9px; font-size: 1.4rem; }
.authcard { max-height: 90vh; overflow-y: auto; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.scratch-panel { max-width: 1080px; margin: 0 auto 32px; padding: 30px; border: 1px solid rgba(220,176,93,0.4); border-radius: 14px; background: radial-gradient(ellipse at top right,rgba(118,17,42,0.2),transparent 65%),linear-gradient(145deg,#17141b,#0b0e15); }
.scratch-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.scratch-header h3 { color: #f6e4bd; font-family: var(--font-title); font-size: 1.65rem; margin: 5px 0 8px; }
.scratch-header h3 em { font-style: normal; color: #dbb86f; }
.scratch-header p { color: #a6adbb; font-size: 0.87rem; }
.scratch-badge { border: 1px solid #cba75c40; border-radius: 4px; padding: 8px 12px; color: #d9bc80; font-size: 0.62rem; letter-spacing: 1.3px; white-space: nowrap; }
.scratch-toolbar { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 14px; color: #b9b0a0; font-size: 0.78rem; }
.scratch-toolbar i { color: #d8b873; margin-right: 6px; }
.scratch-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.scratch-tile { position: relative; overflow: hidden; aspect-ratio: 1.25; border: 1px solid #d1ac69; border-radius: 7px; background: #0a0d14; padding: 0; cursor: url('../assets/scratch-hand-coin.svg') 14 8, pointer; touch-action: none; user-select: none; }
.scratch-tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.3s ease; }
.scratch-tile:focus-visible { outline: 2px solid #fff2c4; outline-offset: 4px; }
.scratch-tile.is-revealed { border-color: #b33c5350; cursor: default; }
.scratch-tile.is-revealed canvas { opacity: 0; pointer-events: none; }
.scratch-result { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 7px; background: radial-gradient(ellipse,rgba(132,28,49,0.2),transparent 75%); }
.scratch-result i { color: #d6af68; font-size: 1.5rem; }
.scratch-result strong { color: #e7d6b3; font-family: var(--font-ui); font-size: 0.9rem; }
.scratch-result small { color: #837e79; font-family: var(--font-ui); font-size: 0.55rem; letter-spacing: 1.5px; }
.scratch-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #ffffff0d; }
.scratch-footer p { color: #999fad; font-size: 0.78rem; max-width: 520px; }
.scratch-footer .btn { font-size: 0.75rem; flex-shrink: 0; }
@media(max-width:700px) {
  .scratch-panel { padding: 20px; }
  .scratch-header,.scratch-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .scratch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .scratch-header h3 { font-size: 1.4rem; }
}
@media(prefers-reduced-motion:reduce) { .scratch-tile canvas { transition: none; } }

.scratch-entry { display: flex; align-items: center; gap: 20px; max-width: 1080px; margin: 0 auto 28px; padding: 24px; border: 1px solid rgba(221,175,87,0.28); border-radius: 12px; background: linear-gradient(120deg,#25131e,#0d1018); }
.scratch-entry-icon { color: #ddbc7e; font-size: 2rem; }
.scratch-entry-copy { flex: 1; }
.scratch-entry h3 { font-family: var(--font-title); font-size: 1.1rem; color: #f0d39a; margin-bottom: 5px; }
.scratch-entry p { font-size: 0.85rem; color: #adb0bc; }
.scratch-entry small { display: block; color: #8d8790; font-size: 0.65rem; margin-top: 5px; }
.scratch-close { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #e3c09240; border-radius: 4px; background: #190b1866; color: #edcfaa; font: inherit; font-size: 0.7rem; cursor: pointer; }
.scratch-close span { font-size: 1.2rem; line-height: 1; }
.scratch-close:hover { background: #160911aa; border-color: #edcfaa; }
.scratch-close:focus-visible { outline: 2px solid #f2dca7; outline-offset: 3px; }
@media(max-width:650px) { .scratch-entry { flex-wrap: wrap; gap: 14px; } .scratch-entry .btn { width: 100%; } }
/* Cartela compacta: dez casas em duas fileiras, inclusive no celular. */
.scratch-panel {
  max-width: 760px;
  padding: 24px;
  border-radius: 10px;
  border-color: rgba(222, 139, 104, 0.6);
  background:
    linear-gradient(145deg, transparent 38%, rgba(255, 107, 128, 0.09) 38.2%, transparent 60%),
    conic-gradient(from 25deg at 78% 25%, #70132d66 0deg 60deg, transparent 60deg 160deg, #d6375540 160deg 205deg, transparent 205deg),
    conic-gradient(from 190deg at 18% 80%, #e840581c 0deg 55deg, transparent 55deg 140deg, #40071980 140deg 220deg, transparent 220deg),
    linear-gradient(125deg, #300b1b, #68142e 48%, #250b18);
  box-shadow: inset 0 1px 0 rgba(255, 194, 166, 0.16), 0 16px 36px rgba(0, 0, 0, 0.3);
}
.scratch-panel .scratch-header p, .scratch-panel .scratch-toolbar, .scratch-panel .scratch-footer p { color: #d7bbc3; }
.scratch-panel .scratch-footer { border-top-color: rgba(255, 206, 188, 0.15); }
.scratch-header { margin-bottom: 14px; gap: 16px; align-items: flex-start; flex-direction: row; }
.scratch-header h3 { font-size: 1.12rem; margin: 0 0 4px; }
.scratch-header p { font-size: 0.75rem; }
.scratch-toolbar { font-size: 0.66rem; margin-bottom: 10px; }
.scratch-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.scratch-tile { aspect-ratio: 1.35; border-radius: 5px; }
.scratch-result { gap: 3px; }
.scratch-result i { font-size: 1rem; }
.scratch-result strong { font-size: 0.6rem; }
.scratch-result small { display: none; }
.scratch-footer { margin-top: 12px; padding-top: 10px; gap: 10px; flex-direction: row; align-items: center; }
.scratch-footer p { font-size: 0.65rem; }
.scratch-footer .btn { font-size: 0.65rem; padding: 6px 10px; }
@media(max-width:400px) {
  .scratch-panel { padding: 14px; }
  .scratch-grid { gap: 6px; }
}

.account-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; max-width: 1080px; margin: auto; }
.account-card { display: block; padding: 28px; border: 1px solid rgba(221,175,87,0.24); border-radius: 12px; background: linear-gradient(145deg,#19151b,#0c1018); color: #d2d5dc; text-decoration: none; }
.account-card h3 { color: #f0d39a; font-family: var(--font-title); font-size: 1.2rem; margin: 10px 0; }
.account-card p { color: #a8adba; font-size: 0.9rem; margin-bottom: 20px; }
.account-card > i { color: #d6b477; font-size: 1.5rem; }
.account-info { margin: 24px 0; }
.account-info dt { font-size: 0.75rem; color: #969eae; margin-top: 16px; }
.account-info dd { overflow-wrap: anywhere; margin-top: 4px; }
.account-active { color: #8bd1a6; }
.account-note { padding-top: 18px; border-top: 1px solid #ffffff12; }
.account-shortcuts { display: grid; align-content: start; gap: 16px; }
.account-shortcuts a:hover { border-color: #d6b477; }
.account-shortcuts span { color: #dfbb76; font-size: 0.8rem; }
#s-discord .account-card { max-width: 650px; margin: auto; text-align: center; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }

.authbtn {
  width: 100%;
  margin-top: 10px;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
footer {
  background: #040507;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 30px;
  margin-top: 60px;
}

.foot-legal-txt {
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.foot-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  margin-right: 18px;
}

.foot-links a:hover { color: #fff; }

/* Responsividade */
@media (max-width: 900px) {
  .hero-tg { position: static; margin-bottom: 25px; }
  .si-grid, .dlp-grid { grid-template-columns: 1fr; }
  .podium-grid { grid-template-columns: 1fr; }
  .navlinks {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 18px;
    flex-direction: column;
    background: rgba(7, 9, 14, 0.98);
    border-bottom: 1px solid var(--border-gold);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .navlinks.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .navlinks .link { width: 100%; text-align: center; }
  .mburg { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .navlinks, .navlinks .link, .navlinks .link::after { transition: none; }
  .navlinks .link:hover, .navlinks .link:focus-visible { transform: none; }
}
