/* Welcome video for first-time buyers (js/welcome.js, ADR-11): full screen over the app, dark, one accent. */
.wl{position:fixed;inset:0;z-index:2147481000;display:flex;flex-direction:column;justify-content:space-between;background:#000;color:var(--stc-text);
  font-family:var(--stc-font);animation:wl-in .35s var(--stc-ease) both;overscroll-behavior:contain;touch-action:manipulation}
.wl.is-leaving{animation:wl-out .28s ease both}
@keyframes wl-in{from{opacity:0}to{opacity:1}}
@keyframes wl-out{to{opacity:0}}
.wl button{font:inherit;-webkit-tap-highlight-color:transparent;cursor:pointer}
.wl button:focus-visible{outline:2px solid var(--stc-focus);outline-offset:3px}

.wl__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.wl__shade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.55) 0,transparent 22%,transparent 62%,rgba(0,0,0,.78) 100%);transition:background .3s ease}
.wl[data-state="ready"] .wl__shade,.wl[data-state="paused"] .wl__shade{background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(22,9,15,.55) 50%,rgba(0,0,0,.82))}

.wl__top{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:2px;padding:calc(18px + var(--stc-safe-top)) 16px 0;pointer-events:none}
.wl__brand{font-family:Unbounded,var(--stc-font);font-size:17px;letter-spacing:.32em;padding-left:.32em}
.wl__brand-sub{font-size:9px;font-weight:500;letter-spacing:.42em;padding-left:.42em;color:var(--stc-secondary)}

.wl__center{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;pointer-events:none;padding:0 28px;text-align:center}
.wl__play{pointer-events:auto;display:grid;place-items:center;width:84px;height:84px;border-radius:50%;border:0;background:var(--stc-orange);color:#16090F;
  box-shadow:0 0 0 10px rgba(255,121,71,.18),0 18px 40px rgba(0,0,0,.5);transition:transform .2s var(--stc-ease)}
.wl__play:active{transform:scale(.94)}
.wl__play svg{width:34px;height:34px;margin-left:5px;fill:currentColor}
.wl__invite{margin:0;font-size:16px;line-height:1.45;font-weight:500;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.wl__spinner{display:none;width:44px;height:44px;border-radius:50%;border:3px solid rgba(255,244,235,.25);border-top-color:var(--stc-orange);animation:wl-spin .9s linear infinite}
@keyframes wl-spin{to{transform:rotate(360deg)}}
.wl:not([data-state="ready"]) .wl__play,.wl:not([data-state="ready"]) .wl__invite{display:none}
.wl[data-state="loading"] .wl__spinner{display:block}

/* pause / resume: small round button, top right */
.wl__toggle{position:absolute;z-index:3;top:calc(14px + var(--stc-safe-top));right:16px;display:none;place-items:center;width:42px;height:42px;border-radius:50%;
  border:1px solid rgba(255,244,235,.25);background:rgba(0,0,0,.35);color:var(--stc-text);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.wl__toggle svg{width:18px;height:18px;fill:currentColor}
.wl:is([data-state="playing"],[data-state="paused"],[data-state="loading"]) .wl__toggle{display:grid}
.wl[data-state="paused"] .wl__toggle{width:64px;height:64px;top:50%;right:50%;transform:translate(50%,-50%);background:rgba(255,121,71,.92);border:0;color:#16090F}
.wl[data-state="paused"] .wl__toggle svg{width:26px;height:26px;margin-left:3px}

.wl__bottom{position:relative;z-index:2;display:flex;flex-direction:column;gap:12px;padding:0 20px calc(20px + var(--stc-safe-bottom))}
.wl__bar{height:3px;border-radius:2px;background:rgba(255,244,235,.18);overflow:hidden;transition:opacity .3s ease}
.wl__bar i{display:block;height:100%;background:var(--stc-orange);transform-origin:left center;transform:scaleX(0);transition:transform .25s linear}
.wl.is-unlocked .wl__bar{opacity:0}
.wl__close{height:52px;border-radius:26px;border:1px solid rgba(255,244,235,.22);background:rgba(0,0,0,.4);color:rgba(255,244,235,.6);
  font-size:15px;font-weight:500;letter-spacing:.01em;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:background .25s ease,color .25s ease,border-color .25s ease}
.wl__close:disabled{cursor:default}
.wl.is-unlocked .wl__close{background:var(--stc-orange);border-color:var(--stc-orange);color:#16090F;font-weight:600}

@media (prefers-reduced-motion:reduce){.wl,.wl.is-leaving{animation:none}.wl__spinner{animation-duration:2s}}
