/* MOSAIC Homepage Overall Principle — required component styles only.
   Compared with the existing project style.css:
   - No global body, typography, button, or magnetic-cursor rules are duplicated.
   - The existing style.css already supplies .magnetic-pointer / .magnetic-hidden.
   - Test-page-only rules are kept separately in test/test-shell.css.
*/

#mosaic-allprinciple-animation,
[data-mosaic-allprinciple] {
  --ap-bg: #000;
  --ap-text: #fff;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  min-width: 0;
  overflow: visible;
}

[data-mosaic-allprinciple] svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: manipulation;
}

[data-mosaic-allprinciple] .ap-hit {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
  outline: none !important;
}

[data-mosaic-allprinciple] .ap-site-label,
[data-mosaic-allprinciple] .ap-choice,
[data-mosaic-allprinciple] .ap-enzyme-label,
[data-mosaic-allprinciple] .ap-inducer,
[data-mosaic-allprinciple] .ap-outcome,
[data-mosaic-allprinciple] .ap-error,
[data-mosaic-allprinciple] .ap-restart-label {
  user-select: none;
  -webkit-user-select: none;
}

[data-mosaic-allprinciple] .ap-restart {
  cursor: pointer;
}

[data-mosaic-allprinciple] .ap-focus-corners line {
  vector-effect: non-scaling-stroke;
}

[data-mosaic-allprinciple] .ap-site-glow {
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 7px currentColor);
}

[data-mosaic-allprinciple] .ap-stage-note {
  fill: rgba(255,255,255,.72);
}

@media (max-width: 720px) {
  #mosaic-allprinciple-animation,
  [data-mosaic-allprinciple] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-mosaic-allprinciple] * {
    scroll-behavior: auto !important;
  }
}

[data-mosaic-allprinciple] .ap-footer-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px 16px;
  text-align: center;
}

[data-mosaic-allprinciple] .ap-footer-note {
  max-width: 1040px;
  font: 400 14px/1.5 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: rgba(255,255,255,.82);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}

[data-mosaic-allprinciple] .ap-footer-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-mosaic-allprinciple] .ap-footer-note-bxb-detail {
  font-weight: 700;
}
