* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  background: #10161c;
  color: #e8eef2;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0 0 4px;
}

.subtitle {
  margin: 0 0 16px;
  color: #a8b6bf;
}

#game-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

canvas {
  display: block;
  background: #000;
  border: 2px solid #3a4a54;
  border-radius: 4px;
  max-width: 100%;
}

/* Touch-Steuerung: nur auf Geräten mit grobem Zeigegerät (i.d.R. Touchscreens) sichtbar. */
.touch-controls {
  display: none;
}

@media (pointer: coarse) {
  .touch-controls {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
}

.wheel,
.lever-track,
.buoy-button {
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.wheel {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(20, 30, 38, 0.55);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.wheel-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
}

.wheel-grip {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 10px;
  height: 28px;
  background: #e8eef2;
  border-radius: 5px;
  transform: translateX(-50%);
}

.lever-track {
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: 52px;
  height: 176px;
  border-radius: 26px;
  background: rgba(20, 30, 38, 0.55);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.lever-neutral-mark {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%);
}

.lever-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8eef2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
}

.buoy-button {
  position: absolute;
  right: 20px;
  top: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 140, 0, 0.85);
  color: #1b1b1b;
  font-size: 12px;
  font-weight: 600;
}

.instructions {
  margin-top: 16px;
  max-width: 900px;
  width: 100%;
}

.instructions h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.instructions ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 4px;
}

.hint {
  color: #a8b6bf;
  font-size: 14px;
}
