@charset "UTF-8";

/* ==========================================================================
   手元操作パネル用スタイル (control.css)
   ========================================================================== */

/* 全体コンテナ */
body {
  margin: 0;
  padding: 10px;
  background-color: #0d0d0d;
  color: #e0e0e0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  user-select: none;
}

.jp-window-container {
  max-width: 500px;
  margin: 0 auto;
  background: #141414;
  border: 2px solid #8b0000;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* ヘッダー */
.panel-header {
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  margin-bottom: 15px;
  text-align: center;
}

.text-gold {
  color: #d4af37;
}

.fw-bold {
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* 制御行 (control-row) */
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.control-row .label {
  font-size: 0.9rem;
  color: #ccc;
  min-width: 90px;
}

/* ボタングループ（背景切替・賽子種類共通） */
.bg-selector,
.color-selector {
  display: flex;
  gap: 6px;
}

/* 選択ボタンの基本状態 */
.btn-bg,
.btn-color {
  background: #2b2b2b;
  color: #aaaaaa;
  border: 1px solid #444444;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-bg:hover,
.btn-color:hover {
  background: #3a3a3a;
  color: #ffffff;
}

/* ★ 選択中 (active) の強調表示スタイル */
.btn-bg.active,
.btn-color.active {
  background: #8b0000 !important;
  color: #ffd700 !important;
  border: 1px solid #d4af37 !important;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

/* 個数コントローラー */
.count-controller {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-step {
  background: #8b0000;
  color: #ffffff;
  border: 1px solid #d4af37;
  border-radius: 3px;
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-step:hover {
  background: #a00000;
}

.btn-step:active {
  transform: scale(0.95);
}

.count-num {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffd700;
  min-width: 24px;
  text-align: center;
}

/* 振るボタンエリア */
.action-row {
  margin: 15px 0;
  text-align: center;
}

.btn-roll-jp {
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, #a00000 0%, #600000 100%);
  color: #ffd700;
  border: 1px solid #d4af37;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
}

.btn-roll-jp:hover {
  background: linear-gradient(180deg, #b50000 0%, #750000 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.btn-roll-jp:disabled {
  background: #333333;
  color: #666666;
  border-color: #555555;
  cursor: not-allowed;
  box-shadow: none;
}

/* 出目結果表示エリア */
.results-container {
  background: #0a0a0a;
  border: 1px dashed #444444;
  border-radius: 4px;
  padding: 12px;
  min-height: 50px;
}

/* 各賽子の出目要素 */
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: #161616;
  border-left: 3px solid #d4af37;
  border-radius: 2px;
  font-size: 0.95rem;
  transition: background-color 0.5s ease;
}

.result-item:last-child {
  margin-bottom: 0;
}

.result-value {
  color: #ffd700;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ★ 結果更新時の発光アニメーション */
@keyframes highlightUpdate {
  0% { background-color: rgba(212, 175, 55, 0.4); }
  100% { background-color: #161616; }
}

.result-item.updated {
  animation: highlightUpdate 0.8s ease-out;
}