.spawn-hero {
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
  background: var(--gradient-hero);
  position: relative;
}

.spawn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 204, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(0, 102, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px, 100px 100px;
  z-index: -1;
}

.spawn-hero .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.spawn-section {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.spawn-section > .container {
  max-width: 1200px;
}

.spawn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.spawn-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(90, 141, 217, 0.12);
  border: 1px solid rgba(90, 141, 217, 0.35);
  color: #9ec4f0;
  font-size: 0.85rem;
  font-weight: 600;
}

.spawn-status.is-live {
  background: rgba(90, 205, 126, 0.12);
  border-color: rgba(90, 205, 126, 0.35);
  color: #5acd7e;
}

.spawn-status.is-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5acd7e;
  box-shadow: 0 0 8px rgba(90, 205, 126, 0.7);
}

.spawn-status.is-error {
  background: rgba(224, 90, 90, 0.12);
  border-color: rgba(224, 90, 90, 0.35);
  color: #e05a5a;
}

.spawn-updated {
  color: #888;
  font-size: 0.85rem;
}

.spawn-hint {
  color: #666;
  font-size: 0.82rem;
  margin-left: auto;
}

.spawn-viewport {
  position: relative;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 420px;
  background: #0a0e14;
  border: 1px solid #2a2a3e;
  border-radius: 16px;
  overflow: hidden;
}

.spawn-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto;
  color: #888;
  z-index: 1;
}

.spawn-placeholder[hidden] {
  display: none;
}

.spawn-placeholder-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.85;
}

.spawn-placeholder p {
  margin: 0;
  line-height: 1.5;
}

.spawn-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.spawn-canvas.is-dragging {
  cursor: grabbing;
}

.spawn-error {
  margin: 14px 0 0;
  color: #e05a5a;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .spawn-viewport {
    min-height: 50vh;
    height: 56vh;
  }

  .spawn-hint {
    width: 100%;
    margin-left: 0;
  }
}
