/* =============================================================
 *  お試しテーマ「夜明け」(空テーマ + 背景No.5「夜明けの塔」に合わせた配色)
 *  - アクセント: 淡い紫 #8a6ad8 ＋ 金 #c2871f、主ボタンはゲーム内「決定」風の青を維持
 *  - パネルをわずかに透かし、背景の夜明けを感じさせる
 *  ※ theme-sky.css の上に重ねて読み込む。?theme=dawn で有効
 * ============================================================= */
html.theme-dawn {
  --panel: rgba(255, 252, 254, 0.74);
  --panel-edge: #e4d9ec;
  --line: #e4d9ec;
  --gold: #4a3a7a;
  --gold-dim: #b9a9d4;
  --ember: #8a6ad8;
  --ember-glow: rgba(138, 106, 216, 0.28);
  --text: #2a2440;
  --muted: #8a7f9e;
  --good: #3f9f7a;
  --warn: #c2871f;
  --soft: rgba(250, 246, 252, 0.82);
  --peach: #f2b8a0;
  --gilt: #c2871f;
}

/* パネル: 少し透かして背景を感じさせる */
.theme-dawn .panel { backdrop-filter: blur(12px) saturate(1.1); box-shadow: 0 8px 28px rgba(74, 58, 122, 0.08); }
.theme-dawn .panel::before, .theme-dawn .panel::after { border-color: var(--gilt); opacity: .55; }
.theme-dawn .topbar { background: rgba(255, 250, 253, 0.8); border-bottom-color: var(--line); }
.theme-dawn .panel.overview.compact { background: rgba(255, 250, 253, 0.94); }

/* 見出しの飾り線を金に */
.theme-dawn .panel-head h3::before, .theme-dawn .troops-head h3::before, .theme-dawn .help-dialog h4::before { background: var(--gilt); }

