/* The wheel. Layout only. Every selector starts with .wheel- so nothing
   leaks. Buttons, inputs, the dialog box and the text come from the base
   element rules in css/site.css. */

.wheel-root {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.wheel-root [hidden] { display: none !important; }

.wheel-stage { min-width: 0; text-align: center; }
.wheel-prompt { margin: 0 0 8px; }
.wheel-is-empty .wheel-prompt,
.wheel-is-empty .wheel-hint,
.wheel-is-empty .wheel-side { display: none; }

.wheel-canvas-wrap { width: 100%; }
.wheel-canvas { display: block; margin: 0 auto; touch-action: manipulation; }
.wheel-canvas:focus-visible { outline: 1px dotted #000000; outline-offset: 2px; }

.wheel-caption { min-height: 2.8em; margin: 8px 0 0; }
.wheel-hint { margin: 4px 0 0; font-size: 14px; }

.wheel-side { min-width: 0; }
.wheel-mode { margin: 0 0 12px; }
.wheel-radio { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin-right: 16px; }

.wheel-entries-title { margin: 0 0 8px; }
.wheel-entry-list { margin: 0; padding-left: 0; list-style: none; }
.wheel-entry { margin: 0 0 6px; overflow-wrap: anywhere; }
.wheel-entry-text { font-weight: bold; }
.wheel-blame-list { display: block; padding-left: 18px; font-size: 14px; }
.wheel-blame-name { white-space: nowrap; }
.wheel-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border: 1px solid #000000;
  vertical-align: baseline;
}
.wheel-entry-note { margin: 8px 0 0; font-size: 14px; }

/* screen reader only */
.wheel-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* the winner dialog */
.wheel-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.wheel-dialog p { margin: 0 0 8px; overflow-wrap: anywhere; }
.wheel-win-title { font-weight: bold; }
.wheel-winner { font-weight: bold; font-size: 20px; }
.wheel-fits { color: #cc0000; }
.wheel-win-buttons { margin: 12px 0 0; }

/* the decision, the lineup and the history (wheelpanel.js) */
.wheel-decided-game { font-weight: bold; overflow-wrap: anywhere; }
.wheel-lineup-list,
.wheel-history-list { padding-left: 24px; }
.wheel-lineup-row,
.wheel-history-row { margin: 0 0 4px; overflow-wrap: anywhere; }
.wheel-lineup-game { font-weight: bold; }

@media (max-width: 600px) {
  .wheel-root { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
