/* Technical Interactive 3D 2x2m VIBE Booth Viewport (04 Applications 01/03) */
.vibe-booth {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 56svh, 640px);
  max-height: 100%;
  border-radius: clamp(14px, 1.75vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 190, 112, 0.24);
  background:
    radial-gradient(ellipse 75% 65% at 50% 44%, rgba(255, 178, 72, 0.12), #120f0e 70%, #0a0808 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

.vibe-booth__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: none;
}

.vibe-booth__canvas-wrap.is-dragging {
  cursor: grabbing;
}

.vibe-booth__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

/* Technical corner crosshairs */
.vibe-booth__frame {
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 190, 112, 0.08);
  border-radius: clamp(8px, 1.1vw, 15px);
}

.vibe-booth__loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(14, 11, 10, 0.72);
  color: rgba(248, 237, 225, 0.8);
  font: 600 11.5px/1 var(--case-type, Satoshi-Variable, Arial, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.vibe-booth.is-ready .vibe-booth__loading {
  opacity: 0;
}

/* Top technical CAD header */
.vibe-booth__topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 0;
  pointer-events: none;
}

.vibe-booth__id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 190, 112, 0.22);
  background: rgba(14, 11, 10, 0.72);
  backdrop-filter: blur(10px);
  color: #f8ede1;
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vibe-booth__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46e08a;
  box-shadow: 0 0 8px #46e08a;
}

.vibe-booth__coords {
  color: #ffbe70;
  font-variant-numeric: tabular-nums;
}

.vibe-booth__modes {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 9px;
  border: 1px solid rgba(248, 237, 225, 0.14);
  background: rgba(14, 11, 10, 0.76);
  backdrop-filter: blur(10px);
}

.vibe-booth__btn {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 9px;
  background: transparent;
  color: rgba(248, 237, 225, 0.78);
  font: 600 10.5px/1 var(--case-type, Satoshi-Variable, Arial, sans-serif);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.vibe-booth__btn:hover {
  background: rgba(248, 237, 225, 0.1);
  color: #fff;
}

.vibe-booth__btn.is-active {
  background: rgba(255, 190, 112, 0.2);
  border-color: rgba(255, 190, 112, 0.6);
  color: #ffbe70;
}

.vibe-booth__btn:focus-visible {
  outline: 2px solid #ffbe70;
  outline-offset: 2px;
}

.vibe-booth__divider {
  width: 1px;
  height: 14px;
  background: rgba(248, 237, 225, 0.16);
  margin-inline: 2px;
}

/* Bottom architectural toolbar + fabrication spec readout */
.vibe-booth__bottombar {
  position: relative;
  z-index: 4;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
  pointer-events: none;
}

.vibe-booth__views {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 9px;
  border: 1px solid rgba(248, 237, 225, 0.14);
  background: rgba(14, 11, 10, 0.76);
  backdrop-filter: blur(10px);
}

.vibe-booth__specs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vibe-booth__chip {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 190, 112, 0.18);
  background: rgba(14, 11, 10, 0.72);
  backdrop-filter: blur(10px);
  color: rgba(248, 237, 225, 0.8);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.vibe-booth__zoom {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(248, 237, 225, 0.14);
  background: rgba(14, 11, 10, 0.76);
  backdrop-filter: blur(10px);
}

.vibe-booth__zoom .vibe-booth__btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .vibe-booth {
    min-height: 360px;
    height: min(56svh, 460px);
  }

  .vibe-booth__specs {
    display: none;
  }
}

@media (max-width: 600px) {
  .vibe-booth {
    min-height: 330px;
    height: 48svh;
  }

  .vibe-booth__topbar {
    padding: 10px 10px 0;
  }

  .vibe-booth__bottombar {
    padding: 0 10px 10px;
  }

  .vibe-booth__id {
    font-size: 9.5px;
    padding: 5px 8px;
  }

  .vibe-booth__btn {
    padding: 4px 7px;
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vibe-booth__loading,
  .vibe-booth__btn {
    transition: none;
  }
}
