/*
 * 発信元: claude（Phase3 引き継ぎ）／発信先: codex、モコ（企画部）、オーナー
 * 参加番号と名前の共通表示（画面契約_v1 §1-3）。participant-label.js と対で使う。
 * 値は tokens_v1.css（design-tokens.css は .crtto-modern の中だけで効くため、ここでは同じ値を代替値として持つ）。
 */
.pn { min-width: 0; color: var(--text, #172240); }
.pn-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pn-visual { display: inline-flex; align-items: center; gap: var(--sp-2, 8px); min-width: 0; max-width: 100%; }
.pn-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-chip, .pn-num, .pn-nums, .pn-self-num {
  font-family: var(--font-num, 'Inter', 'Helvetica Neue', Arial, sans-serif);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 番号チップ（小）：地 --navy-tint、文字 --text、13px 太字、角丸 --r-s、高さ 20px、最小幅 24px。色は状態を表さない */
.pn-chip {
  display: inline-grid; place-items: center; flex: none;
  min-width: 24px; height: 20px; padding: 0 4px; box-sizing: border-box;
  border-radius: var(--r-s, 6px); background: var(--navy-tint, #E9EBF1);
  color: var(--text, #172240); font-size: 13px; font-weight: 700; line-height: 1;
}

/* 名簿の行：名前中心は チップ → 名前 18px 太字／番号中心は 番号 20px 太字（3桁分で右寄せ）→ 名前 16px */
.pn-row-name .pn-name { font-size: 18px; font-weight: 700; }
.pn-row-number .pn-num {
  flex: none; display: inline-block; width: 3ch; text-align: right;
  font-size: 20px; font-weight: 700; line-height: 1.2;
}
.pn-row-number .pn-name { font-size: 16px; font-weight: 400; }

/* 試合表・スコアのペア */
.pn-pair { display: block; text-align: inherit; }
.pn-pair .pn-visual { display: inline-flex; flex-direction: column; align-items: inherit; gap: 2px; }
.pn-pair-name .pn-names { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.pn-member { display: inline-flex; align-items: center; gap: var(--sp-1, 4px); min-width: 0; max-width: 100%; }
.pn-pair-name .pn-name { font-weight: 700; }
.pn-pair-number .pn-nums { font-size: 20px; font-weight: 700; line-height: 1.2; }
.pn-pair-number .pn-names { display: inline-flex; flex-wrap: wrap; justify-content: center; min-width: 0; font-size: var(--fs-small, 14px); }
.pn-sep { flex: none; padding: 0 1px; }

/* 自分の名前（番号中心のときは番号）に引くコーラルの下線（P4・P5） */
.pn-self { text-decoration: underline; text-decoration-color: var(--coral, #F04A2E); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* 自分の番号（P3 成功・P4）：「チェックイン済み ・ 参加番号 12」 */
.pn-self-badge {
  margin: 0; padding: var(--sp-3, 12px); border: 2px solid var(--ok, #1E6447); border-radius: var(--r-m, 10px);
  background: var(--ok-bg, #E5F2EA); color: var(--ok, #1E6447); font-size: var(--fs-small, 14px); font-weight: 700;
}
.pn-self-badge .pn-self-num { font-size: var(--fs-num, 2rem); font-weight: 700; line-height: 1.1; vertical-align: -0.1em; }
/* ヘッダー下の1行（P5・P6・P7） */
.pn-self-line { margin: 0; color: var(--text-muted, #4A5268); font-size: var(--fs-small, 14px); }
.pn-self-line .pn-self-num { color: var(--text, #172240); font-weight: 700; }
