#__tutorial_backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.14);
}
.__tutorial_highlight {
  position: fixed;
  z-index: 100002;
  pointer-events: none;
  border: 2px solid #0096f9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18);
  transition: left 0.16s ease, top 0.16s ease, width 0.16s ease, height 0.16s ease;
}
.__tutorial_tooltip {
  position: fixed;
  z-index: 100003;
  width: min(360px, calc(100vw - 32px));
  min-width: 180px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: auto;
}
.__tutorial_tooltip strong { display: block; margin-bottom: 6px; font-size: 15px; }
.__tutorial_intro {
  width: min(560px, calc(100vw - 40px));
  min-height: 260px;
  padding: 32px 36px;
  border-radius: 20px;
  border-color: rgba(0, 150, 249, 0.22);
  box-shadow: 0 24px 64px rgba(15, 35, 55, 0.24);
  font-size: 16px;
  line-height: 1.65;
}
.__tutorial_intro strong { margin-bottom: 16px; font-size: 24px; line-height: 1.2; }
.__tutorial_intro .__tutorial_counter { margin-top: 24px; color: #477089; font-weight: 600; }
.__tutorial_intro .__tutorial_arrow { display: none; }
.__tutorial_choices { display: grid; gap: 6px; margin-top: 12px; }
.__tutorial_choice {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #f8f8f8;
  color: #111;
  text-align: left;
  cursor: pointer;
}
.__tutorial_choice:hover { border-color: #ff8800; background: #fff; }
.__tutorial_counter { display: block; margin-top: 10px; color: #666; font-size: 12px; }
.__tutorial_arrow { position: absolute; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); }
.__tutorial_tooltip[data-placement="top"] .__tutorial_arrow { bottom: -6px; left: calc(50% - 5px); }
.__tutorial_tooltip[data-placement="bottom"] .__tutorial_arrow { top: -6px; left: calc(50% - 5px); }
.__tutorial_tooltip[data-placement="left"] .__tutorial_arrow { right: -6px; top: calc(50% - 5px); }
.__tutorial_tooltip[data-placement="right"] .__tutorial_arrow { left: -6px; top: calc(50% - 5px); }
.__tutorial_connector { position: fixed; z-index: 100001; pointer-events: none; overflow: visible; }
.__tutorial_connector path { stroke: #0095f900; stroke-width: 2.5; fill: none; }
.tutorial-toggle-btn {
  position: static;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0 88px 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ff8800;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  font-weight: bold !important;
}
.tutorial-toggle-btn:hover { transform: translateY(-1px); }
header.__tutorial_header_host {
  position: relative;
  display: flex;
  align-items: center;
}
.tutorial-nav-btn {
  position: fixed;
  bottom: 18px;
  z-index: 100004;
  min-width: 48px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font: 600 15px system-ui, sans-serif;
}
.tutorial-nav-previous { left: 18px; }
.tutorial-nav-next { right: 18px; }
.tutorial-nav-btn:disabled { opacity: 0.45; cursor: default; }
#__tutorial_quit {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 100004;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: #b42318;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font: 600 14px system-ui, sans-serif;
}
@media (max-width: 768px) {
  .tutorial-toggle-btn { margin-right: 120px; width: 26px; height: 26px; font-size: 17px; box-shadow: none; }
  .__tutorial_tooltip { min-width: 0; width: min(92vw, 360px); padding: 12px; }
  .__tutorial_intro { width: min(92vw, 520px); min-height: 220px; padding: 24px; border-radius: 18px; font-size: 15px; }
  .__tutorial_intro strong { font-size: 21px; }
  .tutorial-nav-btn { bottom: 12px; height: 40px; }
  #__tutorial_quit { right: 12px; bottom: 62px; }
}

@media (min-width: 769px) {
  .tutorial-toggle-btn {
    margin-right: 180px !important; /* Forza lo spazio per allontanarlo da header-patreon */
  }
}
