#tutorial-overlay {
  position: fixed; z-index: 80; inset: 0; isolation: isolate;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  color: #f3e8dd;
}
.tutorial-capture { position: fixed; inset: 0; z-index: 0; touch-action: pan-y pinch-zoom; }
.tutorial-shade { position: fixed; z-index: 1; background: #0f070bac; pointer-events: none; }
#tutorial-overlay[data-spotlight="none"] .tutorial-shade { background: #0f070b73; }
.tutorial-focus { position: fixed; box-sizing: border-box; z-index: 2; border: 1.5px solid #d4b2c4; border-radius: 15px; box-shadow: 0 0 0 4px #dbb0c712, 0 0 24px #d6a5bf26; pointer-events: none; }
.tutorial-focus[hidden] { display: none; }
.tutorial-panel {
  position: fixed; z-index: 3; box-sizing: border-box; display: flex; flex-direction: column;
  width: 360px; max-width: calc(100vw - 24px); padding: 16px 22px 20px;
  border: 1px solid #c7a0b561; border-radius: 22px 22px 30px 22px;
  background: linear-gradient(145deg, #38242fef, #22111aef);
  box-shadow: 0 20px 70px #0e060a85, inset 0 1px 0 #edddcc0d;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow: hidden;
}
.tutorial-top { flex: none; display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.tutorial-leaf { width: 25px; height: 25px; flex: none; fill: none; stroke: #d7b3c6; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.tutorial-count { font: 400 9px/1.5 var(--sans, sans-serif); letter-spacing: 1.2px; color: #c1a9b6; margin: 0; }
.tutorial-skip { min-width: 68px; min-height: 44px; margin-left: auto; padding: 8px 0 8px 6px; border: 0; background: none; color: #d0bec8; font: 400 11px var(--sans, sans-serif); cursor: pointer; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.tutorial-body { min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #a4819477 transparent; }
.tutorial-panel h2 { font: 400 30px/1.13 var(--serif, Georgia, serif); letter-spacing: -.55px; margin: 0 0 14px; color: #f3e8dd; text-wrap: balance; }
#tutorial-copy { font: 400 13px/1.7 var(--sans, sans-serif); color: #daccd3; margin: 0; }
#tutorial-tip { font: 400 11px/1.6 var(--sans, sans-serif); color: #bda4b1; margin: 15px 0 1px; }
.tutorial-gestures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0; margin: 20px 0 0; list-style: none; }
.tutorial-gestures[hidden] { display: none; }
.tutorial-gestures li { min-width: 0; padding: 11px 8px; border: 1px solid #c5a1b440; border-radius: 11px; background: #c89cb308; }
.tutorial-gestures b { display: block; margin-bottom: 5px; color: #eadbcb; font: 400 15px var(--serif, Georgia, serif); }
.tutorial-gestures span { display: block; color: #ccb7c2; font: 400 10px/1.5 var(--sans, sans-serif); }
.tutorial-bottom { flex: none; padding-top: 18px; }
.tutorial-progress { display: flex; gap: 6px; }
.tutorial-progress span { display: block; height: 3px; width: 17px; background: #9f7e9045; border-radius: 2px; }
.tutorial-progress .is-current { background: #d7b3c6; width: 29px; }
.tutorial-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.tutorial-actions button { min-width: 66px; min-height: 46px; padding: 10px 14px; border-radius: 24px; border: 1px solid #b38aa05e; background: #b0829b0a; color: #e5dace; font: 400 12px var(--sans, sans-serif); cursor: pointer; }
.tutorial-actions button[data-guide="next"] { margin-left: auto; background: #d5b3c5; border-color: #d5b3c5; color: #311f29; }
.tutorial-actions button[data-guide="next"]:hover { background: #ebdac7; }
.tutorial-actions button:disabled { opacity: .32; cursor: default; }
.tutorial-panel button:focus-visible { outline: 2px solid #e9d6c2; outline-offset: 3px; }
@media (max-width: 380px) {
  .tutorial-panel { padding: 12px 17px 17px; }
  .tutorial-panel h2 { font-size: 27px; }
  .tutorial-count { font-size: 8px; letter-spacing: .7px; }
  .tutorial-top { gap: 6px; }
  .tutorial-leaf { width: 22px; height: 22px; }
  .tutorial-actions { gap: 7px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .tutorial-panel { padding: 7px 18px 13px; }
  .tutorial-top { margin-bottom: 4px; }
  .tutorial-panel h2 { font-size: 25px; margin-bottom: 10px; }
  #tutorial-copy { font-size: 12px; line-height: 1.6; }
  #tutorial-tip { margin-top: 9px; }
  .tutorial-gestures { margin-top: 12px; }
  .tutorial-gestures li { padding: 8px; }
  .tutorial-bottom { padding-top: 11px; }
  .tutorial-actions { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #tutorial-overlay *, #tutorial-overlay *::before, #tutorial-overlay *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
