/* The 3D showcase shares the existing theme's typography and warm palette. */
.nz-machine { background: var(--nz-bg-2); overflow: hidden; }
.nz-machine [hidden] { display: none !important; }
.nz-machine__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.nz-machine__intro .nz-label { margin-bottom: 1.5rem; }
.nz-machine__lead { color: var(--nz-fg-mid); font-size: .9rem; line-height: 2.1; padding-bottom: .4rem; }
.nz-machine__stage { position: relative; margin-top: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--nz-line); }
.nz-machine__caption { position: absolute; z-index: 2; top: 1.5rem; left: 0; font-size: .64rem; letter-spacing: .16em; color: var(--nz-fg-mid); pointer-events: none; }
.nz-machine__caption span { margin-right: 1.1rem; color: var(--nz-acc); }
.nz-machine__viewport { position: relative; width: 100%; height: clamp(350px, 42vw, 540px); touch-action: pan-y; }
.nz-machine__poster, .nz-machine__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.nz-machine__poster { object-fit: contain; padding: 1.6rem 0 .5rem; }
.nz-machine__canvas { opacity: 0; pointer-events: none; outline-offset: -5px; }
.nz-machine.is-ready .nz-machine__canvas { opacity: 1; }
.nz-machine.is-ready .nz-machine__poster { visibility: hidden; }
.nz-machine.is-active .nz-machine__canvas { pointer-events: auto; }
.nz-machine__launch { position: absolute; z-index: 3; bottom: 3.7rem; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: .7rem; }
.nz-machine__start { display: inline-flex; align-items: center; gap: 2.4rem; padding: 1.05rem 1.8rem; border-radius: 999px; color: #fff; background: var(--nz-acc); font: inherit; font-size: .85rem; font-weight: 700; box-shadow: 0 8px 28px #16181c15; cursor: pointer; white-space: nowrap; transition: background .2s; }
.nz-machine__start:hover { background: var(--nz-fg); }
.nz-machine__start:disabled { cursor: progress; opacity: .8; }
.nz-machine__progress { appearance: none; height: 3px; width: 140px; border: 0; background: var(--nz-line); accent-color: var(--nz-acc); }
.nz-machine__progress::-webkit-progress-bar { background: var(--nz-line); border-radius: 3px; }
.nz-machine__progress::-webkit-progress-value { background: var(--nz-acc); border-radius: 3px; }
.nz-machine__toolbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .3rem; flex-wrap: wrap; min-height: 48px; margin-top: -1rem; }
.nz-machine__toolbar button { min-width: 44px; min-height: 44px; border: 1px solid var(--nz-line); border-radius: 999px; background: #fff; color: var(--nz-fg); padding: .55rem .85rem; font: inherit; font-size: .73rem; cursor: pointer; }
.nz-machine__toolbar button:hover, .nz-machine__toolbar button[aria-pressed="true"] { background: var(--nz-fg); border-color: var(--nz-fg); color: #fff; }
.nz-machine__toolbar .nz-machine__finish { border-color: var(--nz-acc); color: var(--nz-acc); }
.nz-machine__status { min-height: 2.5rem; margin-top: .9rem; color: var(--nz-fg-mid); font-size: .72rem; text-align: center; line-height: 1.8; }
.nz-machine__noscript { text-align: center; font-size: .8rem; color: var(--nz-fg-mid); }
.nz-machine button:focus-visible, .nz-machine canvas:focus-visible { outline: 2px solid var(--nz-acc); outline-offset: 4px; }
@media (max-width: 767px) {
  .nz-machine__intro { display: block; }
  .nz-machine__lead { margin-top: 1.8rem; font-size: .8rem; }
  .nz-machine__viewport { height: 370px; }
  .nz-machine__caption { top: 1rem; font-size: .55rem; letter-spacing: .12em; }
  .nz-machine__poster { padding-top: 1rem; }
  .nz-machine__toolbar { gap: .35rem; padding-inline: .15rem; margin-top: 0; }
  .nz-machine__toolbar button { padding-inline: .65rem; }
  .nz-machine__status { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { .nz-machine__start { transition: none; } }
