.atelier-stage {
  position: relative;
  width: 110%;
  margin-left: -5%;
  aspect-ratio: 3 / 2;
  isolation: isolate;
}
.atelier-stage .atelier-fallback {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  transition: opacity .65s ease;
}
.atelier-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .65s ease;
  touch-action: pan-y;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.atelier-canvas:active { cursor: grabbing; }
.atelier-canvas.screen-hover { cursor: pointer; }
.atelier-stage[data-scene-state="ready"] .atelier-fallback { opacity: 0; }
.atelier-stage[data-scene-state="ready"] .atelier-canvas { opacity: 1; }
.atelier-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0 28px 0 40px;
}
.atelier-tools[hidden] { display: flex !important; visibility: hidden; }
.atelier-tools button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cad0c3;
  background: transparent;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 9px;
  line-height: 1.4;
  transition: background .2s, border-color .2s;
}
.atelier-tools button:hover { background: #e4e8dd; border-color: #9fae99; }
.atelier-tools button[aria-pressed="true"] { background: #e2e0cf; border-color: #a79e7f; }
.scene-view > span { font-size: 14px; line-height: 1; }
.light-dot { width: 7px; height: 7px; background: #c8b16c; border-radius: 50%; }
.scene-hint { margin-left: auto; color: var(--muted); font: italic 11px var(--serif); }
.atelier-project-link {
  position: absolute;
  right: 9%;
  bottom: 4px;
  z-index: 1;
  color: var(--green);
  font-size: 9px;
  border-bottom: 1px solid #b9c4b3;
  padding-bottom: 3px;
}
.atelier-project-link > span { margin-left: 10px; }
.atelier figcaption { margin-top: 12px; }
@media (max-width: 1100px) {
  .scene-hint { display: none; }
  .atelier-tools { margin-left: 25px; }
}
@media (max-width: 800px) {
  .atelier-stage { width: 100%; margin-left: 0; }
  .atelier-tools { justify-content: center; margin: 4px 8% 0; }
  .atelier-project-link { bottom: 0; font-size: 8px; }
  .atelier figcaption { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-stage .atelier-fallback, .atelier-canvas { transition: none; }
}
@media(max-width:480px){.atelier-tools{flex-wrap:wrap;gap:5px}.atelier-tools button{font-size:8px;padding:7px 8px}}
