/**
 * Holodepth — bounding-culling: Visibility Pipeline Demo (canlı lab)
 */

.doc-vpd-lab {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(46, 200, 210, 0.22);
  background: linear-gradient(
    165deg,
    rgba(10, 16, 32, 0.58) 0%,
    rgba(4, 8, 18, 0.85) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 14px rgba(0, 0, 0, 0.28);
}

.doc-vpd-lab__tag {
  margin: 0 0 0.45rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(120, 210, 220, 0.95);
}

.doc-vpd-lab__note {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(165, 190, 215, 0.92);
}

.doc-vpd-lab__live-hint {
  margin: 0 0 0.48rem;
  padding: 0.42rem 0.52rem 0.48rem;
  border-radius: 8px;
  border: 1px solid rgba(80, 140, 200, 0.22);
  background: rgba(0, 10, 28, 0.5);
  font-size: 0.62rem;
  line-height: 1.48;
  color: rgba(155, 185, 220, 0.94);
}

.doc-vpd-lab__live-hint-list {
  margin: 0;
  padding-left: 1.05rem;
  list-style-type: disc;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.doc-vpd-lab__live-hint-list li {
  padding-left: 0.08rem;
  line-height: 1.45;
}

.doc-vpd-lab__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 0.55rem;
}

.doc-vpd-lab__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(80, 120, 160, 0.28);
  background: rgba(0, 4, 14, 0.42);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(190, 215, 240, 0.96);
}

.doc-vpd-lab__stat {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 7.2rem;
}

.doc-vpd-lab__stat-label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(140, 175, 205, 0.88);
}

.doc-vpd-lab__stat-val {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  color: rgba(255, 190, 150, 0.96);
  transition:
    color 0.55s ease,
    text-shadow 0.55s ease,
    transform 0.22s ease;
}

.doc-vpd-lab__stat-val--pulse {
  animation: doc-vpd-stat-pulse 0.28s ease-out;
}

@keyframes doc-vpd-stat-pulse {
  0% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.doc-vpd-lab__bounding-tip {
  margin: 0 0 0.5rem;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(68, 255, 136, 0.22);
  background: rgba(4, 22, 18, 0.55);
  font-size: 0.65rem;
  line-height: 1.5;
  color: rgba(175, 225, 205, 0.95);
}

.doc-vpd-lab__bounding-tip strong {
  color: rgba(120, 255, 190, 0.98);
  font-weight: 700;
}

.doc-vpd-lab__bounding-tip[hidden] {
  display: none !important;
}

.doc-vpd-lab__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  justify-content: flex-end;
  max-width: min(100%, 22rem);
}

.doc-vpd-lab__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.38rem;
  border-radius: 6px;
  border: 1px solid rgba(90, 130, 170, 0.35);
  background: rgba(0, 8, 20, 0.45);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(200, 220, 245, 0.95);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.doc-vpd-lab__toggle:hover {
  border-color: rgba(46, 231, 242, 0.45);
  background: rgba(8, 24, 40, 0.55);
}

.doc-vpd-lab__toggle:has(input:focus-visible) {
  outline: 2px solid rgba(46, 231, 242, 0.65);
  outline-offset: 2px;
}

.doc-vpd-lab__toggle input {
  width: 0.85rem;
  height: 0.85rem;
  accent-color: #2ee7f2;
  cursor: pointer;
}

.doc-vpd-lab__toggle--wire {
  border-style: dashed;
}

.doc-vpd-lab__viewport-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(46, 200, 210, 0.18);
  background: radial-gradient(ellipse 120% 80% at 50% 100%, rgba(8, 20, 40, 0.9), rgba(2, 4, 12, 1));
}

.doc-vpd-lab__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

.doc-vpd-lab__viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.doc-vpd-lab__occlusion-badge {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  transform: translateX(-50%);
  max-width: calc(100% - 1rem);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(180, 180, 200, 0.35);
  background: rgba(12, 12, 24, 0.82);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(220, 220, 235, 0.98);
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(120, 120, 200, 0.15);
}

.doc-vpd-lab__occlusion-badge[hidden] {
  display: none !important;
}

.doc-vpd-lab__hint {
  margin: 0.45rem 0 0;
  font-size: 0.62rem;
  line-height: 1.45;
  color: rgba(130, 160, 195, 0.82);
}

.doc-vpd-lab__err {
  margin: 0;
  padding: 1rem;
  font-size: 0.72rem;
  color: rgba(255, 160, 140, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .doc-vpd-lab__toggle,
  .doc-vpd-lab__stat-val {
    transition: none;
  }

  .doc-vpd-lab__stat-val--pulse {
    animation: none;
  }
}
