/* ==========================================================================
   bsod.css - the crash screen (js/bsod.js)
   ========================================================================== */

.bsod {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #1173ab;
  color: #fff;
  font-family: var(--font-light);
  font-weight: 300;
  display: flex;
  align-items: center;
  cursor: none;
  animation: bsod-in 80ms steps(1) both;
}

.bsod-inner {
  width: min(880px, 100%);
  padding: 0 clamp(24px, 9vw, 150px);
  box-sizing: content-box;
}

.bsod-face {
  font-size: clamp(96px, 16vw, 168px);
  line-height: 1;
  margin: 0 0 clamp(18px, 4vh, 40px);
  letter-spacing: -0.02em;
}

.bsod-lead {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.32;
  margin: 0 0 14px;
  max-width: 34em;
}

.bsod-foot {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: clamp(24px, 6vh, 56px);
}

.bsod-qr {
  width: 112px;
  height: 112px;
  flex: none;
  image-rendering: pixelated;
}

.bsod-detail p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  max-width: 40em;
}
.bsod-detail b { font-weight: 600; }
.bsod-detail .bsod-small { font-size: 13px; margin-bottom: 4px; opacity: 0.92; }

/* Lights out before the restart. */
.bsod.is-off { background: #000; transition: background 300ms; }
.bsod.is-off .bsod-inner { opacity: 0; transition: opacity 200ms; }

@keyframes bsod-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .bsod { align-items: flex-start; padding-top: 14vh; }
  .bsod-foot { flex-direction: column; gap: 14px; }
  .bsod-qr { width: 96px; height: 96px; }
}
