.draw-form, .draw-result {
  display: grid;
  gap: 18px;
}
.draw-form .line-actions {
  margin-top: 0;
}
.draw-details {
  min-width: 0;
  font-size: 14px;
}
.draw-details summary {
  cursor: pointer;
  color: var(--pine);
  font-weight: 650;
  width: fit-content;
}
.draw-candidates {
  margin: 10px 0 0;
  padding-inline-start: 21px;
  max-height: 10rem;
  overflow: auto;
  overflow-wrap: anywhere;
}
.draw-mode {
  border: 0;
  padding: 0;
}
.draw-mode legend {
  padding: 0;
  margin-bottom: 6px;
}
.draw-mode-options {
  display: flex;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.draw-mode-options label {
  flex: 1;
  position: relative;
  cursor: pointer;
  text-align: center;
}
.draw-mode-options input {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.draw-mode-options span {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 650;
  border-radius: 6px;
}
.draw-mode-options input:checked + span {
  background: var(--pine);
  color: #fff;
}
.draw-mode-options input:focus-visible + span {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.draw-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.draw-form [hidden] {
  display: none;
}
.draw-fields select, .draw-fields input {
  min-height: 41px;
  font-variant-numeric: tabular-nums;
}
.draw-rule, .draw-spotlight p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.draw-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #d9d6bd;
  background: #f7f2df;
  text-align: center;
  padding: clamp(22px, 5vw, 34px) 16px;
}
.draw-spotlight:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}
.draw-spotlight h3 {
  margin: 0 0 8px;
  font: 650 13px/1.4 var(--sans);
  color: var(--pine);
}
.draw-winner {
  overflow-wrap: anywhere;
  color: var(--pine);
  font: 600 clamp(25px, 5.5vw, 38px)/1.16 var(--serif);
  animation: draw-reveal 380ms cubic-bezier(.22,.75,.25,1) both;
}
.draw-winner + .draw-winner {
  margin-top: 8px;
}
.draw-confetti {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.draw-confetti i {
  position: absolute;
  left: var(--left);
  top: -14px;
  width: 5px;
  height: 10px;
  border-radius: 1px;
  background: #a8492e;
  opacity: 0;
  animation: draw-fall 1050ms var(--delay) ease-in both;
}
.draw-confetti i:nth-child(4n + 1) { background: #d2a850; }
.draw-confetti i:nth-child(4n + 2) { background: #527765; }
.draw-confetti i:nth-child(4n + 3) { background: #c48f87; }
@keyframes draw-reveal {
  from { opacity: 0; transform: translateY(7px) scale(.93); }
  to { opacity: 1; transform: none; }
}
@keyframes draw-fall {
  0% { opacity: 0; transform: translateY(0) rotate(var(--angle)); }
  9% { opacity: 1; }
  80% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--drift), 145px) rotate(calc(var(--angle) + 200deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .draw-confetti { display: none; }
  .draw-winner, .draw-confetti i { animation: none; }
}
.draw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.draw-actions .btn, .draw-actions .text-btn {
  min-height: 40px;
}
.draw-report h3 {
  margin: 0;
  font-size: 17px;
  font-family: var(--serif);
}
.draw-results-list {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}
.draw-results-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.draw-results-list li strong {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.draw-results-list li span {
  flex-shrink: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
