@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
      color: #00ff88;
      font-family: 'Orbitron', monospace;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1rem;
      overflow-x: hidden;
    }

    .container {
      max-width: 600px;
      width: 100%;
      text-align: center;
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 900;
      color: #00ff88;
      text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88;
      margin-bottom: 2rem;
      letter-spacing: 2px;
      animation: glow 2s ease-in-out infinite alternate;
    }

    @keyframes glow {
      from { text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88; }
      to { text-shadow: 0 0 30px #00ff88, 0 0 60px #00ff88, 0 0 80px #00ff88; }
    }

    .game-header {
      background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
      border: 2px solid #00ff88;
      border-radius: 20px;
      padding: 1.5rem;
      margin-bottom: 2rem;
      box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .instructions {
      color: #cccccc;
      font-size: 1.1rem;
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .instructions h2 {
      color: #00ff88;
      margin-bottom: 1rem;
      font-size: 1.4rem;
    }

    .health-container {
      display: flex;
      align-items: center;
      gap: 1rem;
      justify-content: center;
      margin: 1.5rem 0;
      font-weight: 700;
      font-size: 1.2rem;
    }

    .health-bar {
      width: 200px;
      height: 20px;
      background: #222;
      border-radius: 10px;
      overflow: hidden;
      border: 2px solid #00ff88;
      box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    }

    .health-fill {
      height: 100%;
      width: 100%;
      background: linear-gradient(90deg, #00ff88, #00cc66, #009944);
      transition: width 0.3s ease;
      box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    }

    .game-container {
      position: relative;
      display: inline-block;
      margin: 2rem 0;
    }

    canvas {
      border: 3px solid #00ff88;
      background: radial-gradient(circle at center, #0a0a0a, #000000);
      border-radius: 15px;
      box-shadow: 0 0 30px rgba(0, 255, 136, 0.5), inset 0 0 50px rgba(0, 255, 136, 0.1);
      display: block;
      width: 100%;
      max-width: 500px;
      height: auto;
      aspect-ratio: 1;
    }

    .game-over-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 15px;
      backdrop-filter: blur(5px);
    }

    .game-over-overlay.hidden {
      display: none;
    }

    .game-over-content {
      background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
      padding: 2rem;
      border-radius: 20px;
      border: 2px solid #00ff88;
      text-align: center;
      box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
    }

    .game-over-content h2 {
      font-size: 2.5rem;
      color: #ff4444;
      margin-bottom: 1rem;
      text-shadow: 0 0 10px #ff4444;
    }

    .game-over-content p {
      font-size: 1.2rem;
      margin-bottom: 1rem;
      color: #cccccc;
    }

    .btn {
      background: linear-gradient(145deg, #00ff88, #00cc66);
      color: #000;
      border: none;
      padding: 1rem 2rem;
      border-radius: 15px;
      font-family: 'Orbitron', monospace;
      font-weight: 700;
      font-size: 1.1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
      text-decoration: none;
      display: inline-block;
      margin: 0.5rem;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);
      background: linear-gradient(145deg, #00cc66, #00aa55);
    }

    .btn:active {
      transform: translateY(0);
    }

    .controls {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      max-width: 300px;
      margin: 2rem auto;
      padding: 0 1rem;
    }

    .control-btn {
      background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
      border: 2px solid #00ff88;
      color: #00ff88;
      padding: 1rem;
      border-radius: 15px;
      font-family: 'Orbitron', monospace;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      user-select: none;
      touch-action: manipulation;
    }

    .control-btn:hover, .control-btn:active {
      background: linear-gradient(145deg, #00ff88, #00cc66);
      color: #000;
      transform: scale(0.95);
    }

    .control-btn.empty {
      opacity: 0;
      pointer-events: none;
    }

    .mobile-controls {
      display: none;
    }

    @media (max-width: 768px) {
      .mobile-controls {
        display: block;
      }
      
      canvas {
        max-width: 400px;
      }
      
      .game-header {
        padding: 1rem;
      }
      
      .instructions {
        font-size: 1rem;
      }
    }

    @media (max-width: 480px) {
      canvas {
        max-width: 320px;
      }
      
      .health-bar {
        width: 150px;
        height: 16px;
      }
      
      .health-container {
        font-size: 1rem;
      }
      
      .controls {
        max-width: 250px;
        gap: 0.5rem;
      }
      
      .control-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
      }
    }