/* Интерактивное обучение: затемнение, подсвеченная и приближённая кнопка, подсказка. */
#tour { position: fixed; inset: 0; z-index: 90; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tour-spot { position: fixed; border-radius: 18px; opacity: 0; box-shadow: 0 0 0 200vmax #000a, 0 0 0 3px var(--accent); transition: left .4s cubic-bezier(.3, .7, .3, 1), top .4s cubic-bezier(.3, .7, .3, 1), width .4s cubic-bezier(.3, .7, .3, 1), height .4s cubic-bezier(.3, .7, .3, 1), opacity .2s; pointer-events: none; }
.tour-spot::after { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 2px solid var(--accent); animation: tour-pulse 1.6s ease-out infinite; }
@keyframes tour-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }
/* Копия кнопки на светлой подложке, плавно приближается. */
.tour-lens { position: fixed; z-index: 1; display: flex; align-items: center; justify-content: center; overflow: visible; border-radius: 14px; background: var(--card); box-shadow: 0 10px 40px #0007; pointer-events: none; animation: tour-zoom .55s cubic-bezier(.2, .8, .2, 1) forwards; }
.tour-lens > * { margin: 0 !important; max-width: 100%; }
@keyframes tour-zoom { from { transform: scale(1); } to { transform: translate(var(--dx, 0), var(--dy, 0)) scale(var(--zoom)); } }
.tour-card { position: fixed; z-index: 2; padding: 16px 18px 14px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 60px #0007; }
.tour-card.fresh { animation: tour-in .3s ease-out; }
@keyframes tour-in { from { opacity: 0; transform: translateY(8px); } }
.tour-card h3 { margin: 4px 0 6px; font-size: 18px; }
.tour-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tour-count { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .3px; }
.tour-skip { float: right; border: 0; background: none; color: var(--muted); padding: 2px 4px; }
.tour-badge { display: grid; place-content: center; width: 56px; height: 56px; margin: 0 0 8px; border-radius: 18px; color: var(--accent); background: #1e96eb1f; }
.tour-badge .icon { width: 30px; height: 30px; }
.tour-bar { height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 4px 0 12px; }
.tour-bar span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.tour-actions { display: flex; justify-content: space-between; gap: 8px; }
.tour-actions button { min-height: 40px; padding: 8px 20px; border-radius: 20px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-spot::after, .tour-lens, .tour-card.fresh { animation: none; transition: none; } .tour-lens { transform: translate(var(--dx, 0), var(--dy, 0)) scale(var(--zoom)); } }
