/* ===========================
   ШРИФТ (минималистичный Alien-стиль)
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');


/* ===========================
   ТЕРМИНАЛ (КОНСОЛЬ — ТЕКСТ)
   =========================== */

.js-terminal-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  line-height: 1.35;
  color: #5effab;
  text-shadow:
      0 0 4px rgba(94,255,171,0.8),
      0 0 10px rgba(94,255,171,0.5);
  animation: crtSoftFlicker 0.18s infinite alternate;
}

@keyframes crtSoftFlicker {
  0%   { opacity: 0.98; }
  100% { opacity: 1; }
}


/* ===========================
   ИНТРО-ЭКРАНЫ (СТАРТ + КОНСОЛЬ)
   =========================== */

.intro-screen,
.intro-console {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Стартовый экран поверх всего */
.intro-screen {
  z-index: 9999;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Состояние скрытого стартового экрана */
.intro-screen--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Экран-консоль под стартовым */
.intro-console {
  background: #000;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Активная консоль */
.intro-console--active {
  opacity: 1;
  pointer-events: auto;
}

/* Содержимое внутри интро-слоёв всегда над CRT-оверлеем */
.intro-screen > *,
.intro-console > * {
  position: relative;
  z-index: 3;
}

/* Запрет выделения на интро-экране */
.intro-screen,
.intro-screen * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


/* ===========================
   CRT / SCANLINES (СТАРТ + КОНСОЛЬ)
   =========================== */

/* Тёмная виньетка (как у старого монитора) */
.intro-screen::before,
.intro-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at center,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.45) 80%);
}

/* Лёгкие scanlines — консоль */
.intro-console::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  opacity: 0.10;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.06) 0px,
    rgba(255,255,255,0.06) 1px,
    transparent 3px,
    transparent 4px
  );
}

/* Едва заметные scanlines — стартовый экран */
.intro-screen::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  opacity: 0.06;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 3px,
    transparent 4px
  );
}


/* ===========================
   КНОПКА START: СВЕТ, МОНО, ГЛИЧ
   =========================== */

@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0.2; }
  100% { opacity: 1; }
}

/* мягкий глич по transform */
@keyframes buttonGlitch {
  0%   { transform: translate(0,0); }
  12%  { transform: translate(-1px,0); }
  13%  { transform: translate(1px,0); }
  14%  { transform: translate(0,0); }

  40%  { transform: translate(0,0); }
  41%  { transform: translate(1px,-1px); }
  42%  { transform: translate(-1px,1px); }
  43%  { transform: translate(0,0); }

  70%  { transform: translate(0,0); }
  71%  { transform: translate(-1px,0); }
  72%  { transform: translate(1px,0); }
  73%  { transform: translate(0,0); }

  100% { transform: translate(0,0); }
}

/* Берём именно кнопку на интро-экране, чтобы перебить стандартные стили Tilda */
.intro-screen .js-start-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 36px;
  border-radius: 2px;
  border: 1px solid #5effab;

  background: rgba(0, 0, 0, 0.7);
  color: #5effab;

  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;

  text-shadow:
      0 0 4px rgba(94,255,171,0.9),
      0 0 10px rgba(94,255,171,0.7);
  box-shadow:
      0 0 10px rgba(94,255,171,0.6),
      0 0 20px rgba(94,255,171,0.35);

  cursor: pointer;
  overflow: hidden;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* мигание + лёгкий глич по позиции */
  animation:
    blink 1.2s infinite,
    buttonGlitch 4s infinite;
}

/* лёгкий hover для десктопа */
.intro-screen .js-start-btn:hover {
  box-shadow:
      0 0 14px rgba(94,255,171,0.9),
      0 0 26px rgba(94,255,171,0.5);
}


/* ===========================
   БЛОКИРОВКА СКРОЛЛА ПРИ ИНТРО
   =========================== */

body.alien-lock {
  overflow: hidden;
}


/* ===========================
   УБИРАЕМ ПРОБЕЛ ОТ ZERO BLOCK
   =========================== */

#rec1569344431,
#rec1569344431 .t396__artboard,
#rec1569344431 .t396__carrier,
#rec1569344431 .t396__filter,
#rec1569344431 .t396 {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
