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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #f5f5f5;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

#game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#instructions {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: #666;
  line-height: 1.4;
  padding: 10px 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#traffic-light {
  position: absolute;
  top: 20px;
  background: #333;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.light {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 10px;
  background: #222;
  transition: all 0.3s ease;
}

.light.active {
  box-shadow: 0 0 30px currentColor;
}

#red-light.active {
  background: #ff3333;
  color: #ff3333;
}

#yellow-light.active {
  background: #ffcc00;
  color: #ffcc00;
}

#green-light.active {
  background: #33ff33;
  color: #33ff33;
}

#score-display {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  background: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#club-container {
  position: absolute;
  bottom: 20%;
  width: 100px;
  height: 300px;
  transform-origin: 50% 10%;
  transform: rotate(0deg);
}

#golf-club {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

#club-container.swinging {
  animation: swing 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes swing {
  0% { 
    transform: rotate(90deg);
  }
  100% { 
    transform: rotate(-90deg);
  }
}

#message {
  position: absolute;
  bottom: 100px;
  font-size: 32px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 0 20px;
}

#message.show {
  opacity: 1;
}

#message.good {
  color: #33aa33;
}

#message.bad {
  color: #ff3333;
}

