/* Пасхалки (pashalki.js): плашка, тревога GUN, режимы, консоль.
   Всё поверх страницы (fixed): текст под ними не сдвигается. */

.pz-toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 90;
  width: min(30rem, calc(100vw - 2rem));
  padding: 0.85em 1.1em;
  border: 1px solid var(--cj-line);
  border-radius: 12px;
  background: var(--cj-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 0.9375rem;
  line-height: 1.45;
  transform: translate(-50%, 140%);
  transition: transform 0.35s var(--cj-ease);
}
.pz-toast.is-on { transform: translate(-50%, 0); }
.pz-toast a { color: var(--cj-link); }
.pz-stars { margin-left: 0.3em; color: var(--cj-accent); letter-spacing: 0.1em; white-space: nowrap; }
.pz-kod { font-family: var(--cj-font-mono); font-size: 1.05em; padding: 0.05em 0.35em; border-radius: 4px; background: color-mix(in srgb, var(--cj-accent) 15%, transparent); user-select: all; }

/* gunka: глаз подмигивает, знак покачивается */
.pz-gunka .lg--eye { animation: pz-wink 0.9s ease-in-out 3; transform-origin: 50% 60%; transform-box: fill-box; }
.pz-gunka .logo__svg { animation: pz-sway 1.8s ease-in-out 4; transform-origin: 50% 100%; }
@keyframes pz-wink { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(0.08); } }
@keyframes pz-sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* cj: всё моноширинным, как отчёт архитектору */
.pz-cj body, .pz-cj body * { font-family: var(--cj-font-mono) !important; letter-spacing: 0 !important; }
.pz-cj .logo__svg { filter: grayscale(1); transition: filter 0.4s; }

/* GUN: красная полоса сверху и лёгкая дрожь страницы */
.pz-alarm {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 95;
  padding: 0.8em 1em;
  background: #B3261E;
  color: #fff;
  font-family: var(--cj-font-mono);
  font-size: 0.9375rem;
  text-align: center;
  animation: pz-blink 0.6s steps(2) infinite;
}
.pz-alarm.is-ok { background: #2E7D4F; animation: none; }
@keyframes pz-blink { 50% { background: #7A1A14; } }
.pz-gun .page { animation: pz-shake 0.4s linear 4; }
@keyframes pz-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* Консоль */
.pz-k {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 92;
  max-height: 55vh;
  display: flex;
  flex-direction: column;
  background: #121211;
  color: #E4E2DC;
  font-family: var(--cj-font-mono);
  font-size: 0.875rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.2s ease;
}
.pz-k.is-on { transform: translateY(0); }
.pz-k__out { flex: 1; margin: 0; padding: 0.9em 1em 0.3em; overflow: auto; white-space: pre-wrap; font: inherit; min-height: 6em; }
.pz-k__line { display: flex; gap: 0.6em; align-items: center; padding: 0.4em 1em 0.9em; }
.pz-k__line span { color: #E07A45; flex: none; }
.pz-k__line input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: inherit; font: inherit; caret-color: #E07A45; }

@media (prefers-reduced-motion: reduce) {
  .pz-gunka .lg--eye, .pz-gunka .logo__svg, .pz-gun .page, .pz-alarm { animation: none; }
}
