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

body {
  background: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}

#game-wrapper {
  position: relative;
  border: 3px solid #444;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

#gameCanvas {
  display: block;
  background: #2c3e50;
  border-radius: 6px;
  cursor: crosshair;
}

#menu-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #2c3e50;
  color: #ecf0f1;
  border: 2px solid #4a6fa5;
  border-radius: 6px;
  padding: 8px 20px;
  font: bold 14px 'Segoe UI', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

#menu-btn:hover { background: #4a6fa5; }

#reset-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #e74c3c;
  color: #fff;
  border: 2px solid #c0392b;
  border-radius: 6px;
  padding: 8px 22px;
  font: bold 14px 'Segoe UI', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

#reset-btn:hover { background: #c0392b; }

#reset-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(8, 10, 22, 0.97);
  border: 2px solid #555;
  border-radius: 14px;
  padding: 34px 50px;
  z-index: 20;
  color: #ecf0f1;
  text-align: center;
  min-width: 320px;
}

#reset-modal.hidden { display: none; }

#reset-modal h2 {
  font: bold 30px 'Segoe UI', sans-serif;
  color: #e74c3c;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

#reset-modal p {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 22px;
}

.reset-option {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 14px 20px;
  font: bold 16px 'Segoe UI', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.reset-option:hover { opacity: 0.82; }

#reset-level-btn  { background: #e67e22; color: #fff; }
#reset-game-btn   { background: #c0392b; color: #fff; }
#reset-cancel-btn { background: #3a3a3a; color: #ccc; margin-top: 4px; }
