.mac-startup-preview,
.mac-startup[open] {
  background: var(--site-background);
}

.mac-startup[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  place-items: safe center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  color: #111;
  font: 16px/1.4 Geneva, Verdana, sans-serif;
  text-align: center;
}

.mac-startup__screen {
  box-sizing: border-box;
  width: min(100%, 560px);
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid #111;
  background: #ddd;
}

.mac-startup__panel {
  padding: clamp(22px, 5vw, 36px) 8px;
  border: 1px solid #111;
  background: #fff;
}

:root body .mac-startup__panel img {
  display: block;
  width: min(100%, 228px);
  height: auto;
  margin: 0 auto;
  filter: none !important;
  mix-blend-mode: normal;
}

#mac-startup-title {
  margin: 16px 0 0;
  color: #111;
  font: clamp(2.5rem, 11vw, 4.25rem)/1 advercase, "Times New Roman", Times, serif;
  letter-spacing: -0.045em;
}

.mac-startup__status {
  margin: 24px 0 10px;
  font: bold 13px/1.3 Geneva, Verdana, sans-serif;
}

.mac-startup__track {
  box-sizing: border-box;
  width: min(100%, 260px);
  height: 18px;
  margin: 0 auto;
  padding: 1px;
  border: 1px solid #111;
  background: #c7c7c7;
  box-shadow: inset 1px 1px #888, inset -1px -1px #fff;
}

.mac-startup__progress {
  height: 100%;
  background: linear-gradient(#5451a5, #ceccff 42%, #8985df 58%, #3f3b92);
  box-shadow: inset -1px 0 #292568;
  transform-origin: left;
  animation: mac-startup-fill 2.5s linear both;
}

.mac-startup form {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
}

.mac-startup .button {
  min-height: 44px;
  margin: 0;
  padding-inline: 24px;
}

.mac-startup .button:focus-visible {
  background-color: #fff;
  outline: none;
}

@keyframes mac-startup-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
