@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

@layer utilities {
  @keyframes float {
    0%,
    100% {
      transform: translateX(-150px) translateY(0px) rotate(25deg);
    }
    33% {
      transform: translateX(150px) translateY(-15px) rotate(20deg);
    }
    66% {
      transform: translateY(15px) rotate(-20deg);
    }
  }
  @keyframes blink {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  @keyframes shine {
    0% {
      transform: translateX(-100%) rotate(30deg);
    }
    100% {
      transform: translateX(100%) rotate(30deg);
    }
  }
  
  /* Стили для убегающей кнопки */
  .runaway-button {
    transition: all 0.2s ease-out;
    position: fixed !important;
    z-index: 10000 !important;
  }

  /* OneCode стили */
  .game-card {
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  .game-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }

  .code-editor {
    background: #1a1a1a;
    border: 2px solid #EA5B6F;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
  }

  .save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10B981;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .save-indicator.show {
    opacity: 1;
  }
  
  /* Custom cursor styles - только для десктопа */
  .cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
  }
  
  .cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid #3B82F6;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.2s ease-out;
  }
  
  .cursor-dot.hover, .cursor-outline.hover {
    transform: scale(1.5);
    background-color: #8B5CF6;
    border-color: #8B5CF6;
  }
  
  .cursor-dot.click {
    transform: scale(0.8);
    background-color: #EA5B6F;
  }
  
  .cursor-outline.click {
    transform: scale(1.2);
    border-color: #EA5B6F;
  }
  
  /* Мобильные стили */
  @media (max-width: 768px) {
    .mobile-optimized {
      font-size: 0.9rem;
      padding: 1rem;
    }
    
    .mobile-tap-animation {
      transition: all 0.2s ease;
    }
    
    .mobile-tap-animation:active {
      transform: scale(0.95);
      opacity: 0.8;
    }
    
    .runaway-button-mobile {
      position: relative !important;
      transform: none !important;
      left: auto !important;
      top: auto !important;
    }
  }
  
  /* Hide cursor on mobile */
  @media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
      display: none !important;
    }
  }

  /* Пиксельный шрифт */
  .font-minecraft {
    font-family: 'Press Start 2P', monospace;
  }

  /* Оригинальные цвета фона */
  .bg-darker {
    background-color: #111827;
  }

  .bg-dark {
    background-color: #1F2937;
  }

  /* Градиенты для секций */
  .bg-gradient-custom {
    background: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
  }
}
