* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #1a1a2e;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
canvas {
  display: block;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
#ui {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 10;
}
#counter {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
#count {
  color: #ff6b35;
  font-size: 24px;
}
#replay {
  background: linear-gradient(135deg, #ff6b35, #d63031);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
}
#replay:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(214, 48, 49, 0.6);
}
#replay:active {
  transform: scale(0.98);
}
