/* LiteOS boot screen — a web port of LiteLink's Plymouth motion:
 * 01 "Draw-on + signal" while loading, 02 "Shimmer" for signing out / shutting down. */
.boot { position: fixed; inset: 0; z-index: 99999; background: #101217; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; transition: opacity .45s ease; }
.boot.done { opacity: 0; pointer-events: none; }
.boot.gone { display: none; }
.boot-kite { width: 150px; height: 150px; overflow: visible; }
.boot-msg { min-height: 20px; font: 500 14px/1.4 "Inter", "Segoe UI", system-ui, sans-serif; color: rgba(242, 245, 250, .85); letter-spacing: .01em; opacity: 0; transition: opacity .6s ease; }
.boot.shimmer .boot-msg, .boot.busy .boot-msg { opacity: .9; }

/* Stroke reveal (pathLength = 1). Timeline compressed from 5.2 s to 2.6 s. */
.boot .s { fill: none; stroke: #fff; stroke-width: 48; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: bootDraw var(--d) cubic-bezier(.55, .05, .25, 1) var(--t) both; }
.boot .s1 { --t: .10s; --d: .83s; }
.boot .s2 { --t: .88s; --d: .31s; }
.boot .s3 { --t: 1.14s; --d: .29s; }
.boot .s4 { --t: 1.38s; --d: .26s; }
.boot .s5 { --t: 1.51s; --d: .26s; }
@keyframes bootDraw { to { stroke-dashoffset: 0; } }

/* After drawing: the mark dims and a signal pulse runs up the string, lighting the kite. */
.boot .dimmer { animation: bootDim .6s cubic-bezier(0, 0, .58, 1) 1.77s both; }
@keyframes bootDim { from { opacity: 1; } to { opacity: .4; } }
.boot .sig { fill: none; stroke: #fff; stroke-width: 48; stroke-dasharray: .2 3; stroke-dashoffset: .2; animation: bootSig 2.2s cubic-bezier(.65, 0, .35, 1) 1.77s infinite; }
@keyframes bootSig { from { stroke-dashoffset: .2; } to { stroke-dashoffset: -1; } }
.boot .flash { opacity: 0; animation: bootFlash 2.2s linear 1.77s infinite; }
@keyframes bootFlash { 0%, 80% { opacity: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }
.boot .shim { display: none; }

/* Shimmer mode: full mark at 30%, a band of light sweeps across. */
.boot.shimmer .s { animation: none; stroke-dashoffset: 0; }
.boot.shimmer .dimmer { animation: none; opacity: .3; }
.boot.shimmer .sigm, .boot.shimmer .flash { display: none; }
.boot.shimmer .shim { display: inline; }
.boot .band { animation: bootShim 2.8s cubic-bezier(.45, 0, .3, 1) infinite; }
@keyframes bootShim { 0% { transform: translateX(-120px); } 65%, 100% { transform: translateX(880px); } }

@media (prefers-reduced-motion: reduce) {
  .boot .s { animation: none; stroke-dashoffset: 0; }
  .boot .dimmer, .boot .sig, .boot .flash, .boot .band { animation: none; }
  .boot .sigm, .boot .flash { display: none; }
}
