body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #0c0c0c, #1a1a2e);
  color: #fff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1 {
  margin-top: 20px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0a0a15 0%, #000000 100%);
  display: block;
  cursor: grab;
}

canvas:active {
  cursor: grabbing;
}

#controls {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 20;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.speed-control kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#speedSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
}

#speedSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#speedSlider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

#speedSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

#speedDisplay {
  font-size: 12px;
  min-width: 36px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

#instructions {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 20;
  display: flex;
  gap: 12px;
}

.control-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  transition: color 0.3s ease;
}

.control-hint:hover {
  color: rgba(255, 255, 255, 0.8);
}

.control-hint kbd {
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#tooltip {
  font-size: 13px;
  max-width: 280px;
  z-index: 100;
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tooltip-header {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.tooltip-order {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
}

.tooltip-row span:first-child {
  color: rgba(255, 255, 255, 0.5);
}

.tooltip-row span:last-child {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.tooltip-desc {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}
