/* This stylesheet is deliberately independent of the application bundle: it
   paints the first frame while Vite or a production chunk is still loading. */
:root {
  color-scheme: light;
  --boot-board: #f3f2f0;
  --boot-surface: #ffffff;
  --boot-foreground: #242321;
  --boot-muted: #77746f;
  --boot-border: #dedbd5;
  --boot-accent: #4a72c9;
  --boot-accent-foreground: #ffffff;
  --boot-shadow: 0 1px 2px rgb(25 24 22 / 8%);
}

html.dark {
  color-scheme: dark;
  --boot-board: #171716;
  --boot-surface: #222220;
  --boot-foreground: #efeeeb;
  --boot-muted: #aaa7a1;
  --boot-border: #3a3936;
  --boot-accent: #7698df;
  --boot-accent-foreground: #171716;
  --boot-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}

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

body {
  margin: 0;
}

.vahta-boot {
  box-sizing: border-box;
  min-height: 100svh;
  background: var(--boot-board);
  color: var(--boot-foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.vahta-boot--splash {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}

.vahta-boot--splash::before {
  position: absolute;
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  border-radius: 999px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--boot-accent) 14%, transparent),
    transparent 68%
  );
  content: "";
}

.vahta-boot *,
.vahta-boot *::before,
.vahta-boot *::after {
  box-sizing: border-box;
}

.vahta-boot__message {
  color: var(--boot-muted);
}

.vahta-boot__message--ru,
html[lang="ru"] .vahta-boot__message--en {
  display: none;
}

html[lang="ru"] .vahta-boot__message--ru {
  display: inline;
}

.vahta-boot__splash {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vahta-boot__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.43em;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.vahta-boot__brand-dot {
  width: 0.43em;
  height: 0.43em;
  border-radius: 999px;
  background: var(--boot-accent);
}

.vahta-boot__loading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--boot-muted);
}

.vahta-boot__spinner {
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid color-mix(in srgb, var(--boot-accent) 25%, transparent);
  border-top-color: var(--boot-accent);
  border-radius: 999px;
  animation: vahta-boot-spin 0.8s linear infinite;
}

.vahta-boot--center {
  display: grid;
  place-items: center;
  padding: 24px;
}

.vahta-boot__card {
  display: flex;
  width: min(100%, 400px);
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--boot-border);
  border-radius: 16px;
  background: var(--boot-surface);
  padding: 32px;
  text-align: center;
  box-shadow: var(--boot-shadow);
}

.vahta-boot__card h1,
.vahta-boot__card p {
  margin: 0;
}

.vahta-boot__card h1 {
  font-size: 20px;
  line-height: 1.3;
}

.vahta-boot__card p {
  color: var(--boot-muted);
}

.vahta-boot__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.vahta-boot__button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--boot-border);
  border-radius: 8px;
  background: var(--boot-surface);
  color: var(--boot-foreground);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0 14px;
  text-decoration: none;
}

.vahta-boot__button--primary {
  border-color: var(--boot-accent);
  background: var(--boot-accent);
  color: var(--boot-accent-foreground);
}

.vahta-boot__button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--boot-accent) 30%, transparent);
  outline-offset: 2px;
}

.vahta-boot__hidden {
  display: none;
}

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

html[data-motion="reduced"] .vahta-boot__spinner {
  animation: none;
}

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