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

body {
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000;
  color: #fff;
}

#game-container {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  touch-action: none;
}

#hud {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  gap: 20px;
  font-size: 18px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#hud div {
  background: rgba(0,0,0,0.5);
  padding: 8px 16px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.screen {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
  background: rgba(0,0,0,0.8);
}

.screen.hidden {
  display: none;
}

.btn {
  padding: 14px 40px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #4a90ff, #2563eb);
  border: 2px solid #fff;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  margin: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(74, 144, 255, 0.6);
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
  background: #333;
  border-radius: 8px;
  margin: 5px;
}

h1 {
  font-size: 48px;
  margin-bottom: 30px;
  color: #4a90ff;
  text-shadow: 0 0 20px rgba(74, 144, 255, 0.5);
}

#final-score {
  font-size: 36px;
  color: #ffeb3b;
  margin: 20px 0;
}

.hint {
  margin-top: 20px;
  font-size: 12px;
  color: #aaa;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 15px 0;
  gap: 8px;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.1s;
}

.swatch:hover {
  transform: scale(1.2);
}

.swatch.active {
  border: 3px solid #ffeb3b;
  box-shadow: 0 0 10px #fff;
}

.brush-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

#board-canvas {
  border: 2px solid #4a90ff;
  border-radius: 8px;
  background: #222;
}
