/* Available before the application bundle and fonts: no bitmap/network-dependent loader art. */
.app-preloader {
  position: fixed; inset: 0; z-index: 250; overflow-y: auto;
  display: grid; place-items: center; padding: 24px;
  background: #141613; color: #eee4ce;
  font-family: "Courier New", monospace;
  box-sizing: border-box;
}
.app-preloader * { box-sizing: border-box; }
.preloader-card { width: min(480px, 100%); }
.preloader-kicker { color: #c2b59d; font-size: 11px; line-height: 1.6; letter-spacing: .1em; margin: 0 0 22px; }
.preloader-scene { position: relative; height: 168px; overflow: hidden; border-bottom: 1px solid #8f7b5b; }
.preloader-lamps { position: absolute; inset: 4px auto 0 0; width: 200%; display: flex; justify-content: space-around; animation: preload-pass 4s linear infinite; }
.preloader-lamps i { position: relative; display: block; width: 3px; height: 122px; background: #806f54; }
.preloader-lamps i::before { content: ""; position: absolute; width: 29px; height: 9px; border: 2px solid #c3a171; border-bottom: 0; left: -27px; top: 0; }
.preloader-lamps i::after { content: ""; position: absolute; width: 15px; height: 3px; background: #dec18e; left: -25px; top: 8px; box-shadow: 0 6px 17px 3px #c3964230; }
.preloader-bus { position: absolute; z-index: 1; width: 114px; height: 53px; bottom: 36px; left: calc(50% - 57px); border: 2px solid #d6b78c; border-radius: 5px 12px 2px 2px; background: #a54b39; animation: preload-bus 1.2s ease-in-out infinite; }
.preloader-bus::before { content: ""; position: absolute; height: 1px; background: #e2c39d; left: 0; right: 0; bottom: 12px; }
.preloader-bus::after { content: ""; position: absolute; right: 7px; top: 4px; bottom: 5px; width: 20px; border: 1px solid #d6b78c; background: #181a15; }
.preloader-windows { position: absolute; top: 5px; left: 6px; width: 71px; height: 20px; background: repeating-linear-gradient(90deg, #171c1b 0 14px, #cba87e 14px 16px); border: 1px solid #d6b78c; }
.preloader-wheel { position: absolute; z-index: 2; bottom: -9px; width: 18px; height: 18px; border: 5px solid #121411; border-radius: 50%; background: #c5b08c; outline: 1px solid #b2a388; }
.preloader-wheel--front { right: 13px; }
.preloader-wheel--back { left: 12px; }
.preloader-headlight { position: absolute; right: -4px; bottom: 10px; height: 6px; width: 5px; background: #ffe0a1; box-shadow: 14px 0 18px 4px #e5bf6a33; }
.preloader-road { position: absolute; bottom: 12px; width: 200%; height: 2px; background: repeating-linear-gradient(90deg, #b0a085 0 30px, transparent 30px 60px); animation: preload-pass 3s linear infinite; }
.preloader-card h1 { margin: 26px 0 12px; font: bold clamp(21px, 5vw, 29px)/1.2 "Courier New", monospace; letter-spacing: -.04em; }
.preloader-description { color: #c6bca9; font-size: 13px; line-height: 1.7; margin: 0; }
.preloader-progress { height: 2px; margin: 26px 0 13px; background: #524d40; }
.preloader-progress > span { display: block; height: 100%; background: #d36e53; }
.preloader-status { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; line-height: 1.6; color: #d6c6ab; }
.preloader-error p { font-size: 13px; line-height: 1.6; color: #f1c5ad; }
.preloader-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.preloader-actions button, .preloader-reload { display: inline-block; min-height: 44px; padding: 12px; border: 1px solid #ad7f62; color: #eee4ce; background: #29241d; cursor: pointer; font: 12px/1.5 "Courier New", monospace; }
.preloader-actions button:focus-visible, .preloader-reload:focus-visible { outline: 2px solid #f2aa7e; outline-offset: 3px; }
.has-problem .preloader-scene * { animation-play-state: paused; }
@keyframes preload-pass { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes preload-bus { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .preloader-lamps, .preloader-road, .preloader-bus { animation: none !important; }
}
