/*
  Pre-JS boot splash + shared loading-mark animation.
  Linked from index.html; also imported by src/styles/index.css — keep in one file.
*/

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f7f5ee;
}

/* Boot shell — mirrors PageLoading fullScreen before React mounts */
.cw-boot-shell {
  display: flex;
  min-height: 100dvh;
  min-height: calc(100dvh - var(--consent-banner-h, 0px));
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f7f5ee;
  box-sizing: border-box;
}

.cw-boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cw-boot-label {
  margin: 1rem 0 0;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #5b6459;
}

/* Short mark tile (boot uses --56; React Mark is the inner span under .cw-loading-mark) */
.cw-mark-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24%;
  font-family: Lora, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f7f5ee;
  background: #33604d;
  box-sizing: border-box;
}

.cw-mark-tile--56 {
  width: 56px;
  height: 56px;
  font-size: 23.52px;
}

.cw-loading-mark {
  display: inline-flex;
  animation: cw-loading-breathe 1.8s ease-in-out infinite;
  transform-origin: center;
}

.cw-loading-mark > span {
  box-shadow: 0 0 0 0 color-mix(in srgb, #d98a3d 55%, transparent);
  animation: cw-loading-ring 1.8s ease-in-out infinite;
}

@keyframes cw-loading-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
  }
}

@keyframes cw-loading-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, #d98a3d 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 10px color-mix(in srgb, #d98a3d 0%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-loading-mark,
  .cw-loading-mark > span {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}
