/*
 * フレネミー将棋 v2 — AI どうしの観戦（/watch-ai。features/watch-ai/watch-screen.js。I47 N7-12 ZUKAN）。
 * 旧 features/spectate/spectate.css の写し（v2 は旧の css を読まない）。盤・駒台・棋譜・結果は ui/style.css のまま。style.css の変数で light / dark 両対応
 */
/* 設定: 先手・後手の狐の行（ui/side-picker.js の .spec-row・.spec-field・.spec-select） */
.watch-ai .spec-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 0 0 8px; }
.watch-ai .spec-side { font-weight: 700; white-space: nowrap; }
.watch-ai .spec-field { min-width: 0; }
.watch-ai .spec-select {
  font: inherit; font-size: 0.9rem; width: 100%; min-width: 0; min-height: 44px; padding: 6px 8px;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.watch-ai .watch-hint, .watch-ai .watch-rules { font-size: 0.8rem; color: var(--text-2); margin: 6px 0 10px; }
.watch-ai #watch-notice { color: var(--text); font-weight: 600; }
.spec-speed button { white-space: nowrap; min-height: 44px; padding: 4px 6px; }

/* 対局: 操作の欄（一時停止・1 手送り・速度） */
.watch-head h1 { font-size: 1.05rem; }
.spectate-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 0 0 8px; }
.spectate-bar[hidden] { display: none; }
.spec-btn { min-height: 44px; font-weight: 700; }
.spec-btn[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.spectate-bar .watch-speed-box { flex: 1 1 260px; }
/* 観戦中は手駒欄の狐の名前を長めに見せる */
.watch-game .hand-name { max-width: 12em; }
/* 終局: マイ棋譜に保存した一言・先後を入れ替えて */
.spec-saved { margin: 2px 0 6px; font-size: 0.85rem; color: var(--text-2); }
.spec-nowrap { white-space: nowrap; }
.spec-link { min-height: 32px; padding: 4px 6px; font-size: 0.85rem; color: var(--accent); font-weight: 700; text-decoration: none; }
a.spec-link { display: inline-block; }
/* 戻るリンク（既定のリンク色でなく --accent） */
.watch-head a, .watch-ai .menu-links a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.watch-head a:hover, .watch-head a:focus-visible, .watch-ai .menu-links a:hover, .watch-ai .menu-links a:focus-visible { text-decoration: underline; }
/* 先手・後手の狐（共通の狐のカード ui/fox-card.js。R1 #21） */
.watch-ai .watch-side { margin: 0 0 12px; }
.watch-ai .watch-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.watch-ai .watch-pick > summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0; }
.watch-ai .watch-pick > summary::-webkit-details-marker { display: none; }
.watch-ai .watch-pick > summary .cs-card { flex: 1 1 auto; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.watch-ai .watch-pick-more { flex: none; color: var(--accent); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.watch-ai .watch-pick[open] > summary { margin-bottom: 8px; }
/* 帯の無い画面（AI どうしの観戦の設定）は上の余白を帯の分だけ空けない（R1 #20） */
.v2-menu.watch-ai { padding-top: 12px; }
