/* =============================================================
 *  お試しテーマ「空」(公式サイトの雰囲気を参考)
 *  - 明るい空色〜白のグラデーション、細い線、余白
 *  - 見出し: Shippori Mincho / 英字: Cormorant SC / 本文: Noto Sans JP
 *  - アクセント: ターコイズ #19b9bf、ディープブルー #1a44cc
 *  ※ ?theme=sky で有効。?theme=default で元に戻る
 * ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+SC:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

html.theme-sky {
  --bg: #f4f7fb;
  --bg2: #eaf1f8;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-edge: #d5e0ea;
  --gold: #1f3f7a;
  --gold-dim: #9db3c9;
  --ember: #19b9bf;
  --ember-glow: rgba(25, 185, 191, 0.32);
  --text: #1c2536;
  --muted: #69899b;
  --good: #0f9f8f;
  --bad: #e2456b;
  --warn: #c2871f;
  --accent2: #1a44cc;
  --line: #c8d6e3;
  --soft: rgba(233, 240, 247, 0.9);
}
.theme-sky body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(196, 214, 255, 0.55), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(232, 222, 255, 0.5), transparent 60%),
    linear-gradient(180deg, #f9fbfe, #eef3f8 60%, #e9f0f7);
  background-attachment: fixed;
}
.theme-sky .embers { display: none; }

/* 見出し・英字 */
.theme-sky .panel-head h3, .theme-sky .troops-head h3, .theme-sky .analysis h4, .theme-sky .advice h4,
.theme-sky .dialog h3, .theme-sky .dialog h4, .theme-sky .train-name, .theme-sky .slot-name, .theme-sky .squad-name {
  font-family: 'Shippori Mincho', serif; letter-spacing: .08em; color: var(--gold);
}
.theme-sky .panel-head h3::before, .theme-sky .troops-head h3::before, .theme-sky .help-dialog h4::before { content: ''; width: 14px; height: 1px; background: var(--ember); }
.theme-sky .brand-en {
  font-family: 'Cormorant SC', serif; font-weight: 600; letter-spacing: .22em;
  background: none; -webkit-background-clip: initial; background-clip: initial; color: #1c2536; filter: none;
}
.theme-sky .brand-en::first-letter { font-size: 1em; }
.theme-sky .brand-ja { color: var(--muted); }
.theme-sky .slot-label, .theme-sky .tab-no, .theme-sky .tl-t, .theme-sky .reco-rank, .theme-sky .reco-score,
.theme-sky .fx-val, .theme-sky .chain-sum b, .theme-sky .char-lv, .theme-sky .adv-gain, .theme-sky .analysis-summary b {
  font-family: 'Cormorant SC', serif;
}

/* ヘッダー */
.theme-sky .topbar {
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 16px rgba(31, 63, 122, 0.06);
}

/* パネル */
.theme-sky .panel {
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(31, 63, 122, 0.07); backdrop-filter: blur(8px);
}
.theme-sky .panel::before, .theme-sky .panel::after { border-color: var(--ember); opacity: .6; }
.theme-sky .panel.overview.compact { background: rgba(255, 255, 255, 0.95); box-shadow: 0 6px 18px rgba(31, 63, 122, 0.12); }

