.projeto-3d-page {
  display: grid;
  gap: 1.25rem;
}

.projeto-3d-header {
  background: linear-gradient(135deg, rgba(20, 29, 46, 0.96), rgba(50, 73, 114, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.projeto-3d-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.projeto-3d-summary--compact {
  margin: 1rem 0;
}

.projeto-3d-summary__item,
.projeto-3d-card,
.projeto-3d-panel,
.projeto-3d-viewport-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.projeto-3d-summary__item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.projeto-3d-summary__item span,
.projeto-3d-card small {
  color: #64748b;
  font-size: 0.78rem;
}

.projeto-3d-summary__item strong {
  color: #0f172a;
  font-size: 0.98rem;
}

.projeto-3d-viewport-card,
.projeto-3d-panel {
  padding: 1rem;
}

.projeto-3d-viewport-card__header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.projeto-3d-viewport-card h2,
.projeto-3d-panel h3 {
  margin: 0 0 0.35rem;
}

.projeto-3d-badge {
  background: #0f172a;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.projeto-3d-canvas-wrap {
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 55%, #020617 100%);
  border-radius: 20px;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.projeto-3d-canvas {
  display: block;
  height: 420px;
  outline: none;
  width: 100%;
}

.projeto-3d-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.projeto-3d-list {
  display: grid;
  gap: 0.75rem;
}

.projeto-3d-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
}

.projeto-3d-card strong {
  color: #0f172a;
}

.projeto-3d-card span {
  color: #334155;
  line-height: 1.45;
}

.projeto-3d-panel--wide {
  grid-column: 1 / -1;
}

.projeto-3d-fallback,
.projeto-3d-small-screen {
  align-items: center;
  color: #dbeafe;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 2rem;
  position: absolute;
  text-align: center;
}

.projeto-3d-small-screen {
  align-content: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  gap: 0.75rem;
  z-index: 2;
}

.projeto-3d-small-screen strong {
  color: #fff;
  font-size: 1.15rem;
}

.projeto-3d-small-screen span,
.projeto-3d-small-screen small {
  color: #cbd5e1;
  max-width: 560px;
}

.projeto-3d-fallback__movel {
  background: linear-gradient(145deg, #8b5e34, #5c3a20);
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 22px 24px 45px rgba(0, 0, 0, 0.35);
  height: 150px;
  position: relative;
  transform: perspective(720px) rotateX(12deg) rotateY(-20deg);
  width: 250px;
}

.projeto-3d-fallback__porta {
  background: linear-gradient(145deg, #d6c7aa, #bfae8c);
  border-radius: 10px;
  height: 122px;
  position: absolute;
  top: 14px;
  width: 104px;
}

.projeto-3d-fallback__porta--left {
  left: 17px;
}

.projeto-3d-fallback__porta--right {
  right: 17px;
}

.projeto-3d-fallback__puxador {
  background: #3f2a17;
  border-radius: 999px;
  height: 8px;
  left: 45px;
  position: absolute;
  top: 52px;
  width: 160px;
}

@media (max-width: 1023px) {
  .projeto-3d-viewport-card__header {
    display: grid;
  }

  .projeto-3d-canvas-wrap,
  .projeto-3d-canvas {
    min-height: 320px;
    height: 320px;
  }
}
