/* Preserve the Ukiyo-e artwork and paper texture; stop only continuous background motion. */
.ukiyo-admin-ambient,
.ukiyo-admin-ambient::before,
.ukiyo-admin-ambient::after,
.sidebar,
.sidebar::before,
.sidebar::after,
.ukiyo-admin-header::before,
.ukiyo-admin-main::before,
.ukiyo-admin .ukiyo-admin-ambient,
.ukiyo-admin .ukiyo-admin-ambient::before,
.ukiyo-admin .ukiyo-admin-ambient::after,
.ukiyo-admin .sidebar,
.ukiyo-admin .ukiyo-admin-header::before,
.ukiyo-admin .ukiyo-admin-main::before {
  animation: none !important;
}

/* Keep the existing prominent registration CTA with the current auth layout. */
#app > div[class*="min-h-screen"] a[href="/register"],
#app > div[class*="min-h-screen"] a[href^="/register?"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 112px !important;
  min-height: 44px !important;
  margin-left: 12px !important;
  padding: 11px 24px !important;
  border: 1px solid rgba(136, 48, 31, 0.38) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #b24a33 0%, #88301f 48%, #19384b 100%) !important;
  box-shadow: 0 14px 28px rgba(92, 40, 27, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

#app > div[class*="min-h-screen"] a[href="/register"]:hover,
#app > div[class*="min-h-screen"] a[href^="/register?"]:hover {
  color: #fff !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 16px 32px rgba(92, 40, 27, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

#app > div[class*="min-h-screen"] a[href="/register"]:focus-visible,
#app > div[class*="min-h-screen"] a[href^="/register?"]:focus-visible {
  outline: 3px solid rgba(178, 74, 51, 0.34) !important;
  outline-offset: 3px !important;
}

/* BEGIN WECHAT CONTACT VISIBILITY */
@media (min-width: 1024px) {
  .contact-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .contact-card-grid .contact-card {
    min-width: 0;
  }

  .contact-card-grid .contact-qr-frame {
    min-height: 20rem;
  }

  .contact-card-grid .contact-qr-image {
    width: 100%;
    max-height: 18rem;
    object-fit: contain;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .contact-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* END WECHAT CONTACT VISIBILITY */

