/* ── Konami Easter Egg ── */
#konami-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
  animation: konami-flash 0.6s ease-out;
  cursor: pointer;
}

@keyframes konami-flash {
  0% { background: rgba(0, 243, 255, 0.6); }
  30% { background: rgba(255, 0, 85, 0.4); }
  60% { background: rgba(157, 0, 255, 0.3); }
  100% { background: rgba(0, 0, 0, 0.98); }
}

#konami-overlay.konami-fade-out {
  animation: konami-out 0.8s ease-out forwards;
}

@keyframes konami-out {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Scanline sweep */
#konami-overlay::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00ff88, #00f3ff, #ff0055, transparent);
  animation: konami-scan 1.5s ease-in-out infinite;
}

@keyframes konami-scan {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0.3; }
}

/* Glitch scanlines background */
#konami-overlay::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 2px,
      rgba(0, 243, 255, 0.03) 2px,
      rgba(0, 243, 255, 0.03) 4px
    );
  pointer-events: none;
  animation: glitch-scroll 2s linear infinite;
}

.konami-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.konami-code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: rgba(0, 243, 255, 0.4);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.konami-title {
  font-family: 'Courier New', monospace;
  font-size: 36px;
  font-weight: bold;
  color: #00ff88;
  letter-spacing: 6px;
  margin-bottom: 12px;
  text-shadow:
    0 0 30px rgba(0, 255, 136, 0.8),
    0 0 60px rgba(0, 255, 136, 0.4),
    0 0 100px rgba(0, 243, 255, 0.3);
  animation: konami-glitch 3s ease-in-out infinite;
}

@keyframes konami-glitch {
  0%, 88%, 96%, 100% {
    transform: translate(0);
    text-shadow:
      0 0 30px rgba(0, 255, 136, 0.8),
      0 0 60px rgba(0, 255, 136, 0.4);
  }
  90% {
    transform: translate(-4px, 2px) skewX(3deg);
    text-shadow: -4px 0 #ff0055, 4px 0 #9d00ff;
  }
  92% {
    transform: translate(4px, -1px) skewX(-2deg);
    text-shadow: 4px 0 #00f3ff, -4px 0 #ff0055;
  }
  94% {
    transform: translate(-2px, 1px);
    text-shadow: -3px 0 #00ff88, 3px 0 #ff0055;
  }
}

.konami-msg {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #00f3ff;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.konami-sub {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  line-height: 1.8;
}
