.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.wheel-stage { overflow: hidden; }
.wheel-disc { position: relative; display: grid; place-items: center; width: min(100% - 16px, 580px); margin: 6px auto 0; aspect-ratio: 1; }
.wheel-disc canvas { display: block; width: 100%; height: 100%; border-radius: 50%; grid-area: 1 / 1; box-shadow: 0 8px 16px #0f0914bb; }
.wheel-pointer { position: absolute; z-index: 1; top: 0; left: 50%; transform: translateX(-50%); width: 27px; height: 29px; background: #ffbca6; clip-path: polygon(0 0,100% 0,50% 100%); pointer-events: none; }
.wheel-spin { position: relative; z-index: 1; grid-area: 1 / 1; border-radius: 50%; width: 18%; aspect-ratio: 1; min-width: 48px; padding: 0; font-size: clamp(.9rem, 3vw, 1.25rem); box-shadow: 0 0 0 5px #1c1223,0 2px 15px #100814; }
.wheel-result { min-height: 114px; margin-top: 12px; padding: 18px 15px 8px; border-top: 1px solid var(--border); text-align: center; overflow-wrap: anywhere; }
.wheel-result h2 { margin: 4px 0 7px; font-size: clamp(1.9rem, 4vw, 2.85rem); }
.wheel-settings fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.wheel-settings legend { font: 800 1.9rem/1 var(--heading); padding: 0; margin-bottom: 13px; }
.wheel-settings p { font-size: .9375rem; }
.custom-option input { min-width: 0; padding: 7px 8px; border: 1px solid #4a3b51; border-radius: 6px; color: var(--fg); background: #130f17; }
.wheel-swatch { width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid #ffffff66; border-radius: 3px; }
.wheel-outcomes { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.wheel-outcomes summary { cursor: pointer; font-weight: 700; }
#wheel-odds { max-height: 280px; overflow: auto; margin: 8px 0 0; padding: 0; list-style: none; }
#wheel-odds li { display: grid; grid-template-columns: 13px minmax(0,1fr) auto; align-items: baseline; gap: 7px; border-bottom: 1px solid var(--border); padding: 7px 2px; font-size: .9rem; overflow-wrap: anywhere; }
#wheel-odds .wheel-swatch { align-self: start; margin-top: 4px; }
.wheel-odds-number { color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.custom-option { display: grid; grid-template-columns: minmax(70px,1fr) minmax(53px, .42fr) 39px auto; gap: 5px; align-items: end; margin-top: 10px; }
.custom-option label { display: grid; gap: 3px; min-width: 0; font-size: .875rem; color: var(--muted); }
.custom-option input[type="color"] { width: 100%; height: 42px; padding: 3px; cursor: pointer; }
.custom-option button { padding: 7px; min-height: 42px; }
.wheel-edit-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
#wheel-save-status { margin-top: 9px; }
#wheel-file-status:not(:empty) { margin-top: 8px; }
@media (max-width: 760px) {
  .wheel-layout { grid-template-columns: 1fr; }
  .wheel-stage, .wheel-settings { padding: 13px; }
}
@media (max-width: 440px) {
  .top nav:has(a[href*="wheel.html"]) { column-gap: 10px; justify-content: flex-start; }
}
