/* player-profile-nickname-fit-v1-20260912
 *
 * 个人中心昵称按长度分档缩字号。档位由 player-profile-nickname-fit-v1-20260912.js 打在节点上。
 *
 * 为什么用 class 而不是直接写行内 font-size：
 *   显示层那个 span 由 player-safe-bundle-v309-03 的 ensureNicknameDisplay() 维护，它每次都执行
 *   display.style.cssText = "..." （整段覆盖，清掉全部行内样式），再把 h1 的 computed font-size
 *   抄回去。任何写在行内的字号都会被它抹掉，而 class 不受 cssText 影响，且该脚本的
 *   MutationObserver 只看 childList/characterData，不看 attributes，所以改 class 不会引它重跑。
 *
 * 这里带 !important 是为了压过它抄回去的行内字号（那个值没有 !important）。
 */

html body #root .player-shell .profile-page .profile-name [data-nickname-display="1"].ruay55-nick-17,
html body #root .player-shell .profile-page .profile-name h1.ruay55-nick-17 { font-size: 17px !important; }

html body #root .player-shell .profile-page .profile-name [data-nickname-display="1"].ruay55-nick-16,
html body #root .player-shell .profile-page .profile-name h1.ruay55-nick-16 { font-size: 16px !important; }

html body #root .player-shell .profile-page .profile-name [data-nickname-display="1"].ruay55-nick-15,
html body #root .player-shell .profile-page .profile-name h1.ruay55-nick-15 { font-size: 15px !important; }

html body #root .player-shell .profile-page .profile-name [data-nickname-display="1"].ruay55-nick-14,
html body #root .player-shell .profile-page .profile-name h1.ruay55-nick-14 { font-size: 14px !important; }

html body #root .player-shell .profile-page .profile-name [data-nickname-display="1"].ruay55-nick-13,
html body #root .player-shell .profile-page .profile-name h1.ruay55-nick-13 { font-size: 13px !important; }

html body #root .player-shell .profile-page .profile-name [data-nickname-display="1"].ruay55-nick-12,
html body #root .player-shell .profile-page .profile-name h1.ruay55-nick-12 { font-size: 12px !important; }
