.wheel-shell{ width:min(100%,1280px); margin:auto; color:#fff; }
.wheel-head{
  display:flex; align-items:center; gap:14px; margin-bottom:14px; padding:10px 18px;
  background:#16112e; border:1px solid #7866bd; border-radius:20px;
}
.wheel-head img{ width:56px; height:56px; flex:none; }
.wheel-head p{ margin:0; color:#d7c4ff; font-size:11px; font-weight:800; letter-spacing:.16em; }
.wheel-head h1{ margin:0; font-size:clamp(24px,4vw,48px); line-height:1.1; }
.wheel-round,.wheel-category,.wheel-timer{
  padding:6px 11px; border:1px solid #8273c3; border-radius:999px;
  background:#241d47; color:#f6ebff; font-size:14px; font-weight:700;
}
.wheel-round,.wheel-timer{ margin-left:auto; white-space:nowrap; }
.wheel-timer{ font-variant-numeric:tabular-nums; }
.wheel-timer.is-urgent{ background:#60263c; border-color:#f27a9a; }
.wheel-panel{
  min-width:0; padding:clamp(14px,2.4vw,28px); border:2px solid #7a70c5; border-radius:24px;
  background:linear-gradient(145deg,#202e65,#17112e 80%); box-shadow:0 14px 36px #0b062b99;
}
.wheel-setup,.wheel-finish{ max-width:680px; margin:0 auto; }
.wheel-setupHint{ margin:0; text-align:center; font-size:clamp(17px,2vw,25px); }
.wheel-form,.wheel-solve{ display:grid; gap:12px; }
.wheel-form h2,.wheel-finish h2{ margin:0 0 6px; font-size:clamp(22px,3vw,32px); }
.wheel-fields{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.wheel-form label,.wheel-solve label{ display:grid; gap:5px; min-width:0; font-size:15px; font-weight:700; }
.wheel-form :is(input,select),.wheel-solve input{
  min-width:0; width:100%; min-height:44px; padding:8px 10px; border:1px solid #8273c3;
  border-radius:11px; background:#15112d; color:#fff; font:inherit; font-size:16px;
  color-scheme:dark;
}
.wheel-form .wheel-hintSetting{
  display:flex; align-items:center; gap:11px; padding:9px 11px;
  border:1px solid #8273c3; border-radius:11px; background:#201a40;
}
.wheel-hintSetting input[type="checkbox"]{ width:20px; height:20px; min-height:0; flex:none; accent-color:#ffd17e; }
.wheel-hintSetting small{ display:block; color:#ded5f2; font-size:13px; font-weight:500; }
.wheel-game{ display:grid; gap:14px; }
.host .wheel-game{ grid-template-columns:minmax(250px,36%) minmax(0,1fr); align-items:start; }
.wheel-dialPanel{ text-align:center; }
.wheel-dial{ position:relative; width:min(100%,420px); margin:auto; aspect-ratio:1; }
.wheel-dial svg{ display:block; width:100%; height:100%; overflow:visible; filter:drop-shadow(0 7px 14px #050318aa); }
.wheel-dial svg.wheel-spin{ transition:transform 1.85s cubic-bezier(.15,.67,.18,1); }
.wheel-dial text{ text-anchor:middle; dominant-baseline:middle; fill:white; font:800 10px system-ui,sans-serif; }
.wheel-rim{ fill:none; stroke:#fbe3a0; stroke-width:7; }
.wheel-hub{ fill:#1a1236; stroke:#fbe3a0; stroke-width:5; }
.wheel-pointer{
  position:absolute; z-index:1; top:-3px; left:50%; translate:-50% 0; width:25px; height:32px;
  background:#ffe090; clip-path:polygon(0 0,100% 0,50% 100%);
}
.wheel-landed{ margin:12px 0 0; color:#ffe091; font-size:22px; font-weight:800; }
.wheel-play{ display:flex; flex-direction:column; gap:12px; }
.wheel-meta{ display:flex; align-items:center; gap:8px; }
.wheel-board{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 12px;
  padding:clamp(8px,1.5vw,18px); min-height:84px; border:1px solid #5f83c4; border-radius:16px; background:#101938;
}
.wheel-word{ display:flex; flex-wrap:wrap; justify-content:center; gap:3px; max-width:100%; }
.wheel-letter{
  display:grid; place-items:center; width:clamp(18px,3.1vw,38px); aspect-ratio:4/5;
  border:1px solid #bdf7eb; border-radius:6px; background:#bdf7eb; color:#142a42;
  font-size:clamp(14px,2.2vw,29px); font-weight:800;
}
.wheel-letter.is-covered{ background:#264981; border-color:#739bd8; }
.wheel-letter.is-hint{ background:#ffdb83; border-color:#ffeab1; color:#3b2608; }
.wheel-hint{ margin:0; color:#ffe3a0; font-size:14px; font-weight:700; }
.wheel-player,.wheel-message{ margin:0; overflow-wrap:anywhere; }
.wheel-player{ color:#ffdfa0; font-size:18px; font-weight:800; }
.wheel-message{ min-height:1.4em; color:#f0edff; line-height:1.4; }
.wheel-controls,.wheel-actions,.wheel-finishActions{ display:grid; gap:9px; }
.wheel-actions{ grid-template-columns:repeat(auto-fit,minmax(124px,1fr)); }
.wheel-shell .btn{ min-height:44px; padding:8px 13px; font-size:15px; }
.wheel-shell .btn:disabled,.wheel-keys button:disabled{ opacity:.48; cursor:default; }
.wheel-keys{ display:grid; grid-template-columns:repeat(auto-fit,minmax(40px,1fr)); gap:5px; }
.wheel-keys:empty{ display:none; }
.wheel-keys button{
  min-height:44px; border:1px solid #a4bdff; border-radius:10px;
  background:#25477c; color:#fff; font-size:18px; font-weight:800; cursor:pointer;
}
.wheel-keys button:enabled:active{ background:#3960a4; }
.wheel-shell button:focus-visible{ outline:2px solid #ffe090; outline-offset:2px; }
.wheel-scores,.wheel-rank{ display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.wheel-scores{ grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); }
.wheel-scores li,.wheel-rank li{
  display:flex; align-items:center; gap:8px; min-width:0; padding:7px 9px; border-radius:11px;
  background:#21183f; border:1px solid #67558e; font-size:14px;
}
.wheel-scores li.is-active,.wheel-rank li:first-child{ border-color:#e3bc68; background:#45311e; }
.wheel-scores li span,.wheel-rank li span{ min-width:0; overflow-wrap:anywhere; }
.wheel-scores li b,.wheel-rank li b{ margin-left:auto; color:#ffe3a0; white-space:nowrap; }
.wheel-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); gap:7px; margin:14px 0; }
.wheel-stats div{ padding:9px; border-radius:10px; background:#251c41; border:1px solid #645288; }
.wheel-stats dd{ margin:0; color:#ffe3a0; font-size:21px; font-weight:800; }
.wheel-finishActions{ grid-template-columns:repeat(auto-fit,minmax(132px,1fr)); }
.play .wheel-head{ gap:9px; padding:8px; }
.play .wheel-head img{ width:38px; height:38px; }
.play .wheel-head h1{ font-size:clamp(18px,5.5vw,27px); }
.play .wheel-round{ padding:4px 6px; font-size:12px; }
.play .wheel-letter{ width:clamp(16px,5.3vw,27px); font-size:clamp(12px,3.8vw,19px); }
@media (max-width:720px){
  .host .wheel-game{ grid-template-columns:1fr; }
  .host .wheel-dial{ width:min(55vw,260px); }
}
@media (prefers-reduced-motion:reduce){
  .wheel-dial svg.wheel-spin{ transition:none; }
}
