/* Boot veil — centered CoD-style wordmark */
#boot-veil {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-toast) + 1);
  display: grid;
  place-items: center;
  background: var(--s0, #06080a);
  padding: clamp(24px, 6vh, 64px) clamp(22px, 6vw, 90px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms linear, visibility 0s linear 240ms;
}

html[data-boot-veil="up"] #boot-veil {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

html.device-blocked #boot-veil { display: none !important; }

.boot-veil-inner {
  width: min(560px, 92vw);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.boot-veil-mark {
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  font-family: var(--display, "Saira Condensed", sans-serif);
  font-weight: 800;
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--ink, #eef1f3);
  filter: drop-shadow(0 0 28px rgba(61, 214, 198, 0.18));
  transform: skewX(-5deg);
  white-space: nowrap;
}
.boot-veil-mark .bm-front,
.boot-veil-mark .bm-line {
  display: inline-block;
  font-size: clamp(44px, 9vw, 84px);
  letter-spacing: -0.02em;
}
.boot-veil-mark .bm-line {
  text-shadow: 0.045em 0 0 color-mix(in srgb, var(--signal, #3dd6c6) 60%, transparent);
}
.boot-veil-mark .bm-line::after { content: none; }

.boot-veil-track {
  width: min(280px, 70vw);
  height: 2px;
  background: var(--rule, rgba(238,241,243,0.085));
  overflow: hidden;
}
.boot-veil-track i {
  display: block; height: 100%; width: 34%;
  background: var(--signal, #3dd6c6);
  transform: translateX(-100%);
  animation: bootVeilSweep 1350ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: transform;
}
@keyframes bootVeilSweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(400%); }
}

#boot-veil-note {
  margin: 0;
  font-family: var(--ui, "IBM Plex Sans", sans-serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2, #a7b0b6);
  min-height: 1em;
}

@media (prefers-reduced-motion: reduce) {
  .boot-veil-track i { animation: none; transform: none; width: 100%; opacity: 0.5; }
  #boot-veil { transition: none; }
}
