* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

#app {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

#message {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

#selected-emojis {
  min-height: 80px;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.selected-emoji {
  font-size: 32px;
  background: white;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.selected-emoji:hover {
  transform: scale(1.1);
  background: #ffebee;
}

#emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.emoji-btn {
  aspect-ratio: 1;
  font-size: 36px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn:hover {
  transform: scale(1.05);
  border-color: #333;
}

.emoji-btn:active {
  transform: scale(0.95);
}

.emoji-btn.selected {
  background: #e3f2fd;
  border-color: #2196f3;
}

.emoji-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#create-btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  background: #333;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 15px;
}

#create-btn:hover {
  background: #555;
  transform: translateY(-2px);
}

#create-btn:active {
  transform: translateY(0);
}

#create-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

#result {
  font-size: 18px;
  line-height: 1.6;
  min-height: 50px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  #message {
    font-size: 18px;
  }
  
  #selected-emojis {
    min-height: 60px;
    padding: 10px;
  }
  
  .selected-emoji {
    font-size: 28px;
  }
  
  #emoji-grid {
    gap: 8px;
  }
  
  .emoji-btn {
    font-size: 28px;
  }
  
  #create-btn {
    padding: 12px;
    font-size: 14px;
  }
}