/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', monospace;
  background: #050519;
  color: #fff;
  overflow-y: auto;
  user-select: none;
}

/* Canvas de fundo */
#stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(135deg, #050519 0%, #0a0a2e 50%, #16213e 100%);
}

/* Canvas principal do jogo */
#game-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Tela de Game Over */
.game-over {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.5s ease-in;
}

.game-over-title {
  font-size: clamp(24px, 5vw, 48px);
  color: #ff4757;
  text-shadow: 0 0 20px #ff4757;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.game-over-subtitle {
  font-size: clamp(12px, 2.5vw, 16px);
  color: #ffa502;
  margin-bottom: 30px;
  text-align: center;
}

/* Interface do jogo */
.score-ui {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  font-size: clamp(12px, 2.5vw, 16px);
}

/* Removido efeito de borda animada */

.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 20px;
  min-width: 120px;
  text-align: center;
}

.score-item:not(:last-child) {
  border-right: 1px solid #555;
}

.score-label {
  color: #aaa;
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-value {
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
}

/* Efeito especial para high score */
.score-item:last-child .score-value {
  color: #ffd700;
}

/* Container do placar principal */
.game-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #333;
  border-radius: 8px;
  padding: 15px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 800px;
}

/* Informações do Jogador integradas - Layout Horizontal */
.player-info {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px 8px;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.player-icon {
  font-size: 12px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.player-details {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.player-name {
  color: #fff;
  font-weight: bold;
  font-size: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

.player-status {
  color: #4ade80;
  font-size: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  animation: pulse 2s infinite;
  line-height: 1;
}

.player-stats {
  display: flex;
  gap: 4px;
  flex: 1;
}

.player-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  padding: 0px 1px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  min-width: 24px;
  flex: 1;
  height: 20px;
}

.player-stats .stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.stat-icon {
  font-size: 4px;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

.stat-label {
  color: #aaa;
  font-size: 1px;
  text-transform: uppercase;
  letter-spacing: 0px;
  text-align: center;
  line-height: 1;
}

.stat-value {
  color: #fff;
  font-weight: bold;
  font-size: 1px;
  text-align: center;
  min-height: 4px;
  line-height: 1;
}

/* Cores especiais para diferentes stats */
.stat-value.accuracy {
  color: #10b981;
}

.stat-value.combo {
  color: #f59e0b;
}

.stat-value.kills {
  color: #ef4444;
}

.stat-value.time {
  color: #3b82f6;
}

.stat-value.bonuses {
  color: #8b5cf6;
}

.stat-value.status {
  color: #06b6d4;
}

/* Efeito especial para combo alto */
.stat-value.combo.high-combo {
  color: #ff6b6b;
  animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #ff6b6b;
  }
  to {
    text-shadow: 0 0 10px #ff6b6b, 0 0 15px #ff6b6b;
  }
}

/* Estilos específicos para páginas com scroll */
body.shop-page,
body.admin-page {
  min-height: 100vh;
  overflow-y: auto;
  padding-bottom: 50px;
}

/* Responsividade */
@media (max-width: 768px) {
  .score-ui {
    width: 95%;
    font-size: clamp(10px, 3vw, 14px);
    gap: 8px;
  }
  
  .game-stats {
    padding: 10px 15px;
  }
  
  .score-item {
    padding: 0 10px;
    min-width: 80px;
  }
  
  /* Informações do jogador em tablets */
  .player-info {
    padding: 6px 10px;
    height: 120px;
    gap: 8px;
  }
  
  .player-stats {
    gap: 6px;
  }
  
  .player-stats .stat-item {
    padding: 3px 4px;
    min-width: 40px;
  }
  
  .stat-icon {
    font-size: 11px;
  }
  
  .stat-label {
    font-size: 6px;
  }
  
  .stat-value {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .score-ui {
    width: 98%;
    gap: 6px;
  }
  
  .game-stats {
    padding: 8px 12px;
  }
  
  .score-item {
    padding: 0 8px;
    min-width: 60px;
  }
  
  /* Informações do jogador em mobile */
  .player-info {
    padding: 6px 8px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .player-header {
    gap: 6px;
  }
  
  .player-icon {
    font-size: 12px;
  }
  
  .player-name {
    font-size: 9px;
  }
  
  .player-status {
    font-size: 6px;
  }
  
  .player-stats {
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .player-stats .stat-item {
    padding: 3px 2px;
    min-width: 35px;
  }
  
  .stat-icon {
    font-size: 10px;
  }
  
  .stat-label {
    font-size: 6px;
  }
  
  .stat-value {
    font-size: 7px;
  }
}

/* Tela inicial */
.start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 50;
  background: rgba(5, 5, 25, 0.95);
  padding: 20px;
  box-sizing: border-box;
}

/* Container principal do jogo */
.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Título principal */
.title-container {
  position: relative;
  margin-bottom: 30px;
  text-align: center;
}

.main-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.title-word {
  display: block;
  text-align: center;
  animation: glow 2s ease-in-out infinite alternate;
}

.space-word {
  color: #00ff88;
  text-shadow: 0 0 30px #00ff88, 0 0 60px #00ff88;
  margin-bottom: 10px;
}

.invaders-word {
  color: #ff4757;
  text-shadow: 0 0 30px #ff4757, 0 0 60px #ff4757;
}

.title-scanlines,
.title-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.game-title {
  font-size: clamp(32px, 8vw, 64px);
  color: #00ff88;
  text-shadow: 0 0 30px #00ff88;
  margin-bottom: 20px;
  animation: glow 2s ease-in-out infinite alternate;
  text-align: center;
}

.game-subtitle {
  font-size: clamp(12px, 3vw, 18px);
  color: #ffa502;
  margin-bottom: 30px;
  text-align: center;
}

/* Invasor animado */
.animated-invader {
  position: relative;
  margin: 40px 0;
  animation: float 3s ease-in-out infinite;
}

.invader-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invader-main {
  position: relative;
  z-index: 2;
}

.invader-sprite {
  font-size: 48px;
  animation: invaderPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px #ff4757);
}

.invader-eyes {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
  animation: blink 3s infinite;
}

.invader-beam {
  width: 4px;
  height: 60px;
  background: linear-gradient(to bottom, #ff4757, transparent);
  margin: 10px auto;
  animation: beam 2s ease-in-out infinite;
  box-shadow: 0 0 10px #ff4757;
}

.invader-shadow {
  width: 60px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(255, 71, 87, 0.3), transparent);
  border-radius: 50%;
  animation: shadowPulse 3s ease-in-out infinite;
}

/* Botões */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
  align-items: center;
  width: 100%;
  max-width: 400px;
  justify-content: center;
}

.button-play,
.button-view-ranking,
.button-restart {
  padding: 15px 30px;
  font-family: 'Press Start 2P', monospace;
  width: 100%;
  max-width: 300px;
  height: 50px;
  box-sizing: border-box;
  font-size: clamp(10px, 2vw, 14px);
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.button-play {
  color: #00ff88;
  border-color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.button-play:hover {
  background: #00ff88;
  color: #050519;
  box-shadow: 0 0 30px #00ff88;
  transform: translateY(-2px);
}

.button-view-ranking {
  color: #ffa502;
  border-color: #ffa502;
  box-shadow: 0 0 20px rgba(255, 165, 2, 0.3);
}

.button-view-ranking:hover {
  background: #ffa502;
  color: #050519;
  box-shadow: 0 0 30px #ffa502;
  transform: translateY(-2px);
}

.button-restart {
  color: #ff4757;
  border-color: #ff4757;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.button-restart:hover {
  background: #ff4757;
  color: #050519;
  box-shadow: 0 0 30px #ff4757;
  transform: translateY(-2px);
}

.button-icon {
  margin-right: 10px;
  font-size: 1.2em;
}

/* Footer */
.footer-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.footer-line {
  width: 200px;
  height: 2px;
  background: linear-gradient(to right, transparent, #00ff88, transparent);
  margin: 0 auto 10px;
}

.footer-text {
  font-size: 10px;
  color: #666;
  letter-spacing: 1px;
}

.footer-stars {
  margin-top: 5px;
  color: #ffa502;
  font-size: 12px;
  letter-spacing: 5px;
  animation: twinkle 2s ease-in-out infinite;
}

/* Indicador de pausa */
.pause-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.pause-container {
  text-align: center;
  padding: 40px;
  border: 2px solid #ffa502;
  background: rgba(5, 5, 25, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 165, 2, 0.5);
}

.pause-title {
  font-size: 32px;
  color: #ffa502;
  margin-bottom: 20px;
  text-shadow: 0 0 20px #ffa502;
}

.pause-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}

.pause-animation {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pause-dot {
  width: 8px;
  height: 8px;
  background: #ffa502;
  border-radius: 50%;
  animation: pauseDots 1.5s ease-in-out infinite;
}

.pause-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.pause-dot:nth-child(3) {
  animation-delay: 0.6s;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  from { text-shadow: 0 0 30px #00ff88; }
  to { text-shadow: 0 0 50px #00ff88, 0 0 70px #00ff88; }
}

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

@keyframes invaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0; }
}

@keyframes beam {
  0%, 100% { opacity: 0.3; height: 60px; }
  50% { opacity: 1; height: 80px; }
}

@keyframes shadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes pauseDots {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* Modal PIX */
.pix-modal-content {
    max-width: 500px;
    width: 90%;
}

.pix-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.pix-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.pix-item-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.pix-item-details h4 {
    margin: 0 0 5px 0;
    color: #4ECDC4;
    font-size: 16px;
}

.pix-item-details p {
    margin: 0 0 10px 0;
    color: #ccc;
    font-size: 14px;
}

.pix-price {
    color: #FFD700;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.pix-coins {
    color: #4ECDC4;
    font-size: 14px;
}

.pix-qr-section {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(78, 205, 196, 0.3);
}

.pix-qr-code {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
}

.pix-qr-code img {
    width: 150px;
    height: 150px;
    display: block;
}

.pix-instruction {
    color: #4ECDC4;
    font-size: 14px;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.pix-copy-paste {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(78, 205, 196, 0.2);
}

.pix-copy-label {
    color: #ccc;
    font-size: 12px;
    margin: 0 0 8px 0;
    text-align: center;
}

.pix-code-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pix-code-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 11px;
    font-family: monospace;
}

.copy-btn {
    padding: 8px 12px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 6px;
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.copy-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ECDC4;
}

.pix-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pix-form label {
    color: #4ECDC4;
    font-weight: 500;
    font-size: 14px;
}

.pix-form input {
    padding: 12px 15px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.pix-form input:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.pix-form input::placeholder {
    color: #888;
}

/* Modal de Processamento */
.processing-modal-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.processing-animation {
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(78, 205, 196, 0.2);
    border-top: 4px solid #4ECDC4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.processing-modal-content h3 {
    color: #4ECDC4;
    margin: 15px 0 10px 0;
}

.processing-modal-content p {
    color: #ccc;
    margin: 0;
    font-size: 14px;
}

/* Responsividade para modais PIX */
@media (max-width: 600px) {
    .pix-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .pix-item-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .pix-qr-code img {
        width: 120px;
        height: 120px;
    }
}

/* Estilos específicos para a página de ranking */
.user-info-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #00ff88;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
}

.user-info-card:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
}

.user-avatar {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.2);
  border-radius: 50%;
  border: 2px solid #00ff88;
}

.user-details h3 {
  color: #00ff88;
  font-size: 16px;
  margin-bottom: 5px;
  text-shadow: 0 0 10px #00ff88;
}

.user-details p {
  color: #ffa502;
  font-size: 12px;
}

.user-status {
  margin-left: auto;
}

.online-indicator {
  color: #00ff88;
  font-size: 12px;
  animation: pulse 2s infinite;
}

.ranking-container {
  width: 100%;
  max-width: 600px;
  margin: 30px 0;
}

.ranking-list {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ffa502;
  border-radius: 10px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(255, 165, 2, 0.3);
}

.ranking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  border-left: 4px solid #666;
  transition: all 0.3s ease;
}

.ranking-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.ranking-item:nth-child(1) {
  border-left-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

.ranking-item:nth-child(1) .ranking-position::after {
  content: " 🥇";
  font-size: 18px;
}

.ranking-item:nth-child(2) {
  border-left-color: #c0c0c0;
  background: rgba(192, 192, 192, 0.1);
}

.ranking-item:nth-child(2) .ranking-position::after {
  content: " 🥈";
  font-size: 18px;
}

.ranking-item:nth-child(3) {
  border-left-color: #cd7f32;
  background: rgba(205, 127, 50, 0.1);
}

.ranking-item:nth-child(3) .ranking-position::after {
  content: " 🥉";
  font-size: 18px;
}

.ranking-position {
  color: #ffa502;
  font-weight: bold;
  min-width: 40px;
}

.current-user {
  border: 2px solid #00ff88;
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Estilos específicos para elementos do ranking */
.ranking-player {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  text-align: left;
}

.player-name {
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
}

.player-level {
  color: #4ECDC4;
  font-size: 10px;
}

.ranking-score {
  color: #ffa502;
  font-weight: bold;
  font-size: 14px;
  min-width: 80px;
  text-align: right;
}

.ranking-coins {
  color: #FFD700;
  font-size: 12px;
  min-width: 60px;
  text-align: right;
}

/* Container específico para formulários */
.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 20px;
  background: transparent;
  border: none;
}

/* Estilos para formulários */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
  width: 100%;
  max-width: 400px;
  align-items: center;
  justify-content: center;
}

.game-input {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(77, 155, 230, 0.3);
  border-radius: 8px;
  padding: 15px 30px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: #ffffff;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 300px;
  height: 50px;
  box-sizing: border-box;
}

.game-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
}

.game-input:focus {
  outline: none;
  border-color: #4D9BE6;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(77, 155, 230, 0.4);
  transform: translateY(-2px);
}

.game-input:hover {
  border-color: rgba(77, 155, 230, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

/* Responsividade */
@media (max-width: 768px) {
  .menu-buttons {
    gap: 15px;
  }
  
  .button-play,
  .button-view-ranking,
  .button-restart {
    padding: 12px 24px;
    font-size: 12px;
  }
  
  /* Responsividade da score-ui já definida acima */
  
  .invader-sprite {
    font-size: 36px;
  }
  
  .user-info-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .user-status {
    margin-left: 0;
  }
  
  .ranking-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .form-container {
    max-width: 280px;
  }

  .game-input {
    padding: 12px 15px;
    font-size: 0.6rem;
    max-width: 250px;
  }

  .game-input::placeholder {
    font-size: 0.5rem;
  }

  .menu-buttons {
    max-width: 280px;
  }
  
  .form-wrapper {
    max-width: 350px;
    padding: 20px 15px;
    margin: 10px;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 24px;
  }
  
  .game-subtitle {
    font-size: 10px;
  }
  
  .button-play,
  .button-view-ranking,
  .button-restart {
    padding: 10px 20px;
    font-size: 10px;
  }
  
  .invader-sprite {
    font-size: 28px;
  }
}

/* ========================================
   ESTILOS DA LOJA (SHOP)
   ======================================== */

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: white;
  font-family: 'Press Start 2P', monospace;
}

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

.shop-title {
  font-size: 32px;
  color: #FFD700;
  margin-bottom: 10px;
  text-shadow: 0 0 30px #FFD700;
}

.user-coins {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 15px 25px;
  border-radius: 25px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  display: inline-block;
  margin-bottom: 20px;
}

.shop-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.category-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #4ECDC4;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}

.category-btn:hover, .category-btn.active {
  background: #4ECDC4;
  color: #000;
  box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.daily-offers {
  margin-bottom: 40px;
}

.section-title {
  font-size: 18px;
  color: #FF6B6B;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 20px #FF6B6B;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.shop-item {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #666;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.shop-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.shop-item.common { border-color: #9E9E9E; }
.shop-item.uncommon { border-color: #4CAF50; }
.shop-item.rare { border-color: #2196F3; }
.shop-item.epic { border-color: #9C27B0; }
.shop-item.legendary { border-color: #FF9800; }

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.item-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.item-rarity {
  background: var(--rarity-color);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 8px;
  text-transform: uppercase;
}

.item-name {
  font-size: 14px;
  color: white;
  margin-bottom: 8px;
}

.item-description {
  font-size: 10px;
  color: #888;
  line-height: 1.4;
  margin-bottom: 15px;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #FFD700;
}

.item-price.discounted {
  flex-direction: column;
  align-items: flex-start;
}

.original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 10px;
}

.discount-badge {
  background: #FF4757;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 8px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.coming-soon-badge {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 7px;
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: pulse-glow 2s infinite;
}

.disabled-badge {
  background: #666;
  color: #ccc;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 8px;
  font-weight: bold;
  opacity: 0.8;
}

.shop-item.disabled {
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
    transform: scale(1.05);
  }
}

.buy-btn {
  background: linear-gradient(135deg, #4ECDC4, #44A08D);
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  transition: all 0.3s ease;
}

.buy-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #44A08D, #4ECDC4);
  transform: scale(1.05);
}

.buy-btn:disabled {
  background: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.owned-badge {
  background: #00ff88;
  color: #000;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 8px;
  font-weight: bold;
}

.inventory-section {
  margin-top: 40px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.inventory-item {
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid #00ff88;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.uses-remaining {
  background: #FF6B6B;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 8px;
  margin-top: 8px;
}

.loading {
  text-align: center;
  color: #4ECDC4;
  font-size: 12px;
  padding: 40px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: rgba(5, 5, 25, 0.95);
  border: 3px solid #FFD700;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  color: white;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
}

.modal-btn.confirm {
  background: #00ff88;
  color: #000;
}

.modal-btn.cancel {
  background: #FF4757;
  color: white;
}

/* Responsividade específica da loja */
@media (max-width: 768px) {
  .shop-container {
    padding: 10px;
  }

  .shop-title {
    font-size: 24px;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .shop-categories {
    gap: 8px;
  }

  .category-btn {
    padding: 8px 15px;
    font-size: 8px;
  }
}

/* ===== ADMIN PANEL STYLES ===== */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: #fff;
    font-family: 'Orbitron', monospace;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.admin-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4ECDC4, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(20, 20, 40, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    grid-column: span 4;
}

/* Tamanho maior para o card de jogadores - ocupa 8 colunas */
.dashboard-card.players {
    padding: 35px;
    min-height: 500px;
    grid-column: span 8;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 205, 196, 0.6);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
}

.dashboard-card.blue {
    border-color: rgba(78, 205, 196, 0.3);
}

.dashboard-card.red {
    border-color: rgba(255, 107, 107, 0.3);
}

.dashboard-card.yellow {
    border-color: rgba(255, 215, 0, 0.3);
}

.dashboard-card.purple {
    border-color: rgba(156, 39, 176, 0.3);
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #4ECDC4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.chart-container {
    height: 200px;
    margin-top: 15px;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 1.1rem;
}

.players-table th,
.players-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.players-table th {
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    font-weight: bold;
    font-size: 1.2rem;
}

.players-table tr:hover {
    background: rgba(78, 205, 196, 0.05);
}

.players-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.admin-btn.primary {
    background: linear-gradient(45deg, #4ECDC4, #45B7B8);
    color: #fff;
}

.admin-btn.secondary {
    background: linear-gradient(45deg, #FF6B6B, #EE5A52);
    color: #fff;
}

.admin-btn.success {
    background: linear-gradient(45deg, #00D2FF, #3A7BD5);
    color: #fff;
}

.admin-btn.warning {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.security-alerts {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.alert-item {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.alert-time {
    color: #888;
    font-size: 0.8rem;
    margin-top: 5px;
}

.loading {
    text-align: center;
    color: #4ECDC4;
    font-style: italic;
    padding: 20px;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.trend-up {
    color: #00ff88;
}

.trend-down {
    color: #ff6b6b;
}

.trend-stable {
    color: #ffd700;
}

/* Media Queries para Admin Panel */
@media (max-width: 768px) {
    .admin-container {
        padding: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-title {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .admin-btn {
        width: 100%;
    }
    
    .players-table {
        font-size: 0.8rem;
    }
    
    .players-table th,
    .players-table td {
        padding: 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}