body {
  background-color: #162237;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  grid-template-rows: repeat(3, 150px);
  gap: 8px;
}

.tile {
  background-color: #1e2c44;
  border: 2px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tile img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.tile.clicked {
  background-color: #101216; /* visually lighter shade */
  cursor: default;
  opacity: 0.6;
  pointer-events: none;
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 34, 55, 0.95);
  color: white;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-inner {
  text-align: center;
  font-size: 1.5rem;
  padding: 2rem;
  background-color: #1e2c44;
  border: 2px solid #86dabd;
  border-radius: 10px;
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

.tile.wiggle {
  animation: wiggle 0.6s ease;
}
