/* Adicionando variáveis CSS e melhorando o sistema de cores */
:root {
  --primary-color: #ff9d00;
  --secondary-color: #ff4d4d;
  --accent-color: #00d4ff;
  --bg-dark: #0a0a1a;
  --bg-card: rgba(20, 20, 40, 0.9);
  --text-light: #eee;
  --text-dim: #888;
  --border-glow: rgba(255, 157, 0, 0.5);
  --success-color: #00ff88;
  --danger-color: #ff4444;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Orbitron", sans-serif;
  overflow: hidden;
  position: relative;
}

/* Adicionando fundo animado com estrelas */
.stars,
.twinkling,
.twinkling-2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stars {
  background: #000
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="20" cy="20" r="0.8" fill="white" opacity="0.9"/><circle cx="80" cy="40" r="0.4" fill="white" opacity="0.7"/><circle cx="40" cy="60" r="0.6" fill="white" opacity="0.8"/><circle cx="90" cy="80" r="0.3" fill="white" opacity="0.6"/><circle cx="10" cy="90" r="0.9" fill="white" opacity="1"/><circle cx="70" cy="10" r="0.5" fill="white" opacity="0.8"/><circle cx="30" cy="30" r="0.7" fill="white" opacity="0.9"/><circle cx="60" cy="70" r="0.4" fill="white" opacity="0.7"/><circle cx="150" cy="30" r="0.6" fill="white" opacity="0.8"/><circle cx="180" cy="90" r="0.5" fill="white" opacity="0.7"/><circle cx="120" cy="150" r="0.8" fill="white" opacity="0.9"/><circle cx="160" cy="170" r="0.4" fill="white" opacity="0.6"/></svg>')
    repeat;
  background-size: 300px 300px;
  animation: move-stars 80s linear infinite;
}

.twinkling {
  background: transparent
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><circle cx="50" cy="50" r="1" fill="%23ff9d00" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" begin="0s"/></circle><circle cx="150" cy="150" r="0.8" fill="%2300d4ff" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite" begin="0.5s"/></circle><circle cx="100" cy="20" r="1.2" fill="%23ffffff" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="1.5s" repeatCount="indefinite" begin="1s"/></circle><circle cx="20" cy="120" r="0.6" fill="%23ff4d4d" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="2.5s" repeatCount="indefinite" begin="1.5s"/></circle><circle cx="300" cy="80" r="0.9" fill="%2300ff88" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="2.2s" repeatCount="indefinite" begin="0.8s"/></circle><circle cx="250" cy="200" r="1.1" fill="%23ff9d00" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="1.8s" repeatCount="indefinite" begin="2s"/></circle><circle cx="350" cy="300" r="0.7" fill="%2300d4ff" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="2.8s" repeatCount="indefinite" begin="0.3s"/></circle><circle cx="180" cy="320" r="1" fill="%23ffffff" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="2.1s" repeatCount="indefinite" begin="1.2s"/></circle></svg>')
    repeat;
  background-size: 500px 500px;
  animation: move-twinkling 120s linear infinite, twinkle-pulse 4s ease-in-out infinite;
}

.twinkling-2 {
  background: transparent
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><circle cx="75" cy="75" r="0.5" fill="%23ff9d00" opacity="0"><animate attributeName="opacity" values="0;0.8;0" dur="3.5s" repeatCount="indefinite" begin="1s"/></circle><circle cx="225" cy="225" r="0.8" fill="%2300d4ff" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite" begin="2s"/></circle><circle cx="150" cy="30" r="0.6" fill="%23ffffff" opacity="0"><animate attributeName="opacity" values="0;0.9;0" dur="2.8s" repeatCount="indefinite" begin="0.5s"/></circle><circle cx="30" cy="180" r="0.7" fill="%23ff4d4d" opacity="0"><animate attributeName="opacity" values="0;0.7;0" dur="3.2s" repeatCount="indefinite" begin="1.8s"/></circle><circle cx="270" cy="120" r="0.4" fill="%2300ff88" opacity="0"><animate attributeName="opacity" values="0;1;0" dur="2.6s" repeatCount="indefinite" begin="0.2s"/></circle></svg>')
    repeat;
  background-size: 400px 400px;
  animation: move-twinkling-2 150s linear infinite reverse, twinkle-shimmer 6s ease-in-out infinite;
}

