/* ===== 全頁基本設定 ===== */
body {
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  background: #faf7f2;
  color: #3d3a34;
  max-width: 420px;          /* 手機寬度為主的版面 */
  margin: 0 auto;            /* 左右自動留白 = 置中 */
  padding: 24px 16px 48px;
  text-align: center;
}

h1 {
  font-size: 28px;
  margin: 8px 0 4px;
}

.subtitle {
  color: #8a857c;
  margin: 0 0 20px;
  font-size: 14px;
}

/* ===== 轉盤區 ===== */
.wheel-area {
  position: relative;        /* 讓指針可以疊在轉盤上方 */
  display: inline-block;
}

/* 指針：用邊框畫出來的倒三角形 */
.pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid #d85a30;
  z-index: 2;
}

#wheel {
  /* 轉動動畫的「緩衝感」：4 秒內由快到慢 */
  transition: transform 4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== 按鈕 ===== */
#spin-btn {
  margin-top: 20px;
  padding: 12px 48px;
  font-size: 20px;
  border: none;
  border-radius: 999px;
  background: #d85a30;
  color: #fff;
  cursor: pointer;
}

#spin-btn:disabled {
  background: #cfc9bf;       /* 轉動中變灰色，表示不能按 */
}

/* ===== 結果文字 ===== */
#result {
  min-height: 32px;          /* 先佔好位置，出結果時版面不跳動 */
  font-size: 22px;
  font-weight: 600;
  margin: 16px 0 8px;
}

/* ===== 選項管理區 ===== */
.options-area {
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e3da;
}

.add-row {
  display: flex;
  gap: 8px;
}

#new-option {
  flex: 1;                   /* 輸入框吃掉剩餘寬度 */
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #d5cfc5;
  border-radius: 8px;
}

#add-btn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #3d3a34;
  color: #fff;
  cursor: pointer;
}

/* 選項標籤：一顆一顆的小膠囊 */
#option-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

#option-list li {
  padding: 6px 14px;
  background: #f1ece4;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
}

#option-list li:hover {
  background: #e5ddd0;
  text-decoration: line-through;   /* 提示點下去會刪除 */
}

.hint {
  color: #a09a8f;
  font-size: 12px;
  margin: 4px 0 0;
}
