/* LITTLESITE · PARTS — guide's look: the coach (guide.js). A ring round
   the thing a step points at, the rest of the desk dimmed around it; the
   step's card beside it; the pointer that does a step for Show me. The
   ring is one colour in every look, a warm yellow with a dark edge, so it
   reads on a white Mac and on the black of the desk in text. Nothing here
   takes a press but the card: the visitor works the desk through the ring. */
.coach-ring {
  position: fixed;
  z-index: 1000002;
  pointer-events: none;
  border: 3px solid #ffcc33;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 22px 6px rgba(255, 204, 51, 0.65), 0 0 0 100vmax rgba(0, 0, 0, 0.32);
  transition: left 0.2s ease, top 0.2s ease, width 0.2s ease, height 0.2s ease;
  animation: coach-pulse 1.4s ease-in-out infinite;
}
.coach-ring.off { display: none; }
@keyframes coach-pulse { 50% { border-color: #fff3c4; } }

.coach-card {
  position: fixed;
  z-index: 1000003;
  box-sizing: border-box;
  padding: 14px 16px 12px;
  background: #fffdf5;
  color: #1d1b16;
  border: 2px solid #ffcc33;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font: 14px/1.45 'Inter', system-ui, sans-serif;
  transition: left 0.2s ease, top 0.2s ease;
}
.coach-card.ok { border-color: #2e9d57; }
.coach-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.coach-title { font-weight: 700; }
.coach-count { margin-left: auto; color: #6b6458; }
.coach-end {
  width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: #6b6458;
  font: inherit; font-size: 14px; cursor: pointer;
}
.coach-end:hover, .coach-end:focus-visible { background: #f1ead6; color: #1d1b16; }
.coach-dots { display: flex; gap: 4px; margin: 8px 0 6px; }
.coach-dots span { flex: 1; height: 4px; border-radius: 2px; background: #e8dfc5; }
.coach-dots span.done { background: #2e9d57; }
.coach-dots span.now { background: #e0a400; }
.coach-say { margin: 0 0 10px; font-size: 15px; }
.coach-say kbd {
  padding: 1px 6px;
  border: 1px solid #c9bf9f;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  font: 600 13px 'JetBrains Mono', ui-monospace, monospace;
}
.coach-card.ok .coach-say { color: #1f6e3d; }
.coach-buttons { display: flex; gap: 8px; justify-content: flex-end; }
.coach-buttons button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font: 600 13px 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.coach-show { background: #fff; color: #1d1b16; border: 1px solid #c9bf9f; }
.coach-next { background: #1d1b16; color: #fffdf5; border: 1px solid #1d1b16; }
.coach-show:hover, .coach-show:focus-visible { border-color: #e0a400; }
.coach-next:hover, .coach-next:focus-visible { background: #3a352a; }
.coach-card.working .coach-show { opacity: 0.6; pointer-events: none; }
.coach-card.finished { text-align: center; }

/* the pointer that shows a step: an arrow that travels, and a ring when it presses */
.coach-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000004;
  pointer-events: none;
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.3, 0.7, 0.4, 1);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.coach-cursor.on { opacity: 1; }
.coach-cursor::after {
  content: "";
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #ffcc33;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.15s, transform 0.15s;
}
.coach-cursor.press::after { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .coach-ring { animation: none; transition: none; }
  .coach-card { transition: none; }
}
