/* Guided tours (public/js/tour.js): dimmed page with a highlighted element, explanation box, "?" button bottom right. Tokens only. */
.tour-back { position: fixed; inset: 0; z-index: 1300; }
.tour-hole { position: fixed; z-index: 1301; border-radius: 10px; pointer-events: none; transition: all .2s ease;
  box-shadow: 0 0 0 9999px rgba(10, 14, 30, .58), 0 0 0 3px var(--accent); }
.tour-pop { position: fixed; z-index: 1302; width: min(340px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px); box-shadow: var(--shadow-lg); padding: 18px 18px 14px; transition: left .2s ease, top .2s ease; }
.tour-pop.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); text-align: center; padding: 26px 24px 18px; }
.tour-pop.center .tour-arrow { display: none; }
.tour-pop.center .tour-foot { justify-content: center; }
.tour-pop h3 { font-size: var(--fs-md, 16px); margin: 0 26px 6px 0; line-height: 1.3; }
.tour-pop.center h3 { font-size: 20px; margin: 0 0 8px; }
.tour-pop p { margin: 0 0 12px; color: var(--text-2); font-size: var(--fs-sm, 14px); line-height: 1.55; }
.tour-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.tour-x:hover { background: var(--surface-2); color: var(--text); } .tour-x .ico { width: 16px; height: 16px; }
.tour-dots { display: flex; gap: 5px; margin-bottom: 12px; } .tour-pop.center .tour-dots { justify-content: center; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-strong); transition: width .2s; } .tour-dots i.on { width: 18px; background: var(--accent); }
.tour-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour-n { font-size: var(--fs-xs, 12px); color: var(--text-3); margin-right: auto; }
.tour-pop.center .tour-n { margin-right: 0; flex-basis: 100%; order: 9; }
.tour-off { border: 0; background: none; color: var(--text-3); font: inherit; font-size: var(--fs-xs, 12px); text-decoration: underline; cursor: pointer; padding: 4px; }
.tour-foot .btn .ico { width: 14px; height: 14px; }
.tour-arrow { position: absolute; width: 12px; height: 12px; background: var(--surface); border: 1px solid var(--border); transform: rotate(45deg); margin: -6px; }
.tour-pop[data-side="bottom"] .tour-arrow { top: 0; border-right: 0; border-bottom: 0; }
.tour-pop[data-side="top"] .tour-arrow { top: 100%; border-left: 0; border-top: 0; }
.tour-pop[data-side="right"] .tour-arrow { left: 0; border-top: 0; border-right: 0; }
.tour-pop[data-side="left"] .tour-arrow { left: 100%; border-bottom: 0; border-left: 0; }
.tour-pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 18px 18px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.tour-pop.sheet .tour-arrow { display: none; }
/* "?" tour button */
.tour-fab { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px;
  border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm, 14px); font-weight: 600;
  box-shadow: var(--shadow); cursor: pointer; }
.tour-fab .ico { width: 18px; height: 18px; color: var(--accent); }
.tour-fab:hover { border-color: var(--accent); } .tour-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.tour-fab.pulse { animation: tour-pulse 1.6s ease-out 4; }
@keyframes tour-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
body.has-tour-fab .toasts { bottom: 72px; }
body.tour-on .tour-fab { visibility: hidden; }
@media (max-width: 640px) { .tour-fab { right: 12px; bottom: 12px; height: 38px; } .tour-fab span { display: none; } .tour-fab { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-pop, .tour-dots i { transition: none; } .tour-fab.pulse { animation: none; } }
