#session-profit.positive,
#session-profit.positive.profit-value {
  color: #00ff99 !important;
}

#session-profit.negative,
#session-profit.negative.profit-value {
  color: #ff5555 !important;
}

#session-profit.neutral,
#session-profit.neutral.profit-value {
  color: #ccc !important;
}

.history-entry {
  padding: 6px 10px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-time {
  font-size: 0.9em;
  color: #999;
}
.history-result {
  font-weight: bold;
}

body.original-mode .highlight {
  color: #00e0ff;
  font-weight: bold;
}

body:not(.original-mode) {
  background: #f8f8f8;
  color: #222;
}

#binary-panel-app.original-mode input,
#binary-panel-app.original-mode select,
#binary-panel-app.original-mode button {
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
}

body:not(.original-mode) input,
body:not(.original-mode) select,
body:not(.original-mode) button {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #ccc !important;
}

#binary-panel-app.original-mode {
  background-color: #111;
  color: #0ff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#binary-panel-app:not(.original-mode) {
  background-color: #fff;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#binary-panel-app {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
/* フォーム全体 */
#binary-panel-app form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  align-items: center;
}

/* ラベルとinputの整列 */
.form-group label {
  grid-column: auto !important;
  margin: 0 0 4px 4px !important;
}

/* フォーム内input要素 */
#binary-panel-app form input {
  width: 100%;
  padding: 8px;
  font-size: 1em;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #fff;
}

/* ボタン類はグリッド最下段・右寄せ */
#binary-panel-app form button {
  grid-column: span 1;
  justify-self: end;
  padding: 10px 20px;
  background-color: #444;
  border: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}
#binary-panel-app form button:hover {
  background-color: #666;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0; 
}

.form-group label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background-color: transparent;
  margin: 10px 0 4px 4px;
}

body.original-mode .form-group label {
  color: #fff;
}

body:not(.original-mode) .form-group label {
  color: #000;
}

.form-group input {
  text-align: right;
  padding: 14px 8px 8px 8px; /* ← 上だけ余裕をもたせる */
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background-color: rgba(255,255,255,0.08);
  color: #fff;
}
/* 情報パネル */
#panel-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin: 10px 0;
}

/* 推奨ベット額・残高・損益を囲む枠全体に光を当てるためのクラス */
#panel-stats.highlight-glow {
  box-shadow: 0 0 8px 4px rgba(255, 80, 80, 0.3); /* ← 軽量化 */
  border: 2px solid #ffaaaa;
  transition: box-shadow 0.3s ease;
}

#session-profit {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
  text-align: center;
  margin-top: 10px;
}
/* スコア全体ブロック */
#score-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  grid-template-rows: 110px 110px 110px;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 12px;
  margin-top: 0px;
  justify-items: center;
  align-items: center;
}

/* 各スコア項目 */
.score-item {
  background-color: rgba(0,0,0,0.15);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  color: inherit;
}

#result-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}

#result-buttons button {
  padding: 16px 32px;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff !important;
}


#history-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  padding: 10px;
  background-color: rgba(255,255,255,0.03);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.history-entry {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  color: inherit;
}

.history-entry button {
  background: none;
  border: none;
  color: #ff6666;
  font-weight: bold;
  cursor: pointer;
}
#profit-chart {
  background-color: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 16px;
  margin-top: 30px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* 最上位ラッパー調整：中央・スマホ対応 */
#binary-panel-app {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

/* モバイル時の調整（640px以下） */
@media (max-width: 640px) {
  #binary-panel-app {
    padding: 16px;
  }

  #result-buttons {
    display: flex; /* ← 追加 */
    justify-content: center; /* ← 追加 */
    flex-direction: column;
    gap: 16px;
  }

  #result-buttons button {
    width: 100%;
    font-size: 1rem;
  }

  .form-group input,
  .form-group button {
    font-size: 1rem;
  }

  #panel-stats h3,
  #session-profit {
    font-size: 1rem;
  }

  .history-entry {
    font-size: 0.9rem;
  }

  #score-panel {
    grid-template-columns: 1fr 1.4fr 1fr !important;
    grid-template-rows: 110px 110px 110px !important;
    gap: 12px !important;
  }

  .score-item,
  .score-item.final {
    width: 100% !important;
    height: auto !important;
    font-size: 1.2rem !important;
  }

  .score-item.final {
    height: 130px !important;
  }

  .score-label {
    font-size: 0.8rem !important;
  }

  .score-value {
    font-size: 1.6rem !important;
  }

}

#binary-panel-app form {
  background-color: rgba(0, 0, 255, 0.02); /* form全体の構造も確認 */
}
/* ボタン配置エリア（上部中央揃え＋折り返し対応） */
#button-group-top {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 下部ボタン（全データリセット）は中央配置 */
#button-group-bottom {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* 共通ボタンスタイルを個別に定義 */
#save-settings,
#original-mode-toggle,
#reset_history {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  background-color: transparent;
  cursor: pointer;
  transition: box-shadow 0.3s, border-color 0.3s, color 0.3s;
  min-width: 160px;
  text-align: center;
  box-sizing: border-box;
}

