:root {
    --cs-primary: #4CAF50;
    --cs-secondary: #2196F3;
    --cs-danger: #F44336;
    --cs-warning: #FFC107;
    --cs-dark: #121212;
    --cs-text: #E0E0E0;
    --cs-text-light: #9E9E9E;
    --cs-page-width: min(1480px, calc(100% - 40px));
    --cs-glass-border: rgba(255, 255, 255, 0.16);
    --cs-glass-bg: linear-gradient(135deg, rgba(0, 22, 38, 0.64), rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.36));
    --cs-inner-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.30));
}

.kp-body {
    margin: 0;
    color: var(--cs-text);
    background: var(--cs-dark);
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

.kp-page {
    width: 100%;
    padding: 24px 0 42px;
    box-sizing: border-box;
}

.kp-panel {
    width: var(--cs-page-width);
    margin: 0 auto 24px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--cs-glass-border);
    background: var(--cs-glass-bg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(9px) saturate(95%);
    -webkit-backdrop-filter: blur(9px) saturate(95%);
    box-sizing: border-box;
}

.kp-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.kp-title-wrap { min-width: 0; }

.kp-title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: .5px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .75);
}

.kp-subtitle {
    color: var(--cs-text-light);
    font-size: .8rem;
}

.kp-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.kp-search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
}

.kp-search-box {
    position: relative;
    width: 250px;
    max-width: 100%;
}

.kp-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(220, 230, 234, .62);
    pointer-events: none;
}

