/* Tour passo a passo (client/ui/tour.js, docs/tutorial.md). Acima da janela (#win, 30), da gaveta (25) e do aviso (40). */
.tour { position: fixed; inset: 0; z-index: 60; }
.tour[hidden] { display: none; }
.tour-block { position: absolute; inset: 0; }
.tour.nospot .tour-block { background: #05030ccc; }
/* recorte: o resto da tela escurece pela sombra enorme em volta do alvo */
.tour-spot { position: fixed; border-radius: 6px; box-shadow: 0 0 0 200vmax #05030cc4; pointer-events: none;
  transition: left .2s steps(5), top .2s steps(5), width .2s steps(5), height .2s steps(5); }
.tour-ring { position: fixed; border-radius: 6px; pointer-events: none; box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 2px var(--line), 0 0 14px 2px #ffd23a66;
  animation: tour-pulse 1.2s steps(6) infinite; transition: inherit; }
.tour.nospot .tour-spot, .tour.nospot .tour-ring { display: none; }
@keyframes tour-pulse { 50% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 2px var(--line), 0 0 22px 6px #ffd23a88; } }

.tour-box { position: fixed; width: min(340px, calc(100vw - 20px)); padding: 12px 14px 12px; box-sizing: border-box; color: var(--ink);
  font: 13px/1.45 var(--sans); outline: none; animation: slide .18s steps(4) both; }
.tour-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tour-count { font: 700 11px/1 var(--pixel); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tour-prog { flex: 1; height: 6px; border-radius: 3px; background: #0a0614; box-shadow: inset 0 0 0 1px #ffffff1a; overflow: hidden; }
.tour-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width .2s steps(5); }
.tour-title { margin: 0 0 4px; font: 700 15px/1.25 var(--pixel); color: var(--gold); text-shadow: 0 2px 0 #1a1200; }
.tour-body { margin: 0 0 10px; }
.tour-body b { color: var(--ink); }
.tour-btns { display: flex; align-items: center; gap: 6px; }
.tour-gap { flex: 1; }
.tour-btns .btn { min-height: 34px; }
.tour-skip { opacity: .85; }
.tour-btns .btn[hidden] { display: none; }
.tour-btns .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* seta: um losango que sai da borda voltada para o alvo */
.tour-arrow { position: absolute; width: 16px; height: 16px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 2px var(--line); pointer-events: none; }
.tour-arrow[hidden] { display: none; }
.tour-arrow[data-side="top"] { top: 0; clip-path: polygon(-20% -20%, 120% -20%, -20% 120%); }
.tour-arrow[data-side="bottom"] { top: 100%; clip-path: polygon(120% -20%, 120% 120%, -20% 120%); }
.tour-arrow[data-side="left"] { left: 0; clip-path: polygon(-20% -20%, -20% 120%, 120% 120%); }
.tour-arrow[data-side="right"] { left: 100%; clip-path: polygon(-20% -20%, 120% -20%, 120% 120%); }

html.mobile .tour-box { font-size: 13.5px; }
html.mobile .tour-btns .btn { min-height: 40px; }

@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-ring, .tour-prog i { transition: none; }
  .tour-ring { animation: none; }
  .tour-box { animation: none; }
}

/* "Rever o guia" na Ajuda */
.tour-replay { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.tour-replay span { flex: 1; color: var(--ink2); font-size: 12px; }
