/* halloween/result.css     */

/* ===================== */
/* 🎃 Halloween 専用リザルトページCSS */
/* ===================== */

/* 背景・フォント設定 */
body {
  background: url("/game/tapbattle/images/halloween/bac_top1.jpg") center/cover no-repeat;
  width: 100%;
  height: auto;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  text-align: center;
}

/* ===================== */
/* 🔥 タップオーバーレイ */
/* ===================== */
#tap-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: opacity 0.5s;
  z-index: 10;
  font-weight: bold;
  color: #ffcc66;
  text-shadow: 0 0 10px #ff6600, 2px 2px 8px black;
  animation: fadePulse 1.5s infinite;
}

#tap-overlay p {
  font-size: 1.8rem;
}
#tap-overlay small {
  margin-top: 20px;
  font-size: 1rem;
  color: #fff;
}
#tap-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===================== */
/* 🎁 リザルトボックス本体 */
/* ===================== */
#result-box {
  width: 92%;
  max-width: 700px;
  margin: 80px auto 50px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 0 15px #ff6600cc;
  border: 2px solid #ff6600;
  animation: fadeIn 0.8s ease forwards;
}

/* タイトル・スコア・称号 */
#result-title {
  font-size: 2.2rem;
  color: #ffb347;
  text-shadow: 0 0 10px #ffa, 0 0 15px #ff6600;
  margin-bottom: 15px;
}
#final-score {
  font-weight: bold;
  color: #ffcc66;
  text-shadow: 0 0 10px #ff9900;
  margin-bottom: 10px;
}
#final-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #ffd27f;
}

/* ===================== */
/* 🕸 SNS共有ボタン */
/* ===================== */
.sns-icons {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
}
.sns-icons button {
  width: 50px;
  height: 50px;
  font-size: 1.3rem;
  border-radius: 50%;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s;
}
.sns-icons button:hover {
  transform: scale(1.1);
  opacity: 0.85;
}
.sns-icons .twitter { background: #1DA1F2; }
.sns-icons .facebook { background: #1877F2; }
.sns-icons .line { background: #06C755; }

/* ===================== */
/* 🎁 特別称号報酬セクション */
/* ===================== */
#reward-section {
  background: rgba(255, 200, 50, 0.12);
  border: 2px solid #ffcc80;
  border-radius: 12px;
  padding: 15px 10px;
  margin: 20px auto;
  width: 85%;
  box-shadow: 0 0 10px #ffcc8080;
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}
#reward-section.hidden {
  display: none;
}
.reward-btn {
  background: linear-gradient(90deg, #ff8a00, #ffcc00);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 8px #ffb347;
  transition: transform 0.1s ease, opacity 0.2s ease;
}
.reward-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.reward-btn:disabled {
  background: gray;
  cursor: default;
  box-shadow: none;
}
.note {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #ffe5b4;
  line-height: 1.4;
  text-shadow: 0 0 4px #000;
}

/* ===================== */
/* 🕹 アクションボタン */
/* ===================== */
.actions-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.actions-row button {
  min-width: 120px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  background: #ff9800;
  color: #fff;
  transition: transform 0.1s ease, background 0.2s;
}
.actions-row button:hover {
  transform: scale(1.05);
  background: #e68900;
}

/* ===================== */
/* 🎃 ステージ選択 */
/* ===================== */
.stage-row {
  margin-top: 20px;
}
.stage-row p {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff3cc;
}
.stage-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.stage-options button {
  min-width: 100px;
  padding: 6px 10px;
  font-size: 0.85rem;
  border: none;
  border-radius: 8px;
  background: #ff9800;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s;
}
.stage-options button:hover {
  background: #e68900;
  transform: scale(1.05);
}

/* ===================== */
/* 💫 共通アニメーション */
/* ===================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px #ffcc8080; }
  50% { box-shadow: 0 0 20px #ffd700cc; }
}
