.brand-emblem {
  display: inline-block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #f7f4e9;
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
  vertical-align: middle;
}
.brand-hero {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
  justify-self: center;
}
.brand-logo-small {
  display: block;
  width: 120px;
  height: auto;
  background: #f7f4e9;
  border-radius: 12px;
}
.realm-loading #app,
.realm-loading #world {
  visibility: hidden;
}
.loading-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: radial-gradient(
    ellipse at center,
    #fffdf1 0%,
    #e8efe5 65%,
    #c7dacf 100%
  );
  color: #12343d;
  text-align: center;
  font-family: system-ui, sans-serif;
  overflow: auto;
}
.loading-splash[hidden] {
  display: none !important;
}
.loading-splash .splash-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(76vw, 65vh, 620px);
  height: min(76vw, 65vh, 620px);
  object-fit: contain;
  flex-shrink: 0;
}
.loading-meta {
  position: absolute;
  bottom: max(20px, 3vh);
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loading-splash.recovery .splash-logo {
  top: 30%;
  width: min(45vw, 35vh, 350px);
  height: min(45vw, 35vh, 350px);
}
.loading-splash p {
  margin: 0;
  max-width: 600px;
  line-height: 1.4;
}
.loading-splash button,
.loading-splash a {
  font: inherit;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #265e63;
  background: #fffdf4;
  color: #12343d;
  cursor: pointer;
  display: inline-block;
}
.loading-splash button:disabled {
  cursor: default;
}
.loading-splash small {
  font-size: 12px;
  color: #33555c;
}
.loading-progress {
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: #9cc0b2;
  overflow: hidden;
}
.loading-progress::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: #0a6670;
  animation: brand-load 1.5s ease-in-out infinite alternate;
}
.loading-recovery {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.loading-recovery[hidden] {
  display: none !important;
}
@keyframes brand-load {
  to {
    transform: translateX(150%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-progress::after {
    animation: none;
    width: 100%;
  }
}
@media (max-height: 520px) {
  .loading-splash {
    gap: 5px;
    padding: 10px;
  }
  .loading-splash .splash-logo {
    width: 35vh;
    height: 35vh;
  }
  .loading-meta {
    bottom: 8px;
    gap: 4px;
    font-size: 14px;
  }
  .loading-splash small {
    font-size: 10px;
  }
  .loading-splash button,
  .loading-splash a {
    min-height: 36px;
    padding: 6px 12px;
  }
}
@media (max-width: 600px) {
  .brand-emblem {
    width: 42px;
    height: 42px;
  }
}