.kp-search-box input,
.kp-select-wrap select {
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 5px;
    color: #fff;
    outline: none;
    background: rgba(255, 255, 255, .07);
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.kp-search-box input {
    padding: 0 10px 0 30px;
}

.kp-select-wrap select {
    min-width: 128px;
    padding: 0 10px;
}

.kp-search-box input:focus,
.kp-select-wrap select:focus {
    border-color: rgba(111, 214, 93, .56);
    box-shadow: 0 0 0 3px rgba(111, 214, 93, .12);
    background: rgba(255, 255, 255, .09);
}

.kp-select-wrap select option { color: #111; }

.kp-search-btn {
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(111, 214, 93, 0.38);
    border-radius: 5px;
    color: #071008;
    font-size: 0.78rem;
    font-weight: 950;
    cursor: pointer;
    background: #6FD65D;
    box-shadow: 0 8px 18px rgba(76, 175, 80, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.kp-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(76, 175, 80, 0.26);
}

.kp-table-card {
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: var(--cs-inner-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px) saturate(90%);
    -webkit-backdrop-filter: blur(8px) saturate(90%);
}

.kp-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.kp-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.kp-table th {
    padding: 12px 14px;
    color: rgba(220, 230, 234, .66);
    font-size: .72rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.kp-table td {
    padding: 10px 14px;
    color: rgba(238, 244, 247, .90);
    font-size: .84rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.kp-table th:first-child,
.kp-table td:first-child {
    width: 72px;
    min-width: 72px;
    text-align: center;
}

.kp-player-row {
    cursor: pointer;
    transition: background .2s ease;
}

.kp-player-row:hover {
    background: rgba(111, 214, 93, .08);
}

.kp-player-row.vip-level-1,
.kp-player-row.vip-level-1:hover {
    background: transparent;
}

.kp-table-empty {
    text-align: center;
    padding: 24px !important;
    color: var(--cs-text-light) !important;
}

.kp-error { color: #ff8880 !important; }

.kp-rank-cell {
    text-align: center !important;
    vertical-align: middle;
}

.kp-rank-num,
.kp-rank-circle,
.kp-rank-medal {
    display: none !important;
}

.kp-rank-trophy {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .75));
}

.kp-rank-gold { color: #ffd76a; }
.kp-rank-silver { color: #dce5ee; }
.kp-rank-bronze { color: #cd7f32; }

.kp-rank-plain {
    display: inline-block;
    color: rgba(220, 230, 234, .86);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.kp-player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kp-avatar-sm {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .30);
}

.kp-avatar-sm img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.kp-avatar-sm i {
    display: none !important;
}

.kp-player-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kp-player-info strong {
    max-width: 260px;
    overflow: hidden;
    color: #fff;
    font-size: .88rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kp-player-info small {
    color: rgba(220, 230, 234, .58);
    font-size: .72rem;
}

.kp-green {
    color: #6FD65D;
    font-weight: 900;
}

.kp-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 5px;
    color: #aeb6ba;
    font-size: .72rem;
    font-weight: 900;
    background: rgba(255, 255, 255, .08);
}

.kp-status.is-online {
    color: #6FD65D;
    background: rgba(111, 214, 93, .12);
    border: 1px solid rgba(111, 214, 93, .22);
}

.kp-rank-level {
    display: inline-flex;
    align-items: center;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 950;
    color: #dce6ea;
}

.kp-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.kp-paging-info,
.kp-page-num {
    color: var(--cs-text-light);
    font-size: .8rem;
}

.kp-pager-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.kp-page-btn {
    width: 32px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, .06);
    transition: all .22s ease;
}

.kp-page-btn:hover:not(:disabled) {
    color: #071008;
    border-color: #6FD65D;
    background: #6FD65D;
}

.kp-page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.kp-page-text-btn {
    width: auto;
    min-width: 46px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.kp-jump-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kp-jump-wrap input {
    width: 64px;
    height: 30px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 5px;
    color: #fff;
    text-align: center;
    outline: none;
    background: rgba(255, 255, 255, .06);
}

.kp-jump-wrap input:focus {
    border-color: rgba(111, 214, 93, .56);
    box-shadow: 0 0 0 3px rgba(111, 214, 93, .12);
}

/* Modal */
.kp-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 18px 22px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.kp-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kp-modal.is-closing {
    opacity: 0;
    visibility: visible;
}

.kp-modal-card {
    position: relative;
    width: min(960px, 92vw);
    max-height: calc(100vh - 118px);
    overflow: auto;
    border-radius: 16px;
    color: var(--cs-text);
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(135deg, rgba(0, 22, 38, .90), rgba(255, 255, 255, .08), rgba(0, 0, 0, .76));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .08);
    opacity: 0;
    transform: translateY(18px) scale(.965);
    transition: opacity .22s ease, transform .32s cubic-bezier(.16, 1, .3, 1);
    will-change: transform, opacity;
}

.kp-modal.show .kp-modal-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.kp-modal.is-closing .kp-modal-card {
    opacity: 0;
    transform: translateY(14px) scale(.97);
}

.kp-modal-close {
    display: none !important;
}

.kp-modal-hero {
    position: relative;
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: radial-gradient(circle at left top, rgba(111, 214, 93, .12), transparent 42%), rgba(0, 0, 0, .18);
}

.kp-modal-avatar {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .35);
    box-shadow: none;
}

.kp-modal-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.kp-modal-main { min-width: 0; }

.kp-modal-name-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 8px;
}

.kp-modal-name-row h2 {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(460px, 100%);
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 1.32rem;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kp-vip-badge,
#modalVip {
    display: none !important;
}

.kp-player-page-btn {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 5px;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #42b883, #4CAF50);
    box-shadow: 0 8px 18px rgba(76, 175, 80, .22);
    transition: transform .22s ease, opacity .22s ease;
}

.kp-player-page-btn:hover {
    transform: translateY(-1px);
}

.kp-player-page-btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.kp-modal-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: rgba(220, 230, 234, .72);
    font-size: .82rem;
}

.kp-modal-meta-row i {
    color: #6FD65D;
    margin-right: 4px;
}

.kp-modal-meta-row img {
    display: inline-block;
    width: 16px;
    height: 11px;
    object-fit: cover;
    vertical-align: -1px;
    margin-right: 5px;
}

.kp-modal-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.kp-mini-stat {
    min-width: 0;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .20);
}

.kp-mini-stat small {
    display: block;
    color: var(--cs-text-light);
    font-size: .66rem;
    margin-bottom: 2px;
}

.kp-mini-stat strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: .80rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#modalLastOnline {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    font-size: .72rem;
    word-break: break-word;
}

.kp-modal-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px;
}

.kp-detail-card {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(0, 0, 0, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    padding: 10px;
}

.kp-detail-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #fff;
    font-size: .90rem;
    font-weight: 950;
}

