#app {
  min-height: 100dvh;
}

.app-loader {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgb(201 240 75 / 20%), transparent 24rem),
    #f4f0e7;
  color: #17211c;
  font-family: Arial, sans-serif;
}

.app-loader-content {
  width: min(100%, 26rem);
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.loading-brand {
  font-size: clamp(1.25rem, 6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.loading-brand span {
  color: #ef6a3a;
}

.loading-progress {
  width: 5.5rem;
  height: 5.5rem;
  margin: 1rem 0 0.25rem;
  transform: rotate(-90deg);
}

.loading-progress circle {
  fill: none;
  stroke-width: 8;
}

.loading-progress circle:first-child {
  stroke: #c9c6bc;
}

.loading-progress circle:last-child {
  stroke: #ef6a3a;
  stroke-linecap: square;
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%)), 500%;
  transition: stroke-dasharray 120ms ease-out;
}

.loading-progress-text {
  min-height: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loading-progress-text::after {
  content: var(--blazor-load-percentage-text, "Připravuji hru…");
}

.loading-note {
  max-width: 22rem;
  margin: 0;
  color: #4f5d54;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .loading-progress circle:last-child {
    transition: none;
  }
}
