/* Загрузочная заставка (src/splash/): постер встроен сюда, видео подгружается потом. Показывается только если скрипт decide.js решил «да». */
#splash { display: none; }
html[data-splash="on"] { overflow: hidden; }
html[data-splash="on"] body { background: #000; }
html[data-splash="on"] #splash {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 0 24px env(safe-area-inset-bottom); background: #000; color: #e9e4ff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: opacity 0.45s ease; touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#splash.sp-leaving { opacity: 0; pointer-events: none; }
.sp-media { position: relative; width: min(100vw, 58dvh, 620px); aspect-ratio: 1; background: #000; }
.sp-media img, .sp-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sp-media video { opacity: 0; transition: opacity 0.2s linear; }
.sp-media video.sp-on { opacity: 1; }
.sp-status { width: min(86vw, 360px); display: grid; gap: 10px; justify-items: center; text-align: center; }
.sp-text { margin: 0; min-height: 1.4em; font-size: 0.95rem; line-height: 1.4; color: #cfc7ee; }
.sp-bar { width: 100%; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.sp-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8b5cf6, #5b8cff 60%, #22d3ee); transition: width 0.5s ease; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.sp-actions[hidden] { display: none; }
.sp-actions button { min-height: 44px; padding: 10px 20px; border-radius: 22px; border: 1px solid rgb(255 255 255 / 0.28); background: rgb(255 255 255 / 0.08); color: #fff; font: inherit; font-size: 0.95rem; cursor: pointer; }
.sp-actions button.sp-main { background: #6a38dc; border-color: transparent; }
.sp-ver { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 14px); margin: 0; text-align: center; font-size: 0.72rem; color: #8a84a8; }
@media (prefers-reduced-motion: reduce) { html[data-splash="on"] #splash { transition-duration: 0.12s; } .sp-bar i { transition: none; } }
