/* Колесо цвета надписи (ui/story-wheel.js): шторка снизу поверх
   экрана ввода текста. Сами цвета SV-поля и полосы оттенка —
   themes.css (--wheel-*), сюда их не льём литералом. */

.story-wheel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 33;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-4) var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -.8cqw 2.4cqw var(--sheet-shadow);
}

.story-wheel__sv {
  position: relative;
  height: 40cqw;
  border-radius: var(--r-md);
  background-image:
    linear-gradient(to top, var(--wheel-black), transparent),
    linear-gradient(to right, var(--wheel-white), transparent);
  touch-action: none;
}

.story-wheel__hue {
  position: relative;
  height: var(--sp-6);
  border-radius: var(--r-sm);
  background: var(--wheel-hue);
  touch-action: none;
}

.story-wheel__cursor {
  position: absolute;
  top: 0;
  width: var(--sp-6);
  height: var(--sp-6);
  border: 2px solid var(--wheel-white);
  border-radius: 50%;
  translate: -50% -50%;
  box-shadow: 0 0 0 1px var(--card-veil);
  pointer-events: none;
}

.story-wheel__hue .story-wheel__cursor { top: 50%; background: none; }

.story-wheel__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.story-wheel__pick,
.story-wheel__done {
  flex: none;
  display: grid;
  place-items: center;
  border: none;
}

.story-wheel__pick {
  width: var(--sp-10);
  height: var(--sp-10);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
}

.story-wheel__pick .icon { width: var(--fs-md); height: var(--fs-md); }

.story-wheel__recent {
  flex: 1;
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.story-wheel__recent::-webkit-scrollbar { display: none; }

.story-wheel__swatch {
  flex: none;
  width: var(--sp-8);
  height: var(--sp-8);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.story-wheel__done {
  height: var(--sp-10);
  padding: 0 var(--sp-4);
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
