* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  overflow: hidden;
  background-color: #1a1a1a;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* UI Elements */
#ui-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.ui-element {
  pointer-events: none;
}

/* Timer Display */
#timer-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: bold;
}

/* Score Display */
#score-container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: bold;
}

.blue-score {
  color: #4a80ff;
}

.orange-score {
  color: #ff8e4a;
}

/* Countdown Display */
#countdown-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: bold;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#countdown-container.hidden {
  opacity: 0;
}

/* Goal Message */
#goal-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 72px;
  color: white;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
  font-weight: bold;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#goal-message.blue-team .goal-text {
  color: #4a80ff;
}

#goal-message.orange-team .goal-text {
  color: #ff8e4a;
}

#goal-message.fade-out {
  opacity: 0;
}

/* Menu Screens */
.menu-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.menu-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.menu-container {
  background-color: rgba(40, 40, 40, 0.9);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  min-width: 400px;
  max-width: 80%;
  color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.menu-container h1 {
  font-size: 42px;
  margin-bottom: 25px;
  color: #ff9c20;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-container h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

/* Mode Buttons */
.mode-buttons {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
}

.mode-button {
  background-color: rgba(60, 60, 60, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  min-width: 160px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-button:hover {
  background-color: rgba(80, 80, 80, 0.8);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mode-button h2 {
  color: #ff9c20;
  font-size: 20px;
  margin-bottom: 10px;
}

.mode-button p {
  color: #dddddd;
  font-size: 14px;
}

.menu-footer {
  margin-top: 20px;
  color: #aaaaaa;
  font-size: 14px;
}

/* Pause Menu */
.menu-buttons {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.menu-buttons button {
  background-color: rgba(60, 60, 60, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  padding: 12px 20px;
  margin: 5px 0;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-buttons button:hover {
  background-color: rgba(80, 80, 80, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* How to Play Guide */
.how-to-play {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 15px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  z-index: 90;
}

.how-to-play h3 {
  margin-bottom: 10px;
  color: #ff9c20;
}

.how-to-play p {
  margin: 5px 0;
}

/* Boost Meter */
.boost-meter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 25px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  overflow: hidden;
  z-index: 90;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.boost-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #00ff00, #00ddff);
  transform-origin: left;
  transition: transform 0.1s;
}

.boost-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-size: 14px;
}

/* Game Over Screen */
.final-score {
  font-size: 42px;
  margin: 20px 0;
  font-weight: bold;
}

#game-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#joystick-zone {
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: 120px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 100;
  touch-action: none;
}

#ui-container .control {
  pointer-events: auto;
}

.score-display {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 10px;
}

.goal-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.goal-message.visible {
  opacity: 1;
}

/* Menu screens */
.menu-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  z-index: 200;
}

.menu-container {
  background-color: #333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.menu-container h1 {
  margin-top: 0;
  color: #ff9900;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #444;
  color: white;
}

.input.error {
  animation: shake 0.5s;
  border: 1px solid #ff3333;
}

.button {
  background-color: #ff9900;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #ffaa33;
}

.button.secondary {
  background-color: #666;
}

.button.secondary:hover {
  background-color: #777;
}

/* Game mode selection */
.mode-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.mode-option {
  background-color: #444;
  padding: 15px;
  border-radius: 8px;
  min-width: 200px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mode-option:hover {
  background-color: #555;
}

.mode-option h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #ff9900;
}

.mode-option p {
  margin: 0;
  font-size: 14px;
}

.mode-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

/* Keyboard instructions */

.instruction-item {
  margin-bottom: 4px;
  font-size: 12px;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

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

.instruction-item .key {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1px 4px;
  border-radius: 4px;
  margin-right: 5px;
  font-weight: bold;
  color: #ff9900;
}

/* Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Countdown display */
.countdown-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 20px rgba(255, 153, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 150;
}

.countdown-display.visible {
  opacity: 1;
}

/* Timer display */
.timer-display {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 15px;
  border-radius: 8px;
  z-index: 50;
}

/* Score display */
.score-display {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 50;
}

/* Game over screen */
.game-over-screen {
  background-color: rgba(0, 0, 0, 0.9);
}

.game-result {
  margin-bottom: 30px;
}

.final-score {
  font-size: 48px;
  font-weight: bold;
  margin: 15px 0;
  color: white;
}

.winner-message {
  font-size: 24px;
  color: #ff9900;
  margin-bottom: 20px;
}

/* Stats Counter */
.stats-counter {
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  z-index: 100;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stats-record {
  font-weight: bold;
}

.stats-controls {
  font-size: 12px;
  opacity: 0.8;
}

/* Escape Menu */
.escape-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.escape-menu.hidden {
  display: none;
}

.escape-menu-content {
  background-color: #222;
  border-radius: 10px;
  padding: 20px;
  min-width: 300px;
  color: white;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.escape-menu h2 {
  margin-top: 0;
  text-align: center;
  color: #4cc9f0;
  font-size: 24px;
}

.escape-menu button {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #4361ee;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.escape-menu button:hover {
  background-color: #3f37c9;
}

#forfeit-button {
  background-color: #e63946;
}

#forfeit-button:hover {
  background-color: #d62828;
}

.control-list {
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
}

.control-list h3 {
  margin-top: 0;
  color: #4cc9f0;
  font-size: 18px;
}

.control-list p {
  margin: 5px 0;
  font-size: 14px;
  color: #ddd;
}

/* Game Over Screen */
.game-over-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-over-screen.hidden {
  display: none;
}

.game-over-content {
  background-color: #222;
  border-radius: 10px;
  padding: 30px;
  min-width: 350px;
  color: white;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-over-content h2 {
  margin-top: 0;
  font-size: 30px;
  color: #4cc9f0;
}

.final-score {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  margin: 20px 0;
  font-weight: bold;
}

.blue-score {
  color: #0066ff;
  padding: 0 15px;
}

.orange-score {
  color: #ff6600;
  padding: 0 15px;
}

.score-separator {
  margin: 0 10px;
  color: #888;
}

.winner-message {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

.blue-win {
  color: #0066ff;
}

.orange-win {
  color: #ff6600;
}

.tie {
  color: #888;
}

.game-over-content button {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background-color: #4361ee;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.game-over-content button:hover {
  background-color: #3f37c9;
}

#main-menu-button {
  background-color: #666;
}

#main-menu-button:hover {
  background-color: #444;
}

/* Compact how to play display for game screen */
.how-to-play {
  position: absolute;
  top: 70px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px;
  border-radius: 5px;
  font-size: 11px;
  max-width: 150px;
  z-index: 100;
}

.how-to-play h3 {
  margin: 0 0 5px 0;
  font-size: 13px;
  color: #ff9900;
}

.how-to-play div {
  margin-bottom: 3px;
  line-height: 1.2;
} 

/*# sourceMappingURL=main.e47538d9e15d7ac3116e.css.map*/