/* ============================================================
   TUTORIAL / DEMO SYSTEM STYLES
   ============================================================ */

/* --- Spotlight Overlay --- */
.tutorial-spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10002;
  pointer-events: none;
}

.tutorial-spotlight-hole {
  position: fixed;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85);
  z-index: 10002;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #00ffea;
  animation: spotlightPulse 1.5s infinite alternate;
}

@keyframes spotlightPulse {
  0% {
    border-color: #00ffea;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85), 0 0 12px #00ffea;
  }
  100% {
    border-color: #00ffeacc;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85), 0 0 24px #00ffea;
  }
}

/* --- Tooltip --- */
.tutorial-tooltip {
  position: fixed;
  z-index: 10003;
  max-width: 340px;
  background: rgba(2, 6, 40, 0.96);
  border: 3px solid #00ffea;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 0 24px #00ffea55, 0 0 0 6px rgba(0, 255, 234, 0.08);
  animation: retroPopIn 0.36s cubic-bezier(0.7, -0.41, 0.5, 1.63);
  pointer-events: auto;
}

@keyframes retroPopIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.tutorial-tooltip-text {
  font-family: 'VT323', monospace;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.tutorial-tooltip-text strong {
  color: #00ffea;
}

.tutorial-step-indicator {
  font-family: 'VT323', monospace;
  color: #00ffeaaa;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.tutorial-tooltip-next {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  background: #00ffea;
  color: #0a0a12;
  border: 2px solid #fff;
  padding: 0.5rem 1.4rem;
  border-radius: 6px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  line-height: 1.6;
}

.tutorial-tooltip-next:hover {
  background: #fff;
  color: #00ffea;
  transform: scale(1.06);
  box-shadow: 0 0 16px #00ffea88;
}

/* --- Skip Button --- */
.tutorial-skip-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10004;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: #ffffffcc;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tutorial-skip-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00ffea;
  color: #00ffea;
}

/* --- Feedback Popup (after practice invest/pass) --- */
.tutorial-feedback-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  z-index: 10002;
}

.tutorial-feedback-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 280px;
  max-width: 420px;
  background: #18181b;
  border: 4px double #00ffea;
  box-shadow: 0 0 32px #00ffea55, 0 0 0 10px #004c4c33;
  border-radius: 16px;
  z-index: 10003;
  padding: 1.6rem 1.8rem;
  animation: retroPopIn 0.36s cubic-bezier(0.7, -0.41, 0.5, 1.63);
  text-align: center;
}

.tutorial-feedback-title {
  font-family: 'Press Start 2P', monospace;
  color: #00ffea;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #00ffea66;
}

.tutorial-feedback-text {
  font-family: 'VT323', monospace;
  color: #ddd;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.tutorial-feedback-btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  background: #00ffea;
  color: #0a0a12;
  border: 2px solid #fff;
  padding: 0.6rem 1.6rem;
  border-radius: 7px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  line-height: 1.6;
}

.tutorial-feedback-btn:hover {
  background: #fff;
  color: #00ffea;
  transform: scale(1.06);
  box-shadow: 0 0 16px #00ffea88;
}

/* --- Interstitial (between walkthrough and practice) --- */
.tutorial-interstitial {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 280px;
  max-width: 400px;
  background: #18181b;
  border: 4px double #00ffea;
  box-shadow: 0 0 32px #00ffea55, 0 0 0 10px #004c4c33;
  border-radius: 16px;
  z-index: 10003;
  padding: 1.6rem 1.8rem;
  animation: retroPopIn 0.36s cubic-bezier(0.7, -0.41, 0.5, 1.63);
  text-align: center;
}

.tutorial-interstitial-title {
  font-family: 'Press Start 2P', monospace;
  color: #00ffea;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px #00ffea66;
}

.tutorial-interstitial-text {
  font-family: 'VT323', monospace;
  color: #ddd;
  font-size: 1.2rem;
  line-height: 1.45;
  margin-bottom: 1.4rem;
}

/* --- Responsive: Mobile (<=640px) --- */
@media (max-width: 640px) {
  .tutorial-tooltip {
    max-width: calc(100vw - 2rem);
    padding: 1rem 1.1rem;
  }

  .tutorial-tooltip-text {
    font-size: 1.05rem;
  }

  .tutorial-tooltip-next,
  .tutorial-feedback-btn {
    font-size: 0.6rem;
    padding: 0.5rem 1rem;
  }

  .tutorial-skip-btn {
    font-size: 0.5rem;
    padding: 0.45rem 0.7rem;
    top: auto;
    bottom: 12px;
    right: 8px;
  }

  .tutorial-feedback-popup,
  .tutorial-interstitial {
    max-width: calc(100vw - 1.5rem);
    padding: 1.2rem 1rem;
  }

  .tutorial-feedback-title,
  .tutorial-interstitial-title {
    font-size: 0.72rem;
  }

  .tutorial-feedback-text,
  .tutorial-interstitial-text {
    font-size: 1.05rem;
  }
}

/* --- Responsive: Extra Small (<=375px) --- */
@media (max-width: 375px) {
  .tutorial-step-indicator {
    display: none;
  }

  .tutorial-tooltip-text {
    font-size: 0.95rem;
  }

  .tutorial-skip-btn {
    font-size: 0.45rem;
    padding: 0.4rem 0.6rem;
  }
}
