/* 一般向け「握り」のスコア入力（nigiri-holes.js）。2026-10-14 追加（社長指示 DEC-083・DEC-084）。
   画面の見た目は participant-round-score.css（参加者のスコア入力）をそのまま使う（画面の中に #screenParticipantRoundScore を作っている）。
   ここに書くのは、一般向けで足りない分だけ：人の切り替えのタブ、撮影のボタン、下メニューの光らせ方、ラウンド設定の「遊ぶゲーム」の欄 */
#screenParticipantNigiriV2 .nh-screen { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
#screenParticipantNigiriV2 .nh-screen[hidden] { display:none !important; }
#screenParticipantNigiriV2 .nh-screen #screenParticipantRoundScore { flex:1 1 auto; height:auto; min-height:0; width:100%; }
#screenParticipantNigiriV2 .nh-shot-go { display:none !important; }

/* だれのスコアか（タブ）。合計の上に置く */
#screenParticipantRoundScore .nh-tabrow { flex:0 0 auto; display:flex; align-items:center; gap:6px; margin:0 0 clamp(5px,1dvh,8px); }
#screenParticipantRoundScore .nh-tabs { flex:1 1 auto; min-width:0; display:flex; gap:6px; overflow-x:auto; margin:0; padding-bottom:1px; scrollbar-width:none; }
#screenParticipantRoundScore .nh-tabs::-webkit-scrollbar { display:none; }
#screenParticipantRoundScore .nh-tab { flex:0 0 auto; height:32px; margin:0; padding:0 12px; border:1px solid rgba(215,184,114,.6); border-radius:16px; background:rgba(3,25,15,.7); color:#fff; font-size:13.5px; font-weight:700; white-space:nowrap; }
#screenParticipantRoundScore .nh-tab.is-on { background:linear-gradient(180deg,#fbeec4,#c9a052); color:#1b1304; font-weight:800; }
#screenParticipantRoundScore .nh-photo { flex:0 0 auto; height:32px; margin:0; padding:0 10px; white-space:nowrap; border:1px solid rgba(215,184,114,.6); border-radius:17px; background:rgba(3,25,15,.7); color:#f3dc9c; font-size:13.5px; font-weight:700; }
#screenParticipantRoundScore .nh-empty { margin-top:20px; padding:20px 14px; border:1px dashed rgba(215,184,114,.6); border-radius:12px; color:#fff; font-size:15px; line-height:1.7; text-align:center; }

/* 下メニュー：参加者の画面は「ホーム」を光らせているが、この画面では「スコア入力」を光らせる */
#screenParticipantRoundScore .prs-footer-item.nh-foot:first-child { color:#d9d6cc; }
#screenParticipantRoundScore .prs-footer-item.nh-foot.is-here { color:#f1cf73; font-weight:700; }
#screenParticipantRoundScore .prs-footer-item.nh-foot.is-here svg { stroke:#f1cf73; filter:drop-shadow(0 0 3px rgba(241,207,115,.55)); }

/* 人の切り替えのタブの分だけ、低い画面ではテンキーを少し詰める */
@media (max-height:760px) {
  #screenParticipantNigiriV2 .nh-screen #screenParticipantRoundScore { --prs-key-h:34px; }
}

