html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f5f7fb;
  color: #20242a;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.domain-shell,
.domain-frame-root,
.domain-frame {
  width: 100%;
  height: 100%;
}

.domain-shell {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.domain-frame {
  display: block;
  border: 0;
  opacity: 0;
  background: #ffffff;
  transition: opacity 180ms ease;
}

.domain-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  box-sizing: border-box;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.88)),
    #f5f7fb;
}

.domain-loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  perspective: 780px;
}

.domain-ring {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 50%;
  will-change: transform;
}

.ring-one {
  border-bottom: 3px solid #2563eb;
  animation: rotate-one 1.15s linear infinite;
}

.ring-two {
  border-right: 3px solid #7c3aed;
  animation: rotate-two 1.15s 0.1s linear infinite;
}

.ring-three {
  border-top: 3px solid #0f766e;
  animation: rotate-three 1.15s 0.15s linear infinite;
}

#state-title {
  z-index: 1;
  max-width: 76px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.domain-meta {
  display: flex;
  max-width: min(520px, 100%);
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.domain-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.domain-meta h1 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
}

.domain-meta p {
  margin: 0;
  color: #5d6673;
  font-size: 14px;
  line-height: 1.6;
}

.domain-actions {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.domain-float-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12;
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.domain-button {
  min-width: 92px;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #ffffff;
  color: #20242a;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 34px;
  text-align: center;
  text-decoration: none;
}

.domain-button.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.domain-button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.domain-shell.ready .domain-frame {
  opacity: 1;
}

.domain-shell.ready .domain-overlay {
  display: none;
}

.domain-shell.loading-disabled.is-loading .domain-overlay {
  display: none;
}

.domain-shell.loading-disabled .domain-frame {
  transition: none;
}

.domain-shell.has-assist .domain-float-actions {
  display: flex;
}

.domain-shell.has-error .domain-frame {
  opacity: 0;
}

.domain-shell.has-error .domain-ring {
  animation-play-state: paused;
}

.domain-shell.has-error .domain-actions {
  display: flex;
}

.domain-noscript {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
  color: #20242a;
  text-align: center;
}

@media (max-width: 520px) {
  .domain-float-actions {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
  }

  .domain-float-actions .domain-button {
    flex: 1 1 88px;
    min-width: 0;
  }
}

@keyframes rotate-one {
  from {
    transform: rotateX(45deg) rotateY(-45deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(45deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes rotate-two {
  from {
    transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg);
  }
}

@keyframes rotate-three {
  from {
    transform: rotateX(-60deg) rotateY(0deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(-60deg) rotateY(0deg) rotateZ(360deg);
  }
}
