/* style.css */
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  background-color: #f7f9fc;
  margin: 0;
  padding: 0;
  color: #333;
}

/* ラットの部屋のスタイル */
.room-container {
  text-align: center;
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.rat-character {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #FFF9C4, #FFECB3);
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  font-size: 60px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  position: relative; /* 光の玉の着地点として基準にします */
  transition: transform 0.2s;
}

/* EXP吸収時のリアクション（少し跳ねる） */
.rat-character.absorb {
  transform: scale(1.05);
}

/* クエストボタンのスタイル */
.action-btn {
  padding: 16px;
  background: #ffffff;
  color: #333;
  border: 2px solid #4CAF50;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.action-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(0,0,0,0.05);
}

/* 🌟 光の玉エフェクトのアニメーション定義 */
.exp-orb {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #fff, #ffeb3b, #ff9800);
  border-radius: 50%;
  box-shadow: 0 0 15px #ff9800;
  pointer-events: none;
  z-index: 1000;
  animation: flyToRat 0.8s ease-in-out forwards;
}

@keyframes flyToRat {
  0% { transform: scale(0.5); opacity: 1; }
  50% { transform: scale(1.5); }
  100% { 
    /* 画面中央付近（ラットの位置）へ飛んでいく */
    top: 250px; 
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1); 
    opacity: 0; 
  }
}