/* Easter Egg Styles */

/* Pixel Character */
.pixel-character {
  position: fixed !important; /* Force fixed positioning */
  width: 32px;
  height: 32px;
  z-index: 9999;
  pointer-events: none;
  image-rendering: pixelated;
  /* Ensure no transitions or animations affect positioning */
  transition: none !important;
  animation: none !important;
}

.pixel-character-inner {
  width: 100%;
  height: 100%;
  /* Remove bounce animation as it affects cursor alignment */
  /* animation: bounce 0.5s infinite alternate; */
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

/* Collectible Coins */
.collectible-coin {
  position: fixed;
  width: 16px;
  height: 16px;
  z-index: 9998;
  animation: spin 2s infinite linear, float 3s infinite alternate ease-in-out;
  cursor: pointer;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.collectible-coin.collected {
  animation: collected 0.3s forwards;
}

@keyframes collected {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Konami Code Message */
.konami-message {
  position: fixed;
  top: 42px;
  right: 60px;
  transform: none;
  background-color: #1e293b;
  border: 2px solid #3b82f6;
  padding: 6px;
  z-index: 1000;
  text-align: center;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  color: white;
  font-family: 'Press Start 2P', monospace;
  max-width: 180px;
  width: auto;
}

.konami-message.active {
  opacity: 1;
  animation: pulse 0.5s infinite alternate;
}

.konami-message.hidden {
  display: none;
}

.konami-content {
  text-align: center;
}

.konami-content h3 {
  font-size: 12px;
  margin: 0 0 3px 0;
  color: #60a5fa;
  line-height: 1.2;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Score Counter */
.score-counter {
  margin: 3px auto;
  background-color: rgba(30, 41, 59, 0.8);
  color: #fbbf24;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 3px;
  border: 1px solid #3b82f6;
  display: inline-block;
}

/* End Game Button */


.end-game-btn {
  margin: 3px auto;
  background-color: #ef4444;
  color: white;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 3px 6px;
  border: 1px solid #b91c1c;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.end-game-btn:hover {
  background-color: #b91c1c;
  transform: translateY(2px);
}

/* Konami Code Hint in Footer */
.konami-hint {
  font-family: monospace;
  letter-spacing: 2px;
  cursor: help;
}

/* Floating Pixels */
.floating-pixel {
  position: fixed;
  width: 8px;
  height: 8px;
  z-index: 9997;
  cursor: pointer;
  animation: pixel-float 3s infinite alternate ease-in-out;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-pixel:hover {
  opacity: 1;
  transform: scale(1.5);
}

@keyframes pixel-float {
  0% { transform: translate(0, 0); }
  50% { transform: translate(5px, -5px); }
  100% { transform: translate(-5px, 5px); }
}

.pixel-clicked {
  animation: pixel-explode 0.5s forwards;
}

@keyframes pixel-explode {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(10); opacity: 0; }
}

.pixel-fade-out {
  animation: fade-out 0.5s forwards;
}

@keyframes fade-out {
  0% { opacity: 0.7; }
  100% { opacity: 0; }
}