/* ラウンド設定（握りの「対戦相手・条件」）の「遊ぶゲーム」の欄。色と部品は参加者の「選ぶ」と同じ */
#screenParticipantRoundScoreSetup .nh-setup-games { margin-top:6px; padding:12px; border:1.5px solid rgba(215,184,114,.55); border-radius:12px; background:linear-gradient(180deg,#0f4a30,#062a1a); color:#f5f0e2; }
#screenParticipantRoundScoreSetup .nh-setup-title { margin:0 0 4px; font-size:16px; font-weight:800; color:#f3dc9c; }
#screenParticipantRoundScoreSetup .nh-setup-note { margin:0 0 8px; font-size:12.5px; line-height:1.6; color:#c9c6b8; }
#screenParticipantRoundScoreSetup .nh-setup-msg { margin:8px 0 0; font-size:13px; font-weight:700; color:#ffd2d4; }
#screenParticipantRoundScoreSetup .nh-setup-msg:empty { display:none; }
#screenParticipantRoundScoreSetup .prs-results-row.is-head { display:none; }
#screenParticipantRoundScoreSetup .prs-game-chooser-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#screenParticipantRoundScoreSetup .prs-game-choice { min-height:44px; margin:0; padding:4px 6px; border:1.5px solid rgba(215,184,114,.45); border-radius:10px; background:#021209; color:#d9e6dd; font-size:13px; font-weight:800; line-height:1.25; cursor:pointer; }
#screenParticipantRoundScoreSetup .prs-game-choice.is-on { border-color:#f3dc9c; background:linear-gradient(180deg,#e9cf86,#b8913f); color:#1d1606; }
/* 人の切り替えのタブの分、18ホールの一覧を画面の残りに合わせて縮める（下メニューと重ならないように） */
#screenParticipantNigiriV2 .nh-screen .prs-chips { flex:1 1 auto; min-height:0; }
#screenParticipantNigiriV2 .nh-screen .prs-chip { min-height:0; }
#screenParticipantNigiriV2 .nh-screen .prs-chip b { flex:1 1 auto; height:auto; min-height:18px; line-height:1; }

/* 握りのトップの下段3つのボタン：文字が枠からはみ出すため、アイコンを上・文字を下の縦並びにして中央にそろえる（2026-10-15 社長指示） */
#screenParticipantNigiriV2 .pn-actions .pn-action { flex-direction:column; gap:2px; height:auto; min-height:clamp(58px,8.4dvh,66px); padding:5px 3px; text-align:center; }
#screenParticipantNigiriV2 .pn-actions .pn-action svg { width:20px; height:18px; }
#screenParticipantNigiriV2 .pn-actions .pn-action > span { min-width:0; max-width:100%; }
#screenParticipantNigiriV2 .pn-actions .pn-action b { font-size:12.5px; line-height:16px; }
#screenParticipantNigiriV2 .pn-actions .pn-action small { font-size:9.5px; line-height:12px; white-space:normal; }

/* 対戦相手の追加：前に対戦した人はプルダウンで選ぶ（2026-10-15 社長指示）。元のボタンの枠は隠す */
#screenParticipantNigiriV2 #pnCompanionPaper.nh-hide { display:none !important; }
#screenParticipantNigiriV2 .nh-pick-past { margin:10px 0 0; }
#screenParticipantNigiriV2 .nh-pick-past .pn-label { margin-top:0; }
/* 前に対戦した人の一覧：欄のすぐ下に開く（2026-10-15 社長指示「プルダウンを下方向に表示」） */
#screenParticipantNigiriV2 .nh-past-btn { display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left; cursor:pointer; }
#screenParticipantNigiriV2 .nh-past-btn i { font-style:normal; font-size:12px; color:#55584f; }
#screenParticipantNigiriV2 .nh-past-btn[aria-expanded="true"] i { transform:rotate(180deg); }
#screenParticipantNigiriV2 .nh-past-btn:disabled { opacity:.6; cursor:default; }
#screenParticipantNigiriV2 .nh-past-list { display:flex; flex-direction:column; max-height:240px; overflow-y:auto; margin-top:4px; border:1px solid rgba(31,53,39,.25); border-radius:10px; background:#fff; box-shadow:0 4px 10px rgba(0,0,0,.18); }
#screenParticipantNigiriV2 .nh-past-list[hidden] { display:none; }
#screenParticipantNigiriV2 .nh-past-opt { width:100%; min-height:44px; padding:0 14px; border:0; border-bottom:1px solid rgba(31,53,39,.12); background:none; color:#14261b; font-size:16px; font-weight:700; text-align:left; }
#screenParticipantNigiriV2 .nh-past-opt:last-child { border-bottom:0; }
#screenParticipantNigiriV2 .nh-past-opt:active { background:#f3dc9c; }
/* カートのナビの写真から名前を読み取る（2026-10-15 社長指示） */
#screenParticipantNigiriV2 .nh-name-shot { margin-top:10px; }
#screenParticipantNigiriV2 .nh-name-shot-btn { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; }
#screenParticipantNigiriV2 .nh-name-shot-msg { margin-top:6px; font-size:13px; line-height:1.6; }
#screenParticipantNigiriV2 .nh-name-shot-msg:empty { display:none; }
#screenParticipantNigiriV2 .nh-name-shot-msg.is-error { color:#b42318; font-weight:700; }
#screenParticipantNigiriV2 .nh-name-found { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
#screenParticipantNigiriV2 .nh-name-found[hidden] { display:none; }
#screenParticipantNigiriV2 .nh-name-row { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:2px 8px; padding:6px 8px; border:1px solid rgba(31,53,39,.18); border-radius:10px; background:#fff; }
#screenParticipantNigiriV2 .nh-name-row.is-unsure { border-color:#e0a23b; background:#fff8e6; }
#screenParticipantNigiriV2 .nh-name-row input[type=checkbox] { width:20px; height:20px; margin:0; }
#screenParticipantNigiriV2 .nh-name-row .pn-input { height:40px; }
#screenParticipantNigiriV2 .nh-name-row small { grid-column:2; font-size:11.5px; color:#55584f; }
#screenParticipantNigiriV2 .nh-name-add { margin-top:4px; }

