/* v1.3.17 — loading, ShotGram's own calm look: one blue everywhere.
   · ring: a single blue arc (was cyan → violet → pink)
   · placeholders: soft blue sheen
   · a thin blue line on top while a page opens
   · tab refresh: the ShotGram mark inside the ring */
.spinner, .ptr-spin, .dm-ptr-spin, .sg-swipe-veil .sg-swipe-spin {
  background: conic-gradient(from 0deg, rgba(59,155,255,0) 0deg, rgba(59,155,255,.25) 90deg, #3b9bff 300deg, #8cc4ff 356deg, rgba(59,155,255,0) 360deg) !important;
}
.spinner { filter: none !important; animation-duration: .9s !important; animation-timing-function: linear !important; }

.skeleton {
  background: linear-gradient(100deg, rgba(255,255,255,.045) 25%, rgba(110,170,255,.13) 45%, rgba(255,255,255,.045) 65%) !important;
  background-size: 240% 100% !important; animation: sgshimmer 1.5s ease-in-out infinite !important;
}
html[data-mode="light"] .skeleton, body.light .skeleton {
  background: linear-gradient(100deg, rgba(15,23,42,.05) 25%, rgba(59,155,255,.16) 45%, rgba(15,23,42,.05) 65%) !important;
  background-size: 240% 100% !important;
}

.nav-line { position: fixed; z-index: 2147483000; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top) + 2.5px); pointer-events: none; opacity: 0; transition: opacity .25s ease; display: flex; align-items: flex-end; }
.nav-line.on { opacity: 1; }
.nav-line.done { opacity: 0; transition-delay: .12s; }
.nav-line i { display: block; width: 100%; height: 2.5px; transform: scaleX(0); transform-origin: left center; transition: transform .22s ease-out;
  background: linear-gradient(90deg, #2f8bff, #6db3ff); border-radius: 0 2px 2px 0; box-shadow: 0 0 8px rgba(59,155,255,.55); }
[dir="rtl"] .nav-line i { transform-origin: right center; border-radius: 2px 0 0 2px; }

.tab .tab-load { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.tab .tab-load img { width: 15px; height: 15px; object-fit: contain; display: block; animation: tabLoadPulse 1s ease-in-out infinite; }
.tab .tab-load::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(59,155,255,0) 0deg, rgba(59,155,255,.25) 90deg, #3b9bff 300deg, #8cc4ff 356deg, rgba(59,155,255,0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: sgring .9s linear infinite; }
@keyframes tabLoadPulse { 0%, 100% { transform: scale(.9); opacity: .85; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tab .tab-load::before { animation-duration: 1.8s; } .tab .tab-load img, .skeleton { animation: none !important; } }

/* v1.3.17 — story progress line: a touch thicker, readable on bright photos too */
.story-bars { gap: 3px; }
.story-bar { height: 3px; background: rgba(255, 255, 255, .32); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.story-bar .fill { background: #fff; border-radius: 99px; }

/* v139.93 — LIVE: gifts switched off by the host */
#liveGiftBtn.is-gifts-off { opacity: .45; filter: grayscale(.6); }
