/* Global page loading — L1 Soft Sky, mobile only */
.shimei-page-loading {
  display: none;
}

@media (max-width: 768px) {
  .shimei-page-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(246, 247, 251, 0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .shimei-page-loading.is-on {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .shimei-page-loading-panel {
    min-width: 168px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d7e3ef;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
  }

  .shimei-page-loading-ring {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid #E0F2FE;
    border-top-color: #0284C7;
    animation: shimei-page-loading-spin 0.75s linear infinite;
  }

  .shimei-page-loading-label {
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
  }

  .shimei-page-loading-sub {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
  }

  @keyframes shimei-page-loading-spin {
    to { transform: rotate(360deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .shimei-page-loading-ring {
      animation: none;
      border-top-color: #0284C7;
      opacity: 0.9;
    }
  }

  /*
   * Only one loader on phone: suppress page-local loading UI while
   * the global Soft Sky overlay is the single source of truth.
   * Desktop keeps legacy loaders.
   */
  #loadingState,
  #loadingOverlay,
  .loading-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
