/* (03.12, Mirza) Wito's tour: he leaves his place, jumps on the page, points with his arm, speaks in a bubble (js/features/wito-tour.js) */
.wt-actor { position: absolute; left: 0; top: 0; width: 62px; height: 62px; z-index: 60; pointer-events: none; display: none; will-change: transform; }
.wt-actor.on { display: block; }
.wt-body { position: relative; z-index: 2; filter: drop-shadow(0 6px 10px rgba(15, 30, 40, .25)); animation: wt-breathe 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.wt-body svg { display: block; width: 62px; height: 62px; }
@keyframes wt-breathe { 50% { transform: scale(1.03, .97); } }
.wt-arm { position: absolute; left: 7px; top: 46px; width: 0; height: 0; z-index: 1; transform: rotate(var(--wt-a, 0deg)); opacity: 0; transition: transform .35s cubic-bezier(.3, .8, .3, 1.2), opacity .2s; }
.wt-arm.on { opacity: 1; z-index: 3; }
.wt-arm b { position: absolute; left: 8px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #1c2430; box-sizing: border-box; animation: wt-poke 1s ease-in-out infinite; }
.wt-actor.arm-l .wt-body circle.wg[cx="11"], .wt-actor.arm-r .wt-body circle.wg[cx="89"] { opacity: 0; } /* (his little hand on that side becomes the arm) */
@keyframes wt-poke { 0%, 100% { transform: translateX(10px); } 50% { transform: translateX(18px); } }
.wt-bubble { position: absolute; z-index: 61; background: var(--surface, #fff); color: var(--ink, #1b2430); border: 2px solid var(--accent, #1f5f73); border-radius: 16px; padding: 12px 14px 10px; box-shadow: 0 12px 30px rgba(15, 30, 40, .22); font-size: 15px; line-height: 1.4; }
.wt-bubble::before { content: ""; position: absolute; left: calc(var(--wt-tail, 40px) - 8px); top: -9px; width: 14px; height: 14px; background: inherit; border-left: 2px solid var(--accent, #1f5f73); border-top: 2px solid var(--accent, #1f5f73); transform: rotate(45deg); }
.wt-bubble.up::before { top: auto; bottom: -9px; transform: rotate(225deg); }
.wt-bubble p { margin: 0; font-weight: 600; }
.wt-bubble small { display: block; margin-top: 3px; color: var(--muted, #5d6877); font-size: 13.5px; }
.wt-btns { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-direction: row-reverse; }
.wt-skip { border: 0; background: none; color: var(--muted, #5d6877); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 4px 0; }
/* his place while he is out: the outline stays, empty inside */
.gm-me.wt-away > *, .wt-me.wt-away > *, html[data-wt-home="tr"] .gm-wrap[data-gm="tr"] .gm-me > *, html[data-wt-home="vocab"] .gm-wrap[data-gm="vocab"] .gm-me > *, html[data-wt-home] #rv-vocab .gm-wrap .gm-me > * { visibility: hidden; }
html.wt-on .wt-say, html.wt-on .gm-wrap .gm-bubble { display: none !important; } /* (his usual little remarks wait while he shows the site) */
.wt-poof { position: absolute; z-index: 59; width: 0; height: 0; pointer-events: none; }
.wt-poof i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--accent, #1f5f73) 35%, #fff); animation: wt-puff .6s ease-out forwards; }
.wt-poof i:nth-child(1) { --dx: -26px; --dy: -10px; } .wt-poof i:nth-child(2) { --dx: 26px; --dy: -12px; } .wt-poof i:nth-child(3) { --dx: -16px; --dy: 16px; } .wt-poof i:nth-child(4) { --dx: 18px; --dy: 16px; } .wt-poof i:nth-child(5) { --dx: 0px; --dy: -26px; }
@keyframes wt-puff { from { transform: translate(0, 0) scale(.6); opacity: .9; } to { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; } }
.wt-focus { outline: 3px solid color-mix(in srgb, var(--accent, #1f5f73) 70%, transparent) !important; outline-offset: 4px; border-radius: 12px; transition: outline-color .2s; }
.wt-pulse { animation: wt-pulse 1.2s ease-in-out infinite; border-radius: 10px; }
@keyframes wt-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #1f5f73) 55%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent, #1f5f73) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .wt-body, .wt-arm b, .wt-pulse { animation: none; } }

.wt-body circle[fill="#151821"] { transition: transform .3s ease; } /* (the pupils glide when his hand moves) */
html.wt-lock-card #card .opt, html.wt-lock-card #card .say { pointer-events: none; } /* (while Wito explains the flashcard) */
