/* =========================================================
   SPOT V34 — PULL TO REFRESH MOBILE
   ========================================================= */

.spot-ptr {
  display: none;
}

@media (max-width: 768px) {
  .spot-ptr {
    --spot-ptr-progress: 0;

    position: fixed;
    top: calc(env(safe-area-inset-top) + 10px);
    left: 50%;
    z-index: 2147482500;

    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 42px;
    padding: 0 14px 0 10px;

    border: 1px solid rgba(17,18,20,.10);
    border-radius: 999px;

    background: rgba(255,255,255,.96);
    color: #25282d;

    box-shadow:
      0 12px 28px rgba(0,0,0,.12),
      inset 0 1px 0 rgba(255,255,255,.9);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
      translate(-50%, -72px)
      scale(.94);

    transition:
      opacity .12s ease,
      transform .12s ease,
      visibility 0s linear .12s;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .spot-ptr.is-visible {
    opacity: 1;
    visibility: visible;

    transform:
      translate(
        -50%,
        calc(-30px + (var(--spot-ptr-progress) * 44px))
      )
      scale(
        calc(.94 + (var(--spot-ptr-progress) * .06))
      );

    transition: none;
  }

  .spot-ptr.is-releasing,
  .spot-ptr.is-refreshing {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);

    transition:
      opacity .16s ease,
      transform .18s cubic-bezier(.22,.61,.36,1);
  }

  .spot-ptr__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: #f0f1f2;
    color: #4c535d;
  }

  .spot-ptr__icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;

    transform:
      rotate(
        calc(-90deg + (var(--spot-ptr-progress) * 180deg))
      );

    transition: transform .05s linear;
  }

  .spot-ptr__text {
    white-space: nowrap;

    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: -.01em;
  }

  .spot-ptr.is-ready .spot-ptr__icon {
    background: #181819;
    color: #fff;
  }

  .spot-ptr.is-ready .spot-ptr__icon svg {
    transform: rotate(90deg);
  }

  .spot-ptr.is-refreshing .spot-ptr__icon svg {
    animation: spotPtrSpin .68s linear infinite;
  }

  .spot-ptr.is-refreshing .spot-ptr__text {
    color: #5f6670;
  }

  @keyframes spotPtrSpin {
    to {
      transform: rotate(450deg);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .spot-ptr,
    .spot-ptr__icon svg {
      transition: none !important;
    }

    .spot-ptr.is-refreshing .spot-ptr__icon svg {
      animation-duration: 1.2s;
    }
  }
}
