/* =========================================
   ESTILOS GLOBAIS - LORION ORIGIN
   ========================================= */
:root {
  --bg: #050608;
  --bg-soft: #0b1018;
  --card: #101722;
  --card-2: #0d121a;
  --gold: #d8a72d;
  --gold-light: #f1c75b;
  --blue: #0c3b78;
  --text: #f7f3e7;
  --muted: #b7b1a2;
  --line: rgba(216, 167, 45, .28);
  --shadow: 0 22px 70px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 75% 10%, rgba(216,167,45,.16), transparent 24rem),
    radial-gradient(circle at 15% 20%, rgba(12,59,120,.28), transparent 22rem),
    linear-gradient(180deg, #020304 0%, #07101b 45%, #050608 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

/* =========================================
   CABEÇALHO (HEADER)
   ========================================= */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(3, 5, 8, .66);
  border-bottom: 1px solid rgba(216,167,45,.16);
}

.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(216,167,45,.28)); }
.brand strong { display:block; font-family: Georgia, 'Times New Roman', serif; letter-spacing: .12em; color: var(--gold-light); font-size: 1.35rem; }
.brand span { display:block; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

/* =========================================
   MENU PRINCIPAL E LINKS
========================================= */
.menu { 
    display: flex; 
    gap: 16px; /* Reduzido de 26px para acomodar palavras longas */ 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.76rem; /* Fonte levemente reduzida (era 0.86rem) */ 
    letter-spacing: 0.04em; 
    text-transform: uppercase; 
} 

.menu a { 
    color: #efe9d7; 
    opacity: .9; 
    position: relative; 
    white-space: nowrap; /* 🟢 FORÇA O TEXTO A NÃO QUEBRAR DE LINHA */
} 

.menu a::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: -8px; 
    width: 0; 
    height: 2px; 
    background: var(--gold); 
    transition: .25s; 
} 

.menu a:hover::after { 
    width: 100%; 
}

.mobile-toggle { display: none; border: 1px solid var(--line); background: rgba(216,167,45,.08); color: var(--gold-light); padding: 10px 12px; border-radius: 12px; }

/* =========================================
   BOTÕES GLOBAIS
   ========================================= */
.btn { display: inline-flex; align-items: center; justify-content:center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; font-size: .84rem; transition: .25s ease; cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, #f2c35b, #bf7f17); color: #140d02; box-shadow: 0 18px 38px rgba(216,167,45,.22); }
.btn.secondary { border: 1px solid var(--line); color: var(--gold-light); background: rgba(255,255,255,.02); }
.btn:hover { transform: translateY(-3px); }

/* =========================================
   PÁGINA PRINCIPAL (INDEX)
   ========================================= */
.hero { min-height: 100vh; display: grid; align-items: center; padding: 118px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 50px; align-items: center; }
.eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 800; margin-bottom: 18px; }

h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.1rem, 8vw, 6.5rem); line-height: .92; letter-spacing: .04em; text-transform: uppercase; }
h1 span { color: var(--gold-light); display: block; }

