.pbp-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0a0614;
}

.pbp-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  margin: 12px 16px;
  border-radius: 8px;
  border: 1px solid #2a3140;
  background: #0a0614;
}

.pbp-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 65% at 18% 82%, rgba(96, 32, 148, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 72% 58% at 84% 14%, rgba(20, 128, 168, 0.34) 0%, transparent 52%),
    radial-gradient(ellipse 95% 75% at 52% 48%, rgba(48, 14, 88, 0.38) 0%, transparent 62%),
    #0a0614;
  animation: pbp-void-drift 24s ease-in-out infinite alternate;
}

@keyframes pbp-void-drift {
  0% {
    opacity: 0.82;
    transform: scale(1) translate(0%, 0%);
  }
  50% {
    opacity: 1;
    transform: scale(1.03) translate(1.2%, -0.8%);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.05) translate(-1%, 1%);
  }
}

.pbp-viewport canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#pbp-void-canvas {
  z-index: 0;
}

#pbp-palkia-canvas {
  z-index: 1;
  pointer-events: none;
}

#pbp-ref-canvas {
  z-index: 2;
  pointer-events: none;
}

.pbp-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 16px 12px;
  font-size: 12px;
  color: #8b95a8;
  border-top: 1px solid #2a3140;
  background: #10131a;
}

.pbp-hud__stat {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pbp-hud__stat strong {
  color: #e8eaed;
  font-weight: 600;
}

.pbp-note {
  margin: 0;
  font-size: 11px;
  color: #8b95a8;
  line-height: 1.45;
}

.pbp-config {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #0e1118;
  border: 1px solid #2a3140;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #b8c0cc;
  white-space: pre-wrap;
  word-break: break-word;
}
