/* タイトル画面・ステージ選択画面・リザルト画面のスタイル */

/* ==================== 1. タイトル画面 ==================== */
#title-screen {
  text-align: center;
}
.title-logo {
  font-size: 44px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 10px rgba(0,0,0,0.8);
  letter-spacing: 3px;
  margin-bottom: 8px;
  animation: titleGlow 2.5s infinite alternate;
}
@keyframes titleGlow {
  from { text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
  to { text-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 170, 0, 0.5); }
}
.title-subtitle {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 36px;
  letter-spacing: 1px;
}
.menu-btn-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 260px;
}

/* ==================== 2. ステージ選択画面 ==================== */
#stage-select-screen h2 {
  color: #ffd700;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 28px;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 920px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 10px;
}
.stage-card {
  background: rgba(25, 25, 40, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stage-card:hover {
  border-color: #ffd700;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}
.stage-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 8px;
}
.badge-easy { background: #2ecc71; color: #000; }
.badge-normal { background: #3498db; color: #fff; }
.badge-hard { background: #e74c3c; color: #fff; }
.badge-reverse { background: #9b59b6; color: #fff; }
.badge-chaos { background: #e67e22; color: #fff; }

.stage-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
}
.stage-desc {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
  line-height: 1.4;
}
.stage-stats {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  color: #ddd;
}

/* ==================== 3. リザルト画面 ==================== */
#result-screen {
  text-align: center;
}
.result-box {
  background: rgba(20, 20, 32, 0.95);
  border: 2px solid #ffd700;
  border-radius: 16px;
  padding: 28px 36px;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35);
}
.rank-display {
  font-size: 72px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  margin: 8px 0;
  letter-spacing: -2px;
}
.new-record-badge {
  display: inline-block;
  background: #ff4757;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.result-details {
  background: rgba(0, 0, 0, 0.5);
  padding: 14px;
  border-radius: 10px;
  margin: 16px 0;
  text-align: left;
  line-height: 1.8;
  font-size: 14px;
}
.result-row {
  display: flex;
  justify-content: space-between;
}
