.draft-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.names-section {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 240px;
  max-width: 300px;
}

.names-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
}

#name-form {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

#name-input {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

#name-input:focus {
  border-color: var(--accent);
}

#name-form button {
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

#name-form button:hover {
  background: var(--accent-hover);
}

#name-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 320px;
  overflow-y: auto;
}

#name-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.85rem;
}

#name-list li button {
  background: none;
  border: none;
  color: var(--accent2);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}

#name-list li button:hover {
  color: var(--accent2-hover);
}

.results-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  min-width: 260px;
}

#randomize-btn {
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#randomize-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.03);
}

#randomize-btn:disabled {
  background: var(--border);
  color: var(--text-dim);
  cursor: not-allowed;
}

#draft-order {
  list-style: none;
  counter-reset: pick;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 300px;
}

#draft-order li {
  counter-increment: pick;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}

#draft-order li.revealed {
  opacity: 1;
  transform: translateY(0);
}

#draft-order li::before {
  content: counter(pick);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

#draft-order li:first-child::before {
  background: var(--accent2);
}

#timestamp {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-height: 1.1rem;
}

@media (max-width: 560px) {
  .names-section {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }

  .results-section {
    min-width: unset;
    width: 100%;
  }

  #draft-order {
    max-width: unset;
  }
}

/* Prevent iOS auto-zoom on focus */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px !important; }
}