/* 通常モード時の影 */
body:not(.original-mode) #save-settings,
body:not(.original-mode) #original-mode-toggle,
body:not(.original-mode) #reset_history {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* PENTEOSモード時の影 */
body.original-mode #save-settings,
body.original-mode #original-mode-toggle,
body.original-mode #reset_history {
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

/* 通常モード（暗めの水色） */
body:not(.original-mode) #save-settings {
  border: 2px solid #00ccff !important;
  color: #0090cc !important;
}

/* PENTEOSモード（明るい水色） */
body.original-mode #save-settings {
  border: 2px solid #00ccff !important;
  color: #00ccff !important;
}

/* モード切替ボタン：通常は銀、PENTEOSは金 */
#original-mode-toggle {
  border: 2px solid #000 !important;
  color: #000 !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

body.original-mode #original-mode-toggle {
  border: 2px solid gold !important;
  color: gold !important;
  box-shadow: 0 0 18px 6px rgba(255, 215, 0, 0.8) !important;
  background-color: rgba(255, 215, 0, 0.1) !important;
}

/* リセットボタン（赤ふち＋赤文字） */
#reset_history {
  border: 2px solid #ff4444 !important;
  color: #ff4444 !important;
}
/* 推奨ベット額の強調表示 */
#recommended-bet {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* #panel-stats 構成：ベット額（上）、残高＋損益（下）を中央寄せ */
#panel-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

#recommended-label,
#balance-label {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

#session-profit {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* final一括管理 */
.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  transition: box-shadow 0.3s ease; /* ← all除去 */
  min-width: 80px;
  background-color: #111;
  width: 160px;
  height: 80px;
  font-size: 1.6rem;
}

.score-label {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 4px;
  text-transform: capitalize;
}

/* 通常モード時、FINAL以外のスコア値は白文字 */
body:not(.original-mode) .score-item:not(.final) .score-value {
  color: #fff !important;
}

#win-button {
  background-color: #28a745;
  color: #fff;
  box-shadow: 0 4px 0 #1c7c31;
  transform: translateY(0);
  transition: all 0.2s ease;
}

#lose-button {
  background-color: #dc3545;
  color: #fff;
  box-shadow: 0 4px 0 #a71d2a;
  transform: translateY(0);
  transition: all 0.2s ease;
}

#win-button:hover,
#lose-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.3);
}

#win-button,
#lose-button {
  background-color: #28a745 !important;
  color: #fff !important;
  font-size: 1rem !important;
  padding: 12px 36px !important;
  border-radius: 12px;
  box-shadow: 0 4px 0 #1c7c31;
  transform: translateY(0);
  transition: all 0.2s ease;
  min-width: 180px;
  min-height: 60px;
}

#lose-button {
  background-color: #dc3545 !important;
  box-shadow: 0 4px 0 #a71d2a;
}

.form-group.button-duo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.form-group.button-duo button {
  flex: 1;
  max-width: 240px;
  height: 48px;
}

#button-group-top {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

#button-group-top button {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  min-width: 180px;
  box-sizing: border-box;
}

/* ボタン類 */
#result-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 40px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.score-item.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 130px;
  padding: 16px;
  background-color: #111;
  border-radius: 8px;
  overflow: hidden;
}

.score-item.final .score-label {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 4px;
  line-height: 1.2;
}

.score-item.final .score-value {
  font-size: 2.6rem;
  color: #ffd700;
  line-height: 1;
  margin-top: auto;
  margin-bottom: auto;
}

/* ベット額強調の高速化 */
#recommended-bet.threshold-exceeded {
  color: #ff3333;
  text-shadow:
    0 0 4px rgba(255, 80, 80, 0.6),
    0 0 8px rgba(255, 160, 100, 0.4),
    0 0 12px rgba(255, 220, 150, 0.3);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.score-item.final.threshold-exceeded .score-label,
.score-item.final.threshold-exceeded .score-value {
  color: #ff3333 !important;
}

.score-item.threshold-exceeded {
  border-color: #00cc66;
  box-shadow: 0 0 12px rgba(0, 204, 102, 0.5);
}

.score-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 330px;
}

.score-column.left {
  grid-column: 1;
  grid-row: 1 / 4; /* ← 3マスにまたがって占有（1〜3） */
}

.score-column.right {
  grid-column: 3;
  grid-row: 1 / 4;
}

/* FINALの親ラッパー */
.score-final-wrapper {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 110px;
}

#binary-panel-app.original-mode .form-group label {
  color: #fff !important;
}

#binary-panel-app:not(.original-mode) .form-group label {
  color: #000 !important;
}

body .delete-entry,
body button.delete-entry {
  background-color: #ff4d4d !important;
  color: #000 !important;
  border: 1px solid #000 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-align: center !important;
  appearance: none !important;
  box-shadow: none !important;
}

.g-recaptcha {
  transform: scale(0.95);
  transform-origin: top left;
  margin-bottom: 20px;
  display: block;
  max-width: 100%;
}
.wpmem_login,
.wpmem_register {
  max-width: 420px;
  margin: 0 auto;
}