/* 選択中・強調: 紫 */
.theme-dawn .ov.on, .theme-dawn .slot.active { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), 0 6px 20px var(--ember-glow); }
.theme-dawn .ov.on .tab-no { background: var(--ember); }
.theme-dawn .char:hover { border-color: var(--ember); background: #faf6fd; }
.theme-dawn .char.here { border-color: var(--ember); }
.theme-dawn .char-used { background: var(--ember); }
.theme-dawn .char-used b { color: #4a3a7a; }

/* 枠ラベル: L=青(決定ボタンと統一) / 2nd=紫 / 3rd=桃 */
.theme-dawn .slot[data-slot=second] .slot-label { background: linear-gradient(90deg, #8a6ad8, #a88ce6); border-color: #8a6ad8; }
.theme-dawn .slot[data-slot=third] .slot-label { background: linear-gradient(90deg, #e0906a, #f2b8a0); border-color: #e0906a; }
.theme-dawn .slot-lv, .theme-dawn .slot-btn[data-train] { color: #6a4fc0; border-color: #cbbbe8; }

/* チップ */
.theme-dawn .chip.on { background: #f1ebfb; border-color: var(--ember); color: #4a3a7a; }

/* 兵士・効果・連携 */
.theme-dawn .troop-line { background: linear-gradient(90deg, #f4eefc, #fff); border-color: #ddd0f0; }
.theme-dawn .troop-main b { color: #4a3a7a; }
.theme-dawn .ch-card { border-left-color: var(--gilt); }
.theme-dawn .tl-node.boosted { border-top-color: var(--ember); background: #f5f0fc; }
.theme-dawn .tl-fx i.amp, .theme-dawn .reco-syn i { background: #f1ebfb; color: #5a43a8; }
.theme-dawn .fx-row.focus { background: #f5f0fc; }
.theme-dawn .ch-target.aoe { border-color: var(--ember); color: #5a43a8; }
.theme-dawn .tl-who b, .theme-dawn .reco-ch b, .theme-dawn .reason li b { color: #6a4fc0; }
.theme-dawn .analysis-summary b, .theme-dawn .chain-sum b, .theme-dawn .tl-pw em, .theme-dawn .reco-syn b, .theme-dawn .tl-eff b { color: #b06a3c; }
.theme-dawn .fx-row.focus .fx-val { color: #6a4fc0; }

/* ヘルプ・ダイアログ */
.theme-dawn .dialog { background: #fdfaff; border-color: var(--line); }
.theme-dawn .help-table th { background: #f6f1fb; color: #5a43a8; }
.theme-dawn .help-dialog b { color: #5a43a8; }
.theme-dawn .help-btn { color: #5a43a8; border-color: #cbbbe8; }
.theme-dawn .train-tools { background: #faf6fd; }

/* スマホのメニュー・タブバー(夜明け) */
@media (max-width: 900px) {
  .theme-sky .top-actions { background: rgba(255, 250, 253, 0.98); box-shadow: 0 16px 32px rgba(74, 58, 122, .15); }
  .theme-sky .menu-btn { background: #fff; border-color: var(--line); }
  .theme-sky .mobile-nav { background: rgba(255, 250, 253, 0.95); border-top-color: var(--line); box-shadow: 0 -6px 20px rgba(74, 58, 122, .08); }
  .theme-sky .mobile-nav button { color: #9a8fae; }
  .theme-sky .mobile-nav button.on { color: #6a4fc0; }
  .theme-sky .filters-toggle, .theme-sky .pick-slot { background: #fff; border-color: var(--line); }
  .theme-sky .pick-banner { background: rgba(255, 252, 254, 0.95); box-shadow: 0 8px 20px rgba(74, 58, 122, .15); }
}

/* ===== ボタン: 青をやめてテーマの紫に統一 ===== */
.theme-dawn .btn {
  background: linear-gradient(180deg, #9a7ee0, #6a4fc0); border-color: #6a4fc0; color: #fff;
  box-shadow: 0 2px 8px rgba(106, 79, 192, 0.28);
}
.theme-dawn .btn:hover { filter: brightness(1.06); }
.theme-dawn .btn.ghost { background: #fff; color: #5a43a8; border-color: #ddd0f0; box-shadow: none; }
.theme-dawn .btn.ghost:hover { border-color: var(--ember); color: var(--ember); }
.theme-dawn .btn.danger { background: linear-gradient(180deg, #f08aa0, #d9566f); border-color: #d9566f; }

/* ヘッダー(サイトメニュー): 白地＋紫文字の控えめなボタン */
.theme-dawn .top-actions .btn, .theme-dawn .top-actions .btn.help-btn {
  background: rgba(255, 255, 255, 0.9); color: #5a43a8; border: 1px solid #ddd0f0; box-shadow: none;
}
.theme-dawn .top-actions .btn:hover { border-color: var(--ember); color: #4a3a7a; background: #fff; }
.theme-dawn .top-actions .btn.ghost { color: var(--muted); }

/* 切り替えボタン・枠ラベル */
.theme-dawn .mode-btn.on { background: linear-gradient(180deg, #9a7ee0, #6a4fc0); color: #fff; }
.theme-dawn .mode-switch { border-color: #ddd0f0; }
.theme-dawn .slot-label { background: linear-gradient(90deg, #4a3a7a, #6a4fc0); border-color: #4a3a7a; }
.theme-dawn .slot[data-slot=second] .slot-label { background: linear-gradient(90deg, #9a7ee0, #b9a2ec); border-color: #9a7ee0; }
.theme-dawn .slot-btn[data-train] { color: #5a43a8; }
.theme-dawn .ask-actions .btn:not(.ghost):not(.danger) { background: linear-gradient(180deg, #9a7ee0, #6a4fc0); }

.theme-dawn .top-actions .bi { color: #8a6ad8; }
.theme-dawn .top-actions .btn.ghost .bi { color: var(--muted); }
@media (max-width: 900px) {
  html.theme-dawn .top-actions .btn, html.theme-dawn .top-actions .btn.help-btn {
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none;
  }
  html.theme-dawn .top-actions .btn:last-child { border-bottom: 0; }
}

.theme-dawn .scene-card { background: #fff; border-color: var(--line); }
.theme-dawn .scene-card.on { background: #f6f1fd; }
.theme-dawn .scene-sub { background: #f6f1fb; }

.theme-dawn .seg button { background: #fff; border-color: var(--line); }
.theme-dawn .seg button.on { background: #f6f1fd; }

.theme-dawn .ffield.active select { background: #faf6fd; }
