/* ---------- Mobile joystick ---------- */
#joystick {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 25;
}

#joystick-base {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  position: relative;
}

#joystick-knob {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #c9d6e8);
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#jump-btn {
  position: fixed;
  right: 30px;
  bottom: 40px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  z-index: 25;
  font-size: 18px;
  font-weight: 800;
  color: #7a4d00;
  background: radial-gradient(circle at 35% 30%, #ffe9a3, #ffc93c 60%, #eda800);
  border: 3px solid rgba(255,255,255,0.75);
  box-shadow: 0 5px 14px rgba(0,0,0,0.35);
  cursor: pointer;
}
#jump-btn:active { transform: scale(0.92); }
/* ---------- Drive button ---------- */
#drive-btn {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #48dbfb, #0abde3);
  border: 3px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 189, 227, 0.55);
  animation: talkPulse 1.1s ease-in-out infinite;
}
#drive-btn.exit {
  background: linear-gradient(180deg, #ff8f5e, #ff6b35);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.55);
  animation: none;
}
#drive-btn:active { transform: translateX(-50%) scale(0.94); animation: none; }
/* hide mobile controls + keep world clean while quizzing */
body.quiz-mode #joystick, body.quiz-mode #jump-btn { display: none !important; }
body.quiz-mode {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
