body{display:flex;justify-content:center;align-items:center;height:100vh;margin:0;background:#1a1a1a;font-family:Arial,sans-serif;overflow:hidden;touch-action:none}

#gameCanvas{border:10px solid #444;border-radius:20px;box-shadow:0 0 20px rgba(0,0,0,.5)}
#scoreBoard{
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  z-index: 10;
}

#colorMenu, #fieldColorMenu {
  position: static;
  transform: none;
  margin: 10px 20px;
  display: none;
}

.color-section {
  margin: 20px 0;
  padding: 20px;
  border-top: 2px solid rgba(255,255,255,0.1);
}

.color-section-title {
  color: white;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.color-section-title::after {
  content: '▼';
  font-size: 16px;
  transition: transform 0.3s;
}

.color-section-title.active::after {
  transform: rotate(180deg);
}

body.light-theme .color-section-title {
  color: #333;
  background: rgba(0, 0, 0, 0.1);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.colorBtn {
  width: 100%;
  height: 60px;
  border: 3px solid white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.colorBtn:hover {
  transform: scale(1.05);
}

.colorBtn.selected {
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
  transform: scale(1.05);
}

.colorBtn.selected::after {
  content: '✓';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

body.light-theme .color-section-title {
  color: #333;
}

.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-button span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 3px 0;
  background-color: white;
  transition: 0.3s;
}

.menu-button.active .menu-button-icon span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-button.active .menu-button-icon span:nth-child(2) {
  opacity: 0;
}

.menu-button.active .menu-button-icon span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.menu-button-text {
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: 0.3s;
}

.menu-button.active .menu-button-text {
  opacity: 0;
}

.side-panel {
  position: fixed;
  left: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.95);
  transition: 0.3s;
  z-index: 1000;
  padding-top: 80px;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.side-panel.open {
  left: 0;
}

.menu-item {
  display: block;
  width: 100%;
  padding: 20px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  border: none;
  background: none;
  cursor: pointer;
  transition: 0.3s;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.light-theme .menu-button span {
  background-color: #333;
}

body.light-theme .menu-button-text {
  color: #333;
}

body.light-theme .side-panel {
  background: rgba(240, 240, 240, 0.95);
}

body.light-theme .menu-item {
  color: #333;
}

body.light-theme .menu-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

.canvas {
  position: fixed;
  top: 0;
  left: 0;
  outline: none;
}

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

.characterBtn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.characterBtn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

.characterBtn.selected {
  border-color: #3498db;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.character-preview {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
}

.character-preview.classic {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.character-preview.robot {
  background: linear-gradient(45deg, #3498db, #2980b9);
}

.character-preview.ninja {
  background: linear-gradient(45deg, #2c3e50, #34495e);
}

.character-preview.alien {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.characterBtn span {
  display: block;
  color: white;
  font-size: 14px;
}

body.light-theme .characterBtn {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .characterBtn span {
  color: #333;
}

body.light-theme .characterBtn:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Light theme styles */
body.light-theme {
  background: #f0f0f0;
}

body.light-theme #gameCanvas {
  border-color: #ccc;
}

body.light-theme #scoreBoard {
  color: #333;
  text-shadow: none;
}

body.light-theme #pauseButton {
  display: none;
}

body.light-theme .colorBtn {
  border-color: #333;
}

body.light-theme .colorBtn.selected {
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#gameTitle {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;  
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  z-index: 10;
}

body.light-theme #gameTitle {
  color: #333;
  text-shadow: none;
}

/* Add title screen styles */
#titleScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#titleScreen h1 {
  color: white;
  font-size: 64px;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
  }
  to {
    text-shadow: 0 0 30px rgba(52, 152, 219, 1), 0 0 40px rgba(52, 152, 219, 0.8);
  }
}

#startButton {
  padding: 20px 40px;
  font-size: 24px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

#startButton:hover {
  transform: scale(1.1);
  background: #2980b9;
  box-shadow: 0 0 30px rgba(52, 152, 219, 0.6);
}

body.light-theme #titleScreen {
  background: rgba(240, 240, 240, 0.9);
}

body.light-theme #titleScreen h1 {
  color: #333;
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

#mainMenuScreen, #creditsScreen, #multiplayerScreen, #characterSelectionScreen, #optionsScreen, #colorsScreen, #audioScreen, #languageScreen, #gameOverScreen, #extrasScreen, #multiplayerScreen, #mapSelectionScreen {
  background-color: #0B0B2A !important;
  background: radial-gradient(circle, rgba(30,30,60,0.9) 0%, rgba(11,11,42,0.95) 100%) !important;
}

#mainMenuScreen h1, #creditsScreen h1, #multiplayerScreen h1, #characterSelectionScreen h1, #optionsScreen h1, #colorsScreen h1, #audioScreen h1, #languageScreen h1, #gameOverScreen h1, #extrasScreen h1, #multiplayerScreen h1, #mapSelectionScreen h1 {
  color: #00ffff !important;
  text-shadow: 0 0 20px rgba(0,255,255,0.5) !important;
  animation: fadeInGlow 3s ease-out forwards, shimmer 5s infinite linear !important;
}

