/* The Y2K island's glass over the world (y2k/hud.js): the hands' button, the dark of midnight and of the power cut. */

#y2k-hands {
  position: fixed;
  z-index: 3;
  left: calc(50% + 96px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 10px 12px;
  border-radius: 999px;
  font: 600 17px var(--font);
  color: var(--ink);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--rim);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#y2k-hands[hidden] {
  display: none;
}

/* On a phone it takes Wave's place beside Jump, a round glass button the size of a thumb. */
:root[data-y2k][data-touch="true"] #gesture {
  display: none !important;
}

:root[data-touch="true"] #y2k-hands {
  left: auto;
  right: 132px;
  bottom: calc(30px + env(safe-area-inset-bottom));
  min-width: 96px;
  height: 64px;
  justify-content: center;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(196, 240, 240, 0.72));
}

:root[data-touch="true"] #y2k-hands.idle {
  opacity: 0.55;
}

#y2k-dark {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(6, 14, 44, 0.55), rgba(2, 6, 24, 0.92));
  transition: opacity 0.12s linear;
}

#y2k-dark[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #y2k-dark {
    transition: none;
  }
}
