@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  overflow: hidden;
  touch-action: none;
  width: 100vw;
  height: 100vh;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

#ui {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #333;
  font-weight: 700;
  pointer-events: none;
}

#score {
  font-size: 24px;
  margin-bottom: 10px;
}

#instruction {
  font-size: 48px;
  color: #333;
  margin-top: 20px;
  transition: all 0.3s;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

#instruction.correct {
  color: #4CAF50;
  transform: translateX(-50%) scale(1.2);
}

#instruction.wrong {
  color: #ff6b6b;
  animation: shake 0.3s;
  transform: translateX(-50%);
}

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

#controls {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 16px;
  color: #666;
  text-align: right;
  pointer-events: none;
  font-family: 'Noto Sans JP', sans-serif;
}

#controls div {
  margin-bottom: 5px;
}