/* click-wheel.css: the Click Wheel. An original handheld shape (not a copy of any product): a deep green pebble with a plum ring and a cream screen.
   Colors come from the clickwheel theme in /assets/site.css. */
.dial-layout { display: flex; justify-content: center; margin: 1rem 0 2.5rem; }

.dial-device {
  width: min(21rem, 100%);
  background: linear-gradient(160deg, #127a5a 0%, #0b5e44 55%, #08452f 100%);
  border: 4px solid #1d1d1f;
  border-radius: 38% 38% 46% 46% / 22% 22% 34% 34%;
  padding: 1.6rem 1.4rem 3.4rem;
  box-shadow: 8px 10px 0 #1d1d1f;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}

.dial-screen {
  width: 100%;
  background: #fff8e1; color: #1d1d1f;
  border: 4px solid #1d1d1f; border-radius: 14px;
  padding: 0.5rem 0.6rem; min-height: 13.5rem;
  font-family: var(--font-mono); font-size: 0.9rem;
}
.screen-title {
  margin: 0 0 0.3rem; padding-bottom: 0.25rem; border-bottom: 2px solid #1d1d1f;
  font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.screen-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.screen-list li { padding: 0.12rem 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; }
.screen-list li.sel { background: #5a3b8c; color: #ffffff; }
.screen-list li.sel::after { content: " \203A"; float: right; }

.wheel {
  position: relative;
  width: min(15rem, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: #5a3b8c;
  border: 4px solid #1d1d1f;
  touch-action: none; cursor: grab;
}
.wheel:focus-visible { outline: 4px solid #ffcc33; outline-offset: 6px; }
.wheel-ring {
  position: absolute; inset: 2%; border-radius: 50%;
  /* twelve notches that turn with the wheel */
  background: repeating-conic-gradient(from 0deg, #f2efe9 0deg 3deg, transparent 3deg 30deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 80%, #000 81%);
          mask: radial-gradient(circle closest-side, transparent 80%, #000 81%);
  transition: transform 0.12s linear;
  pointer-events: none;
}
.wheel-btn {
  position: absolute; font: inherit; font-family: var(--font-mono); font-weight: 700;
  background: transparent; color: #ffffff; border: 0; cursor: pointer;
  min-width: 44px; min-height: 44px; border-radius: 10px;
}
.wheel-btn:hover { background: rgba(255, 255, 255, 0.15); }
.wheel-btn:focus-visible, .wheel-go:focus-visible { outline: 3px solid #ffcc33; outline-offset: 2px; }
.wheel-back { top: 15%; left: 50%; transform: translateX(-50%); font-size: 0.85rem; }
.wheel-prev { left: 13%; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }
.wheel-next { right: 13%; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }
.wheel-go {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 38%; aspect-ratio: 1; border-radius: 50%;
  font: inherit; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  background: #fff8e1; color: #1d1d1f; border: 4px solid #1d1d1f; cursor: pointer;
}
.wheel-go:active { background: #ffcc33; }
.dial-help { margin: 0; color: #ffffff; font-size: 0.88rem; text-align: center; max-width: 80%; }

.dial-menus { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.dial-menu h3 { margin-top: 0.4rem; color: var(--accent); }
