.rl { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.rl-stage { text-align: center; position: sticky; top: 12px; }
.rl-wheel { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 6px auto 0; }
.rl-wheel #wheel { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.rl-pin {
  position: absolute; left: 50%; top: -10px; z-index: 2; width: 0; height: 0; margin-left: -15px; transform-origin: 50% 0;
  border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 34px solid var(--accent);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.rl-go {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 5px solid #fff; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 800; font-size: clamp(14px, 3.4vw, 20px); cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
}
.rl-go:hover { filter: brightness(1.07); }
.rl-go:disabled { filter: grayscale(.5); cursor: default; }
.rl-fx { position: absolute; inset: -12%; width: 124%; height: 124%; pointer-events: none; z-index: 3; }
.rl-result { min-height: 44px; margin: 18px 0 8px; font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.rl-result.win { color: var(--text); font-size: clamp(22px, 5vw, 34px); font-weight: 800; line-height: 1.25; }
.rl-after { justify-content: center; }
.rl-label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.rl-label b { color: var(--text); font-weight: 600; }
.rl-side textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-size: 16px; line-height: 1.5; resize: vertical;
}
.rl-hint { margin: 6px 0 10px; }
.rl-btns { gap: 6px; }
.rl-btns .btn, .rl-hist-head .btn { padding: 7px 12px; font-size: 13px; }
.rl-msg { min-height: 20px; margin: 6px 0; font-size: 13px; color: var(--ok); }
.rl-msg.bad { color: var(--bad); }
.rl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-chip {
  padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.rl-chip:hover { border-color: var(--muted); }
.rl-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rl-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 12px; }
.rl-check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.rl-hist-head { display: flex; justify-content: space-between; align-items: center; }
.rl-hist { margin: 10px 0 0; padding-left: 26px; max-height: 220px; overflow: auto; }
.rl-hist li { margin: 3px 0; overflow-wrap: anywhere; }
.rl-hist li.none { list-style: none; margin-left: -26px; color: var(--muted); font-size: 14px; }
.rl-info h2 { font-size: 17px; margin: 0 0 10px; }
.rl-info ol { margin: 6px 0 0; padding-left: 20px; }
.rl-info li { margin: 4px 0; }
.rl-faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.rl-faq details:first-of-type { border-top: 0; }
.rl-faq summary { cursor: pointer; font-weight: 700; }
.rl-faq p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 860px) {
  .rl { grid-template-columns: 1fr; }
  .rl-stage { position: static; }
}
@media (prefers-reduced-motion: reduce) { .rl-fx { display: none; } }
