html, body { height: 100%; margin: 0; }
body { background: #f4f7f5; }
body.dark { background: #0a1512; }
#loading {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; font: 500 15px/1.4 system-ui, sans-serif; color: #51645f;
}
body.dark #loading { color: #9fb4ae; }
#loading img { border-radius: 28px; }
#loading .bar { width: 160px; height: 4px; border-radius: 2px; overflow: hidden; background: #dee7e3; }
body.dark #loading .bar { background: #27423b; }
#loading .bar span { display: block; width: 40%; height: 100%; border-radius: 2px; background: #1f4a41; animation: slide 1.2s ease-in-out infinite; }
#loading p { margin: 0; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { #loading .bar span { animation: none; width: 100%; } }
