/* --- ОБЩИЙ ДИЗАЙН ЗАГЛУШКИ F-KIT --- */
.fkit-blocker {
  display: none; /* По умолчанию скрыто */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 45, 108, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999999 !important; /* Гарантированно поверх всего */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.fkit-blocker-content {
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Стили для анимированной иконки iPhone */
.fkit-blocker-icon-wrap {
  width: 64px;
  height: 64px;
  position: relative;
  margin-bottom: 8px;
}

.fkit-blocker-icon-phone {
  width: 100%;
  height: 100%;
  color: #FFF993; /* Желтый акцент */
  animation-duration: 2.2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  transform-origin: center center;
}

/* АНИМАЦИЯ: Поворот в ГОРИЗОНТ (fac-mode) */
.fac-mode .fkit-blocker-icon-phone {
  animation-name: rotatePhoneToLandscape;
}

/* АНИМАЦИЯ: Поворот в ВЕРТИКАЛЬ (remote-mode) */
.remote-mode .fkit-blocker-icon-phone {
  animation-name: rotatePhoneToPortrait;
}

@keyframes rotatePhoneToLandscape {
  0%, 15%, 100% { transform: rotate(0deg); }
  35%, 65% { transform: rotate(-90deg); }
}

@keyframes rotatePhoneToPortrait {
  0%, 15%, 100% { transform: rotate(-90deg); }
  35%, 65% { transform: rotate(0deg); }
}

.fkit-blocker-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.fkit-blocker-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* --- ЖЕСТКИЕ ПРАВИЛА БЛОКИРОВКИ --- */

/* 1. ПРАВИЛА ДЛЯ ФАСИЛИТАТОРА (Требует горизонт) */
/* Блокируем: Любые телефоны и вертикальные планшеты */
@media screen and (max-width: 767px) {
  .fkit-blocker.fac-mode { display: flex !important; }
}
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .fkit-blocker.fac-mode { display: flex !important; }
}

/* 2. ПРАВИЛА ДЛЯ УЧАСТНИКА / ПУЛЬТА (Требует вертикаль) */
/* Блокируем: Любые горизонты (включая телефоны, лежащие боком) */
@media screen and (orientation: landscape) {
  .fkit-blocker.remote-mode { display: flex !important; }
}
/* Блокируем: Большие планшеты и десктопы для пульта */
@media screen and (min-width: 1025px) {
  .fkit-blocker.remote-mode { display: flex !important; }
}