/* =========================================================================
   G-LAND ★ v3.0.40.648 — theme-dark.css（スコア画面のダークモード）
   ---------------------------------------------------------------------------
   目的（社長指示 2026-09-25）: ラウンド中の電池の節約。
     有機EL（iPhone X 以降の多く・Android の多く）は黒い所は光らないので、
     明るい屋外でも電池が減りにくい（Purdue大学の研究: 明るさ最大付近で約4割の節約）。
   範囲: スコア画面（#view-score.gl-classic）・入力パネル（#gl-panel-root）・
         スコア画面から開くモーダル（#modal-root）だけ。ホームやマイページは今のまま。
   切り替え: <html data-score-dark="1"> が付いた時だけ効く（js/ui/score/_score-dark.js が付け外し）。
     スコア画面を出る時に外すので、他の画面には一切影響しない。
   方式: theme-girly.css と同じく「既存ファイルは触らず、上から塗り直す」。
   色の方針:
     地 #0f1411（ほぼ黒・わずかに緑）／ 面 #1a211c ／ 面2 #232c26 ／ 線 #2f3a33
     文字 #e8efe9 ／ 弱い文字 #9fb0a4 ／ 緑（強調） #6fdca6 ／ 緑の面 #1f5a3d
     金（パー枠・現在ホール） #d9b44a
   ========================================================================= */

/* ---- スコアの数字の色（_score-format.js の var(--gl-sc-*) が読む） ---- */
html[data-score-dark="1"] {
  --gl-sc-under: #ff7a7a;   /* バーディ以下（赤） */
  --gl-sc-even:  #eef3ef;   /* パー（白） */
  --gl-sc-over:  #b3d6ff;   /* ボギー以上（青・暗い地で読める明るさ） */
}
html[data-score-dark="1"] body { background: #0f1411; }

/* =========================== スコア画面 全体 =========================== */
html[data-score-dark="1"] #view-score.gl-classic { background: #0f1411 !important; color: #e8efe9; }
html[data-score-dark="1"] #view-score .gl-cls-back,
html[data-score-dark="1"] #view-score .gl-cls-logo { color: #6fdca6 !important; }
html[data-score-dark="1"] #view-score .gl-cls-logo * { color: inherit; }

/* 情報帯・モード切替 */
html[data-score-dark="1"] #view-score .gl-cls-info-bar,
html[data-score-dark="1"] #view-score .gl-cls-settings,
html[data-score-dark="1"] #view-score .gl-cls-topbar__toggle,
html[data-score-dark="1"] #view-score .gl-cls-settings--topbar .gl-cls-settings-body {
  background: #1a211c !important; border-color: #2f3a33 !important;
}
html[data-score-dark="1"] #view-score .gl-cls-info-item,
html[data-score-dark="1"] #view-score .gl-cls-info-item *:not(.gl-cls-info-item__value):not(.gl-cls-info-item__count),
html[data-score-dark="1"] #view-score .gl-cls-settings-toggle,
html[data-score-dark="1"] #view-score .gl-cls-settings-arrow,
html[data-score-dark="1"] #view-score .gl-cls-settings-label { color: #c9d6cc !important; }
html[data-score-dark="1"] #view-score .gl-cls-info-item__value,
html[data-score-dark="1"] #view-score .gl-cls-settings-current { color: #6fdca6 !important; }
html[data-score-dark="1"] #view-score .gl-cls-info-item__value--empty,
html[data-score-dark="1"] #view-score .gl-cls-info-item__count { color: #9fb0a4 !important; }
html[data-score-dark="1"] #view-score .gl-cls-settings-body { border-top-color: #2f3a33 !important; }
html[data-score-dark="1"] #view-score .gl-cls-settings-section[style] { border-top-color: #2f3a33 !important; }
html[data-score-dark="1"] #view-score .gl-cls-settings-section div[style*="color"] { color: #9fb0a4 !important; }
html[data-score-dark="1"] #view-score .gl-cls-sync { background: #232c26 !important; border-color: #2f3a33 !important; color: #e8efe9 !important; }

