/* ランキング（rank.js）の見た目：結果の画面の中。紺の太い線＋クリームのポップ */
.rank { margin: 14px 0 4px; text-align: left; }
.rank-head { margin: 0 0 6px; font-weight: 900; font-size: 14px; display: flex; align-items: baseline; gap: 6px; }
.rank-head small { font-size: 10px; font-weight: 900; background: #ffc93c; border: 2px solid #2a2350; border-radius: 99px; padding: 0 6px; }
.rank-form { display: flex; gap: 6px; }
.rank-form[hidden] { display: none !important; }
.rank-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; font-weight: bold; padding: 8px 10px; border: 3px solid #2a2350; border-radius: 12px; background: #fff; color: #2a2350; }
.rank-form input:focus { outline: 3px solid #ffc93c; outline-offset: 1px; }
.rank-form button { flex: none; font-weight: 900; font-size: 15px; color: #fff; background: #4cb8f5; border: 3px solid #2a2350; border-radius: 12px; padding: 0 14px; box-shadow: 0 4px 0 #2a2350; }
.rank-form button:active { transform: translateY(4px); box-shadow: none; }
.rank-form button:disabled { background: #c9c3d9; }
.rank-msg { min-height: 1.2em; margin: 6px 0 4px; font-size: 12px; font-weight: bold; color: #e04f2f; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; max-height: 210px; overflow-y: auto; }
.rank-list li { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #2a2350; border-radius: 10px; padding: 2px 8px; font-size: 13px; font-weight: bold; }
.rank-list li b { width: 1.6em; text-align: center; font-weight: 900; }
.rank-list li:nth-child(1) b { color: #e0a000; } .rank-list li:nth-child(2) b { color: #8a96a8; } .rank-list li:nth-child(3) b { color: #b87333; }
.rank-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list li em { font-style: normal; font-variant-numeric: tabular-nums; }
.rank-list li em small { margin-left: 4px; font-size: 10px; color: #5d5780; }
.rank-list li.me { background: #fff1c9; border-color: #e0a000; }
.rank-list li.empty { justify-content: center; color: #5d5780; font-weight: normal; }
.rank-note { margin: 6px 0 0; font-size: 10.5px; color: #5d5780; }
