.td-root {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.td-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.td-spinner { max-width: min(200px, 26vh); }

@media (max-width: 480px) {
  .td-card { padding: 16px; min-height: 160px; }
  .td-prompt { font-size: 18px; }
}

.td-prompt {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.td-kind {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.td-kind.truth { background: #dbeafe; color: var(--primary); }
.td-kind.dare { background: #fee2e2; color: var(--danger); }

.td-names {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.td-name-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--card-2);
}

.td-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.td-spinner {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ef4444 0deg 90deg,
    #3b82f6 90deg 180deg,
    #10b981 180deg 270deg,
    #f59e0b 270deg 360deg
  );
  margin: 0 auto;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.td-spinner::before {
  content: "";
  position: absolute;
  inset: 18%;
  background: #fff;
  border-radius: 50%;
}
.td-spinner > span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}
