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

body {
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
}

#game-wrapper {
  position: relative;
  width: 100vw;
  height: calc(100vh - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas {
  display: block;
  image-rendering: auto;
  background: #0a0a0f;
}

#controls-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.controls-box {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid #e94560;
  border-radius: 12px;
  padding: 30px 40px;
  max-width: 700px;
  width: 90%;
  color: #eee;
  box-shadow: 0 0 40px rgba(233,69,96,0.3);
}

.controls-box h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  text-align: center;
  color: #e94560;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.controls-grid {
  display: flex;
  gap: 30px;
}

.control-col {
  flex: 1;
}

.control-col h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: #0abde3;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.control-col p {
  font-size: 14px;
  margin-bottom: 6px;
  color: #aaa;
}

.control-col p span {
  display: inline-block;
  background: #2a2a4a;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 1px 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: #fff;
  margin-right: 6px;
  min-width: 50px;
  text-align: center;
}

.close-hint {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 13px;
}

#game-footer {
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #0a0a0f;
  border-top: 1px solid #1a1a2e;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #444;
}

#game-footer a {
  color: #e94560;
  text-decoration: none;
  transition: color 0.2s;
}

#game-footer a:hover {
  color: #ff6b81;
}

@media (max-width: 600px) {
  .controls-grid {
    flex-direction: column;
    gap: 15px;
  }
  .controls-box {
    padding: 20px;
  }
}