body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f7f7;
  text-align: center;
  padding: 30px;
  margin: 0;
}

.container {
  max-width: 480px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.phone-section {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: nowrap; /* 줄바꿈 방지 */
  justify-content: center;
  align-items: center;
  gap: 6px; /* 입력칸 사이 간격 */
  flex-direction: row;
  flex-wrap: wrap;
}

.phone-section input[type="tel"] {
  width: 20%;
  min-width: 70px;
  flex-shrink: 1;
  text-align: center;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

input[type="tel"] {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button {
  padding: 10px 16px;
  font-size: 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.roulette-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 300px;
  margin: 30px auto;
}

.wheel {
  width: 100%;
  height: 100%;
  background: url('../wheel.png') no-repeat center center;
  background-size: contain;
  border-radius: 50%;
  transform-origin: center center;
  transition: transform 4.5s ease-out;
  position: relative;
  transform: rotate(0deg);
}

.segment {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  pointer-events: none;
}

.seg1 { transform: rotate(0deg) translateY(-115px); }
.seg2 { transform: rotate(60deg) translateY(-115px); }
.seg3 { transform: rotate(120deg) translateY(-115px); }
.seg4 { transform: rotate(180deg) translateY(-115px); }
.seg5 { transform: rotate(240deg) translateY(-115px); }
.seg6 { transform: rotate(300deg) translateY(-115px); }

.pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid red;
}

#result-box {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
}

.hidden {
  display: none;
}

#winner-list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

#winner-list li {
  font-size: 15px;
  padding: 4px 0;
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .container {
    padding: 16px;
    border-radius: 10px;
  }

  input[type="tel"],
  button {
    font-size: 15px;
  }

  .roulette-wrapper {
    width: 100%;
    height: auto;
    padding-top: 100%; /* 정사각형 유지 */
  }

  .wheel {
    position: absolute;
    top: 0;
    left: 0;
  }

  .segment {
    font-size: 12px;
  }

  #result-box {
    font-size: 18px;
  }

  #winner-list li {
    font-size: 13px;
  }
}