.menu-button-large {
  background-color: #0B0B2A !important;
  color: #00ffff !important;
  border: 2px solid #00ffff !important;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3) !important;
  transition: all 0.3s ease !important;
}

.menu-button-large:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 30px rgba(128, 0, 255, 0.5) !important;
  background-color: #8000ff !important;
}

#startButton {
  background-color: #8000ff !important;
  color: #00ffff !important;
  border: 2px solid #00ffff !important;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3) !important;
}

#startButton:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5) !important;
}

#characterPreviewContainer, #mapPreviewContainer {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  overflow: hidden;
}

.character-navigation, .map-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.nav-arrow {
  background: #0B0B2A;
  color: #00ffff;
  border: 2px solid #00ffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  background: #8000ff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.character-name, .map-name {
  font-size: 32px;
  font-weight: bold;
  color: #00ffff;
  margin: 0 30px;
  min-width: 120px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

#extrasScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); 
  display: none; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000; 
}

#mapSelectionScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

body.light-theme #mapSelectionScreen {
  background: rgba(240, 240, 240, 0.9);
}

#mapSelectionScreen h1 {
  color: white;
  font-size: 48px;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
}

body.light-theme #mapSelectionScreen h1 {
  color: #333;
  text-shadow: none;
}

#mapSelectionScreen #mapPreviewContainer {
  width: 400px;
  height: 250px;
  margin: 30px auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#shopScreen, #steelWearScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0B0B2A !important;
  background: radial-gradient(circle, rgba(30,30,60,0.9) 0%, rgba(11,11,42,0.95) 100%) !important;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#shopScreen h1, #steelWearScreen h1 {
  color: #00ffff !important;
  text-shadow: 0 0 20px rgba(0,255,255,0.5) !important;
  animation: fadeInGlow 3s ease-out forwards, shimmer 5s infinite linear !important;
}

.back-button-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  font-size: 18px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-button-top-right:hover {
  transform: scale(1.1);
  background: #c0392b;
}

.auth-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(0, 255, 255, 0.3);
}

.auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 30px;
  font-size: 18px;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.google-auth {
  background: #4285f4;
}

.google-auth:hover {
  background: #357ae8;
  transform: scale(1.05);
}

.facebook-auth {
  background: #1877f2;
}

.facebook-auth:hover {
  background: #166fe5;
  transform: scale(1.05);
}

.guest-auth {
  background: #6c757d;
}

.guest-auth:hover {
  background: #5a6268;
  transform: scale(1.05);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 10px;
  margin: 20px 0;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #00ffff;
}

.profile-info {
  color: #00ffff;
}

.profile-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.profile-provider {
  font-size: 14px;
  opacity: 0.8;
}

.lobby-container {
  max-width: 800px;
  width: 100%;
  background: rgba(11, 11, 42, 0.9);
  border-radius: 15px;
  padding: 30px;
  border: 2px solid rgba(0, 255, 255, 0.3);
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.lobby-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.filter-button {
  padding: 10px 20px;
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  border: 2px solid #00ffff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-button:hover, .filter-button.active {
  background: #00ffff;
  color: #0B0B2A;
}

.game-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.game-room {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.game-room:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(5px);
}

.room-info {
  flex: 1;
}

.room-name {
  color: #00ffff;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.room-details {
  color: #ffffff;
  opacity: 0.7;
  font-size: 14px;
}

.room-players {
  color: #00ffff;
  font-weight: bold;
  margin-right: 15px;
}

.join-button {
  padding: 8px 20px;
  background: #00ffff;
  color: #0B0B2A;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.join-button:hover {
  background: #00cccc;
  transform: scale(1.05);
}

.join-button:disabled {
  background: #666;
  color: #999;
  cursor: not-allowed;
  transform: none;
}

.create-room-container {
  padding: 20px;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 10px;
  margin-top: 20px;
}

.room-settings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-label {
  color: #00ffff;
  font-weight: bold;
  font-size: 14px;
}

.setting-input, .setting-select {
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 5px;
  color: white;
  font-size: 14px;
}

.setting-input:focus, .setting-select:focus {
  outline: none;
  border-color: #00ffff;
}

#multiplayerLobbyScreen, #authenticationScreen, #hostGameScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0B0B2A !important;
  background: radial-gradient(circle, rgba(30,30,60,0.9) 0%, rgba(11,11,42,0.95) 100%) !important;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#multiplayerLobbyScreen h1, #authenticationScreen h1, #hostGameScreen h1 {
  color: #00ffff !important;
  text-shadow: 0 0 20px rgba(0,255,255,0.5) !important;
  animation: fadeInGlow 3s ease-out forwards, shimmer 5s infinite linear !important;
}

.connection-status {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 3000;
}

.status-connected {
  background: #28a745;
}

.status-connecting {
  background: #ffc107;
  color: #000;
}

.status-disconnected {
  background: #dc3545;
}

