/* Short, skippable Cybercore system boot. The page stays usable if JS fails. */
.system-boot { display: none; }
.boot-pending .system-boot {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem;
  color: var(--white); background: color-mix(in srgb, var(--bg) 96%, #000);
  background-image: linear-gradient(color-mix(in srgb, var(--a1) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--a1) 5%, transparent) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--a1) 12%, transparent), transparent 62%);
  background-size: 36px 36px, 36px 36px, auto;
  opacity: 1; transition: opacity .24s ease;
}
.boot-pending.boot-leaving .system-boot { opacity: 0; pointer-events: none; }
.boot-panel { width: min(43rem, 100%); padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--a1); background: color-mix(in srgb, var(--panel) 88%, #000); box-shadow: 0 0 3rem color-mix(in srgb, var(--a1) 15%, transparent), inset 0 0 2.5rem #0008; }
.boot-top, .boot-bottom { display: flex; align-items: center; gap: .75rem; color: var(--a1); font: .64rem/1.4 var(--mono); letter-spacing: .15em; }
.boot-emblem { display: block; width: 2.2rem; height: 2.2rem; object-fit: contain; filter: drop-shadow(0 0 .5rem color-mix(in srgb, var(--a1) 32%, transparent)); }
.boot-channel { margin-left: auto; color: var(--muted); text-align: right; }
.boot-core { padding: clamp(2.3rem, 8vw, 4.7rem) 0 2rem; text-align: center; }
.boot-kicker, .boot-subtitle { color: var(--muted); font: .66rem/1.5 var(--mono); letter-spacing: .2em; }
.boot-core h1 { margin: .7rem 0; color: var(--white); font: 700 clamp(2.1rem, 8vw, 4rem)/1 var(--display, var(--sans)); letter-spacing: .06em; }
.boot-core h1 em { color: var(--a1); font-style: normal; text-shadow: 0 0 1.4rem color-mix(in srgb, var(--a1) 45%, transparent); }
.boot-readout { display: grid; gap: .55rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.boot-readout p { display: grid; grid-template-columns: 2rem 1fr auto; gap: .55rem; align-items: center; margin: 0; color: var(--muted); font: .67rem/1.45 var(--mono); letter-spacing: .08em; }
.boot-readout p > span { color: var(--a2); }
.boot-readout p b { color: var(--a3); font-weight: 400; text-align: right; }
.boot-progress { height: 2px; margin-top: 1.1rem; background: var(--line); overflow: hidden; }
.boot-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3)); box-shadow: 0 0 1rem var(--a1); }
.boot-bottom { justify-content: space-between; margin-top: .8rem; }
.boot-bottom button { padding: .55rem .75rem; border: 1px solid var(--a1); background: color-mix(in srgb, var(--a1) 9%, var(--panel)); color: var(--a1); cursor: pointer; font: inherit; font-weight: 700; letter-spacing: inherit; box-shadow: 0 0 .8rem color-mix(in srgb, var(--a1) 16%, transparent); }
.boot-bottom button:hover, .boot-bottom button:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; background: color-mix(in srgb, var(--a1) 18%, var(--panel)); }
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: hidden; }
@media (max-width: 520px) {
  .boot-pending .system-boot { padding: .75rem; }
  .boot-panel { padding: 1.1rem; }
  .boot-readout p { grid-template-columns: 1.6rem 1fr; }
  .boot-readout p b { grid-column: 2; text-align: left; }
  .boot-top { font-size: .55rem; }
  .boot-channel { max-width: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .system-boot { display: none !important; }
  .boot-pending { scroll-behavior: auto !important; }
}
