body {
  background-color: #111;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  cursor: none; /* 隱藏原本滑鼠 */
  position: relative;
  font-family: sans-serif;
}

#game {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#toy {
  width: 60px;
  height: 60px;
  position: absolute;
  background-color: #ff00ff;
  border-radius: 12px;
  transition: all 0.3s ease;
  pointer-events: auto;
}

/* Idle 抖動 */
@keyframes idleShake {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(-2px,1px) rotate(-1deg); }
  50% { transform: translate(2px,-1px) rotate(1deg); }
  75% { transform: translate(-1px,2px) rotate(-1deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

#toy.idle {
  animation: idleShake 2s infinite;
}

/* 計數器 */
#counter {
  position: fixed;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 20px;
  pointer-events: none;
  z-index: 10;
}

/* 漣漪效果 */
@keyframes ripple {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

.ripple {
  position: absolute;
  border: 2px solid #0ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  pointer-events: none;
  animation: ripple 0.5s ease-out;
  z-index: 500;
}

/* 滑鼠圓形 + 軌跡 */
.cursor {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  background: #0ff;
  box-shadow: 0 0 6px #0ff, 0 0 12px #0ff, 0 0 20px #0ff;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.trail {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  background: #0ff;
  opacity: 0.7;
  filter: blur(3px);
  z-index: 999;
  transition: all 0.8s ease-out;
}