.hero p { color: #ddd5c4; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.8; margin: 28px 0 34px; max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card { position: relative; display: grid; place-items: center; }
.hero-logo { width: min(520px, 92vw); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 35px 65px rgba(0,0,0,.55)); animation: float 4.5s ease-in-out infinite; }
.orb { position:absolute; width: 430px; height: 430px; border-radius:50%; background: radial-gradient(circle, rgba(216,167,45,.18), transparent 65%); filter: blur(12px); z-index:-1; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

section { padding: 92px 0; border-top: 1px solid rgba(216,167,45,.10); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-family: Georgia, 'Times New Roman', serif; color: var(--gold-light); font-size: clamp(2rem, 4vw, 3.6rem); text-transform: uppercase; letter-spacing: .06em; }
.section-head p { color: var(--muted); max-width: 720px; margin: 16px auto 0; line-height: 1.8; font-size: 1.05rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.panel { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid rgba(216,167,45,.16); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.panel h3 { color: var(--gold-light); font-size: 1.5rem; margin-bottom: 14px; }
.panel p { color: #d7cfbf; line-height: 1.85; }

.about-visual { display: grid; place-items: center; min-height: 360px; }
.about-visual img { width: min(360px, 100%); object-fit: contain; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { background: rgba(16,23,34,.78); border: 1px solid rgba(216,167,45,.14); border-radius: 22px; padding: 26px; transition: .25s; }
.value:hover { transform: translateY(-6px); border-color: rgba(216,167,45,.42); }
.icon { font-size: 2rem; margin-bottom: 18px; }
.value h3 { color: var(--gold-light); margin-bottom: 10px; }
.value p { color: var(--muted); line-height: 1.65; }

.games-empty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-card { min-height: 300px; border: 1px dashed rgba(216,167,45,.32); border-radius: 26px; background: linear-gradient(180deg, rgba(13,18,26,.9), rgba(5,6,8,.85)); display: grid; place-items: center; text-align:center; padding: 28px; }
.game-card span { display:block; font-size: 2.8rem; }
.game-card h3 { margin-top: 0.5em; font-family: Georgia, 'Times New Roman', serif; color: var(--gold-light); font-size: 1rem; margin-bottom: 6px; text-transform: uppercase; }
.game-card p { color: var(--muted); margin-top: 10px; }

.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.social { padding: 24px; border-radius: 22px; background: rgba(16,23,34,.82); border: 1px solid rgba(216,167,45,.16); display:flex; align-items:center; justify-content:space-between; gap: 16px; transition:.25s; }
.social:hover { transform: translateY(-4px); border-color: rgba(216,167,45,.45); background: rgba(216,167,45,.08); }
.social strong { color: var(--text); }
.social small { display:block; color: var(--muted); margin-top: 4px; }
.social b { color: var(--gold-light); font-size: 1.4rem; }

.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mail { background: rgba(16,23,34,.82); border: 1px solid rgba(216,167,45,.18); border-radius: 24px; padding: 28px; }
.mail span { color: var(--muted); display:block; margin-bottom: 10px; }
.mail a { color: var(--gold-light); font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 900; word-break: break-word; }

.reveal { opacity: 0; transform: translateY(22px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   PÁGINA DO JOGO (PROTOCOLO ANTIVÍRUS)
   ========================================= */
.game-section { padding: 140px 0 60px; border-top: none; }
.game-panel { 
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); 
    border: 1px solid rgba(216,167,45,.16); 
    border-radius: 28px; 
    padding: 40px; 
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}
.back-link { display: inline-block; color: var(--gold); margin-bottom: 20px; font-weight: bold; font-size: 0.9rem;}
.back-link:hover { color: var(--gold-light); }

.game-panel h2 { font-family: Georgia, 'Times New Roman', serif; color: var(--gold-light); font-size: 2.2rem; margin-bottom: 10px; text-transform: uppercase;}

.status-badge { display: inline-block; background: rgba(216,167,45,.15); color: var(--gold-light); padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(216,167,45,.4); font-size: 0.85rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; }
.status-badge-change {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  width: 6em;
  padding-left: 1px;
  padding-right: 1px;
}

.play-badge {
    background: rgba(0, 255, 170, 0.1) !important;
    color: #00ffaa !important;
    border-color: #00ffaa !important;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
}

.game-panel img { width: 100%; border-radius: 14px; border: 1px solid rgba(216,167,45,.3); margin-bottom: 25px; }
.game-panel h3 { color: var(--gold-light); font-size: 1.3rem; margin-top: 25px; margin-bottom: 15px; }
.game-panel p, .game-panel ul { color: #d7cfbf; line-height: 1.85; margin-bottom: 15px; }
.game-panel ul { padding-left: 20px; list-style-type: square; }
.game-panel ul span { color: #d7cfbf; }

.terminal-box { background: rgba(5,6,8,.85); border-left: 3px solid var(--gold); padding: 15px; font-family: monospace; color: var(--gold-light); margin-top: 25px; border-radius: 4px; }
.btn-container { text-align: center; margin-top: 40px; }

/* =========================================
   RODAPÉ (FOOTER)
   ========================================= */
footer { padding: 44px 0; background: #030405; border-top: 1px solid rgba(216,167,45,.16); margin-top: 0px;}
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap: 22px; color: var(--muted); }
.footer-brand { display:flex; align-items:center; gap: 12px; }
.footer-brand img { width: 50px; height: 50px; object-fit: contain; }
.footer-brand strong { color: var(--gold-light); display:block; }

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 900px) {
  .menu { display:none; position:absolute; top: 78px; left: 16px; right:16px; padding: 22px; border:1px solid var(--line); border-radius: 20px; background: rgba(3,5,8,.96); flex-direction:column; align-items:flex-start; }
  .menu.open { display:flex; }
  .mobile-toggle { display:block; }
  .hero-grid, .about, .contact-box { grid-template-columns: 1fr; }
  .hero { text-align:center; }
  .hero p { margin-left:auto; margin-right:auto; }
  .actions { justify-content:center; }
  .values, .social-grid, .games-empty { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align:center; }
  .game-panel { padding: 25px; }
}

/* =========================================
   BOTÃO DE LOGIN NA NAVEGAÇÃO
   ========================================= */
.nav-login-btn { 
    padding: 8px 16px; /* Levemente reduzido nas laterais */
    border-radius: 20px; 
    background: rgba(216, 167, 45, 0.12); 
    border: 1px solid var(--gold); 
    color: var(--gold-light) !important; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    white-space: nowrap; /* 🟢 IMPEDE "ÁREA DEL JUGADOR" DE QUEBRAR */
}

.nav-login-btn:hover, .nav-login-btn.active { 
    background: var(--gold); 
    color: #030508 !important; 
    box-shadow: 0 0 15px rgba(216, 167, 45, 0.4); 
}

/* =========================================
   PÁGINA DE LOGIN
   ========================================= */
.login-section {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px 20px;
}

.login-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 16px;
}

.login-header h2 {
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.login-header p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(216, 167, 45, 0.25);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: var(--gold-light);
}

.btn-full {
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}

.login-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 167, 45, 0.12);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-link-highlight {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}

.login-link-highlight:hover {
  text-decoration: underline;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* =========================================
   MENSAGENS DO FORMULÁRIO DE LOGIN
   ========================================= */
.login-message {
  text-align: center;
  font-size: 0.88rem;
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  display: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.login-message.error {
  display: block;
  background: rgba(255, 74, 74, 0.1);
  color: #ff4a4a;
  border: 1px solid rgba(255, 74, 74, 0.25);
}

.login-message.success {
  display: block;
  background: rgba(74, 255, 138, 0.08);
  color: #4aff8a;
  border: 1px solid rgba(74, 255, 138, 0.25);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================
   PAINEL DO JOGADOR (DASHBOARD)
   ========================================= */
.dashboard-section {
  padding: 120px 20px 60px 20px;
  min-height: calc(100vh - 140px);
}

.dashboard-header {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-avatar {
  width: 70px;
  height: 70px;
  background: var(--bg-soft);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(216, 167, 45, 0.2);
}

.user-info h1 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 4px;
}

.user-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-online {
  color: #4aff8a;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(74, 255, 138, 0.4);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.dashboard-card {
  background: var(--card-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
}

.dashboard-card h3 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* Lista de Jogos no Painel */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.game-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.game-details {
  flex-grow: 1;
}

.game-details h4 {
  font-size: 1rem;
  color: var(--text);
}

.game-details p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.small-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Estatísticas */
.stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  background: var(--bg);
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.stats-list li span {
  color: var(--muted);
}

.stats-list li strong {
  color: var(--gold-light);
}

/* Botão de Logout */
.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 74, 74, 0.4);
  color: #ff4a4a !important;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(255, 74, 74, 0.1);
  box-shadow: none;
  border-color: #ff4a4a;
}

.margin-top-1em {
    margin-top: 1em;
}

/* =========================================
   PAINEL DE EVOLUÇÃO CIBERNÉTICO (PROTOCOLO: ANTIVÍRUS)
   ========================================= */
.evolution-card {
  background: #030509 !important; /* Fundo bem escuro */
  border: 1px solid rgba(0, 243, 255, 0.1) !important;
  font-family: monospace, Courier, 'Courier New';
  padding: 25px 30px !important;
}

/* Header & Barra de Progresso */
.evo-header { margin-bottom: 25px; }
.evo-title-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: bold; }
.evo-title { color: #00f3ff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em;}
.evo-percent { color: #00f3ff; font-size: 1.05rem; }

.evo-bar-bg {
  width: 100%;
  height: 12px;
  background: transparent;
  border: 1px solid #00f3ff;
  border-radius: 4px;
  padding: 1px;
}
.evo-bar-fill {
  height: 100%;
  background: #00f3ff;
  box-shadow: 0 0 10px #00f3ff;
  border-radius: 2px;
  transition: width 1s ease-in-out;
}

/* Grid dos Painéis */
.evo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Caixas dos Modos */
.evo-box {
  border-radius: 8px;
  padding: 20px;
  position: relative;
  min-height: 280px;
}

/* Modo Missão (Esquerda) */
.evo-mission {
  border: 1px solid #00f3ff;
  background: rgba(0, 243, 255, 0.03);
}

.evo-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 243, 255, 0.3);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.evo-box-title {
  color: #00f3ff;
  font-size: 1.1rem;
  font-weight: bold;
}
.evo-level-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #00f3ff;
}

/* Lista de Upgrades */
.evo-upgrades {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.evo-upgrades li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #e0e0e0;
}
.evo-upgrades li strong { color: #00f3ff; }

/* Modo Jogo Livre (Direita - Bloqueado/Desbloqueado) */
.evo-freeplay {
  border: 1px solid rgba(216, 167, 45, 0.6);
  background: rgba(216, 167, 45, 0.03);
}
.evo-freeplay .evo-box-header { border-bottom-color: rgba(216, 167, 45, 0.3); }
.evo-freeplay .evo-box-title { color: #d8a72d; }
.evo-freeplay .evo-level-badge { color: rgba(216, 167, 45, 0.5); }

/* Cadeado de Acesso Negado */
.evo-freeplay.locked .evo-freeplay-content {
  position: absolute;
  top: 70px; left: 15px; right: 15px; bottom: 15px;
  border: 1px dashed rgba(216, 167, 45, 0.4);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(5, 6, 8, 0.85); /* Fundo escuro para destacar o cadeado */
  backdrop-filter: blur(2px);
}

.evo-lock-icon { font-size: 2.2rem; margin-bottom: 10px; filter: hue-rotate(300deg) saturate(3) brightness(1.5); /* Tom avermelhado-neon */ }
.evo-lock-title { color: #ffeb3b; font-weight: bold; font-size: 1.1rem; margin-bottom: 8px; text-shadow: 0 0 8px rgba(255, 235, 59, 0.5); }
.evo-lock-text { color: #a0a0a0; font-size: 0.85rem; line-height: 1.5; }

/* Responsividade do Painel de Evolução */
@media (max-width: 768px) {
  .evo-grid { grid-template-columns: 1fr; }
}

/* =========================================
   CONECTOR DO PAINEL DE EVOLUÇÃO AO JOGO
   ========================================= */
.evolution-card.attached-panel {
  margin-top: 20px;
  border-radius: 12px;
  position: relative;
  /* Reduz levemente o padding para caber perfeitamente dentro do card principal */
  padding: 20px !important; 
}

/* Ajuste na Grid interna do painel para caber num espaço mais estreito */
@media (max-width: 1100px) {
  .evo-grid { grid-template-columns: 1fr; }
}

/* =========================================
   PAINEL DE EVOLUÇÃO AO JOGO (INTERNO)
   ========================================= */
.evolution-card.attached-panel {
  flex: 0 0 100%; /* Força o painel a ocupar 100% da linha do flexbox */
  width: 100%; 
  box-sizing: border-box; /* Garante que o espaçamento interno não quebre a tela */
  margin-top: 15px; 
  border-radius: 8px;
  position: relative;
  padding: 20px !important;
  background: #020305 !important; 
  border: 1px solid rgba(0, 243, 255, 0.15) !important;
}

/* =========================================
   TELA DE CARREGAMENTO GLOBAL (OVERLAY)
   ========================================= */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #020305; /* Fundo extremamente escuro */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease; /* Transição suave para sumir */
}

.cyber-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 4px solid rgba(0, 243, 255, 0.1);
  border-top-color: #00f3ff;
  border-right-color: rgba(0, 243, 255, 0.5);
  border-radius: 50%;
  animation: spinCyber 1s linear infinite;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

@keyframes spinCyber {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================
   ÍCONES (SVG) E ANIMAÇÃO DOS BITS (CÓDIGO ORIGINAL DO JOGO)
   ========================================= */

/* Estilo Base da Lista (Corrigindo espaçamento para alinhar com os SVGs) */
.evo-upgrades li span {
  color: #e0e0e0;
}
.evo-upgrades li svg {
  filter: drop-shadow(0 0 5px currentColor); /* Adiciona o brilho neon natural da cor SVG */
}

/* Container dos Bits */
.bit-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 243, 255, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 243, 255, 0.05);
}
.bit-container small { font-size: 0.85rem; font-weight: bold; }

/* Animação dos Bits (Fita Dupla) - Código Original do Jogo */
.icon-bit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 14px;
  height: 14px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  opacity: 0.8;
}

.icon-bit-rain {
  position: absolute;
  left: 0;
  color: currentColor;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap; 
  animation: bitScrollRightToLeft 1.5s linear infinite; 
}

@keyframes bitScrollRightToLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* Animação de Alerta do Cadeado */
.profile-lock-icon {
  animation: lockPulse 1.5s infinite alternate;
}

@keyframes lockPulse {
  0% { filter: drop-shadow(0 0 2px currentColor); opacity: 0.7; transform: scale(0.95); }
  100% { filter: drop-shadow(0 0 12px currentColor); opacity: 1; transform: scale(1); }
}

/* =========================================
   ANIMAÇÃO DE RECOLHIMENTO DO PAINEL
   ========================================= */
#evolutionPanel {
  max-height: 2000px; 
  opacity: 1;
  overflow: hidden;
  margin-top: 20px; 
  /* Adicionamos margens e paddings na transição para suavizar tudo */
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.5s ease, padding 0.5s ease;
}

#evolutionPanel.minimizado {
  max-height: 0;
  opacity: 0;
  
  /* Zera completamente todos os espaçamentos fantasmas */
  margin-top: 0 !important ;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: none;
  
  pointer-events: none; 
}

/* ==========================================================
   MODAIS INSTITUCIONAIS (PADRÃO LORION ORIGIN)
   ========================================================== */
.footer-links-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.footer-recover-link {
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-recover-link:hover {
  color: #d8a72d; /* Dourado padrão do site */
}

/* Fundo Escuro do Modal */
.site-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 4, 5, 0.9);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.site-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Caixa do Modal */
.site-modal-box {
  background: #0a0a0a;
  border: 1px solid rgba(216, 167, 45, 0.3);
  border-radius: 8px;
  padding: 30px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.site-modal-overlay.active .site-modal-box {
  transform: translateY(0);
}

.site-modal-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #fff;
}

.site-modal-box p {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 25px;
  line-height: 1.4;
}

/* Inputs do Modal */
.site-modal-box .input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 10px;
}

.site-modal-box .input-group label {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 6px;
}

.site-modal-box .input-group input {
  background: #151515;
  border: 1px solid #333;
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.site-modal-box .input-group input:focus {
  border-color: #d8a72d;
  outline: none;
}

/* Botões e Mensagens */
.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.modal-actions .btn {
  width: 100%;
  margin: 0;
  padding: 12px;
}

.status-msg {
  font-size: 0.85rem;
  min-height: 18px;
  margin-top: 5px;
  font-weight: 500;
}

.btn_jogar {
  display: inline-block; 
  background-color: rgba(0, 255, 170, 0.1); 
  color: #00ffaa; 
  border: 1px solid #00ffaa; 
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.2), inset 0 0 10px rgba(0, 255, 170, 0.1); 
  padding: 12px 24px; 
  border-radius: 4px; 
  margin-bottom: 2em; 
  font-weight: bold; 
  font-size: 1rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  text-decoration: none;
}

/* =========================================
   CARROSSEL DE IMAGENS - LORION ORIGIN
========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Evita que a imagem fique gigante em telas grandes */
    margin: 1em auto 0 auto;
    overflow: hidden;
    border-radius: 8px; /* Arredondamento cibernético leve */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    max-height: 70vh; /* Limita a altura máxima a 70% da visão da tela */
    object-fit: contain; /* Encaixa a imagem vertical inteira sem cortar o topo ou o fundo */
    display: block;
    background-color: #050608; /* Preenche as laterais vazias com um fundo escuro elegante */
}

/* Botões de passar imagem */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 10, 10, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 50%; /* Botões redondos */
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--gold, #d4af37); /* Usa o Dourado/Amarelo caso tenha variável */
    color: #000;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Bolinhas indicadoras embaixo */
.carousel-nav {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.current-slide {
    background: var(--gold, #d4af37); /* Destaque para a bolinha ativa */
    transform: scale(1.2);
}

.dashboard-header {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  
  /* Novas propriedades Flexbox para separar os cantos */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Garante que o layout não quebre em celulares */
  gap: 20px;
}

/* =========================================
   BANDEIRAS (IDIOMAS)
   ========================================= */
.flag-icon { 
    width: 22px; 
    height: 14px; 
    position: relative; /* Isso impede que a bandeira vaze para a tela toda */
    overflow: hidden; 
    display: inline-block; 
    border-radius: 2px; 
    vertical-align: middle; 
    opacity: 0.95; 
}

/* 🇧🇷 BANDEIRA DO BRASIL */
.flag-br { background: #009c3b; }
.flag-br::before { content: ''; position: absolute; top: 10%; left: 10%; right: 10%; bottom: 10%; background: #ffdf00; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.flag-br::after { content: ''; position: absolute; top: 28%; left: 35%; width: 30%; height: 44%; background: #002776; border-radius: 50%; }

/* 🇬🇧 BANDEIRA DO REINO UNIDO */
.flag-en { background: linear-gradient(0deg, transparent 40%, #c8102e 40%, #c8102e 60%, transparent 60%), linear-gradient(90deg, transparent 43%, #c8102e 43%, #c8102e 57%, transparent 57%), linear-gradient(0deg, transparent 33%, #fff 33%, #fff 67%, transparent 67%), linear-gradient(90deg, transparent 35%, #fff 35%, #fff 65%, transparent 65%), linear-gradient(33deg, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%), linear-gradient(-33deg, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%), linear-gradient(33deg, transparent 40%, #fff 40%, #fff 60%, transparent 60%), linear-gradient(-33deg, transparent 40%, #fff 40%, #fff 60%, transparent 60%), #012169; }

/* 🇪🇸 BANDEIRA DA ESPANHA */
.flag-es { background: linear-gradient(180deg, #c60d1f 25%, #ffc400 25%, #ffc400 75%, #c60d1f 75%); }
.flag-es::before { content: ''; position: absolute; top: 35%; left: 20%; width: 15%; height: 30%; background: #c60d1f; border-radius: 1px; }

/* =========================================
   ÍCONES DE PLATAFORMA DOS JOGOS
   ========================================= */
.game-platforms {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: -30px;
  margin-bottom: -15px;   
}

.platform-icon {
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: help; /* Mostra uma interrogação no mouse para ver o "title" */
}

.platform-icon:hover {
  color: #00f3ff;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.6));
}

.span-icon {
  margin-bottom: -8px;
  margin-top: -26px;
}