/* Boot screen (index.html) and the landing page's "Replay intro" overlay share these rules. Loaded before JS, so it carries its own colours. */
:root { --boot-bg: #F6F7F9; --boot-line: rgba(11, 14, 17, .12); --boot-ink: #0B0E11; --boot-mute: #5B6470; --boot-accent: #10B981; }
:root[data-theme="dark"] { --boot-bg: #0B0E11; --boot-line: rgba(255, 255, 255, .08); --boot-ink: #F3F5F7; --boot-mute: #9CA3AF; }
#boot, .boot { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--boot-bg); color: var(--boot-ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; transition: opacity .45s ease, visibility .45s; }
#boot.done, .boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-brand { font-size: 38px; font-weight: 800; letter-spacing: -.03em; animation: boot-in .5s ease both; }
.boot-by { font-size: 12px; color: var(--boot-mute); border: 1px solid var(--boot-line); border-radius: 99px; padding: 3px 10px; animation: boot-in .5s .1s ease both; }
.boot-msgs { position: relative; height: 20px; width: min(320px, 80vw); text-align: center; font: 400 12.5px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--boot-mute); }
.boot-msgs span { position: absolute; inset: 0; opacity: 0; animation: boot-msg 1.4s linear forwards; }
.boot-msgs span:nth-child(2) { animation-delay: .45s; }
.boot-msgs span:nth-child(3) { animation-delay: .9s; animation-fill-mode: both; }
.boot-bar { width: min(280px, 70vw); height: 1px; background: var(--boot-line); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 100%; transform-origin: left; background: var(--boot-accent); animation: boot-fill 1.3s cubic-bezier(.3, .6, .3, 1) forwards; }
.boot-skip { position: absolute; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); background: none; border: 1px solid var(--boot-line); border-radius: 6px; padding: 6px 14px; font: inherit; font-size: 13px; color: var(--boot-mute); cursor: pointer; }
.boot-skip:hover { color: var(--boot-ink); }
@keyframes boot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes boot-msg { 0% { opacity: 0; } 8%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes boot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.boot-msgs span:nth-child(3) { animation-name: boot-last; }
@keyframes boot-last { 0% { opacity: 0; } 12%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .boot-brand, .boot-by { animation: none; }
  .boot-msgs span { animation: none; }
  .boot-msgs span:first-child { opacity: 1; }
  .boot-bar i { animation-duration: .01s; }
}
