/* Registration-only artwork; never changes the shared account/form styles. */
.portal-scene {
  isolation: isolate;
  contain: layout paint;
}

.portal-art,
.portal-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.portal-art { object-fit: contain; }
.portal-scene canvas { z-index: 1; }

.portal-toggle {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #b69cc638;
  border-radius: 50%;
  background: #110c1de6;
  color: #dcc8ed;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.portal-toggle[hidden] { display: none; }
.portal-toggle:hover { background: #30203f; border-color: #c27eff; }
.portal-toggle:focus-visible { outline: 2px solid #d4a0ff; outline-offset: 3px; }
.portal-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.portal-play { display: none; }
.portal-toggle[aria-pressed="true"] .portal-pause { display: none; }
.portal-toggle[aria-pressed="true"] .portal-play { display: block; }

@media (max-width: 680px) {
  .account-visual.portal-scene {
    display: block;
    height: 190px;
    min-height: 0;
    margin: 2px -8px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-toggle { transition: none; }
}
