/* BSOD sublayer only — ambient auto-spawn disabled (clean-central-v12-final). */

.central-composition .home-bsod-sublayer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(88%, 820px);
  height: min(90%, 520px);
  max-height: min(520px, 92%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  overflow: hidden;
}

.central-composition > .hero,
.central-composition > .terminal {
  position: relative;
  z-index: 1;
}

.home-bsod-layer__text {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(10px, 0.58vw, 12px);
  line-height: 1.42;
  letter-spacing: 0.02em;
  color: #565a60;
  opacity: 1;
  white-space: pre-wrap;
  word-break: break-word;
}

.home-bsod-layer__text[data-caret="1"]::after {
  content: "_";
  color: #303236;
  animation: home-bsod-caret 0.48s step-end infinite;
}

.home-bsod-layer__text[data-caret="0"]::after {
  content: none;
}

@keyframes home-bsod-caret {
  50% { opacity: 0; }
}

@media (max-width: 1280px) {
  .central-composition .home-bsod-sublayer {
    width: min(90%, 680px);
    height: min(88%, 460px);
  }

  .home-bsod-layer__text {
    font-size: clamp(10px, 0.68vw, 11px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-bsod-layer__text[data-caret="1"]::after {
    content: none;
  }
}

@media (max-width: 700px) {
  .central-composition .home-bsod-sublayer {
    display: none !important;
  }
}

/* ROOT DESKTOP: REMOVE WORKSPACE PERIMETER FRAME
   Scope: `/` only, desktop >=701px, not /portfolio, not portfolio-clean, not mobile.
   Does not touch CENTRAL_COMPOSITION, SYSTEM.BOOT, TAG, or .err-window chrome. */
@media (min-width: 701px) {
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window {
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .menubar,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .sidebar,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .content,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > #content,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .scrollbar,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .statusbar,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .view.active[data-view="about"] .about-view {
    border: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .sidebar,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .scrollbar,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .statusbar,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .content,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > #content,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .view.active[data-view="about"] .about-view {
    background: transparent !important;
  }

  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .scrollbar .thumb {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
  }

  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .menubar::before,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .menubar::after,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .sidebar::before,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .sidebar::after,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .content::before,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .content::after,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .statusbar::before,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .statusbar::after,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .scrollbar::before,
  html:not(.asterrvn-portfolio-next-route)
    body:not(.asterrvn-portfolio-v3-active):not(.asterrvn-portfolio-clean-active):not(.asterrvn-phone)
    .os-window > .scrollbar::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
  }
}
