/* Сброс */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  overflow: hidden;
  background: #000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Сцена на весь экран */
.scene{
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh; /* лучше для мобилок */
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}

/* Фоновый слой (двигается) */
.bg-layer{
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Фон делаем чуть больше экрана, чтобы при сдвиге не появлялись края */
.bg{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120vmax;
  height: 120vmax;
  min-width: 120%;
  min-height: 120%;
  transform: translate(-50%, -50%);
  will-change: transform;
  object-fit: cover;
  image-rendering: auto;
}

/* Передний слой (НЕ двигается) */
.fg-layer{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none; /* чтобы клик проходил дальше */
}

.fg{
  width: min(78vw, 520px);
  height: auto;
  display: block;
  transform: translateZ(0);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
}

/* Кнопка-заглушка */
.cta{
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 8vh;
  transform: translateX(-50%);
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Подсказка */
.hint{
  position: absolute;
  z-index: 5;
  left: 50%;
  top: env(safe-area-inset-top, 12px);
  transform: translateX(-50%);
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.hint.show{ opacity: 1; }

/* На десктопе чуть поднимем кнопку */
@media (min-width: 900px){
  .cta{ bottom: 6vh; }
}