/* 対戦結果（今回の成績・相手別・履歴）の下メニュー（2026-10-15 社長指示）：「順位」を光らせる */
#screenParticipantNigiriV2 .nh-result-nav [data-gc-foot="rank"] { color:#f1cf73 !important; font-weight:700 !important; }
#screenParticipantNigiriV2 .nh-result-nav [data-gc-foot="rank"] svg { stroke:#f1cf73 !important; filter:drop-shadow(0 0 3px rgba(241,207,115,.55)); }
/* 画面には出さず、読み上げだけに使う文字 */
#screenParticipantNigiriV2 .nh-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* 「前に対戦した人から選ぶ」の文字色を、上の名前の欄の「例：佐藤 次郎」（薄い案内の文字）と同じにする（2026-10-15 社長指示） */
#screenParticipantNigiriV2 .nh-past-btn span { color:#757575; }

/* 名前の入力欄と「前に対戦した人から選ぶ」を一つに（2026-10-15 社長指示）。欄の右端に▼、一覧は欄のすぐ下 */
#screenParticipantNigiriV2 .nh-name-field { position:relative; flex:1 1 auto; min-width:0; }
#screenParticipantNigiriV2 .nh-name-field .pn-input { width:100%; padding-right:44px; }
#screenParticipantNigiriV2 .nh-past-arrow { position:absolute; top:0; right:0; bottom:0; width:42px; border:0; background:none; color:#55584f; font-size:12px; cursor:pointer; }
#screenParticipantNigiriV2 .nh-past-arrow[hidden] { display:none; }
#screenParticipantNigiriV2 .nh-past-arrow[aria-expanded="true"] { transform:rotate(180deg); }
#screenParticipantNigiriV2 .nh-pick-past { margin:0; }

/* ゲームのページ：遊ぶゲームを変えるボタン（2026-10-15 社長指示。対戦相手・条件の画面から移した） */
#screenParticipantRoundScore .nh-change-games { flex:0 0 auto; width:100%; height:44px; border:1.5px solid #d7b872; border-radius:12px; background:rgba(243,220,156,.08); color:#f3dc9c; font-size:15px; font-weight:800; }
#screenParticipantRoundScore .nh-change-games[hidden] { display:none; }

