html,
body {
  margin: 0;
  min-height: 100%;
  background: #efe4cc;
}

.startup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  overflow: auto;
  box-sizing: border-box;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #efe4cc;
  color: #302b24;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-align: center;
}

.startup-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  margin: auto;
  padding: clamp(20px, 5vw, 40px);
  border: 1px solid #9c8968;
  border-radius: 16px;
  background: #f8f2e5;
}

.startup-logo {
  display: block;
  margin: 0 auto 20px;
  border-radius: 20px;
}

.startup h1 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.25;
}

.startup-progress {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 3px solid #d8d5c4;
  border-top-color: #667450;
  border-radius: 50%;
  animation: startup-spin 1s linear infinite;
}

.startup-status {
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}

.startup button {
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 24px;
  border: 1px solid #667450;
  border-radius: 8px;
  background: #667450;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.startup button:hover {
  background: #52603f;
}

.startup button:focus-visible {
  outline: 3px solid #302b24;
  outline-offset: 4px;
}

.startup [hidden] {
  display: none !important;
}

@keyframes startup-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .startup-progress { animation: none; }
}
