/* Small enough to belong to the scene; generous enough to use by touch. */
body.home-page .ambient-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--text-sec, #aba99f);
  font: 400 10px/1.5 var(--sans, sans-serif);
  letter-spacing: .035em;
  cursor: pointer;
  transition: color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

body.home-page .ambient-toggle[hidden] { display: none; }
body.home-page .ambient-toggle:hover { color: var(--text, #e8e3d9); }
body.home-page .ambient-toggle:focus-visible {
  outline: 1px solid var(--accent, #c6ab8c);
  outline-offset: 5px;
}
body.home-page .ambient-toggle:disabled {
  color: var(--text-sec, #aba99f);
  cursor: default;
}

.ambient-toggle__icon {
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  opacity: .75;
}
.ambient-toggle__icon::before,
.ambient-toggle__icon::after {
  content: '';
  position: absolute;
  top: 1px;
  width: 1px;
  height: 8px;
  background: currentColor;
}
.ambient-toggle__icon::before { left: 2px; }
.ambient-toggle__icon::after { right: 2px; }

[data-motion-state='paused'] .ambient-toggle__icon::before {
  top: 0;
  left: 2px;
  width: 0;
  height: 0;
  background: transparent;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}
[data-motion-state='paused'] .ambient-toggle__icon::after { display: none; }
[data-motion-state='reduced'] .ambient-toggle__icon::before {
  top: 4px;
  left: 0;
  width: 10px;
  height: 1px;
}
[data-motion-state='reduced'] .ambient-toggle__icon::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  body.home-page .ambient-toggle { transition: none; }
}
