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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #000;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#game-title {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  font-weight: bold;
  z-index: 100;
}

#score {
  position: fixed;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 100;
}

#floating-words {
  width: 100%;
  height: 100%;
  position: relative;
}

.floating-word {
  position: absolute;
  font-size: 0.9rem;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: grab;
  transition: all 0.2s;
  user-select: none;
  animation: float 3s ease-in-out infinite;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 110px;
  height: 110px;
  padding: 10px;
}

.floating-word:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.floating-word:active {
  transform: scale(0.95);
}

.floating-word.correct {
  background: #d4edda;
  border-color: #28a745;
  animation: fadeOut 0.5s forwards;
}

.floating-word.wrong {
  background: #f8d7da;
  border-color: #dc3545;
  animation: shake 0.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@media (max-width: 600px) {
  #game-title {
    font-size: 1.1rem;
    top: 10px;
  }
  
  #score {
    font-size: 1rem;
    top: 45px;
  }
  
  .floating-word {
    font-size: 0.8rem;
    width: 90px;
    height: 90px;
    padding: 8px;
  }
}