body {
  background: radial-gradient(circle, #82707a, #24111e 100%);
  color: #fff;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(110px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 6vmin;
  font-weight: 800;
  pointer-events: none;
  transition: opacity 0.5s;
}

#hint.hidden {
  opacity: 0;
}

.colors {
  position: fixed;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  right: max(10px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 1.4vh;
}

.colors button {
  width: min(7vh, 60px);
  height: min(7vh, 60px);
  border-radius: 50%;
  border: 3px solid #fff;
  font-size: min(3.6vh, 30px);
  background: #fff;
}

.colors [data-color="random"] {
  background: conic-gradient(#ff7fbf, #ffbf7f, #ffff7f, #bfff7f, #7fffff, #bf7fff, #ff7fbf);
}

.colors .selected {
  box-shadow: 0 0 0 4px #24111e, 0 0 0 8px #fff;
  transform: scale(1.1);
}

.objects {
  position: fixed;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.objects button {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  font-size: 44px;
  line-height: 1;
}

.objects .selected {
  background: #ffd166;
  box-shadow: 0 0 0 4px #fff;
  transform: translateY(-6px);
}

@media (max-width: 640px) {
  .objects button {
    width: 52px;
    height: 52px;
    font-size: 32px;
  }
}