/* 2026-10-15 社長指示（入れ方の見直し）：スコア入力は自分だけ・ほかの人は撮影、ゲームの点は別の画面で全員 */
#screenParticipantRoundScore .nh-fix.is-on { background:linear-gradient(180deg,#fbeec4,#c9a052); color:#1b1304; }
#screenParticipantRoundScore .nh-photo[hidden], #screenParticipantRoundScore .nh-tabs[hidden], #screenParticipantRoundScore .prs-field[hidden], #screenParticipantRoundScore .prs-fields[hidden], #screenParticipantRoundScore .prs-game-choose[hidden], #screenParticipantRoundScore .prs-game-tabs[hidden] { display:none !important; }
#screenParticipantRoundScore .nh-mode-btn { white-space:nowrap; }
#screenParticipantRoundScore .nh-game-rows { display:flex; flex-direction:column; gap:5px; }
#screenParticipantRoundScore .nh-game-rows[hidden] { display:none; }
#screenParticipantRoundScore .nh-game-row { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; margin:0; padding:4px 14px; border:1.5px solid rgba(215,184,114,.55); border-radius:10px; background:rgba(1,14,9,.6); color:#fff; text-align:left; }
#screenParticipantRoundScore .nh-game-row span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; font-weight:700; }
#screenParticipantRoundScore .nh-game-row b { flex:0 0 auto; font-size:22px; font-weight:900; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .nh-game-row.is-active { border-color:#f3dc9c; background:linear-gradient(180deg,#2a2410,#120e04); box-shadow:0 0 0 2px rgba(243,220,156,.35); }
#screenParticipantRoundScore .nh-results-btns { flex:0 0 auto; display:flex; gap:8px; }
#screenParticipantRoundScore .nh-results-btns[hidden] { display:none; }
#screenParticipantRoundScore .nh-results-btns .nh-change-games { flex:1 1 0; min-width:0; font-size:13.5px; }
#screenParticipantRoundScore .nh-to-input { background:linear-gradient(180deg,#e9cf86,#b8913f) !important; color:#1d1606 !important; }

/* ほかの人（代表者）が入れたゲームの結果（見るだけ。2026-10-15 DEC-089） */
#screenParticipantRoundScore .nh-shared { flex:0 0 auto; display:flex; flex-direction:column; gap:6px; }
#screenParticipantRoundScore .nh-shared[hidden] { display:none; }
#screenParticipantRoundScore .nh-shared-item { display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%; margin:0; padding:9px 14px; border:1.5px solid #d7b872; border-radius:12px; background:linear-gradient(180deg,rgba(243,220,156,.16),rgba(243,220,156,.05)); color:#f3dc9c; text-align:left; }
#screenParticipantRoundScore .nh-shared-item b { font-size:15px; font-weight:800; }
#screenParticipantRoundScore .nh-shared-item small { font-size:12px; color:rgba(255,255,255,.75); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
#screenParticipantRoundScore .nh-shared-note { margin:0; padding:8px 12px; border-radius:10px; background:rgba(243,220,156,.12); color:#f3dc9c; font-size:14px; font-weight:800; }
#screenParticipantRoundScore .nh-shared-back { width:100%; height:42px; margin:0; border:1.5px solid #d7b872; border-radius:12px; background:rgba(3,25,15,.7); color:#f3dc9c; font-size:14.5px; font-weight:800; }
#screenParticipantRoundScore .nh-rate-view { min-width:56px; text-align:right; }

