/* assets/step-player.css — shared step player and camera-view controls. */
:root {
  --step-brand: var(--brand, #2563eb);
  --step-panel: var(--panel, #ffffff);
  --step-ink: var(--ink, #1d1d1f);
  --step-ink-3: var(--ink-3, #6b7280);
  --step-border: var(--border, #e5e7eb);
}
@media (prefers-color-scheme: dark) {
  :root {
    --step-brand: var(--brand, #60a5fa);
    --step-panel: var(--panel, #1b1e24);
    --step-ink: var(--ink, #f3f4f6);
    --step-ink-3: var(--ink-3, #94a3b8);
    --step-border: var(--border, #2b303a);
  }
}

.step-player { display: grid; gap: 10px; width: 100%; color: var(--step-ink); }
.step-player__step { display: flex; align-items: baseline; gap: 12px; }
.step-player__number {
  font-size: 15px; font-weight: 700; color: var(--step-brand); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.step-player__text { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; }
.step-player__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-player__button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 9px 18px;
  border-radius: 999px; border: 1px solid var(--step-border); background: var(--step-panel);
  color: var(--step-ink); min-width: 52px;
}
.step-player__button.primary {
  background: var(--step-brand); border-color: var(--step-brand); color: #fff; min-width: 96px;
}
.step-player__button:disabled { opacity: .4; cursor: default; }
.step-player__button.fly { background: #34a853; border-color: #34a853; color: #fff; }
.step-player__button[hidden] { display: none; }
.step-player__button:focus-visible, .step-player__slider:focus-visible,
.step-player__dot:focus-visible, .scene-view-btn:focus-visible {
  outline: 2px solid var(--step-brand); outline-offset: 2px;
}
.step-player__slider { flex: 1 1 160px; accent-color: var(--step-brand); min-width: 100px; }
.step-player__dots { display: flex; gap: 6px; flex-wrap: wrap; }
.step-player__dot {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--step-border);
  background: var(--step-panel); color: var(--step-ink-3);
  font: 600 12px/24px Inter, system-ui, sans-serif; text-align: center; cursor: pointer; padding: 0;
}
.step-player__dot.done { background: color-mix(in srgb, var(--step-brand) 18%, var(--step-panel)); color: var(--step-ink); }
.step-player__dot.current { background: var(--step-brand); border-color: var(--step-brand); color: #fff; }

.scene-view-tools {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: flex; align-items: center; gap: 6px;
}
.scene-view-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--step-border); background: color-mix(in srgb, var(--step-panel) 90%, transparent);
  color: var(--step-ink); font: 600 22px/1 Inter, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 2px 8px rgb(15 23 42 / .12); touch-action: manipulation;
}
/* one icon set (ui/icons.js), centred the same in a <button> and in the print <a> */
.scene-view-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.scene-view-btn svg { width: 20px; height: 20px; display: block; }
/* the print button is a link: keep the buttons' ink, not the site's link blue */
.scene-view-tools a.scene-view-btn, .scene-view-tools a.scene-view-btn:visited { color: var(--step-ink); }
.scene-view-btn:hover { background: var(--step-panel); }

/* Origami: which colour is the paper's front and which its back (origami/viewer.js) */
.ori-legend {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  display: flex; gap: 10px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--step-border); background: color-mix(in srgb, var(--step-panel) 88%, transparent);
  color: var(--step-ink); font: 600 13px/1 Inter, system-ui, sans-serif;
  box-shadow: 0 2px 8px rgb(15 23 42 / .10); pointer-events: none;
}
.ori-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.ori-legend__swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgb(15 23 42 / .25); }

@media (max-width: 600px) {
  .step-player__text { font-size: 17px; }
  .step-player__button { font-size: 14px; padding: 8px 14px; }
  .scene-view-tools { top: 8px; right: 8px; }
  .ori-legend { top: 10px; left: 8px; gap: 8px; padding: 5px 8px; font-size: 12px; }
  .scene-view-btn { width: 36px; height: 36px; font-size: 20px; }
}
