/* Мобильная заглушка (< 768px) */

#mobile-stub {
  display: none;
  position: fixed;
  inset: 0;
  background: #050508;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

#stub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stub-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 32px 48px;
  max-width: 360px;
  width: 100%;
}

.stub-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  animation: stub-pulse 3s ease-in-out infinite;
}

.stub-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

@keyframes stub-pulse {
  0%,
  100% {
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.12),
      0 0 20px rgba(0, 212, 255, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.12),
      0 0 32px rgba(123, 47, 255, 0.45);
    transform: scale(1.05);
  }
}

.stub-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.05);
}

.stub-warning-icon {
  color: #00d4ff;
  font-size: 14px;
  animation: stub-blink 1.5s ease-in-out infinite;
}

@keyframes stub-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.stub-warning-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #00d4ff;
}

.stub-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.stub-title-accent {
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #7b2fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stub-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  margin-bottom: 32px;
}

.stub-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 32px;
}

.stub-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stub-divider-text {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  text-transform: uppercase;
}

.stub-btn {
  width: 100%;
  padding: 16px 32px;
  border: 1px solid #00d4ff;
  background: transparent;
  color: #00d4ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stub-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.stub-btn:active::before {
  opacity: 1;
}

.stub-btn.copied {
  border-color: #00ff88;
  color: #00ff88;
}

.stub-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  margin-bottom: 48px;
}

.stub-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2em;
  z-index: 3;
}

.stub-footer-dot {
  color: #00d4ff;
  opacity: 0.4;
}

@media (max-width: 768px) {
  #site-wrap {
    display: none !important;
  }

  #mobile-stub {
    display: flex !important;
  }

  #preloader,
  #custom-cursor {
    display: none !important;
  }

  body.is-loading {
    overflow: hidden;
  }
}
