.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  pointer-events: none;
  color: #fff1d2;
}
.tutorial-overlay[hidden] { display: none; }
.tutorial-overlay.tutorial-tap-anywhere { pointer-events: auto; cursor: pointer; }
.tutorial-no-outline .tutorial-outline { display: none; }
.tutorial-outline {
  position: absolute;
  border: 2px solid #f8cf84;
  border-radius: 12px;
  box-shadow: 0 0 14px #f7a750aa, inset 0 0 7px #ffce7a60;
  animation: tutorial-highlight-pulse 1.15s ease-in-out infinite alternate;
}
.tutorial-tip {
  position: absolute;
  width: min(310px, calc(100vw - 24px));
  padding: 13px 15px 14px;
  border: 1px solid #a77d60;
  border-top-color: #f0c588;
  border-radius: 12px;
  background: linear-gradient(150deg, #382638b8, #20182dcc 84%);
  box-shadow: inset 0 0 0 3px #f4c8920c, 0 5px 15px #0b061787;
}
.tutorial-tip::after {
  position: absolute;
  left: calc(var(--tutorial-arrow-x) - 5px);
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: #2a1e32cc;
  border: solid #b28a6d;
  content: '';
}
.tutorial-tip[data-side="above"]::after { bottom: -6px; border-width: 0 1px 1px 0; }
.tutorial-tip[data-side="below"]::after { top: -6px; border-width: 1px 0 0 1px; }
.tutorial-tip[data-side=""]::after { display: none; }
.tutorial-tip h2 { margin: 0 0 5px; color: #ffe7b1; font: 400 17px/1.2 "Russo One", system-ui, sans-serif; }
.tutorial-tip p { margin: 0; color: #f1dfd9; font: 500 14px/1.36 system-ui, sans-serif; }
.tutorial-tip button {
  display: block;
  min-height: 36px;
  margin: 10px 0 0 auto;
  padding: 4px 15px;
  border: 1px solid #e9b579;
  border-radius: 7px;
  color: #2a1723;
  background: linear-gradient(#ffe4a6, #d6944e);
  font: 700 14px system-ui, sans-serif;
  pointer-events: auto;
}
.tutorial-tip button[hidden] { display: none; }
.tutorial-combat-guide .tutorial-tip {
  width: min(290px, calc(100vw - 32px));
  border-color: #bb966b;
  border-radius: 10px;
  background: linear-gradient(155deg, #243446b8, #172132cc 78%);
  box-shadow: inset 0 0 0 2px #f8d6a419, 0 4px 12px #080e1b75;
  text-align: center;
}
.tutorial-combat-guide .tutorial-tip::after { background: #1c2838cc; border-color: #bb966b; }
.tutorial-combat-guide .tutorial-outline {
  border: 0;
  background: radial-gradient(ellipse, #ffe0a84d, transparent 72%);
  box-shadow: none;
}
@keyframes tutorial-highlight-pulse {
  from { opacity: .25; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-outline { animation: none; }
}
.tutorial-combat-guide.tutorial-no-outline .tutorial-outline,
.tutorial-combat-guide.tutorial-no-outline .tutorial-tip::after { display: none; }
.tutorial-passive .tutorial-outline { box-shadow: 0 0 11px #f7a75077; }
.tutorial-quests {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #9c7461;
  border-radius: 8px;
  background: #412e405c;
  color: #f3dec5;
  font: 500 13px/1.4 system-ui, sans-serif;
}
.tutorial-quests h3 { margin: 0; color: #ffe7b1; font-size: 14px; }
.tutorial-quests ul { margin: 4px 0 0; padding-inline-start: 18px; }
.tutorial-quests li::marker { color: #efbd78; }
.hero-recovery-dialog .tutorial-defeat { margin: 4px 0; color: #ebd1b8; font-size: 13px; line-height: 1.35; }
