.word-wheel { border-top:1px solid var(--line); padding:28px 0 36px; }
.wheel-heading { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px 24px; }
.wheel-heading p { color:var(--muted); font-size:14px; }
.wheel-lead { margin:8px 0 16px; }
.wheel-level { border:0; padding:0; margin:16px 0 0; min-width:0; }
.wheel-level legend { font-weight:600; margin-bottom:8px; }
.wheel-level > div { display:flex; flex-wrap:wrap; gap:8px; }
.wheel-level label { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; font-size:15px; cursor:pointer; }
.wheel-level label:has(:checked) { background:var(--soft); border-color:var(--accent); }
.wheel-level-note { color:var(--muted); font-size:14px; margin:8px 0 16px; }
#wheel-filters { border-block:1px solid var(--line); margin:16px 0 24px; }
#wheel-filters summary { padding-block:12px; }
#wheel-filters summary::after { top:6px; }
#wheel-filter-summary { font-size:14px; font-weight:400; color:var(--muted); margin-left:12px; }
#wheel-filter-form { padding-bottom:18px; }
.wheel-filter-columns { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.wheel-filter-columns fieldset { margin:0; padding:0; min-width:0; border:0; }
.wheel-filter-columns legend { font-weight:600; margin-bottom:8px; }
.wheel-filter-actions { display:flex; gap:8px; margin-bottom:8px; }
.wheel-word-options { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.wheel-filter-columns label,.wheel-motion,.wheel-sound { display:flex; gap:8px; align-items:center; min-height:44px; font-size:15px; }
.word-wheel input[type=checkbox],.word-wheel input[type=radio] { min-height:18px; width:18px; height:18px; padding:0; flex-shrink:0; accent-color:var(--accent); }
.wheel-word-options small { display:block; font-size:12px; line-height:1.4; color:var(--muted); }
.wheel-filter-note { color:var(--muted); font-size:14px; margin:12px 0; }
.wheel-stage { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:start; }
.wheel-machine { min-width:0; text-align:center; }
.wheel-frame { position:relative; width:min(100%,420px); margin:8px auto 16px; padding:8px; border:2px solid var(--accent); border-radius:50%; background:var(--soft); }
.wheel-window { overflow:hidden; border-radius:50%; }
.wheel-disc { display:block; width:100%; height:auto; border-radius:50%; background:var(--surface); transform-origin:center; }
.wheel-disc path { fill:var(--surface); stroke:var(--line); stroke-width:1; }
.wheel-disc path:nth-of-type(even) { fill:var(--soft); }
.wheel-disc text { fill:var(--ink); font:500 24px var(--sans); }
.wheel-disc .wheel-hub { fill:var(--accent); stroke:var(--paper); stroke-width:3; }
.wheel-disc .wheel-hub-label { fill:var(--on-accent); font:30px var(--serif); }
.wheel-pointer { position:absolute; top:-7px; left:calc(50% - 14px); width:28px; height:32px; z-index:1; fill:var(--accent); stroke:var(--paper); stroke-width:2; }
.wheel-machine > button { min-width:170px; }
.wheel-preferences { display:flex; flex-wrap:wrap; justify-content:center; gap:0 20px; margin-top:8px; }
.wheel-motion,.wheel-sound { justify-content:center; color:var(--muted); cursor:pointer; }
.wheel-sound-note { color:var(--muted); font-size:13px; margin-top:0; }
#wheel-status { min-height:24px; margin-top:6px; font-size:14px; }
.wheel-workspace { min-width:0; }
.wheel-idle h3 { font:400 30px/1.2 var(--serif); margin-bottom:12px; }
.wheel-idle p { color:var(--muted); max-width:45ch; }
.wheel-result-line { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 16px; }
#wheel-word { font:400 48px/1.15 var(--serif); color:var(--accent); }
#wheel-meaning { color:var(--muted); }
.wheel-kind { font-size:14px; color:var(--muted); margin-top:4px; }
.wheel-bonus { padding:12px 0; margin-top:12px; border-block:1px solid var(--line); }
.wheel-bonus strong { font:400 26px var(--serif); color:var(--accent); margin-left:6px; }
#wheel-bonus-meaning { font-size:14px; color:var(--muted); margin-top:4px; }
.wheel-help .wheel-word-tip { font-size:14px; color:var(--muted); }
#wheel-tense { margin:8px 0 20px; font-size:14px; color:var(--muted); }
#wheel-question { font:400 24px/1.3 var(--serif); margin-bottom:6px; }
#wheel-translation { font-size:15px; color:var(--muted); }
.wheel-help { display:flex; gap:12px 24px; flex-wrap:wrap; margin:16px 0; }
.wheel-help details { flex:1 1 160px; border-bottom:1px solid var(--line); min-width:0; }
.wheel-help summary { min-height:44px; padding:10px 24px 10px 0; font-size:15px; color:var(--accent); }
.wheel-help summary::after { top:4px; }
.wheel-help details p { padding:0 0 12px; font-size:16px; }
.wheel-help small { display:block; margin-top:6px; color:var(--muted); font-size:14px; }
#wheel-answer-form label { display:block; margin-bottom:6px; }
.game-page #wheel-answer { display:block; resize:vertical; min-height:108px; width:100%; padding:12px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--ink); caret-color:var(--accent); font:16px/1.5 var(--sans); }
#wheel-answer::placeholder { color:var(--muted); opacity:1; }
#wheel-answer-form button { margin-top:12px; }
.wheel-self-check { color:var(--muted); font-size:14px; margin-top:8px; }
#wheel-saved { border-top:1px solid var(--line); margin-top:24px; }
#wheel-saved summary { padding:14px 28px 14px 0; }
#wheel-saved summary::after { top:8px; }
#wheel-sentences { padding-left:24px; }
#wheel-sentences li { padding:0 0 16px 6px; }
#wheel-sentences p { padding:0; overflow-wrap:anywhere; }
#wheel-sentences small { color:var(--muted); }
@media(max-width:767px) {
  .wheel-stage { grid-template-columns:1fr; gap:24px; }
  .wheel-frame { max-width:340px; }
  .wheel-heading { display:block; }
  .wheel-heading p { margin-top:6px; }
  .wheel-filter-columns { grid-template-columns:1fr; gap:16px; }
  #wheel-filter-summary { display:block; margin:4px 0 0; }
  .wheel-word-options { gap:0 8px; }
  #wheel-word { font-size:40px; }
  .wheel-result-line { gap:6px 12px; }
}
@media(prefers-reduced-motion:reduce) {
  .wheel-disc { animation:none !important; transition:none !important; }
}
