/* map-tour.css — the map's guided tour (map-tour.js; the owner's request of 27 October 2026). The page dims, one part
   is lit (.mt-hole: a window whose huge shadow is the dim), and a box explains it: beside the lit part on a desktop, a
   sheet at the foot (or the top) of a phone's screen that never covers it. The map's tokens (backtest.html: --card,
   --border, --text, --muted, --brand, --brand-rgb) on both skins. Under the sign-in prompt (z 2147483000), over
   everything else. */
.mt-root { position:fixed; inset:0; z-index:2147482000; pointer-events:none; direction:rtl; font-family:Vazirmatn, sans-serif; }
.mt-root[hidden] { display:none; }

/* The lit part: everything outside it is the shadow. A step without a part has an empty hole (all dimmed). */
.mt-hole {
  position:fixed; border-radius:10px; pointer-events:none;
  box-shadow:0 0 0 200vmax rgba(3,9,10,.66), 0 0 0 2px rgba(var(--brand-rgb),.95), 0 0 18px 2px rgba(var(--brand-rgb),.45);
  transition:left .3s ease, top .3s ease, width .3s ease, height .3s ease, border-radius .3s ease;
}
:root[data-theme="light"] .mt-hole {
  box-shadow:0 0 0 200vmax rgba(8,22,25,.58), 0 0 0 2px rgba(var(--brand-rgb),.95), 0 0 18px 2px rgba(var(--brand-rgb),.35);
}
.mt-hole.mt-round { border-radius:50%; }
.mt-hole.mt-none { box-shadow:0 0 0 200vmax rgba(3,9,10,.66); }
:root[data-theme="light"] .mt-hole.mt-none { box-shadow:0 0 0 200vmax rgba(8,22,25,.58); }
/* A step that waits for a press: the ring breathes. */
.mt-wait-on .mt-hole { animation:mt-pulse 1.6s ease-in-out infinite; }
@keyframes mt-pulse {
  0%, 100% { outline:2px solid rgba(var(--brand-rgb),.0); outline-offset:2px; }
  50% { outline:3px solid rgba(var(--brand-rgb),.75); outline-offset:6px; }
}

/* The blockers take every press outside the lit part (and on it, unless the step waits for one there). */
.mt-block { position:fixed; pointer-events:auto; touch-action:none; background:transparent; }
.mt-block[hidden] { display:none; }

/* The box. */
.mt-sheet {
  position:fixed; pointer-events:auto; box-sizing:border-box;
  padding:14px 16px 12px; text-align:right; color:var(--text);
  background:var(--card); border:1px solid rgba(var(--brand-rgb),.45); border-radius:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.45);
  overflow-y:auto; overscroll-behavior:contain;
}
:root[data-theme="light"] .mt-sheet { box-shadow:0 16px 40px rgba(15,30,32,.22); }
.mt-sheet-float { width:min(360px, calc(100vw - 24px)); max-height:calc(100vh - 24px); }
.mt-sheet-phone {
  left:10px; right:10px; width:auto; max-height:46vh; max-height:46dvh;
  padding:13px 14px calc(10px + env(safe-area-inset-bottom));
}
.mt-sheet-phone.mt-bottom { bottom:10px; top:auto; }
.mt-sheet-phone.mt-top { top:10px; bottom:auto; padding-bottom:10px; }
.mt-sheet.mt-in { animation:mt-in .25s ease-out; }
@keyframes mt-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.mt-count { font-size:11px; font-weight:700; color:var(--brand); margin:0 0 3px; }
.mt-title { margin:0 0 6px; font-size:15px; font-weight:800; line-height:1.6; color:var(--text); }
.mt-text { margin:0; font-size:13px; line-height:1.95; color:var(--text); }
.mt-text b { font-weight:800; }
.mt-keys { display:flex; flex-direction:column; gap:2px; margin-top:6px; }
.mt-keys > span { display:flex; align-items:baseline; gap:7px; }
.mt-glyph { flex:none; display:inline-flex; transform:translateY(2px); }
.mt-quote {
  display:block; margin-top:7px; padding:5px 9px; border-radius:8px; font-size:12px; line-height:1.85;
  background:rgba(var(--brand-rgb),.09); border:1px solid rgba(var(--brand-rgb),.28); color:var(--text);
}
.mt-wait { margin:8px 0 0; font-size:12px; font-weight:700; color:var(--brand); }
.mt-wait[hidden] { display:none; }

.mt-acts { display:flex; gap:8px; margin-top:12px; }
.mt-next, .mt-prev {
  min-height:40px; padding:0 16px; border-radius:10px; font:inherit; font-size:13px; font-weight:800; cursor:pointer;
}
.mt-next { flex:1; border:0; background:var(--brand); color:#062224; }
:root[data-theme="light"] .mt-next { color:#fff; }
.mt-next:disabled { opacity:.38; cursor:default; }
.mt-prev { flex:none; border:1px solid var(--border); background:transparent; color:var(--muted); }
.mt-prev[hidden] { display:none; }
.mt-next:focus-visible, .mt-prev:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
.mt-sheet-phone .mt-next, .mt-sheet-phone .mt-prev { min-height:44px; }

/* «؟» in the toolbar: the toolbar's own icon button. */
.mt-help { font-family:Vazirmatn, sans-serif; font-size:15px; font-weight:800; line-height:1; }
body.compact .mt-help { font-size:18px; }

@media (prefers-reduced-motion: reduce) {
  .mt-hole { transition:none; }
  .mt-wait-on .mt-hole { animation:none; outline:3px solid rgba(var(--brand-rgb),.75); outline-offset:4px; }
  .mt-sheet.mt-in { animation:none; }
}
