/* Fixed full-viewport pixel grid background */
#pixel-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* Invisible clickable bounding box over the grid logo */
#bg-logo-link {
  position: absolute;
  z-index: 20;
  display: none;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
}

#bg-logo-link:focus-visible {
  outline: 2px dashed #1b0e36;
  outline-offset: 2px;
}

/* Integrated grid randomize button */
#randomize-bg {
  position: fixed;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  color: #444;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#randomize-bg:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

#randomize-bg:active {
  transform: scale(0.92);
}
