/* ============================================
   金魚すくい - スタイル
   ============================================ */

/* スコアエリア */
.score-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.score-box {
  background: #fff5f5;
  border: 2px solid #feb2b2;
  border-radius: 10px;
  padding: 0.4rem 1.1rem;
  text-align: center;
  min-width: 80px;
}

.score-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c53030;
}

.score-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #2d3748;
}

/* ポイ表示 */
#poi-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.poi-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #e53e3e;
  background: rgba(255, 255, 255, 0.9);
  margin-right: 4px;
  vertical-align: middle;
  transition: opacity 0.3s;
}

.poi-icon.used {
  opacity: 0.2;
  border-color: #a0aec0;
}

#poi-hp-bar {
  width: 140px;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

#poi-hp-fill {
  height: 100%;
  width: 100%;
  background: #48bb78;
  border-radius: 999px;
  transition: width 0.2s, background 0.2s;
}

#poi-hp-fill.warn {
  background: #ecc94b;
}

#poi-hp-fill.danger {
  background: #e53e3e;
}

/* ゲームボード */
.board-wrapper {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

#game-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 4px solid #c53030;
  background: #5aa7d4;
  cursor: crosshair;
  touch-action: none;
}

/* オーバーレイ */
.game-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 32, 44, 0.65);
  border-radius: 14px;
  z-index: 5;
}

.game-overlay.active {
  display: flex;
}

.overlay-content {
  background: #fff;
  border-radius: 14px;
  padding: 1.6rem 2rem;
  text-align: center;
  max-width: 85%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.overlay-content h2 {
  margin: 0 0 0.6rem;
  color: #c53030;
}

.overlay-content p {
  margin: 0.4rem 0;
  color: #2d3748;
  font-weight: 600;
}

.overlay-note {
  font-size: 0.85rem;
  color: #718096 !important;
  font-weight: 500 !important;
}

.overlay-content .btn-primary {
  margin-top: 0.9rem;
  font-size: 1.1rem;
  padding: 0.7rem 2.2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #e53e3e, #dd6b20);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
  transition: transform 0.15s;
}

.overlay-content .btn-primary:hover {
  transform: translateY(-2px);
}

.best-result {
  color: #b7791f !important;
  font-weight: 700 !important;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .score-box {
    min-width: 66px;
    padding: 0.3rem 0.8rem;
  }

  .score-value {
    font-size: 1.2rem;
  }

  .overlay-content {
    padding: 1.2rem 1.2rem;
  }
}
