/* wheel-spinner 专用，依赖 /home.css 变量与 /tool.css */
/* 本页例外色（规划 2026-11-30 §4.3）：转盘扇区 8 色 --ws-1…--ws-8 和扇区上的文字色 --ws-text，只用在转盘画布上。
   扇区文字和每种扇区色的对比度 ≥ 4.5:1，测试按变量值在浏览器里算 */
:root {
  --ws-1: oklch(0.9 0.07 25);
  --ws-2: oklch(0.92 0.08 85);
  --ws-3: oklch(0.91 0.08 145);
  --ws-4: oklch(0.9 0.06 200);
  --ws-5: oklch(0.88 0.06 260);
  --ws-6: oklch(0.89 0.07 315);
  --ws-7: oklch(0.93 0.08 110);
  --ws-8: oklch(0.89 0.05 55);
  --ws-text: oklch(0.22 0.01 60);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ws-1: oklch(0.36 0.09 25);
    --ws-2: oklch(0.38 0.07 85);
    --ws-3: oklch(0.37 0.08 145);
    --ws-4: oklch(0.37 0.07 200);
    --ws-5: oklch(0.36 0.09 265);
    --ws-6: oklch(0.36 0.09 315);
    --ws-7: oklch(0.39 0.07 115);
    --ws-8: oklch(0.36 0.06 55);
    --ws-text: oklch(0.95 0.01 80);
  }
}
.lbl { font: 500 12px/1 var(--mono); color: var(--ink-2); }
#listSel { max-width: 12em; }
#listName { width: 12em; }
#spin { min-width: 6em; }
.btn:disabled, .tbtn:disabled, .seg button:disabled, .field:disabled { opacity: .4; cursor: not-allowed; }
.ws-hint { margin: 0 0 14px; font: 14px/1.6 var(--sans); color: var(--ink-2); }
.ws-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; }
.ws-empty { margin: 10px 0 0; font: 14px/1.6 var(--sans); color: var(--ink-2); }
.ws-wheel { width: min(100%, 460px); margin: 0 auto; }
.ws-wheel canvas { display: block; width: 100%; aspect-ratio: 1 / 1; cursor: pointer; }
.ws-wheel canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-winner {
  min-height: 1.3em;
  margin-top: 16px;
  text-align: center;
  font: 700 clamp(24px, 4vw, 36px)/1.3 var(--mono);
  color: var(--result);
  word-break: break-word;
}
.ws-after { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.ws-hist-head { margin-top: 18px; }
.ws-hist { margin: 0; padding-left: 2.2em; max-height: 200px; overflow: auto; font: 13px/1.8 var(--mono); color: var(--ink); word-break: break-word; }
.ws-hist li::marker { color: var(--ink-2); }
.ws-share { margin-top: 12px; }
@media (max-width: 760px) {
  #listSel, #listName { max-width: 100%; width: 100%; }
}
