.fifteen {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  width: 100%;
}

.fifteen-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.fifteen-question {
  margin: 0;
  max-width: 46ch;
  text-align: center;
  text-wrap: balance;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-ink);
}

.fifteen-intro {
  margin: 0;
  max-width: 46ch;
  text-align: center;
  text-wrap: balance;
  color: var(--c-ink-muted);
}

/* --- The two steps, up front ---------------------------------------------- */

.fifteen-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-3);
}

.preview-card {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--hue-tint);
  border-top: 4px solid var(--hue);
  color: var(--c-ink);
}

.preview-name {
  margin: 0 0 var(--space-1);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--hue);
}

.preview-title {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

/* --- The stepper ---------------------------------------------------------- */

.fifteen-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.fifteen-step {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-ink-muted);
}

.step-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--hue);
  background: transparent;
}

.fifteen-step.is-done .step-dot,
.fifteen-step.is-current .step-dot {
  background: var(--hue);
}

.fifteen-step.is-current {
  color: var(--c-ink);
  font-weight: 700;
}

/* --- The step panel ------------------------------------------------------- */

.fifteen-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: clamp(var(--space-6), 4vw, var(--space-12)) var(--space-6);
  border-radius: var(--radius);
  background: var(--hue-tint);
  border-top: 6px solid var(--hue);
  animation: fifteen-in 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fifteen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fifteen-panel {
    animation: none;
  }
}

.fifteen-meta {
  margin: 0;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--hue);
}

.fifteen-title {
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

.fifteen-prompt {
  margin: 0;
  max-width: 46ch;
  text-align: center;
  text-wrap: balance;
  color: var(--c-ink-muted);
  font-size: var(--text-lg);
}

.fifteen-clock {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.clock-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.clock-time.is-up {
  color: var(--c-abort);
}

.fifteen-bar {
  width: 100%;
  max-width: 32rem;
  height: 6px;
  border-radius: 999px;
  background: var(--c-paper);
  overflow: hidden;
}

.fifteen-bar-fill {
  height: 100%;
  background: var(--hue);
  transform-origin: left center;
  transition: transform 250ms linear;
}

/* --- Finished ------------------------------------------------------------- */

.fifteen-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
  text-align: center;
}

.done-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-confirm);
}

.done-body {
  margin: 0;
  color: var(--c-ink-muted);
  text-wrap: balance;
}

/* --- Setup ---------------------------------------------------------------- */

.fifteen-setup {
  border-top: 1px solid var(--c-line);
  padding-top: var(--space-6);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.fifteen-setup .field {
  align-items: center;
}

.fifteen-hint {
  margin: 0;
  color: var(--c-ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.fifteen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* --- Fullscreen ----------------------------------------------------------- */

.toy.is-fullscreen .fifteen {
  justify-content: center;
  height: 100%;
}

.toy.is-fullscreen .fifteen-setup {
  opacity: 0;
  transition: opacity 200ms ease;
}

.toy.is-fullscreen .fifteen-setup:focus-within,
.toy.is-fullscreen:hover .fifteen-setup {
  opacity: 1;
}