@keyframes move-stars {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-3000px);
  }
}

@keyframes move-twinkling {
  from {
    transform: translateY(0px) translateX(0px);
  }
  to {
    transform: translateY(-4000px) translateX(-200px);
  }
}

@keyframes move-twinkling-2 {
  from {
    transform: translateY(0px) translateX(0px);
  }
  to {
    transform: translateY(-3500px) translateX(150px);
  }
}

@keyframes twinkle-pulse {
  0%,
  100% {
    opacity: 0.8;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3);
  }
}

@keyframes twinkle-shimmer {
  0%,
  100% {
    opacity: 0.6;
    filter: brightness(1) hue-rotate(0deg);
  }
  33% {
    opacity: 0.9;
    filter: brightness(1.2) hue-rotate(30deg);
  }
  66% {
    opacity: 0.7;
    filter: brightness(1.1) hue-rotate(-30deg);
  }
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Melhorando o título com efeito glitch */
.game-title {
  margin-bottom: 40px;
  animation: fadeInDown 1s ease-out;
}

.glitch-text {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color), 0 0 40px
    var(--secondary-color);
  position: relative;
  margin: 0;
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-1 0.5s infinite;
  color: var(--accent-color);
  z-index: -1;
}

.glitch-text::after {
  animation: glitch-2 0.5s infinite;
  color: var(--secondary-color);
  z-index: -2;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-top: 10px;
  opacity: 0.8;
  animation: fadeIn 2s ease-out 0.5s both;
}

@keyframes glow-pulse {
  0% {
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color);
  }
  100% {
    text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color), 0 0 40px var(--secondary-color);
  }
}

@keyframes glitch-1 {
  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(0);
  }
  15%,
  49% {
    transform: translate(-2px, 1px);
  }
}

@keyframes glitch-2 {
  0%,
  20%,
  21%,
  62%,
  63%,
  99%,
  100% {
    transform: translate(0);
  }
  21%,
  62% {
    transform: translate(2px, -1px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#login-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Melhorando o container de autenticação */
.auth-container {
  background: var(--bg-card);
  padding: 0;
  border-radius: 20px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 30px var(--border-glow), inset 0 0 30px rgba(255, 157, 0, 0.1);
  width: 380px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 20px;
  text-align: center;
  color: #000;
}

.auth-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.auth-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  color: var(--primary-color);
  background: rgba(255, 157, 0, 0.1);
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
  padding: 30px;
}

.tab-content.active {
  display: block;
}

/* Melhorando os inputs com efeitos modernos */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: calc(100% - 24px);
  padding: 15px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--border-glow);
  background: rgba(0, 0, 0, 0.7);
}

.input-group input::placeholder {
  color: var(--text-dim);
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.input-group input:focus + .input-highlight {
  width: 100%;
}

/* Melhorando os botões com efeitos avançados */
.primary-btn,
.secondary-btn {
  position: relative;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #000;
  width: 100%;
}

.secondary-btn {
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.primary-btn:hover .btn-glow {
  left: 100%;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 157, 0, 0.4);
}

.secondary-btn:hover {
  background: rgba(255, 157, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--border-glow);
}

.message-box {
  margin-top: 20px;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  min-height: 20px;
  transition: all 0.3s ease;
}

.message-box.error {
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
}

.message-box.success {
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.hidden {
  display: none !important;
}

/* Melhorando a interface do jogo */
.game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  animation: slideInUp 0.8s ease-out;
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--bg-card);
  font-size: 1.3rem;
  font-weight: bold;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  border: 2px solid var(--primary-color);
  border-bottom: none;
  border-radius: 15px 15px 0 0;
  backdrop-filter: blur(10px);
}

