* { box-sizing: border-box; }



.controls {
  margin: 15px auto;
  max-width: 500px;
  
}

input, button {
  font-size: 16px;
  padding: 10px 14px;
  margin: 5px;
}

input[type="number"] { width: 90px; }
.sectorInput { width: min(90%, 400px); }

button {
  cursor: pointer;
  border: 1px;
  background: #9e9e9e;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s, transform 0.1s;
}

button:hover { background: #9e9e9e; }
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

#wheelContainer {
  position: relative;
  width: min(90vw, 500px);
  aspect-ratio: 1 / 1;
  margin: clamp(100px, 14vw, 200px) auto 20px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#pointer {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 38px solid #e53935;
  z-index: 10;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,0.3));
}

#spinBtn {
  font-size: 20px;
  padding: 14px 30px;
  background: #ca1220;
  border-radius: 10px;
}

#spinBtn:hover { background: #e54b4b; }

/* Tablet: ca. 150 px Abstand */
@media (max-width: 900px) {
  #wheelContainer { margin-top: 150px; }
}

/* Handy: 100 px Abstand */
@media (max-width: 600px) {
  body { padding: 12px; }
  button { width: min(90%, 350px); margin: 5px auto; }
  #wheelContainer {
    width: min(92vw, 420px);
    margin-top: 100px;
  }
  #spinBtn { width: min(80%, 300px); }
}
