#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: #f3f0dd;
}
.tutorial-capture { position: fixed; inset: 0; z-index: 0; touch-action: pan-y pinch-zoom; }
.tutorial-shade { position: fixed; z-index: 1; background: #03130dac; pointer-events: none; }
#tutorial-overlay[data-spotlight="none"] .tutorial-shade { background: #03130d73; }
.tutorial-focus { position: fixed; box-sizing: border-box; z-index: 2; border: 1.5px solid #c9dcaa; border-radius: 15px; box-shadow: 0 0 0 4px #d2e4a712, 0 0 24px #c8e19a26; 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 #b6cf9861; border-radius: 22px 22px 30px 22px;
  background: linear-gradient(145deg, #203c30ef, #0d261eef);
  box-shadow: 0 20px 70px #00140b85, inset 0 1px 0 #e8edcc0d;
  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: #cfdfab; 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: #b3c6a4; margin: 0; }
.tutorial-skip { min-width: 68px; min-height: 44px; margin-left: auto; padding: 8px 0 8px 6px; border: 0; background: none; color: #c8d4ba; 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: #91ac7977 transparent; }
.tutorial-panel h2 { font: 400 30px/1.13 var(--serif, Georgia, serif); letter-spacing: -.55px; margin: 0 0 14px; color: #f3f0dd; text-wrap: balance; }
#tutorial-copy { font: 400 13px/1.7 var(--sans, sans-serif); color: #d3ddc9; margin: 0; }
#tutorial-tip { font: 400 11px/1.6 var(--sans, sans-serif); color: #afc29f; 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 #b7cd9940; border-radius: 11px; background: #acd19308; }
.tutorial-gestures b { display: block; margin-bottom: 5px; color: #e2eacb; font: 400 15px var(--serif, Georgia, serif); }
.tutorial-gestures span { display: block; color: #bfd0b3; 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: #8ba67745; border-radius: 2px; }
.tutorial-progress .is-current { background: #cfdfab; 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 #a6bc815e; background: #9eba780a; color: #dbe5ce; font: 400 12px var(--sans, sans-serif); cursor: pointer; }
.tutorial-actions button[data-guide="next"] { margin-left: auto; background: #cbdcac; border-color: #cbdcac; color: #1b3526; }
.tutorial-actions button[data-guide="next"]:hover { background: #dfebc7; }
.tutorial-actions button:disabled { opacity: .32; cursor: default; }
.tutorial-panel button:focus-visible { outline: 2px solid #e1efbc; 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; }
}
