/* Tutorial System Styles */
.tutorial-icon {
    position: fixed;
    bottom: 70px;
    right: 70px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
  }
  
  .tutorial-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.7);
  }
  
  .tutorial-icon i {
    color: var(--bg-darker);
    font-size: 24px;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
  }
  
  /* The dark overlay container */
  .tutorial-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    pointer-events: none; /* Allow clicks to pass through by default */
  }
  
  /* The actual dark overlay parts */
  .tutorial-overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    pointer-events: auto; /* Block interactions with elements under the overlay */
  }
  
  /* The spotlight glow effect (without border) */
  .tutorial-spotlight-glow {
    position: absolute;
    border-radius: 4px;
    z-index: 1002;
    pointer-events: none;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0);
    animation: distinct-ripple 1.7s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
  
  @keyframes distinct-ripple {
    0% {
      box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
      box-shadow: 0 0 0 25px rgba(74, 222, 128, 0);
    }
    80% {
      box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
  }
  
  .tutorial-step {
    position: absolute;
    background-color: var(--bg-medium);
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    padding: 15px;
    max-width: 300px;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    z-index: 1005;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glow 2s infinite alternate;
    pointer-events: auto;
  }
  
  @keyframes glow {
    from {
      box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
    }
    to {
      box-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
    }
  }
  
  /* Arrow styles - Keeping the original arrow styles */
  .tutorial-step.arrow-right::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    margin-top: -10px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--accent-green);
  }
  
  .tutorial-step.arrow-left::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    margin-top: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent var(--accent-green) transparent transparent;
  }
  
  .tutorial-step.arrow-top::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--accent-green) transparent transparent;
  }
  
  .tutorial-step.arrow-bottom::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent var(--accent-green);
  }
  
  /* Fine-tune arrow positioning */
  .tutorial-step.arrow-right::after {
    right: -10px;
    border-left-width: 10px;
  }
  
  .tutorial-step.arrow-left::after {
    left: -10px;
    border-right-width: 10px;
  }
  
  .tutorial-step.arrow-top::after {
    top: -10px;
    border-bottom-width: 10px;
  }
  
  .tutorial-step.arrow-bottom::after {
    bottom: -10px;
    border-top-width: 10px;
  }
  
  /* Ensure arrows are properly centered on their respective sides */
  .tutorial-step.arrow-right::after,
  .tutorial-step.arrow-left::after {
    top: 50%;
    transform: translateY(-50%);
  }
  
  .tutorial-step.arrow-top::after,
  .tutorial-step.arrow-bottom::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .tutorial-step.active {
    opacity: 1;
  }
  
  .tutorial-step h3 {
    font-family: "VT323", monospace;
    color: var(--accent-green);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
  }
  
  .tutorial-step p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .tutorial-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
  }
  
  .tutorial-btn {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    border: 1px solid var(--accent-green);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Cousine", monospace;
    font-size: 0.8rem;
    transition: all 0.2s ease;
  }
  
  .tutorial-btn:hover {
    background-color: var(--accent-green);
    color: var(--bg-darker);
  }
  
  .tutorial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .tutorial-btn.next {
    background-color: var(--accent-green-dark);
  }
  
  .tutorial-btn.next:hover {
    background-color: var(--accent-green);
  }
  
  .tutorial-progress {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  
  .tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bg-darker);
    border: 1px solid var(--accent-green);
    margin: 0 4px;
  }
  
  .tutorial-dot.active {
    background-color: var(--accent-green);
  }
  
  .tutorial-skip {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    border: 1px solid var(--accent-green);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Cousine", monospace;
    font-size: 0.8rem;
    z-index: 1005;
    transition: all 0.2s ease;
    pointer-events: auto;
  }
  
  .tutorial-skip:hover {
    background-color: var(--accent-green);
    color: var(--bg-darker);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .tutorial-step {
      max-width: 250px;
    }
  
    .tutorial-icon {
      bottom: 10px;
      right: 10px;
      width: 40px;
      height: 40px;
    }
  
    .tutorial-icon i {
      font-size: 20px;
    }
  }
  