/* ====================================================
   Skeleton Shimmer loading (whole site)
   - click a link / button / submit a form -> the skeleton of the page you are GOING TO shows at once
     (home, orders, wallet, profile, leaderboard, login ... each has its own layout)
   - every image shows a soft shimmer until it has loaded
   Turn on/off: Admin > Design Studio > "Skeleton loading"
   ==================================================== */
#lk-sk{position:fixed;inset:0;z-index:99990;background:var(--bg,#f6f7fb);opacity:0;visibility:hidden;pointer-events:none;overflow:hidden;
  transition:opacity .16s ease,visibility 0s linear .16s}
#lk-sk.on{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .14s ease}

.sk{display:block;border-radius:12px;
  background:linear-gradient(100deg,rgba(127,127,127,.13) 30%,rgba(127,127,127,.26) 50%,rgba(127,127,127,.13) 70%);
  background-size:220% 100%;animation:lk-shim 1.25s linear infinite}
@keyframes lk-shim{from{background-position:120% 0}to{background-position:-120% 0}}

/* top bar */
.sk-topwrap{border-bottom:1px solid rgba(127,127,127,.2)}
.sk-top{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top,0px));max-width:1040px;margin:0 auto}
.sk-top .sk-logo{width:40px;height:40px;border-radius:13px;flex-shrink:0}
.sk-top .sk-name{width:110px;height:16px;border-radius:8px}
.sk-sp{flex:1}
.sk-top .sk-chip{width:92px;height:38px;border-radius:999px}
.sk-top .sk-ico{width:40px;height:40px;border-radius:13px;flex-shrink:0}

/* page body + building blocks (every page layout is made of these) */
.sk-body{max-width:720px;margin:0 auto;padding:22px 16px 110px}
.sk-title{width:46%;height:28px;border-radius:10px;margin-bottom:16px}
.sk-h{width:38%;height:20px;border-radius:8px;margin:22px 2px 12px}
.sk-hero{width:100%;height:150px;border-radius:20px;margin-bottom:16px}
.sk-hero.big{height:200px}
.sk-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.sk-stats .sk{height:72px;border-radius:16px}
.sk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:14px}
.sk-grid .sk{height:112px;border-radius:18px}
.sk-tabs{display:flex;gap:8px;margin-bottom:16px}
.sk-tabs .sk{flex:1;height:38px;border-radius:999px}
.sk-card{width:100%;height:92px;border-radius:18px;margin-bottom:12px}
.sk-card.tall{height:150px}
.sk-input{width:100%;height:54px;border-radius:16px;margin-bottom:12px}
.sk-chips{display:flex;gap:8px;margin-bottom:14px}
.sk-chips .sk{flex:1;height:42px;border-radius:999px}
.sk-btn{width:100%;height:54px;border-radius:16px;margin:6px 0 16px}
.sk-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;margin-bottom:10px;
  border:1px solid rgba(127,127,127,.18);background:rgba(127,127,127,.05)}
.sk-row>div{flex:1;display:flex;flex-direction:column;gap:9px;min-width:0}
.sk-av{width:46px;height:46px;border-radius:14px;flex-shrink:0}
.sk-line{height:12px;border-radius:7px}
.sk-line.w70{width:70%}.sk-line.w45{width:45%}
.sk-pill{width:58px;height:26px;border-radius:999px;flex-shrink:0}
.sk-prof{display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px 0 22px}
.sk-prof .sk-big{width:92px;height:92px;border-radius:50%}
.sk-prof .sk-line{width:44%;height:16px}.sk-prof .sk-line.s{width:28%;height:12px}
.sk-pod{display:flex;align-items:flex-end;justify-content:center;gap:10px;height:180px;margin-bottom:16px}
.sk-pod .sk{width:30%;border-radius:18px 18px 8px 8px}
.sk-pod .sk:nth-child(1){height:120px}.sk-pod .sk:nth-child(2){height:170px}.sk-pod .sk:nth-child(3){height:96px}
.sk-login{max-width:420px;margin:26px auto 0;padding:0 16px 110px;text-align:center}
.sk-login .sk-big{width:92px;height:92px;border-radius:50%;margin:0 auto 16px}
.sk-login .sk-title{width:62%;margin:0 auto 22px}

/* bottom navigation (only when the page has one) */
.sk-dock{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom,0px));
  width:min(440px,calc(100% - 24px));height:64px;border-radius:24px;display:flex;align-items:center;justify-content:space-around;
  border:1px solid rgba(127,127,127,.2);background:rgba(127,127,127,.07);padding:0 10px}
.sk-dock .sk{width:30px;height:30px;border-radius:10px}
.sk-dock .sk.mid{width:52px;height:52px;border-radius:50%;margin-top:-22px}

/* images: soft shimmer until they are loaded */
img.sk-img{background:linear-gradient(100deg,rgba(127,127,127,.12) 30%,rgba(127,127,127,.26) 50%,rgba(127,127,127,.12) 70%);
  background-size:220% 100%;animation:lk-shim 1.25s linear infinite}

/* respect "reduce motion" and the Design Studio "Animations" switch: keep the grey shapes, stop the movement */
@media (prefers-reduced-motion:reduce){.sk,img.sk-img{animation:none}}
html.fx-off .sk,html.fx-off img.sk-img{animation:none}
