/* Render-blocking boot shell. No JavaScript means readable SEO content, no loader. */
html, body {
  margin: 0;
  min-height: 100%;
  background: #100f11;
  color: #eeeae5;
}

#app-loader {
  display: none;
}

html[data-app-boot="loading"] #root,
html[data-app-boot="failed"] #root {
  visibility: hidden;
}

html[data-app-boot="loading"] #app-loader,
html[data-app-boot="failed"] #app-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #100f11;
  font-family: system-ui, sans-serif;
}

.app-loader-panel {
  width: min(100%, 320px);
  text-align: center;
}

.app-loader-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  margin: 0 auto;
}

.app-loader-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: #efc348;
  border-right-color: #c99a2e;
  border-bottom-color: #80662a;
  border-radius: 50%;
  animation: app-boot-orbit 1.25s linear infinite;
}

.app-loader-badge {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
}

.app-loader-badge img {
  display: block;
  width: 96px;
  height: 96px;
  /* The original SVG embeds the exact lightning via a bitmap mask, not a path.
     Circular clipping retains that exact mark and gold field, removes square corners. */
  border-radius: 50%;
  clip-path: circle(50%);
}

.app-loader-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes app-boot-orbit {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader-orbit::before {
    animation: none;
  }
}

.app-loader-panel h1 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.app-loader-panel p {
  margin: 0;
  color: #b7b0b8;
  font-size: 14px;
  line-height: 1.6;
}

#app-boot-failure,
html[data-app-boot="failed"] #app-boot-progress {
  display: none;
}

html[data-app-boot="failed"] #app-boot-failure {
  display: block;
}

#app-boot-retry {
  margin-top: 22px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #bd8a22;
  border-radius: 8px;
  background: #e8b62e;
  color: #261b09;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

#app-boot-retry:hover {
  background: #f0c34b;
}

#app-boot-retry:focus-visible {
  outline: 2px solid #f6dfa9;
  outline-offset: 4px;
}

#seo-prerender {
  font-family: system-ui, sans-serif;
  background: #100f11;
  color: #eeeae5;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.app-no-script {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px;
  font: 14px/1.6 system-ui, sans-serif;
  color: #b7b0b8;
}

.app-no-script a {
  color: #e8b62e;
}