.kp-detail-title i { color: #6FD65D; }

.kp-chart-wrap {
    position: relative;
    height: 145px;
}

.kp-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.kp-run-table-wrap {
    max-height: 250px;
    overflow: auto;
}

.kp-run-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.kp-run-table th {
    padding: 6px 7px;
    color: rgba(220, 230, 234, .62);
    font-size: .74rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.kp-run-table td {
    padding: 6px 7px;
    color: rgba(238, 244, 247, .88);
    font-size: .76rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.kp-run-table a {
    color: #6FD65D;
    text-decoration: none;
    font-weight: 850;
}

.kp-run-table a:hover {
    color: #9CFF8A;
    text-decoration: underline;
}

/* Skeleton loading */
.kp-skeleton,
.kp-avatar-skeleton,
.kp-modal.is-detail-loading .kp-chart-wrap::after {
    display: inline-block;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.14), rgba(255,255,255,.055));
    background-size: 220% 100%;
    animation: kpSkeletonMove 1.15s linear infinite;
}

.kp-player-info .kp-skeleton {
    display: block;
    margin: 2px 0;
}

.kp-avatar-skeleton {
    width: 40px;
    height: 40px;
}

.kp-run-skeleton-row td,
.kp-table-skeleton-row td {
    pointer-events: none;
}

.kp-modal.is-detail-loading .kp-chart-wrap canvas {
    opacity: 0;
}

.kp-modal.is-detail-loading .kp-chart-wrap::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 8px;
}

@keyframes kpSkeletonMove {
    from { background-position: 0 0; }
    to { background-position: -220% 0; }
}