.logout-button {
  padding: 10px 20px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.logout-button:hover {
  background: #c82333;
  transform: scale(1.05);
}

.waiting-room-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 42, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.waiting-room-card {
  background: linear-gradient(135deg, rgba(11, 11, 42, 0.98) 0%, rgba(30, 30, 60, 0.98) 100%);
  border: 3px solid #00ffff;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  color: white;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
  animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.6);
  }
}

.waiting-room-title {
  color: #00ffff;
  font-size: 32px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.room-id-display {
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #00ffff;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.room-id-label {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.room-id-value {
  color: #00ffff;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
  font-family: monospace;
  word-break: break-all;
  max-width: 400px;
  line-height: 1.4;
}

.waiting-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  color: #ffffff;
  font-size: 20px;
}

.waiting-dots {
  display: flex;
  gap: 8px;
}

.waiting-dot {
  width: 12px;
  height: 12px;
  background: #00ffff;
  border-radius: 50%;
  animation: dotBounce 1.4s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.waiting-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.waiting-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.waiting-instructions {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.6;
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.cancel-waiting-button {
  padding: 15px 40px;
  background: #e74c3c;
  color: white;
  border: 2px solid #c0392b;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.cancel-waiting-button:hover {
  background: #c0392b;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.copy-room-id-button {
  padding: 10px 20px;
  background: #00ffff;
  color: #0B0B2A;
  border: 2px solid #00ffff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.copy-room-id-button:hover {
  background: #00cccc;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.copy-room-id-button.copied {
  background: #2ecc71;
  border-color: #2ecc71;
  animation: copySuccess 0.5s ease;
}

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

#powerUpIndicators {
  position: fixed;
  top: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.power-up-indicator {
  display: none;
  background: rgba(11, 11, 42, 0.95);
  border: 2px solid #00ffff;
  border-radius: 10px;
  padding: 12px;
  min-width: 200px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  animation: slideInRight 0.3s ease-out;
}

.power-up-indicator.active {
  display: flex;
  align-items: center;
  gap: 12px;
}

.power-up-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.power-up-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.power-up-info {
  flex: 1;
}

.power-up-name {
  color: #00ffff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.power-up-timer-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3px;
}

.power-up-progress {
  height: 100%;
  background: linear-gradient(90deg, #00ff00, #00ffff);
  border-radius: 4px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.power-up-time {
  color: #ffffff;
  font-size: 12px;
  text-align: right;
}

@keyframes slideInRight {
  from {
    transform: translateX(300px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

body.light-theme .power-up-indicator {
  background: rgba(240, 240, 240, 0.95);
  border-color: #333;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body.light-theme .power-up-name {
  color: #333;
  text-shadow: none;
}

body.light-theme .power-up-time {
  color: #333;
}

@media (max-width: 768px) {
  #powerUpIndicators {
    top: 60px;
    right: 10px;
  }
  
  .power-up-indicator {
    min-width: 160px;
    padding: 8px;
  }
  
  .power-up-icon {
    font-size: 24px;
  }
  
  .power-up-icon img {
    width: 32px;
    height: 32px;
  }
  
  .power-up-name {
    font-size: 14px;
  }
}

.power-up-indicator.low-time {
  animation: glowPulse 0.5s ease-in-out infinite alternate, shake 0.3s ease-in-out infinite;
  border-color: #ff0000;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.5);
}

.power-up-indicator.low-time .power-up-icon {
  animation: iconPulse 0.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
}

.power-up-indicator.low-time .power-up-icon img {
  filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.9));
}

.power-up-indicator.low-time .power-up-name {
  color: #ff0000;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  animation: textFlash 0.5s ease-in-out infinite;
}

.power-up-indicator.low-time .power-up-time {
  color: #ff0000;
  font-weight: bold;
  animation: textFlash 0.5s ease-in-out infinite;
}

@keyframes glowPulse {
  from {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.4);
    border-color: #ff3333;
  }
  to {
    box-shadow: 0 0 40px rgba(255, 0, 0, 1), 0 0 60px rgba(255, 0, 0, 0.8);
    border-color: #ff0000;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes iconPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15);
  }
}

@keyframes textFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

body.light-theme .power-up-indicator.low-time {
  border-color: #cc0000;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.3);
}

body.light-theme .power-up-indicator.low-time .power-up-name,
body.light-theme .power-up-indicator.low-time .power-up-time {
  color: #cc0000;
}

#gameOverScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction
}

.camera-view-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(11, 11, 42, 0.9);
  border: 2px solid #00ffff;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.camera-view-button:hover {
  background: rgba(128, 0, 255, 0.9);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.camera-view-button:active {
  transform: scale(0.95);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.camera-view-button.active {
  background: #8000ff;
  animation: pulse 0.3s ease;
}

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

body.light-theme .camera-view-button {
  background: rgba(240, 240, 240, 0.95);
  border-color: #333;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .camera-view-button:hover {
  background: rgba(200, 200, 200, 0.95);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .camera-view-button {
    width: 45px;
    height: 45px;
    font-size: 24px;
    top: 15px;
    right: 15px;
  }
}