/* ゲームの点数入力の表：名前×ゲームを縦、1H〜18H・合計を横（横にずらす。名前とゲームの列は固定）（2026-10-15 社長指示） */
#screenParticipantRoundScore .nh-game-grid { overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; border:1.5px solid rgba(215,184,114,.55); border-radius:10px; background:rgba(1,14,9,.6); }
#screenParticipantRoundScore .nh-game-grid[hidden] { display:none; }
#screenParticipantRoundScore .nh-grid { border-collapse:separate; border-spacing:0; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .nh-grid th, #screenParticipantRoundScore .nh-grid td { height:27px; min-width:30px; padding:0 4px; border-right:1px solid rgba(215,184,114,.2); border-bottom:1px solid rgba(215,184,114,.2); color:#fff; font-size:14px; font-weight:800; text-align:center; white-space:nowrap; }
#screenParticipantRoundScore .nh-grid thead th { height:24px; background:#0a2a1c; color:#f3dc9c; font-size:11.5px; font-weight:700; }
#screenParticipantRoundScore .nh-grid thead th.is-hole { background:#3a3014; color:#fbeec4; }
#screenParticipantRoundScore .nh-grid .nh-g-name { position:sticky; left:0; z-index:2; width:64px; min-width:64px; max-width:64px; overflow:hidden; text-overflow:ellipsis; padding:0 4px; background:#06281a; font-size:12px; text-align:left; white-space:normal; line-height:1.25; }
#screenParticipantRoundScore .nh-grid .nh-g-game { position:sticky; left:64px; z-index:2; width:72px; min-width:72px; max-width:72px; overflow:hidden; text-overflow:ellipsis; padding:0 3px; background:#06281a; color:#f3dc9c; font-size:10.5px; font-weight:700; border-right:1.5px solid rgba(215,184,114,.55); }
#screenParticipantRoundScore .nh-grid thead .nh-g-name, #screenParticipantRoundScore .nh-grid thead .nh-g-game { z-index:3; background:#0a2a1c; }
#screenParticipantRoundScore .nh-grid tr.is-first > * { border-top:1.5px solid rgba(215,184,114,.55); }
#screenParticipantRoundScore .nh-grid tbody tr:first-child > * { border-top:0; }
#screenParticipantRoundScore .nh-grid td.is-hole { background:rgba(243,220,156,.08); }
#screenParticipantRoundScore .nh-grid td.is-on { background:linear-gradient(180deg,#fbeec4,#c9a052); color:#1b1304; }
#screenParticipantRoundScore .nh-grid td:not(.nh-g-game):not(.nh-g-total) { cursor:pointer; }
#screenParticipantRoundScore .nh-grid .nh-g-total { min-width:40px; background:#0a2a1c; color:#f3dc9c; }

/* ゲームの点数入力の下メニュー（ホーム・ゲーム1〜3入力）。選んでいるゲームを光らせる（2026-10-15 社長指示） */
#screenParticipantRoundScore .prs-footer[hidden] { display:none; }
#screenParticipantRoundScore .nh-game-footer .prs-footer-item:first-child { color:#d9d6cc; }
#screenParticipantRoundScore .nh-game-footer .prs-footer-item.is-here { color:#f1cf73; font-weight:700; }
#screenParticipantRoundScore .nh-game-footer .prs-footer-item.is-here svg { filter:drop-shadow(0 0 3px rgba(241,207,115,.55)); }

