/* Launch loader (#boot in index.html). A static file on purpose: an inline <style> in index.html
   breaks `vite build` on Windows when the working directory is spelled with a lowercase drive letter
   (d:\ instead of D:\). The background colour comes from BRAND via the style attribute in index.html.
   Layout: [title sponsor] [organiser] → PRESENTS → JPL 5 logo (focal point) → name, season, progress. */
#boot { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  transition: opacity .45s ease; padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); }
#boot.boot-out { opacity: 0; pointer-events: none; }
#boot .boot-stage { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; margin-bottom: 4vh; }

/* Partners: two equal white tiles (the logos are designed on white). */
#boot .boot-partners { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 6vw, 32px); animation: boot-fade .6s .05s both; }
#boot .boot-partner { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#boot .boot-tile { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: min(28vw, 112px, 16vh); aspect-ratio: 1;
  padding: 10%; border-radius: 14px; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.4); }
#boot .boot-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
#boot .boot-tile-name { color: #1e293b; font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; }
#boot .boot-partner figcaption { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); white-space: nowrap; }
#boot .boot-presents { display: flex; align-items: center; gap: 12px; margin: clamp(14px, 3.2vh, 26px) 0 clamp(4px, 1.4vh, 12px);
  font-size: 10.5px; font-weight: 600; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: #e0a10b; animation: boot-fade .6s .35s both; }
#boot .boot-presents::before, #boot .boot-presents::after { content: ''; width: 28px; height: 1px; background: rgba(224,161,11,.45); }

/* The JPL 5 logo: the focal point. Wide artwork, so sized by width and capped by viewport height. */
#boot .boot-logo { display: block; width: min(80vw, 320px, 46vh); height: auto; aspect-ratio: 1134 / 627;
  filter: drop-shadow(0 10px 30px rgba(224,161,11,.16)); animation: boot-in .9s cubic-bezier(.2,.8,.2,1) .45s both; }
#boot .boot-name { margin: clamp(10px, 2vh, 16px) 0 2px; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-align: center; animation: boot-fade .6s .75s both; }
#boot .boot-season { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: rgba(255,255,255,.55); animation: boot-fade .6s .85s both; }
#boot .boot-bar { width: 120px; height: 2px; margin-top: clamp(14px, 3vh, 24px); overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.12); }
#boot .boot-bar span { display: block; width: 40%; height: 100%; border-radius: 2px; background: #e0a10b; animation: boot-bar 1.3s ease-in-out infinite; }
#boot .boot-loading { margin: 8px 0 0; font-size: 10px; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); }
#boot .boot-credit { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.4); }

@keyframes boot-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes boot-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes boot-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (max-height: 420px) { #boot .boot-name, #boot .boot-loading { display: none; } #boot .boot-stage { margin-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { #boot * { animation: none !important; } }
