/* The Delight lane, member app part (switch dv_delight). Loaded after app.css and the other app styles, only while the switch is On, and never on the door,
   poster, badge, camera or big-screen pages. Same rules as the website part (delight-site.css): pure CSS and inline drawings; only transform and opacity
   move; every loop is paused while off screen or while the tab is hidden; under "reduce motion" nothing moves and every drawing is shown complete; nothing
   changes a box size once the page has drawn; gold is only a thin line or a ring, never a fill or words. The pass and the door keep their stillness. */

.dla{--dl-brass:var(--brass,#B08D57);--dl-brass-d:var(--brass-on-dark,#C9A86A);--dl-ease:cubic-bezier(.2,.8,.2,1);--dl-px:0;--dl-py:0}

/* ---------- slow light over the main screens (Today, Events, People, Me): a very faint wash that sits above the page's own colour and under every button, bar and sheet that has a layer of its own ---------- */
.dla .dl-amb{position:fixed;inset:0;z-index:55;pointer-events:none;overflow:hidden}
.dla .dl-amb__p{position:absolute;inset:0;transform:translate3d(calc(var(--dl-px) * 16px),calc(var(--dl-py) * 12px),0);transition:transform .7s var(--dl-ease)}
.dla .dl-amb i{position:absolute;display:block;width:82vmax;aspect-ratio:1;border-radius:50%;will-change:transform}
.dla .dl-amb i:nth-child(1){left:-34vmax;top:-40vmax;background:radial-gradient(closest-side,rgba(14,90,67,.075),rgba(14,90,67,0) 70%);animation:dl-drift-a 32s ease-in-out infinite alternate}
.dla .dl-amb i:nth-child(2){right:-40vmax;top:8vh;background:radial-gradient(closest-side,rgba(176,141,87,.10),rgba(176,141,87,0) 70%);animation:dl-drift-b 40s ease-in-out infinite alternate}
.dla .dl-amb i:nth-child(3){left:-24vmax;bottom:-50vmax;background:radial-gradient(closest-side,rgba(14,90,67,.05),rgba(14,90,67,0) 70%);animation:dl-drift-c 46s ease-in-out infinite alternate}
@media(max-width:700px){.dla .dl-amb i:nth-child(3){display:none}}
.dla.dl-paused .dl-amb i{animation-play-state:paused}
@keyframes dl-drift-a{to{transform:translate3d(14vmax,10vmax,0) scale(1.08)}}
@keyframes dl-drift-b{to{transform:translate3d(-12vmax,-8vmax,0) scale(.94)}}
@keyframes dl-drift-c{to{transform:translate3d(10vmax,-9vmax,0) scale(1.1)}}

/* the thin gold line under the title of a main screen draws once */
.dla .apphead__t{position:relative}
.dla .apphead__t::after{content:"";position:absolute;left:0;bottom:-4px;width:30px;height:1px;background:var(--dl-brass);transform-origin:left;animation:dl-line .9s var(--dl-ease) .25s both}
@keyframes dl-line{from{transform:scaleX(0)}}

/* ---------- things answer the finger ---------- */
.dla :is(a.mb-row,button.mb-row,.mb-quiet,.mb-addback,.prow,.erow,.hcard,.qa,.act,.seg a,.seg button,.lrow a){transition:transform .14s var(--dl-ease),opacity .14s}
.dla :is(a.mb-row,button.mb-row,.mb-quiet,.mb-addback,.prow,.erow,.hcard,.qa,.act):active{transform:scale(.985)}
.dla :is(.seg a,.seg button,.lrow a):active{transform:scale(.97)}
.dla .tab.is-on .tab__ic{animation:dl-tab .5s var(--dl-ease) both}
@keyframes dl-tab{0%{transform:scale(.82)}60%{transform:scale(1.07)}100%{transform:none}}
/* a soft ring of light spreads from the touch on the main buttons */
.dla .dl-rip-host{position:relative;overflow:hidden}
.dla .dl-rip{position:absolute;border-radius:50%;background:currentColor;opacity:.16;pointer-events:none;transform:scale(0);animation:dl-rip .6s var(--dl-ease) forwards}
@keyframes dl-rip{to{transform:scale(1);opacity:0}}

/* ---------- a small sign that it worked ---------- */
.dla .toast.is-on:not(.is-err):not(.has-act).dl-tick{display:flex;align-items:center;gap:9px;padding-left:12px}
.dla .toast.is-on:not(.is-err):not(.has-act).dl-tick::before{content:"";flex:none;width:20px;height:20px;border-radius:50%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%237FD1B0'/%3E%3Cpath d='M5.6 10.4l3 3 5.8-6.4' fill='none' stroke='%2316130F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px 20px no-repeat;animation:dl-pop .5s var(--dl-ease) both}
.dla .toast.is-err.is-on{animation:dl-shake .42s var(--dl-ease)}
@keyframes dl-pop{0%{transform:scale(.3);opacity:0}65%{transform:scale(1.18);opacity:1}100%{transform:scale(1)}}
@keyframes dl-shake{0%,100%{transform:translate(-50%,0)}25%{transform:translate(calc(-50% - 5px),0)}60%{transform:translate(calc(-50% + 4px),0)}}
/* the button that was pressed answers with one ring */
.dla .dl-ok{position:relative}
.dla .dl-ok::before{content:"";position:absolute;inset:-3px;border-radius:inherit;border:2px solid var(--green-top,#1B7D5E);opacity:0;pointer-events:none;animation:dl-ring .8s var(--dl-ease) both}
@keyframes dl-ring{0%{transform:scale(.96);opacity:.9}100%{transform:scale(1.1);opacity:0}}
/* the first time on this phone: a quiet burst of light, with no words */
.dl-burst{position:fixed;z-index:90;width:0;height:0;pointer-events:none}
.dl-burst i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--green-on-dark,#7FD1B0);opacity:0;transform:translate(0,0) scale(.4);animation:dl-spark 1.1s var(--dl-ease) var(--d,0ms) both}
.dl-burst i:nth-child(3n){background:var(--dl-brass-d)}
.dl-burst b{position:absolute;left:-18px;top:-18px;width:36px;height:36px;border-radius:50%;border:1.5px solid var(--dl-brass-d);opacity:0;animation:dl-ring2 1.1s var(--dl-ease) both}
@keyframes dl-spark{0%{opacity:1;transform:translate(0,0) scale(.4)}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(1)}}
@keyframes dl-ring2{0%{transform:scale(.4);opacity:.9}100%{transform:scale(2.6);opacity:0}}

/* ---------- waiting: a soft light passes over the placeholder shapes ---------- */
.dla .sk{animation:none}
.dla .sk::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent);animation:dl-shim 1.5s ease-in-out infinite}
@keyframes dl-shim{to{transform:translateX(100%)}}

/* ---------- lists arrive one after another (only while the page opens, never when a list refreshes by itself) ---------- */
.dla.dl-enter :is(.elist>li,.prow,.mb-rows>*,.mb-sec,.mb-quiet,.mb-addback,.hcard,.lrow){animation:dl-rise .5s var(--dl-ease) both;animation-delay:calc(var(--dl-i,0) * 55ms)}
@keyframes dl-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- friendly empty states with a drawing ---------- */
.dla .empty[data-dl-art]:not(.dl-empty)::before{content:"";display:block;height:106px}
.dla .empty.dl-empty .empty__ic{display:none}
.dla .dl-art{display:block;width:min(176px,62%);aspect-ratio:160/110;height:auto;margin:0 auto 2px;overflow:visible}
.dla .dl-art *{animation-play-state:paused}
.dla .dl-art.dl-live *{animation-play-state:running}
.dla .dl-art :is(.d-bob1,.d-bob2,.d-pulse,.d-pop,.d-tw,.d-fl,.d-halo){transform-box:fill-box;transform-origin:center}
.dla .dl-art .d-s{fill:none;stroke:var(--green,#0E5A43);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dla .dl-art .d-g{fill:none;stroke:var(--dl-brass);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.dla .dl-art .d-f1{fill:var(--sage,#DCE8DF)}
.dla .dl-art .d-f2{fill:var(--sand,#F1E4D3)}
.dla .dl-art .d-f3{fill:#fff}
.dla .dl-art .d-gf{fill:var(--dl-brass)}
.dla .dl-art .d-dot{fill:var(--field,#8F887C);opacity:.45}
.dla .dl-art .d-sh{fill:var(--stone,#D9D2C3);opacity:.55}
.dla .dl-art .d-dash{stroke-dasharray:1.5 5.5}
.dla .dl-art .d-bob1{animation:dl-bob 5.2s ease-in-out infinite}
.dla .dl-art .d-bob2{animation:dl-bob 5.2s ease-in-out -2.6s infinite}
.dla .dl-art .d-fl{animation:dl-bob 4.4s ease-in-out -1.2s infinite}
.dla .dl-art .d-pulse{animation:dl-pulse 3.6s ease-in-out infinite}
.dla .dl-art .d-pop{animation:dl-pulse 4.2s ease-in-out -1s infinite}
.dla .dl-art .d-halo{animation:dl-halo 4.6s ease-in-out infinite}
.dla .dl-art .d-tw{animation:dl-tw 3.4s ease-in-out infinite}
.dla .dl-art .d-tw2{animation-delay:-1.1s}
.dla .dl-art .d-tw3{animation-delay:-2.2s}
.dla .dl-art .d-fade{animation:dl-fadeio 3.2s ease-in-out infinite}
.dla .dl-art .d-fade2{animation-delay:-1.07s}
.dla .dl-art .d-fade3{animation-delay:-2.13s}
@keyframes dl-bob{50%{transform:translateY(-3px)}}
@keyframes dl-pulse{50%{transform:scale(1.1)}}
@keyframes dl-halo{0%,100%{transform:scale(.92);opacity:.55}50%{transform:scale(1.08);opacity:1}}
@keyframes dl-tw{0%,100%{transform:scale(.7);opacity:.35}50%{transform:scale(1.1);opacity:1}}
@keyframes dl-fadeio{0%,100%{opacity:.2}50%{opacity:.9}}

/* ---------- the ID card breathes, and catches the light now and then ---------- */
.dla .dl-live.idc{animation:dl-float 7s ease-in-out infinite}
.dla .dl-live.idc.is-tilting,.dla .dl-live.idc.is-flipped{animation-play-state:paused}
@keyframes dl-float{50%{transform:translateY(-4px)}}
.dla .dl-live.idc .idc__front::after{animation:dl-glint 13s ease-in-out 2.6s infinite}
@keyframes dl-glint{0%,84%{transform:translateX(-120%);opacity:0}88%{opacity:1}98%{opacity:1}100%{transform:translateX(120%);opacity:0}}

/* ---------- numbers that run up ---------- */
.dla [data-dl-count]{font-variant-numeric:tabular-nums}

/* ---------- reduced motion: still, and complete ---------- */
@media(prefers-reduced-motion:reduce){
  .dla .dl-amb i,.dla .dl-amb__p,.dla .apphead__t::after,.dla .tab.is-on .tab__ic,.dla .dl-rip,.dla .toast.is-on.dl-tick::before,.dla .toast.is-err.is-on,.dla .dl-ok::before,
  .dla .sk::after,.dla.dl-enter :is(.elist>li,.prow,.mb-rows>*,.mb-sec,.mb-quiet,.mb-addback,.hcard,.lrow),.dla .dl-art *,.dla .dl-live.idc,.dla .dl-live.idc .idc__front::after{animation:none!important}
  .dla .dl-amb__p{transform:none;transition:none}
  .dla :is(a.mb-row,button.mb-row,.mb-quiet,.mb-addback,.prow,.erow,.hcard,.qa,.act,.seg a,.seg button,.lrow a):active{transform:none}
  .dla .sk::after{display:none}
  .dl-burst{display:none}
}

/* ---------- the N in the header is the N character: it blinks every few seconds and glances when touched ---------- */
.dla .nm-alive .nm-eyes{transition:transform .3s var(--dl-ease)}
.dla .nm-alive .nm-eye{transform-box:fill-box;transform-origin:center;animation:dl-nblink 5.8s infinite}
.dla .nm-alive .nm-eye+.nm-eye{animation-delay:.04s}
.dla .topbar__brand .nm-alive{transition:transform .4s var(--dl-ease)}
.dla .topbar__brand:is(:hover,:active,:focus-visible) .nm-alive{transform:rotate(-5deg)}
.dla .topbar__brand:is(:hover,:active,:focus-visible) .nm-eyes{transform:translate(1.4px,-.6px)}
.dla.dl-paused .nm-alive .nm-eye{animation-play-state:paused}
@keyframes dl-nblink{0%,93%,100%{transform:scaleY(1)}95.5%{transform:scaleY(.1)}}
@media(prefers-reduced-motion:reduce){.dla .nm-alive .nm-eye{animation:none!important}.dla .nm-alive,.dla .nm-alive .nm-eyes{transition:none;transform:none!important}}
