/* Non-interactive gold sparks on either side of the header's existing rule. */
[data-spark-header] { isolation: isolate; }
[data-spark-header]:not(.wrap) { --spark-control-inset: 20px; }
.topbar[data-spark-header] { --spark-control-drop: 12px; }
.phanomaly-demo-bar[data-spark-header] { padding-bottom: 24px; }
.header-magic {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  user-select: none;
}
.header-magic[data-direction="up"] {
  top: auto;
  bottom: 0;
  transform: scaleY(-1);
  z-index: -1;
}
.header-magic-toggle {
  position: absolute;
  right: var(--spark-control-inset, 0px);
  bottom: calc(-16px - var(--spark-control-drop, 0px));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #6b532d;
  border-radius: 50%;
  background: #100d08;
  color: #edc67e;
  cursor: pointer;
  opacity: .75;
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.header-magic-toggle[hidden] { display: none; }
.header-magic-toggle:hover, .header-magic-toggle:focus-visible {
  opacity: 1;
  color: #fff1c7;
  border-color: #edc67e;
}
.header-magic-toggle:focus-visible { outline: 2px solid #edc67e; outline-offset: 4px; }
.header-magic-toggle::before {
  content: '';
  width: 8px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.header-magic-toggle[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 5px solid transparent;
  border-left: 7px solid currentColor;
  border-right: 0;
}
@media (prefers-reduced-motion: reduce) {
  .header-magic, .header-magic-toggle { display: none; }
}
@media print {
  .header-magic, .header-magic-toggle { display: none !important; }
}
