:root {
  --bg-gradient: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 100%);
  --panel-bg: #ffffff;
  --accent: #d90429;
  --accent-strong: #ef233c;
  --text: #1d3557;
  --font-main: 'Roboto', sans-serif;
  --font-display: 'Press Start 2P', cursive;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1530;
  /* Dark arcade blue */
  font-family: var(--font-main);
  color: var(--text);
  padding: 2rem;
}

.shell {
  width: min(1100px, 100%);
  background: rgba(255, 255, 255, 0.9);
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

/* ... existing hero styles ... */

.game-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 100%);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

/* Custom Crosshair for Mouse */
.game-container:hover {
  cursor: none;
}

.touch-controls {
  display: none;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 16px 16px;
  grid-column: 1 / -1;
  justify-content: center;
}

.pad-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.pad-row {
  display: flex;
  gap: 0.8rem;
}

.control-btn {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: none;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: white;
  background: linear-gradient(to bottom, #ef233c, #d90429);
  box-shadow: 0 6px 0 #8d0018, 0 10px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.control-btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #8d0018, 0 2px 4px rgba(0, 0, 0, 0.3);
}

.control-btn.action {
  width: 140px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar section {
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ef233c;
  text-transform: uppercase;
}

.stats p {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #000000;
}

.objectives ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.objectives li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 1;
  padding-left: 1rem;
  border-left: 3px solid #ef233c;
}

.status {
  text-align: center;
  display: none;
}

.status.active {
  display: block;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

#restartButton {
  background: #ef233c;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
}

#restartButton:hover {
  background: #d90429;
}

.footer {
  margin-top: 2rem;
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .stage {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar section {
    flex: 1;
    min-width: 250px;
  }

  .touch-controls {
    display: flex;
  }
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .shell {
    padding: 1rem;
  }

  .sidebar {
    flex-direction: column;
  }
}