/* =========================================================
   click-area.css
   ---------------------------------------------------------
   クリックエリア・ポップ君ボタン・浮き上がりテキスト・CPS表示
   ========================================================= */

.click-area {
  flex: 1.1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.count {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #2c5f8d;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.count-sub {
  color: #666;
  margin-bottom: 24px;
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  text-align: center;
}

.popkun-btn {
  width: clamp(160px, 34vw, 320px);
  height: clamp(115px, 24vw, 230px);
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  touch-action: manipulation;
  transition: transform 0.08s, filter 0.08s;
}

.popkun-btn:hover  { filter: brightness(1.08); }
/* transformはクリック時の.popバウンス演出だけが担当する。
   :activeでも transform: scale() を使うと、押している間の変形と
   バウンスアニメーションの変形がぶつかり合って余計に振動して見えるため、
   ここでは transform を使わず明るさの変化だけにする。 */
.popkun-btn:active { filter: brightness(0.94); }

.popkun-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

@keyframes popkunBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.93); }
  70%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.popkun-btn.pop { animation: popkunBounce 0.18s; }

/* クリック時に画面上を浮き上がるノーツ数テキスト。
   click.js が body 直下に fixed で追加するため、
   position はここでは指定せず JS 側で style.position="fixed" を設定する。 */
.float-text {
  font-weight: bold;
  color: #2c5f8d;
  pointer-events: none;
  animation: floatUp 0.8s ease-out forwards;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  z-index: 9999;
}

@keyframes floatUp {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -70px); }
}

.cps-info {
  margin-top: 24px;
  color: #666;
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  text-align: center;
}
