/* Тур по лаунчеру (js/tour.js). Chromium 83: margin вместо gap, стороны
   поимённо вместо inset. Подсветка - тень во весь экран с «окном» вокруг
   элемента. */
#tour-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2200;background:transparent}
#tour-layer.dim{background:rgba(8,6,20,.72)}
#tour-hole{position:fixed;z-index:2201;display:none;pointer-events:none;border-radius:12px;
  border:2px solid var(--accent);box-shadow:0 0 0 9999px rgba(8,6,20,.72),0 0 22px rgba(158,106,241,.7)}
#tour-hole.on::after{content:"";position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;
  border-radius:16px;border:2px solid var(--accent);animation:tourPulse 1.4s ease-out infinite}
@keyframes tourPulse{0%{transform:scale(.96);opacity:.9}100%{transform:scale(1.12);opacity:0}}

#tour-card{position:fixed;z-index:2202;width:420px;max-width:calc(100vw - 32px);display:flex;align-items:flex-start;
  padding:16px;border-radius:18px;background:var(--bg-card,#1b1630);border:1px solid var(--accent);
  box-shadow:0 18px 50px rgba(0,0,0,.55);color:var(--ink-1,#f2eefc)}
#tour-card.pop{animation:tourPop .22s ease-out}
@keyframes tourPop{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:none}}
#tour-card .tour-ava{width:64px;height:64px;flex:0 0 64px;object-fit:contain;margin-right:14px}
#tour-card .tour-ava.big{width:96px;height:96px;flex-basis:96px}
#tour-card .tour-body{flex:1 1 auto;min-width:0}
#tour-card .tour-h{font-weight:700;font-size:18px;margin-bottom:6px}
#tour-card .tour-text{font-size:14.5px;line-height:1.5}
#tour-card .tour-dots{margin-top:10px;line-height:0}
#tour-card .tour-dots i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px;background:rgba(255,255,255,.22)}
#tour-card .tour-dots i.on{background:var(--accent);width:16px;border-radius:4px}
#tour-card .tour-foot{margin-top:12px;display:flex;flex-wrap:wrap}
#tour-card .tour-foot .btn{margin-right:8px;margin-bottom:4px}
#tour-card .tour-foot .btn:last-child{margin-right:0}
#tour-card .tour-foot.choose .btn{padding-left:16px;padding-right:16px}
#tour-card .tour-skip{margin-top:6px;background:none;border:0;padding:0;color:var(--text-muted,#9a93b3);
  font-size:12.5px;text-decoration:underline;cursor:pointer}
#tour-card .tour-note{margin-top:8px;font-size:12px;color:var(--text-muted,#9a93b3)}
html[data-theme="light"] #tour-card{background:#fff;color:#241d3d}
html[data-theme="light"] #tour-card .tour-dots i{background:rgba(36,29,61,.18)}

.pf-tour{margin-top:18px;display:flex}
.pf-tour-btn{cursor:pointer;padding:11px 18px;border-radius:12px;font-weight:600;font-size:13px;
  background:transparent;color:var(--text-muted,#9a93b3);border:1px solid rgba(255,255,255,.14)}
.pf-tour-btn:hover{color:var(--accent);border-color:var(--accent)}
@media (max-width:760px){.pf-tour-btn{width:100%;text-align:center}}

.set-tour-btn{margin-top:8px;margin-right:8px;cursor:pointer;padding:6px 12px;border-radius:10px;font-weight:600;font-size:12.5px;
  background:transparent;color:var(--text-muted,#9a93b3);border:1px solid rgba(255,255,255,.14)}
.set-tour-btn:hover{color:var(--accent);border-color:var(--accent)}
html[data-theme="light"] .set-tour-btn{border-color:rgba(36,29,61,.2)}

#tour-bank-panel{position:fixed;z-index:2203;top:8vh;left:50%;width:520px;max-width:calc(100vw - 32px);max-height:84vh;
  overflow-y:auto;margin-left:-260px;padding:18px;border-radius:18px;background:var(--bg-card,#1b1630);
  border:1px solid var(--accent);box-shadow:0 18px 50px rgba(0,0,0,.6);color:var(--ink-1,#f2eefc)}
@media (max-width:560px){#tour-bank-panel{left:16px;margin-left:0}}
#tour-bank-panel .tb-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:16px}
#tour-bank-panel .tb-x{cursor:pointer;background:none;border:0;color:var(--text-muted,#9a93b3);text-decoration:underline;font-size:12.5px}
#tour-bank-panel .tb-group{margin-bottom:10px}
#tour-bank-panel .tb-title{font-size:12px;color:var(--text-muted,#9a93b3);margin-bottom:4px;text-transform:uppercase;letter-spacing:.04em}
#tour-bank-panel .tb-phrase{display:inline-block;margin:0 6px 6px 0;padding:5px 11px;border-radius:999px;font-size:13.5px;
  background:rgba(158,106,241,.16);border:1px solid rgba(158,106,241,.4)}
html[data-theme="light"] #tour-bank-panel{background:#fff;color:#241d3d}
