/*
 * apps/wheel.css
 * "🎡 원판 돌리기" 카드 전용 스타일.
 */

.wheel-count-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.wheel-count-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  margin-right: 2px;
}

.wheel-count-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.wheel-count-btn:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.wheel-count-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wheel-count-value {
  min-width: 34px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.wheel-count-hint {
  font-size: 12px;
  color: var(--color-text-muted);
}

.wheel-instruction {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 4px 0 0;
}

.wheel-fill-count {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}

.wheel-stage {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 1 / 1;
  margin: 12px auto 20px;
}

/* aspect-ratio 미지원 구형 브라우저 대비 폴백 (없으면 높이가 0이 되어 원판이 안 보임) */
@supports not (aspect-ratio: 1 / 1) {
  .wheel-stage {
    height: 300px;
  }
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  line-height: 1;
  color: var(--color-primary-dark);
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

.wheel-dial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  box-shadow: var(--shadow-card-hover);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  border: 6px solid #ffffff;
  box-sizing: border-box;
}

.wheel-slice-input {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  width: 76px;
  max-width: 30%;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  background: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 4px 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-slice-input::placeholder {
  color: var(--color-text-muted);
  font-weight: 600;
}

.wheel-slice-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.wheel-result {
  margin-top: 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}
