/* Heart Club: общий вид залов — бархатный фон и переход занавесом между страницами. */

/* Бархат: тёмная глубина с мягким светом сверху. */
.hc-velvet {
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(255 120 180 / .16), transparent 60%),
    linear-gradient(160deg, rgb(104 18 58 / .72), rgb(34 5 22 / .9));
}

/* Переход между залами: два полотна занавеса закрываются, новая страница открывает их. */
.hc-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  pointer-events: none;
}
.hc-transition__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  transition: transform .9s cubic-bezier(.7, 0, .2, 1);
}
.hc-transition__panel--left { left: 0; transform: translateX(-101%); }
.hc-transition__panel--right { right: 0; transform: translateX(101%); }
.hc-transition__cloth {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background: url("hc-curtain.webp?v=R6sHVNWAs8taEwi5") center / cover no-repeat;
  box-shadow: inset 0 0 90px rgb(0 0 0 / .35);
}
.hc-transition__panel--right .hc-transition__cloth { left: -50vw; }
.hc-transition.is-closed .hc-transition__panel--left,
.hc-transition.is-closed .hc-transition__panel--right { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hc-transition__panel { transition-duration: .01s; }
}