/* モードのボタン群 */
html[data-score-dark="1"] #view-score .gl-cls-inputmodes,
html[data-score-dark="1"] #view-score .gl-cls-modes { background: #232c26 !important; }
html[data-score-dark="1"] #view-score .gl-cls-inputmode-btn,
html[data-score-dark="1"] #view-score .gl-cls-mode-btn { color: #c9d6cc !important; background: transparent; }
html[data-score-dark="1"] #view-score .gl-cls-inputmode-btn.active,
html[data-score-dark="1"] #view-score .gl-cls-mode-btn.active { background: #1f5a3d !important; color: #fff !important; }
html[data-score-dark="1"] #view-score [data-open-leaderboard] { background: #1f5a3d !important; color: #fff !important; }

/* =========================== スコアカードの表 =========================== */
html[data-score-dark="1"] #view-score .gl-cls-table-wrap { background: #151b17 !important; border-color: #2f3a33 !important; box-shadow: none !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell { border-right-color: #2a342d !important; border-bottom-color: #2a342d !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--head { background: #1f5a3d !important; color: #fff !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--par { background: #1d2520 !important; color: #c9d6cc !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--avg { background: #171d19 !important; color: #d3ddd6 !important; font-weight: 700 !important; font-size: 12.5px !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--avg-sum { color: #e6d18c !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--player { background: #1a211c !important; color: #e8efe9 !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--player * { color: inherit; }
html[data-score-dark="1"] #view-score .gl-cls-player-badge--self { background: #1f5a3d !important; color: #fff !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--score { background: #151b17 !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--score:active { background: #1f3a2b !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--score--readonly,
html[data-score-dark="1"] #view-score .gl-cls-cell--putt--readonly { background: #121714 !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--score--empty { color: #66756b !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--putt { background: #131815 !important; color: #dbe5de !important; font-weight: 700 !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--putt-label { color: #aebcb2 !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--sum { background: #232a1f !important; color: #eef3ef !important; border-left-color: #5c5330 !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--sum-putt { background: #20271d !important; color: #e8efe9 !important; font-weight: 700 !important; border-left-color: #5c5330 !important; }
/* 今のホール（黄色 → 暗い金。目立つが眩しくない） */
html[data-score-dark="1"] #view-score .gl-cls-cell--head.gl-cls-cell--current,
html[data-score-dark="1"] #view-score .gl-cls-cell--par.gl-cls-cell--current { background: #d9b44a !important; color: #10160f !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--score.gl-cls-cell--current { background: #2a2714 !important; box-shadow: inset 0 0 0 2px #d9b44a !important; }
html[data-score-dark="1"] #view-score .gl-cls-cell--putt.gl-cls-cell--current,
html[data-score-dark="1"] #view-score .gl-cls-cell--avg.gl-cls-cell--current { background: #242112 !important; }
/* 「＋追加」ボタン（JSで直接色指定） */
html[data-score-dark="1"] #view-score [data-add-proxy],
html[data-score-dark="1"] #view-score .gl-cls-col-fixed-left [style*="dashed"] { background: #16241b !important; border-color: #2f6b4a !important; color: #7fd3a6 !important; }

/* スタンプ帯・告知カード */
html[data-score-dark="1"] #view-score .gl-cls-stampbar { background: #161c18 !important; border-color: #2a342d !important; }
html[data-score-dark="1"] #view-score .gl-cls-stampbar,
html[data-score-dark="1"] #view-score .gl-cls-stampbar * { color: #c9d6cc; }
html[data-score-dark="1"] #view-score .gl-cls-stampbar [style*="background:#fff"],
html[data-score-dark="1"] #view-score .gl-cls-stampbar__item { background: #1f2621 !important; border-color: #2f3a33 !important; }
html[data-score-dark="1"] #view-score .gl-cls-stampbar__empty { color: #7f8f84 !important; }
html[data-score-dark="1"] #view-score [data-ann-card-area] [style*="background"] { background: #171e19 !important; border-color: #33403a !important; }
html[data-score-dark="1"] #view-score [data-ann-card-area] * { color: #c9d6cc !important; }

