/* Общий прелоадер «Норы» для полных версий игр (README, «Прелоадер»). Видно с первой отрисовки: разметка — в HTML
   игры, стиль — этот файл в <head>. Вид — как холл: закат за небоскрёбом, неоновая вывеска «НОРА». */
#nora-loader {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px; text-align: center; color: #fff3e3;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 170, 90, .35), transparent 60%),
              linear-gradient(170deg, #1f2346 0%, #3b2f55 55%, #7a4a5a 100%);
  transition: opacity .35s ease;
}
#nora-loader.nl-out { opacity: 0; pointer-events: none; }
#nora-loader .nl-sign {
  font-weight: 900; letter-spacing: .32em; padding: .18em .2em .18em .5em; font-size: clamp(22px, 6vw, 40px);
  color: #fff4d6; border: 2px solid rgba(255, 214, 140, .9); border-radius: 12px; background: rgba(60, 14, 18, .55);
  text-shadow: 0 0 6px #ffb347, 0 0 18px #ff7b3a, 0 0 32px #ff5a2a;
  box-shadow: 0 0 14px rgba(255, 140, 60, .7), inset 0 0 12px rgba(255, 140, 60, .45);
  transform: rotate(-1.5deg);
}
#nora-loader .nl-game { margin: 0; font-size: clamp(24px, 6.4vw, 44px); font-weight: 900; line-height: 1.1; letter-spacing: -.3px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
#nora-loader .nl-floor { margin: -8px 0 0; font-size: 15px; font-weight: 700; color: #e9d6c4; }
#nora-loader .nl-bar { position: relative; width: min(420px, 82vw); height: 16px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 214, 140, .35); }
#nora-loader .nl-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #ffb347, #ffc56b); box-shadow: 0 0 14px rgba(255, 170, 70, .8); transition: width .15s linear; }
/* до скриптов полоса не стоит: бежит блик — «соединяемся»; как только пришли первые байты, видна настоящая доля */
#nora-loader:not(.nl-live) .nl-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 140, .55), transparent); animation: nl-run 1.2s linear infinite; }
@keyframes nl-run { from { left: -30%; } to { left: 100%; } }
#nora-loader .nl-note { min-height: 1.3em; font-size: 14px; font-weight: 700; color: #e9d6c4; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { #nora-loader:not(.nl-live) .nl-bar::after { animation: none; } }
/* страховка: «Не получилось запустить игру» и кнопка «Обновить» */
#nora-loader.nl-broken .nl-bar i { background: linear-gradient(90deg, #ff8f6b, #ff6a5a); box-shadow: 0 0 14px rgba(255, 110, 90, .7); }
#nora-loader.nl-broken .nl-note { color: #ffd2c4; font-size: 16px; }
#nora-loader .nl-retry { font: 900 18px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #2b2130; background: #ffc56b;
  border: 0; border-radius: 999px; padding: 12px 28px; cursor: pointer; box-shadow: 0 6px 20px rgba(255, 170, 70, .45); }
#nora-loader .nl-retry:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
