/* Game CSS for Color Sort */

#play-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 10;
}

#play-hud button {
  pointer-events: auto;
}

.icon-btn {
  font-size: 1.3rem;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

#level-display {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-message {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.screen[data-screen="play"] {
  padding: 0;
  display: block;
}

.screen[data-screen="win"] {
  background: rgba(10, 10, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.screen[data-screen="all-clear"] {
  background: rgba(15, 10, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
