/* waov-welcome-back.css (2026-11-08)
   WELCOME BACK {name}: a quick full-screen takeover that replaces the small floating welcome ticket on the role dashboards.
   About 2.1 s on screen (hold +1 s, 2026-11-09): fade in .35 s, hold, fade out .35 s. Wispy anime wind (white + cyan streaks and wisps, transform and
   opacity only) blows across while Anton letters settle in from a blur. Never blocks the page: pointer-events none, and
   waov-welcome-back.js removes it from the DOM when done. Shared by dashboard, teacher, mod and collab partner pages. */

/* the old floating ticket stays in the markup (its script and the waov-welcome event keep working) but never shows */
html body #welcomeSheet.wsheet{display:none!important}

.wb-root{position:fixed;inset:0;z-index:2147483000;pointer-events:none;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:radial-gradient(ellipse at 50% 0%,rgba(56,232,255,.10) 0%,#000 62%) #000;
  opacity:0;animation:wb-life 2.1s linear both;contain:strict}
.wb-root.wb-skip{animation:wb-skip .18s linear both}
@keyframes wb-life{0%{opacity:0}16.667%{opacity:1}83.333%{opacity:1}100%{opacity:0}}
@keyframes wb-skip{0%{opacity:var(--wb-from,1)}100%{opacity:0}}

/* ---- wind: long thin streaks and soft wisps, all GPU (transform + opacity) ---- */
.wb-wind{position:absolute;inset:0;pointer-events:none}
.wb-streak{position:absolute;left:0;top:var(--y);width:var(--w);height:var(--h,2px);border-radius:999px;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,var(--c,rgba(255,255,255,.85)) 55%,rgba(255,255,255,0) 100%);
  opacity:0;transform:translate3d(-60vw,0,0) rotate(var(--r,-4deg));will-change:transform,opacity;
  animation:wb-streak var(--d,.8s) cubic-bezier(.3,.1,.3,1) var(--dl,0s) both}
@keyframes wb-streak{
  0%{opacity:0;transform:translate3d(-60vw,0,0) rotate(var(--r,-4deg)) scaleX(.5)}
  25%{opacity:var(--o,.8)}
  70%{opacity:calc(var(--o,.8) * .7)}
  100%{opacity:0;transform:translate3d(130vw,var(--dy,-3vh),0) rotate(var(--r,-4deg)) scaleX(1.25)}}
.wb-wisp{position:absolute;left:0;top:var(--y);width:var(--w);height:var(--h);border-radius:50% 60% 45% 55% / 60% 40% 60% 40%;
  background:radial-gradient(ellipse at 40% 50%,var(--c,rgba(255,255,255,.32)) 0%,rgba(255,255,255,0) 68%);filter:blur(10px);
  opacity:0;transform:translate3d(-40vw,0,0) rotate(var(--r,-8deg));will-change:transform,opacity;
  animation:wb-wisp var(--d,1s) cubic-bezier(.25,.1,.35,1) var(--dl,0s) both}
@keyframes wb-wisp{
  0%{opacity:0;transform:translate3d(-40vw,0,0) rotate(var(--r,-8deg)) scale(.7,.8)}
  35%{opacity:var(--o,.7)}
  100%{opacity:0;transform:translate3d(120vw,var(--dy,-6vh),0) rotate(calc(var(--r,-8deg) + 14deg)) scale(1.3,.6)}}

/* ---- cinematic letters ---- */
.wb-type{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:.08em;padding:0 16px;max-width:100%;box-sizing:border-box;text-align:center}
.wb-kicker{font-family:"Rajdhani","Chakra Petch",system-ui,sans-serif;font-weight:600;font-size:clamp(11px,1.6vw,14px);letter-spacing:.42em;
  text-transform:uppercase;color:#38e8ff;opacity:0;animation:wb-kick .5s ease-out .05s both;margin-bottom:.6em}
@keyframes wb-kick{0%{opacity:0;transform:translate3d(0,6px,0)}100%{opacity:.9;transform:none}}
.wb-line{display:block;font-family:"Anton",Impact,"Arial Narrow",sans-serif;font-weight:400;line-height:.98;text-transform:uppercase;color:#fff;
  text-shadow:0 0 22px rgba(56,232,255,.55);white-space:nowrap;letter-spacing:.06em;animation:wb-settle .55s cubic-bezier(.2,.7,.2,1) var(--ld,0s) both}
.wb-l1{font-size:clamp(34px,9vw,108px)}
.wb-l2{font-size:clamp(30px,6.4vw,78px);color:#fff;max-width:92vw;white-space:normal;overflow-wrap:anywhere}
@keyframes wb-settle{0%{letter-spacing:.32em}100%{letter-spacing:.06em}}
.wb-ch{display:inline-block;opacity:0;filter:blur(10px);transform:translate3d(0,.12em,0) scale(1.08);
  animation:wb-ch .38s cubic-bezier(.2,.7,.2,1) var(--cd,0s) both}
.wb-sp{display:inline-block;width:.3em}
@keyframes wb-ch{0%{opacity:0;filter:blur(10px);transform:translate3d(0,.12em,0) scale(1.08)}60%{opacity:1}100%{opacity:1;filter:blur(0);transform:none}}

/* a faint cyan sweep line under the name */
.wb-rule{display:block;width:min(46vw,420px);height:2px;margin-top:.9em;border-radius:2px;
  background:linear-gradient(90deg,rgba(56,232,255,0),#38e8ff 50%,rgba(56,232,255,0));
  transform:scaleX(0);opacity:0;animation:wb-rule .5s cubic-bezier(.2,.7,.2,1) .3s both}
@keyframes wb-rule{0%{transform:scaleX(0);opacity:0}100%{transform:scaleX(1);opacity:.8}}

/* reduced motion: a plain fade, no wind, letters already settled */
.wb-root.wb-rm{animation:wb-life-rm 2s linear both}
.wb-root.wb-rm .wb-wind{display:none}
.wb-root.wb-rm .wb-line,.wb-root.wb-rm .wb-ch,.wb-root.wb-rm .wb-kicker,.wb-root.wb-rm .wb-rule{animation:none;opacity:1;filter:none;transform:none}
.wb-root.wb-rm .wb-kicker{opacity:.9}
.wb-root.wb-rm .wb-rule{opacity:.8}
@keyframes wb-life-rm{0%{opacity:0}10%{opacity:1}90%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .wb-root{animation:wb-life-rm 2s linear both}
  .wb-root .wb-wind{display:none}
  .wb-root .wb-line,.wb-root .wb-ch,.wb-root .wb-kicker,.wb-root .wb-rule{animation:none!important;opacity:1;filter:none;transform:none}
}
