/* Peha Easter Eggs — overlays & FX (respects prefers-reduced-motion) */
.peha-egg-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  max-width: min(360px, calc(100vw - 32px));
  background: #1a1a22;
  border: 1px solid rgba(231, 76, 60, 0.45);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.peha-egg-toast.is-in {
  transform: translateY(0);
  opacity: 1;
}
.peha-egg-toast strong { display: block; font-size: 0.95rem; }
.peha-egg-toast span { display: block; margin-top: 0.25rem; color: #b0b0bc; font-size: 0.8rem; }
.peha-egg-toast .xp { color: #f1c40f; font-weight: 700; }

.peha-egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 1rem;
}
.peha-egg-overlay[hidden] { display: none !important; }

.peha-god-banner {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 24px rgba(231, 76, 60, 0.8);
  animation: pehaGodPulse 1.2s ease-in-out infinite alternate;
  text-align: center;
}
.peha-god-flash {
  position: fixed;
  inset: 0;
  z-index: 10039;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(231, 76, 60, 0.35), transparent 55%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 3px);
  animation: pehaFlash 1.6s ease-out forwards;
}
@keyframes pehaGodPulse {
  from { transform: scale(1); color: #fff; }
  to { transform: scale(1.04); color: #e74c3c; }
}
@keyframes pehaFlash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

.peha-term {
  width: min(640px, 100%);
  background: #0b0b0e;
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 12px;
  overflow: hidden;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
.peha-term-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.75rem;
  background: #16161c;
  color: #c0c0c8;
  font-size: 0.75rem;
}
.peha-term-body {
  height: 280px;
  overflow: auto;
  padding: 0.75rem;
  color: #e8e8ee;
  font-size: 0.82rem;
  line-height: 1.45;
}
.peha-term-body .out { color: #9a9aa6; white-space: pre-wrap; }
.peha-term-body .ok { color: #e74c3c; }
.peha-term-input {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #101014;
}
.peha-term-input span { color: #e74c3c; }
.peha-term-input input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  outline: none;
  font: inherit;
}

.peha-bug {
  position: fixed;
  z-index: 10020;
  font-size: 1.35rem;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(155, 89, 182, 0.6));
  transition: transform 0.2s ease;
  user-select: none;
}
.peha-bug:hover { transform: scale(1.2); }

.peha-volvo {
  position: fixed;
  bottom: 18%;
  left: -120px;
  z-index: 10025;
  font-size: 2rem;
  pointer-events: none;
  animation: pehaVolvo 4.5s linear forwards;
}
@keyframes pehaVolvo {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 160px)); }
}

.peha-pigeon {
  position: fixed;
  top: 22%;
  left: -80px;
  z-index: 10025;
  font-size: 1.8rem;
  pointer-events: none;
  animation: pehaPigeon 3.2s ease-in-out forwards;
}
@keyframes pehaPigeon {
  0% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(50vw, -40px) rotate(6deg); }
  100% { transform: translate(110vw, 20px) rotate(-4deg); }
}

.peha-matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 10038;
  pointer-events: none;
  background: #000;
  opacity: 0.92;
  overflow: hidden;
  color: #e74c3c;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.1;
}
.peha-matrix-rain canvas { width: 100%; height: 100%; display: block; }

.peha-coffee {
  position: fixed;
  inset: 0;
  z-index: 10036;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.75);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.peha-coffee p { margin: 0.5rem 0 0; color: #c0c0c8; max-width: 22rem; }

.peha-night-banner {
  position: fixed;
  left: 50%;
  top: 72px;
  transform: translateX(-50%);
  z-index: 10015;
  background: #1e1e26;
  border: 1px solid rgba(241, 196, 15, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: #f1c40f;
  font-size: 0.85rem;
  cursor: pointer;
}

.peha-power-cut {
  position: fixed;
  inset: 0;
  z-index: 10037;
  background: #000;
  color: #e74c3c;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  animation: pehaFlash 2.4s ease-out forwards;
}

.peha-egg-mobile-hint {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 10010;
  opacity: 0.35;
  font-size: 0.7rem;
  color: #9a9aa6;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .peha-god-banner,
  .peha-god-flash,
  .peha-volvo,
  .peha-pigeon,
  .peha-power-cut,
  .peha-egg-toast {
    animation: none !important;
    transition: none !important;
  }
  .peha-egg-toast { opacity: 1; transform: none; }
  .peha-volvo, .peha-pigeon { display: none; }
}
