/* GolfCompetitionApp：参加者の「スコア入力」画面（#screenParticipantRoundScore、今日のスコア）だけの見た目。
   2026-10-14 追加・同日作り替え（Project Fundry 案件 PF-20260929-001、社長承認 DEC-052）。
   ・1画面で、スコア・パット数・オリンピックの点数を、1ホールずつスマホ片手で入れる。画面は固定（縦に動かさない）
   ・色と作りはオリンピックの画面（olympic.css／nigiri.css）にそろえる（濃い緑＋金）
   ・ここに書くのは #screenParticipantRoundScore の中と、この画面を表示中の body／#appMain／共通ヘッダーだけに効くもの
   ・画面の中身（#prsApp）は participant-round-score.js が作る。script.js が作る元の入力欄と「スコアを保存」は隠す */
body:has(#screenParticipantRoundScore:not([hidden])) > .app-header { display:none !important; }
body:has(#screenParticipantRoundScore:not([hidden])) { overflow:hidden; background:#01120c !important; padding-bottom:0 !important; }
body:has(#screenParticipantRoundScore:not([hidden])) #appMain { padding:0 !important; max-width:none !important; }
#screenParticipantRoundScore {
  --prs-gold:#d7b872; --prs-ink:#f5f0e2; --prs-sub:#c9c6b8;
  --prs-serif:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif CJK JP",serif;
  --prs-gold-frame:linear-gradient(135deg,#f6e3a8 0%,#b98a36 22%,#fbeec4 45%,#a97a2a 68%,#ecd292 100%);
  --prs-key-h:clamp(40px,6.6dvh,56px);
  position:relative; box-sizing:border-box; display:flex; flex-direction:column; height:100vh; height:100dvh; max-width:480px; overflow:hidden;
  margin:0 auto !important; padding:0 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important;
  background:radial-gradient(120% 60% at 50% 0%,#0a3a26 0%,#04231a 45%,#01120c 100%) !important;
  color:var(--prs-ink); text-align:left; font-family:var(--prs-serif);
}
#screenParticipantRoundScore[hidden] { display:none !important; }
#screenParticipantRoundScore *, #screenParticipantRoundScore *::before, #screenParticipantRoundScore *::after { box-sizing:border-box; }
#screenParticipantRoundScore button { font-family:inherit; margin:0; min-height:0; width:auto; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
#screenParticipantRoundScore h2, #screenParticipantRoundScore p { margin:0; padding:0; border:0; background:none; }
#screenParticipantRoundScore [hidden] { display:none !important; }
/* script.js が作る元の入力欄・「スコアを保存」・その結果の行・説明の行は使わない */
#screenParticipantRoundScore #participantRoundScoreForm, #screenParticipantRoundScore #saveParticipantRoundScoreButton, #screenParticipantRoundScore #participantRoundScoreStatus, #screenParticipantRoundScore .line-competition-detail { display:none !important; }

/* 見出しの帯：左に「戻る」、中央に「今日のスコア」 */
#screenParticipantRoundScore #backFromParticipantRoundScoreButton { position:absolute; top:9px; left:8px; z-index:5; display:flex; align-items:center; gap:4px; height:34px; padding:0 12px 0 9px; white-space:nowrap; border:1px solid rgba(215,184,114,.6); border-radius:17px; color:#f5f0e2; font-size:15px; font-weight:700; background:linear-gradient(180deg,#1c7148 0%,#0d4a2e 55%,#06301d 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.35), inset 0 -3px 5px rgba(0,0,0,.4), 0 2px 5px rgba(0,0,0,.45); text-shadow:0 1px 1px rgba(0,0,0,.5); }
#screenParticipantRoundScore #backFromParticipantRoundScoreButton .back-button-main { display:flex; align-items:center; gap:4px; padding:0; border:0; color:inherit; font-size:inherit; font-weight:inherit; }
#screenParticipantRoundScore #backFromParticipantRoundScoreButton .back-button-arrow { color:inherit; font-size:inherit; }
#screenParticipantRoundScore #backFromParticipantRoundScoreButton .back-button-target { display:none; }
#screenParticipantRoundScore .line-competition-info { flex:0 0 auto; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
#screenParticipantRoundScore .line-competition-name { display:flex; align-items:center; justify-content:center; height:52px; margin:0; padding:0 96px; background:linear-gradient(180deg,#0b3d27,#02201a); border-bottom:2px solid var(--prs-gold); color:#f3dc9c; font-size:20px; line-height:1.2; font-weight:700; letter-spacing:.08em; white-space:nowrap; }

#screenParticipantRoundScore .prs-app { position:relative; flex:1 1 auto; min-height:0; display:flex; flex-direction:column; padding:clamp(6px,1.2dvh,12px) 10px calc(clamp(8px,1.4dvh,14px) + env(safe-area-inset-bottom, 0px)); }

/* 上：合計（OUT・IN・合計・パット・五輪） */
#screenParticipantRoundScore .prs-totals { flex:0 0 auto; display:grid; grid-template-columns:1fr 1fr 1.25fr 1fr 1fr; gap:5px; padding:6px 8px 7px; border:2px solid transparent; border-radius:12px; background:linear-gradient(180deg,#08301f,#021209) padding-box, var(--prs-gold-frame) border-box; box-shadow:0 0 10px rgba(246,227,168,.35), 0 4px 10px rgba(0,0,0,.5); }
#screenParticipantRoundScore .prs-totals div { text-align:center; min-width:0; }
#screenParticipantRoundScore .prs-totals small { display:block; font-size:11px; line-height:15px; font-weight:700; color:var(--prs-sub); }
#screenParticipantRoundScore .prs-totals b { display:flex; align-items:center; justify-content:center; height:clamp(28px,4.2dvh,36px); margin-top:1px; border:1px solid rgba(215,184,114,.45); border-radius:6px; background:rgba(1,14,9,.6); color:#fff; font-size:20px; line-height:1; font-weight:900; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-totals .is-sum b { border-color:#fbeec4; background:linear-gradient(180deg,#fbeec4 0%,#e3bd62 45%,#b98a36 100%); color:#1b1304; font-size:24px; }

/* 18ホールの一覧（2段）。押すとそのホールへ移る。数字はスコア */
#screenParticipantRoundScore .prs-chips { flex:0 0 auto; display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:4px 3px; margin-top:clamp(6px,1.2dvh,12px); }
#screenParticipantRoundScore .prs-chip { display:block; padding:0 0 3px; border:1px solid rgba(215,184,114,.4); border-radius:6px; background:rgba(1,14,9,.55); color:#fff; box-shadow:none; text-align:center; }
#screenParticipantRoundScore .prs-chip small { display:block; font-size:10px; line-height:13px; font-weight:700; color:var(--prs-sub); font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-chip b { display:block; height:clamp(18px,2.8dvh,24px); font-size:16px; line-height:clamp(18px,2.8dvh,24px); font-weight:900; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-chip.is-done { background:linear-gradient(180deg,#0f4a30,#062a1a); }
#screenParticipantRoundScore .prs-chip.is-current { border-color:#fbeec4; background:linear-gradient(180deg,#fbeec4 0%,#e3bd62 45%,#b98a36 100%); color:#1b1304; }
#screenParticipantRoundScore .prs-chip.is-current small { color:#3a2a08; }

/* 下：今のホールの入力。画面の下側（親指が届く側）に寄せる */
#screenParticipantRoundScore .prs-pad { flex:0 0 auto; display:flex; flex-direction:column; gap:clamp(5px,1.1dvh,10px); padding:clamp(6px,1.2dvh,10px) 8px clamp(8px,1.4dvh,12px); border:1.5px solid transparent; border-radius:12px; background:linear-gradient(180deg,#0f4a30,#062a1a) padding-box, var(--prs-gold-frame) border-box; box-shadow:0 3px 8px rgba(0,0,0,.5); }
#screenParticipantRoundScore .prs-hole { display:flex; align-items:baseline; justify-content:center; gap:6px; color:#fff; }
#screenParticipantRoundScore .prs-hole b { font-size:clamp(30px,5dvh,40px); line-height:1; font-weight:900; color:#f3dc9c; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-hole span { font-size:16px; font-weight:700; }
#screenParticipantRoundScore .prs-nav { display:grid; grid-template-columns:1fr 1.7fr; gap:8px; }
#screenParticipantRoundScore .prs-nav button { display:flex; align-items:center; justify-content:center; height:clamp(46px,6.8dvh,56px); padding:0 8px; border-radius:12px; font-size:18px; font-weight:800; }
#screenParticipantRoundScore .prs-prev { border:1.5px solid var(--prs-gold); background:linear-gradient(180deg,#17704a 0%,#0c4a2e 52%,#052a19 100%); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.35), inset 0 -4px 6px rgba(0,0,0,.4), 0 3px 7px rgba(0,0,0,.5); }
#screenParticipantRoundScore .prs-next { border:1px solid #fbeec4; background:linear-gradient(180deg,#fbeec4 0%,#e3bd62 45%,#b98a36 100%); color:#1b1304; box-shadow:inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 4px rgba(120,80,10,.4), 0 3px 8px rgba(0,0,0,.5); }
#screenParticipantRoundScore .prs-nav button:disabled { opacity:.4; }

/* 保存の知らせ（合計の下あたりに重ねて出す。入力のボタンには重ねない） */
#screenParticipantRoundScore .prs-toast { position:absolute; left:10px; right:10px; top:clamp(6px,1.2dvh,12px); z-index:6; padding:8px 12px; border:1px solid #fbeec4; border-radius:10px; background:rgba(1,18,12,.95); color:#f3dc9c; font-size:14px; line-height:1.5; font-weight:700; text-align:center; pointer-events:none; }
#screenParticipantRoundScore .prs-toast.is-error { border-color:#ff8a8f; color:#ffd2d4; }

#screenParticipantRoundScore .prs-bottom { flex:0 0 auto; margin-top:auto; display:flex; flex-direction:column; gap:clamp(6px,1.2dvh,10px); }

/* 3つの欄（押して選ぶ）と、下段の共通のテンキー（2026-10-14 社長指示「共通のテンキーを下段に設置し、それぞれを入力したい」） */
#screenParticipantRoundScore .prs-fields { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; }
#screenParticipantRoundScore .prs-field { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; height:clamp(64px,10dvh,84px); padding:4px 2px; border:1.5px solid rgba(215,184,114,.55); border-radius:10px; background:rgba(1,14,9,.6); color:#fff; box-shadow:none; }
#screenParticipantRoundScore .prs-field small { font-size:12.5px; line-height:16px; font-weight:700; color:var(--prs-sub); white-space:nowrap; }
#screenParticipantRoundScore .prs-field b { font-size:clamp(28px,4.6dvh,38px); line-height:1.1; font-weight:900; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-field i { position:absolute; right:7px; bottom:5px; font-style:normal; font-size:11px; color:var(--prs-sub); }
#screenParticipantRoundScore .prs-field-olympic { border-color:rgba(236,210,146,.75); background:linear-gradient(180deg,#2a2410,#120e04); }
#screenParticipantRoundScore .prs-field.is-active { border-color:#fbeec4; background:linear-gradient(180deg,#fbeec4 0%,#e3bd62 45%,#b98a36 100%); color:#1b1304; box-shadow:0 0 0 2px #fff, 0 0 12px rgba(246,227,168,.7); }
#screenParticipantRoundScore .prs-field.is-active small, #screenParticipantRoundScore .prs-field.is-active i { color:#3a2a08; }
#screenParticipantRoundScore .prs-keypad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding:8px; border:1.5px solid transparent; border-radius:12px; background:linear-gradient(180deg,#08301f,#021209) padding-box, var(--prs-gold-frame) border-box; box-shadow:0 3px 8px rgba(0,0,0,.5); }
#screenParticipantRoundScore .prs-key { display:flex; align-items:center; justify-content:center; height:var(--prs-key-h); padding:0; border:1px solid var(--prs-gold); border-radius:9px; background:#fffdf7; color:#14261b; font-size:26px; line-height:1; font-weight:900; font-variant-numeric:tabular-nums; box-shadow:0 2px 4px rgba(0,0,0,.45); }
#screenParticipantRoundScore .prs-key:active { transform:translateY(1px); background:#f3dc9c; }
#screenParticipantRoundScore .prs-key-sub { background:linear-gradient(180deg,#17704a,#052a19); color:#f6e3a8; font-size:16px; font-weight:800; }

/* 18ホールの一覧：上に番号、まん中にスコア、下にパット数（「2P」の形）
   2026-10-14 社長指示「各ホールにもパット数を表示したい」「上にスコア、下にパター数を表示したい」 */
#screenParticipantRoundScore .prs-chip { padding:0 0 2px; }
#screenParticipantRoundScore .prs-chip small { font-size:9.5px; line-height:12px; }
#screenParticipantRoundScore .prs-chip b { height:clamp(17px,2.6dvh,22px); line-height:clamp(17px,2.6dvh,22px); }
#screenParticipantRoundScore .prs-chip i { display:block; height:13px; font-style:normal; font-size:11px; line-height:13px; font-weight:800; color:#f3dc9c; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-chip i:not(:empty)::after { content:"P"; font-size:8.5px; margin-left:1px; }
#screenParticipantRoundScore .prs-chip.is-current i { color:#3a2a08; }

/* 18ホールの一覧のマスを縦長にして見やすく（2026-10-14 社長指示「各ホールの表示をもう少し縦長にして見やすく」）。
   収まりを保つため、低い画面ではテンキーと3つの欄の高さの下限を少し下げる */
#screenParticipantRoundScore { --prs-key-h:clamp(37px,6.6dvh,56px); }
#screenParticipantRoundScore .prs-chips { gap:5px 3px; }
#screenParticipantRoundScore .prs-chip { padding:2px 0 3px; border-radius:7px; }
#screenParticipantRoundScore .prs-chip small { font-size:11px; line-height:14px; }
#screenParticipantRoundScore .prs-chip b { height:clamp(20px,3.8dvh,32px); font-size:clamp(17px,2.6dvh,21px); line-height:clamp(20px,3.8dvh,32px); }
#screenParticipantRoundScore .prs-chip i { height:15px; font-size:12.5px; line-height:15px; }
#screenParticipantRoundScore .prs-field { height:clamp(58px,10dvh,84px); }
@media (max-height:640px) {
  #screenParticipantRoundScore { --prs-key-h:34px; }
  #screenParticipantRoundScore .prs-keypad { gap:5px; padding:6px 8px; }
}
/* 「4番ホール」の番号の大きさを、「番ホール」の文字と同じにする（2026-10-14 社長指示「4番ホールの4の大きさを普通に合わせる」） */
#screenParticipantRoundScore .prs-hole { gap:0; align-items:baseline; }
#screenParticipantRoundScore .prs-hole b { font-size:16px; line-height:1.4; font-weight:700; color:#fff; }

/* 18ホールの一覧のマスに、ゲームの点数も出す（いちばん下に「3G」の形。2026-10-14 社長指示「各ホールの欄にゲームの点数も表示したい」）。
   パット数（金色）と見分けるため、ゲームの欄と同じ系統の明るい橙色にする */
#screenParticipantRoundScore .prs-chip em { display:block; height:14px; font-style:normal; font-size:12px; line-height:14px; font-weight:800; color:#ffc27a; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-chip em:not(:empty)::after { content:"G"; font-size:8.5px; margin-left:1px; }
#screenParticipantRoundScore .prs-chip.is-current em { color:#5a2e00; }
@media (max-height:700px) {
  #screenParticipantRoundScore .prs-chip small { font-size:10px; line-height:12px; }
  #screenParticipantRoundScore .prs-chip b { height:20px; line-height:20px; font-size:17px; }
  #screenParticipantRoundScore .prs-chip i { height:13px; line-height:13px; }
  #screenParticipantRoundScore .prs-chip em { height:13px; line-height:13px; }
}

/* 18ホールの一覧のマスの中に罫線を入れ、番号・スコア・パット・ゲームの段を分ける（2026-10-14 社長指示「各ホールの表示欄にそれぞれ罫線を入れて分かりやすくして」）。
   線は各段の高さの内側に入れる（box-sizing:border-box）ので、マスの高さは変わらない */
#screenParticipantRoundScore .prs-chip { padding-left:0; padding-right:0; }
#screenParticipantRoundScore .prs-chip small { padding-left:0; text-align:center; }
#screenParticipantRoundScore .prs-chip b, #screenParticipantRoundScore .prs-chip i, #screenParticipantRoundScore .prs-chip em { border-top:1px solid rgba(215,184,114,.4); }
#screenParticipantRoundScore .prs-chip.is-current b, #screenParticipantRoundScore .prs-chip.is-current i, #screenParticipantRoundScore .prs-chip.is-current em { border-top-color:rgba(58,42,8,.35); }

/* 18ホールの一覧のマスを、さらに縦長に（2026-10-14 社長指示「各ホールの表示をもう少し縦長にして分かりやすく」）。
   その分、テンキーと3つの欄の高さを少し低くして、画面に収める。高さ640px以下の画面は場所がないため前のまま */
#screenParticipantRoundScore { --prs-key-h:clamp(34px,5.9dvh,52px); }
#screenParticipantRoundScore .prs-field { height:clamp(56px,8.6dvh,76px); }
#screenParticipantRoundScore .prs-chip small { font-size:11.5px; line-height:16px; }
#screenParticipantRoundScore .prs-chip b { height:clamp(22px,4.6dvh,40px); line-height:clamp(22px,4.6dvh,40px); font-size:clamp(18px,2.8dvh,24px); }
#screenParticipantRoundScore .prs-chip i, #screenParticipantRoundScore .prs-chip em { height:clamp(14px,2.1dvh,18px); line-height:clamp(14px,2.1dvh,18px); font-size:13px; }
@media (max-height:700px) {
  #screenParticipantRoundScore .prs-chip small { font-size:10.5px; line-height:14px; }
  #screenParticipantRoundScore .prs-chip b { height:24px; line-height:24px; font-size:18px; }
  #screenParticipantRoundScore .prs-chip i, #screenParticipantRoundScore .prs-chip em { height:15px; line-height:15px; font-size:12px; }
}
@media (max-height:640px) {
  #screenParticipantRoundScore .prs-chip small { font-size:10px; line-height:12px; }
  #screenParticipantRoundScore .prs-chip b { height:20px; line-height:20px; font-size:17px; }
  #screenParticipantRoundScore .prs-chip i, #screenParticipantRoundScore .prs-chip em { height:13px; line-height:13px; }
}
/* 背の高い画面（700px超）では、空いている場所の分だけスコアの段をさらに高くする */
@media (min-height:701px) {
  #screenParticipantRoundScore .prs-chip b { height:clamp(22px,5.6dvh,48px); line-height:clamp(22px,5.6dvh,48px); font-size:clamp(18px,3dvh,26px); }
}

/* 各ホールのパー（2026-10-14 社長指示）：一覧のマスは番号の横に小さく「Par4」、入力の見出しは「4番ホール　Par 4」 */
#screenParticipantRoundScore .prs-chip small span { margin-left:2px; font-size:8.5px; font-weight:700; color:var(--prs-sub); letter-spacing:-.02em; }
#screenParticipantRoundScore .prs-chip small span:empty { display:none; }
#screenParticipantRoundScore .prs-chip.is-current small span { color:#3a2a08; }
#screenParticipantRoundScore .prs-hole em { margin-left:10px; font-style:normal; font-size:16px; font-weight:700; color:#f3dc9c; }
#screenParticipantRoundScore .prs-chip small { white-space:nowrap; overflow:hidden; }
@media (max-width:359px) {
  #screenParticipantRoundScore .prs-chip small { font-size:9px; letter-spacing:-.04em; }
  #screenParticipantRoundScore .prs-chip small span { margin-left:1px; font-size:7px; letter-spacing:-.06em; }
}

/* 「4番ホール」の枠の上と下の間隔をそろえる（2026-10-14 社長指示「4番ホールの枠の上下の間隔を揃えて」）。
   これまでは余った高さが枠の上（18ホールの一覧との間）にだけ入っていた。枠の上も下と同じ間隔にし、
   余った高さは18ホールの一覧のマス（スコアの段）を伸ばして使う */
#screenParticipantRoundScore .prs-bottom { margin-top:clamp(6px,1.2dvh,10px); }
#screenParticipantRoundScore .prs-chips { flex:1 0 auto; grid-auto-rows:1fr; }
#screenParticipantRoundScore .prs-chip { display:flex; flex-direction:column; }
#screenParticipantRoundScore .prs-chip b { flex:1 0 auto; display:flex; align-items:center; justify-content:center; }
@media (max-height:640px) {
  #screenParticipantRoundScore .prs-bottom { margin-top:5px; gap:5px; }
}

/* 上の見出しの帯（「戻る」「今日のスコア」）を消し、下メニューを付ける（2026-10-14 社長指示「ヘッダーを削除して、フッターを追加して」）。
   ホームへ戻るのは下メニューの「ホーム」。下メニューの見た目は参加者の「順位・結果」画面（.pr-nav）と同じ */
#screenParticipantRoundScore .line-competition-info, #screenParticipantRoundScore #backFromParticipantRoundScoreButton { display:none !important; }
#screenParticipantRoundScore .prs-app { padding-top:calc(clamp(8px,1.4dvh,14px) + env(safe-area-inset-top, 0px)); padding-bottom:clamp(6px,1.2dvh,10px); }
#screenParticipantRoundScore .prs-footer { flex:0 0 auto; display:grid; grid-template-columns:repeat(4,1fr); height:calc(57px + env(safe-area-inset-bottom, 0px)); padding-bottom:env(safe-area-inset-bottom, 0px); border-top:1px solid rgba(215,184,114,.5); border-radius:16px 16px 0 0; background:linear-gradient(180deg,#073220,#01170f); box-shadow:0 -4px 12px rgba(0,0,0,.2); }
#screenParticipantRoundScore .prs-footer-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; width:100%; height:auto; padding:0; border:0; border-radius:0; background:none; box-shadow:none; color:#d9d6cc; font-size:10px; line-height:1.2; font-weight:400; }
#screenParticipantRoundScore .prs-footer-item:first-child { color:#f3dc9c; }
@media (max-height:640px) {
  #screenParticipantRoundScore .prs-footer { height:calc(50px + env(safe-area-inset-bottom, 0px)); }
}

/* ゲームの切り替え（2026-10-14 社長承認 DEC-056）：「○番ホール Par ○」を左に、入れるゲームの切り替えを右に並べる */
#screenParticipantRoundScore .prs-hole { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#screenParticipantRoundScore .prs-hole-title { display:flex; align-items:baseline; white-space:nowrap; color:#fff; }
#screenParticipantRoundScore .prs-hole-title b { font-size:16px; line-height:1.4; font-weight:700; color:#fff; }
#screenParticipantRoundScore .prs-hole-title span { font-size:16px; font-weight:700; }
#screenParticipantRoundScore .prs-hole-title em { margin-left:8px; font-style:normal; font-size:16px; font-weight:700; color:#f3dc9c; }
#screenParticipantRoundScore .prs-game-tabs { display:flex; flex:0 1 auto; min-width:0; padding:2px; border:1px solid rgba(215,184,114,.55); border-radius:999px; background:rgba(1,14,9,.6); }
#screenParticipantRoundScore .prs-game-tab { height:28px; padding:0 10px; border:0; border-radius:999px; background:none; box-shadow:none; color:var(--prs-sub); font-size:12px; font-weight:700; white-space:nowrap; }
#screenParticipantRoundScore .prs-game-tab.is-on { background:linear-gradient(180deg,#e9c873,#b98a36); color:#1b1304; }
@media (max-width:374px) {
  #screenParticipantRoundScore .prs-hole-title b, #screenParticipantRoundScore .prs-hole-title span, #screenParticipantRoundScore .prs-hole-title em { font-size:14px; }
  #screenParticipantRoundScore .prs-hole-title em { margin-left:5px; }
  #screenParticipantRoundScore .prs-game-tab { padding:0 7px; font-size:11px; }
}

/* お友達（2026-10-14 社長承認 DEC-057）：テンキーの代わりに、相棒の名前・消す・勝ちの点を出す。高さはテンキーと同じくらい */
#screenParticipantRoundScore .prs-picker { display:flex; flex-direction:column; gap:6px; padding:8px; border:1.5px solid transparent; border-radius:12px; background:linear-gradient(180deg,#08301f,#021209) padding-box, var(--prs-gold-frame) border-box; box-shadow:0 3px 8px rgba(0,0,0,.5); }
#screenParticipantRoundScore .prs-picker-note { min-height:18px; font-size:12.5px; line-height:18px; font-weight:700; color:#f3dc9c; text-align:center; }
#screenParticipantRoundScore .prs-picker-names { display:grid; grid-template-columns:1fr; gap:6px; }
#screenParticipantRoundScore .prs-name { height:calc(var(--prs-key-h) + 4px); font-size:20px; letter-spacing:.04em; }
#screenParticipantRoundScore .prs-name.is-on { border-color:#fbeec4; background:linear-gradient(180deg,#fbeec4 0%,#e3bd62 45%,#b98a36 100%); color:#1b1304; box-shadow:0 0 0 2px #fff, 0 0 10px rgba(246,227,168,.7); }
#screenParticipantRoundScore .prs-name:disabled { opacity:.45; }
#screenParticipantRoundScore .prs-picker-foot { display:grid; grid-template-columns:1fr 2fr; gap:6px; }
#screenParticipantRoundScore .prs-win { display:flex; align-items:center; justify-content:center; gap:6px; border:1px solid rgba(215,184,114,.55); border-radius:9px; background:rgba(1,14,9,.6); color:#fff; font-size:13px; font-weight:700; white-space:nowrap; }
#screenParticipantRoundScore .prs-win b { min-width:22px; text-align:center; font-size:22px; font-weight:900; color:#f3dc9c; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-win-step { width:34px; height:34px; padding:0; border:1.5px solid var(--prs-gold); border-radius:50%; background:linear-gradient(180deg,#17704a,#052a19); box-shadow:none; color:#f6e3a8; font-size:20px; line-height:1; font-weight:800; }
@media (max-width:374px) {
  #screenParticipantRoundScore .prs-win { gap:4px; font-size:12px; }
  #screenParticipantRoundScore .prs-win-step { width:30px; height:30px; }
}
/* お友達の入力をテンキーと同じ高さに（名前3段＋下の段＝4段）。見出しの行は3つのゲームの切り替えが収まるよう少し詰める */
#screenParticipantRoundScore .prs-name { height:var(--prs-key-h); }
#screenParticipantRoundScore .prs-picker-foot { height:var(--prs-key-h); }
#screenParticipantRoundScore .prs-picker-foot .prs-key { height:100%; }
#screenParticipantRoundScore .prs-hole { gap:6px; }
#screenParticipantRoundScore .prs-hole-title b, #screenParticipantRoundScore .prs-hole-title span, #screenParticipantRoundScore .prs-hole-title em { font-size:15px; }
#screenParticipantRoundScore .prs-hole-title em { margin-left:6px; }
#screenParticipantRoundScore .prs-game-tab { height:28px; padding:0 7px; font-size:11px; }
@media (max-width:374px) {
  #screenParticipantRoundScore .prs-hole-title b, #screenParticipantRoundScore .prs-hole-title span, #screenParticipantRoundScore .prs-hole-title em { font-size:13px; }
  #screenParticipantRoundScore .prs-hole-title em { margin-left:4px; }
  #screenParticipantRoundScore .prs-game-tab { padding:0 4px; font-size:10px; letter-spacing:-.03em; }
}
/* 切り替えのボタンの高さで見出しの行が高くならないようにする。低い画面ではお友達の枠もテンキーと同じに詰める */
#screenParticipantRoundScore .prs-game-tab { height:22px; line-height:22px; }
#screenParticipantRoundScore .prs-game-tabs { padding:1px; }
@media (max-height:640px) {
  #screenParticipantRoundScore .prs-picker { gap:5px; padding:6px 8px; }
  #screenParticipantRoundScore .prs-picker-names { gap:5px; }
}
/* お友達：点が出るまでの「スコア待ち」の表示（2026-10-14） */
#screenParticipantRoundScore .prs-field b.is-wait { font-size:14px; line-height:1.4; letter-spacing:.02em; }

/* ゲームの結果（2026-10-14 社長承認 DEC-058）：合計の「ゲーム」を押すと、下メニューの上に重ねて開く */
#screenParticipantRoundScore .prs-totals-game { cursor:pointer; -webkit-tap-highlight-color:transparent; }
#screenParticipantRoundScore .prs-totals-game small::after { content:" ›"; color:#f3dc9c; }
#screenParticipantRoundScore .prs-totals-game b { border-color:#f3dc9c !important; }
#screenParticipantRoundScore .prs-results { position:absolute; left:0; right:0; top:0; bottom:calc(57px + env(safe-area-inset-bottom, 0px)); z-index:7; display:flex; flex-direction:column; gap:10px; padding:calc(12px + env(safe-area-inset-top, 0px)) 12px 12px; overflow-y:auto; background:radial-gradient(120% 60% at 50% 0%,#0a3a26 0%,#04231a 45%,#01120c 100%); }
#screenParticipantRoundScore .prs-results-head { display:flex; align-items:center; justify-content:space-between; }
#screenParticipantRoundScore .prs-results-head h2 { font-size:20px; font-weight:700; letter-spacing:.06em; color:#f3dc9c; }
#screenParticipantRoundScore .prs-results-close { height:34px; padding:0 14px; border:1px solid rgba(215,184,114,.6); border-radius:17px; background:linear-gradient(180deg,#1c7148 0%,#0d4a2e 55%,#06301d 100%); box-shadow:none; color:#f5f0e2; font-size:14px; font-weight:700; }
#screenParticipantRoundScore .prs-results-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; padding:2px; border:1px solid rgba(215,184,114,.55); border-radius:999px; background:rgba(1,14,9,.6); }
#screenParticipantRoundScore .prs-results-tabs .prs-game-tab { height:32px; line-height:32px; padding:0 2px; font-size:12px; text-align:center; }
#screenParticipantRoundScore .prs-results-net { display:flex; align-items:baseline; justify-content:space-between; padding:8px 14px; border:2px solid transparent; border-radius:12px; background:linear-gradient(180deg,#08301f,#021209) padding-box, var(--prs-gold-frame) border-box; }
#screenParticipantRoundScore .prs-results-net span { font-size:15px; font-weight:700; color:#fff; }
#screenParticipantRoundScore .prs-results-net b { font-size:30px; font-weight:900; color:#f3dc9c; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-results-table { display:flex; flex-direction:column; border:1.5px solid transparent; border-radius:12px; overflow:hidden; background:linear-gradient(180deg,#07301f,#03190f) padding-box, var(--prs-gold-frame) border-box; }
#screenParticipantRoundScore .prs-results-row { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr) minmax(0,1fr); align-items:center; gap:6px; width:100%; min-height:52px; margin:0; padding:6px 12px; border:0; border-top:1px solid rgba(215,184,114,.3); border-radius:0; background:none; box-shadow:none; color:#fff; font-size:17px; font-weight:800; text-align:left; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-results-row > span:nth-child(2), #screenParticipantRoundScore .prs-results-row > span:nth-child(3) { text-align:right; }
#screenParticipantRoundScore .prs-results-row.is-head { min-height:30px; border-top:0; background:rgba(1,14,9,.5); color:var(--prs-sub); font-size:11.5px; font-weight:700; }
#screenParticipantRoundScore .prs-results-row.is-link::after { content:""; }
#screenParticipantRoundScore .prs-results-row.is-link > span:first-child::after { content:" ›"; color:#f3dc9c; }
#screenParticipantRoundScore .prs-results-row.is-me { background:linear-gradient(180deg,#0f4a30,#062a1a); }
#screenParticipantRoundScore .prs-results-row.is-total { background:rgba(243,220,156,.12); font-size:15px; }
#screenParticipantRoundScore .prs-results-row.is-total > span:last-child { font-size:24px; }
#screenParticipantRoundScore .prs-results-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#screenParticipantRoundScore .prs-results-name i { display:inline-block; margin-right:5px; padding:0 6px; border:1px solid rgba(160,230,190,.6); border-radius:5px; font-style:normal; font-size:11px; line-height:16px; background:linear-gradient(180deg,#2aa56c,#0d6a40); vertical-align:2px; }
#screenParticipantRoundScore .prs-results-name small { display:block; font-size:10.5px; line-height:14px; font-weight:700; color:var(--prs-sub); }
#screenParticipantRoundScore .is-plus { color:#ff8a8f !important; }
#screenParticipantRoundScore .is-minus { color:#8fb6ff !important; }
#screenParticipantRoundScore .prs-results-note { font-size:12.5px; line-height:1.7; color:var(--prs-sub); }
@media (max-height:640px) {
  #screenParticipantRoundScore .prs-results { bottom:calc(50px + env(safe-area-inset-bottom, 0px)); }
}
#screenParticipantRoundScore .prs-results-link { width:100%; min-height:46px; padding:8px 12px; border:1.5px solid var(--prs-gold); border-radius:10px; background:linear-gradient(180deg,#17704a 0%,#0c4a2e 52%,#052a19 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 3px 7px rgba(0,0,0,.5); color:#fff; font-size:15px; font-weight:700; }

/* 換算表（2026-10-14 DEC-059） */
#screenParticipantRoundScore .prs-rate-ctl { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
#screenParticipantRoundScore .prs-rate-ctl b { min-width:3.2em; text-align:center; color:#f3dc9c; font-size:17px; }
#screenParticipantRoundScore .prs-rate-step { width:34px; height:34px; min-height:0; padding:0; border:1.5px solid rgba(215,184,114,.6); border-radius:10px; background:#0a3a25; color:#fff; font-size:18px; font-weight:900; line-height:1; }
#screenParticipantRoundScore .prs-rate-table .prs-results-row { grid-template-columns:minmax(0,1fr) 0 auto; }
#screenParticipantRoundScore .prs-vs-table .prs-results-name small { white-space:normal; overflow:visible; text-overflow:clip; line-height:1.35; }
/* 換算の数値入力（2026-10-14） */
#screenParticipantRoundScore .prs-rate-ctl b { min-width:0; }
#screenParticipantRoundScore .prs-rate-input { width:5.2em; height:40px; margin:0; padding:0 10px; border:1.5px solid rgba(215,184,114,.7); border-radius:10px; background:#021209; color:#f3dc9c; font-size:18px; font-weight:900; text-align:right; font-variant-numeric:tabular-nums; box-sizing:border-box; }
#screenParticipantRoundScore .prs-rate-input:focus { outline:2px solid #f3dc9c; outline-offset:1px; }
/* ゲームの結果の白い文字を少し小さく（2026-10-14 社長指示） */
#screenParticipantRoundScore .prs-results-row { font-size:15px; min-height:46px; }
#screenParticipantRoundScore .prs-results-row.is-head { font-size:11.5px; min-height:30px; }
#screenParticipantRoundScore .prs-results-row.is-total { font-size:14px; }
#screenParticipantRoundScore .prs-results-row.is-total > span:last-child { font-size:21px; }
#screenParticipantRoundScore .prs-results-net span { font-size:14px; }
/* 換算の入力欄を小さく・行の上下の隙間を均等に（2026-10-14 社長指示） */
#screenParticipantRoundScore .prs-rate-table .prs-results-row:not(.is-head) { min-height:0; padding:8px 12px; }
#screenParticipantRoundScore .prs-rate-input { height:32px; font-size:15px; padding:0 8px; }
#screenParticipantRoundScore .prs-rate-ctl b { font-size:15px; line-height:32px; }
#screenParticipantRoundScore .prs-vs-table .prs-results-row:not(.is-head) { padding:8px 12px; }
/* まとめの枠どうしの間を均等に（2026-10-14 社長指示。説明文を外して枠がくっついたため） */
#screenParticipantRoundScore .prs-results-body > * + * { margin-top:12px; }
/* ゲームの結果：縦の窮屈さをなくす（2026-10-14 社長指示「全体的に縦幅が窮屈なのでバランスをとって」） */
#screenParticipantRoundScore .prs-results { gap:14px; padding-bottom:20px; }
#screenParticipantRoundScore .prs-results-body > * + * { margin-top:18px; }
#screenParticipantRoundScore .prs-results-row { min-height:54px; padding:10px 14px; }
#screenParticipantRoundScore .prs-results-row.is-head { min-height:34px; padding:6px 14px; }
#screenParticipantRoundScore .prs-rate-table .prs-results-row:not(.is-head),
#screenParticipantRoundScore .prs-vs-table .prs-results-row:not(.is-head) { min-height:54px; padding:11px 14px; }
#screenParticipantRoundScore .prs-results-row.is-total { min-height:58px; }
#screenParticipantRoundScore .prs-results-name small { margin-top:3px; }
#screenParticipantRoundScore .prs-results-net { padding:12px 14px; }

/* ゲームの結果：ホールごとの点（4人分）（2026-10-14） */
#screenParticipantRoundScore .prs-hole-grid { display:grid; margin-top:18px; border:1.5px solid transparent; border-radius:12px; overflow:hidden; background:linear-gradient(180deg,#07301f,#03190f) padding-box, var(--prs-gold-frame) border-box; font-variant-numeric:tabular-nums; }
#screenParticipantRoundScore .prs-hole-grid > span { display:flex; align-items:center; justify-content:center; min-height:34px; padding:0 2px; border-top:1px solid rgba(215,184,114,.22); color:#fff; font-size:15px; font-weight:800; overflow:hidden; white-space:nowrap; }
#screenParticipantRoundScore .prs-hole-grid > span.is-head { min-height:34px; border-top:0; background:rgba(1,14,9,.5); color:var(--prs-sub); font-size:12px; font-weight:700; }
#screenParticipantRoundScore .prs-hole-grid > span.is-no { color:var(--prs-sub); font-size:12.5px; }
#screenParticipantRoundScore .prs-hole-grid > span.is-me { background:rgba(42,165,108,.16); }
#screenParticipantRoundScore .prs-hole-grid > span.is-head.is-me { color:#f3dc9c; }
#screenParticipantRoundScore .prs-hole-grid > span.is-sub { background:rgba(243,220,156,.12); color:#f3dc9c; font-size:14px; }

/* 遊ぶゲームを選ぶ（3つまで。2026-10-14 DEC-061） */
#screenParticipantRoundScore .prs-game-chooser-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px; border-top:1px solid rgba(215,184,114,.3); }
#screenParticipantRoundScore .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; }
#screenParticipantRoundScore .prs-game-choice.is-on { border-color:#f3dc9c; background:linear-gradient(180deg,#e9cf86,#b8913f); color:#1d1606; }
#screenParticipantRoundScore .prs-game-tab[hidden] { display:none !important; }

/* ゲームのタブの横の「選ぶ」と、選ぶ画面（2026-10-14） */
#screenParticipantRoundScore .prs-game-right { display:flex; align-items:center; gap:6px; min-width:0; }
#screenParticipantRoundScore .prs-game-choose { flex:0 0 auto; height:26px; min-height:0; margin:0; padding:0 10px; border:1.5px solid #f3dc9c; border-radius:999px; background:linear-gradient(180deg,#e9cf86,#b8913f); color:#1d1606; font-size:12px; font-weight:900; line-height:1; white-space:nowrap; }
#screenParticipantRoundScore .prs-choose { position:absolute; inset:0; z-index:8; display:flex; align-items:flex-end; background:rgba(0,0,0,.55); }
#screenParticipantRoundScore .prs-choose[hidden] { display:none; }
#screenParticipantRoundScore .prs-choose-panel { width:100%; padding:14px 12px calc(14px + env(safe-area-inset-bottom, 0px)); border-top:2px solid #d7b872; border-radius:18px 18px 0 0; background:radial-gradient(120% 80% at 50% 0%,#0a3a26 0%,#04231a 60%,#01120c 100%); }
#screenParticipantRoundScore .prs-choose-done { width:100%; height:48px; margin-top:12px; border:1.5px solid #f3dc9c; border-radius:12px; background:linear-gradient(180deg,#e9cf86,#b8913f); color:#1d1606; font-size:17px; font-weight:900; }
#screenParticipantRoundScore .prs-toast { z-index:9; }
/* 名前の長いゲームが3つ並ぶと入りきらないため、タブは横にスクロール（選んでいるタブは見える位置へ。2026-10-14） */
#screenParticipantRoundScore .prs-game-right { flex:1 1 auto; justify-content:flex-end; }
#screenParticipantRoundScore .prs-game-tabs { overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
#screenParticipantRoundScore .prs-game-tabs::-webkit-scrollbar { display:none; }
#screenParticipantRoundScore .prs-game-tabs .prs-game-tab { flex:0 0 auto; }
