/* Daily comparisons use one score definition and the same columns in both lists. */
#app-ranking { container:hc-ranking / inline-size; }
.hc-board-pagination { display:grid; justify-items:center; gap:10px; padding:16px 0; }
.hc-board-pagination p { margin:0; font-size:12px; line-height:1.6; color:var(--muted); text-align:center; overflow-wrap:anywhere; }
.hc-board-pagination button { min-height:44px; max-width:100%; padding:10px 22px; border-radius:6px; }
#app-ranking .hc-rank-summary { border-radius:8px; padding:18px; }
.hc-rank-context { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; color:#d8d2c9; font-size:.6875rem; line-height:1.6; }
.hc-rank-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr)); gap:16px; margin:18px 0 12px; }
.hc-rank-metrics>div { min-width:0; }
.hc-rank-metrics span,#hc-rank-label { display:block; margin:0 0 6px; font-size:.75rem; line-height:1.5; color:#d8d2c9; }
.hc-rank-metrics strong { display:block; font-size:1.5rem; font-weight:650; line-height:1.3; overflow-wrap:anywhere; letter-spacing:0; }
.hc-rank-metrics #hc-my-score { font-size:2rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
#app-ranking .hc-rank-summary p { margin:8px 0 0; font-size:.8125rem; line-height:1.6; overflow-wrap:anywhere; }
#app-ranking .hc-rank-summary .hc-rank-score-note { font-size:.6875rem; padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid #ffffff30; }
#app-ranking .hc-rank-summary[aria-busy=true] #hc-my-rank { font-size:1rem; }
#app-ranking :is(.hc-nearby,.hc-top-ranks) { border-radius:0; }
#app-ranking .hc-nearby-note { font-size:.75rem; }
.hc-board-head,#app-ranking :is(#board,#hc-nearby-board)>li:not(.muted) { display:grid; grid-template-columns:3.2rem minmax(0,1fr) 4.1rem; align-items:center; gap:6px 10px; }
.hc-board-head { padding:10px 8px; color:var(--muted); font-size:.6875rem; line-height:1.5; border-bottom:1px solid var(--line); }
.hc-board-head span { min-width:0; overflow-wrap:anywhere; }
.hc-board-head span:nth-child(3) { text-align:right; }
.hc-board-head span:nth-child(4) { display:none; }
#app-ranking :is(#board,#hc-nearby-board)>li:not(.muted) { min-height:76px; padding:12px 8px; }
#app-ranking :is(#board,#hc-nearby-board) .rank { grid-column:1; grid-row:1/3; font-size:.75rem; font-weight:500; color:var(--muted); line-height:1.5; min-width:0; overflow-wrap:anywhere; }
#app-ranking .hc-rival-player { grid-column:2; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:4px 8px; min-width:0; }
#app-ranking .board .name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; white-space:normal; overflow-wrap:anywhere; font-size:.8125rem; line-height:1.5; min-width:0; }
#app-ranking .hc-me-marker { display:inline-flex; align-items:center; padding:2px 6px; border-radius:3px; background:#62503c; color:#fff; font-size:.625rem; line-height:1.4; font-weight:650; }
#app-ranking .hc-board-score { grid-column:3; text-align:right; font-size:.9375rem; line-height:1.4; font-variant-numeric:tabular-nums; font-weight:650; }
#app-ranking .hc-score-difference { grid-column:2/-1; font-size:.75rem; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
#app-ranking .board .hc-board-me { border-block:1px solid #ccb79a; background:#eee6d9; }
#app-ranking .board .hc-board-me .name { font-weight:700; }
#app-ranking .hc-board-target .hc-score-difference { color:#984622; font-weight:600; }
@container hc-ranking (min-width:38rem) {
 .hc-board-head,#app-ranking :is(#board,#hc-nearby-board)>li:not(.muted) { grid-template-columns:3.7rem minmax(0,1fr) 4.8rem minmax(9.5rem,.8fr); gap:12px; }
 .hc-board-head span:nth-child(4) { display:block; }
 #app-ranking :is(#board,#hc-nearby-board) .rank { grid-row:1; }
 #app-ranking .hc-score-difference { grid-column:4; }
}

.today-record { container:hc-record / inline-size; }
.hc-record-objects li { grid-template-columns:4rem minmax(0,1fr); gap:5px 12px; align-items:center; min-width:0; }
.hc-record-objects .hc-object-number { display:none; }
.hc-object-preview { grid-column:1; grid-row:1/3; width:100%; height:auto; aspect-ratio:1; display:block; background:#eee9df; border-radius:6px; }
.hc-record-objects li>strong { grid-column:2; font-size:.875rem; line-height:1.5; letter-spacing:0; }
.hc-record-objects li>small { grid-column:2; display:flex; flex-wrap:wrap; gap:3px 10px; font-size:.75rem; line-height:1.6; min-width:0; }
.hc-record-objects li>small span { overflow-wrap:anywhere; }
.hc-record-objects .hc-score-value { white-space:normal; }
.hc-record-objects li>small span[hidden] { display:none; }
@container hc-record (max-width:22rem) { .hc-record-objects li { grid-template-columns:3.2rem minmax(0,1fr); } }
