/* Account preferences and the cover-led ranking shelf. */
body.v-home .brand-wordmark {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: 1.2;
  color: #a78bfa;
  padding: 5px 2px 2px 0;
}
:root[data-theme="light"] body.v-home .brand-wordmark { color: #7351c7; }
.settings-body { padding-top: 22px; padding-bottom: 20px; }
.settings-account { padding: 25px 20px 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg2); }
.account-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 21px; }
.account-avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: none; background: var(--card); border: 1px solid var(--line); border-radius: 50%; }
.account-avatar svg { width: 25px; height: 25px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.account-intro h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.045em; }
.account-intro p { margin: 0; color: var(--sub); font-size: 12px; line-height: 1.6; }
.account-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.account-links button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 15px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; font-size: 12px; cursor: pointer; }
.account-links b { font-size: 16px; }
.setting-section { margin-top: 32px; }
.setting-section h2 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.035em; }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.theme-choice { position: relative; min-height: 116px; display: grid; justify-items: center; align-content: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 19px; cursor: pointer; color: var(--sub); font-size: 12px; }
.theme-choice[aria-pressed="true"] { background: var(--card); border-color: var(--accent); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-choice .mode-icon { width: 39px; height: 39px; padding: 8px; background: var(--card); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-choice[aria-pressed="true"] .mode-icon { background: var(--accent); color: var(--on-accent); }
.choice-tick { position: absolute; right: 8px; top: 7px; opacity: 0; font-size: 10px; }
.theme-choice[aria-pressed="true"] .choice-tick { opacity: 1; }
.settings-hint { margin: 11px 0 0; color: var(--mute); font-size: 11px; line-height: 1.6; }
.setting-list { border: 1px solid var(--line); border-radius: 19px; overflow: hidden; background: var(--bg2); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 74px; padding: 16px; border: 0; background: none; text-align: left; }
.setting-row + .setting-row { border-top: 1px solid var(--line); }
.setting-row strong { display: block; font-size: 14px; font-weight: 500; }
.setting-row small { display: block; margin-top: 5px; color: var(--mute); font-size: 11px; line-height: 1.5; }
.setting-row button, button.setting-row { cursor: pointer; }
.size-options { display: flex; flex: none; gap: 4px; background: var(--card); border-radius: 11px; padding: 3px; }
.size-options button { min-width: 44px; min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--sub); font-size: 12px; }
.size-options button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.setting-switch { display: inline-flex; flex: none; width: 44px; height: 26px; padding: 3px; border-radius: 999px; background: var(--line); transition: background .2s; }
.setting-switch::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--sub); transition: transform .2s; }
[aria-checked="true"] .setting-switch { background: var(--accent); }
[aria-checked="true"] .setting-switch::after { transform: translateX(18px); background: var(--on-accent); }
.setting-chevron { font-size: 23px; font-weight: 400; color: var(--mute); }
.settings-signout { margin-top: 20px; padding: 10px 0; border: 0; background: none; color: var(--sub); font-size: 12px; cursor: pointer; }
.ranking-intro { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 22px; }
.ranking-intro h1 { margin: 0; font-size: 29px; letter-spacing: -.055em; line-height: 1.25; }
.ranking-intro p { margin: 8px 0 0; color: var(--sub); font-size: 12px; }
.ranking-label { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--mute); font-size: 10px; white-space: nowrap; }
.rank-filters { display: flex; gap: 7px; padding-bottom: 18px; }
.rank-filters button { min-height: 36px; padding: 8px 17px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--sub); font-size: 12px; cursor: pointer; }
.rank-filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; }
.ranking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; list-style: none; margin: 0; padding: 0; }
.ranking-grid li { min-width: 0; }
.rank-cover { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.92; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); text-align: left; }
button.rank-cover { cursor: pointer; color: #fff; }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
button.rank-cover::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.36) 45%, rgba(0,0,0,.88)); }
.rank-cover-copy { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 47px; }
.rank-cover-copy small { display: block; font-size: 9px; color: rgba(255,255,255,.8); margin-bottom: 5px; }
.rank-cover-copy b { display: block; font-size: clamp(13px, 3.8vw, 17px); line-height: 1.35; letter-spacing: -.04em; overflow-wrap: normal; }
.rank-number { position: absolute; z-index: 1; bottom: 11px; left: 10px; display: grid; place-items: center; min-width: 30px; height: 25px; padding: 0 8px; border-radius: 7px; background: rgba(0,0,0,.65); color: #fff; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-placeholder .rank-number { background: var(--card); color: var(--mute); }
.rank-preview-note { margin: 21px 0 7px; color: var(--mute); font-size: 11px; line-height: 1.65; text-align: center; }
.tabbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabbar button[data-go="ranking"] svg { fill: none; stroke: currentColor; stroke-width: 2; }
.tabbar .nav-solid { display: none; fill: currentColor; stroke: none; }
.tabbar button.on .nav-outline { display: none; }
.tabbar button.on .nav-solid { display: inline; }
html[data-text-size="large"] .setting-row strong { font-size: 16px; }
html[data-text-size="large"] .setting-row small, html[data-text-size="large"] .account-intro p { font-size: 13px; }
html[data-text-size="large"] .rank-cover-copy b { font-size: clamp(15px, 4.3vw, 19px); }
@media (max-width: 350px) {
  .settings-account { padding: 21px 15px 17px; }
  .theme-options { gap: 6px; }
  .rank-filters button { padding-inline: 14px; }
  .rank-cover-copy { left: 8px; right: 8px; }
}

/* 긴 표지(글자 포함)를 쓰는 랭킹 카드 */
.rank-cover.has-cv img { object-position: 50% 50%; }
button.rank-cover.has-cv::after { inset: 78% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.rank-cover.has-cv .rank-cover-copy { display: none; }
.rank-cover.has-cv .rank-number { top: 8px; bottom: auto; left: 8px; }
