/* Заглушка vpn.sassythesasquatch.ru: готовая картинка целиком (contain),
   поля заполняет размытая копия сцены. Вертикальная картинка — для экранов
   уже квадрата, горизонтальная — для остальных. */

:root {
  --blur: url("/assets/nf-mobile-blur.webp");
  --ratio: 1024 / 1536;
  --ratio-n: 0.6667;
  /* Насколько можно увеличить картинку сверх «целиком» за счёт обрезки боков:
     плашка Telegram при этом остаётся на экране, а пустые поля меньше. */
  --zoom: 1.3;
  /* Плашка «Подробнее в Telegram» в долях картинки 1024×1536 (с запасом под палец). */
  --tg-left: 22.9%;
  --tg-top: 79.7%;
  --tg-width: 62.1%;
  --tg-height: 10.1%;
}

@media (min-aspect-ratio: 1/1) {
  :root {
    --blur: url("/assets/nf-desktop-blur.webp");
    --ratio: 1688 / 932;
    --ratio-n: 1.8112;
    --zoom: 1.12;
    /* Та же плашка в картинке 1688×932. */
    --tg-left: 52.1%;
    --tg-top: 70.8%;
    --tg-width: 41.5%;
    --tg-height: 16.1%;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #1f3d24;
}

.scene {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.backdrop {
  position: absolute;
  inset: -48px;
  background: var(--blur) center / cover no-repeat;
  filter: blur(22px) saturate(1.1) brightness(0.75);
}

.stage {
  /* Явное центрирование: при увеличении сцена шире экрана и обрезается поровну с обеих сторон. */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw * var(--zoom)), calc(100vh * var(--ratio-n)));
  width: min(calc(100vw * var(--zoom)), calc(100dvh * var(--ratio-n)));
  aspect-ratio: var(--ratio);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
}

.art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.telegram {
  position: absolute;
  left: var(--tg-left);
  top: var(--tg-top);
  width: var(--tg-width);
  height: var(--tg-height);
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(120, 200, 255, 0.25);
  transition: background-color 0.15s ease;
}

.telegram:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.telegram:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
