/* Hub warehouse trial. Layers on the live Nexus.
   Does not restyle the gate, and does not add a second pulse.
   Motion itself is in hub-viz-trial.js (transform + opacity, one shot).
   prefers-reduced-motion keeps the same emphasis as a static hairline. */

#hub-viz-next {
  margin: 0 0 16px;
  padding: 8px 12px;
  max-width: 100%;
  border-left: 1px solid rgba(203, 213, 225, 0.55);
  color: var(--text, #f1f5f9);
  font-family: var(--ui, "Noto Serif TC", serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
}

#bliss-cg-title,
.gate-card h2 {
  --viz-line: 0;
}

#bliss-cg-title::after,
.gate-card h2::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.28em;
  background: rgba(223, 168, 56, 0.62);
  transform: scaleX(var(--viz-line, 0));
  transform-origin: left center;
  pointer-events: none;
}

html.hub-viz-motion .gate-card h2,
html.hub-viz-motion #hub-viz-next {
  will-change: transform, opacity;
}

html.hub-viz-motion .gate-card h2:focus-visible,
html.hub-viz-motion #googleBtn:focus-visible,
html.hub-viz-motion #demoBtn:focus-visible,
html.hub-viz-motion #bliss-cg-agree:focus-visible {
  opacity: 1 !important;
  transform: none !important;
}

#googleBtn,
#demoBtn {
  min-height: 44px;
  min-width: 44px;
}

#gate.show #googleBtn,
#gate.show #demoBtn {
  opacity: 1;
  visibility: visible;
}

#bliss-cg-agree {
  min-height: 52px;
  min-width: 44px;
}

@media (max-width: 390px) {
  #bliss-cg-gate .bliss-cg-card {
    max-height: min(78dvh, 100%) !important;
  }
  #hub-viz-next {
    margin-bottom: 12px;
    padding: 6px 8px 6px 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bliss-cg-title,
  .gate-card h2 { --viz-line: 1; }
  #hub-viz-next {
    background: rgba(223, 168, 56, 0.06);
    border-left-color: rgba(251, 191, 36, 0.85);
  }
  #bliss-cg-gate .bliss-cg-check-card {
    box-shadow: inset 0 1px 0 rgba(223, 168, 56, 0.45);
  }
}

html.hub-viz-reduce #bliss-cg-title,
html.hub-viz-reduce .gate-card h2 { --viz-line: 1; }

html.hub-viz-reduce #hub-viz-next {
  background: rgba(223, 168, 56, 0.06);
  border-left-color: rgba(251, 191, 36, 0.85);
}

html.hub-viz-reduce #bliss-cg-gate .bliss-cg-check-card {
  box-shadow: inset 0 1px 0 rgba(223, 168, 56, 0.45);
}

html.hub-viz-ready #boot {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
