/* boot: the UPDATE.exe window (offer -> boot log -> welcome back). Selectors are prefixed .scr-boot. */

.scr-boot {
  justify-content: center;
}

.scr-boot .boot-win .win__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scr-boot .boot-win .win__body > * + * {
  margin-top: 0;
}

/* ---- the offer ---- */
.scr-boot .boot-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scr-boot .boot-hero__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 56px;
  background: var(--pink-l);
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
}

.scr-boot .boot-hero__text {
  min-width: 0;
}

.scr-boot .boot-hero__os {
  font-family: var(--font-ui);
  font-size: var(--fs-l);
  line-height: 1.05;
  text-transform: uppercase;
}

.scr-boot .boot-hero__edition {
  display: inline-block;
  margin: 6px 0 0;
  padding: 1px 8px 2px;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  line-height: 1.3;
  text-transform: uppercase;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.scr-boot .boot-lead {
  margin: 0;
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.scr-boot .boot-specs {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  padding: 10px 12px;
  background: var(--shade);
  border: var(--bw) solid var(--ink);
}

.scr-boot .boot-specs__row {
  display: contents;
}

.scr-boot .boot-specs dt {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  line-height: 1.2;
  text-transform: uppercase;
}

.scr-boot .boot-specs dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: var(--fs-s);
  line-height: 1.25;
  overflow-wrap: break-word; /* long Dutch compounds break at their soft hyphens first */
  hyphens: manual;
}

.scr-boot .boot-ask {
  margin: 2px 0 -4px;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  text-align: center;
}

.scr-boot .boot-btns {
  display: grid;
  gap: 12px;
}

.scr-boot .boot-btn {
  min-height: 52px;
  gap: 12px;
}

/* ---- the boot log ---- */
.scr-boot .boot-log {
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  background: var(--shade);
  border: var(--bw) solid var(--ink);
  font-size: var(--fs-s);
  line-height: 1.3;
}

.scr-boot .boot-log__line {
  padding-left: 1.15em;
  text-indent: -1.15em;
}

.scr-boot .boot-log__line + .boot-log__line {
  margin-top: 5px;
}

.scr-boot .boot-log__line.is-pending,
.scr-boot .boot-log__rest {
  visibility: hidden;
}

.scr-boot .boot-log__prompt {
  display: inline-block;
  width: 1.15em;
  text-indent: 0;
  font-family: var(--font-ui);
}

/* blinking block cursor behind the line that is printing (zero width, so nothing reflows) */
.scr-boot .boot-log__line.is-active .boot-log__shown::after {
  content: "";
  margin-right: -0.5em;
  border-left: 0.5em solid var(--ink);
  animation: blink calc(500ms / var(--speed)) steps(1) infinite;
}

.scr-boot .boot-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  text-transform: uppercase;
}

.scr-boot .boot-bar__track .loadbar__seg {
  height: 18px;
}

.scr-boot .boot-skip {
  margin: -2px 0 0;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  text-align: center;
}

.scr-boot .boot-win.is-done .boot-bar__track .loadbar__seg.is-on {
  background: var(--mint);
}

/* ---- welcome back ---- */
.scr-boot .boot-back {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scr-boot .boot-back__henk {
  flex: none;
}

.scr-boot .boot-back__text {
  margin: 0;
  font-size: var(--fs-m);
  line-height: 1.3;
}

.scr-boot .boot-back__text strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--fs-s);
  text-transform: uppercase;
}

/* ---- short or narrow phones (iPhone SE: 320x568; an SE in Safari: about 375x553) ----
   Everything a bit tighter, so both sound buttons are on the first screen without scrolling. */
@media (max-height: 600px), (max-width: 340px) {
  .scr-boot {
    padding-top: 10px;
  }

  .scr-boot .boot-win .win__body {
    gap: 10px;
    padding: 12px;
  }

  .scr-boot .boot-hero {
    gap: 12px;
  }

  .scr-boot .boot-hero__icon {
    width: 50px;
    height: 46px;
  }

  .scr-boot .boot-hero__icon .sprite {
    width: 27px;
    height: 24px;
  }

  .scr-boot .boot-hero__os {
    font-size: calc(20px * var(--text-scale));
  }

  .scr-boot .boot-specs {
    gap: 4px 10px;
    padding: 8px 10px;
  }

  .scr-boot .boot-btn {
    min-height: 48px;
  }
}
