* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a14;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#game-wrapper {
  position: relative;
  border: 8px solid #2a2a3a;
  border-radius: 12px;
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.5),
    0 0 40px rgba(92, 148, 252, 0.2);
  background: #000;
}

#canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#audio-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

#audio-controls button {
  background: rgba(0,0,0,0.6);
  border: 2px solid #5C94FC;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

#audio-controls button:hover {
  background: rgba(92, 148, 252, 0.3);
}

#controls-info {
  margin-top: 16px;
  color: #888;
  font-size: 10px;
  text-align: center;
}

.mobile-controls {
  display: none;
}

footer {
  margin-top: 24px;
  padding: 12px;
}

footer a {
  color: #5C94FC;
  text-decoration: none;
  font-size: 10px;
  transition: color 0.2s;
}

footer a:hover {
  color: #FCB800;
}

#mobile-controls {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}

#left-zone, #jump-zone, #right-zone {
  position: absolute;
  bottom: 0;
  height: 100%;
  pointer-events: auto;
  opacity: 0.3;
}

#left-zone {
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, rgba(92,148,252,0.4), transparent);
}

#right-zone {
  right: 0;
  width: 30%;
  background: linear-gradient(-90deg, rgba(92,148,252,0.4), transparent);
}

#jump-zone {
  left: 30%;
  width: 40%;
  background: rgba(252,184,0,0.2);
}

/* Responsive */
@media (max-width: 850px) {
  #game-wrapper {
    border-width: 4px;
    border-radius: 8px;
  }
  
  #canvas {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 60vh;
  }
  
  .desktop-controls {
    display: none;
  }
  
  .mobile-controls {
    display: inline;
  }
  
  #mobile-controls {
    display: block;
  }
  
  #controls-info {
    font-size: 8px;
    padding: 0 10px;
  }
  
  footer {
    margin-top: 12px;
  }
}

@media (max-height: 600px) {
  #canvas {
    max-height: 50vh;
  }
  
  #mobile-controls {
    height: 80px;
  }
}

/* Touch feedback */
#left-zone:active, #right-zone:active, #jump-zone:active {
  opacity: 0.6;
}