/* Adicionando estilos para o novo HUD do jogo */
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--bg-card);
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  border: 2px solid var(--primary-color);
  border-bottom: none;
  border-radius: 15px 15px 0 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px var(--border-glow);
}

.hud-left,
.hud-right {
  display: flex;
  gap: 30px;
  align-items: center;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hud-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 1px;
}

.hud-value {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
  text-shadow: 0 0 10px var(--primary-color);
}

.lives-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.lives-hearts {
  display: flex;
  gap: 3px;
}

.heart {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.heart.lost {
  opacity: 0.3;
  filter: grayscale(100%);
}

#logoutBtn {
  background: linear-gradient(45deg, var(--danger-color), #cc0000);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#logoutBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

#gameCanvas {
  background: #111;
  display: block;
  border: 2px solid var(--primary-color);
  border-radius: 0 0 15px 15px;
  width: 800px;
  height: 600px;
  box-shadow: 0 0 30px var(--border-glow), inset 0 0 30px rgba(255, 157, 0, 0.1);
}

/* Adicionando estilos para o container do jogo */
.game-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-instructions {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--primary-color);
  backdrop-filter: blur(10px);
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.instruction-item:last-child {
  margin-bottom: 0;
}

.key {
  background: var(--primary-color);
  color: #000;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.8rem;
  min-width: 60px;
  text-align: center;
}

.action {
  color: var(--text-light);
}

/* Melhorando o ranking */
.ranking {
  max-width: 400px;
  width: 380px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 30px var(--border-glow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.ranking-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 20px;
  text-align: center;
  color: #000;
}

.ranking-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.ranking-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.ranking-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 5px;
}

.ranking-content {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.ranking-content ol {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.ranking-content li {
  padding: 12px 15px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  counter-increment: ranking-counter;
}

.ranking-content li::before {
  content: counter(ranking-counter);
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: #000;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.ranking-content {
  counter-reset: ranking-counter;
}

.ranking-content li:hover {
  background: rgba(255, 157, 0, 0.1);
  transform: translateX(5px);
}

.ranking-content li:first-child {
  border-left-color: gold;
}

.ranking-content li:first-child::before {
  background: gold;
}

.ranking-content li:nth-child(2) {
  border-left-color: silver;
}

.ranking-content li:nth-child(2)::before {
  background: silver;
}

.ranking-content li:nth-child(3) {
  border-left-color: #cd7f32;
}

.ranking-content li:nth-child(3)::before {
  background: #cd7f32;
}

#playAgainBtn {
  margin: 20px;
  display: none;
}

/* Melhorando a tela de game over */
#gameOverScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.game-over-box {
  background: var(--bg-card);
  padding: 50px;
  border-radius: 25px;
  border: 3px solid var(--secondary-color);
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 77, 77, 0.6), inset 0 0 30px rgba(255, 77, 77, 0.1);
  animation: gameOverAppear 0.8s ease-out;
  backdrop-filter: blur(10px);
  max-width: 500px;
}

.game-over-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 1s ease-in-out infinite alternate;
}

.game-over-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin: 0 0 20px 0;
  font-weight: 900;
  text-shadow: 0 0 20px var(--secondary-color);
}

.game-over-box p {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.score-display {
  margin: 30px 0;
}

#finalScore {
  font-size: 4rem;
  color: var(--primary-color);
  font-weight: 900;
  display: block;
  text-shadow: 0 0 30px var(--primary-color);
  animation: scoreGlow 1.5s ease-in-out infinite alternate;
}

.score-label {
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 10px;
  letter-spacing: 3px;
}

.game-over-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.game-over-buttons button {
  flex: 1;
}

