  /* ===== APP-152: guided tour ("Rundgang") — js/tour/46-rundgang.js =====================
     z-index 99990 is set inline by the script (above the pages and the plain .modal-overlay,
     below every stkModalZ() dialog 100010..999000 and #editorBusy 1000001). */
  .stk-tour{position:fixed;inset:0;z-index:99990;}
  .stk-tour__shield{position:absolute;inset:0;background:transparent;cursor:default;}
  /* milky dim + slight blur everywhere, except the hole the script cuts with clip-path (it clips the blur too) */
  .stk-tour__dim{position:absolute;inset:0;pointer-events:none;
    background:rgba(18,16,30,.55);backdrop-filter:blur(3px) saturate(.85);-webkit-backdrop-filter:blur(3px) saturate(.85);}
  .stk-tour__ring{position:absolute;pointer-events:none;box-sizing:border-box;
    border:2px solid var(--color-accent);box-shadow:0 0 0 4px rgba(255,255,255,.08),0 0 24px rgba(0,0,0,.25);}

  .stk-tour__bubble{position:absolute;box-sizing:border-box;width:max-content;min-width:min(220px, calc(100vw - 24px));
    background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border-strong);
    border-radius:16px;padding:16px 16px 12px;box-shadow:0 12px 36px rgba(0,0,0,.35);opacity:0;display:flex;flex-direction:column;}
  .stk-tour__bubble--in{opacity:1;animation:stkTourBubbleIn .22s ease-out forwards;}   /* APP-238: opacity:1 also holds when animations are switched off */
  @keyframes stkTourBubbleIn{from{opacity:0;transform:scale(.96);}to{opacity:1;transform:none;}}
  .stk-tour__text{font-size:14px;line-height:1.5;white-space:normal;flex:1 1 auto;min-height:0;overflow-y:auto;}
  .stk-tour__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap;flex:none;}
  .stk-tour__count{font-size:12px;color:var(--color-text-muted);white-space:nowrap;}
  .stk-tour__btns{display:flex;gap:8px;margin-left:auto;}
  .stk-tour__btn{height:34px;padding:0 14px;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;
    background:transparent;color:var(--color-text-muted);border:1px solid var(--color-border);}
  .stk-tour__btn:hover{color:var(--color-text);border-color:var(--color-border-strong);}
  .stk-tour__btn--primary{background:var(--color-primary);color:var(--color-on-primary);border-color:transparent;}
  .stk-tour__btn--primary:hover{background:var(--color-primary-hover);color:var(--color-on-primary);border-color:transparent;}
  .stk-tour__btn:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px;}
  .stk-tour__btn[hidden]{display:none;}

  /* tail: a rotated square on the edge that faces the target */
  .stk-tour__tail{position:absolute;width:14px;height:14px;background:var(--color-surface);
    border:1px solid var(--color-border-strong);transform:rotate(45deg);pointer-events:none;}
  .stk-tour__tail[hidden]{display:none;}
  .stk-tour__bubble[data-side="below"] .stk-tour__tail{top:-8px;margin-left:-7px;border-right:0;border-bottom:0;}
  .stk-tour__bubble[data-side="above"] .stk-tour__tail{bottom:-8px;margin-left:-7px;border-left:0;border-top:0;}
  .stk-tour__bubble[data-side="right"] .stk-tour__tail{left:-8px;margin-top:-7px;border-top:0;border-right:0;}
  .stk-tour__bubble[data-side="left"] .stk-tour__tail{right:-8px;margin-top:-7px;border-bottom:0;border-left:0;}

  /* character: flies in on the first step, short move per step; the bubble lies on top of its edge */
  .stk-tour__fig{position:absolute;pointer-events:none;user-select:none;object-fit:contain;opacity:0;
    filter:drop-shadow(0 8px 18px rgba(0,0,0,.35));transition:opacity .25s ease;}
  .stk-tour__fig[hidden]{display:none;}
  .stk-tour__fig--in{opacity:1;}
  .stk-tour__fig--anim{transition:left .55s cubic-bezier(.22,1,.36,1),top .55s cubic-bezier(.22,1,.36,1),opacity .25s ease;}
  .stk-tour__fig--flip{transform:scaleX(-1);}
  .stk-tour__bubble{z-index:1;}
  @media (prefers-reduced-motion: reduce){
    .stk-tour__fig,.stk-tour__fig--anim{transition:opacity .25s ease;}
    .stk-tour__bubble--in{animation:stkTourBubbleFade .2s ease-out forwards;}
    @keyframes stkTourBubbleFade{from{opacity:0;}to{opacity:1;}}
  }
