html { height: 100%; background: #000; }
body { margin: 0; min-height: 100%; background-color: #000; }
#splash { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; z-index: 2147483647; transition: opacity .25s ease; }
#splash.hidden { opacity: 0; pointer-events: none; }
#splash img { width: 96px; height: 96px; object-fit: contain; }
/* Loading indicator: the first visit downloads ~4 MB, so show it is working. */
#splash img { animation: splash-pulse 1.8s ease-in-out infinite; }
#splash .bar { margin-top: 28px; width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
#splash .bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #9013FE, #C77EFF); animation: splash-slide 1.2s ease-in-out infinite; }
@keyframes splash-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes splash-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { #splash img, #splash .bar i { animation: none; } }
