
:root{--wv:#7657f6;--wc:#42bee7;--wo:#ffad61;--wi:#24345b}
.tg-ambient-layer{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.tg-ambient-layer i{position:absolute;border-radius:50%;opacity:.38;animation:tgfloat 12s ease-in-out infinite alternate}
.tg-ambient-layer .b1{width:170px;height:170px;right:5%;top:18%;background:#7657f614}
.tg-ambient-layer .b2{width:120px;height:120px;left:6%;top:48%;background:#42bee714;animation-delay:-4s}
.tg-ambient-layer .b3{width:90px;height:90px;right:22%;bottom:8%;background:#ffad6114;animation-delay:-7s}
@keyframes tgfloat{to{transform:translate(18px,-18px) scale(1.05)}}
.tg-welcome{position:fixed;z-index:9997;inset-inline-end:18px;bottom:70px;width:min(370px,calc(100vw - 36px));display:grid;grid-template-columns:82px 1fr;gap:10px;align-items:end;opacity:0;transform:translateY(24px) scale(.97);pointer-events:none}
.tg-welcome.show{opacity:1;transform:none;pointer-events:auto;transition:.38s cubic-bezier(.2,.8,.2,1)}
.tg-char{width:82px;height:112px;filter:drop-shadow(0 14px 22px #26315522)}
.tg-char .arm{transform-origin:62px 53px;animation:tgwave 1.3s ease-in-out 2}
@keyframes tgwave{30%{transform:rotate(-18deg)}60%{transform:rotate(12deg)}}
.tg-welcome-card{position:relative;background:#fffffffa;border:1px solid #7657f622;border-radius:22px 22px 8px 22px;padding:15px 42px 14px 15px;box-shadow:0 22px 60px #1b254724;backdrop-filter:blur(16px)}
.tg-welcome-card h3{margin:0 0 4px;color:var(--wi);font-size:17px}.tg-welcome-card p{margin:0;color:#758198;font-size:12px;line-height:1.75}
.tg-welcome-close{position:absolute;top:9px;inset-inline-end:9px;width:29px;height:29px;border:0;border-radius:10px;background:#f4f4f7;color:#8992a0;cursor:pointer;font-size:18px}
.tg-welcome-kicker{display:inline-flex;padding:6px 9px;border-radius:999px;background:#f2eeff;color:#7050ef;font-size:10px;font-weight:900;margin-bottom:7px}
.tg-welcome-actions{display:flex;gap:8px;margin-top:11px;flex-wrap:wrap}.tg-welcome-actions a{padding:9px 11px;border-radius:12px;background:#f3efff;color:#6f50ef;font-size:11px;font-weight:900;text-decoration:none!important}.tg-welcome-actions a.primary{background:linear-gradient(135deg,#6d4df3,#8b72ff);color:white}
.tg-delight-reveal,.tg-delight-reveal.in{opacity:1!important;visibility:visible!important;transform:none!important}
.tg-confetti{position:fixed;inset:0;z-index:9998;pointer-events:none;overflow:hidden}.tg-confetti i{position:absolute;top:-16px;width:8px;height:14px;border-radius:3px;animation:tgfall .95s cubic-bezier(.15,.72,.25,1) forwards}@keyframes tgfall{to{transform:translate(var(--x),105vh) rotate(var(--r));opacity:0}}
body.test-page .tg-welcome,body.assignment-page .tg-welcome,body.story-player-page .tg-welcome{display:none!important}
@media(max-width:720px){.tg-welcome{inset-inline:12px;bottom:68px;width:auto;grid-template-columns:62px 1fr}.tg-char{width:62px;height:88px}.tg-welcome-card{padding:13px 39px 12px 13px}.tg-welcome-card h3{font-size:15px}}
@media(prefers-reduced-motion:reduce){.tg-ambient-layer i,.tg-char .arm{animation:none!important}.tg-welcome,.tg-delight-reveal{transition:none!important}}
