/* =====================================================================
   style.css — 数当てゲーム（ヒット＆ブロー）ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる。
   ===================================================================== */

/* 設定のモード切替（桁数ラジオ・重複チェック） */
.sg-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* 操作ボタン群 */
.sg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--sg-space-2, 8px);
}

/* 予想入力欄は大きめ・等幅で見やすく */
.sg-guess-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35em;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  max-width: 12em;
}

/* エラー表示 */
.sg-error {
  margin-top: var(--sg-space-2, 8px);
  color: var(--sg-danger, #c0392b);
  font-size: 0.9rem;
}

/* 履歴 */
.sg-history {
  display: flex;
  flex-direction: column;
  margin-top: var(--sg-space-2, 8px);
  border-top: 1px solid var(--sg-border, #e5e7eb);
}
.sg-history-row {
  display: flex;
  align-items: baseline;
  gap: var(--sg-space-3, 12px);
  padding: 8px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-history-row__no {
  flex: 0 0 2.2em;
  color: var(--sg-muted, #777);
  text-align: right;
  font-size: 0.9rem;
}
.sg-history-row__val {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.25em;
  font-weight: 600;
  font-size: 1.15rem;
}
.sg-history-row__res {
  flex: 1 1 auto;
  text-align: right;
  white-space: nowrap;
}
.sg-hit {
  color: var(--sg-accent, #2f9e44);
}
.sg-blow {
  color: var(--sg-primary, #3b5bdb);
}

/* ルール一覧 */
.sg-rule-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.9;
}
.sg-rule-list code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}