/* 入力 */
.theme-sky input[type=number], .theme-sky input[type=search], .theme-sky select, .theme-sky .squad-name,
.theme-sky .pf-add input, .theme-sky .ask-body input, .theme-sky .ask-body textarea, .theme-sky .rf-row #recoCount {
  background: #fff; border: 1px solid var(--line); color: var(--text);
}
.theme-sky .squad-name { background: transparent; border-color: transparent; }
.theme-sky .squad-name:hover, .theme-sky .squad-name:focus { background: #fff; border-color: var(--line); }

/* ボタン: 白地＋細線、主ボタンはゲーム内の「決定」風の青 */
.theme-sky .btn {
  background: linear-gradient(180deg, #2f6fe0, #1a44cc); border: 1px solid #1a44cc; color: #fff;
  box-shadow: 0 2px 6px rgba(26, 68, 204, 0.25); border-radius: 999px; padding: 7px 16px;
}
.theme-sky .btn.small { padding: 4px 12px; }
.theme-sky .btn.ghost { background: #fff; color: var(--gold); border-color: var(--line); box-shadow: none; }
.theme-sky .btn.ghost:hover { border-color: var(--ember); color: var(--ember); }
.theme-sky .btn.danger { background: linear-gradient(180deg, #f06a8a, #e2456b); border-color: #e2456b; color: #fff; }
.theme-sky .help-btn { background: #fff; color: #1a44cc; border-color: #9db3e8; }
.theme-sky .mode-switch { border-color: var(--line); border-radius: 999px; background: #fff; }
.theme-sky .mode-btn { color: var(--muted); }
.theme-sky .mode-btn.on { background: linear-gradient(180deg, #2f6fe0, #1a44cc); color: #fff; }

/* チップ */
.theme-sky .chip { background: #fff; border-color: var(--line); color: var(--muted); }
.theme-sky .chip.on { background: #e3f6f7; border-color: var(--ember); color: #0d6b70; }
.theme-sky .chip.on[style] { background: color-mix(in srgb, var(--el) 18%, #fff); color: var(--text); }
.theme-sky .chip.on .ico-troop, .theme-sky .cmd-pick .chip.on .ico-troop { color: inherit; }

/* 全部隊・枠 */
.theme-sky .ov, .theme-sky .slot { background: linear-gradient(180deg, #ffffff, #f3f7fb); border-color: var(--line); }
.theme-sky .ov.on, .theme-sky .slot.active { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), 0 4px 16px var(--ember-glow); }
.theme-sky .tab-no { background: #e6eef6; color: var(--gold); }
.theme-sky .ov.on .tab-no { background: var(--ember); color: #fff; }
.theme-sky .slot-label { background: linear-gradient(90deg, #1a44cc, #2f6fe0); border-color: #1a44cc; color: #fff; }
.theme-sky .slot[data-slot=second] .slot-label { background: linear-gradient(90deg, #19b9bf, #3fd0d4); border-color: #19b9bf; }
.theme-sky .slot[data-slot=third] .slot-label { background: linear-gradient(90deg, #7a5cc8, #9a80e0); border-color: #7a5cc8; }
.theme-sky .slot-empty { color: var(--gold-dim); }
.theme-sky .slot-tags i, .theme-sky .slot-btn, .theme-sky .slot-remove, .theme-sky .ov-reset, .theme-sky .dlg-close {
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.theme-sky .slot-btn[data-train] { color: #1a44cc; border-color: #9db3e8; }
.theme-sky .slot-lv { color: #1a44cc; }
.theme-sky .portrait.empty { background: #eef3f8; border-color: var(--line); }
.theme-sky .troop-line { background: linear-gradient(90deg, #eaf7f8, #fff); border-color: #bfe6e8; }
.theme-sky .troop-main b { color: #0d6b70; }

/* 一覧カード */
.theme-sky .char { background: #fff; border: 1px solid #e3ebf3; }
.theme-sky .char:hover { border-color: var(--ember); background: #f3fbfb; }
.theme-sky .char.here { border-color: var(--ember); }
.theme-sky .char-used { background: var(--ember); color: #fff; }
.theme-sky .char-used b { background: #fff; color: #0d6b70; }
.theme-sky .char-unowned { background: rgba(255, 255, 255, .9); }
.theme-sky .train-tools { background: #f3f8fc; border-color: var(--line); }

/* 効果・連携 */
.theme-sky .ch-card, .theme-sky .tl-node, .theme-sky .fx-row, .theme-sky .notes li, .theme-sky .reco-card,
.theme-sky .train-row, .theme-sky .sk-text p, .theme-sky .profile-list li, .theme-sky .adv-list li, .theme-sky .stat {
  background: var(--soft); border-color: var(--line);
}
.theme-sky .ch-card { border-left-color: #1a44cc; }
.theme-sky .tl-node { border-top-color: var(--line); }
.theme-sky .tl-node.boosted { border-top-color: var(--ember); background: #e9f8f8; }
.theme-sky .tl-who b, .theme-sky .reco-ch b, .theme-sky .reason li b { color: #1a44cc; }
.theme-sky .tl-fx i, .theme-sky .sk-fx i { background: #fff; color: var(--muted); border: 1px solid #e3ebf3; }
.theme-sky .tl-fx i.amp, .theme-sky .reco-syn i { background: #e3f6f7; color: #0d6b70; }
.theme-sky .fx-row.focus { background: #e3f6f7; }
.theme-sky .reco-fx i { background: #e7f6ef; color: #0f7a5e; }
.theme-sky .reco-fx i.zero { background: #f1f4f8; color: var(--muted); }
.theme-sky .sk-kind { background: #e6ecfb; color: #1a44cc; }
.theme-sky .sk-kind.charge { background: #fdeee2; color: #b45a12; }
.theme-sky .sk-kind.active { background: #e3f6f0; color: #0f7a5e; }
.theme-sky .sk-kind.core { background: #fbf2de; color: #8a6114; }
.theme-sky .ch-target.aoe { border-color: var(--ember); color: #0d6b70; }

/* ダイアログ・トースト */
.theme-sky .dialog { background: #fbfdff; color: var(--text); border-color: var(--line); box-shadow: 0 20px 60px rgba(31, 63, 122, .25); }
.theme-sky .dialog::backdrop { background: rgba(28, 37, 54, .35); backdrop-filter: blur(2px); }
.theme-sky .help-toc a { background: #fff; color: var(--text); border-color: var(--line); }
.theme-sky .help-table th { background: #f1f5fa; color: #1a44cc; }
.theme-sky .help-dialog b { color: #1a44cc; }
.theme-sky .toast { background: #1c2536; color: #fff; border-color: #1c2536; }
.theme-sky .footer { color: var(--muted); }
