html.ai-blocked,
html.ai-blocked body {
  overflow: hidden;
  background: #070406;
}

html.ai-blocked .app-shell,
html.ai-blocked .app-credit {
  display: none !important;
}

.ai-guard {
  display: none;
}

html.ai-blocked .ai-guard {
  display: flex;
}

.ai-guard {
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  padding: 32px 22px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(90, 8, 16, 0.55), transparent 62%),
    #070406;
}

.ai-guard-hello {
  margin: 0;
  max-width: 22em;
  font-size: clamp(18px, 4.2vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: #f4e6c2;
  text-shadow:
    0 1px 0 #3a1010,
    0 2px 0 #1a0606,
    -2px 0 10px rgba(200, 20, 30, 0.45),
    2px 0 10px rgba(40, 60, 160, 0.35);
}

.ai-guard-log {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(22px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: 0.34em;
  color: #ff2a2a;
  transform: perspective(420px) rotateX(22deg) translateZ(16px);
  text-shadow:
    0 1px 0 #7a0000,
    0 2px 0 #4a0000,
    0 4px 0 #220000,
    0 8px 16px rgba(0, 0, 0, 0.7),
    -4px 0 10px rgba(255, 0, 40, 0.55),
    4px 0 10px rgba(0, 90, 255, 0.4);
  animation:
    ai-log-blink 0.72s steps(2) infinite,
    ai-log-3d 1.8s ease-in-out infinite;
}

@keyframes ai-log-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.12; }
}

@keyframes ai-log-3d {
  0%, 100% { transform: perspective(420px) rotateX(22deg) translateZ(16px) scale(1); }
  50% { transform: perspective(420px) rotateX(8deg) translateZ(28px) scale(1.06); }
}

.ai-guard-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .ai-guard-log { animation: ai-log-blink 1.4s steps(2) infinite; }
}

@media print {
  .ai-guard { display: none !important; }
}
