/* До-Flutter shell (Phase 255): тёмный фон и loader до main.dart.js.
   Только системный шрифт, opacity/transform-анимации, static при
   prefers-reduced-motion. Нейтрален к holiday/theme (до auth). */
html,
body {
  margin: 0;
  padding: 0;
  background: #171a24;
}

.jk-shell {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #171a24;
  color: #edf0f5;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  transition: opacity 180ms ease-out;
}

.jk-shell.jk-hide {
  opacity: 0;
  pointer-events: none;
}

.jk-card {
  width: min(320px, 86vw);
  text-align: center;
}

.jk-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.jk-logo {
  animation: jk-breathe 2.8s ease-in-out infinite;
}

.jk-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.jk-board {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.jk-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.jk-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #a6aebd;
}

.jk-chip {
  height: 18px;
  border-radius: 5px;
  background: rgba(139, 154, 255, 0.35);
}

.jk-chip-dim {
  background: rgba(255, 255, 255, 0.12);
}

.jk-ghost {
  position: absolute;
  top: 34px;
  left: 6%;
  width: 64px;
  height: 22px;
  border-radius: 6px;
  background: #8b9aff;
  opacity: 0;
  animation: jk-travel 2.7s ease-in-out infinite;
}

.jk-caption {
  margin: 0 0 8px;
  font-size: 14px;
  color: #edf0f5;
}

.jk-status,
.jk-slow {
  margin: 0;
  font-size: 12px;
  color: #a6aebd;
}

.jk-slow {
  margin-top: 6px;
}

.jk-error {
  margin-top: 10px;
}

.jk-error-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: #edf0f5;
}

.jk-retry {
  appearance: none;
  border: 1px solid #3d4554;
  border-radius: 8px;
  background: #232833;
  color: #edf0f5;
  font: inherit;
  font-size: 14px;
  padding: 10px 22px;
  min-height: 44px;
  cursor: pointer;
}

.jk-retry:hover {
  background: #2b3240;
}

.jk-retry:focus-visible {
  outline: 2px solid #8b9aff;
  outline-offset: 2px;
}

.jk-shell.jk-failed .jk-board,
.jk-shell.jk-failed .jk-caption,
.jk-shell.jk-failed .jk-slow {
  display: none;
}

.jk-noscript {
  position: fixed;
  inset: auto 0 0 0;
  padding: 12px 16px;
  text-align: center;
  background: #232833;
  color: #edf0f5;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
}

@keyframes jk-travel {
  0% {
    left: 6%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 72%;
    opacity: 0;
  }
}

@keyframes jk-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-shell {
    transition: none;
  }

  .jk-logo,
  .jk-ghost {
    animation: none;
  }

  .jk-ghost {
    left: 40%;
    opacity: 1;
  }
}