/* VIP name styles only */
.vip-2, profile.vip-2 a,
.kp-vip-name.vip-2 {
    font-size: 13px;
    font-family: play_bold, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    background: -webkit-linear-gradient(left,#00ff7f,#e065af);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-color: #ff451f!important;
    text-shadow: none !important;
}

profile.vip-3 {
    background-image: -webkit-linear-gradient(left,#00ffdc,#f723f0),-webkit-linear-gradient(left,#ffffff,#ff01c8);
}

.vip-3, profile.vip-3 a,
.kp-vip-name.vip-3 {
    font-size: 13px;
    font-family: play_bold, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    background-image: -webkit-linear-gradient(left, #00ffdc, #f723f0), -webkit-linear-gradient(left, #ffffff, #ff01c8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    border-color: #00dfa6!important;
    text-shadow: none !important;
}

.kp-vip-name.vip-1,
.vip-1 {
    color: #fff !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
}

/* Rank text styles */
.jixian{
  background-image: -webkit-linear-gradient(bottom,  #fbfbfb, #ff0000, #ff0000);
  font-size: 13px;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.jixian::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
  animation: flashOnce 0.5s linear forwards;
}
.chaoren{
  background-image: -webkit-linear-gradient(bottom, #ffffff, #ef0079, #ed1fdc);
  font-size: 13px;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.chaoren::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
  animation: flashOnce 0.5s linear forwards;
}
.wangzhe{
  background-image: -webkit-linear-gradient(bottom, #e55bd4, #993131, #f370ca);
  font-size: 13px;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  vertical-align: middle;
}
.wangzhe::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
  animation: flashOnce 0.5s linear forwards;
}
@keyframes flashOnce {
  to { left: 100%; opacity: 0; }
}
.dashi {
  background-image: -webkit-linear-gradient(bottom, #C6E2FF, #FFA500, #EE3B3B);
  font-size: 13px;
  font-family: play_bold;
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  vertical-align: middle;
}
.zuanshi {
    background-image: -webkit-linear-gradient(bottom,#BCEE68,#FFBBFF,#D4D4D4);
    font-size: 13px;
    font-family: play_bold;
    font-weight: bold;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    vertical-align: middle;
}
.bojin {
    background-image: -webkit-linear-gradient(bottom,#212121,#00BFFF,#9370DB);
    font-size: 13px;
    font-family: play_bold;
    font-weight: bold;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    vertical-align: middle;
}
.huangjin {
    background-image: -webkit-linear-gradient(bottom,#CD2626,#b6ff00,#FFD700);
    font-size: 13px;
    font-family: play_bold;
    font-weight: bold;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    vertical-align: middle;
}
.baiyin {
    background-image: -webkit-linear-gradient(bottom,#CD2626,#00FF7F,#00FF7F);
    font-size: 13px;
    font-family: play_bold;
    font-weight: bold;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    vertical-align: middle;
}
.qingtong {
    background-image: -webkit-linear-gradient(bottom,#FFFFFF,#FFFFFF,#222222);
    font-size: 13px;
    font-family: play_bold;
    font-weight: bold;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    vertical-align: middle;
}

/* Rank avatar borders */
.kp-player-row .kp-avatar-sm,
.kp-modal-avatar {
    border-color: rgba(255, 255, 255, .16);
    box-shadow: none;
}
.kp-player-row .kp-avatar-sm.rank-border-jixian,
.kp-modal-avatar.rank-border-jixian { border-color: #ff0000; box-shadow: 0 0 16px rgba(255,0,0,.32); }
.kp-player-row .kp-avatar-sm.rank-border-chaoren,
.kp-modal-avatar.rank-border-chaoren { border-color: #ef0079; box-shadow: 0 0 16px rgba(239,0,121,.30); }
.kp-player-row .kp-avatar-sm.rank-border-wangzhe,
.kp-modal-avatar.rank-border-wangzhe { border-color: #e55bd4; box-shadow: 0 0 16px rgba(229,91,212,.28); }
.kp-player-row .kp-avatar-sm.rank-border-dashi,
.kp-modal-avatar.rank-border-dashi { border-color: #FFA500; box-shadow: 0 0 14px rgba(255,165,0,.25); }
.kp-player-row .kp-avatar-sm.rank-border-zuanshi,
.kp-modal-avatar.rank-border-zuanshi { border-color: #FFBBFF; box-shadow: 0 0 14px rgba(255,187,255,.22); }
.kp-player-row .kp-avatar-sm.rank-border-bojin,
.kp-modal-avatar.rank-border-bojin { border-color: #00BFFF; box-shadow: 0 0 14px rgba(0,191,255,.24); }
.kp-player-row .kp-avatar-sm.rank-border-huangjin,
.kp-modal-avatar.rank-border-huangjin { border-color: #FFD700; box-shadow: 0 0 14px rgba(255,215,0,.25); }
.kp-player-row .kp-avatar-sm.rank-border-baiyin,
.kp-modal-avatar.rank-border-baiyin { border-color: #00FF7F; box-shadow: 0 0 14px rgba(0,255,127,.20); }
.kp-player-row .kp-avatar-sm.rank-border-qingtong,
.kp-modal-avatar.rank-border-qingtong { border-color: #d4d4d4; box-shadow: 0 0 12px rgba(255,255,255,.16); }

@media (max-width: 980px) {
    :root { --cs-page-width: min(760px, calc(100% - 28px)); }
    .kp-panel-header { flex-direction: column; }
    .kp-toolbar { justify-content: flex-start; width: 100%; }
    .kp-search-wrap { width: 100%; }
    .kp-search-box { flex: 1 1 auto; width: auto; }
    .kp-select-wrap { flex: 1 1 150px; }
    .kp-modal-card { width: min(760px, 94vw); }
    .kp-modal-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    :root { --cs-page-width: calc(100% - 22px); }
    .kp-page { padding-top: 16px; }
    .kp-panel { padding: 12px; }
    .kp-title { font-size: 1.08rem; }
    .kp-table { min-width: 880px; }
    .kp-pager { flex-direction: column; align-items: flex-start; }
    .kp-pager-actions { justify-content: flex-start; }
    .kp-search-wrap { flex-direction: column; align-items: stretch; }
    .kp-search-btn { width: 100%; }
    .kp-modal { padding: 64px 12px 14px; }
    .kp-modal-card { width: 94vw; max-height: calc(100vh - 94px); }
    .kp-modal-hero { grid-template-columns: 1fr; padding: 14px; text-align: center; }
    .kp-modal-avatar { width: 130px; height: 130px; margin: 0 auto; }
    .kp-modal-name-row { flex-wrap: wrap; justify-content: center; }
    .kp-player-page-btn { margin-left: 0; }
    .kp-modal-meta-row { justify-content: center; }
    .kp-modal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kp-modal-content { padding: 10px; }
    .kp-chart-wrap { height: 135px; }
}

/* =========================================================
   test_v13 最终清理：只读 Redis、避免弹窗位移、天梯分样式、VIP 名字、最后在线
   ========================================================= */
html {
    scrollbar-gutter: stable;
}

/* 列表：所有玩家默认无底色，hover 统一淡绿色，不再给 VIP 行默认背景 */
.kp-table .kp-player-row,
.kp-table .kp-player-row.is-vip,
.kp-table .kp-player-row.vip-level-1,
.kp-table .kp-player-row.vip-level-2,
.kp-table .kp-player-row.vip-level-3 {
    background: transparent !important;
}

.kp-table .kp-player-row:hover,
.kp-table .kp-player-row.is-vip:hover,
.kp-table .kp-player-row.vip-level-1:hover,
.kp-table .kp-player-row.vip-level-2:hover,
.kp-table .kp-player-row.vip-level-3:hover {
    background: rgba(111, 214, 93, 0.08) !important;
}

/* TOP 1/2/3 纯色奖杯，后面排名只显示数字 */
.kp-table .kp-rank-medal,
.kp-rank-medal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.kp-table .kp-rank-medal i,
.kp-rank-medal i,
.kp-rank-trophy {
    font-size: 24px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.72));
}

.kp-rank-gold { color: #ffd76a !important; }
.kp-rank-silver { color: #dfe7ef !important; }
.kp-rank-bronze { color: #cd7f32 !important; }

.kp-rank-plain {
    display: inline !important;
    color: rgba(220, 230, 234, 0.78) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 天梯分：比普通数字显眼，但不是纯色块 */
.kp-ladder-score,
#modalPoints {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 3px 9px;
    border-radius: 5px;
    color: #eaffea !important;
    font-weight: 950;
    letter-spacing: 0.2px;
    background:
        linear-gradient(135deg, rgba(111, 214, 93, 0.16), rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.12)),
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.18), transparent 40%);
    border: 1px solid rgba(111, 214, 93, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 14px rgba(111, 214, 93, 0.10);
    text-shadow: 0 0 8px rgba(111, 214, 93, 0.24);
}

.kp-player-row:hover .kp-ladder-score {
    border-color: rgba(111, 214, 93, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 18px rgba(111, 214, 93, 0.16);
}

/* VIP 渐变只作用于名字文字；hover 时 VIP 名字不变色 */
.kp-table .kp-player-info strong.kp-vip-name,
.kp-modal-name-row h2.kp-vip-name {
    display: inline-block !important;
    width: fit-content !important;
    max-width: 260px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    filter: none !important;
}

.kp-table .kp-player-info strong.kp-vip-name.vip-2,
.kp-table .kp-player-info strong.kp-vip-name.vip-2:hover,
.kp-table .kp-player-row:hover .kp-player-info strong.kp-vip-name.vip-2,
.kp-modal-name-row h2.kp-vip-name.vip-2,
.kp-modal-name-row h2.kp-vip-name.vip-2:hover {
    font-size: 13px !important;
    font-family: play_bold, 'Segoe UI', system-ui, sans-serif !important;
    font-weight: 600 !important;
    background: -webkit-linear-gradient(left, #00ff7f, #ffffff) !important;
    background-image: -webkit-linear-gradient(left, #00ff7f, #ffffff) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.kp-table .kp-player-info strong.kp-vip-name.vip-3,
.kp-table .kp-player-info strong.kp-vip-name.vip-3:hover,
.kp-table .kp-player-row:hover .kp-player-info strong.kp-vip-name.vip-3,
.kp-modal-name-row h2.kp-vip-name.vip-3,
.kp-modal-name-row h2.kp-vip-name.vip-3:hover {
    font-size: 13px !important;
    font-family: play_bold, 'Segoe UI', system-ui, sans-serif !important;
    font-weight: 600 !important;
    background: -webkit-linear-gradient(left, #00ffdc, #f723f0), -webkit-linear-gradient(left, #ffffff, #ff01c8) !important;
    background-image: -webkit-linear-gradient(left, #00ffdc, #f723f0), -webkit-linear-gradient(left, #ffffff, #ff01c8) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.kp-table .kp-player-info strong:not(.kp-vip-name):hover,
.kp-table .kp-player-row:hover .kp-player-info strong:not(.kp-vip-name) {
    color: #9CFF8A !important;
}

/* 最后在线列 */
.kp-status.is-offline {
    color: rgba(220, 230, 234, 0.72);
    background: rgba(255, 255, 255, 0.06);
}

/* 最近完成地图：时间列用普通字体颜色 */
.kp-run-table td:nth-child(2),
.kp-run-table td:nth-child(2) span,
.kp-run-table td:nth-child(2) .kp-green,
.kp-run-table .kp-run-time {
    color: rgba(238, 244, 247, .88) !important;
    font-weight: 400 !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
}

/* =========================================================
   Mobile fix: ranklist no horizontal dragging
   ========================================================= */
@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .kp-page {
        width: 100%;
        overflow-x: hidden;
    }

    .kp-panel {
        width: calc(100% - 18px);
        margin-left: auto;
        margin-right: auto;
        padding: 10px;
        border-radius: 14px;
    }

    .kp-table-card {
        overflow: visible;
        border-radius: 13px;
    }

    .kp-table-scroll {
        overflow-x: visible;
        width: 100%;
    }

    .kp-table,
    .kp-table thead,
    .kp-table tbody,
    .kp-table tr,
    .kp-table th,
    .kp-table td {
        display: block;
        width: 100%;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .kp-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .kp-table thead {
        display: none;
    }

    .kp-table tbody {
        padding: 8px;
    }

    .kp-table .kp-player-row {
        position: relative;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        background: rgba(0, 0, 0, 0.18) !important;
    }

    .kp-table .kp-player-row:hover {
        background: rgba(111, 214, 93, 0.08) !important;
    }

    .kp-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.82rem;
        text-align: right;
    }

    .kp-table td:last-child {
        border-bottom: 0;
    }

    .kp-table td::before {
        flex: 0 0 auto;
        color: rgba(220, 230, 234, 0.58);
        font-size: 0.72rem;
        font-weight: 900;
        text-align: left;
    }

    .kp-table td:nth-child(1)::before { content: "排名"; }
    .kp-table td:nth-child(2)::before { content: "玩家"; }
    .kp-table td:nth-child(3)::before { content: "天梯分"; }
    .kp-table td:nth-child(4)::before { content: "段位"; }
    .kp-table td:nth-child(5)::before { content: "游戏时长"; }
    .kp-table td:nth-child(6)::before { content: "完成地图"; }
    .kp-table td:nth-child(7)::before { content: "最后在线"; }

    .kp-table th:first-child,
    .kp-table td:first-child {
        width: 100%;
        min-width: 0;
        text-align: right;
    }

    .kp-rank-cell {
        text-align: right !important;
    }

    .kp-player-cell {
        flex: 1 1 auto;
        justify-content: flex-end;
        max-width: calc(100% - 48px);
    }

    .kp-avatar-sm {
        width: 34px;
        height: 34px;
    }

    .kp-player-info {
        align-items: flex-end;
        max-width: calc(100vw - 154px);
    }

    .kp-player-info strong,
    .kp-table .kp-player-info strong.kp-vip-name {
        max-width: calc(100vw - 170px) !important;
        font-size: 0.82rem !important;
    }

    .kp-player-info small {
        max-width: calc(100vw - 170px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .kp-rank-level {
        max-width: 130px;
        justify-content: flex-end;
    }

    .kp-status {
        max-width: 160px;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .kp-table-empty {
        display: block !important;
        width: 100% !important;
        padding: 22px 10px !important;
        text-align: center !important;
    }

    .kp-table-empty::before,
    .kp-table-skeleton-row td::before {
        display: none !important;
        content: "" !important;
    }

    .kp-table-skeleton-row {
        padding: 10px;
    }

    .kp-pager {
        padding: 10px;
        gap: 9px;
    }

    .kp-pager-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .kp-page-num,
    .kp-jump-wrap {
        grid-column: 1 / -1;
    }

    .kp-jump-wrap {
        display: grid;
        grid-template-columns: 1fr auto;
        width: 100%;
    }

    .kp-jump-wrap input {
        width: 100%;
    }

    .kp-page-btn,
    .kp-page-text-btn {
        width: 100%;
        min-width: 0;
    }

    .kp-modal-card {
        width: calc(100vw - 18px);
    }

    .kp-run-table-wrap {
        max-height: none;
        overflow-x: visible;
    }

    .kp-run-table,
    .kp-run-table thead,
    .kp-run-table tbody,
    .kp-run-table tr,
    .kp-run-table th,
    .kp-run-table td {
        display: block;
        width: 100%;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .kp-run-table thead {
        display: none;
    }

    .kp-run-table tr {
        margin-bottom: 8px;
        padding: 8px 9px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .kp-run-table td {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        text-align: right;
        word-break: break-word;
    }

    .kp-run-table td:last-child {
        border-bottom: 0;
    }

    .kp-run-table td::before {
        flex: 0 0 auto;
        color: rgba(220, 230, 234, 0.56);
        font-size: 0.70rem;
        font-weight: 900;
        text-align: left;
    }

    .kp-run-table td:nth-child(1)::before { content: "地图"; }
    .kp-run-table td:nth-child(2)::before { content: "时间"; }
    .kp-run-table td:nth-child(3)::before { content: "模式"; }
    .kp-run-table td:nth-child(4)::before { content: "日期"; }
}



/* =========================================================
   Player2 / Top15 视觉统一
   ========================================================= */
:root {
    --cs-page-width: min(1240px, calc(100% - 32px));
    --cs-glass-border: rgba(255,255,255,.16);
    --cs-glass-bg: linear-gradient(135deg, rgba(0,0,0,.25), rgba(48,47,47,.57), rgba(90,90,90,.64));
    --cs-accent: #55c8c9;
    --cs-green: #4fc786;
}

.kp-page { padding: 22px 0 46px; }

.kp-panel {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--cs-glass-border);
    border-radius: 12px;
    background: var(--cs-glass-bg);
    box-shadow: none;
    backdrop-filter: blur(9px) saturate(95%);
}

.kp-panel-header { align-items: center; margin-bottom: 12px; }

.kp-title {
    margin: 0;
    color: #9ba1aa;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: none;
}

.kp-toolbar, .kp-search-wrap { gap: 6px; }
.kp-search-box { width: 220px; }

.kp-search-box input,
.kp-select-wrap select {
    height: 30px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 7px;
    background: rgba(13,18,25,.34);
    color: #d8dde6;
    font-size: 10px;
    box-shadow: none;
}

.kp-search-box input:focus,
.kp-select-wrap select:focus {
    border-color: rgba(85,200,201,.48);
    box-shadow: 0 0 0 2px rgba(85,200,201,.08);
}

.kp-search-btn {
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(85,200,201,.30);
    border-radius: 7px;
    background: rgba(85,200,201,.08);
    color: #cfeaea;
    font-size: 10px;
    box-shadow: none;
}

.kp-search-btn:hover {
    transform: none;
    border-color: rgba(85,200,201,.50);
    background: rgba(85,200,201,.14);
    box-shadow: none;
}

.kp-table-card {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.kp-table th {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(17,22,30,.72);
    color: #8e949d;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: none;
}

.kp-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,.055);
    color: #b7bdc5;
    font-size: 12px;
}

.kp-table .kp-player-row:hover,
.kp-table .kp-player-row.is-vip:hover,
.kp-table .kp-player-row.vip-level-1:hover,
.kp-table .kp-player-row.vip-level-2:hover,
.kp-table .kp-player-row.vip-level-3:hover {
    background: rgba(85,200,201,.045) !important;
}

.kp-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border-color: rgba(255,255,255,.15);
    background: #11141a;
}

.kp-player-info strong { color: #dfe4ea; font-size: 12px; font-weight: 800; }
.kp-player-info small { color: #707986; font-size: 9px; }

.kp-rank-trophy { font-size: 20px !important; }
.kp-rank-plain { color:#8f97a2 !important; font-size:11px !important; }

/* 天梯分 */
.kp-ladder-score,
#modalPoints {
    position: relative;
    display: inline-flex;
    min-width: 72px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(85,200,201,.22);
    border-radius: 8px;
    background:
        radial-gradient(circle at 85% 12%, rgba(85,200,201,.12), transparent 45%),
        rgba(255,255,255,.035);
    color: #d9e7e8 !important;
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(85,200,201,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.kp-ladder-score::before,
#modalPoints::before {
    content: "★";
    color: #77d8da;
    font-size: 9px;
    opacity: .82;
}

.kp-ladder-score::after,
#modalPoints::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 3px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85,200,201,.52), transparent);
    opacity: .5;
}

/* 段位 */
.kp-rank-level,
#modalRank {
    --tier-accent: #9ba4b0;
    --tier-glow: rgba(155,164,176,.14);
    display: inline-flex;
    max-width: 170px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid color-mix(in srgb, var(--tier-accent) 42%, transparent);
    border-radius: 8px;
    background:
        radial-gradient(circle at 86% 12%, var(--tier-glow), transparent 48%),
        rgba(255,255,255,.035) !important;
    color: var(--tier-accent) !important;
    font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: 0 0 10px var(--tier-glow) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 0 12px var(--tier-glow);
}

.kp-rank-level::before,
#modalRank::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--tier-accent);
    box-shadow: 0 0 8px var(--tier-accent);
}

.kp-rank-level::after,
#modalRank::after {
    content: none !important;
    display: none !important;
}

.kp-rank-level.qingtong, #modalRank.qingtong { --tier-accent:#a7adb5; --tier-glow:rgba(167,173,181,.12); }
.kp-rank-level.baiyin,   #modalRank.baiyin   { --tier-accent:#8fc7c6; --tier-glow:rgba(143,199,198,.16); }
.kp-rank-level.huangjin, #modalRank.huangjin { --tier-accent:#d8bb56; --tier-glow:rgba(216,187,86,.18); }
.kp-rank-level.bojin,    #modalRank.bojin    { --tier-accent:#73bfe8; --tier-glow:rgba(115,191,232,.19); }
.kp-rank-level.zuanshi,  #modalRank.zuanshi  { --tier-accent:#c69af0; --tier-glow:rgba(198,154,240,.20); }
.kp-rank-level.dashi,    #modalRank.dashi    { --tier-accent:#e0b766; --tier-glow:rgba(224,183,102,.22); }
.kp-rank-level.wangzhe,  #modalRank.wangzhe  { --tier-accent:#ef91bd; --tier-glow:rgba(239,145,189,.24); }
.kp-rank-level.chaoren,  #modalRank.chaoren  { --tier-accent:#a98cff; --tier-glow:rgba(169,140,255,.27); }
.kp-rank-level.jixian,   #modalRank.jixian   { --tier-accent:#f4d77b; --tier-glow:rgba(244,215,123,.30); }

/* 关闭旧段位扫光 */
.kp-rank-level.jixian::before,
.kp-rank-level.chaoren::before,
.kp-rank-level.wangzhe::before,
#modalRank.jixian::before,
#modalRank.chaoren::before,
#modalRank.wangzhe::before {
    animation: none !important;
}

.kp-status {
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 7px;
    background: rgba(255,255,255,.03);
    color: #858d97;
    font-size: 9px;
}

.kp-status.is-online {
    border-color: rgba(79,199,134,.28);
    background: rgba(79,199,134,.08);
    color: #78d7a2;
}

.kp-pager {
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,.065);
}

.kp-paging-info,
.kp-page-num { color:#8f97a2; font-size:10px; }

.kp-page-btn,
.kp-jump-wrap input {
    height: 28px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
    color: #aeb5bf;
    font-size: 10px;
}

.kp-page-btn:hover:not(:disabled) {
    border-color: rgba(85,200,201,.38);
    background: rgba(85,200,201,.10);
    color: #eef5f5;
}

/* 弹窗 */
.kp-modal { background: rgba(2,4,8,.76); backdrop-filter: blur(7px); }
.kp-modal-card {
    width: min(900px, 92vw);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(16,19,26,.96);
    box-shadow: 0 28px 90px rgba(0,0,0,.62);
}

.kp-modal-hero {
    grid-template-columns: 126px minmax(0,1fr);
    gap: 16px;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: radial-gradient(circle at 15% 20%, rgba(85,200,201,.08), transparent 36%);
}

.kp-modal-avatar { width:120px; height:120px; border-radius:11px; border-width:1px; }
.kp-modal-name-row h2 { color:#e7e9ee; font-size:24px; font-weight:850; }

.kp-player-page-btn {
    border: 1px solid rgba(85,200,201,.30);
    border-radius: 8px;
    background: rgba(85,200,201,.08);
    color: #cfeaea;
    box-shadow: none;
    font-size: 10px;
}

.kp-mini-stat {
    padding: 8px 9px;
    border: 1px solid rgba(255,255,255,.105);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.kp-mini-stat small { color:#777e89; font-size:9px; font-weight:800; }
.kp-mini-stat strong { color:#d8dde1; font-size:12px; font-weight:850; }

.kp-detail-card {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    box-shadow: none;
}

.kp-detail-title {
    color:#9ba1aa;
    font-size:10px;
    font-weight:850;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.kp-run-table th {
    background: rgba(17,22,30,.58);
    color:#8e949d;
    font-size:10px;
}

.kp-run-table td { color:#b7bdc5; font-size:11px; }

@media (max-width: 640px) {
    :root { --cs-page-width: calc(100% - 18px); }
    .kp-panel { border-radius:12px; }
    .kp-table .kp-player-row {
        border-radius:10px;
        background: rgba(255,255,255,.025) !important;
    }
    .kp-ladder-score,
    .kp-rank-level { min-height:26px; font-size:10px !important; }
    .kp-modal-card { width: calc(100vw - 18px); }
    .kp-modal-avatar { width:110px; height:110px; }
}