/* 下のボタン */
html[data-score-dark="1"] #view-score .gl-cls-btn-watch773 { background: #1a2a20 !important; color: #8ff0bf !important; border-color: #3f9d6d !important; } /* ★ v773 */
html[data-score-dark="1"] #view-score .gl-cls-btn-refresh { background: #1a2a20 !important; color: #8ff0bf !important; border-color: #3f9d6d !important; }
html[data-score-dark="1"] #view-score .gl-cls-btn-finish,
html[data-score-dark="1"] #view-score .gl-cls-focus-btn { background: #1f5a3d !important; color: #fff !important; box-shadow: none !important; }

/* =========================== 入力パネル =========================== */
html[data-score-dark="1"] #gl-panel-overlay { background: rgba(0, 0, 0, 0.6) !important; }
html[data-score-dark="1"] #gl-panel-root { background: #151b17 !important; color: #e8efe9; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6) !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-actions { background: #151b17 !important; border-top-color: #2a342d !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-header { border-bottom-color: #2a342d !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-hole { color: #6fdca6 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-progress { background: #232c26 !important; color: #c9d6cc !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-close { background: #232c26 !important; color: #e8efe9 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-player,
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-section-label,
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-complete__msg { color: #dfe8e1 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-datameter { background: #1a211c !important; border-color: #2f3a33 !important; color: #9fb0a4 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-datameter b { color: #6fdca6 !important; }
/* 応援欄のボタン（JSで直接色指定） */
html[data-score-dark="1"] #gl-panel-root [data-panel-rank-btn] { background: #238a57 !important; color: #fff !important; }
html[data-score-dark="1"] #gl-panel-root [data-panel-timeline-btn] { background: #eaf7ef !important; color: #145236 !important; border-color: #6fdca6 !important; }
html[data-score-dark="1"] #gl-panel-root [data-panel-support-counts] { color: #7fd3a6 !important; }
html[data-score-dark="1"] #gl-panel-root [data-panel-support] [style*="background:#f"],
html[data-score-dark="1"] #gl-panel-root [data-panel-support] [style*="background:#e"] { background: #1f2621 !important; border-color: #2f3a33 !important; color: #c9d6cc !important; }

/* ミニスコア表 */
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score { background: #171e19 !important; border-color: #2a342d !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__table th { background: #1f5a3d !important; color: #fff !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__table td { border-top-color: #2a342d !important; color: #e8efe9 !important; background: transparent; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__row--current td { background: #1c3326 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__row--current td:first-child { box-shadow: inset 4px 0 0 #6fdca6 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__hole { color: #6fdca6 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__diff { color: #9fb0a4 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__empty { color: #5d6a60 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__avatar { background: #232c26 !important; border-color: #33403a !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__badge { background: #2f3a33 !important; color: #c9d6cc !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-score__badge--self { background: #1f5a3d !important; color: #fff !important; }

/* 打数ボタン（横スワイプ）: 種類の色は残し、暗い地に合わせて深い色に */
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn { background: #1a211c !important; border-color: #33403a !important; color: #dfe8e1 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn * { color: inherit !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--alba   { background: #2c2512 !important; border-color: #b8952e !important; color: #f0d27a !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--eagle  { background: #331818 !important; border-color: #c85a5a !important; color: #ff9c9c !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--birdie { background: #321a26 !important; border-color: #c96a93 !important; color: #ff9fca !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--par,
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--par-label { background: #29240f !important; border-color: #d9b44a !important; color: #f3dc8c !important; box-shadow: 0 0 0 1px rgba(217,180,74,.35) !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--bogey  { background: #15233a !important; border-color: #5c8fd6 !important; color: #a9ccff !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--double { background: #1d1638 !important; border-color: #7a63c9 !important; color: #b9a8ff !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--triple { background: #181230 !important; border-color: #5a47a0 !important; color: #a292e6 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--selected,
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn.gl-cls-swipe-btn--selected { background: #2e9b5b !important; border-color: #6fdca6 !important; color: #fff !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-row::-webkit-scrollbar-thumb { background: #2f3a33; }

/* シンプル入力・カウンター・パット */
html[data-score-dark="1"] #gl-panel-root .gl-cls-simple__btn--birdie { background: #4a2436 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-simple__btn--par    { background: #3d3714 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-simple__btn--bogey  { background: #243056 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-simple__btn .num { color: #f1f5f2 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-simple__btn .lbl { color: #b8c6bc !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-counter__display { background: #2a2714 !important; border-color: #d9b44a !important; color: #ff8a8a !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-counter__display .lbl { color: #b8c6bc !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-putt-label { color: #6fd39c !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-putt-btn { background: #1f2621 !important; color: #e8efe9 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-putt-btn--active,
html[data-score-dark="1"] #gl-panel-root .gl-cls-putt-btn--plus { background: #2e9b5b !important; color: #fff !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-key { background: #1f2621 !important; color: #e8efe9 !important; border-color: #33403a !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-key.selected { background: #2e9b5b !important; color: #fff !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-key--putt.selected { background: #b8861c !important; color: #fff !important; }

/* 下の「キャンセル／保存」 */
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-btn-cancel { background: #2a332d !important; color: #e8efe9 !important; border: 1px solid #3d4a41 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-btn-save { background: #22b36a !important; color: #fff !important; box-shadow: 0 0 0 1px #5fe0a0 inset, 0 4px 14px rgba(34,179,106,.35) !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-btn-save:disabled { background: #1c2a22 !important; color: #8fb8a0 !important; box-shadow: 0 0 0 1px #2f5a43 inset !important; }

/* =========================== スコア画面から開く小窓 =========================== */
html[data-score-dark="1"] #modal-root .gl-modal__body { background: #171e19 !important; color: #e8efe9 !important; box-shadow: 0 12px 40px rgba(0,0,0,.7) !important; }
html[data-score-dark="1"] #modal-root .gl-modal__title,
html[data-score-dark="1"] #modal-root .gl-cls-modal__title { color: #6fdca6 !important; }
html[data-score-dark="1"] #modal-root .gl-modal__close { color: #c9d6cc !important; }
html[data-score-dark="1"] #modal-root .gl-modal__body p,
html[data-score-dark="1"] #modal-root .gl-modal__body .gl-u-02 { color: #b8c6bc !important; }
html[data-score-dark="1"] #modal-root .gl-cls-modal__btn-cancel { background: #232c26 !important; color: #c9d6cc !important; }
html[data-score-dark="1"] #modal-root .gl-cls-modal__btn-ok,
html[data-score-dark="1"] #modal-root .gl-modal__btn--primary { background: #2e9b5b !important; color: #fff !important; }
html[data-score-dark="1"] #modal-root input { background: #1f2621 !important; color: #e8efe9 !important; border-color: #33403a !important; }
html[data-score-dark="1"] #modal-root .gl-wheel-item { color: #7f8f84; }
html[data-score-dark="1"] #modal-root .gl-wheel-item--active { color: #6fdca6 !important; }
html[data-score-dark="1"] #modal-root .gl-wheel-label { color: #9fb0a4 !important; }
/* ⏰ 時計の設定 */
html[data-score-dark="1"] #modal-root .gl-time-now { background: #1f2621 !important; color: #b8c6bc !important; }
html[data-score-dark="1"] #modal-root .gl-time-now b { color: #6fdca6 !important; }
html[data-score-dark="1"] #modal-root .gl-time-row { border-bottom-color: #2a342d !important; }
html[data-score-dark="1"] #modal-root .gl-time-row__label { color: #e8efe9 !important; }
html[data-score-dark="1"] #modal-root .gl-time-row__sub { color: #8f9e93 !important; }
html[data-score-dark="1"] #modal-root .gl-time-row__val { background: #1a211c !important; color: #6fdca6 !important; border-color: #2f7a55 !important; }
html[data-score-dark="1"] #modal-root .gl-time-row__val--empty { color: #8f9e93 !important; border-color: #4a574e !important; }
html[data-score-dark="1"] #modal-root .gl-time-row__clear { background: #2a1717 !important; border-color: #6b2f2f !important; color: #ff9c9c !important; }
html[data-score-dark="1"] #modal-root .gl-time-day button { background: #1a211c !important; border-color: #33403a !important; color: #c9d6cc !important; }
html[data-score-dark="1"] #modal-root .gl-time-day button.on { background: #2e9b5b !important; border-color: #2e9b5b !important; color: #fff !important; }

/* =========================== 🌙 切り替えボタン（モード切替の中） =========================== */
.gl-cls-darkmodes { display: flex; gap: 4px; }
.gl-cls-darkmodes .gl-cls-mode-btn { flex: 1; }

/* ★ v3.0.40.649: 実機で見つかった所の手直し */
/* 右上の公開バッジ（JSで白っぽい背景を直接入れているので上から塗る） */
html[data-score-dark="1"] #view-score [data-scope-badge] { background: #1f2621 !important; color: #8ff0bf !important; box-shadow: inset 0 0 0 1px #2f7a55 !important; }
html[data-score-dark="1"] #view-score [data-scope-badge][data-scope="private"] { color: #c9d6cc !important; box-shadow: inset 0 0 0 1px #4a574e !important; }
html[data-score-dark="1"] #view-score [data-scope-badge][data-scope="link"] { color: #ffbe7a !important; box-shadow: inset 0 0 0 1px #8a5a2a !important; }
/* 「返事する」も縁取りで背景から浮かせる */
html[data-score-dark="1"] #gl-panel-root [data-panel-reply-btn] { background: #0b8f45 !important; color: #fff !important; box-shadow: 0 0 0 1px #5fe0a0 inset !important; }
/* 📶と「○人目」を少し明るく */
html[data-score-dark="1"] #gl-panel-root .gl-cls-datameter { color: #c3d0c6 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-progress { color: #e8efe9 !important; }
/* スタンプ帯の「まだ届いていません」 */
html[data-score-dark="1"] #view-score .gl-cls-stampbar__empty,
html[data-score-dark="1"] #view-score .gl-cls-stampbar [style*="color:#9ca3af"],
html[data-score-dark="1"] #view-score .gl-cls-stampbar [style*="color:#6b7280"] { color: #b3c1b7 !important; }

/* ★ v3.0.40.650: 上のバーの 🌙/☀️ 切り替えボタン（明るい時もダークの時も同じ大きさ・押しやすさ） */
.gl-cls-settings-toggle .gl-cls-darktoggle { padding: 6px 9px; font-size: 15px; line-height: 1; min-width: 36px; min-height: 32px; background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px #c9b98a, 0 1px 2px rgba(0,0,0,.08); }
html[data-score-dark="1"] #view-score .gl-cls-darktoggle { background: #2a332d !important; box-shadow: inset 0 0 0 1px #3d4a41 !important; }

/* ★ v3.0.40.661: 下に固定した入れ物（打数・パット・保存） */
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-dock { background: #151b17 !important; border-top-color: #2a342d !important; }
/* ★ v3.0.40.661: 見出し行の3つのボタンは、ダークでも同じ見た目（v649 の応援欄用の色指定より強く） */
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-tool[data-panel-rank-btn],
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-tool[data-panel-timeline-btn] { background: rgba(255,255,255,.08) !important; color: #fff !important; border-color: rgba(255,255,255,.75) !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-tool[data-panel-reply-btn] { background: #06C755 !important; color: #fff !important; border-color: #06C755 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-toolbar { background: #1f5a3d !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-tool[data-panel-share791] { background: #d9b440 !important; color: #10261b !important; border-color: #d9b440 !important; } /* ★ v791 */

/* ★ v3.0.40.754【10/5 社長の実機：保存前の確認の黄色い箱が、ダークで読めない】
   原因：モーダルの中の「うすい色の箱」は文字の色を決めていないものがあり、ダークの白っぽい文字（#e8efe9）が
   うすい黄色・白の上に乗って見えなくなっていた。
   ① 保存前の確認の箱：ダークの色にそろえる（こげ茶の地に明るい文字）。
   ② ほかにも同じ形の箱があっても読めるように：モーダルの中で「うすい地（#f… #e…）で文字の色を決めていない箱」は、
      地はそのまま、文字を濃い色にする（ボタン・入力欄・自分で色を決めているものは さわらない）。 */
html[data-score-dark="1"] #modal-root .gl-finish-note754 { background: #2a2416 !important; color: #f1e6c8 !important; border-left-color: #d9b44a !important; }
html[data-score-dark="1"] #modal-root .gl-finish-note754 div { color: #f1e6c8 !important; }
html[data-score-dark="1"] #modal-root .gl-finish-note754 div[style*="color"] { color: #c9bd9c !important; }
html[data-score-dark="1"] #modal-root .gl-modal__body [style*="background:#f"]:not([style*="color"]):not(button):not(input):not(.gl-finish-note754),
html[data-score-dark="1"] #modal-root .gl-modal__body [style*="background:#e"]:not([style*="color"]):not(button):not(input) { color: #2b2b2b !important; }
html[data-score-dark="1"] #modal-root .gl-modal__body [style*="background:#f"]:not([style*="color"]):not(button):not(input):not(.gl-finish-note754) p:not([style*="color"]),
html[data-score-dark="1"] #modal-root .gl-modal__body [style*="background:#e"]:not([style*="color"]):not(button):not(input) p:not([style*="color"]) { color: #2b2b2b !important; }
/* ★ v3.0.40.754: 同じ画面の「全員のスコアが揃いました」（うすい緑の帯）・「未入力があります」・ボタン2つも、ダークの色にそろえる */
html[data-score-dark="1"] #modal-root .gl-modal__body p.gl-u-92 { background: #17402c !important; color: #bff0d4 !important; }
html[data-score-dark="1"] #modal-root .gl-modal__body p.gl-u-93 { background: #3a2f12 !important; color: #f3d98a !important; }
html[data-score-dark="1"] #modal-root .gl-modal__body .gl-u-95 { background: #1a211c !important; color: #a8f0c8 !important; border-color: #6b5f2e !important; }
html[data-score-dark="1"] #modal-root .gl-modal__body .gl-u-96 { background: #232c26 !important; color: #c9d6cc !important; border-color: #3a463e !important; }
html[data-score-dark="1"] #modal-root .gl-modal__body .gl-u-88 { color: #e8efe9 !important; font-size: 11px !important; }
html[data-score-dark="1"] #modal-root .gl-finish-note754 div[style*="color"] { color: #f1e6c8 !important; }

/* ★ v3.0.40.763【10/7 社長の実機（屋外のラウンド中）：見守りの小窓の「応援者 #XXXX」が全く読めない。ダークは全体に見えない文字が多い】
   原因：応援まわりの小窓は、文字の色をJSで直接書いている（#333・#1a5f3f・#4a5a4a など、明るい画面用の濃い色）。
     ダークの地（#171e19）の上では、文字と地の明るさの差（コントラスト比）が 1.3〜2.3 しかなかった（読める目安は4.5、屋外では7）。
     緑のボタン（#06C755 に白文字）も 2.3 で、日なたでは字が飛んでいた。
   直し方：今までと同じ「上から塗り直す」方式。ダークの時だけ効く。明るい画面は1文字も変わらない。
   目安：屋外で読めるよう、文字はコントラスト比 7 以上（大きなボタンの文字も 5 以上）。 */

/* ---- 応援まわりの小窓（見守り・いいね等の送り主／観戦中の皆さん／その人の応援／応援の記録／返事を選ぶ／個別に返信） ---- */
html[data-score-dark="1"] #modal-root [data-modal-type="stampbar-senders"] .gl-modal__body [style*="color:#333"],
html[data-score-dark="1"] #modal-root [data-modal-type="watcher-list"] .gl-modal__body [data-wrow-idx] > div > div:first-child,
html[data-score-dark="1"] #modal-root [data-modal-type="stamp-timeline"] .gl-modal__body [style*="font-weight:700;font-size:.86em"] { color: #eef3ef !important; }
html[data-score-dark="1"] #modal-root [data-modal-type="watcher-list"] .gl-modal__body [style*="color:#9aa5a0"] { color: #d6e2d9 !important; }
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="color:#1a5f3f"] { color: #8ff0bf !important; }
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="color:#4a5a4a"],
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="color:#555"],
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="color:#888"] { color: #c9d6cc !important; }
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="color:#8a978a"],
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="color:#9ca3af"],
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="color:#6b7280"],
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="color:#b7c4b7"] { color: #b3c1b7 !important; }
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="border-bottom:1px solid #f0ede2"],
html[data-score-dark="1"] #modal-root [data-modal-type] .gl-modal__body [style*="border-bottom:1px solid #eef2ee"] { border-bottom-color: #2f3a33 !important; }
/* 「💬 返信」の小さなボタン（うすい緑の地に緑の字 → 濃い緑の地に明るい緑の字） */
html[data-score-dark="1"] #modal-root [data-reply-one],
html[data-score-dark="1"] #modal-root [data-wrow-reply],
html[data-score-dark="1"] #modal-root [data-tl-reply] { background: #12331f !important; color: #8ff0bf !important; border-color: #2e9b5b !important; }
/* 緑の大きなボタン（一括で返事する・〇〇さんに返信・送信する） */
html[data-score-dark="1"] #modal-root .gl-modal__body button[style*="background:#06C755"] { background: #12703f !important; color: #fff !important; }
/* 返事の選択肢（白っぽい箱 → ダークの箱） */
html[data-score-dark="1"] #modal-root [data-reply-choice],
html[data-score-dark="1"] #modal-root [data-reply1-choice] { background: #1f2621 !important; color: #eef3ef !important; border-color: #2e9b5b !important; }
html[data-score-dark="1"] #modal-root [data-reply-choice] div,
html[data-score-dark="1"] #modal-root [data-reply1-choice] div { color: #b3c1b7 !important; }
html[data-score-dark="1"] #modal-root textarea { background: #1f2621 !important; color: #e8efe9 !important; border-color: #33403a !important; }
html[data-score-dark="1"] #modal-root [style*="border-top:1px solid #e5e7eb"] { border-top-color: #2f3a33 !important; }

/* ---- 小窓に共通 ---- */
html[data-score-dark="1"] #modal-root .gl-modal__close { background: #2a332d !important; color: #eef3ef !important; }
html[data-score-dark="1"] #modal-root .gl-cls-modal__btn-ok,
html[data-score-dark="1"] #modal-root .gl-modal__btn--primary { background: #12703f !important; color: #fff !important; }
html[data-score-dark="1"] #modal-root .gl-time-row__sub,
html[data-score-dark="1"] #modal-root .gl-time-row__val--empty { color: #b3c1b7 !important; }
html[data-score-dark="1"] #modal-root .gl-cls-modal__kana { color: #8ff0bf !important; }
/* LINE共有の選び方 */
html[data-score-dark="1"] #modal-root .gl-cls-line-option { border-color: #33403a !important; }
html[data-score-dark="1"] #modal-root .gl-cls-line-option.active { background: #12331f !important; border-color: #2e9b5b !important; }
html[data-score-dark="1"] #modal-root .gl-cls-line-option-title { color: #eef3ef !important; }
html[data-score-dark="1"] #modal-root .gl-cls-line-option-desc { color: #b3c1b7 !important; }
/* 保存前の確認の「それでも保存する」（金の地に白い字 → 金の地に濃い字） */
html[data-score-dark="1"] #modal-root button[style*="background:#c9a959"] { color: #2a2000 !important; }

/* ---- スコア画面の本体 ---- */
/* 観戦中の帯（白っぽい帯 → ダークの帯） */
html[data-score-dark="1"] #view-score [data-watcher-open] { background: #1f2621 !important; box-shadow: inset 0 0 0 1px #2f3a33; }
html[data-score-dark="1"] #view-score [data-watcher-open] [style*="color:#5a6a5a"] { color: #eef3ef !important; }
html[data-score-dark="1"] #view-score [data-watcher-open] [data-timeline-open] { color: #8ff0bf !important; }
/* 「💌 返事」（うすい地に明るい字で消えていた） */
html[data-score-dark="1"] #view-score .gl-cls-stampbar__reply { background: #12331f !important; color: #8ff0bf !important; border-color: #2e9b5b !important; }
/* 下の「LINE共有」「観戦リンク」 */
html[data-score-dark="1"] #view-score .gl-cls-btn-line { background: #12703f !important; color: #fff !important; }
/* 「代理」の札（オレンジの地に白っぽい字 → 濃い字） */
html[data-score-dark="1"] #view-score .gl-cls-player-badge--proxy { color: #1a1300 !important; }
html[data-score-dark="1"] #view-score .gl-cls-logo__sep { color: #8ff0bf !important; }

/* ---- 入力パネル ---- */
html[data-score-dark="1"] #gl-panel-root .gl-cls-mini-tool[data-panel-reply-btn] { background: #12703f !important; border-color: #2e9b5b !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-btn-save { background: #157a45 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn--selected,
html[data-score-dark="1"] #gl-panel-root .gl-cls-swipe-btn.gl-cls-swipe-btn--selected { background: #157a45 !important; }
html[data-score-dark="1"] #gl-panel-root .gl-cls-putt-btn--active,
html[data-score-dark="1"] #gl-panel-root .gl-cls-putt-btn--plus,
html[data-score-dark="1"] #gl-panel-root .gl-cls-panel-key.selected { background: #157a45 !important; }

/* ★ v3.0.40.773: 観戦リンクの声かけ・送り先の説明（暗い画面でも読めるように） */
html[data-score-dark="1"] #modal-root [data-modal-type="watch-nudge773"] [data-nudge773],
html[data-score-dark="1"] #modal-root [data-modal-type="watch-nudge773"] [data-nudge773] div { color: #e8efe9 !important; }
html[data-score-dark="1"] #modal-root [data-modal-type="watch-nudge773"] [data-nudge773] b { color: #8ff0bf !important; }
html[data-score-dark="1"] #modal-root [data-modal-type="watch-nudge773"] [data-nudge773-go] { background: #2e9b5b !important; color: #fff !important; }
html[data-score-dark="1"] #modal-root [data-modal-type="watch-nudge773"] [data-nudge773-later] { background: #232c26 !important; color: #e8efe9 !important; border-color: #3a463e !important; }
html[data-score-dark="1"] #modal-root [data-modal-type="watch-share"] [data-ws773-note] { background: #17402c !important; color: #e8efe9 !important; border-color: #2e6b4b !important; }
html[data-score-dark="1"] #modal-root [data-modal-type="watch-share"] [data-ws773-note] b { color: #8ff0bf !important; }
html[data-score-dark="1"] #modal-root [data-modal-type="watch-share"] [data-ws745="both"] { background: #1a2a20 !important; color: #8ff0bf !important; border-color: #3f9d6d !important; }
/* ★ v3.0.40.777: まとめて返事（まだ返していない人数） */
html[data-score-dark="1"] #view-score .gl-cls-stampbar__reply--due { background: #06C755 !important; color: #fff !important; border-color: #06C755 !important; }
html[data-score-dark="1"] #view-score .gl-r777-n { background: #fff !important; color: #06A04A !important; }
