* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(to right, #1d2671, #c33764);
  color: #fff;
  margin: 0;
  min-height: 100vh;
  padding: 20px;
}

h1 {
  margin: 10px 0 20px;
  font-size: clamp(20px, 5vw, 32px);
  text-align: center;
}

.wheel-container {
  position: relative;
  width: 90vw;
  max-width: 500px;
  max-height: 80vh;
}

#wheel {
  width: 100%;
  height: auto;
  border: 8px solid gold;
  border-radius: 50%;
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 30px solid yellow;
  z-index: 10;
}

#spin {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background: gold;
  cursor: pointer;
  transition: 0.3s;
}

#spin:hover {
  background: orange;
}

#result {
  margin-top: 20px;
  font-size: clamp(16px, 4vw, 24px);
  font-weight: bold;
  text-align: center;
}

/* Popup overlay */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.popup-content {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 350px;
}

.popup-content h2 {
  margin-bottom: 15px;
  font-size: clamp(16px, 4vw, 20px);
}

.popup-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.popup-content button {
  padding: 10px 20px;
  font-size: clamp(14px, 4vw, 16px);
  font-weight: bold;
  border-radius: 5px;
  border: none;
  background: #1d2671;
  color: white;
  cursor: pointer;
}

.popup-content button:hover {
  background: #c33764;
}
