/* ── 探索シーン ─────────────────────────── */
.popup-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(10, 10, 30, 0.92);
  border: 2px solid #ffd700;
  border-radius: 8px;
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  padding: 20px 48px;
  letter-spacing: 2px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.popup-message.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.exploration-stage-label {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 8px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(255,215,0,0.4);
  pointer-events: none;
  animation: labelFadeOut 3s ease forwards;
}

@keyframes labelFadeOut {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  20%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── アイテム取得ポップアップ ──────────────── */
.popup-item-get {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(10, 10, 30, 0.96);
  border: 3px solid #ffd700;
  border-radius: 12px;
  padding: 36px 56px 28px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 40px rgba(255,215,0,0.4);
  z-index: 50;
  min-width: 420px;
}

.popup-item-get.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popup-item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.popup-item-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 12px rgba(255,215,0,0.5));
}

.popup-item-text {
  color: #ffd700;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 2px;
  line-height: 1.5;
}

.popup-item-close-btn {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 4px;
  padding: 12px 48px;
  background: rgba(255,215,0,0.15);
  color: #ffd700;
  border: 2px solid #ffd700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  animation: dialogueBtnBounce 1s ease-in-out infinite;
}

.popup-item-close-btn:hover {
  background: rgba(255,215,0,0.3);
}

@keyframes dialogueBtnBounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