/* ペアのゲーム：相棒のあとに勝ち負け（2026-10-15 DEC-090） */
#screenParticipantRoundScore .nh-pair-result { display:flex; flex-direction:column; gap:4px; margin:4px 0; }
#screenParticipantRoundScore .nh-pair-result-label { margin:0; color:#f3dc9c; font-size:12.5px; font-weight:700; text-align:center; }
#screenParticipantRoundScore .nh-pair-result-row { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
#screenParticipantRoundScore .nh-result-btn { height:44px; font-size:17px; }
#screenParticipantRoundScore .nh-result-btn.is-on { background:linear-gradient(180deg,#fbeec4,#c9a052); color:#1b1304; }
#screenParticipantRoundScore .nh-result-btn:disabled { opacity:.45; }
/* 相棒の名前は横に3つ並べて、勝ち負けのボタンが入るようにする */
#screenParticipantRoundScore .nh-screen-game .prs-picker-names, #screenParticipantRoundScore .prs-picker-names { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
#screenParticipantRoundScore .prs-picker-names .prs-key { height:44px; min-height:0; padding:0 4px; font-size:14px; line-height:1.2; white-space:normal; overflow:hidden; }
/* ゲームの点数入力：前のホール・次のホールは出さず、表の「1H」「2H」…を押してホールを選ぶ（2026-10-15 社長指示） */
#screenParticipantRoundScore .prs-nav[hidden] { display:none; }
#screenParticipantRoundScore .nh-grid thead th.nh-g-hole { cursor:pointer; height:30px; text-decoration:underline; text-decoration-color:rgba(243,220,156,.35); text-underline-offset:3px; }
/* スコア入力のホールのマスの一番下：ゲームの入力が済／未（2026-10-15 社長指示） */
#screenParticipantRoundScore .prs-chip em.nh-game-done { color:#f1cf73; font-style:normal; font-weight:800; }
#screenParticipantRoundScore .prs-chip em.nh-game-todo { color:rgba(255,255,255,.45); font-style:normal; font-weight:700; }
#screenParticipantRoundScore .prs-chip.is-current em.nh-game-done, #screenParticipantRoundScore .prs-chip.is-current em.nh-game-todo { color:#1b1304; }
/* 「済」「未」の後ろの小さい G は出さない（2026-10-15 社長指示。参加者の画面の G はそのまま） */
#screenParticipantNigiriV2 #screenParticipantRoundScore .prs-chip em:not(:empty)::after { content:none; }
/* スコア・パットの右の「ゲーム」（未／済）（2026-10-15） */
#screenParticipantRoundScore .nh-field-game[hidden] { display:none; }
#screenParticipantRoundScore .nh-field-game b span { font-size:18px; vertical-align:middle; }
#screenParticipantRoundScore .nh-field-game b span.nh-game-todo { color:#e8a33d; }
#screenParticipantRoundScore .nh-field-game b span.nh-game-done { color:#f1cf73; }
/* スコア入力のゲームのボタンを少し大きく（2026-10-15 社長指示） */
#screenParticipantRoundScore .prs-hole .prs-game-tab { height:32px; line-height:32px; padding:0 10px; font-size:13px; letter-spacing:0; }
/* 各ホールのスコア・パット・ゲームの3段を同じ高さに（2026-10-15 社長指示） */
#screenParticipantNigiriV2 #screenParticipantRoundScore .prs-chip > b, #screenParticipantNigiriV2 #screenParticipantRoundScore .prs-chip > i, #screenParticipantNigiriV2 #screenParticipantRoundScore .prs-chip > em { flex:1 1 0; min-height:0; height:auto; display:flex; align-items:center; justify-content:center; line-height:1; }
#screenParticipantNigiriV2 #screenParticipantRoundScore .prs-chip > b { font-size:20px; }
/* 前の日のラウンドの案内（2026-10-15） */
.nh-old{position:fixed;inset:0;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.6)}
.nh-old-card{width:min(100%,360px);display:flex;flex-direction:column;gap:12px;padding:22px 18px;border:2px solid #d7b872;border-radius:16px;background:#f8f3ea;color:#14261b;font-family:"Noto Sans JP","Hiragino Sans",sans-serif}
.nh-old-title{margin:0;font-size:18px;font-weight:800;text-align:center}
.nh-old-text{margin:0;font-size:14px;line-height:1.7}
.nh-old-start,.nh-old-keep{width:100%;min-height:48px;border-radius:10px;font:800 15px "Noto Sans JP","Hiragino Sans",sans-serif;cursor:pointer}
.nh-old-start{border:0;background:linear-gradient(180deg,#e9c873,#b98a36);color:#1b1304}
.nh-old-keep{border:1px solid #9a8a63;background:#fff;color:#14261b}
.nh-old-start:disabled{opacity:.6}
.nh-old-error{margin:0;color:#b42318;font-size:13px;font-weight:700}
.nh-old-error:empty{display:none}
