/* =========================================================
   stretches.css
   ========================================================= */

#chooser, #player, #done { animation: st-in 700ms var(--ease) both; }
@keyframes st-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
h1:focus { outline: none; }

/* Routine choices */
.routine-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.routine-btn {
  display: block;
  width: 100%;
  padding: var(--space-3);
  font: inherit;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--slow) var(--ease), border-color var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.routine-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(232, 196, 143, 0.4);
  transform: translateY(-2px);
}
.routine-btn strong { display: block; font-weight: 500; font-size: 1.1rem; }
.routine-btn span { font-size: 0.9rem; color: var(--text-muted); }

/* Player */
.st-progress {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* The drawing sits inside the countdown ring */
.st-stage {
  position: relative;
  width: min(62vw, 220px);
  aspect-ratio: 1;
  margin: var(--space-3) auto 0;
}
.st-art {
  position: absolute;
  inset: 20%;
  width: 60%;
  height: 60%;
  fill: none;
  stroke: var(--cream-100);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.st-art .accent { stroke: var(--honey); stroke-width: 2; }

.st-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);   /* start at the top */
}
.st-ring circle { fill: none; stroke-width: 2.5; }
.st-ring-track { stroke: rgba(244, 234, 216, 0.1); }
.st-ring-fill {
  stroke: var(--dusty-300);
  stroke-linecap: round;
  stroke-dasharray: 289.03;    /* 2 × π × 46 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.25s linear;
}

.st-time {
  margin: var(--space-2) 0 0;
  font-size: 1.6rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.st-how {
  max-width: 30em;
  margin: var(--space-1) auto 0;
  color: var(--text-muted);
}
.st-switch {
  min-height: 1.6em;
  margin-top: var(--space-1);
  color: var(--honey);
  font-weight: 500;
}
.st-options { margin-top: var(--space-2); }