@keyframes gameOverAppear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes scoreGlow {
  from {
    text-shadow: 0 0 20px var(--primary-color);
  }
  to {
    text-shadow: 0 0 40px var(--primary-color), 0 0 60px var(--primary-color);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Adicionando responsividade melhorada */
@media (max-width: 1200px) {
  #login-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .glitch-text {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  .auth-container,
  .ranking {
    width: 90vw;
    max-width: 400px;
  }

  #gameCanvas {
    width: 90vw;
    max-width: 800px;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hud {
    width: 90vw;
    max-width: 800px;
  }

  .game-hud {
    width: 90vw;
    max-width: 800px;
  }

  .hud-left,
  .hud-right {
    gap: 15px;
  }

  .hud-value {
    font-size: 1.2rem;
  }

  .game-instructions {
    position: static;
    margin-top: 15px;
    width: 90vw;
    max-width: 300px;
  }

  .power-up-legend {
    gap: 15px;
  }

  .legend-item {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .hud-left,
  .hud-right {
    flex-direction: column;
    gap: 10px;
  }

  .game-hud {
    padding: 10px 15px;
  }

  .power-up-legend {
    flex-direction: column;
    gap: 10px;
  }
}

/* Adicionando estilos para a legenda dos power-ups */
.power-up-info {
  margin-top: 20px;
  background: var(--bg-card);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--primary-color);
  backdrop-filter: blur(10px);
}

.power-up-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.power-up-icon {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: #000;
}

.power-up-icon.life {
  background: #2ed573;
}

.power-up-icon.weapon {
  background: #ffa502;
}

.power-up-icon.shield {
  background: #3742fa;
}

/* --- CORREÇÃO DE LAYOUT PARA O JOGO E O PAINEL LATERAL --- */

/* 1. Garante que a área principal centralize tudo */
.main-game-area {
  display: flex;
  justify-content: center; /* Centraliza o jogo e o painel na tela */
  align-items: flex-start; /* Alinha os itens no topo */
  gap: 40px; /* Aumenta o espaço entre o jogo e o painel */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* --- REGRA CORRETA E DEFINITIVA PARA O PAINEL LATERAL --- */
/* --- CORREÇÃO FINAL DE LAYOUT PARA O MODO DE JOGO --- */

/* 1. Cria uma classe nova para ser adicionada ao container principal durante o jogo */
.container.in-game {
  justify-content: flex-start; /* Alinha tudo ao topo */
  padding-top: 20px; /* Adiciona um respiro no topo */
}

/* 2. Garante que a área do jogo se comporte corretamente */
.main-game-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 3. Simplifica a regra do painel lateral, removendo o 'position: fixed' */
.enemy-info-panel {
  width: 280px;
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px var(--border-glow);
  flex-shrink: 0; /* Impede que o painel encolha */
  max-height: 80vh;
  overflow-y: auto;
  /* Remova qualquer 'position' ou 'transform' daqui */
}

/* 4. Esconde o painel em telas menores */
@media (max-width: 1200px) {
  .main-game-area {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .enemy-info-panel {
    width: 100%;
    max-width: 800px;
    max-height: 300px;
  }

  #login-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .glitch-text {
    font-size: 3rem;
  }
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
/* Adicionar ao final do arquivo style.css */

/* Botão Sobre Nós no canto inferior direito */
.about-us-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(45deg, var(--accent-color), #0099cc);
  color: #000;
  padding: 15px 25px;
  border: none;
  border-radius: 50px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: aboutBtnFloat 3s ease-in-out infinite;
}

.about-us-btn::before {
  content: "👥";
  font-size: 1.2rem;
}

.about-us-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.6);
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

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

/* Responsividade para o botão */
@media (max-width: 768px) {
  .about-us-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .about-us-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 18px;
    font-size: 0.8rem;
  }
  
  .about-us-btn::before {
    font-size: 1rem;
  }
}
