.brand-loading {
  --loading-mark-size: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-sizing: border-box;
  width: 100%;
  min-height: 168px;
  padding: 24px 16px;
  color: #fff;
  text-align: center;
}
.brand-loading__mark {
  display: block;
  flex: none;
  width: var(--loading-mark-size);
  height: var(--loading-mark-size);
  object-fit: contain;
  animation: brand-loading-pulse 1.2s ease-in-out infinite;
}
.brand-loading__label { font: 400 12px/18px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #cbbba2; }
.brand-loading--page { --loading-mark-size: 120px; min-height: min(420px, 65dvh); }
.brand-loading--inline { --loading-mark-size: 18px; display: inline-flex; width: auto; min-height: 0; padding: 0; vertical-align: middle; }
.brand-loading--inline .brand-loading__label { display: none; }
.app-startup-loading { overflow: hidden; }
.brand-loading--startup {
  --loading-mark-size: min(200px, 65vw);
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100dvh;
  margin: 0;
  background: #000;
  transition: opacity .18s ease;
}
.brand-loading--startup.is-ready { opacity: 0; pointer-events: none; }
.brand-loading--startup .brand-loading__mark { animation: brand-loading-reveal-logo 2.75s cubic-bezier(.25, 0, .35, 1) infinite; }
.brand-loading--startup[hidden] { display: none; }
.brand-loading--startup.is-ready .brand-loading__mark { animation: none; clip-path: circle(145% at 0% 100%); }
.brand-loading--startup .brand-loading__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand-loading--startup.has-error .brand-loading__mark { animation: none; }
.brand-loading__error { max-width: 280px; color: #cbbba2; font: 400 14px/21px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.brand-loading__error[hidden] { display: none; }
.brand-loading__retry { display: block; margin: 16px auto 0; min-height: 44px; padding: 8px 24px; border: 1px solid #d9bd8b; border-radius: 6px; background: #412e1b; color: #fff; font: inherit; cursor: pointer; }
.brand-loading--route {
  position: fixed;
  inset-block: calc(var(--app-header-height) + env(safe-area-inset-top, 0px)) calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  inset-inline: 0;
  z-index: 39;
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 0;
  margin-inline: auto;
  background: #0d0802;
  pointer-events: none;
}
@keyframes brand-loading-pulse { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
@keyframes brand-loading-reveal-logo { 0% { clip-path: circle(.25% at 0% 100%); } 66%, 100% { clip-path: circle(145% at 0% 100%); } }
@media (prefers-reduced-motion: reduce) {
  .brand-loading__mark, .brand-loading--startup .brand-loading__mark { animation: none; }
  .brand-loading--startup { transition: none; }
}
