#ranking-root .ranking-layout .player-title{gap:7px;flex-wrap:nowrap}
#ranking-root .combat-sorts,#ranking-root .mining-sorts{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
#ranking-root .ranking-layout .player-actions{display:inline-flex;align-items:center;gap:4px;margin-top:6px;white-space:nowrap}
#ranking-root .ranking-layout .player-actions .player-stats-button{margin:0}
@media(max-width:1050px){
 #ranking-root .ranking-layout thead th:nth-child(4),#ranking-root .ranking-layout thead th:nth-child(7){width:auto;flex:0 0 auto}
 #ranking-root .ranking-layout thead tr{flex-wrap:wrap}
 #ranking-root .ranking-layout thead th:nth-child(7){margin-left:auto}
 #ranking-root .ranking-layout .player-layout{position:relative}
 #ranking-root .ranking-layout .avatar{width:40px;height:40px}
 #ranking-root .ranking-layout .player-main{position:static;padding-bottom:24px}
 #ranking-root .ranking-layout .player-actions{position:absolute;left:0;bottom:0;margin:0}
 #ranking-root .ranking-layout .player-actions .player-stats-button{font-size:10px;line-height:17px;padding:1px 5px}
 #ranking-root .ranking-layout .player-actions .compare-button{font-size:10px;line-height:17px;padding:1px 5px;min-height:0}
 #ranking-root .ranking-layout .time{margin-left:122px;flex-wrap:nowrap;white-space:nowrap}
}
#ranking-root .ranking-layout .player-title>strong{min-width:0;overflow-wrap:anywhere;white-space:normal}
#ranking-root .compare-button{flex:none;display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;min-height:26px;border:1px solid #b9d1c5;border-radius:6px;background:#f0f7f3;color:#276550;font:600 11px/1.4 "Microsoft YaHei",sans-serif;white-space:nowrap;cursor:pointer}
#ranking-root .compare-button[aria-pressed="true"]{background:#24775f;color:#fff;border-color:#24775f}
.comparison-launcher{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));z-index:30;width:64px;height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:1px solid #ffffff55;border-radius:50%;color:#fff;background:#23745e;box-shadow:0 5px 22px #163a3c33;cursor:pointer}
.comparison-launcher:hover{background:#195d49}.comparison-vs{font-size:21px;line-height:1.2;font-weight:800;letter-spacing:1px}.comparison-count{font-size:10px;line-height:1.6;opacity:.9}
.comparison-notice{position:fixed;right:22px;bottom:102px;z-index:35;max-width:calc(100vw - 44px);padding:12px 16px;border:1px solid #c8ded1;border-radius:10px;background:#fff;color:#285341;box-shadow:0 4px 20px #163a3c20;font-size:13px}
.comparison-dialog{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #d1e0d7;border-radius:18px;color:#244b3e;background:white;overflow:hidden;box-shadow:0 24px 90px #133c3438}
.comparison-dialog[open]{display:flex;flex-direction:column}
.comparison-dialog::backdrop{background:#183f4675}
.comparison-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 12px;flex:none}
.comparison-head .eyebrow{color:#709a87;font-size:10px;letter-spacing:2px}.comparison-head h2{font-size:23px;margin:3px 0 0;line-height:1.4}.comparison-head h2 span{font-size:12px;color:#6c897c;font-weight:500;vertical-align:middle;margin-left:7px}
.comparison-close,.comparison-remove{border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;background:#eaf2ed;color:#547567;cursor:pointer}
.comparison-close{width:36px;height:36px;font-size:25px}.comparison-remove{width:28px;height:28px;font-size:20px}.comparison-remove:hover{background:#d5e5db;color:#214f3d}
.comparison-help{flex:none;margin:0;padding:0 24px 14px;font-size:12px;color:#70887a}
.comparison-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;border-block:1px solid #dbe7df;isolation:isolate}
#comparison-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:calc(155px + var(--comparison-players)*180px);font-variant-numeric:tabular-nums;line-height:1.5;font-size:14px}
#comparison-table th,#comparison-table td{padding:12px 16px;border-bottom:1px solid #e6eee8;text-align:center}
#comparison-table thead th{position:sticky;top:0;z-index:3;background:#edf5ef;height:99px;border-bottom:1px solid #cbded0;font-weight:600}
#comparison-table thead th:first-child{left:0;z-index:4;width:195px;text-align:left;color:#4e725f}
.comparison-profile{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}.comparison-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border-radius:50%;background:#d4e5db;color:#42765a;font-size:18px;overflow:hidden}.comparison-avatar img{width:100%;height:100%;object-fit:cover}.comparison-name{min-width:0;overflow-wrap:anywhere;font-size:15px}.comparison-server{font-size:11px;color:#7e9488;margin-top:5px;font-weight:400}
#comparison-table tbody th[scope="row"]{position:sticky;left:0;z-index:1;background:#f6f9f6;text-align:left;font-size:13px;font-weight:500;color:#547562}
#comparison-table tbody td{background:#fff;color:#284b3b;white-space:nowrap}
#comparison-table tbody tr:nth-child(odd) td{background:#fafcfb}
#comparison-table .comparison-section th{background:#e4efe7;text-align:left;padding:10px 16px;font-size:14px;font-weight:700;color:#315e47;border-bottom:1px solid #d6e3d9}
#comparison-table tbody td.comparison-high{color:#db4542;font-weight:700}
#comparison-table td .player-build-badge{vertical-align:middle;margin-right:6px}
.comparison-retry{border:0;background:transparent;color:#b54539;text-decoration:underline;font-size:11px;padding:4px}
.comparison-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 24px;flex:none;background:#fff}.comparison-clear{color:#6a8375;background:transparent;border:1px solid #d1e0d7;border-radius:7px;padding:7px 12px}.comparison-footer .primary{border:0;border-radius:8px;background:#23745e;color:#fff;padding:9px 17px;font-weight:600}
.comparison-empty{padding:56px 24px;text-align:center;color:#698a77}.comparison-empty strong{font-size:19px;color:#345d48}.comparison-empty p{font-size:13px}
.comparison-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.comparison-dialog [hidden],.comparison-notice[hidden]{display:none!important}
@media(min-width:1051px){
 #ranking-root .ranking-layout .compare-button{font-size:9px;line-height:14px;padding:0 3px;min-height:0;border-radius:3px}
 #ranking-root .ranking-layout .player-title{gap:3px}
 #ranking-root .ranking-layout th:nth-child(3){width:18.5%}
 #ranking-root .ranking-layout th:nth-child(5){width:20.5%}
 #ranking-root .ranking-layout th:nth-child(8){width:10%}
}
@media(min-width:1051px) and (max-width:1150px){
 #ranking-root .ranking-layout .player-cell{padding-left:4px;padding-right:4px}
}
@media(min-width:1151px){
 #ranking-root .ranking-layout .player-cell{padding-left:12px;padding-right:12px}
}
@media(max-width:600px){
 #ranking-root .ranking-layout .player-title{gap:4px}
 #ranking-root .compare-button{font-size:9px;padding:1px 4px;min-height:21px}
 .comparison-launcher{right:16px;bottom:calc(18px + env(safe-area-inset-bottom));width:56px;height:56px}.comparison-vs{font-size:19px}.comparison-notice{right:16px;bottom:86px;max-width:calc(100vw - 32px);font-size:12px}
}
@media(max-width:540px){
 #ranking-root .ranking-layout .avatar{width:34px;height:34px}
 #ranking-root .ranking-layout .player-title>strong{font-size:14px;line-height:1.2}
 #ranking-root .ranking-layout .player-actions .player-stats-button,#ranking-root .ranking-layout .player-actions .compare-button{font-size:9px;line-height:16px;padding:1px 3px;min-height:0}
 #ranking-root .ranking-layout .time{margin-left:96px}
}
@media(max-width:800px){
 .comparison-dialog{width:min(680px,calc(100vw - 32px));max-height:min(620px,72dvh);border-radius:12px}
 .comparison-head{padding:10px 12px 5px;gap:8px}.comparison-head h2{font-size:18px;margin:0}.comparison-head .eyebrow{display:none}.comparison-help{padding:0 12px 8px;font-size:10px}
 .comparison-close{width:30px;height:30px;font-size:22px}
 #comparison-table{min-width:calc(112px + var(--comparison-players)*112px);font-size:12px}
 #comparison-table th,#comparison-table td{padding:7px 8px}
 #comparison-table thead th:first-child{width:112px}
 #comparison-table thead th{height:76px;padding:6px 7px}
 #comparison-table tbody th[scope="row"]{font-size:11px}
 #comparison-table .comparison-section th{font-size:12px;padding:6px 8px}
 .comparison-profile{flex-wrap:wrap;gap:5px}.comparison-avatar{width:26px;height:26px;font-size:14px}.comparison-name{font-size:14px;flex-basis:100%;order:3;line-height:1.2}.comparison-remove{width:28px;height:28px}.comparison-server{font-size:10px}
 .comparison-footer{padding:7px 12px;gap:12px}.comparison-footer button{font-size:11px;min-height:32px;padding:6px 12px}
}
@media(max-width:350px){
 #ranking-root .ranking-layout .time{margin-left:92px}
}

/* Fit all player columns on phones; only the attributes scroll vertically. */
.comparison-scroll-hint{display:none}
@media(max-width:800px){
 #comparison-table{min-width:0;width:100%}
 #comparison-table thead th:first-child{width:26%}
 #comparison-table th,#comparison-table td{padding:7px 4px}
 #comparison-table thead th{padding:6px 3px;height:66px}
 #comparison-table tbody th[scope="row"]{overflow-wrap:anywhere}
 .comparison-profile{gap:4px}
 #comparison-table td .player-build-badge{margin-right:3px}
 .comparison-scroll-hint{display:block;text-align:center;font-size:10px;color:#70887a}
 .comparison-footer{gap:6px;padding:7px 10px}
 .comparison-footer button{padding:6px 8px}
}
@media(max-width:380px){
 #comparison-table{font-size:11px}
 .comparison-avatar{width:22px;height:22px}
 .comparison-remove{width:24px;height:24px}
 #comparison-table td .player-build-badge{font-size:11px;padding:1px 2px}
}
@media(max-width:800px) and (max-height:500px){
 .comparison-dialog{max-height:calc(100dvh - 24px)}
}
