/* Nova Humanoid Stage — overlay styling (Cuzvis, 2026-11-06).
   A dark, deep-blue room for the particle humanoid: soft radial glow
   behind the figure, a floor glow she stands in, her name in spaced
   letters at the bottom. The app's own chrome stays untouched — the
   stage is a fixed overlay shown only while she is summoned. */

#humanoid-stage {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(38, 92, 190, 0.28), rgba(4, 8, 18, 0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 110%, rgba(16, 44, 110, 0.35), rgba(3, 6, 14, 0) 60%),
    #03060e;
  overflow: hidden;
}
#humanoid-stage.open { display: block; }

#humanoid-canvas {
  position: absolute;
  inset: 0;
  display: block;
}

/* the pool of light she stands in */
#humanoid-stage .floor-glow {
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 46vmin;
  height: 9vmin;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(90, 160, 255, 0.35), rgba(90, 160, 255, 0) 70%);
  pointer-events: none;
}

#humanoid-stage .humanoid-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(3.2% + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: rgba(180, 215, 255, 0.85);
  font-family: inherit;
  pointer-events: none;
}
#humanoid-stage .humanoid-caption .name {
  font-size: 15px;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
}
#humanoid-stage .humanoid-caption .hint {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(150, 190, 240, 0.5);
}

#humanoid-stage .humanoid-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(140, 190, 255, 0.35);
  background: rgba(10, 22, 46, 0.55);
  color: rgba(200, 228, 255, 0.9);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#humanoid-stage .humanoid-close:hover {
  background: rgba(30, 70, 150, 0.6);
}

#humanoid-stage .humanoid-fallback {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(190, 220, 255, 0.85);
  font-size: 15px;
  padding: 0 24px;
}

/* gesture controls — a quiet row of ghost buttons above her name */
#humanoid-stage .humanoid-gestures {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(9.5% + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  gap: 10px;
}
#humanoid-stage .humanoid-gestures button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 190, 255, 0.30);
  background: rgba(10, 22, 46, 0.45);
  color: rgba(195, 225, 255, 0.88);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
#humanoid-stage .humanoid-gestures button:hover {
  background: rgba(30, 70, 150, 0.55);
}

/* alignment pass (2026-11-09): 44px targets, canvas centered */
#humanoid-canvas { left: 0; top: 0; }
#humanoid-stage .humanoid-close { width: 44px; height: 44px; top: calc(14px + env(safe-area-inset-top, 0px)); }
#humanoid-stage .humanoid-gestures button { min-height: 44px; padding: 10px 16px; }
@media (max-width: 520px) {
  #humanoid-stage .humanoid-gestures { flex-wrap: wrap; padding: 0 12px; }
}

/* header summon button — inherits the head-actions icon look */
#humanoid-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
