/* Laser-cut butterfly stage: shared by the login brand panel and the plaza hero.
   The canvas itself is painted by web/js/laser-cut-stage.js; this file only
   handles the frame, HUD and motion-safety. */

.laser-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #05080f;
  isolation: isolate;
}

.laser-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.laser-stage--card {
  aspect-ratio: 5 / 3;
}

.laser-card .laser-stage {
  border-radius: 0;
}

.laser-stage--hero {
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.14);
}

/* ---------- HUD ---------- */

.laser-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 11px;
  pointer-events: none;
  font-family: var(--mono);
  color: #93a1bd;
}

.laser-hud-top,
.laser-hud-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.laser-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 99px;
  background: rgba(5, 10, 18, 0.72);
  color: #a5f3fc;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.laser-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: laser-pulse 1.15s ease-in-out infinite;
}

.laser-live b {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.laser-tag {
  padding: 2px 7px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 99px;
  background: rgba(5, 10, 18, 0.62);
  color: #8fa3bf;
  font-size: 9px;
  white-space: nowrap;
}

.laser-hud-bottom {
  gap: 10px;
}

.laser-progress {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.18);
}

.laser-progress i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #22d3ee, #5b8cff);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.75);
  transition: width 0.12s linear;
}

.laser-readout {
  flex-shrink: 0;
  color: #7f93b0;
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.laser-stage--hero .laser-hud {
  padding: 7px 8px;
}

.laser-stage--hero .laser-readout {
  display: none;
}

.laser-stage--hero .laser-live {
  font-size: 8px;
  padding: 2px 7px;
}

@keyframes laser-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .laser-live i {
    animation: none;
  }

  .laser-progress i {
    transition: none;
  }
}
