/* ไพ่สุ่ม — reuses .picker-input-row/.picker-list/.name-chip from wonglao-core.css
   for the custom-prompt input, and .reset-btn from style.css */

.rc-setup {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  padding-bottom: 12px;
}

.rc-intro {
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.rc-total {
  color: var(--sub);
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
}

.rc-util-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.rc-advanced-label {
  color: var(--sub);
  font-size: 12px;
  margin: 4px 0 8px;
}

.rc-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
}

.rc-list-item:last-child {
  border-bottom: none;
}

.rc-list-del {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--sub);
  font-size: 16px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.rc-draw {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-bottom: 12px;
}

.rc-count {
  color: var(--sub);
  font-size: 13px;
}

.rc-card {
  width: min(80vw, 300px);
  min-height: 200px;
  border-radius: 18px;
  background: linear-gradient(155deg, #7b4fd6, #d6478e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.rc-card.empty {
  background: var(--card);
  font-size: 52px;
}

.rc-card-text {
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.rc-tool-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.rc-tool-btn {
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  min-width: 76px;
  border-radius: 12px;
  cursor: pointer;
}

.rc-tool-btn:active:not(:disabled) {
  background: var(--card);
}

.rc-tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rc-tool-icon {
  font-size: 20px;
}

.rc-tool-label {
  font-size: 11px;
  color: var(--sub);
}

.rc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.rc-overlay.show {
  opacity: 1;
}

.rc-overlay-card {
  width: min(85vw, 340px);
  min-height: 220px;
  border-radius: 22px;
  background: linear-gradient(155deg, #7b4fd6, #d6478e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  transform: scale(0.75);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rc-overlay.show .rc-overlay-card {
  transform: scale(1);
}

.rc-overlay-card span {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.rc-overlay-hint {
  color: var(--sub);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s ease 0.35s;
}

.rc-overlay.show .rc-overlay-hint {
  opacity: 1;
}

.rc-restore-overlay {
  position: fixed;
  inset: 0;
  max-width: var(--app-max-width);
  margin: 0 auto;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding-top: var(--safe-top);
}

.rc-restore-overlay.show {
  opacity: 1;
}

.rc-restore-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.rc-restore-title {
  font-size: 17px;
  font-weight: 700;
}

.rc-restore-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 12px;
}

.rc-restore-actions .wl-action-btn {
  flex: 1;
  padding: 12px 16px;
}

.rc-restore-actions .wl-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rc-restore-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px calc(var(--safe-bottom) + 20px);
}

.rc-restore-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 14px;
}

.rc-restore-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
