/**
 * RoccOS Scene — Desk-in-Landscape
 * Desktop starts scaled inside a monitor screen cutout with landscape visible.
 * Scroll zooms to 1.0 and locks. Shutdown reverses back into the monitor.
 */

/* ── Scene Container ── */
.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ── Scenic Landscape Background ── */
.scene-bg {
  position: absolute;
  inset: -30px; /* Bleed for drift movement */
  z-index: var(--z-scene-bg);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

/* <picture> wrapper must fill .scene-bg so the inner <img> height:100% resolves
   against a sized box (a bare inline <picture> would collapse the image to 0). */
.scene-bg > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Foreground Desk/Monitor Frame ── */
.scene-frame {
  position: absolute;
  inset: -30px; /* Bleed for drift movement, matching scene-bg */
  z-index: var(--z-laptop);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.scene-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Hint Text ── */
.scene-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-scene-hint);
  color: rgba(30, 30, 30, 0.8);
  font-family: var(--font-system);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  pointer-events: none;
  padding: 8px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scene-hint[hidden] {
  display: none;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .scene-bg {
    will-change: auto;
  }
}

/* ── Mobile: skip scene visuals ── */
@media (max-width: 767px) {
  .scene-bg,
  .scene-frame,
  .scene-hint {
    display: none !important;
  }
}
