/* ALT-MAINT (11.11.2026): стили экрана техработ мини-аппа (см. assets/maintenance.js).
   Палитра наша: #ef02cb / #f236ea / #481a63, текст белый. Никаких тяжёлых эффектов —
   только градиенты, blur и transform-анимация, чтобы не лагало на телефоне. */
#alt-maint { position: fixed; inset: 0; z-index: 99990; pointer-events: none; display: none; }
#alt-maint.is-soon,
#alt-maint.is-active { display: block; }

/* полоска сверху (до начала и для админа) */
#alt-maint .alt-maint__bar {
  pointer-events: auto;
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px;
  font: 700 12.5px/1.3 "Segoe UI", system-ui, sans-serif;
  color: #fff; letter-spacing: .2px;
  background: linear-gradient(90deg, #75027f, #ef02cb 55%, #75027f);
  box-shadow: 0 4px 18px rgba(239, 2, 203, .45);
  animation: alt-maint-bar 2.6s ease-in-out infinite;
  z-index: 99991;
}
@keyframes alt-maint-bar {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}
#alt-maint .alt-maint__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .9);
  animation: alt-maint-dot 1.4s ease-in-out infinite;
}
@keyframes alt-maint-dot { 50% { opacity: .35; } }

/* полноэкранная заглушка */
#alt-maint .alt-maint__screen {
  pointer-events: none; opacity: 0; visibility: hidden;
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(70% 50% at 50% -10%, rgba(242, 54, 234, .38), transparent 70%),
    radial-gradient(60% 45% at 50% 115%, rgba(117, 2, 127, .5), transparent 70%),
    rgba(9, 5, 14, .96);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 99992;
}
#alt-maint .alt-maint__screen.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
#alt-maint .alt-maint__glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 2, 203, .35), transparent 62%);
  filter: blur(30px); animation: alt-maint-glow 6s ease-in-out infinite;
}
@keyframes alt-maint-glow {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.08); opacity: 1; }
}
#alt-maint .alt-maint__card {
  position: relative; max-width: 420px; width: 100%; text-align: center;
  padding: 26px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(38, 22, 54, .92), rgba(20, 12, 30, .96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: alt-maint-card .35s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes alt-maint-card {
  from { transform: translateY(14px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
#alt-maint .alt-maint__ico {
  font-size: 34px; line-height: 1; margin-bottom: 10px;
  animation: alt-maint-ico 3s ease-in-out infinite;
}
@keyframes alt-maint-ico {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
#alt-maint .alt-maint__title {
  margin: 0 0 8px; font: 800 20px/1.25 "Segoe UI", system-ui, sans-serif; color: #fff;
}
#alt-maint .alt-maint__text {
  margin: 0; font: 500 13.5px/1.5 "Segoe UI", system-ui, sans-serif; color: rgba(255, 255, 255, .72);
}
#alt-maint .alt-maint__timer {
  margin: 16px 0 8px;
  font: 800 30px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: 1.5px;
  color: #f9b5cc;
  text-shadow: 0 0 22px rgba(239, 2, 203, .55);
}
#alt-maint .alt-maint__hint {
  font: 600 11.5px/1.4 "Segoe UI", system-ui, sans-serif; color: rgba(255, 255, 255, .45);
}

/* блокируем прокрутку страницы под заглушкой */
html.alt-maint-blocked, html.alt-maint-blocked body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  #alt-maint .alt-maint__bar, #alt-maint .alt-maint__dot,
  #alt-maint .alt-maint__glow, #alt-maint .alt-maint__ico, #alt-maint .alt-maint__card { animation: none; }
}
