/* 弾幕シューティング - 固有スタイル */
.game-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
}
.score-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.score-box {
  background: #BBADA0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-align: center;
  min-width: 70px;
}
.score-label {
  display: block;
  font-size: 0.7rem;
  color: #EEE4DA;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.score-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.btn-new-game {
  margin-left: auto;
  background: #8F7A66;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-new-game:hover {
  background: #7A6658;
}
.board-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  touch-action: none;
}
#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #05051a;
  border-radius: 8px;
  display: block;
}
.lives-display {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 5;
}
.life-icon {
  width: 12px;
  height: 12px;
  background: #ff6699;
  border-radius: 50%;
  opacity: 0.9;
}
.life-icon.lost {
  opacity: 0.25;
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(238, 228, 218, 0.85);
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: overlay-appear 0.3s ease;
}
.game-overlay.active {
  display: flex;
}
@keyframes overlay-appear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.overlay-content {
  text-align: center;
  padding: 1.5rem;
}
.overlay-content h2 {
  font-size: 1.75rem;
  color: #776E65;
  margin-bottom: 0.5rem;
}
.overlay-content p {
  font-size: 1.1rem;
  color: #776E65;
  margin-bottom: 0.75rem;
}
.overlay-content .best-result {
  font-size: 0.95rem;
  color: #ff6699;
  font-weight: 600;
  margin-bottom: 1rem;
}
.overlay-content .btn-primary {
  margin-bottom: 0.5rem;
}
@media (max-width: 500px) {
  .board-wrapper { max-width: 100%; }
}
@media (max-width: 360px) {
  .score-area { gap: 0.5rem; }
  .score-box { padding: 0.4rem 0.75rem; min-width: 55px; }
  .score-value { font-size: 1rem; }
  .score-label { font-size: 0.6rem; }
}
