body {
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

h1 {
  margin-top: 30px;
  font-size: 2.5em;
  letter-spacing: 2px;
}

canvas {
  background: #222;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  margin-top: 20px;
  touch-action: none;
}

.scoreboard {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
  font-size: 1.2em;
}

.retry-btn {
  background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.2s;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.retry-btn:hover {
  background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
  transform: scale(1.05);
}

.touch-controls {
  display: block;
  margin: 12px auto 0;
  width: fit-content;
  user-select: none;
  -webkit-user-select: none;
}

.control-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.control-btn {
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  touch-action: manipulation;
}

.control-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.22);
}

.control-btn.up {
  display: block;
  margin: 0 auto;
}

@media (hover: hover) and (pointer: fine) {
  .touch-controls {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 {
    margin-top: 18px;
    font-size: 2em;
  }

  .scoreboard {
    gap: 20px;
    font-size: 1.05em;
  }
}

@media (max-width: 480px) {
  .control-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}
