/* === TUTORIAL — animated hints + celebration === */

.tutorial-hint {
  position: fixed;
  z-index: 250;
  pointer-events: none;
  transform: translate(-50%, -100%);
  font-family: 'Courier New', monospace;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tutorial-hint.visible {
  opacity: 1;
}

.tutorial-hint .tutorial-bubble {
  background: rgba(10, 6, 4, 0.92);
  border: 1px solid rgba(255, 160, 60, 0.55);
  border-radius: 8px;
  padding: 9px 14px;
  color: #ffd699;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 6px 22px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(255, 140, 60, 0.25),
    inset 0 0 14px rgba(255, 120, 40, 0.08);
  text-shadow: 0 0 6px rgba(255, 140, 60, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.7);
  animation: hintBreathe 2.4s ease-in-out infinite;
}
@keyframes hintBreathe {
  0%, 100% { transform: scale(1);     box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 6px 22px rgba(0,0,0,0.6), 0 0 18px rgba(255,140,60,0.25), inset 0 0 14px rgba(255,120,40,0.08); }
  50%      { transform: scale(1.035); box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 6px 22px rgba(0,0,0,0.6), 0 0 28px rgba(255,140,60,0.5),  inset 0 0 18px rgba(255,120,40,0.18); }
}

/* Inline key highlight inside hint text */
.tutorial-hint .tk {
  display: inline-block;
  background: rgba(255, 140, 60, 0.22);
  border: 1px solid rgba(255, 160, 60, 0.7);
  border-radius: 4px;
  padding: 1px 6px;
  margin: 0 2px;
  color: #ffe7b3;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 140, 60, 0.4);
}

.tutorial-hint b {
  color: #ffe7b3;
  font-weight: bold;
}

/* ============================================ */
/*  ARROWS                                        */
/* ============================================ */
.tutorial-hint .tutorial-arrow {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(10, 6, 4, 0.92);
  border-right: 1px solid rgba(255, 160, 60, 0.55);
  border-bottom: 1px solid rgba(255, 160, 60, 0.55);
  box-shadow: 3px 3px 10px rgba(255, 140, 60, 0.25);
  animation: arrowBob 1.4s ease-in-out infinite;
}
@keyframes arrowBob {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); }
  50%      { transform: translateX(-50%) rotate(45deg) translateY(4px); }
}

/* Bottom-center anchor: arrow points down at the screen edge */
.tutorial-hint[data-position="bottom-center"] {
  transform: translate(-50%, -100%);
}

/* ============================================ */
/*  CELEBRATION TOAST                             */
/* ============================================ */
.tutorial-celebration {
  position: fixed;
  left: 50%;
  top: 38%;
  z-index: 500;
  transform: translate(-50%, -50%) scale(0.85);
  pointer-events: none;
  background: rgba(10, 6, 4, 0.94);
  border: 1px solid rgba(120, 200, 90, 0.7);
  border-radius: 12px;
  padding: 22px 36px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: #b8e88a;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(120, 200, 90, 0.6), 1px 1px 0 rgba(0, 0, 0, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 10px 40px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(120, 200, 90, 0.4),
    inset 0 0 24px rgba(120, 200, 90, 0.12);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.tutorial-celebration.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tutorial-celebration b {
  font-size: 19px;
  color: #d8ffa8;
  display: block;
  margin-bottom: 6px;
}
