/* 片手操作とiPhoneの入力欄拡大を考慮したアカウント画面。 */
.account-form { width: min(100%, 360px); display: grid; gap: 14px; text-align: left; }
.account-form h2 { font-size: 1.4rem; margin: 0; }
.account-form label { display: grid; gap: 6px; font-size: 1rem; }
.account-form input { font: inherit; font-size: 16px; min-height: 48px; width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #7685a8; border-radius: 8px; background: #101a32; color: #fff; }
.account-form .account-import { display: flex; align-items: center; line-height: 1.5; }
.account-form input[type=checkbox] { width: 24px; min-width: 24px; height: 24px; min-height: 24px; }
.account-form p { margin: 0; font-size: 1rem; line-height: 1.5; }
.account-form input:focus-visible { outline: 3px solid #ffdb83; outline-offset: 2px; }

/* 小さい画面でも順位とスコアを読める、スクロール可能なランキング。 */
#world-ranking { box-sizing: border-box; width: min(94vw, 620px); max-height: 85dvh; padding: 22px; background: #101a32; color: #eef4ff; border: 1px solid #6278a3; border-radius: 16px; overflow: auto; }
#world-ranking::backdrop { background: #030817dc; }
#world-ranking select, #world-ranking input { font: inherit; font-size: 16px; min-height: 44px; max-width: 100%; }
#world-ranking [data-name-form] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#world-ranking [data-name-form] label { min-width: 0; max-width: 100%; }
#world-ranking button { font: inherit; font-size: 14px; min-height: 44px; padding: 8px 12px; }
.ranking-heading, .ranking-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ranking-heading { justify-content: space-between; }
.ranking-heading h2 { font-size: 22px; margin: 0; }
#world-ranking p { font-size: 14px; line-height: 1.6; }
.ranking-table { overflow-x: auto; margin-top: 18px; }
.ranking-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.ranking-table th, .ranking-table td { padding: 12px 4px; text-align: left; border-bottom: 1px solid #2d4165; }
.ranking-table th:last-child, .ranking-table td:last-child { text-align: right; }
.ranking-you { color: #64e6ff; background: #18344b; }
.ranking-note { color: #a6b5d2; }
#account-bar { flex-wrap: wrap; }
#account-bar #cloud-status { flex-basis: 100%; }
